var yoe=Object.defineProperty;var boe=(e,t,n)=>t in e?yoe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var li=(e,t,n)=>boe(e,typeof t!="symbol"?t+"":t,n);function kB(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 i=Object.getOwnPropertyDescriptor(r,o);i&&Object.defineProperty(e,o,i.get?i:{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 i of o)if(i.type==="childList")for(const a of i.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&r(a)}).observe(document,{childList:!0,subtree:!0});function n(o){const i={};return o.integrity&&(i.integrity=o.integrity),o.referrerPolicy&&(i.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?i.credentials="include":o.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(o){if(o.ep)return;o.ep=!0;const i=n(o);fetch(o.href,i)}})();var iu=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 AB={exports:{}},C1={},DB={exports:{}},_n={};/**
 * @license React
 * react.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var av=Symbol.for("react.element"),xoe=Symbol.for("react.portal"),woe=Symbol.for("react.fragment"),Soe=Symbol.for("react.strict_mode"),Coe=Symbol.for("react.profiler"),$oe=Symbol.for("react.provider"),Eoe=Symbol.for("react.context"),Ooe=Symbol.for("react.forward_ref"),Poe=Symbol.for("react.suspense"),joe=Symbol.for("react.memo"),Ioe=Symbol.for("react.lazy"),mM=Symbol.iterator;function _oe(e){return e===null||typeof e!="object"?null:(e=mM&&e[mM]||e["@@iterator"],typeof e=="function"?e:null)}var LB={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},zB=Object.assign,FB={};function Ym(e,t,n){this.props=e,this.context=t,this.refs=FB,this.updater=n||LB}Ym.prototype.isReactComponent={};Ym.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")};Ym.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function BB(){}BB.prototype=Ym.prototype;function $_(e,t,n){this.props=e,this.context=t,this.refs=FB,this.updater=n||LB}var E_=$_.prototype=new BB;E_.constructor=$_;zB(E_,Ym.prototype);E_.isPureReactComponent=!0;var hM=Array.isArray,HB=Object.prototype.hasOwnProperty,O_={current:null},VB={key:!0,ref:!0,__self:!0,__source:!0};function WB(e,t,n){var r,o={},i=null,a=null;if(t!=null)for(r in t.ref!==void 0&&(a=t.ref),t.key!==void 0&&(i=""+t.key),t)HB.call(t,r)&&!VB.hasOwnProperty(r)&&(o[r]=t[r]);var s=arguments.length-2;if(s===1)o.children=n;else if(1<s){for(var l=Array(s),u=0;u<s;u++)l[u]=arguments[u+2];o.children=l}if(e&&e.defaultProps)for(r in s=e.defaultProps,s)o[r]===void 0&&(o[r]=s[r]);return{$$typeof:av,type:e,key:i,ref:a,props:o,_owner:O_.current}}function Noe(e,t){return{$$typeof:av,type:e.type,key:t,ref:e.ref,props:e.props,_owner:e._owner}}function P_(e){return typeof e=="object"&&e!==null&&e.$$typeof===av}function Roe(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var pM=/\/+/g;function IC(e,t){return typeof e=="object"&&e!==null&&e.key!=null?Roe(""+e.key):t.toString(36)}function ky(e,t,n,r,o){var i=typeof e;(i==="undefined"||i==="boolean")&&(e=null);var a=!1;if(e===null)a=!0;else switch(i){case"string":case"number":a=!0;break;case"object":switch(e.$$typeof){case av:case xoe:a=!0}}if(a)return a=e,o=o(a),e=r===""?"."+IC(a,0):r,hM(o)?(n="",e!=null&&(n=e.replace(pM,"$&/")+"/"),ky(o,t,n,"",function(u){return u})):o!=null&&(P_(o)&&(o=Noe(o,n+(!o.key||a&&a.key===o.key?"":(""+o.key).replace(pM,"$&/")+"/")+e)),t.push(o)),1;if(a=0,r=r===""?".":r+":",hM(e))for(var s=0;s<e.length;s++){i=e[s];var l=r+IC(i,s);a+=ky(i,t,n,l,o)}else if(l=_oe(e),typeof l=="function")for(e=l.call(e),s=0;!(i=e.next()).done;)i=i.value,l=r+IC(i,s++),a+=ky(i,t,n,l,o);else if(i==="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 a}function y0(e,t,n){if(e==null)return e;var r=[],o=0;return ky(e,r,"","",function(i){return t.call(n,i,o++)}),r}function Toe(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 Vi={current:null},Ay={transition:null},Moe={ReactCurrentDispatcher:Vi,ReactCurrentBatchConfig:Ay,ReactCurrentOwner:O_};function UB(){throw Error("act(...) is not supported in production builds of React.")}_n.Children={map:y0,forEach:function(e,t,n){y0(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return y0(e,function(){t++}),t},toArray:function(e){return y0(e,function(t){return t})||[]},only:function(e){if(!P_(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};_n.Component=Ym;_n.Fragment=woe;_n.Profiler=Coe;_n.PureComponent=$_;_n.StrictMode=Soe;_n.Suspense=Poe;_n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Moe;_n.act=UB;_n.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=zB({},e.props),o=e.key,i=e.ref,a=e._owner;if(t!=null){if(t.ref!==void 0&&(i=t.ref,a=O_.current),t.key!==void 0&&(o=""+t.key),e.type&&e.type.defaultProps)var s=e.type.defaultProps;for(l in t)HB.call(t,l)&&!VB.hasOwnProperty(l)&&(r[l]=t[l]===void 0&&s!==void 0?s[l]:t[l])}var l=arguments.length-2;if(l===1)r.children=n;else if(1<l){s=Array(l);for(var u=0;u<l;u++)s[u]=arguments[u+2];r.children=s}return{$$typeof:av,type:e.type,key:o,ref:i,props:r,_owner:a}};_n.createContext=function(e){return e={$$typeof:Eoe,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null,_defaultValue:null,_globalName:null},e.Provider={$$typeof:$oe,_context:e},e.Consumer=e};_n.createElement=WB;_n.createFactory=function(e){var t=WB.bind(null,e);return t.type=e,t};_n.createRef=function(){return{current:null}};_n.forwardRef=function(e){return{$$typeof:Ooe,render:e}};_n.isValidElement=P_;_n.lazy=function(e){return{$$typeof:Ioe,_payload:{_status:-1,_result:e},_init:Toe}};_n.memo=function(e,t){return{$$typeof:joe,type:e,compare:t===void 0?null:t}};_n.startTransition=function(e){var t=Ay.transition;Ay.transition={};try{e()}finally{Ay.transition=t}};_n.unstable_act=UB;_n.useCallback=function(e,t){return Vi.current.useCallback(e,t)};_n.useContext=function(e){return Vi.current.useContext(e)};_n.useDebugValue=function(){};_n.useDeferredValue=function(e){return Vi.current.useDeferredValue(e)};_n.useEffect=function(e,t){return Vi.current.useEffect(e,t)};_n.useId=function(){return Vi.current.useId()};_n.useImperativeHandle=function(e,t,n){return Vi.current.useImperativeHandle(e,t,n)};_n.useInsertionEffect=function(e,t){return Vi.current.useInsertionEffect(e,t)};_n.useLayoutEffect=function(e,t){return Vi.current.useLayoutEffect(e,t)};_n.useMemo=function(e,t){return Vi.current.useMemo(e,t)};_n.useReducer=function(e,t,n){return Vi.current.useReducer(e,t,n)};_n.useRef=function(e){return Vi.current.useRef(e)};_n.useState=function(e){return Vi.current.useState(e)};_n.useSyncExternalStore=function(e,t,n){return Vi.current.useSyncExternalStore(e,t,n)};_n.useTransition=function(){return Vi.current.useTransition()};_n.version="18.3.1";DB.exports=_n;var c=DB.exports;const ce=ho(c),sv=kB({__proto__:null,default:ce},[c]);/**
 * @license React
 * react-jsx-runtime.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var koe=c,Aoe=Symbol.for("react.element"),Doe=Symbol.for("react.fragment"),Loe=Object.prototype.hasOwnProperty,zoe=koe.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Foe={key:!0,ref:!0,__self:!0,__source:!0};function KB(e,t,n){var r,o={},i=null,a=null;n!==void 0&&(i=""+n),t.key!==void 0&&(i=""+t.key),t.ref!==void 0&&(a=t.ref);for(r in t)Loe.call(t,r)&&!Foe.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:Aoe,type:e,key:i,ref:a,props:o,_owner:zoe.current}}C1.Fragment=Doe;C1.jsx=KB;C1.jsxs=KB;AB.exports=C1;var g=AB.exports,qB={exports:{}},_a={},GB={exports:{}},XB={};/**
 * @license React
 * scheduler.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */(function(e){function t(k,D){var L=k.length;k.push(D);e:for(;0<L;){var B=L-1>>>1,H=k[B];if(0<o(H,D))k[B]=D,k[L]=H,L=B;else break e}}function n(k){return k.length===0?null:k[0]}function r(k){if(k.length===0)return null;var D=k[0],L=k.pop();if(L!==D){k[0]=L;e:for(var B=0,H=k.length,F=H>>>1;B<F;){var W=2*(B+1)-1,q=k[W],G=W+1,te=k[G];if(0>o(q,L))G<H&&0>o(te,q)?(k[B]=te,k[G]=L,B=G):(k[B]=q,k[W]=L,B=W);else if(G<H&&0>o(te,L))k[B]=te,k[G]=L,B=G;else break e}}return D}function o(k,D){var L=k.sortIndex-D.sortIndex;return L!==0?L:k.id-D.id}if(typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var a=Date,s=a.now();e.unstable_now=function(){return a.now()-s}}var l=[],u=[],d=1,f=null,m=3,h=!1,p=!1,b=!1,v=typeof setTimeout=="function"?setTimeout:null,y=typeof clearTimeout=="function"?clearTimeout:null,x=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function w(k){for(var D=n(u);D!==null;){if(D.callback===null)r(u);else if(D.startTime<=k)r(u),D.sortIndex=D.expirationTime,t(l,D);else break;D=n(u)}}function C(k){if(b=!1,w(k),!p)if(n(l)!==null)p=!0,M(S);else{var D=n(u);D!==null&&T(C,D.startTime-k)}}function S(k,D){p=!1,b&&(b=!1,y(O),O=-1),h=!0;var L=m;try{for(w(D),f=n(l);f!==null&&(!(f.expirationTime>D)||k&&!I());){var B=f.callback;if(typeof B=="function"){f.callback=null,m=f.priorityLevel;var H=B(f.expirationTime<=D);D=e.unstable_now(),typeof H=="function"?f.callback=H:f===n(l)&&r(l),w(D)}else r(l);f=n(l)}if(f!==null)var F=!0;else{var W=n(u);W!==null&&T(C,W.startTime-D),F=!1}return F}finally{f=null,m=L,h=!1}}var $=!1,E=null,O=-1,P=5,j=-1;function I(){return!(e.unstable_now()-j<P)}function _(){if(E!==null){var k=e.unstable_now();j=k;var D=!0;try{D=E(!0,k)}finally{D?R():($=!1,E=null)}}else $=!1}var R;if(typeof x=="function")R=function(){x(_)};else if(typeof MessageChannel<"u"){var N=new MessageChannel,A=N.port2;N.port1.onmessage=_,R=function(){A.postMessage(null)}}else R=function(){v(_,0)};function M(k){E=k,$||($=!0,R())}function T(k,D){O=v(function(){k(e.unstable_now())},D)}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(k){k.callback=null},e.unstable_continueExecution=function(){p||h||(p=!0,M(S))},e.unstable_forceFrameRate=function(k){0>k||125<k?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):P=0<k?Math.floor(1e3/k):5},e.unstable_getCurrentPriorityLevel=function(){return m},e.unstable_getFirstCallbackNode=function(){return n(l)},e.unstable_next=function(k){switch(m){case 1:case 2:case 3:var D=3;break;default:D=m}var L=m;m=D;try{return k()}finally{m=L}},e.unstable_pauseExecution=function(){},e.unstable_requestPaint=function(){},e.unstable_runWithPriority=function(k,D){switch(k){case 1:case 2:case 3:case 4:case 5:break;default:k=3}var L=m;m=k;try{return D()}finally{m=L}},e.unstable_scheduleCallback=function(k,D,L){var B=e.unstable_now();switch(typeof L=="object"&&L!==null?(L=L.delay,L=typeof L=="number"&&0<L?B+L:B):L=B,k){case 1:var H=-1;break;case 2:H=250;break;case 5:H=1073741823;break;case 4:H=1e4;break;default:H=5e3}return H=L+H,k={id:d++,callback:D,priorityLevel:k,startTime:L,expirationTime:H,sortIndex:-1},L>B?(k.sortIndex=L,t(u,k),n(l)===null&&k===n(u)&&(b?(y(O),O=-1):b=!0,T(C,L-B))):(k.sortIndex=H,t(l,k),p||h||(p=!0,M(S))),k},e.unstable_shouldYield=I,e.unstable_wrapCallback=function(k){var D=m;return function(){var L=m;m=D;try{return k.apply(this,arguments)}finally{m=L}}}})(XB);GB.exports=XB;var Boe=GB.exports;/**
 * @license React
 * react-dom.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var Hoe=c,ja=Boe;function $t(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 YB=new Set,Qp={};function Ad(e,t){pm(e,t),pm(e+"Capture",t)}function pm(e,t){for(Qp[e]=t,e=0;e<t.length;e++)YB.add(t[e])}var zl=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),gE=Object.prototype.hasOwnProperty,Voe=/^[: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]*$/,gM={},vM={};function Woe(e){return gE.call(vM,e)?!0:gE.call(gM,e)?!1:Voe.test(e)?vM[e]=!0:(gM[e]=!0,!1)}function Uoe(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 Koe(e,t,n,r){if(t===null||typeof t>"u"||Uoe(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 Wi(e,t,n,r,o,i,a){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=i,this.removeEmptyString=a}var ri={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){ri[e]=new Wi(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];ri[t]=new Wi(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){ri[e]=new Wi(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){ri[e]=new Wi(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){ri[e]=new Wi(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){ri[e]=new Wi(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){ri[e]=new Wi(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){ri[e]=new Wi(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){ri[e]=new Wi(e,5,!1,e.toLowerCase(),null,!1,!1)});var j_=/[\-:]([a-z])/g;function I_(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(j_,I_);ri[t]=new Wi(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(j_,I_);ri[t]=new Wi(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(j_,I_);ri[t]=new Wi(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){ri[e]=new Wi(e,1,!1,e.toLowerCase(),null,!1,!1)});ri.xlinkHref=new Wi("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){ri[e]=new Wi(e,1,!1,e.toLowerCase(),null,!0,!0)});function __(e,t,n,r){var o=ri.hasOwnProperty(t)?ri[t]:null;(o!==null?o.type!==0:r||!(2<t.length)||t[0]!=="o"&&t[0]!=="O"||t[1]!=="n"&&t[1]!=="N")&&(Koe(t,n,o,r)&&(n=null),r||o===null?Woe(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 tc=Hoe.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED,b0=Symbol.for("react.element"),Ef=Symbol.for("react.portal"),Of=Symbol.for("react.fragment"),N_=Symbol.for("react.strict_mode"),vE=Symbol.for("react.profiler"),ZB=Symbol.for("react.provider"),JB=Symbol.for("react.context"),R_=Symbol.for("react.forward_ref"),yE=Symbol.for("react.suspense"),bE=Symbol.for("react.suspense_list"),T_=Symbol.for("react.memo"),wc=Symbol.for("react.lazy"),QB=Symbol.for("react.offscreen"),yM=Symbol.iterator;function Lh(e){return e===null||typeof e!="object"?null:(e=yM&&e[yM]||e["@@iterator"],typeof e=="function"?e:null)}var Dr=Object.assign,_C;function pp(e){if(_C===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);_C=t&&t[1]||""}return`
`+_C+e}var NC=!1;function RC(e,t){if(!e||NC)return"";NC=!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(`
`),i=r.stack.split(`
`),a=o.length-1,s=i.length-1;1<=a&&0<=s&&o[a]!==i[s];)s--;for(;1<=a&&0<=s;a--,s--)if(o[a]!==i[s]){if(a!==1||s!==1)do if(a--,s--,0>s||o[a]!==i[s]){var l=`
`+o[a].replace(" at new "," at ");return e.displayName&&l.includes("<anonymous>")&&(l=l.replace("<anonymous>",e.displayName)),l}while(1<=a&&0<=s);break}}}finally{NC=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?pp(e):""}function qoe(e){switch(e.tag){case 5:return pp(e.type);case 16:return pp("Lazy");case 13:return pp("Suspense");case 19:return pp("SuspenseList");case 0:case 2:case 15:return e=RC(e.type,!1),e;case 11:return e=RC(e.type.render,!1),e;case 1:return e=RC(e.type,!0),e;default:return""}}function xE(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 Of:return"Fragment";case Ef:return"Portal";case vE:return"Profiler";case N_:return"StrictMode";case yE:return"Suspense";case bE:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case JB:return(e.displayName||"Context")+".Consumer";case ZB:return(e._context.displayName||"Context")+".Provider";case R_:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case T_:return t=e.displayName||null,t!==null?t:xE(e.type)||"Memo";case wc:t=e._payload,e=e._init;try{return xE(e(t))}catch{}}return null}function Goe(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 xE(t);case 8:return t===N_?"StrictMode":"Mode";case 22:return"Offscreen";case 12:return"Profiler";case 21:return"Scope";case 13:return"Suspense";case 19:return"SuspenseList";case 25:return"TracingMarker";case 1:case 0:case 17:case 2:case 14:case 15:if(typeof t=="function")return t.displayName||t.name||null;if(typeof t=="string")return t}return null}function Gc(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function e9(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Xoe(e){var t=e9(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,i=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return o.call(this)},set:function(a){r=""+a,i.call(this,a)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(a){r=""+a},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function x0(e){e._valueTracker||(e._valueTracker=Xoe(e))}function t9(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=e9(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function Cb(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 wE(e,t){var n=t.checked;return Dr({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function bM(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=Gc(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 n9(e,t){t=t.checked,t!=null&&__(e,"checked",t,!1)}function SE(e,t){n9(e,t);var n=Gc(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")?CE(e,t.type,n):t.hasOwnProperty("defaultValue")&&CE(e,t.type,Gc(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function xM(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 CE(e,t,n){(t!=="number"||Cb(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var gp=Array.isArray;function Zf(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=""+Gc(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 $E(e,t){if(t.dangerouslySetInnerHTML!=null)throw Error($t(91));return Dr({},t,{value:void 0,defaultValue:void 0,children:""+e._wrapperState.initialValue})}function wM(e,t){var n=t.value;if(n==null){if(n=t.children,t=t.defaultValue,n!=null){if(t!=null)throw Error($t(92));if(gp(n)){if(1<n.length)throw Error($t(93));n=n[0]}t=n}t==null&&(t=""),n=t}e._wrapperState={initialValue:Gc(n)}}function r9(e,t){var n=Gc(t.value),r=Gc(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 SM(e){var t=e.textContent;t===e._wrapperState.initialValue&&t!==""&&t!==null&&(e.value=t)}function o9(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 EE(e,t){return e==null||e==="http://www.w3.org/1999/xhtml"?o9(t):e==="http://www.w3.org/2000/svg"&&t==="foreignObject"?"http://www.w3.org/1999/xhtml":e}var w0,i9=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(w0=w0||document.createElement("div"),w0.innerHTML="<svg>"+t.valueOf().toString()+"</svg>",t=w0.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function eg(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var _p={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},Yoe=["Webkit","ms","Moz","O"];Object.keys(_p).forEach(function(e){Yoe.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),_p[t]=_p[e]})});function a9(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||_p.hasOwnProperty(e)&&_p[e]?(""+t).trim():t+"px"}function s9(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,o=a9(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,o):e[n]=o}}var Zoe=Dr({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 OE(e,t){if(t){if(Zoe[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error($t(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error($t(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error($t(61))}if(t.style!=null&&typeof t.style!="object")throw Error($t(62))}}function PE(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 jE=null;function M_(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var IE=null,Jf=null,Qf=null;function CM(e){if(e=uv(e)){if(typeof IE!="function")throw Error($t(280));var t=e.stateNode;t&&(t=j1(t),IE(e.stateNode,e.type,t))}}function l9(e){Jf?Qf?Qf.push(e):Qf=[e]:Jf=e}function c9(){if(Jf){var e=Jf,t=Qf;if(Qf=Jf=null,CM(e),t)for(e=0;e<t.length;e++)CM(t[e])}}function u9(e,t){return e(t)}function d9(){}var TC=!1;function f9(e,t,n){if(TC)return e(t,n);TC=!0;try{return u9(e,t,n)}finally{TC=!1,(Jf!==null||Qf!==null)&&(d9(),c9())}}function tg(e,t){var n=e.stateNode;if(n===null)return null;var r=j1(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($t(231,t,typeof n));return n}var _E=!1;if(zl)try{var zh={};Object.defineProperty(zh,"passive",{get:function(){_E=!0}}),window.addEventListener("test",zh,zh),window.removeEventListener("test",zh,zh)}catch{_E=!1}function Joe(e,t,n,r,o,i,a,s,l){var u=Array.prototype.slice.call(arguments,3);try{t.apply(n,u)}catch(d){this.onError(d)}}var Np=!1,$b=null,Eb=!1,NE=null,Qoe={onError:function(e){Np=!0,$b=e}};function eie(e,t,n,r,o,i,a,s,l){Np=!1,$b=null,Joe.apply(Qoe,arguments)}function tie(e,t,n,r,o,i,a,s,l){if(eie.apply(this,arguments),Np){if(Np){var u=$b;Np=!1,$b=null}else throw Error($t(198));Eb||(Eb=!0,NE=u)}}function Dd(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 m9(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 $M(e){if(Dd(e)!==e)throw Error($t(188))}function nie(e){var t=e.alternate;if(!t){if(t=Dd(e),t===null)throw Error($t(188));return t!==e?null:e}for(var n=e,r=t;;){var o=n.return;if(o===null)break;var i=o.alternate;if(i===null){if(r=o.return,r!==null){n=r;continue}break}if(o.child===i.child){for(i=o.child;i;){if(i===n)return $M(o),e;if(i===r)return $M(o),t;i=i.sibling}throw Error($t(188))}if(n.return!==r.return)n=o,r=i;else{for(var a=!1,s=o.child;s;){if(s===n){a=!0,n=o,r=i;break}if(s===r){a=!0,r=o,n=i;break}s=s.sibling}if(!a){for(s=i.child;s;){if(s===n){a=!0,n=i,r=o;break}if(s===r){a=!0,r=i,n=o;break}s=s.sibling}if(!a)throw Error($t(189))}}if(n.alternate!==r)throw Error($t(190))}if(n.tag!==3)throw Error($t(188));return n.stateNode.current===n?e:t}function h9(e){return e=nie(e),e!==null?p9(e):null}function p9(e){if(e.tag===5||e.tag===6)return e;for(e=e.child;e!==null;){var t=p9(e);if(t!==null)return t;e=e.sibling}return null}var g9=ja.unstable_scheduleCallback,EM=ja.unstable_cancelCallback,rie=ja.unstable_shouldYield,oie=ja.unstable_requestPaint,Qr=ja.unstable_now,iie=ja.unstable_getCurrentPriorityLevel,k_=ja.unstable_ImmediatePriority,v9=ja.unstable_UserBlockingPriority,Ob=ja.unstable_NormalPriority,aie=ja.unstable_LowPriority,y9=ja.unstable_IdlePriority,$1=null,ol=null;function sie(e){if(ol&&typeof ol.onCommitFiberRoot=="function")try{ol.onCommitFiberRoot($1,e,void 0,(e.current.flags&128)===128)}catch{}}var _s=Math.clz32?Math.clz32:uie,lie=Math.log,cie=Math.LN2;function uie(e){return e>>>=0,e===0?32:31-(lie(e)/cie|0)|0}var S0=64,C0=4194304;function vp(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 Pb(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,o=e.suspendedLanes,i=e.pingedLanes,a=n&268435455;if(a!==0){var s=a&~o;s!==0?r=vp(s):(i&=a,i!==0&&(r=vp(i)))}else a=n&~o,a!==0?r=vp(a):i!==0&&(r=vp(i));if(r===0)return 0;if(t!==0&&t!==r&&!(t&o)&&(o=r&-r,i=t&-t,o>=i||o===16&&(i&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-_s(t),o=1<<n,r|=e[n],t&=~o;return r}function die(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 fie(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,o=e.expirationTimes,i=e.pendingLanes;0<i;){var a=31-_s(i),s=1<<a,l=o[a];l===-1?(!(s&n)||s&r)&&(o[a]=die(s,t)):l<=t&&(e.expiredLanes|=s),i&=~s}}function RE(e){return e=e.pendingLanes&-1073741825,e!==0?e:e&1073741824?1073741824:0}function b9(){var e=S0;return S0<<=1,!(S0&4194240)&&(S0=64),e}function MC(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function lv(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-_s(t),e[t]=n}function mie(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-_s(n),i=1<<o;t[o]=0,r[o]=-1,e[o]=-1,n&=~i}}function A_(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-_s(n),o=1<<r;o&t|e[r]&t&&(e[r]|=t),n&=~o}}var er=0;function x9(e){return e&=-e,1<e?4<e?e&268435455?16:536870912:4:1}var w9,D_,S9,C9,$9,TE=!1,$0=[],kc=null,Ac=null,Dc=null,ng=new Map,rg=new Map,Oc=[],hie="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 OM(e,t){switch(e){case"focusin":case"focusout":kc=null;break;case"dragenter":case"dragleave":Ac=null;break;case"mouseover":case"mouseout":Dc=null;break;case"pointerover":case"pointerout":ng.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":rg.delete(t.pointerId)}}function Fh(e,t,n,r,o,i){return e===null||e.nativeEvent!==i?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:i,targetContainers:[o]},t!==null&&(t=uv(t),t!==null&&D_(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,o!==null&&t.indexOf(o)===-1&&t.push(o),e)}function pie(e,t,n,r,o){switch(t){case"focusin":return kc=Fh(kc,e,t,n,r,o),!0;case"dragenter":return Ac=Fh(Ac,e,t,n,r,o),!0;case"mouseover":return Dc=Fh(Dc,e,t,n,r,o),!0;case"pointerover":var i=o.pointerId;return ng.set(i,Fh(ng.get(i)||null,e,t,n,r,o)),!0;case"gotpointercapture":return i=o.pointerId,rg.set(i,Fh(rg.get(i)||null,e,t,n,r,o)),!0}return!1}function E9(e){var t=Du(e.target);if(t!==null){var n=Dd(t);if(n!==null){if(t=n.tag,t===13){if(t=m9(n),t!==null){e.blockedOn=t,$9(e.priority,function(){S9(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 Dy(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=ME(e.domEventName,e.eventSystemFlags,t[0],e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);jE=r,n.target.dispatchEvent(r),jE=null}else return t=uv(n),t!==null&&D_(t),e.blockedOn=n,!1;t.shift()}return!0}function PM(e,t,n){Dy(e)&&n.delete(t)}function gie(){TE=!1,kc!==null&&Dy(kc)&&(kc=null),Ac!==null&&Dy(Ac)&&(Ac=null),Dc!==null&&Dy(Dc)&&(Dc=null),ng.forEach(PM),rg.forEach(PM)}function Bh(e,t){e.blockedOn===t&&(e.blockedOn=null,TE||(TE=!0,ja.unstable_scheduleCallback(ja.unstable_NormalPriority,gie)))}function og(e){function t(o){return Bh(o,e)}if(0<$0.length){Bh($0[0],e);for(var n=1;n<$0.length;n++){var r=$0[n];r.blockedOn===e&&(r.blockedOn=null)}}for(kc!==null&&Bh(kc,e),Ac!==null&&Bh(Ac,e),Dc!==null&&Bh(Dc,e),ng.forEach(t),rg.forEach(t),n=0;n<Oc.length;n++)r=Oc[n],r.blockedOn===e&&(r.blockedOn=null);for(;0<Oc.length&&(n=Oc[0],n.blockedOn===null);)E9(n),n.blockedOn===null&&Oc.shift()}var em=tc.ReactCurrentBatchConfig,jb=!0;function vie(e,t,n,r){var o=er,i=em.transition;em.transition=null;try{er=1,L_(e,t,n,r)}finally{er=o,em.transition=i}}function yie(e,t,n,r){var o=er,i=em.transition;em.transition=null;try{er=4,L_(e,t,n,r)}finally{er=o,em.transition=i}}function L_(e,t,n,r){if(jb){var o=ME(e,t,n,r);if(o===null)WC(e,t,r,Ib,n),OM(e,r);else if(pie(o,e,t,n,r))r.stopPropagation();else if(OM(e,r),t&4&&-1<hie.indexOf(e)){for(;o!==null;){var i=uv(o);if(i!==null&&w9(i),i=ME(e,t,n,r),i===null&&WC(e,t,r,Ib,n),i===o)break;o=i}o!==null&&r.stopPropagation()}else WC(e,t,r,null,n)}}var Ib=null;function ME(e,t,n,r){if(Ib=null,e=M_(r),e=Du(e),e!==null)if(t=Dd(e),t===null)e=null;else if(n=t.tag,n===13){if(e=m9(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 Ib=e,null}function O9(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(iie()){case k_:return 1;case v9:return 4;case Ob:case aie:return 16;case y9:return 536870912;default:return 16}default:return 16}}var Ic=null,z_=null,Ly=null;function P9(){if(Ly)return Ly;var e,t=z_,n=t.length,r,o="value"in Ic?Ic.value:Ic.textContent,i=o.length;for(e=0;e<n&&t[e]===o[e];e++);var a=n-e;for(r=1;r<=a&&t[n-r]===o[i-r];r++);return Ly=o.slice(e,1<r?1-r:void 0)}function zy(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 E0(){return!0}function jM(){return!1}function Na(e){function t(n,r,o,i,a){this._reactName=n,this._targetInst=o,this.type=r,this.nativeEvent=i,this.target=a,this.currentTarget=null;for(var s in e)e.hasOwnProperty(s)&&(n=e[s],this[s]=n?n(i):i[s]);return this.isDefaultPrevented=(i.defaultPrevented!=null?i.defaultPrevented:i.returnValue===!1)?E0:jM,this.isPropagationStopped=jM,this}return Dr(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=E0)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=E0)},persist:function(){},isPersistent:E0}),t}var Zm={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},F_=Na(Zm),cv=Dr({},Zm,{view:0,detail:0}),bie=Na(cv),kC,AC,Hh,E1=Dr({},cv,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:B_,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!==Hh&&(Hh&&e.type==="mousemove"?(kC=e.screenX-Hh.screenX,AC=e.screenY-Hh.screenY):AC=kC=0,Hh=e),kC)},movementY:function(e){return"movementY"in e?e.movementY:AC}}),IM=Na(E1),xie=Dr({},E1,{dataTransfer:0}),wie=Na(xie),Sie=Dr({},cv,{relatedTarget:0}),DC=Na(Sie),Cie=Dr({},Zm,{animationName:0,elapsedTime:0,pseudoElement:0}),$ie=Na(Cie),Eie=Dr({},Zm,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),Oie=Na(Eie),Pie=Dr({},Zm,{data:0}),_M=Na(Pie),jie={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Iie={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"},_ie={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function Nie(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=_ie[e])?!!t[e]:!1}function B_(){return Nie}var Rie=Dr({},cv,{key:function(e){if(e.key){var t=jie[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=zy(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?Iie[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:B_,charCode:function(e){return e.type==="keypress"?zy(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?zy(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),Tie=Na(Rie),Mie=Dr({},E1,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),NM=Na(Mie),kie=Dr({},cv,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:B_}),Aie=Na(kie),Die=Dr({},Zm,{propertyName:0,elapsedTime:0,pseudoElement:0}),Lie=Na(Die),zie=Dr({},E1,{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}),Fie=Na(zie),Bie=[9,13,27,32],H_=zl&&"CompositionEvent"in window,Rp=null;zl&&"documentMode"in document&&(Rp=document.documentMode);var Hie=zl&&"TextEvent"in window&&!Rp,j9=zl&&(!H_||Rp&&8<Rp&&11>=Rp),RM=" ",TM=!1;function I9(e,t){switch(e){case"keyup":return Bie.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function _9(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Pf=!1;function Vie(e,t){switch(e){case"compositionend":return _9(t);case"keypress":return t.which!==32?null:(TM=!0,RM);case"textInput":return e=t.data,e===RM&&TM?null:e;default:return null}}function Wie(e,t){if(Pf)return e==="compositionend"||!H_&&I9(e,t)?(e=P9(),Ly=z_=Ic=null,Pf=!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 j9&&t.locale!=="ko"?null:t.data;default:return null}}var Uie={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 MM(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Uie[e.type]:t==="textarea"}function N9(e,t,n,r){l9(r),t=_b(t,"onChange"),0<t.length&&(n=new F_("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var Tp=null,ig=null;function Kie(e){H9(e,0)}function O1(e){var t=_f(e);if(t9(t))return e}function qie(e,t){if(e==="change")return t}var R9=!1;if(zl){var LC;if(zl){var zC="oninput"in document;if(!zC){var kM=document.createElement("div");kM.setAttribute("oninput","return;"),zC=typeof kM.oninput=="function"}LC=zC}else LC=!1;R9=LC&&(!document.documentMode||9<document.documentMode)}function AM(){Tp&&(Tp.detachEvent("onpropertychange",T9),ig=Tp=null)}function T9(e){if(e.propertyName==="value"&&O1(ig)){var t=[];N9(t,ig,e,M_(e)),f9(Kie,t)}}function Gie(e,t,n){e==="focusin"?(AM(),Tp=t,ig=n,Tp.attachEvent("onpropertychange",T9)):e==="focusout"&&AM()}function Xie(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return O1(ig)}function Yie(e,t){if(e==="click")return O1(t)}function Zie(e,t){if(e==="input"||e==="change")return O1(t)}function Jie(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var As=typeof Object.is=="function"?Object.is:Jie;function ag(e,t){if(As(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(!gE.call(t,o)||!As(e[o],t[o]))return!1}return!0}function DM(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function LM(e,t){var n=DM(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=DM(n)}}function M9(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?M9(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function k9(){for(var e=window,t=Cb();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=Cb(e.document)}return t}function V_(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 Qie(e){var t=k9(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&M9(n.ownerDocument.documentElement,n)){if(r!==null&&V_(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,i=Math.min(r.start,o);r=r.end===void 0?i:Math.min(r.end,o),!e.extend&&i>r&&(o=r,r=i,i=o),o=LM(n,i);var a=LM(n,r);o&&a&&(e.rangeCount!==1||e.anchorNode!==o.node||e.anchorOffset!==o.offset||e.focusNode!==a.node||e.focusOffset!==a.offset)&&(t=t.createRange(),t.setStart(o.node,o.offset),e.removeAllRanges(),i>r?(e.addRange(t),e.extend(a.node,a.offset)):(t.setEnd(a.node,a.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 eae=zl&&"documentMode"in document&&11>=document.documentMode,jf=null,kE=null,Mp=null,AE=!1;function zM(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;AE||jf==null||jf!==Cb(r)||(r=jf,"selectionStart"in r&&V_(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}),Mp&&ag(Mp,r)||(Mp=r,r=_b(kE,"onSelect"),0<r.length&&(t=new F_("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=jf)))}function O0(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var If={animationend:O0("Animation","AnimationEnd"),animationiteration:O0("Animation","AnimationIteration"),animationstart:O0("Animation","AnimationStart"),transitionend:O0("Transition","TransitionEnd")},FC={},A9={};zl&&(A9=document.createElement("div").style,"AnimationEvent"in window||(delete If.animationend.animation,delete If.animationiteration.animation,delete If.animationstart.animation),"TransitionEvent"in window||delete If.transitionend.transition);function P1(e){if(FC[e])return FC[e];if(!If[e])return e;var t=If[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in A9)return FC[e]=t[n];return e}var D9=P1("animationend"),L9=P1("animationiteration"),z9=P1("animationstart"),F9=P1("transitionend"),B9=new Map,FM="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 au(e,t){B9.set(e,t),Ad(t,[e])}for(var BC=0;BC<FM.length;BC++){var HC=FM[BC],tae=HC.toLowerCase(),nae=HC[0].toUpperCase()+HC.slice(1);au(tae,"on"+nae)}au(D9,"onAnimationEnd");au(L9,"onAnimationIteration");au(z9,"onAnimationStart");au("dblclick","onDoubleClick");au("focusin","onFocus");au("focusout","onBlur");au(F9,"onTransitionEnd");pm("onMouseEnter",["mouseout","mouseover"]);pm("onMouseLeave",["mouseout","mouseover"]);pm("onPointerEnter",["pointerout","pointerover"]);pm("onPointerLeave",["pointerout","pointerover"]);Ad("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));Ad("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));Ad("onBeforeInput",["compositionend","keypress","textInput","paste"]);Ad("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));Ad("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));Ad("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var yp="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(" "),rae=new Set("cancel close invalid load scroll toggle".split(" ").concat(yp));function BM(e,t,n){var r=e.type||"unknown-event";e.currentTarget=n,tie(r,t,void 0,e),e.currentTarget=null}function H9(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 i=void 0;if(t)for(var a=r.length-1;0<=a;a--){var s=r[a],l=s.instance,u=s.currentTarget;if(s=s.listener,l!==i&&o.isPropagationStopped())break e;BM(o,s,u),i=l}else for(a=0;a<r.length;a++){if(s=r[a],l=s.instance,u=s.currentTarget,s=s.listener,l!==i&&o.isPropagationStopped())break e;BM(o,s,u),i=l}}}if(Eb)throw e=NE,Eb=!1,NE=null,e}function vr(e,t){var n=t[BE];n===void 0&&(n=t[BE]=new Set);var r=e+"__bubble";n.has(r)||(V9(t,e,2,!1),n.add(r))}function VC(e,t,n){var r=0;t&&(r|=4),V9(n,e,r,t)}var P0="_reactListening"+Math.random().toString(36).slice(2);function sg(e){if(!e[P0]){e[P0]=!0,YB.forEach(function(n){n!=="selectionchange"&&(rae.has(n)||VC(n,!1,e),VC(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[P0]||(t[P0]=!0,VC("selectionchange",!1,t))}}function V9(e,t,n,r){switch(O9(t)){case 1:var o=vie;break;case 4:o=yie;break;default:o=L_}n=o.bind(null,t,n,e),o=void 0,!_E||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 WC(e,t,n,r,o){var i=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var a=r.tag;if(a===3||a===4){var s=r.stateNode.containerInfo;if(s===o||s.nodeType===8&&s.parentNode===o)break;if(a===4)for(a=r.return;a!==null;){var l=a.tag;if((l===3||l===4)&&(l=a.stateNode.containerInfo,l===o||l.nodeType===8&&l.parentNode===o))return;a=a.return}for(;s!==null;){if(a=Du(s),a===null)return;if(l=a.tag,l===5||l===6){r=i=a;continue e}s=s.parentNode}}r=r.return}f9(function(){var u=i,d=M_(n),f=[];e:{var m=B9.get(e);if(m!==void 0){var h=F_,p=e;switch(e){case"keypress":if(zy(n)===0)break e;case"keydown":case"keyup":h=Tie;break;case"focusin":p="focus",h=DC;break;case"focusout":p="blur",h=DC;break;case"beforeblur":case"afterblur":h=DC;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":h=IM;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":h=wie;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":h=Aie;break;case D9:case L9:case z9:h=$ie;break;case F9:h=Lie;break;case"scroll":h=bie;break;case"wheel":h=Fie;break;case"copy":case"cut":case"paste":h=Oie;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":h=NM}var b=(t&4)!==0,v=!b&&e==="scroll",y=b?m!==null?m+"Capture":null:m;b=[];for(var x=u,w;x!==null;){w=x;var C=w.stateNode;if(w.tag===5&&C!==null&&(w=C,y!==null&&(C=tg(x,y),C!=null&&b.push(lg(x,C,w)))),v)break;x=x.return}0<b.length&&(m=new h(m,p,null,n,d),f.push({event:m,listeners:b}))}}if(!(t&7)){e:{if(m=e==="mouseover"||e==="pointerover",h=e==="mouseout"||e==="pointerout",m&&n!==jE&&(p=n.relatedTarget||n.fromElement)&&(Du(p)||p[Fl]))break e;if((h||m)&&(m=d.window===d?d:(m=d.ownerDocument)?m.defaultView||m.parentWindow:window,h?(p=n.relatedTarget||n.toElement,h=u,p=p?Du(p):null,p!==null&&(v=Dd(p),p!==v||p.tag!==5&&p.tag!==6)&&(p=null)):(h=null,p=u),h!==p)){if(b=IM,C="onMouseLeave",y="onMouseEnter",x="mouse",(e==="pointerout"||e==="pointerover")&&(b=NM,C="onPointerLeave",y="onPointerEnter",x="pointer"),v=h==null?m:_f(h),w=p==null?m:_f(p),m=new b(C,x+"leave",h,n,d),m.target=v,m.relatedTarget=w,C=null,Du(d)===u&&(b=new b(y,x+"enter",p,n,d),b.target=w,b.relatedTarget=v,C=b),v=C,h&&p)t:{for(b=h,y=p,x=0,w=b;w;w=of(w))x++;for(w=0,C=y;C;C=of(C))w++;for(;0<x-w;)b=of(b),x--;for(;0<w-x;)y=of(y),w--;for(;x--;){if(b===y||y!==null&&b===y.alternate)break t;b=of(b),y=of(y)}b=null}else b=null;h!==null&&HM(f,m,h,b,!1),p!==null&&v!==null&&HM(f,v,p,b,!0)}}e:{if(m=u?_f(u):window,h=m.nodeName&&m.nodeName.toLowerCase(),h==="select"||h==="input"&&m.type==="file")var S=qie;else if(MM(m))if(R9)S=Zie;else{S=Xie;var $=Gie}else(h=m.nodeName)&&h.toLowerCase()==="input"&&(m.type==="checkbox"||m.type==="radio")&&(S=Yie);if(S&&(S=S(e,u))){N9(f,S,n,d);break e}$&&$(e,m,u),e==="focusout"&&($=m._wrapperState)&&$.controlled&&m.type==="number"&&CE(m,"number",m.value)}switch($=u?_f(u):window,e){case"focusin":(MM($)||$.contentEditable==="true")&&(jf=$,kE=u,Mp=null);break;case"focusout":Mp=kE=jf=null;break;case"mousedown":AE=!0;break;case"contextmenu":case"mouseup":case"dragend":AE=!1,zM(f,n,d);break;case"selectionchange":if(eae)break;case"keydown":case"keyup":zM(f,n,d)}var E;if(H_)e:{switch(e){case"compositionstart":var O="onCompositionStart";break e;case"compositionend":O="onCompositionEnd";break e;case"compositionupdate":O="onCompositionUpdate";break e}O=void 0}else Pf?I9(e,n)&&(O="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(O="onCompositionStart");O&&(j9&&n.locale!=="ko"&&(Pf||O!=="onCompositionStart"?O==="onCompositionEnd"&&Pf&&(E=P9()):(Ic=d,z_="value"in Ic?Ic.value:Ic.textContent,Pf=!0)),$=_b(u,O),0<$.length&&(O=new _M(O,e,null,n,d),f.push({event:O,listeners:$}),E?O.data=E:(E=_9(n),E!==null&&(O.data=E)))),(E=Hie?Vie(e,n):Wie(e,n))&&(u=_b(u,"onBeforeInput"),0<u.length&&(d=new _M("onBeforeInput","beforeinput",null,n,d),f.push({event:d,listeners:u}),d.data=E))}H9(f,t)})}function lg(e,t,n){return{instance:e,listener:t,currentTarget:n}}function _b(e,t){for(var n=t+"Capture",r=[];e!==null;){var o=e,i=o.stateNode;o.tag===5&&i!==null&&(o=i,i=tg(e,n),i!=null&&r.unshift(lg(e,i,o)),i=tg(e,t),i!=null&&r.push(lg(e,i,o))),e=e.return}return r}function of(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5);return e||null}function HM(e,t,n,r,o){for(var i=t._reactName,a=[];n!==null&&n!==r;){var s=n,l=s.alternate,u=s.stateNode;if(l!==null&&l===r)break;s.tag===5&&u!==null&&(s=u,o?(l=tg(n,i),l!=null&&a.unshift(lg(n,l,s))):o||(l=tg(n,i),l!=null&&a.push(lg(n,l,s)))),n=n.return}a.length!==0&&e.push({event:t,listeners:a})}var oae=/\r\n?/g,iae=/\u0000|\uFFFD/g;function VM(e){return(typeof e=="string"?e:""+e).replace(oae,`
`).replace(iae,"")}function j0(e,t,n){if(t=VM(t),VM(e)!==t&&n)throw Error($t(425))}function Nb(){}var DE=null,LE=null;function zE(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 FE=typeof setTimeout=="function"?setTimeout:void 0,aae=typeof clearTimeout=="function"?clearTimeout:void 0,WM=typeof Promise=="function"?Promise:void 0,sae=typeof queueMicrotask=="function"?queueMicrotask:typeof WM<"u"?function(e){return WM.resolve(null).then(e).catch(lae)}:FE;function lae(e){setTimeout(function(){throw e})}function UC(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),og(t);return}r--}else n!=="$"&&n!=="$?"&&n!=="$!"||r++;n=o}while(n);og(t)}function Lc(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 UM(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 Jm=Math.random().toString(36).slice(2),tl="__reactFiber$"+Jm,cg="__reactProps$"+Jm,Fl="__reactContainer$"+Jm,BE="__reactEvents$"+Jm,cae="__reactListeners$"+Jm,uae="__reactHandles$"+Jm;function Du(e){var t=e[tl];if(t)return t;for(var n=e.parentNode;n;){if(t=n[Fl]||n[tl]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=UM(e);e!==null;){if(n=e[tl])return n;e=UM(e)}return t}e=n,n=e.parentNode}return null}function uv(e){return e=e[tl]||e[Fl],!e||e.tag!==5&&e.tag!==6&&e.tag!==13&&e.tag!==3?null:e}function _f(e){if(e.tag===5||e.tag===6)return e.stateNode;throw Error($t(33))}function j1(e){return e[cg]||null}var HE=[],Nf=-1;function su(e){return{current:e}}function xr(e){0>Nf||(e.current=HE[Nf],HE[Nf]=null,Nf--)}function fr(e,t){Nf++,HE[Nf]=e.current,e.current=t}var Xc={},wi=su(Xc),ea=su(!1),cd=Xc;function gm(e,t){var n=e.type.contextTypes;if(!n)return Xc;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var o={},i;for(i in n)o[i]=t[i];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=o),o}function ta(e){return e=e.childContextTypes,e!=null}function Rb(){xr(ea),xr(wi)}function KM(e,t,n){if(wi.current!==Xc)throw Error($t(168));fr(wi,t),fr(ea,n)}function W9(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($t(108,Goe(e)||"Unknown",o));return Dr({},n,r)}function Tb(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||Xc,cd=wi.current,fr(wi,e),fr(ea,ea.current),!0}function qM(e,t,n){var r=e.stateNode;if(!r)throw Error($t(169));n?(e=W9(e,t,cd),r.__reactInternalMemoizedMergedChildContext=e,xr(ea),xr(wi),fr(wi,e)):xr(ea),fr(ea,n)}var $l=null,I1=!1,KC=!1;function U9(e){$l===null?$l=[e]:$l.push(e)}function dae(e){I1=!0,U9(e)}function lu(){if(!KC&&$l!==null){KC=!0;var e=0,t=er;try{var n=$l;for(er=1;e<n.length;e++){var r=n[e];do r=r(!0);while(r!==null)}$l=null,I1=!1}catch(o){throw $l!==null&&($l=$l.slice(e+1)),g9(k_,lu),o}finally{er=t,KC=!1}}return null}var Rf=[],Tf=0,Mb=null,kb=0,qa=[],Ga=0,ud=null,Il=1,_l="";function ju(e,t){Rf[Tf++]=kb,Rf[Tf++]=Mb,Mb=e,kb=t}function K9(e,t,n){qa[Ga++]=Il,qa[Ga++]=_l,qa[Ga++]=ud,ud=e;var r=Il;e=_l;var o=32-_s(r)-1;r&=~(1<<o),n+=1;var i=32-_s(t)+o;if(30<i){var a=o-o%5;i=(r&(1<<a)-1).toString(32),r>>=a,o-=a,Il=1<<32-_s(t)+o|n<<o|r,_l=i+e}else Il=1<<i|n<<o|r,_l=e}function W_(e){e.return!==null&&(ju(e,1),K9(e,1,0))}function U_(e){for(;e===Mb;)Mb=Rf[--Tf],Rf[Tf]=null,kb=Rf[--Tf],Rf[Tf]=null;for(;e===ud;)ud=qa[--Ga],qa[Ga]=null,_l=qa[--Ga],qa[Ga]=null,Il=qa[--Ga],qa[Ga]=null}var Oa=null,Ca=null,Sr=!1,Es=null;function q9(e,t){var n=Ya(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 GM(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,Oa=e,Ca=Lc(t.firstChild),!0):!1;case 6:return t=e.pendingProps===""||t.nodeType!==3?null:t,t!==null?(e.stateNode=t,Oa=e,Ca=null,!0):!1;case 13:return t=t.nodeType!==8?null:t,t!==null?(n=ud!==null?{id:Il,overflow:_l}:null,e.memoizedState={dehydrated:t,treeContext:n,retryLane:1073741824},n=Ya(18,null,null,0),n.stateNode=t,n.return=e,e.child=n,Oa=e,Ca=null,!0):!1;default:return!1}}function VE(e){return(e.mode&1)!==0&&(e.flags&128)===0}function WE(e){if(Sr){var t=Ca;if(t){var n=t;if(!GM(e,t)){if(VE(e))throw Error($t(418));t=Lc(n.nextSibling);var r=Oa;t&&GM(e,t)?q9(r,n):(e.flags=e.flags&-4097|2,Sr=!1,Oa=e)}}else{if(VE(e))throw Error($t(418));e.flags=e.flags&-4097|2,Sr=!1,Oa=e}}}function XM(e){for(e=e.return;e!==null&&e.tag!==5&&e.tag!==3&&e.tag!==13;)e=e.return;Oa=e}function I0(e){if(e!==Oa)return!1;if(!Sr)return XM(e),Sr=!0,!1;var t;if((t=e.tag!==3)&&!(t=e.tag!==5)&&(t=e.type,t=t!=="head"&&t!=="body"&&!zE(e.type,e.memoizedProps)),t&&(t=Ca)){if(VE(e))throw G9(),Error($t(418));for(;t;)q9(e,t),t=Lc(t.nextSibling)}if(XM(e),e.tag===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error($t(317));e:{for(e=e.nextSibling,t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"){if(t===0){Ca=Lc(e.nextSibling);break e}t--}else n!=="$"&&n!=="$!"&&n!=="$?"||t++}e=e.nextSibling}Ca=null}}else Ca=Oa?Lc(e.stateNode.nextSibling):null;return!0}function G9(){for(var e=Ca;e;)e=Lc(e.nextSibling)}function vm(){Ca=Oa=null,Sr=!1}function K_(e){Es===null?Es=[e]:Es.push(e)}var fae=tc.ReactCurrentBatchConfig;function Vh(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($t(309));var r=n.stateNode}if(!r)throw Error($t(147,e));var o=r,i=""+e;return t!==null&&t.ref!==null&&typeof t.ref=="function"&&t.ref._stringRef===i?t.ref:(t=function(a){var s=o.refs;a===null?delete s[i]:s[i]=a},t._stringRef=i,t)}if(typeof e!="string")throw Error($t(284));if(!n._owner)throw Error($t(290,e))}return e}function _0(e,t){throw e=Object.prototype.toString.call(t),Error($t(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e))}function YM(e){var t=e._init;return t(e._payload)}function X9(e){function t(y,x){if(e){var w=y.deletions;w===null?(y.deletions=[x],y.flags|=16):w.push(x)}}function n(y,x){if(!e)return null;for(;x!==null;)t(y,x),x=x.sibling;return null}function r(y,x){for(y=new Map;x!==null;)x.key!==null?y.set(x.key,x):y.set(x.index,x),x=x.sibling;return y}function o(y,x){return y=Hc(y,x),y.index=0,y.sibling=null,y}function i(y,x,w){return y.index=w,e?(w=y.alternate,w!==null?(w=w.index,w<x?(y.flags|=2,x):w):(y.flags|=2,x)):(y.flags|=1048576,x)}function a(y){return e&&y.alternate===null&&(y.flags|=2),y}function s(y,x,w,C){return x===null||x.tag!==6?(x=QC(w,y.mode,C),x.return=y,x):(x=o(x,w),x.return=y,x)}function l(y,x,w,C){var S=w.type;return S===Of?d(y,x,w.props.children,C,w.key):x!==null&&(x.elementType===S||typeof S=="object"&&S!==null&&S.$$typeof===wc&&YM(S)===x.type)?(C=o(x,w.props),C.ref=Vh(y,x,w),C.return=y,C):(C=Ky(w.type,w.key,w.props,null,y.mode,C),C.ref=Vh(y,x,w),C.return=y,C)}function u(y,x,w,C){return x===null||x.tag!==4||x.stateNode.containerInfo!==w.containerInfo||x.stateNode.implementation!==w.implementation?(x=e$(w,y.mode,C),x.return=y,x):(x=o(x,w.children||[]),x.return=y,x)}function d(y,x,w,C,S){return x===null||x.tag!==7?(x=Qu(w,y.mode,C,S),x.return=y,x):(x=o(x,w),x.return=y,x)}function f(y,x,w){if(typeof x=="string"&&x!==""||typeof x=="number")return x=QC(""+x,y.mode,w),x.return=y,x;if(typeof x=="object"&&x!==null){switch(x.$$typeof){case b0:return w=Ky(x.type,x.key,x.props,null,y.mode,w),w.ref=Vh(y,null,x),w.return=y,w;case Ef:return x=e$(x,y.mode,w),x.return=y,x;case wc:var C=x._init;return f(y,C(x._payload),w)}if(gp(x)||Lh(x))return x=Qu(x,y.mode,w,null),x.return=y,x;_0(y,x)}return null}function m(y,x,w,C){var S=x!==null?x.key:null;if(typeof w=="string"&&w!==""||typeof w=="number")return S!==null?null:s(y,x,""+w,C);if(typeof w=="object"&&w!==null){switch(w.$$typeof){case b0:return w.key===S?l(y,x,w,C):null;case Ef:return w.key===S?u(y,x,w,C):null;case wc:return S=w._init,m(y,x,S(w._payload),C)}if(gp(w)||Lh(w))return S!==null?null:d(y,x,w,C,null);_0(y,w)}return null}function h(y,x,w,C,S){if(typeof C=="string"&&C!==""||typeof C=="number")return y=y.get(w)||null,s(x,y,""+C,S);if(typeof C=="object"&&C!==null){switch(C.$$typeof){case b0:return y=y.get(C.key===null?w:C.key)||null,l(x,y,C,S);case Ef:return y=y.get(C.key===null?w:C.key)||null,u(x,y,C,S);case wc:var $=C._init;return h(y,x,w,$(C._payload),S)}if(gp(C)||Lh(C))return y=y.get(w)||null,d(x,y,C,S,null);_0(x,C)}return null}function p(y,x,w,C){for(var S=null,$=null,E=x,O=x=0,P=null;E!==null&&O<w.length;O++){E.index>O?(P=E,E=null):P=E.sibling;var j=m(y,E,w[O],C);if(j===null){E===null&&(E=P);break}e&&E&&j.alternate===null&&t(y,E),x=i(j,x,O),$===null?S=j:$.sibling=j,$=j,E=P}if(O===w.length)return n(y,E),Sr&&ju(y,O),S;if(E===null){for(;O<w.length;O++)E=f(y,w[O],C),E!==null&&(x=i(E,x,O),$===null?S=E:$.sibling=E,$=E);return Sr&&ju(y,O),S}for(E=r(y,E);O<w.length;O++)P=h(E,y,O,w[O],C),P!==null&&(e&&P.alternate!==null&&E.delete(P.key===null?O:P.key),x=i(P,x,O),$===null?S=P:$.sibling=P,$=P);return e&&E.forEach(function(I){return t(y,I)}),Sr&&ju(y,O),S}function b(y,x,w,C){var S=Lh(w);if(typeof S!="function")throw Error($t(150));if(w=S.call(w),w==null)throw Error($t(151));for(var $=S=null,E=x,O=x=0,P=null,j=w.next();E!==null&&!j.done;O++,j=w.next()){E.index>O?(P=E,E=null):P=E.sibling;var I=m(y,E,j.value,C);if(I===null){E===null&&(E=P);break}e&&E&&I.alternate===null&&t(y,E),x=i(I,x,O),$===null?S=I:$.sibling=I,$=I,E=P}if(j.done)return n(y,E),Sr&&ju(y,O),S;if(E===null){for(;!j.done;O++,j=w.next())j=f(y,j.value,C),j!==null&&(x=i(j,x,O),$===null?S=j:$.sibling=j,$=j);return Sr&&ju(y,O),S}for(E=r(y,E);!j.done;O++,j=w.next())j=h(E,y,O,j.value,C),j!==null&&(e&&j.alternate!==null&&E.delete(j.key===null?O:j.key),x=i(j,x,O),$===null?S=j:$.sibling=j,$=j);return e&&E.forEach(function(_){return t(y,_)}),Sr&&ju(y,O),S}function v(y,x,w,C){if(typeof w=="object"&&w!==null&&w.type===Of&&w.key===null&&(w=w.props.children),typeof w=="object"&&w!==null){switch(w.$$typeof){case b0:e:{for(var S=w.key,$=x;$!==null;){if($.key===S){if(S=w.type,S===Of){if($.tag===7){n(y,$.sibling),x=o($,w.props.children),x.return=y,y=x;break e}}else if($.elementType===S||typeof S=="object"&&S!==null&&S.$$typeof===wc&&YM(S)===$.type){n(y,$.sibling),x=o($,w.props),x.ref=Vh(y,$,w),x.return=y,y=x;break e}n(y,$);break}else t(y,$);$=$.sibling}w.type===Of?(x=Qu(w.props.children,y.mode,C,w.key),x.return=y,y=x):(C=Ky(w.type,w.key,w.props,null,y.mode,C),C.ref=Vh(y,x,w),C.return=y,y=C)}return a(y);case Ef:e:{for($=w.key;x!==null;){if(x.key===$)if(x.tag===4&&x.stateNode.containerInfo===w.containerInfo&&x.stateNode.implementation===w.implementation){n(y,x.sibling),x=o(x,w.children||[]),x.return=y,y=x;break e}else{n(y,x);break}else t(y,x);x=x.sibling}x=e$(w,y.mode,C),x.return=y,y=x}return a(y);case wc:return $=w._init,v(y,x,$(w._payload),C)}if(gp(w))return p(y,x,w,C);if(Lh(w))return b(y,x,w,C);_0(y,w)}return typeof w=="string"&&w!==""||typeof w=="number"?(w=""+w,x!==null&&x.tag===6?(n(y,x.sibling),x=o(x,w),x.return=y,y=x):(n(y,x),x=QC(w,y.mode,C),x.return=y,y=x),a(y)):n(y,x)}return v}var ym=X9(!0),Y9=X9(!1),Ab=su(null),Db=null,Mf=null,q_=null;function G_(){q_=Mf=Db=null}function X_(e){var t=Ab.current;xr(Ab),e._currentValue=t}function UE(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 tm(e,t){Db=e,q_=Mf=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(Xi=!0),e.firstContext=null)}function rs(e){var t=e._currentValue;if(q_!==e)if(e={context:e,memoizedValue:t,next:null},Mf===null){if(Db===null)throw Error($t(308));Mf=e,Db.dependencies={lanes:0,firstContext:e}}else Mf=Mf.next=e;return t}var Lu=null;function Y_(e){Lu===null?Lu=[e]:Lu.push(e)}function Z9(e,t,n,r){var o=t.interleaved;return o===null?(n.next=n,Y_(t)):(n.next=o.next,o.next=n),t.interleaved=n,Bl(e,r)}function Bl(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 Sc=!1;function Z_(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function J9(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 Tl(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function zc(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,Hn&2){var o=r.pending;return o===null?t.next=t:(t.next=o.next,o.next=t),r.pending=t,Bl(e,n)}return o=r.interleaved,o===null?(t.next=t,Y_(r)):(t.next=o.next,o.next=t),r.interleaved=t,Bl(e,n)}function Fy(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,A_(e,n)}}function ZM(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var o=null,i=null;if(n=n.firstBaseUpdate,n!==null){do{var a={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};i===null?o=i=a:i=i.next=a,n=n.next}while(n!==null);i===null?o=i=t:i=i.next=t}else o=i=t;n={baseState:r.baseState,firstBaseUpdate:o,lastBaseUpdate:i,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 Lb(e,t,n,r){var o=e.updateQueue;Sc=!1;var i=o.firstBaseUpdate,a=o.lastBaseUpdate,s=o.shared.pending;if(s!==null){o.shared.pending=null;var l=s,u=l.next;l.next=null,a===null?i=u:a.next=u,a=l;var d=e.alternate;d!==null&&(d=d.updateQueue,s=d.lastBaseUpdate,s!==a&&(s===null?d.firstBaseUpdate=u:s.next=u,d.lastBaseUpdate=l))}if(i!==null){var f=o.baseState;a=0,d=u=l=null,s=i;do{var m=s.lane,h=s.eventTime;if((r&m)===m){d!==null&&(d=d.next={eventTime:h,lane:0,tag:s.tag,payload:s.payload,callback:s.callback,next:null});e:{var p=e,b=s;switch(m=t,h=n,b.tag){case 1:if(p=b.payload,typeof p=="function"){f=p.call(h,f,m);break e}f=p;break e;case 3:p.flags=p.flags&-65537|128;case 0:if(p=b.payload,m=typeof p=="function"?p.call(h,f,m):p,m==null)break e;f=Dr({},f,m);break e;case 2:Sc=!0}}s.callback!==null&&s.lane!==0&&(e.flags|=64,m=o.effects,m===null?o.effects=[s]:m.push(s))}else h={eventTime:h,lane:m,tag:s.tag,payload:s.payload,callback:s.callback,next:null},d===null?(u=d=h,l=f):d=d.next=h,a|=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&&(l=f),o.baseState=l,o.firstBaseUpdate=u,o.lastBaseUpdate=d,t=o.shared.interleaved,t!==null){o=t;do a|=o.lane,o=o.next;while(o!==t)}else i===null&&(o.shared.lanes=0);fd|=a,e.lanes=a,e.memoizedState=f}}function JM(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($t(191,o));o.call(r)}}}var dv={},il=su(dv),ug=su(dv),dg=su(dv);function zu(e){if(e===dv)throw Error($t(174));return e}function J_(e,t){switch(fr(dg,t),fr(ug,e),fr(il,dv),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:EE(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=EE(t,e)}xr(il),fr(il,t)}function bm(){xr(il),xr(ug),xr(dg)}function Q9(e){zu(dg.current);var t=zu(il.current),n=EE(t,e.type);t!==n&&(fr(ug,e),fr(il,n))}function Q_(e){ug.current===e&&(xr(il),xr(ug))}var Tr=su(0);function zb(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 qC=[];function eN(){for(var e=0;e<qC.length;e++)qC[e]._workInProgressVersionPrimary=null;qC.length=0}var By=tc.ReactCurrentDispatcher,GC=tc.ReactCurrentBatchConfig,dd=0,Ar=null,bo=null,Fo=null,Fb=!1,kp=!1,fg=0,mae=0;function ci(){throw Error($t(321))}function tN(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!As(e[n],t[n]))return!1;return!0}function nN(e,t,n,r,o,i){if(dd=i,Ar=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,By.current=e===null||e.memoizedState===null?vae:yae,e=n(r,o),kp){i=0;do{if(kp=!1,fg=0,25<=i)throw Error($t(301));i+=1,Fo=bo=null,t.updateQueue=null,By.current=bae,e=n(r,o)}while(kp)}if(By.current=Bb,t=bo!==null&&bo.next!==null,dd=0,Fo=bo=Ar=null,Fb=!1,t)throw Error($t(300));return e}function rN(){var e=fg!==0;return fg=0,e}function Qs(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return Fo===null?Ar.memoizedState=Fo=e:Fo=Fo.next=e,Fo}function os(){if(bo===null){var e=Ar.alternate;e=e!==null?e.memoizedState:null}else e=bo.next;var t=Fo===null?Ar.memoizedState:Fo.next;if(t!==null)Fo=t,bo=e;else{if(e===null)throw Error($t(310));bo=e,e={memoizedState:bo.memoizedState,baseState:bo.baseState,baseQueue:bo.baseQueue,queue:bo.queue,next:null},Fo===null?Ar.memoizedState=Fo=e:Fo=Fo.next=e}return Fo}function mg(e,t){return typeof t=="function"?t(e):t}function XC(e){var t=os(),n=t.queue;if(n===null)throw Error($t(311));n.lastRenderedReducer=e;var r=bo,o=r.baseQueue,i=n.pending;if(i!==null){if(o!==null){var a=o.next;o.next=i.next,i.next=a}r.baseQueue=o=i,n.pending=null}if(o!==null){i=o.next,r=r.baseState;var s=a=null,l=null,u=i;do{var d=u.lane;if((dd&d)===d)l!==null&&(l=l.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};l===null?(s=l=f,a=r):l=l.next=f,Ar.lanes|=d,fd|=d}u=u.next}while(u!==null&&u!==i);l===null?a=r:l.next=s,As(r,t.memoizedState)||(Xi=!0),t.memoizedState=r,t.baseState=a,t.baseQueue=l,n.lastRenderedState=r}if(e=n.interleaved,e!==null){o=e;do i=o.lane,Ar.lanes|=i,fd|=i,o=o.next;while(o!==e)}else o===null&&(n.lanes=0);return[t.memoizedState,n.dispatch]}function YC(e){var t=os(),n=t.queue;if(n===null)throw Error($t(311));n.lastRenderedReducer=e;var r=n.dispatch,o=n.pending,i=t.memoizedState;if(o!==null){n.pending=null;var a=o=o.next;do i=e(i,a.action),a=a.next;while(a!==o);As(i,t.memoizedState)||(Xi=!0),t.memoizedState=i,t.baseQueue===null&&(t.baseState=i),n.lastRenderedState=i}return[i,r]}function eH(){}function tH(e,t){var n=Ar,r=os(),o=t(),i=!As(r.memoizedState,o);if(i&&(r.memoizedState=o,Xi=!0),r=r.queue,oN(oH.bind(null,n,r,e),[e]),r.getSnapshot!==t||i||Fo!==null&&Fo.memoizedState.tag&1){if(n.flags|=2048,hg(9,rH.bind(null,n,r,o,t),void 0,null),Vo===null)throw Error($t(349));dd&30||nH(n,t,o)}return o}function nH(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=Ar.updateQueue,t===null?(t={lastEffect:null,stores:null},Ar.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function rH(e,t,n,r){t.value=n,t.getSnapshot=r,iH(t)&&aH(e)}function oH(e,t,n){return n(function(){iH(t)&&aH(e)})}function iH(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!As(e,n)}catch{return!0}}function aH(e){var t=Bl(e,1);t!==null&&Ns(t,e,1,-1)}function QM(e){var t=Qs();return typeof e=="function"&&(e=e()),t.memoizedState=t.baseState=e,e={pending:null,interleaved:null,lanes:0,dispatch:null,lastRenderedReducer:mg,lastRenderedState:e},t.queue=e,e=e.dispatch=gae.bind(null,Ar,e),[t.memoizedState,e]}function hg(e,t,n,r){return e={tag:e,create:t,destroy:n,deps:r,next:null},t=Ar.updateQueue,t===null?(t={lastEffect:null,stores:null},Ar.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 sH(){return os().memoizedState}function Hy(e,t,n,r){var o=Qs();Ar.flags|=e,o.memoizedState=hg(1|t,n,void 0,r===void 0?null:r)}function _1(e,t,n,r){var o=os();r=r===void 0?null:r;var i=void 0;if(bo!==null){var a=bo.memoizedState;if(i=a.destroy,r!==null&&tN(r,a.deps)){o.memoizedState=hg(t,n,i,r);return}}Ar.flags|=e,o.memoizedState=hg(1|t,n,i,r)}function ek(e,t){return Hy(8390656,8,e,t)}function oN(e,t){return _1(2048,8,e,t)}function lH(e,t){return _1(4,2,e,t)}function cH(e,t){return _1(4,4,e,t)}function uH(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 dH(e,t,n){return n=n!=null?n.concat([e]):null,_1(4,4,uH.bind(null,t,e),n)}function iN(){}function fH(e,t){var n=os();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&tN(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function mH(e,t){var n=os();t=t===void 0?null:t;var r=n.memoizedState;return r!==null&&t!==null&&tN(t,r[1])?r[0]:(e=e(),n.memoizedState=[e,t],e)}function hH(e,t,n){return dd&21?(As(n,t)||(n=b9(),Ar.lanes|=n,fd|=n,e.baseState=!0),t):(e.baseState&&(e.baseState=!1,Xi=!0),e.memoizedState=n)}function hae(e,t){var n=er;er=n!==0&&4>n?n:4,e(!0);var r=GC.transition;GC.transition={};try{e(!1),t()}finally{er=n,GC.transition=r}}function pH(){return os().memoizedState}function pae(e,t,n){var r=Bc(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},gH(e))vH(t,n);else if(n=Z9(e,t,n,r),n!==null){var o=zi();Ns(n,e,r,o),yH(n,t,r)}}function gae(e,t,n){var r=Bc(e),o={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(gH(e))vH(t,o);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var a=t.lastRenderedState,s=i(a,n);if(o.hasEagerState=!0,o.eagerState=s,As(s,a)){var l=t.interleaved;l===null?(o.next=o,Y_(t)):(o.next=l.next,l.next=o),t.interleaved=o;return}}catch{}finally{}n=Z9(e,t,o,r),n!==null&&(o=zi(),Ns(n,e,r,o),yH(n,t,r))}}function gH(e){var t=e.alternate;return e===Ar||t!==null&&t===Ar}function vH(e,t){kp=Fb=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function yH(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,A_(e,n)}}var Bb={readContext:rs,useCallback:ci,useContext:ci,useEffect:ci,useImperativeHandle:ci,useInsertionEffect:ci,useLayoutEffect:ci,useMemo:ci,useReducer:ci,useRef:ci,useState:ci,useDebugValue:ci,useDeferredValue:ci,useTransition:ci,useMutableSource:ci,useSyncExternalStore:ci,useId:ci,unstable_isNewReconciler:!1},vae={readContext:rs,useCallback:function(e,t){return Qs().memoizedState=[e,t===void 0?null:t],e},useContext:rs,useEffect:ek,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,Hy(4194308,4,uH.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Hy(4194308,4,e,t)},useInsertionEffect:function(e,t){return Hy(4,2,e,t)},useMemo:function(e,t){var n=Qs();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=Qs();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=pae.bind(null,Ar,e),[r.memoizedState,e]},useRef:function(e){var t=Qs();return e={current:e},t.memoizedState=e},useState:QM,useDebugValue:iN,useDeferredValue:function(e){return Qs().memoizedState=e},useTransition:function(){var e=QM(!1),t=e[0];return e=hae.bind(null,e[1]),Qs().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=Ar,o=Qs();if(Sr){if(n===void 0)throw Error($t(407));n=n()}else{if(n=t(),Vo===null)throw Error($t(349));dd&30||nH(r,t,n)}o.memoizedState=n;var i={value:n,getSnapshot:t};return o.queue=i,ek(oH.bind(null,r,i,e),[e]),r.flags|=2048,hg(9,rH.bind(null,r,i,n,t),void 0,null),n},useId:function(){var e=Qs(),t=Vo.identifierPrefix;if(Sr){var n=_l,r=Il;n=(r&~(1<<32-_s(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=fg++,0<n&&(t+="H"+n.toString(32)),t+=":"}else n=mae++,t=":"+t+"r"+n.toString(32)+":";return e.memoizedState=t},unstable_isNewReconciler:!1},yae={readContext:rs,useCallback:fH,useContext:rs,useEffect:oN,useImperativeHandle:dH,useInsertionEffect:lH,useLayoutEffect:cH,useMemo:mH,useReducer:XC,useRef:sH,useState:function(){return XC(mg)},useDebugValue:iN,useDeferredValue:function(e){var t=os();return hH(t,bo.memoizedState,e)},useTransition:function(){var e=XC(mg)[0],t=os().memoizedState;return[e,t]},useMutableSource:eH,useSyncExternalStore:tH,useId:pH,unstable_isNewReconciler:!1},bae={readContext:rs,useCallback:fH,useContext:rs,useEffect:oN,useImperativeHandle:dH,useInsertionEffect:lH,useLayoutEffect:cH,useMemo:mH,useReducer:YC,useRef:sH,useState:function(){return YC(mg)},useDebugValue:iN,useDeferredValue:function(e){var t=os();return bo===null?t.memoizedState=e:hH(t,bo.memoizedState,e)},useTransition:function(){var e=YC(mg)[0],t=os().memoizedState;return[e,t]},useMutableSource:eH,useSyncExternalStore:tH,useId:pH,unstable_isNewReconciler:!1};function Ss(e,t){if(e&&e.defaultProps){t=Dr({},t),e=e.defaultProps;for(var n in e)t[n]===void 0&&(t[n]=e[n]);return t}return t}function KE(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:Dr({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var N1={isMounted:function(e){return(e=e._reactInternals)?Dd(e)===e:!1},enqueueSetState:function(e,t,n){e=e._reactInternals;var r=zi(),o=Bc(e),i=Tl(r,o);i.payload=t,n!=null&&(i.callback=n),t=zc(e,i,o),t!==null&&(Ns(t,e,o,r),Fy(t,e,o))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=zi(),o=Bc(e),i=Tl(r,o);i.tag=1,i.payload=t,n!=null&&(i.callback=n),t=zc(e,i,o),t!==null&&(Ns(t,e,o,r),Fy(t,e,o))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=zi(),r=Bc(e),o=Tl(n,r);o.tag=2,t!=null&&(o.callback=t),t=zc(e,o,r),t!==null&&(Ns(t,e,r,n),Fy(t,e,r))}};function tk(e,t,n,r,o,i,a){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,i,a):t.prototype&&t.prototype.isPureReactComponent?!ag(n,r)||!ag(o,i):!0}function bH(e,t,n){var r=!1,o=Xc,i=t.contextType;return typeof i=="object"&&i!==null?i=rs(i):(o=ta(t)?cd:wi.current,r=t.contextTypes,i=(r=r!=null)?gm(e,o):Xc),t=new t(n,i),e.memoizedState=t.state!==null&&t.state!==void 0?t.state:null,t.updater=N1,e.stateNode=t,t._reactInternals=e,r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=o,e.__reactInternalMemoizedMaskedChildContext=i),t}function nk(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&&N1.enqueueReplaceState(t,t.state,null)}function qE(e,t,n,r){var o=e.stateNode;o.props=n,o.state=e.memoizedState,o.refs={},Z_(e);var i=t.contextType;typeof i=="object"&&i!==null?o.context=rs(i):(i=ta(t)?cd:wi.current,o.context=gm(e,i)),o.state=e.memoizedState,i=t.getDerivedStateFromProps,typeof i=="function"&&(KE(e,t,i,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&&N1.enqueueReplaceState(o,o.state,null),Lb(e,n,o,r),o.state=e.memoizedState),typeof o.componentDidMount=="function"&&(e.flags|=4194308)}function xm(e,t){try{var n="",r=t;do n+=qoe(r),r=r.return;while(r);var o=n}catch(i){o=`
Error generating stack: `+i.message+`
`+i.stack}return{value:e,source:t,stack:o,digest:null}}function ZC(e,t,n){return{value:e,source:null,stack:n??null,digest:t??null}}function GE(e,t){try{console.error(t.value)}catch(n){setTimeout(function(){throw n})}}var xae=typeof WeakMap=="function"?WeakMap:Map;function xH(e,t,n){n=Tl(-1,n),n.tag=3,n.payload={element:null};var r=t.value;return n.callback=function(){Vb||(Vb=!0,oO=r),GE(e,t)},n}function wH(e,t,n){n=Tl(-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(){GE(e,t)}}var i=e.stateNode;return i!==null&&typeof i.componentDidCatch=="function"&&(n.callback=function(){GE(e,t),typeof r!="function"&&(Fc===null?Fc=new Set([this]):Fc.add(this));var a=t.stack;this.componentDidCatch(t.value,{componentStack:a!==null?a:""})}),n}function rk(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new xae;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=Mae.bind(null,e,t,n),t.then(e,e))}function ok(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 ik(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=Tl(-1,1),t.tag=2,zc(n,t,1))),n.lanes|=1),e)}var wae=tc.ReactCurrentOwner,Xi=!1;function _i(e,t,n,r){t.child=e===null?Y9(t,null,n,r):ym(t,e.child,n,r)}function ak(e,t,n,r,o){n=n.render;var i=t.ref;return tm(t,o),r=nN(e,t,n,r,i,o),n=rN(),e!==null&&!Xi?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Hl(e,t,o)):(Sr&&n&&W_(t),t.flags|=1,_i(e,t,r,o),t.child)}function sk(e,t,n,r,o){if(e===null){var i=n.type;return typeof i=="function"&&!mN(i)&&i.defaultProps===void 0&&n.compare===null&&n.defaultProps===void 0?(t.tag=15,t.type=i,SH(e,t,i,r,o)):(e=Ky(n.type,null,r,t,t.mode,o),e.ref=t.ref,e.return=t,t.child=e)}if(i=e.child,!(e.lanes&o)){var a=i.memoizedProps;if(n=n.compare,n=n!==null?n:ag,n(a,r)&&e.ref===t.ref)return Hl(e,t,o)}return t.flags|=1,e=Hc(i,r),e.ref=t.ref,e.return=t,t.child=e}function SH(e,t,n,r,o){if(e!==null){var i=e.memoizedProps;if(ag(i,r)&&e.ref===t.ref)if(Xi=!1,t.pendingProps=r=i,(e.lanes&o)!==0)e.flags&131072&&(Xi=!0);else return t.lanes=e.lanes,Hl(e,t,o)}return XE(e,t,n,r,o)}function CH(e,t,n){var r=t.pendingProps,o=r.children,i=e!==null?e.memoizedState:null;if(r.mode==="hidden")if(!(t.mode&1))t.memoizedState={baseLanes:0,cachePool:null,transitions:null},fr(Af,ya),ya|=n;else{if(!(n&1073741824))return e=i!==null?i.baseLanes|n:n,t.lanes=t.childLanes=1073741824,t.memoizedState={baseLanes:e,cachePool:null,transitions:null},t.updateQueue=null,fr(Af,ya),ya|=e,null;t.memoizedState={baseLanes:0,cachePool:null,transitions:null},r=i!==null?i.baseLanes:n,fr(Af,ya),ya|=r}else i!==null?(r=i.baseLanes|n,t.memoizedState=null):r=n,fr(Af,ya),ya|=r;return _i(e,t,o,n),t.child}function $H(e,t){var n=t.ref;(e===null&&n!==null||e!==null&&e.ref!==n)&&(t.flags|=512,t.flags|=2097152)}function XE(e,t,n,r,o){var i=ta(n)?cd:wi.current;return i=gm(t,i),tm(t,o),n=nN(e,t,n,r,i,o),r=rN(),e!==null&&!Xi?(t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~o,Hl(e,t,o)):(Sr&&r&&W_(t),t.flags|=1,_i(e,t,n,o),t.child)}function lk(e,t,n,r,o){if(ta(n)){var i=!0;Tb(t)}else i=!1;if(tm(t,o),t.stateNode===null)Vy(e,t),bH(t,n,r),qE(t,n,r,o),r=!0;else if(e===null){var a=t.stateNode,s=t.memoizedProps;a.props=s;var l=a.context,u=n.contextType;typeof u=="object"&&u!==null?u=rs(u):(u=ta(n)?cd:wi.current,u=gm(t,u));var d=n.getDerivedStateFromProps,f=typeof d=="function"||typeof a.getSnapshotBeforeUpdate=="function";f||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(s!==r||l!==u)&&nk(t,a,r,u),Sc=!1;var m=t.memoizedState;a.state=m,Lb(t,r,a,o),l=t.memoizedState,s!==r||m!==l||ea.current||Sc?(typeof d=="function"&&(KE(t,n,d,r),l=t.memoizedState),(s=Sc||tk(t,n,s,r,m,l,u))?(f||typeof a.UNSAFE_componentWillMount!="function"&&typeof a.componentWillMount!="function"||(typeof a.componentWillMount=="function"&&a.componentWillMount(),typeof a.UNSAFE_componentWillMount=="function"&&a.UNSAFE_componentWillMount()),typeof a.componentDidMount=="function"&&(t.flags|=4194308)):(typeof a.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=l),a.props=r,a.state=l,a.context=u,r=s):(typeof a.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{a=t.stateNode,J9(e,t),s=t.memoizedProps,u=t.type===t.elementType?s:Ss(t.type,s),a.props=u,f=t.pendingProps,m=a.context,l=n.contextType,typeof l=="object"&&l!==null?l=rs(l):(l=ta(n)?cd:wi.current,l=gm(t,l));var h=n.getDerivedStateFromProps;(d=typeof h=="function"||typeof a.getSnapshotBeforeUpdate=="function")||typeof a.UNSAFE_componentWillReceiveProps!="function"&&typeof a.componentWillReceiveProps!="function"||(s!==f||m!==l)&&nk(t,a,r,l),Sc=!1,m=t.memoizedState,a.state=m,Lb(t,r,a,o);var p=t.memoizedState;s!==f||m!==p||ea.current||Sc?(typeof h=="function"&&(KE(t,n,h,r),p=t.memoizedState),(u=Sc||tk(t,n,u,r,m,p,l)||!1)?(d||typeof a.UNSAFE_componentWillUpdate!="function"&&typeof a.componentWillUpdate!="function"||(typeof a.componentWillUpdate=="function"&&a.componentWillUpdate(r,p,l),typeof a.UNSAFE_componentWillUpdate=="function"&&a.UNSAFE_componentWillUpdate(r,p,l)),typeof a.componentDidUpdate=="function"&&(t.flags|=4),typeof a.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof a.componentDidUpdate!="function"||s===e.memoizedProps&&m===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&m===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=p),a.props=r,a.state=p,a.context=l,r=u):(typeof a.componentDidUpdate!="function"||s===e.memoizedProps&&m===e.memoizedState||(t.flags|=4),typeof a.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&m===e.memoizedState||(t.flags|=1024),r=!1)}return YE(e,t,n,r,i,o)}function YE(e,t,n,r,o,i){$H(e,t);var a=(t.flags&128)!==0;if(!r&&!a)return o&&qM(t,n,!1),Hl(e,t,i);r=t.stateNode,wae.current=t;var s=a&&typeof n.getDerivedStateFromError!="function"?null:r.render();return t.flags|=1,e!==null&&a?(t.child=ym(t,e.child,null,i),t.child=ym(t,null,s,i)):_i(e,t,s,i),t.memoizedState=r.state,o&&qM(t,n,!0),t.child}function EH(e){var t=e.stateNode;t.pendingContext?KM(e,t.pendingContext,t.pendingContext!==t.context):t.context&&KM(e,t.context,!1),J_(e,t.containerInfo)}function ck(e,t,n,r,o){return vm(),K_(o),t.flags|=256,_i(e,t,n,r),t.child}var ZE={dehydrated:null,treeContext:null,retryLane:0};function JE(e){return{baseLanes:e,cachePool:null,transitions:null}}function OH(e,t,n){var r=t.pendingProps,o=Tr.current,i=!1,a=(t.flags&128)!==0,s;if((s=a)||(s=e!==null&&e.memoizedState===null?!1:(o&2)!==0),s?(i=!0,t.flags&=-129):(e===null||e.memoizedState!==null)&&(o|=1),fr(Tr,o&1),e===null)return WE(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):(a=r.children,e=r.fallback,i?(r=t.mode,i=t.child,a={mode:"hidden",children:a},!(r&1)&&i!==null?(i.childLanes=0,i.pendingProps=a):i=M1(a,r,0,null),e=Qu(e,r,n,null),i.return=t,e.return=t,i.sibling=e,t.child=i,t.child.memoizedState=JE(n),t.memoizedState=ZE,e):aN(t,a));if(o=e.memoizedState,o!==null&&(s=o.dehydrated,s!==null))return Sae(e,t,a,r,s,o,n);if(i){i=r.fallback,a=t.mode,o=e.child,s=o.sibling;var l={mode:"hidden",children:r.children};return!(a&1)&&t.child!==o?(r=t.child,r.childLanes=0,r.pendingProps=l,t.deletions=null):(r=Hc(o,l),r.subtreeFlags=o.subtreeFlags&14680064),s!==null?i=Hc(s,i):(i=Qu(i,a,n,null),i.flags|=2),i.return=t,r.return=t,r.sibling=i,t.child=r,r=i,i=t.child,a=e.child.memoizedState,a=a===null?JE(n):{baseLanes:a.baseLanes|n,cachePool:null,transitions:a.transitions},i.memoizedState=a,i.childLanes=e.childLanes&~n,t.memoizedState=ZE,r}return i=e.child,e=i.sibling,r=Hc(i,{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 aN(e,t){return t=M1({mode:"visible",children:t},e.mode,0,null),t.return=e,e.child=t}function N0(e,t,n,r){return r!==null&&K_(r),ym(t,e.child,null,n),e=aN(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function Sae(e,t,n,r,o,i,a){if(n)return t.flags&256?(t.flags&=-257,r=ZC(Error($t(422))),N0(e,t,a,r)):t.memoizedState!==null?(t.child=e.child,t.flags|=128,null):(i=r.fallback,o=t.mode,r=M1({mode:"visible",children:r.children},o,0,null),i=Qu(i,o,a,null),i.flags|=2,r.return=t,i.return=t,r.sibling=i,t.child=r,t.mode&1&&ym(t,e.child,null,a),t.child.memoizedState=JE(a),t.memoizedState=ZE,i);if(!(t.mode&1))return N0(e,t,a,null);if(o.data==="$!"){if(r=o.nextSibling&&o.nextSibling.dataset,r)var s=r.dgst;return r=s,i=Error($t(419)),r=ZC(i,r,void 0),N0(e,t,a,r)}if(s=(a&e.childLanes)!==0,Xi||s){if(r=Vo,r!==null){switch(a&-a){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|a)?0:o,o!==0&&o!==i.retryLane&&(i.retryLane=o,Bl(e,o),Ns(r,e,o,-1))}return fN(),r=ZC(Error($t(421))),N0(e,t,a,r)}return o.data==="$?"?(t.flags|=128,t.child=e.child,t=kae.bind(null,e),o._reactRetry=t,null):(e=i.treeContext,Ca=Lc(o.nextSibling),Oa=t,Sr=!0,Es=null,e!==null&&(qa[Ga++]=Il,qa[Ga++]=_l,qa[Ga++]=ud,Il=e.id,_l=e.overflow,ud=t),t=aN(t,r.children),t.flags|=4096,t)}function uk(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),UE(e.return,t,n)}function JC(e,t,n,r,o){var i=e.memoizedState;i===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:o}:(i.isBackwards=t,i.rendering=null,i.renderingStartTime=0,i.last=r,i.tail=n,i.tailMode=o)}function PH(e,t,n){var r=t.pendingProps,o=r.revealOrder,i=r.tail;if(_i(e,t,r.children,n),r=Tr.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&&uk(e,n,t);else if(e.tag===19)uk(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(fr(Tr,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&&zb(e)===null&&(o=n),n=n.sibling;n=o,n===null?(o=t.child,t.child=null):(o=n.sibling,n.sibling=null),JC(t,!1,o,n,i);break;case"backwards":for(n=null,o=t.child,t.child=null;o!==null;){if(e=o.alternate,e!==null&&zb(e)===null){t.child=o;break}e=o.sibling,o.sibling=n,n=o,o=e}JC(t,!0,n,null,i);break;case"together":JC(t,!1,null,null,void 0);break;default:t.memoizedState=null}return t.child}function Vy(e,t){!(t.mode&1)&&e!==null&&(e.alternate=null,t.alternate=null,t.flags|=2)}function Hl(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),fd|=t.lanes,!(n&t.childLanes))return null;if(e!==null&&t.child!==e.child)throw Error($t(153));if(t.child!==null){for(e=t.child,n=Hc(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Hc(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function Cae(e,t,n){switch(t.tag){case 3:EH(t),vm();break;case 5:Q9(t);break;case 1:ta(t.type)&&Tb(t);break;case 4:J_(t,t.stateNode.containerInfo);break;case 10:var r=t.type._context,o=t.memoizedProps.value;fr(Ab,r._currentValue),r._currentValue=o;break;case 13:if(r=t.memoizedState,r!==null)return r.dehydrated!==null?(fr(Tr,Tr.current&1),t.flags|=128,null):n&t.child.childLanes?OH(e,t,n):(fr(Tr,Tr.current&1),e=Hl(e,t,n),e!==null?e.sibling:null);fr(Tr,Tr.current&1);break;case 19:if(r=(n&t.childLanes)!==0,e.flags&128){if(r)return PH(e,t,n);t.flags|=128}if(o=t.memoizedState,o!==null&&(o.rendering=null,o.tail=null,o.lastEffect=null),fr(Tr,Tr.current),r)break;return null;case 22:case 23:return t.lanes=0,CH(e,t,n)}return Hl(e,t,n)}var jH,QE,IH,_H;jH=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}};QE=function(){};IH=function(e,t,n,r){var o=e.memoizedProps;if(o!==r){e=t.stateNode,zu(il.current);var i=null;switch(n){case"input":o=wE(e,o),r=wE(e,r),i=[];break;case"select":o=Dr({},o,{value:void 0}),r=Dr({},r,{value:void 0}),i=[];break;case"textarea":o=$E(e,o),r=$E(e,r),i=[];break;default:typeof o.onClick!="function"&&typeof r.onClick=="function"&&(e.onclick=Nb)}OE(n,r);var a;n=null;for(u in o)if(!r.hasOwnProperty(u)&&o.hasOwnProperty(u)&&o[u]!=null)if(u==="style"){var s=o[u];for(a in s)s.hasOwnProperty(a)&&(n||(n={}),n[a]="")}else u!=="dangerouslySetInnerHTML"&&u!=="children"&&u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&u!=="autoFocus"&&(Qp.hasOwnProperty(u)?i||(i=[]):(i=i||[]).push(u,null));for(u in r){var l=r[u];if(s=o!=null?o[u]:void 0,r.hasOwnProperty(u)&&l!==s&&(l!=null||s!=null))if(u==="style")if(s){for(a in s)!s.hasOwnProperty(a)||l&&l.hasOwnProperty(a)||(n||(n={}),n[a]="");for(a in l)l.hasOwnProperty(a)&&s[a]!==l[a]&&(n||(n={}),n[a]=l[a])}else n||(i||(i=[]),i.push(u,n)),n=l;else u==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,s=s?s.__html:void 0,l!=null&&s!==l&&(i=i||[]).push(u,l)):u==="children"?typeof l!="string"&&typeof l!="number"||(i=i||[]).push(u,""+l):u!=="suppressContentEditableWarning"&&u!=="suppressHydrationWarning"&&(Qp.hasOwnProperty(u)?(l!=null&&u==="onScroll"&&vr("scroll",e),i||s===l||(i=[])):(i=i||[]).push(u,l))}n&&(i=i||[]).push("style",n);var u=i;(t.updateQueue=u)&&(t.flags|=4)}};_H=function(e,t,n,r){n!==r&&(t.flags|=4)};function Wh(e,t){if(!Sr)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 ui(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 $ae(e,t,n){var r=t.pendingProps;switch(U_(t),t.tag){case 2:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return ui(t),null;case 1:return ta(t.type)&&Rb(),ui(t),null;case 3:return r=t.stateNode,bm(),xr(ea),xr(wi),eN(),r.pendingContext&&(r.context=r.pendingContext,r.pendingContext=null),(e===null||e.child===null)&&(I0(t)?t.flags|=4:e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Es!==null&&(sO(Es),Es=null))),QE(e,t),ui(t),null;case 5:Q_(t);var o=zu(dg.current);if(n=t.type,e!==null&&t.stateNode!=null)IH(e,t,n,r,o),e.ref!==t.ref&&(t.flags|=512,t.flags|=2097152);else{if(!r){if(t.stateNode===null)throw Error($t(166));return ui(t),null}if(e=zu(il.current),I0(t)){r=t.stateNode,n=t.type;var i=t.memoizedProps;switch(r[tl]=t,r[cg]=i,e=(t.mode&1)!==0,n){case"dialog":vr("cancel",r),vr("close",r);break;case"iframe":case"object":case"embed":vr("load",r);break;case"video":case"audio":for(o=0;o<yp.length;o++)vr(yp[o],r);break;case"source":vr("error",r);break;case"img":case"image":case"link":vr("error",r),vr("load",r);break;case"details":vr("toggle",r);break;case"input":bM(r,i),vr("invalid",r);break;case"select":r._wrapperState={wasMultiple:!!i.multiple},vr("invalid",r);break;case"textarea":wM(r,i),vr("invalid",r)}OE(n,i),o=null;for(var a in i)if(i.hasOwnProperty(a)){var s=i[a];a==="children"?typeof s=="string"?r.textContent!==s&&(i.suppressHydrationWarning!==!0&&j0(r.textContent,s,e),o=["children",s]):typeof s=="number"&&r.textContent!==""+s&&(i.suppressHydrationWarning!==!0&&j0(r.textContent,s,e),o=["children",""+s]):Qp.hasOwnProperty(a)&&s!=null&&a==="onScroll"&&vr("scroll",r)}switch(n){case"input":x0(r),xM(r,i,!0);break;case"textarea":x0(r),SM(r);break;case"select":case"option":break;default:typeof i.onClick=="function"&&(r.onclick=Nb)}r=o,t.updateQueue=r,r!==null&&(t.flags|=4)}else{a=o.nodeType===9?o:o.ownerDocument,e==="http://www.w3.org/1999/xhtml"&&(e=o9(n)),e==="http://www.w3.org/1999/xhtml"?n==="script"?(e=a.createElement("div"),e.innerHTML="<script><\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=a.createElement(n,{is:r.is}):(e=a.createElement(n),n==="select"&&(a=e,r.multiple?a.multiple=!0:r.size&&(a.size=r.size))):e=a.createElementNS(e,n),e[tl]=t,e[cg]=r,jH(e,t,!1,!1),t.stateNode=e;e:{switch(a=PE(n,r),n){case"dialog":vr("cancel",e),vr("close",e),o=r;break;case"iframe":case"object":case"embed":vr("load",e),o=r;break;case"video":case"audio":for(o=0;o<yp.length;o++)vr(yp[o],e);o=r;break;case"source":vr("error",e),o=r;break;case"img":case"image":case"link":vr("error",e),vr("load",e),o=r;break;case"details":vr("toggle",e),o=r;break;case"input":bM(e,r),o=wE(e,r),vr("invalid",e);break;case"option":o=r;break;case"select":e._wrapperState={wasMultiple:!!r.multiple},o=Dr({},r,{value:void 0}),vr("invalid",e);break;case"textarea":wM(e,r),o=$E(e,r),vr("invalid",e);break;default:o=r}OE(n,o),s=o;for(i in s)if(s.hasOwnProperty(i)){var l=s[i];i==="style"?s9(e,l):i==="dangerouslySetInnerHTML"?(l=l?l.__html:void 0,l!=null&&i9(e,l)):i==="children"?typeof l=="string"?(n!=="textarea"||l!=="")&&eg(e,l):typeof l=="number"&&eg(e,""+l):i!=="suppressContentEditableWarning"&&i!=="suppressHydrationWarning"&&i!=="autoFocus"&&(Qp.hasOwnProperty(i)?l!=null&&i==="onScroll"&&vr("scroll",e):l!=null&&__(e,i,l,a))}switch(n){case"input":x0(e),xM(e,r,!1);break;case"textarea":x0(e),SM(e);break;case"option":r.value!=null&&e.setAttribute("value",""+Gc(r.value));break;case"select":e.multiple=!!r.multiple,i=r.value,i!=null?Zf(e,!!r.multiple,i,!1):r.defaultValue!=null&&Zf(e,!!r.multiple,r.defaultValue,!0);break;default:typeof o.onClick=="function"&&(e.onclick=Nb)}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 ui(t),null;case 6:if(e&&t.stateNode!=null)_H(e,t,e.memoizedProps,r);else{if(typeof r!="string"&&t.stateNode===null)throw Error($t(166));if(n=zu(dg.current),zu(il.current),I0(t)){if(r=t.stateNode,n=t.memoizedProps,r[tl]=t,(i=r.nodeValue!==n)&&(e=Oa,e!==null))switch(e.tag){case 3:j0(r.nodeValue,n,(e.mode&1)!==0);break;case 5:e.memoizedProps.suppressHydrationWarning!==!0&&j0(r.nodeValue,n,(e.mode&1)!==0)}i&&(t.flags|=4)}else r=(n.nodeType===9?n:n.ownerDocument).createTextNode(r),r[tl]=t,t.stateNode=r}return ui(t),null;case 13:if(xr(Tr),r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(Sr&&Ca!==null&&t.mode&1&&!(t.flags&128))G9(),vm(),t.flags|=98560,i=!1;else if(i=I0(t),r!==null&&r.dehydrated!==null){if(e===null){if(!i)throw Error($t(318));if(i=t.memoizedState,i=i!==null?i.dehydrated:null,!i)throw Error($t(317));i[tl]=t}else vm(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;ui(t),i=!1}else Es!==null&&(sO(Es),Es=null),i=!0;if(!i)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||Tr.current&1?So===0&&(So=3):fN())),t.updateQueue!==null&&(t.flags|=4),ui(t),null);case 4:return bm(),QE(e,t),e===null&&sg(t.stateNode.containerInfo),ui(t),null;case 10:return X_(t.type._context),ui(t),null;case 17:return ta(t.type)&&Rb(),ui(t),null;case 19:if(xr(Tr),i=t.memoizedState,i===null)return ui(t),null;if(r=(t.flags&128)!==0,a=i.rendering,a===null)if(r)Wh(i,!1);else{if(So!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(a=zb(e),a!==null){for(t.flags|=128,Wh(i,!1),r=a.updateQueue,r!==null&&(t.updateQueue=r,t.flags|=4),t.subtreeFlags=0,r=n,n=t.child;n!==null;)i=n,e=r,i.flags&=14680066,a=i.alternate,a===null?(i.childLanes=0,i.lanes=e,i.child=null,i.subtreeFlags=0,i.memoizedProps=null,i.memoizedState=null,i.updateQueue=null,i.dependencies=null,i.stateNode=null):(i.childLanes=a.childLanes,i.lanes=a.lanes,i.child=a.child,i.subtreeFlags=0,i.deletions=null,i.memoizedProps=a.memoizedProps,i.memoizedState=a.memoizedState,i.updateQueue=a.updateQueue,i.type=a.type,e=a.dependencies,i.dependencies=e===null?null:{lanes:e.lanes,firstContext:e.firstContext}),n=n.sibling;return fr(Tr,Tr.current&1|2),t.child}e=e.sibling}i.tail!==null&&Qr()>wm&&(t.flags|=128,r=!0,Wh(i,!1),t.lanes=4194304)}else{if(!r)if(e=zb(a),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),Wh(i,!0),i.tail===null&&i.tailMode==="hidden"&&!a.alternate&&!Sr)return ui(t),null}else 2*Qr()-i.renderingStartTime>wm&&n!==1073741824&&(t.flags|=128,r=!0,Wh(i,!1),t.lanes=4194304);i.isBackwards?(a.sibling=t.child,t.child=a):(n=i.last,n!==null?n.sibling=a:t.child=a,i.last=a)}return i.tail!==null?(t=i.tail,i.rendering=t,i.tail=t.sibling,i.renderingStartTime=Qr(),t.sibling=null,n=Tr.current,fr(Tr,r?n&1|2:n&1),t):(ui(t),null);case 22:case 23:return dN(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?ya&1073741824&&(ui(t),t.subtreeFlags&6&&(t.flags|=8192)):ui(t),null;case 24:return null;case 25:return null}throw Error($t(156,t.tag))}function Eae(e,t){switch(U_(t),t.tag){case 1:return ta(t.type)&&Rb(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return bm(),xr(ea),xr(wi),eN(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return Q_(t),null;case 13:if(xr(Tr),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error($t(340));vm()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return xr(Tr),null;case 4:return bm(),null;case 10:return X_(t.type._context),null;case 22:case 23:return dN(),null;case 24:return null;default:return null}}var R0=!1,pi=!1,Oae=typeof WeakSet=="function"?WeakSet:Set,Xt=null;function kf(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Ur(e,t,r)}else n.current=null}function eO(e,t,n){try{n()}catch(r){Ur(e,t,r)}}var dk=!1;function Pae(e,t){if(DE=jb,e=k9(),V_(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,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var a=0,s=-1,l=-1,u=0,d=0,f=e,m=null;t:for(;;){for(var h;f!==n||o!==0&&f.nodeType!==3||(s=a+o),f!==i||r!==0&&f.nodeType!==3||(l=a+r),f.nodeType===3&&(a+=f.nodeValue.length),(h=f.firstChild)!==null;)m=f,f=h;for(;;){if(f===e)break t;if(m===n&&++u===o&&(s=a),m===i&&++d===r&&(l=a),(h=f.nextSibling)!==null)break;f=m,m=f.parentNode}f=h}n=s===-1||l===-1?null:{start:s,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(LE={focusedElem:e,selectionRange:n},jb=!1,Xt=t;Xt!==null;)if(t=Xt,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Xt=e;else for(;Xt!==null;){t=Xt;try{var p=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(p!==null){var b=p.memoizedProps,v=p.memoizedState,y=t.stateNode,x=y.getSnapshotBeforeUpdate(t.elementType===t.type?b:Ss(t.type,b),v);y.__reactInternalSnapshotBeforeUpdate=x}break;case 3:var w=t.stateNode.containerInfo;w.nodeType===1?w.textContent="":w.nodeType===9&&w.documentElement&&w.removeChild(w.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error($t(163))}}catch(C){Ur(t,t.return,C)}if(e=t.sibling,e!==null){e.return=t.return,Xt=e;break}Xt=t.return}return p=dk,dk=!1,p}function Ap(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 i=o.destroy;o.destroy=void 0,i!==void 0&&eO(t,n,i)}o=o.next}while(o!==r)}}function R1(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 tO(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 NH(e){var t=e.alternate;t!==null&&(e.alternate=null,NH(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[tl],delete t[cg],delete t[BE],delete t[cae],delete t[uae])),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 RH(e){return e.tag===5||e.tag===3||e.tag===4}function fk(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||RH(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 nO(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=Nb));else if(r!==4&&(e=e.child,e!==null))for(nO(e,t,n),e=e.sibling;e!==null;)nO(e,t,n),e=e.sibling}function rO(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(rO(e,t,n),e=e.sibling;e!==null;)rO(e,t,n),e=e.sibling}var Jo=null,Cs=!1;function dc(e,t,n){for(n=n.child;n!==null;)TH(e,t,n),n=n.sibling}function TH(e,t,n){if(ol&&typeof ol.onCommitFiberUnmount=="function")try{ol.onCommitFiberUnmount($1,n)}catch{}switch(n.tag){case 5:pi||kf(n,t);case 6:var r=Jo,o=Cs;Jo=null,dc(e,t,n),Jo=r,Cs=o,Jo!==null&&(Cs?(e=Jo,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Jo.removeChild(n.stateNode));break;case 18:Jo!==null&&(Cs?(e=Jo,n=n.stateNode,e.nodeType===8?UC(e.parentNode,n):e.nodeType===1&&UC(e,n),og(e)):UC(Jo,n.stateNode));break;case 4:r=Jo,o=Cs,Jo=n.stateNode.containerInfo,Cs=!0,dc(e,t,n),Jo=r,Cs=o;break;case 0:case 11:case 14:case 15:if(!pi&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){o=r=r.next;do{var i=o,a=i.destroy;i=i.tag,a!==void 0&&(i&2||i&4)&&eO(n,t,a),o=o.next}while(o!==r)}dc(e,t,n);break;case 1:if(!pi&&(kf(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(s){Ur(n,t,s)}dc(e,t,n);break;case 21:dc(e,t,n);break;case 22:n.mode&1?(pi=(r=pi)||n.memoizedState!==null,dc(e,t,n),pi=r):dc(e,t,n);break;default:dc(e,t,n)}}function mk(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new Oae),t.forEach(function(r){var o=Aae.bind(null,e,r);n.has(r)||(n.add(r),r.then(o,o))})}}function ys(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var o=n[r];try{var i=e,a=t,s=a;e:for(;s!==null;){switch(s.tag){case 5:Jo=s.stateNode,Cs=!1;break e;case 3:Jo=s.stateNode.containerInfo,Cs=!0;break e;case 4:Jo=s.stateNode.containerInfo,Cs=!0;break e}s=s.return}if(Jo===null)throw Error($t(160));TH(i,a,o),Jo=null,Cs=!1;var l=o.alternate;l!==null&&(l.return=null),o.return=null}catch(u){Ur(o,t,u)}}if(t.subtreeFlags&12854)for(t=t.child;t!==null;)MH(t,e),t=t.sibling}function MH(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:if(ys(t,e),Xs(e),r&4){try{Ap(3,e,e.return),R1(3,e)}catch(b){Ur(e,e.return,b)}try{Ap(5,e,e.return)}catch(b){Ur(e,e.return,b)}}break;case 1:ys(t,e),Xs(e),r&512&&n!==null&&kf(n,n.return);break;case 5:if(ys(t,e),Xs(e),r&512&&n!==null&&kf(n,n.return),e.flags&32){var o=e.stateNode;try{eg(o,"")}catch(b){Ur(e,e.return,b)}}if(r&4&&(o=e.stateNode,o!=null)){var i=e.memoizedProps,a=n!==null?n.memoizedProps:i,s=e.type,l=e.updateQueue;if(e.updateQueue=null,l!==null)try{s==="input"&&i.type==="radio"&&i.name!=null&&n9(o,i),PE(s,a);var u=PE(s,i);for(a=0;a<l.length;a+=2){var d=l[a],f=l[a+1];d==="style"?s9(o,f):d==="dangerouslySetInnerHTML"?i9(o,f):d==="children"?eg(o,f):__(o,d,f,u)}switch(s){case"input":SE(o,i);break;case"textarea":r9(o,i);break;case"select":var m=o._wrapperState.wasMultiple;o._wrapperState.wasMultiple=!!i.multiple;var h=i.value;h!=null?Zf(o,!!i.multiple,h,!1):m!==!!i.multiple&&(i.defaultValue!=null?Zf(o,!!i.multiple,i.defaultValue,!0):Zf(o,!!i.multiple,i.multiple?[]:"",!1))}o[cg]=i}catch(b){Ur(e,e.return,b)}}break;case 6:if(ys(t,e),Xs(e),r&4){if(e.stateNode===null)throw Error($t(162));o=e.stateNode,i=e.memoizedProps;try{o.nodeValue=i}catch(b){Ur(e,e.return,b)}}break;case 3:if(ys(t,e),Xs(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{og(t.containerInfo)}catch(b){Ur(e,e.return,b)}break;case 4:ys(t,e),Xs(e);break;case 13:ys(t,e),Xs(e),o=e.child,o.flags&8192&&(i=o.memoizedState!==null,o.stateNode.isHidden=i,!i||o.alternate!==null&&o.alternate.memoizedState!==null||(cN=Qr())),r&4&&mk(e);break;case 22:if(d=n!==null&&n.memoizedState!==null,e.mode&1?(pi=(u=pi)||d,ys(t,e),pi=u):ys(t,e),Xs(e),r&8192){if(u=e.memoizedState!==null,(e.stateNode.isHidden=u)&&!d&&e.mode&1)for(Xt=e,d=e.child;d!==null;){for(f=Xt=d;Xt!==null;){switch(m=Xt,h=m.child,m.tag){case 0:case 11:case 14:case 15:Ap(4,m,m.return);break;case 1:kf(m,m.return);var p=m.stateNode;if(typeof p.componentWillUnmount=="function"){r=m,n=m.return;try{t=r,p.props=t.memoizedProps,p.state=t.memoizedState,p.componentWillUnmount()}catch(b){Ur(r,n,b)}}break;case 5:kf(m,m.return);break;case 22:if(m.memoizedState!==null){pk(f);continue}}h!==null?(h.return=m,Xt=h):pk(f)}d=d.sibling}e:for(d=null,f=e;;){if(f.tag===5){if(d===null){d=f;try{o=f.stateNode,u?(i=o.style,typeof i.setProperty=="function"?i.setProperty("display","none","important"):i.display="none"):(s=f.stateNode,l=f.memoizedProps.style,a=l!=null&&l.hasOwnProperty("display")?l.display:null,s.style.display=a9("display",a))}catch(b){Ur(e,e.return,b)}}}else if(f.tag===6){if(d===null)try{f.stateNode.nodeValue=u?"":f.memoizedProps}catch(b){Ur(e,e.return,b)}}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:ys(t,e),Xs(e),r&4&&mk(e);break;case 21:break;default:ys(t,e),Xs(e)}}function Xs(e){var t=e.flags;if(t&2){try{e:{for(var n=e.return;n!==null;){if(RH(n)){var r=n;break e}n=n.return}throw Error($t(160))}switch(r.tag){case 5:var o=r.stateNode;r.flags&32&&(eg(o,""),r.flags&=-33);var i=fk(e);rO(e,i,o);break;case 3:case 4:var a=r.stateNode.containerInfo,s=fk(e);nO(e,s,a);break;default:throw Error($t(161))}}catch(l){Ur(e,e.return,l)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function jae(e,t,n){Xt=e,kH(e)}function kH(e,t,n){for(var r=(e.mode&1)!==0;Xt!==null;){var o=Xt,i=o.child;if(o.tag===22&&r){var a=o.memoizedState!==null||R0;if(!a){var s=o.alternate,l=s!==null&&s.memoizedState!==null||pi;s=R0;var u=pi;if(R0=a,(pi=l)&&!u)for(Xt=o;Xt!==null;)a=Xt,l=a.child,a.tag===22&&a.memoizedState!==null?gk(o):l!==null?(l.return=a,Xt=l):gk(o);for(;i!==null;)Xt=i,kH(i),i=i.sibling;Xt=o,R0=s,pi=u}hk(e)}else o.subtreeFlags&8772&&i!==null?(i.return=o,Xt=i):hk(e)}}function hk(e){for(;Xt!==null;){var t=Xt;if(t.flags&8772){var n=t.alternate;try{if(t.flags&8772)switch(t.tag){case 0:case 11:case 15:pi||R1(5,t);break;case 1:var r=t.stateNode;if(t.flags&4&&!pi)if(n===null)r.componentDidMount();else{var o=t.elementType===t.type?n.memoizedProps:Ss(t.type,n.memoizedProps);r.componentDidUpdate(o,n.memoizedState,r.__reactInternalSnapshotBeforeUpdate)}var i=t.updateQueue;i!==null&&JM(t,i,r);break;case 3:var a=t.updateQueue;if(a!==null){if(n=null,t.child!==null)switch(t.child.tag){case 5:n=t.child.stateNode;break;case 1:n=t.child.stateNode}JM(t,a,n)}break;case 5:var s=t.stateNode;if(n===null&&t.flags&4){n=s;var l=t.memoizedProps;switch(t.type){case"button":case"input":case"select":case"textarea":l.autoFocus&&n.focus();break;case"img":l.src&&(n.src=l.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&&og(f)}}}break;case 19:case 17:case 21:case 22:case 23:case 25:break;default:throw Error($t(163))}pi||t.flags&512&&tO(t)}catch(m){Ur(t,t.return,m)}}if(t===e){Xt=null;break}if(n=t.sibling,n!==null){n.return=t.return,Xt=n;break}Xt=t.return}}function pk(e){for(;Xt!==null;){var t=Xt;if(t===e){Xt=null;break}var n=t.sibling;if(n!==null){n.return=t.return,Xt=n;break}Xt=t.return}}function gk(e){for(;Xt!==null;){var t=Xt;try{switch(t.tag){case 0:case 11:case 15:var n=t.return;try{R1(4,t)}catch(l){Ur(t,n,l)}break;case 1:var r=t.stateNode;if(typeof r.componentDidMount=="function"){var o=t.return;try{r.componentDidMount()}catch(l){Ur(t,o,l)}}var i=t.return;try{tO(t)}catch(l){Ur(t,i,l)}break;case 5:var a=t.return;try{tO(t)}catch(l){Ur(t,a,l)}}}catch(l){Ur(t,t.return,l)}if(t===e){Xt=null;break}var s=t.sibling;if(s!==null){s.return=t.return,Xt=s;break}Xt=t.return}}var Iae=Math.ceil,Hb=tc.ReactCurrentDispatcher,sN=tc.ReactCurrentOwner,es=tc.ReactCurrentBatchConfig,Hn=0,Vo=null,co=null,ni=0,ya=0,Af=su(0),So=0,pg=null,fd=0,T1=0,lN=0,Dp=null,qi=null,cN=0,wm=1/0,Cl=null,Vb=!1,oO=null,Fc=null,T0=!1,_c=null,Wb=0,Lp=0,iO=null,Wy=-1,Uy=0;function zi(){return Hn&6?Qr():Wy!==-1?Wy:Wy=Qr()}function Bc(e){return e.mode&1?Hn&2&&ni!==0?ni&-ni:fae.transition!==null?(Uy===0&&(Uy=b9()),Uy):(e=er,e!==0||(e=window.event,e=e===void 0?16:O9(e.type)),e):1}function Ns(e,t,n,r){if(50<Lp)throw Lp=0,iO=null,Error($t(185));lv(e,n,r),(!(Hn&2)||e!==Vo)&&(e===Vo&&(!(Hn&2)&&(T1|=n),So===4&&Pc(e,ni)),na(e,r),n===1&&Hn===0&&!(t.mode&1)&&(wm=Qr()+500,I1&&lu()))}function na(e,t){var n=e.callbackNode;fie(e,t);var r=Pb(e,e===Vo?ni:0);if(r===0)n!==null&&EM(n),e.callbackNode=null,e.callbackPriority=0;else if(t=r&-r,e.callbackPriority!==t){if(n!=null&&EM(n),t===1)e.tag===0?dae(vk.bind(null,e)):U9(vk.bind(null,e)),sae(function(){!(Hn&6)&&lu()}),n=null;else{switch(x9(r)){case 1:n=k_;break;case 4:n=v9;break;case 16:n=Ob;break;case 536870912:n=y9;break;default:n=Ob}n=VH(n,AH.bind(null,e))}e.callbackPriority=t,e.callbackNode=n}}function AH(e,t){if(Wy=-1,Uy=0,Hn&6)throw Error($t(327));var n=e.callbackNode;if(nm()&&e.callbackNode!==n)return null;var r=Pb(e,e===Vo?ni:0);if(r===0)return null;if(r&30||r&e.expiredLanes||t)t=Ub(e,r);else{t=r;var o=Hn;Hn|=2;var i=LH();(Vo!==e||ni!==t)&&(Cl=null,wm=Qr()+500,Ju(e,t));do try{Rae();break}catch(s){DH(e,s)}while(!0);G_(),Hb.current=i,Hn=o,co!==null?t=0:(Vo=null,ni=0,t=So)}if(t!==0){if(t===2&&(o=RE(e),o!==0&&(r=o,t=aO(e,o))),t===1)throw n=pg,Ju(e,0),Pc(e,r),na(e,Qr()),n;if(t===6)Pc(e,r);else{if(o=e.current.alternate,!(r&30)&&!_ae(o)&&(t=Ub(e,r),t===2&&(i=RE(e),i!==0&&(r=i,t=aO(e,i))),t===1))throw n=pg,Ju(e,0),Pc(e,r),na(e,Qr()),n;switch(e.finishedWork=o,e.finishedLanes=r,t){case 0:case 1:throw Error($t(345));case 2:Iu(e,qi,Cl);break;case 3:if(Pc(e,r),(r&130023424)===r&&(t=cN+500-Qr(),10<t)){if(Pb(e,0)!==0)break;if(o=e.suspendedLanes,(o&r)!==r){zi(),e.pingedLanes|=e.suspendedLanes&o;break}e.timeoutHandle=FE(Iu.bind(null,e,qi,Cl),t);break}Iu(e,qi,Cl);break;case 4:if(Pc(e,r),(r&4194240)===r)break;for(t=e.eventTimes,o=-1;0<r;){var a=31-_s(r);i=1<<a,a=t[a],a>o&&(o=a),r&=~i}if(r=o,r=Qr()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Iae(r/1960))-r,10<r){e.timeoutHandle=FE(Iu.bind(null,e,qi,Cl),r);break}Iu(e,qi,Cl);break;case 5:Iu(e,qi,Cl);break;default:throw Error($t(329))}}}return na(e,Qr()),e.callbackNode===n?AH.bind(null,e):null}function aO(e,t){var n=Dp;return e.current.memoizedState.isDehydrated&&(Ju(e,t).flags|=256),e=Ub(e,t),e!==2&&(t=qi,qi=n,t!==null&&sO(t)),e}function sO(e){qi===null?qi=e:qi.push.apply(qi,e)}function _ae(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],i=o.getSnapshot;o=o.value;try{if(!As(i(),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 Pc(e,t){for(t&=~lN,t&=~T1,e.suspendedLanes|=t,e.pingedLanes&=~t,e=e.expirationTimes;0<t;){var n=31-_s(t),r=1<<n;e[n]=-1,t&=~r}}function vk(e){if(Hn&6)throw Error($t(327));nm();var t=Pb(e,0);if(!(t&1))return na(e,Qr()),null;var n=Ub(e,t);if(e.tag!==0&&n===2){var r=RE(e);r!==0&&(t=r,n=aO(e,r))}if(n===1)throw n=pg,Ju(e,0),Pc(e,t),na(e,Qr()),n;if(n===6)throw Error($t(345));return e.finishedWork=e.current.alternate,e.finishedLanes=t,Iu(e,qi,Cl),na(e,Qr()),null}function uN(e,t){var n=Hn;Hn|=1;try{return e(t)}finally{Hn=n,Hn===0&&(wm=Qr()+500,I1&&lu())}}function md(e){_c!==null&&_c.tag===0&&!(Hn&6)&&nm();var t=Hn;Hn|=1;var n=es.transition,r=er;try{if(es.transition=null,er=1,e)return e()}finally{er=r,es.transition=n,Hn=t,!(Hn&6)&&lu()}}function dN(){ya=Af.current,xr(Af)}function Ju(e,t){e.finishedWork=null,e.finishedLanes=0;var n=e.timeoutHandle;if(n!==-1&&(e.timeoutHandle=-1,aae(n)),co!==null)for(n=co.return;n!==null;){var r=n;switch(U_(r),r.tag){case 1:r=r.type.childContextTypes,r!=null&&Rb();break;case 3:bm(),xr(ea),xr(wi),eN();break;case 5:Q_(r);break;case 4:bm();break;case 13:xr(Tr);break;case 19:xr(Tr);break;case 10:X_(r.type._context);break;case 22:case 23:dN()}n=n.return}if(Vo=e,co=e=Hc(e.current,null),ni=ya=t,So=0,pg=null,lN=T1=fd=0,qi=Dp=null,Lu!==null){for(t=0;t<Lu.length;t++)if(n=Lu[t],r=n.interleaved,r!==null){n.interleaved=null;var o=r.next,i=n.pending;if(i!==null){var a=i.next;i.next=o,r.next=a}n.pending=r}Lu=null}return e}function DH(e,t){do{var n=co;try{if(G_(),By.current=Bb,Fb){for(var r=Ar.memoizedState;r!==null;){var o=r.queue;o!==null&&(o.pending=null),r=r.next}Fb=!1}if(dd=0,Fo=bo=Ar=null,kp=!1,fg=0,sN.current=null,n===null||n.return===null){So=1,pg=t,co=null;break}e:{var i=e,a=n.return,s=n,l=t;if(t=ni,s.flags|=32768,l!==null&&typeof l=="object"&&typeof l.then=="function"){var u=l,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 h=ok(a);if(h!==null){h.flags&=-257,ik(h,a,s,i,t),h.mode&1&&rk(i,u,t),t=h,l=u;var p=t.updateQueue;if(p===null){var b=new Set;b.add(l),t.updateQueue=b}else p.add(l);break e}else{if(!(t&1)){rk(i,u,t),fN();break e}l=Error($t(426))}}else if(Sr&&s.mode&1){var v=ok(a);if(v!==null){!(v.flags&65536)&&(v.flags|=256),ik(v,a,s,i,t),K_(xm(l,s));break e}}i=l=xm(l,s),So!==4&&(So=2),Dp===null?Dp=[i]:Dp.push(i),i=a;do{switch(i.tag){case 3:i.flags|=65536,t&=-t,i.lanes|=t;var y=xH(i,l,t);ZM(i,y);break e;case 1:s=l;var x=i.type,w=i.stateNode;if(!(i.flags&128)&&(typeof x.getDerivedStateFromError=="function"||w!==null&&typeof w.componentDidCatch=="function"&&(Fc===null||!Fc.has(w)))){i.flags|=65536,t&=-t,i.lanes|=t;var C=wH(i,s,t);ZM(i,C);break e}}i=i.return}while(i!==null)}FH(n)}catch(S){t=S,co===n&&n!==null&&(co=n=n.return);continue}break}while(!0)}function LH(){var e=Hb.current;return Hb.current=Bb,e===null?Bb:e}function fN(){(So===0||So===3||So===2)&&(So=4),Vo===null||!(fd&268435455)&&!(T1&268435455)||Pc(Vo,ni)}function Ub(e,t){var n=Hn;Hn|=2;var r=LH();(Vo!==e||ni!==t)&&(Cl=null,Ju(e,t));do try{Nae();break}catch(o){DH(e,o)}while(!0);if(G_(),Hn=n,Hb.current=r,co!==null)throw Error($t(261));return Vo=null,ni=0,So}function Nae(){for(;co!==null;)zH(co)}function Rae(){for(;co!==null&&!rie();)zH(co)}function zH(e){var t=HH(e.alternate,e,ya);e.memoizedProps=e.pendingProps,t===null?FH(e):co=t,sN.current=null}function FH(e){var t=e;do{var n=t.alternate;if(e=t.return,t.flags&32768){if(n=Eae(n,t),n!==null){n.flags&=32767,co=n;return}if(e!==null)e.flags|=32768,e.subtreeFlags=0,e.deletions=null;else{So=6,co=null;return}}else if(n=$ae(n,t,ya),n!==null){co=n;return}if(t=t.sibling,t!==null){co=t;return}co=t=e}while(t!==null);So===0&&(So=5)}function Iu(e,t,n){var r=er,o=es.transition;try{es.transition=null,er=1,Tae(e,t,n,r)}finally{es.transition=o,er=r}return null}function Tae(e,t,n,r){do nm();while(_c!==null);if(Hn&6)throw Error($t(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($t(177));e.callbackNode=null,e.callbackPriority=0;var i=n.lanes|n.childLanes;if(mie(e,i),e===Vo&&(co=Vo=null,ni=0),!(n.subtreeFlags&2064)&&!(n.flags&2064)||T0||(T0=!0,VH(Ob,function(){return nm(),null})),i=(n.flags&15990)!==0,n.subtreeFlags&15990||i){i=es.transition,es.transition=null;var a=er;er=1;var s=Hn;Hn|=4,sN.current=null,Pae(e,n),MH(n,e),Qie(LE),jb=!!DE,LE=DE=null,e.current=n,jae(n),oie(),Hn=s,er=a,es.transition=i}else e.current=n;if(T0&&(T0=!1,_c=e,Wb=o),i=e.pendingLanes,i===0&&(Fc=null),sie(n.stateNode),na(e,Qr()),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(Vb)throw Vb=!1,e=oO,oO=null,e;return Wb&1&&e.tag!==0&&nm(),i=e.pendingLanes,i&1?e===iO?Lp++:(Lp=0,iO=e):Lp=0,lu(),null}function nm(){if(_c!==null){var e=x9(Wb),t=es.transition,n=er;try{if(es.transition=null,er=16>e?16:e,_c===null)var r=!1;else{if(e=_c,_c=null,Wb=0,Hn&6)throw Error($t(331));var o=Hn;for(Hn|=4,Xt=e.current;Xt!==null;){var i=Xt,a=i.child;if(Xt.flags&16){var s=i.deletions;if(s!==null){for(var l=0;l<s.length;l++){var u=s[l];for(Xt=u;Xt!==null;){var d=Xt;switch(d.tag){case 0:case 11:case 15:Ap(8,d,i)}var f=d.child;if(f!==null)f.return=d,Xt=f;else for(;Xt!==null;){d=Xt;var m=d.sibling,h=d.return;if(NH(d),d===u){Xt=null;break}if(m!==null){m.return=h,Xt=m;break}Xt=h}}}var p=i.alternate;if(p!==null){var b=p.child;if(b!==null){p.child=null;do{var v=b.sibling;b.sibling=null,b=v}while(b!==null)}}Xt=i}}if(i.subtreeFlags&2064&&a!==null)a.return=i,Xt=a;else e:for(;Xt!==null;){if(i=Xt,i.flags&2048)switch(i.tag){case 0:case 11:case 15:Ap(9,i,i.return)}var y=i.sibling;if(y!==null){y.return=i.return,Xt=y;break e}Xt=i.return}}var x=e.current;for(Xt=x;Xt!==null;){a=Xt;var w=a.child;if(a.subtreeFlags&2064&&w!==null)w.return=a,Xt=w;else e:for(a=x;Xt!==null;){if(s=Xt,s.flags&2048)try{switch(s.tag){case 0:case 11:case 15:R1(9,s)}}catch(S){Ur(s,s.return,S)}if(s===a){Xt=null;break e}var C=s.sibling;if(C!==null){C.return=s.return,Xt=C;break e}Xt=s.return}}if(Hn=o,lu(),ol&&typeof ol.onPostCommitFiberRoot=="function")try{ol.onPostCommitFiberRoot($1,e)}catch{}r=!0}return r}finally{er=n,es.transition=t}}return!1}function yk(e,t,n){t=xm(n,t),t=xH(e,t,1),e=zc(e,t,1),t=zi(),e!==null&&(lv(e,1,t),na(e,t))}function Ur(e,t,n){if(e.tag===3)yk(e,e,n);else for(;t!==null;){if(t.tag===3){yk(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&(Fc===null||!Fc.has(r))){e=xm(n,e),e=wH(t,e,1),t=zc(t,e,1),e=zi(),t!==null&&(lv(t,1,e),na(t,e));break}}t=t.return}}function Mae(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),t=zi(),e.pingedLanes|=e.suspendedLanes&n,Vo===e&&(ni&n)===n&&(So===4||So===3&&(ni&130023424)===ni&&500>Qr()-cN?Ju(e,0):lN|=n),na(e,t)}function BH(e,t){t===0&&(e.mode&1?(t=C0,C0<<=1,!(C0&130023424)&&(C0=4194304)):t=1);var n=zi();e=Bl(e,t),e!==null&&(lv(e,t,n),na(e,n))}function kae(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),BH(e,n)}function Aae(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($t(314))}r!==null&&r.delete(t),BH(e,n)}var HH;HH=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||ea.current)Xi=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Xi=!1,Cae(e,t,n);Xi=!!(e.flags&131072)}else Xi=!1,Sr&&t.flags&1048576&&K9(t,kb,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;Vy(e,t),e=t.pendingProps;var o=gm(t,wi.current);tm(t,n),o=nN(null,t,r,e,o,n);var i=rN();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,ta(r)?(i=!0,Tb(t)):i=!1,t.memoizedState=o.state!==null&&o.state!==void 0?o.state:null,Z_(t),o.updater=N1,t.stateNode=o,o._reactInternals=t,qE(t,r,e,n),t=YE(null,t,r,!0,i,n)):(t.tag=0,Sr&&i&&W_(t),_i(null,t,o,n),t=t.child),t;case 16:r=t.elementType;e:{switch(Vy(e,t),e=t.pendingProps,o=r._init,r=o(r._payload),t.type=r,o=t.tag=Lae(r),e=Ss(r,e),o){case 0:t=XE(null,t,r,e,n);break e;case 1:t=lk(null,t,r,e,n);break e;case 11:t=ak(null,t,r,e,n);break e;case 14:t=sk(null,t,r,Ss(r.type,e),n);break e}throw Error($t(306,r,""))}return t;case 0:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Ss(r,o),XE(e,t,r,o,n);case 1:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Ss(r,o),lk(e,t,r,o,n);case 3:e:{if(EH(t),e===null)throw Error($t(387));r=t.pendingProps,i=t.memoizedState,o=i.element,J9(e,t),Lb(t,r,null,n);var a=t.memoizedState;if(r=a.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:a.cache,pendingSuspenseBoundaries:a.pendingSuspenseBoundaries,transitions:a.transitions},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){o=xm(Error($t(423)),t),t=ck(e,t,r,n,o);break e}else if(r!==o){o=xm(Error($t(424)),t),t=ck(e,t,r,n,o);break e}else for(Ca=Lc(t.stateNode.containerInfo.firstChild),Oa=t,Sr=!0,Es=null,n=Y9(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(vm(),r===o){t=Hl(e,t,n);break e}_i(e,t,r,n)}t=t.child}return t;case 5:return Q9(t),e===null&&WE(t),r=t.type,o=t.pendingProps,i=e!==null?e.memoizedProps:null,a=o.children,zE(r,o)?a=null:i!==null&&zE(r,i)&&(t.flags|=32),$H(e,t),_i(e,t,a,n),t.child;case 6:return e===null&&WE(t),null;case 13:return OH(e,t,n);case 4:return J_(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=ym(t,null,r,n):_i(e,t,r,n),t.child;case 11:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Ss(r,o),ak(e,t,r,o,n);case 7:return _i(e,t,t.pendingProps,n),t.child;case 8:return _i(e,t,t.pendingProps.children,n),t.child;case 12:return _i(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,o=t.pendingProps,i=t.memoizedProps,a=o.value,fr(Ab,r._currentValue),r._currentValue=a,i!==null)if(As(i.value,a)){if(i.children===o.children&&!ea.current){t=Hl(e,t,n);break e}}else for(i=t.child,i!==null&&(i.return=t);i!==null;){var s=i.dependencies;if(s!==null){a=i.child;for(var l=s.firstContext;l!==null;){if(l.context===r){if(i.tag===1){l=Tl(-1,n&-n),l.tag=2;var u=i.updateQueue;if(u!==null){u=u.shared;var d=u.pending;d===null?l.next=l:(l.next=d.next,d.next=l),u.pending=l}}i.lanes|=n,l=i.alternate,l!==null&&(l.lanes|=n),UE(i.return,n,t),s.lanes|=n;break}l=l.next}}else if(i.tag===10)a=i.type===t.type?null:i.child;else if(i.tag===18){if(a=i.return,a===null)throw Error($t(341));a.lanes|=n,s=a.alternate,s!==null&&(s.lanes|=n),UE(a,n,t),a=i.sibling}else a=i.child;if(a!==null)a.return=i;else for(a=i;a!==null;){if(a===t){a=null;break}if(i=a.sibling,i!==null){i.return=a.return,a=i;break}a=a.return}i=a}_i(e,t,o.children,n),t=t.child}return t;case 9:return o=t.type,r=t.pendingProps.children,tm(t,n),o=rs(o),r=r(o),t.flags|=1,_i(e,t,r,n),t.child;case 14:return r=t.type,o=Ss(r,t.pendingProps),o=Ss(r.type,o),sk(e,t,r,o,n);case 15:return SH(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,o=t.pendingProps,o=t.elementType===r?o:Ss(r,o),Vy(e,t),t.tag=1,ta(r)?(e=!0,Tb(t)):e=!1,tm(t,n),bH(t,r,o),qE(t,r,o,n),YE(null,t,r,!0,e,n);case 19:return PH(e,t,n);case 22:return CH(e,t,n)}throw Error($t(156,t.tag))};function VH(e,t){return g9(e,t)}function Dae(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 Ya(e,t,n,r){return new Dae(e,t,n,r)}function mN(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Lae(e){if(typeof e=="function")return mN(e)?1:0;if(e!=null){if(e=e.$$typeof,e===R_)return 11;if(e===T_)return 14}return 2}function Hc(e,t){var n=e.alternate;return n===null?(n=Ya(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 Ky(e,t,n,r,o,i){var a=2;if(r=e,typeof e=="function")mN(e)&&(a=1);else if(typeof e=="string")a=5;else e:switch(e){case Of:return Qu(n.children,o,i,t);case N_:a=8,o|=8;break;case vE:return e=Ya(12,n,t,o|2),e.elementType=vE,e.lanes=i,e;case yE:return e=Ya(13,n,t,o),e.elementType=yE,e.lanes=i,e;case bE:return e=Ya(19,n,t,o),e.elementType=bE,e.lanes=i,e;case QB:return M1(n,o,i,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case ZB:a=10;break e;case JB:a=9;break e;case R_:a=11;break e;case T_:a=14;break e;case wc:a=16,r=null;break e}throw Error($t(130,e==null?e:typeof e,""))}return t=Ya(a,n,t,o),t.elementType=e,t.type=r,t.lanes=i,t}function Qu(e,t,n,r){return e=Ya(7,e,r,t),e.lanes=n,e}function M1(e,t,n,r){return e=Ya(22,e,r,t),e.elementType=QB,e.lanes=n,e.stateNode={isHidden:!1},e}function QC(e,t,n){return e=Ya(6,e,null,t),e.lanes=n,e}function e$(e,t,n){return t=Ya(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function zae(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=MC(0),this.expirationTimes=MC(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=MC(0),this.identifierPrefix=r,this.onRecoverableError=o,this.mutableSourceEagerHydrationData=null}function hN(e,t,n,r,o,i,a,s,l){return e=new zae(e,t,n,s,l),t===1?(t=1,i===!0&&(t|=8)):t=0,i=Ya(3,null,null,t),e.current=i,i.stateNode=e,i.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},Z_(i),e}function Fae(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:Ef,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}function WH(e){if(!e)return Xc;e=e._reactInternals;e:{if(Dd(e)!==e||e.tag!==1)throw Error($t(170));var t=e;do{switch(t.tag){case 3:t=t.stateNode.context;break e;case 1:if(ta(t.type)){t=t.stateNode.__reactInternalMemoizedMergedChildContext;break e}}t=t.return}while(t!==null);throw Error($t(171))}if(e.tag===1){var n=e.type;if(ta(n))return W9(e,n,t)}return t}function UH(e,t,n,r,o,i,a,s,l){return e=hN(n,r,!0,e,o,i,a,s,l),e.context=WH(null),n=e.current,r=zi(),o=Bc(n),i=Tl(r,o),i.callback=t??null,zc(n,i,o),e.current.lanes=o,lv(e,o,r),na(e,r),e}function k1(e,t,n,r){var o=t.current,i=zi(),a=Bc(o);return n=WH(n),t.context===null?t.context=n:t.pendingContext=n,t=Tl(i,a),t.payload={element:e},r=r===void 0?null:r,r!==null&&(t.callback=r),e=zc(o,t,a),e!==null&&(Ns(e,o,a,i),Fy(e,o,a)),a}function Kb(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 bk(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function pN(e,t){bk(e,t),(e=e.alternate)&&bk(e,t)}function Bae(){return null}var KH=typeof reportError=="function"?reportError:function(e){console.error(e)};function gN(e){this._internalRoot=e}A1.prototype.render=gN.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error($t(409));k1(e,t,null,null)};A1.prototype.unmount=gN.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;md(function(){k1(null,e,null,null)}),t[Fl]=null}};function A1(e){this._internalRoot=e}A1.prototype.unstable_scheduleHydration=function(e){if(e){var t=C9();e={blockedOn:null,target:e,priority:t};for(var n=0;n<Oc.length&&t!==0&&t<Oc[n].priority;n++);Oc.splice(n,0,e),n===0&&E9(e)}};function vN(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function D1(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11&&(e.nodeType!==8||e.nodeValue!==" react-mount-point-unstable "))}function xk(){}function Hae(e,t,n,r,o){if(o){if(typeof r=="function"){var i=r;r=function(){var u=Kb(a);i.call(u)}}var a=UH(t,r,e,0,null,!1,!1,"",xk);return e._reactRootContainer=a,e[Fl]=a.current,sg(e.nodeType===8?e.parentNode:e),md(),a}for(;o=e.lastChild;)e.removeChild(o);if(typeof r=="function"){var s=r;r=function(){var u=Kb(l);s.call(u)}}var l=hN(e,0,!1,null,null,!1,!1,"",xk);return e._reactRootContainer=l,e[Fl]=l.current,sg(e.nodeType===8?e.parentNode:e),md(function(){k1(t,l,n,r)}),l}function L1(e,t,n,r,o){var i=n._reactRootContainer;if(i){var a=i;if(typeof o=="function"){var s=o;o=function(){var l=Kb(a);s.call(l)}}k1(t,a,e,o)}else a=Hae(n,t,e,o,r);return Kb(a)}w9=function(e){switch(e.tag){case 3:var t=e.stateNode;if(t.current.memoizedState.isDehydrated){var n=vp(t.pendingLanes);n!==0&&(A_(t,n|1),na(t,Qr()),!(Hn&6)&&(wm=Qr()+500,lu()))}break;case 13:md(function(){var r=Bl(e,1);if(r!==null){var o=zi();Ns(r,e,1,o)}}),pN(e,1)}};D_=function(e){if(e.tag===13){var t=Bl(e,134217728);if(t!==null){var n=zi();Ns(t,e,134217728,n)}pN(e,134217728)}};S9=function(e){if(e.tag===13){var t=Bc(e),n=Bl(e,t);if(n!==null){var r=zi();Ns(n,e,t,r)}pN(e,t)}};C9=function(){return er};$9=function(e,t){var n=er;try{return er=e,t()}finally{er=n}};IE=function(e,t,n){switch(t){case"input":if(SE(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=j1(r);if(!o)throw Error($t(90));t9(r),SE(r,o)}}}break;case"textarea":r9(e,n);break;case"select":t=n.value,t!=null&&Zf(e,!!n.multiple,t,!1)}};u9=uN;d9=md;var Vae={usingClientEntryPoint:!1,Events:[uv,_f,j1,l9,c9,uN]},Uh={findFiberByHostInstance:Du,bundleType:0,version:"18.3.1",rendererPackageName:"react-dom"},Wae={bundleType:Uh.bundleType,version:Uh.version,rendererPackageName:Uh.rendererPackageName,rendererConfig:Uh.rendererConfig,overrideHookState:null,overrideHookStateDeletePath:null,overrideHookStateRenamePath:null,overrideProps:null,overridePropsDeletePath:null,overridePropsRenamePath:null,setErrorHandler:null,setSuspenseHandler:null,scheduleUpdate:null,currentDispatcherRef:tc.ReactCurrentDispatcher,findHostInstanceByFiber:function(e){return e=h9(e),e===null?null:e.stateNode},findFiberByHostInstance:Uh.findFiberByHostInstance||Bae,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 M0=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!M0.isDisabled&&M0.supportsFiber)try{$1=M0.inject(Wae),ol=M0}catch{}}_a.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED=Vae;_a.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!vN(t))throw Error($t(200));return Fae(e,t,null,n)};_a.createRoot=function(e,t){if(!vN(e))throw Error($t(299));var n=!1,r="",o=KH;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onRecoverableError!==void 0&&(o=t.onRecoverableError)),t=hN(e,1,!1,null,null,n,!1,r,o),e[Fl]=t.current,sg(e.nodeType===8?e.parentNode:e),new gN(t)};_a.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($t(188)):(e=Object.keys(e).join(","),Error($t(268,e)));return e=h9(t),e=e===null?null:e.stateNode,e};_a.flushSync=function(e){return md(e)};_a.hydrate=function(e,t,n){if(!D1(t))throw Error($t(200));return L1(null,e,t,!0,n)};_a.hydrateRoot=function(e,t,n){if(!vN(e))throw Error($t(405));var r=n!=null&&n.hydratedSources||null,o=!1,i="",a=KH;if(n!=null&&(n.unstable_strictMode===!0&&(o=!0),n.identifierPrefix!==void 0&&(i=n.identifierPrefix),n.onRecoverableError!==void 0&&(a=n.onRecoverableError)),t=UH(t,null,e,1,n??null,o,!1,i,a),e[Fl]=t.current,sg(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 A1(t)};_a.render=function(e,t,n){if(!D1(t))throw Error($t(200));return L1(null,e,t,!1,n)};_a.unmountComponentAtNode=function(e){if(!D1(e))throw Error($t(40));return e._reactRootContainer?(md(function(){L1(null,null,e,!1,function(){e._reactRootContainer=null,e[Fl]=null})}),!0):!1};_a.unstable_batchedUpdates=uN;_a.unstable_renderSubtreeIntoContainer=function(e,t,n,r){if(!D1(n))throw Error($t(200));if(e==null||e._reactInternals===void 0)throw Error($t(38));return L1(e,t,n,!1,r)};_a.version="18.3.1-next-f1338f8080-20240426";function qH(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(qH)}catch(e){console.error(e)}}qH(),qB.exports=_a;var Fi=qB.exports;const gg=ho(Fi),Uae=kB({__proto__:null,default:gg},[Fi]);var GH,wk=Fi;GH=wk.createRoot,wk.hydrateRoot;/**
 * react-router v7.11.0
 *
 * Copyright (c) Remix Software Inc.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE.md file in the root directory of this source tree.
 *
 * @license MIT
 */var Sk="popstate";function Kae(e={}){function t(r,o){let{pathname:i,search:a,hash:s}=r.location;return lO("",{pathname:i,search:a,hash:s},o.state&&o.state.usr||null,o.state&&o.state.key||"default")}function n(r,o){return typeof o=="string"?o:vg(o)}return Gae(t,n,null,e)}function Er(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function is(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function qae(){return Math.random().toString(36).substring(2,10)}function Ck(e,t){return{usr:e.state,key:e.key,idx:t}}function lO(e,t,n=null,r){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof t=="string"?Qm(t):t,state:n,key:t&&t.key||r||qae()}}function vg({pathname:e="/",search:t="",hash:n=""}){return t&&t!=="?"&&(e+=t.charAt(0)==="?"?t:"?"+t),n&&n!=="#"&&(e+=n.charAt(0)==="#"?n:"#"+n),e}function Qm(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substring(n),e=e.substring(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substring(r),e=e.substring(0,r)),e&&(t.pathname=e)}return t}function Gae(e,t,n,r={}){let{window:o=document.defaultView,v5Compat:i=!1}=r,a=o.history,s="POP",l=null,u=d();u==null&&(u=0,a.replaceState({...a.state,idx:u},""));function d(){return(a.state||{idx:null}).idx}function f(){s="POP";let v=d(),y=v==null?null:v-u;u=v,l&&l({action:s,location:b.location,delta:y})}function m(v,y){s="PUSH";let x=lO(b.location,v,y);u=d()+1;let w=Ck(x,u),C=b.createHref(x);try{a.pushState(w,"",C)}catch(S){if(S instanceof DOMException&&S.name==="DataCloneError")throw S;o.location.assign(C)}i&&l&&l({action:s,location:b.location,delta:1})}function h(v,y){s="REPLACE";let x=lO(b.location,v,y);u=d();let w=Ck(x,u),C=b.createHref(x);a.replaceState(w,"",C),i&&l&&l({action:s,location:b.location,delta:0})}function p(v){return Xae(v)}let b={get action(){return s},get location(){return e(o,a)},listen(v){if(l)throw new Error("A history only accepts one active listener");return o.addEventListener(Sk,f),l=v,()=>{o.removeEventListener(Sk,f),l=null}},createHref(v){return t(o,v)},createURL:p,encodeLocation(v){let y=p(v);return{pathname:y.pathname,search:y.search,hash:y.hash}},push:m,replace:h,go(v){return a.go(v)}};return b}function Xae(e,t=!1){let n="http://localhost";typeof window<"u"&&(n=window.location.origin!=="null"?window.location.origin:window.location.href),Er(n,"No window.location.(origin|href) available to create URL");let r=typeof e=="string"?e:vg(e);return r=r.replace(/ $/,"%20"),!t&&r.startsWith("//")&&(r=n+r),new URL(r,n)}function XH(e,t,n="/"){return Yae(e,t,n,!1)}function Yae(e,t,n,r){let o=typeof t=="string"?Qm(t):t,i=Vl(o.pathname||"/",n);if(i==null)return null;let a=YH(e);Zae(a);let s=null;for(let l=0;s==null&&l<a.length;++l){let u=lse(i);s=ase(a[l],u,r)}return s}function YH(e,t=[],n=[],r="",o=!1){let i=(a,s,l=o,u)=>{let d={relativePath:u===void 0?a.path||"":u,caseSensitive:a.caseSensitive===!0,childrenIndex:s,route:a};if(d.relativePath.startsWith("/")){if(!d.relativePath.startsWith(r)&&l)return;Er(d.relativePath.startsWith(r),`Absolute route path "${d.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),d.relativePath=d.relativePath.slice(r.length)}let f=Ml([r,d.relativePath]),m=n.concat(d);a.children&&a.children.length>0&&(Er(a.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${f}".`),YH(a.children,t,m,f,l)),!(a.path==null&&!a.index)&&t.push({path:f,score:ose(f,a.index),routesMeta:m})};return e.forEach((a,s)=>{var l;if(a.path===""||!((l=a.path)!=null&&l.includes("?")))i(a,s);else for(let u of ZH(a.path))i(a,s,!0,u)}),t}function ZH(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,o=n.endsWith("?"),i=n.replace(/\?$/,"");if(r.length===0)return o?[i,""]:[i];let a=ZH(r.join("/")),s=[];return s.push(...a.map(l=>l===""?i:[i,l].join("/"))),o&&s.push(...a),s.map(l=>e.startsWith("/")&&l===""?"/":l)}function Zae(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:ise(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}var Jae=/^:[\w-]+$/,Qae=3,ese=2,tse=1,nse=10,rse=-2,$k=e=>e==="*";function ose(e,t){let n=e.split("/"),r=n.length;return n.some($k)&&(r+=rse),t&&(r+=ese),n.filter(o=>!$k(o)).reduce((o,i)=>o+(Jae.test(i)?Qae:i===""?tse:nse),r)}function ise(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 ase(e,t,n=!1){let{routesMeta:r}=e,o={},i="/",a=[];for(let s=0;s<r.length;++s){let l=r[s],u=s===r.length-1,d=i==="/"?t:t.slice(i.length)||"/",f=qb({path:l.relativePath,caseSensitive:l.caseSensitive,end:u},d),m=l.route;if(!f&&u&&n&&!r[r.length-1].route.index&&(f=qb({path:l.relativePath,caseSensitive:l.caseSensitive,end:!1},d)),!f)return null;Object.assign(o,f.params),a.push({params:o,pathname:Ml([i,f.pathname]),pathnameBase:fse(Ml([i,f.pathnameBase])),route:m}),f.pathnameBase!=="/"&&(i=Ml([i,f.pathnameBase]))}return a}function qb(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=sse(e.path,e.caseSensitive,e.end),o=t.match(n);if(!o)return null;let i=o[0],a=i.replace(/(.)\/+$/,"$1"),s=o.slice(1);return{params:r.reduce((u,{paramName:d,isOptional:f},m)=>{if(d==="*"){let p=s[m]||"";a=i.slice(0,i.length-p.length).replace(/(.)\/+$/,"$1")}const h=s[m];return f&&!h?u[d]=void 0:u[d]=(h||"").replace(/%2F/g,"/"),u},{}),pathname:i,pathnameBase:a,pattern:e}}function sse(e,t=!1,n=!0){is(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,(a,s,l)=>(r.push({paramName:s,isOptional:l!=null}),l?"/?([^\\/]+)?":"/([^\\/]+)")).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return e.endsWith("*")?(r.push({paramName:"*"}),o+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?o+="\\/*$":e!==""&&e!=="/"&&(o+="(?:(?=\\/|$))"),[new RegExp(o,t?void 0:"i"),r]}function lse(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return is(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function Vl(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)||"/"}var JH=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,cse=e=>JH.test(e);function use(e,t="/"){let{pathname:n,search:r="",hash:o=""}=typeof e=="string"?Qm(e):e,i;if(n)if(cse(n))i=n;else{if(n.includes("//")){let a=n;n=n.replace(/\/\/+/g,"/"),is(!1,`Pathnames cannot have embedded double slashes - normalizing ${a} -> ${n}`)}n.startsWith("/")?i=Ek(n.substring(1),"/"):i=Ek(n,t)}else i=t;return{pathname:i,search:mse(r),hash:hse(o)}}function Ek(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 t$(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 dse(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function yN(e){let t=dse(e);return t.map((n,r)=>r===t.length-1?n.pathname:n.pathnameBase)}function bN(e,t,n,r=!1){let o;typeof e=="string"?o=Qm(e):(o={...e},Er(!o.pathname||!o.pathname.includes("?"),t$("?","pathname","search",o)),Er(!o.pathname||!o.pathname.includes("#"),t$("#","pathname","hash",o)),Er(!o.search||!o.search.includes("#"),t$("#","search","hash",o)));let i=e===""||o.pathname==="",a=i?"/":o.pathname,s;if(a==null)s=n;else{let f=t.length-1;if(!r&&a.startsWith("..")){let m=a.split("/");for(;m[0]==="..";)m.shift(),f-=1;o.pathname=m.join("/")}s=f>=0?t[f]:"/"}let l=use(o,s),u=a&&a!=="/"&&a.endsWith("/"),d=(i||a===".")&&n.endsWith("/");return!l.pathname.endsWith("/")&&(u||d)&&(l.pathname+="/"),l}var Ml=e=>e.join("/").replace(/\/\/+/g,"/"),fse=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),mse=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,hse=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e,pse=class{constructor(e,t,n,r=!1){this.status=e,this.statusText=t||"",this.internal=r,n instanceof Error?(this.data=n.toString(),this.error=n):this.data=n}};function gse(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}function vse(e){return e.map(t=>t.route.path).filter(Boolean).join("/").replace(/\/\/*/g,"/")||"/"}var QH=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function eV(e,t){let n=e;if(typeof n!="string"||!JH.test(n))return{absoluteURL:void 0,isExternal:!1,to:n};let r=n,o=!1;if(QH)try{let i=new URL(window.location.href),a=n.startsWith("//")?new URL(i.protocol+n):new URL(n),s=Vl(a.pathname,t);a.origin===i.origin&&s!=null?n=s+a.search+a.hash:o=!0}catch{is(!1,`<Link to="${n}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:r,isExternal:o,to:n}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var tV=["POST","PUT","PATCH","DELETE"];new Set(tV);var yse=["GET",...tV];new Set(yse);var eh=c.createContext(null);eh.displayName="DataRouter";var z1=c.createContext(null);z1.displayName="DataRouterState";var bse=c.createContext(!1),nV=c.createContext({isTransitioning:!1});nV.displayName="ViewTransition";var xse=c.createContext(new Map);xse.displayName="Fetchers";var wse=c.createContext(null);wse.displayName="Await";var Ra=c.createContext(null);Ra.displayName="Navigation";var fv=c.createContext(null);fv.displayName="Location";var ds=c.createContext({outlet:null,matches:[],isDataRoute:!1});ds.displayName="Route";var xN=c.createContext(null);xN.displayName="RouteError";var rV="REACT_ROUTER_ERROR",Sse="REDIRECT",Cse="ROUTE_ERROR_RESPONSE";function $se(e){if(e.startsWith(`${rV}:${Sse}:{`))try{let t=JSON.parse(e.slice(28));if(typeof t=="object"&&t&&typeof t.status=="number"&&typeof t.statusText=="string"&&typeof t.location=="string"&&typeof t.reloadDocument=="boolean"&&typeof t.replace=="boolean")return t}catch{}}function Ese(e){if(e.startsWith(`${rV}:${Cse}:{`))try{let t=JSON.parse(e.slice(40));if(typeof t=="object"&&t&&typeof t.status=="number"&&typeof t.statusText=="string")return new pse(t.status,t.statusText,t.data)}catch{}}function Ose(e,{relative:t}={}){Er(th(),"useHref() may be used only in the context of a <Router> component.");let{basename:n,navigator:r}=c.useContext(Ra),{hash:o,pathname:i,search:a}=mv(e,{relative:t}),s=i;return n!=="/"&&(s=i==="/"?n:Ml([n,i])),r.createHref({pathname:s,search:a,hash:o})}function th(){return c.useContext(fv)!=null}function fs(){return Er(th(),"useLocation() may be used only in the context of a <Router> component."),c.useContext(fv).location}var oV="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function iV(e){c.useContext(Ra).static||c.useLayoutEffect(e)}function nh(){let{isDataRoute:e}=c.useContext(ds);return e?Hse():Pse()}function Pse(){Er(th(),"useNavigate() may be used only in the context of a <Router> component.");let e=c.useContext(eh),{basename:t,navigator:n}=c.useContext(Ra),{matches:r}=c.useContext(ds),{pathname:o}=fs(),i=JSON.stringify(yN(r)),a=c.useRef(!1);return iV(()=>{a.current=!0}),c.useCallback((l,u={})=>{if(is(a.current,oV),!a.current)return;if(typeof l=="number"){n.go(l);return}let d=bN(l,JSON.parse(i),o,u.relative==="path");e==null&&t!=="/"&&(d.pathname=d.pathname==="/"?t:Ml([t,d.pathname])),(u.replace?n.replace:n.push)(d,u.state,u)},[t,n,i,o,e])}var jse=c.createContext(null);function Ise(e){let t=c.useContext(ds).outlet;return c.useMemo(()=>t&&c.createElement(jse.Provider,{value:e},t),[t,e])}function _se(){let{matches:e}=c.useContext(ds),t=e[e.length-1];return t?t.params:{}}function mv(e,{relative:t}={}){let{matches:n}=c.useContext(ds),{pathname:r}=fs(),o=JSON.stringify(yN(n));return c.useMemo(()=>bN(e,JSON.parse(o),r,t==="path"),[e,o,r,t])}function Nse(e,t){return aV(e,t)}function aV(e,t,n,r,o){var x;Er(th(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:i}=c.useContext(Ra),{matches:a}=c.useContext(ds),s=a[a.length-1],l=s?s.params:{},u=s?s.pathname:"/",d=s?s.pathnameBase:"/",f=s&&s.route;{let w=f&&f.path||"";lV(u,!f||w.endsWith("*")||w.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${u}" (under <Route path="${w}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.

Please change the parent <Route path="${w}"> to <Route path="${w==="/"?"*":`${w}/*`}">.`)}let m=fs(),h;if(t){let w=typeof t=="string"?Qm(t):t;Er(d==="/"||((x=w.pathname)==null?void 0:x.startsWith(d)),`When overriding the location using \`<Routes location>\` or \`useRoutes(routes, location)\`, the location pathname must begin with the portion of the URL pathname that was matched by all parent routes. The current pathname base is "${d}" but pathname "${w.pathname}" was given in the \`location\` prop.`),h=w}else h=m;let p=h.pathname||"/",b=p;if(d!=="/"){let w=d.replace(/^\//,"").split("/");b="/"+p.replace(/^\//,"").split("/").slice(w.length).join("/")}let v=XH(e,{pathname:b});is(f||v!=null,`No routes matched location "${h.pathname}${h.search}${h.hash}" `),is(v==null||v[v.length-1].route.element!==void 0||v[v.length-1].route.Component!==void 0||v[v.length-1].route.lazy!==void 0,`Matched leaf route at location "${h.pathname}${h.search}${h.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let y=Ase(v&&v.map(w=>Object.assign({},w,{params:Object.assign({},l,w.params),pathname:Ml([d,i.encodeLocation?i.encodeLocation(w.pathname.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:w.pathname]),pathnameBase:w.pathnameBase==="/"?d:Ml([d,i.encodeLocation?i.encodeLocation(w.pathnameBase.replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:w.pathnameBase])})),a,n,r,o);return t&&y?c.createElement(fv.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...h},navigationType:"POP"}},y):y}function Rse(){let e=Bse(),t=gse(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,r="rgba(200,200,200, 0.5)",o={padding:"0.5rem",backgroundColor:r},i={padding:"2px 4px",backgroundColor:r},a=null;return console.error("Error handled by React Router default ErrorBoundary:",e),a=c.createElement(c.Fragment,null,c.createElement("p",null,"💿 Hey developer 👋"),c.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",c.createElement("code",{style:i},"ErrorBoundary")," or"," ",c.createElement("code",{style:i},"errorElement")," prop on your route.")),c.createElement(c.Fragment,null,c.createElement("h2",null,"Unexpected Application Error!"),c.createElement("h3",{style:{fontStyle:"italic"}},t),n?c.createElement("pre",{style:o},n):null,a)}var Tse=c.createElement(Rse,null),sV=class extends c.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||t.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){this.props.onError?this.props.onError(e,t):console.error("React Router caught the following error during render",e)}render(){let e=this.state.error;if(this.context&&typeof e=="object"&&e&&"digest"in e&&typeof e.digest=="string"){const n=Ese(e.digest);n&&(e=n)}let t=e!==void 0?c.createElement(ds.Provider,{value:this.props.routeContext},c.createElement(xN.Provider,{value:e,children:this.props.component})):this.props.children;return this.context?c.createElement(Mse,{error:e},t):t}};sV.contextType=bse;var n$=new WeakMap;function Mse({children:e,error:t}){let{basename:n}=c.useContext(Ra);if(typeof t=="object"&&t&&"digest"in t&&typeof t.digest=="string"){let r=$se(t.digest);if(r){let o=n$.get(t);if(o)throw o;let i=eV(r.location,n);if(QH&&!n$.get(t))if(i.isExternal||r.reloadDocument)window.location.href=i.absoluteURL||i.to;else{const a=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(i.to,{replace:r.replace}));throw n$.set(t,a),a}return c.createElement("meta",{httpEquiv:"refresh",content:`0;url=${i.absoluteURL||i.to}`})}}return e}function kse({routeContext:e,match:t,children:n}){let r=c.useContext(eh);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),c.createElement(ds.Provider,{value:e},n)}function Ase(e,t=[],n=null,r=null,o=null){if(e==null){if(!n)return null;if(n.errors)e=n.matches;else if(t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let i=e,a=n==null?void 0:n.errors;if(a!=null){let d=i.findIndex(f=>f.route.id&&(a==null?void 0:a[f.route.id])!==void 0);Er(d>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(a).join(",")}`),i=i.slice(0,Math.min(i.length,d+1))}let s=!1,l=-1;if(n)for(let d=0;d<i.length;d++){let f=i[d];if((f.route.HydrateFallback||f.route.hydrateFallbackElement)&&(l=d),f.route.id){let{loaderData:m,errors:h}=n,p=f.route.loader&&!m.hasOwnProperty(f.route.id)&&(!h||h[f.route.id]===void 0);if(f.route.lazy||p){s=!0,l>=0?i=i.slice(0,l+1):i=[i[0]];break}}}let u=n&&r?(d,f)=>{var m,h;r(d,{location:n.location,params:((h=(m=n.matches)==null?void 0:m[0])==null?void 0:h.params)??{},unstable_pattern:vse(n.matches),errorInfo:f})}:void 0;return i.reduceRight((d,f,m)=>{let h,p=!1,b=null,v=null;n&&(h=a&&f.route.id?a[f.route.id]:void 0,b=f.route.errorElement||Tse,s&&(l<0&&m===0?(lV("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),p=!0,v=null):l===m&&(p=!0,v=f.route.hydrateFallbackElement||null)));let y=t.concat(i.slice(0,m+1)),x=()=>{let w;return h?w=b:p?w=v:f.route.Component?w=c.createElement(f.route.Component,null):f.route.element?w=f.route.element:w=d,c.createElement(kse,{match:f,routeContext:{outlet:d,matches:y,isDataRoute:n!=null},children:w})};return n&&(f.route.ErrorBoundary||f.route.errorElement||m===0)?c.createElement(sV,{location:n.location,revalidation:n.revalidation,component:b,error:h,children:x(),routeContext:{outlet:null,matches:y,isDataRoute:!0},onError:u}):x()},null)}function wN(e){return`${e} must be used within a data router.  See https://reactrouter.com/en/main/routers/picking-a-router.`}function Dse(e){let t=c.useContext(eh);return Er(t,wN(e)),t}function Lse(e){let t=c.useContext(z1);return Er(t,wN(e)),t}function zse(e){let t=c.useContext(ds);return Er(t,wN(e)),t}function SN(e){let t=zse(e),n=t.matches[t.matches.length-1];return Er(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}function Fse(){return SN("useRouteId")}function Bse(){var r;let e=c.useContext(xN),t=Lse("useRouteError"),n=SN("useRouteError");return e!==void 0?e:(r=t.errors)==null?void 0:r[n]}function Hse(){let{router:e}=Dse("useNavigate"),t=SN("useNavigate"),n=c.useRef(!1);return iV(()=>{n.current=!0}),c.useCallback(async(o,i={})=>{is(n.current,oV),n.current&&(typeof o=="number"?await e.navigate(o):await e.navigate(o,{fromRouteId:t,...i}))},[e,t])}var Ok={};function lV(e,t,n){!t&&!Ok[e]&&(Ok[e]=!0,is(!1,n))}c.memo(Vse);function Vse({routes:e,future:t,state:n,onError:r}){return aV(e,void 0,n,r,t)}function cV({to:e,replace:t,state:n,relative:r}){Er(th(),"<Navigate> may be used only in the context of a <Router> component.");let{static:o}=c.useContext(Ra);is(!o,"<Navigate> must not be used on the initial render in a <StaticRouter>. This is a no-op, but you should modify your code so the <Navigate> is only ever rendered in response to some user interaction or state change.");let{matches:i}=c.useContext(ds),{pathname:a}=fs(),s=nh(),l=bN(e,yN(i),a,r==="path"),u=JSON.stringify(l);return c.useEffect(()=>{s(JSON.parse(u),{replace:t,state:n,relative:r})},[s,u,r,t,n]),null}function uV(e){return Ise(e.context)}function Rr(e){Er(!1,"A <Route> is only ever to be used as the child of <Routes> element, never rendered directly. Please wrap your <Route> in a <Routes>.")}function Wse({basename:e="/",children:t=null,location:n,navigationType:r="POP",navigator:o,static:i=!1,unstable_useTransitions:a}){Er(!th(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let s=e.replace(/^\/*/,"/"),l=c.useMemo(()=>({basename:s,navigator:o,static:i,unstable_useTransitions:a,future:{}}),[s,o,i,a]);typeof n=="string"&&(n=Qm(n));let{pathname:u="/",search:d="",hash:f="",state:m=null,key:h="default"}=n,p=c.useMemo(()=>{let b=Vl(u,s);return b==null?null:{location:{pathname:b,search:d,hash:f,state:m,key:h},navigationType:r}},[s,u,d,f,m,h,r]);return is(p!=null,`<Router basename="${s}"> is not able to match the URL "${u}${d}${f}" because it does not start with the basename, so the <Router> won't render anything.`),p==null?null:c.createElement(Ra.Provider,{value:l},c.createElement(fv.Provider,{children:t,value:p}))}function Use({children:e,location:t}){return Nse(cO(e),t)}function cO(e,t=[]){let n=[];return c.Children.forEach(e,(r,o)=>{if(!c.isValidElement(r))return;let i=[...t,o];if(r.type===c.Fragment){n.push.apply(n,cO(r.props.children,i));return}Er(r.type===Rr,`[${typeof r.type=="string"?r.type:r.type.name}] is not a <Route> component. All component children of <Routes> must be a <Route> or <React.Fragment>`),Er(!r.props.index||!r.props.children,"An index route cannot have child routes.");let a={id:r.props.id||i.join("-"),caseSensitive:r.props.caseSensitive,element:r.props.element,Component:r.props.Component,index:r.props.index,path:r.props.path,middleware:r.props.middleware,loader:r.props.loader,action:r.props.action,hydrateFallbackElement:r.props.hydrateFallbackElement,HydrateFallback:r.props.HydrateFallback,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.hasErrorBoundary===!0||r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(a.children=cO(r.props.children,i)),n.push(a)}),n}var qy="get",Gy="application/x-www-form-urlencoded";function F1(e){return typeof HTMLElement<"u"&&e instanceof HTMLElement}function Kse(e){return F1(e)&&e.tagName.toLowerCase()==="button"}function qse(e){return F1(e)&&e.tagName.toLowerCase()==="form"}function Gse(e){return F1(e)&&e.tagName.toLowerCase()==="input"}function Xse(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function Yse(e,t){return e.button===0&&(!t||t==="_self")&&!Xse(e)}var k0=null;function Zse(){if(k0===null)try{new FormData(document.createElement("form"),0),k0=!1}catch{k0=!0}return k0}var Jse=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function r$(e){return e!=null&&!Jse.has(e)?(is(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Gy}"`),null):e}function Qse(e,t){let n,r,o,i,a;if(qse(e)){let s=e.getAttribute("action");r=s?Vl(s,t):null,n=e.getAttribute("method")||qy,o=r$(e.getAttribute("enctype"))||Gy,i=new FormData(e)}else if(Kse(e)||Gse(e)&&(e.type==="submit"||e.type==="image")){let s=e.form;if(s==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let l=e.getAttribute("formaction")||s.getAttribute("action");if(r=l?Vl(l,t):null,n=e.getAttribute("formmethod")||s.getAttribute("method")||qy,o=r$(e.getAttribute("formenctype"))||r$(s.getAttribute("enctype"))||Gy,i=new FormData(s,e),!Zse()){let{name:u,type:d,value:f}=e;if(d==="image"){let m=u?`${u}.`:"";i.append(`${m}x`,"0"),i.append(`${m}y`,"0")}else u&&i.append(u,f)}}else{if(F1(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=qy,r=null,o=Gy,a=e}return i&&o==="text/plain"&&(a=i,i=void 0),{action:r,method:n.toLowerCase(),encType:o,formData:i,body:a}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function CN(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function ele(e,t,n){let r=typeof e=="string"?new URL(e,typeof window>"u"?"server://singlefetch/":window.location.origin):e;return r.pathname==="/"?r.pathname=`_root.${n}`:t&&Vl(r.pathname,t)==="/"?r.pathname=`${t.replace(/\/$/,"")}/_root.${n}`:r.pathname=`${r.pathname.replace(/\/$/,"")}.${n}`,r}async function tle(e,t){if(e.id in t)return t[e.id];try{let n=await import(e.module);return t[e.id]=n,n}catch(n){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(n),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function nle(e){return e==null?!1:e.href==null?e.rel==="preload"&&typeof e.imageSrcSet=="string"&&typeof e.imageSizes=="string":typeof e.rel=="string"&&typeof e.href=="string"}async function rle(e,t,n){let r=await Promise.all(e.map(async o=>{let i=t.routes[o.route.id];if(i){let a=await tle(i,n);return a.links?a.links():[]}return[]}));return sle(r.flat(1).filter(nle).filter(o=>o.rel==="stylesheet"||o.rel==="preload").map(o=>o.rel==="stylesheet"?{...o,rel:"prefetch",as:"style"}:{...o,rel:"prefetch"}))}function Pk(e,t,n,r,o,i){let a=(l,u)=>n[u]?l.route.id!==n[u].route.id:!0,s=(l,u)=>{var d;return n[u].pathname!==l.pathname||((d=n[u].route.path)==null?void 0:d.endsWith("*"))&&n[u].params["*"]!==l.params["*"]};return i==="assets"?t.filter((l,u)=>a(l,u)||s(l,u)):i==="data"?t.filter((l,u)=>{var f;let d=r.routes[l.route.id];if(!d||!d.hasLoader)return!1;if(a(l,u)||s(l,u))return!0;if(l.route.shouldRevalidate){let m=l.route.shouldRevalidate({currentUrl:new URL(o.pathname+o.search+o.hash,window.origin),currentParams:((f=n[0])==null?void 0:f.params)||{},nextUrl:new URL(e,window.origin),nextParams:l.params,defaultShouldRevalidate:!0});if(typeof m=="boolean")return m}return!0}):[]}function ole(e,t,{includeHydrateFallback:n}={}){return ile(e.map(r=>{let o=t.routes[r.route.id];if(!o)return[];let i=[o.module];return o.clientActionModule&&(i=i.concat(o.clientActionModule)),o.clientLoaderModule&&(i=i.concat(o.clientLoaderModule)),n&&o.hydrateFallbackModule&&(i=i.concat(o.hydrateFallbackModule)),o.imports&&(i=i.concat(o.imports)),i}).flat(1))}function ile(e){return[...new Set(e)]}function ale(e){let t={},n=Object.keys(e).sort();for(let r of n)t[r]=e[r];return t}function sle(e,t){let n=new Set;return new Set(t),e.reduce((r,o)=>{let i=JSON.stringify(ale(o));return n.has(i)||(n.add(i),r.push({key:i,link:o})),r},[])}function dV(){let e=c.useContext(eh);return CN(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function lle(){let e=c.useContext(z1);return CN(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var $N=c.createContext(void 0);$N.displayName="FrameworkContext";function fV(){let e=c.useContext($N);return CN(e,"You must render this element inside a <HydratedRouter> element"),e}function cle(e,t){let n=c.useContext($N),[r,o]=c.useState(!1),[i,a]=c.useState(!1),{onFocus:s,onBlur:l,onMouseEnter:u,onMouseLeave:d,onTouchStart:f}=t,m=c.useRef(null);c.useEffect(()=>{if(e==="render"&&a(!0),e==="viewport"){let b=y=>{y.forEach(x=>{a(x.isIntersecting)})},v=new IntersectionObserver(b,{threshold:.5});return m.current&&v.observe(m.current),()=>{v.disconnect()}}},[e]),c.useEffect(()=>{if(r){let b=setTimeout(()=>{a(!0)},100);return()=>{clearTimeout(b)}}},[r]);let h=()=>{o(!0)},p=()=>{o(!1),a(!1)};return n?e!=="intent"?[i,m,{}]:[i,m,{onFocus:Kh(s,h),onBlur:Kh(l,p),onMouseEnter:Kh(u,h),onMouseLeave:Kh(d,p),onTouchStart:Kh(f,h)}]:[!1,m,{}]}function Kh(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function ule({page:e,...t}){let{router:n}=dV(),r=c.useMemo(()=>XH(n.routes,e,n.basename),[n.routes,e,n.basename]);return r?c.createElement(fle,{page:e,matches:r,...t}):null}function dle(e){let{manifest:t,routeModules:n}=fV(),[r,o]=c.useState([]);return c.useEffect(()=>{let i=!1;return rle(e,t,n).then(a=>{i||o(a)}),()=>{i=!0}},[e,t,n]),r}function fle({page:e,matches:t,...n}){let r=fs(),{manifest:o,routeModules:i}=fV(),{basename:a}=dV(),{loaderData:s,matches:l}=lle(),u=c.useMemo(()=>Pk(e,t,l,o,r,"data"),[e,t,l,o,r]),d=c.useMemo(()=>Pk(e,t,l,o,r,"assets"),[e,t,l,o,r]),f=c.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let p=new Set,b=!1;if(t.forEach(y=>{var w;let x=o.routes[y.route.id];!x||!x.hasLoader||(!u.some(C=>C.route.id===y.route.id)&&y.route.id in s&&((w=i[y.route.id])!=null&&w.shouldRevalidate)||x.hasClientLoader?b=!0:p.add(y.route.id))}),p.size===0)return[];let v=ele(e,a,"data");return b&&p.size>0&&v.searchParams.set("_routes",t.filter(y=>p.has(y.route.id)).map(y=>y.route.id).join(",")),[v.pathname+v.search]},[a,s,r,o,u,t,e,i]),m=c.useMemo(()=>ole(d,o),[d,o]),h=dle(d);return c.createElement(c.Fragment,null,f.map(p=>c.createElement("link",{key:p,rel:"prefetch",as:"fetch",href:p,...n})),m.map(p=>c.createElement("link",{key:p,rel:"modulepreload",href:p,...n})),h.map(({key:p,link:b})=>c.createElement("link",{key:p,nonce:n.nonce,...b})))}function mle(...e){return t=>{e.forEach(n=>{typeof n=="function"?n(t):n!=null&&(n.current=t)})}}var hle=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{hle&&(window.__reactRouterVersion="7.11.0")}catch{}function ple({basename:e,children:t,unstable_useTransitions:n,window:r}){let o=c.useRef();o.current==null&&(o.current=Kae({window:r,v5Compat:!0}));let i=o.current,[a,s]=c.useState({action:i.action,location:i.location}),l=c.useCallback(u=>{n===!1?s(u):c.startTransition(()=>s(u))},[n]);return c.useLayoutEffect(()=>i.listen(l),[i,l]),c.createElement(Wse,{basename:e,children:t,location:a.location,navigationType:a.action,navigator:i,unstable_useTransitions:n})}var mV=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,Sm=c.forwardRef(function({onClick:t,discover:n="render",prefetch:r="none",relative:o,reloadDocument:i,replace:a,state:s,target:l,to:u,preventScrollReset:d,viewTransition:f,unstable_defaultShouldRevalidate:m,...h},p){let{basename:b,unstable_useTransitions:v}=c.useContext(Ra),y=typeof u=="string"&&mV.test(u),x=eV(u,b);u=x.to;let w=Ose(u,{relative:o}),[C,S,$]=cle(r,h),E=ble(u,{replace:a,state:s,target:l,preventScrollReset:d,relative:o,viewTransition:f,unstable_defaultShouldRevalidate:m,unstable_useTransitions:v});function O(j){t&&t(j),j.defaultPrevented||E(j)}let P=c.createElement("a",{...h,...$,href:x.absoluteURL||w,onClick:x.isExternal||i?t:O,ref:mle(p,S),target:l,"data-discover":!y&&n==="render"?"true":void 0});return C&&!y?c.createElement(c.Fragment,null,P,c.createElement(ule,{page:w})):P});Sm.displayName="Link";var gle=c.forwardRef(function({"aria-current":t="page",caseSensitive:n=!1,className:r="",end:o=!1,style:i,to:a,viewTransition:s,children:l,...u},d){let f=mv(a,{relative:u.relative}),m=fs(),h=c.useContext(z1),{navigator:p,basename:b}=c.useContext(Ra),v=h!=null&&$le(f)&&s===!0,y=p.encodeLocation?p.encodeLocation(f).pathname:f.pathname,x=m.pathname,w=h&&h.navigation&&h.navigation.location?h.navigation.location.pathname:null;n||(x=x.toLowerCase(),w=w?w.toLowerCase():null,y=y.toLowerCase()),w&&b&&(w=Vl(w,b)||w);const C=y!=="/"&&y.endsWith("/")?y.length-1:y.length;let S=x===y||!o&&x.startsWith(y)&&x.charAt(C)==="/",$=w!=null&&(w===y||!o&&w.startsWith(y)&&w.charAt(y.length)==="/"),E={isActive:S,isPending:$,isTransitioning:v},O=S?t:void 0,P;typeof r=="function"?P=r(E):P=[r,S?"active":null,$?"pending":null,v?"transitioning":null].filter(Boolean).join(" ");let j=typeof i=="function"?i(E):i;return c.createElement(Sm,{...u,"aria-current":O,className:P,ref:d,style:j,to:a,viewTransition:s},typeof l=="function"?l(E):l)});gle.displayName="NavLink";var vle=c.forwardRef(({discover:e="render",fetcherKey:t,navigate:n,reloadDocument:r,replace:o,state:i,method:a=qy,action:s,onSubmit:l,relative:u,preventScrollReset:d,viewTransition:f,unstable_defaultShouldRevalidate:m,...h},p)=>{let{unstable_useTransitions:b}=c.useContext(Ra),v=Sle(),y=Cle(s,{relative:u}),x=a.toLowerCase()==="get"?"get":"post",w=typeof s=="string"&&mV.test(s),C=S=>{if(l&&l(S),S.defaultPrevented)return;S.preventDefault();let $=S.nativeEvent.submitter,E=($==null?void 0:$.getAttribute("formmethod"))||a,O=()=>v($||S.currentTarget,{fetcherKey:t,method:E,navigate:n,replace:o,state:i,relative:u,preventScrollReset:d,viewTransition:f,unstable_defaultShouldRevalidate:m});b&&n!==!1?c.startTransition(()=>O()):O()};return c.createElement("form",{ref:p,method:x,action:y,onSubmit:r?l:C,...h,"data-discover":!w&&e==="render"?"true":void 0})});vle.displayName="Form";function yle(e){return`${e} must be used within a data router.  See https://reactrouter.com/en/main/routers/picking-a-router.`}function hV(e){let t=c.useContext(eh);return Er(t,yle(e)),t}function ble(e,{target:t,replace:n,state:r,preventScrollReset:o,relative:i,viewTransition:a,unstable_defaultShouldRevalidate:s,unstable_useTransitions:l}={}){let u=nh(),d=fs(),f=mv(e,{relative:i});return c.useCallback(m=>{if(Yse(m,t)){m.preventDefault();let h=n!==void 0?n:vg(d)===vg(f),p=()=>u(e,{replace:h,state:r,preventScrollReset:o,relative:i,viewTransition:a,unstable_defaultShouldRevalidate:s});l?c.startTransition(()=>p()):p()}},[d,u,f,n,r,t,e,o,i,a,s,l])}var xle=0,wle=()=>`__${String(++xle)}__`;function Sle(){let{router:e}=hV("useSubmit"),{basename:t}=c.useContext(Ra),n=Fse(),r=e.fetch,o=e.navigate;return c.useCallback(async(i,a={})=>{let{action:s,method:l,encType:u,formData:d,body:f}=Qse(i,t);if(a.navigate===!1){let m=a.fetcherKey||wle();await r(m,n,a.action||s,{unstable_defaultShouldRevalidate:a.unstable_defaultShouldRevalidate,preventScrollReset:a.preventScrollReset,formData:d,body:f,formMethod:a.method||l,formEncType:a.encType||u,flushSync:a.flushSync})}else await o(a.action||s,{unstable_defaultShouldRevalidate:a.unstable_defaultShouldRevalidate,preventScrollReset:a.preventScrollReset,formData:d,body:f,formMethod:a.method||l,formEncType:a.encType||u,replace:a.replace,state:a.state,fromRouteId:n,flushSync:a.flushSync,viewTransition:a.viewTransition})},[r,o,t,n])}function Cle(e,{relative:t}={}){let{basename:n}=c.useContext(Ra),r=c.useContext(ds);Er(r,"useFormAction must be used inside a RouteContext");let[o]=r.matches.slice(-1),i={...mv(e||".",{relative:t})},a=fs();if(e==null){i.search=a.search;let s=new URLSearchParams(i.search),l=s.getAll("index");if(l.some(d=>d==="")){s.delete("index"),l.filter(f=>f).forEach(f=>s.append("index",f));let d=s.toString();i.search=d?`?${d}`:""}}return(!e||e===".")&&o.route.index&&(i.search=i.search?i.search.replace(/^\?/,"?index&"):"?index"),n!=="/"&&(i.pathname=i.pathname==="/"?n:Ml([n,i.pathname])),vg(i)}function $le(e,{relative:t}={}){let n=c.useContext(nV);Er(n!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`.  Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=hV("useViewTransitionState"),o=mv(e,{relative:t});if(!n.isTransitioning)return!1;let i=Vl(n.currentLocation.pathname,r)||n.currentLocation.pathname,a=Vl(n.nextLocation.pathname,r)||n.nextLocation.pathname;return qb(o.pathname,a)!=null||qb(o.pathname,i)!=null}const pV=c.createContext(void 0),Ele=({children:e})=>{const[t,n]=c.useState(null),[r,o]=c.useState(!1),[i,a]=c.useState(!0);c.useEffect(()=>{(async()=>{const d=localStorage.getItem("token"),f=localStorage.getItem("user");if(d&&f)try{n(JSON.parse(f)),o(!0)}catch(m){console.error("Failed to parse user data",m),l()}a(!1)})()},[]);const s=(u,d)=>{localStorage.setItem("token",u),localStorage.setItem("user",JSON.stringify(d)),n(d),o(!0)},l=()=>{localStorage.removeItem("token"),localStorage.removeItem("user"),n(null),o(!1)};return g.jsx(pV.Provider,{value:{user:t,isAuthenticated:r,isLoading:i,login:s,logout:l},children:e})},nc=()=>{const e=c.useContext(pV);if(e===void 0)throw new Error("useAuth must be used within an AuthProvider");return e},gV=c.createContext(void 0);function bl(){const e=c.useContext(gV);if(!e)throw new Error("useToast must be used within a ToastProvider");return e}const Ole=({children:e})=>{const[t,n]=c.useState([]),r=c.useCallback((i,a)=>{const s=Math.random().toString(36).substr(2,9);n(l=>[...l,{id:s,message:i,type:a}]),setTimeout(()=>{o(s)},5e3)},[]),o=c.useCallback(i=>{n(a=>a.filter(s=>s.id!==i))},[]);return g.jsxs(gV.Provider,{value:{addToast:r,removeToast:o},children:[e,g.jsx("div",{className:"fixed bottom-4 right-4 z-50 flex flex-col space-y-2",children:t.map(i=>g.jsxs("div",{className:`flex items-center w-full max-w-xs p-4 mb-4 text-gray-500 bg-white rounded-lg shadow dark:text-gray-400 dark:bg-gray-800 ${i.type==="success"?"border-l-4 border-green-500":i.type==="error"?"border-l-4 border-red-500":"border-l-4 border-blue-500"}`,role:"alert",children:[g.jsx("div",{className:"ml-3 text-sm font-normal",children:i.message}),g.jsxs("button",{type:"button",className:"ml-auto -mx-1.5 -my-1.5 bg-white text-gray-400 hover:text-gray-900 rounded-lg focus:ring-2 focus:ring-gray-300 p-1.5 hover:bg-gray-100 inline-flex h-8 w-8 dark:text-gray-500 dark:hover:text-white dark:bg-gray-800 dark:hover:bg-gray-700",onClick:()=>o(i.id),"aria-label":"Close",children:[g.jsx("span",{className:"sr-only",children:"Close"}),g.jsx("svg",{className:"w-5 h-5",fill:"currentColor",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",children:g.jsx("path",{fillRule:"evenodd",d:"M4.293 4.293a1 1 0 011.414 0L10 8.586l4.293-4.293a1 1 0 111.414 1.414L11.414 10l4.293 4.293a1 1 0 01-1.414 1.414L10 11.414l-4.293 4.293a1 1 0 01-1.414-1.414L8.586 10 4.293 5.707a1 1 0 010-1.414z",clipRule:"evenodd"})})]})]},i.id))})]})};/**
 * @license lucide-react v0.562.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Ple=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),jle=e=>e.replace(/^([A-Z])|[\s-_]+(\w)/g,(t,n,r)=>r?r.toUpperCase():n.toLowerCase()),jk=e=>{const t=jle(e);return t.charAt(0).toUpperCase()+t.slice(1)},vV=(...e)=>e.filter((t,n,r)=>!!t&&t.trim()!==""&&r.indexOf(t)===n).join(" ").trim(),Ile=e=>{for(const t in e)if(t.startsWith("aria-")||t==="role"||t==="title")return!0};/**
 * @license lucide-react v0.562.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */var _le={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
 * @license lucide-react v0.562.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Nle=c.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:o="",children:i,iconNode:a,...s},l)=>c.createElement("svg",{ref:l,..._le,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:vV("lucide",o),...!i&&!Ile(s)&&{"aria-hidden":"true"},...s},[...a.map(([u,d])=>c.createElement(u,d)),...Array.isArray(i)?i:[i]]));/**
 * @license lucide-react v0.562.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Ld=(e,t)=>{const n=c.forwardRef(({className:r,...o},i)=>c.createElement(Nle,{ref:i,iconNode:t,className:vV(`lucide-${Ple(jk(e))}`,`lucide-${e}`,r),...o}));return n.displayName=jk(e),n};/**
 * @license lucide-react v0.562.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Rle=[["path",{d:"M12 20v-9",key:"1qisl0"}],["path",{d:"M14 7a4 4 0 0 1 4 4v3a6 6 0 0 1-12 0v-3a4 4 0 0 1 4-4z",key:"uouzyp"}],["path",{d:"M14.12 3.88 16 2",key:"qol33r"}],["path",{d:"M21 21a4 4 0 0 0-3.81-4",key:"1b0z45"}],["path",{d:"M21 5a4 4 0 0 1-3.55 3.97",key:"5cxbf6"}],["path",{d:"M22 13h-4",key:"1jl80f"}],["path",{d:"M3 21a4 4 0 0 1 3.81-4",key:"1fjd4g"}],["path",{d:"M3 5a4 4 0 0 0 3.55 3.97",key:"1d7oge"}],["path",{d:"M6 13H2",key:"82j7cp"}],["path",{d:"m8 2 1.88 1.88",key:"fmnt4t"}],["path",{d:"M9 7.13V6a3 3 0 1 1 6 0v1.13",key:"1vgav8"}]],Tle=Ld("bug",Rle);/**
 * @license lucide-react v0.562.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Mle=[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["line",{x1:"12",x2:"12",y1:"8",y2:"12",key:"1pkeuh"}],["line",{x1:"12",x2:"12.01",y1:"16",y2:"16",key:"4dfq90"}]],kle=Ld("circle-alert",Mle);/**
 * @license lucide-react v0.562.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Ale=[["path",{d:"M15 14c.2-1 .7-1.7 1.5-2.5 1-.9 1.5-2.2 1.5-3.5A6 6 0 0 0 6 8c0 1 .2 2.2 1.5 3.5.7.7 1.3 1.5 1.5 2.5",key:"1gvzjb"}],["path",{d:"M9 18h6",key:"x1upvd"}],["path",{d:"M10 22h4",key:"ceow96"}]],Dle=Ld("lightbulb",Ale);/**
 * @license lucide-react v0.562.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Lle=[["path",{d:"M22 17a2 2 0 0 1-2 2H6.828a2 2 0 0 0-1.414.586l-2.202 2.202A.71.71 0 0 1 2 21.286V5a2 2 0 0 1 2-2h16a2 2 0 0 1 2 2z",key:"18887p"}]],Ik=Ld("message-square",Lle);/**
 * @license lucide-react v0.562.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const zle=[["path",{d:"M14.536 21.686a.5.5 0 0 0 .937-.024l6.5-19a.496.496 0 0 0-.635-.635l-19 6.5a.5.5 0 0 0-.024.937l7.93 3.18a2 2 0 0 1 1.112 1.11z",key:"1ffxy3"}],["path",{d:"m21.854 2.147-10.94 10.939",key:"12cjpa"}]],Fle=Ld("send",zle);/**
 * @license lucide-react v0.562.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Ble=[["path",{d:"M15 5.88 14 10h5.83a2 2 0 0 1 1.92 2.56l-2.33 8A2 2 0 0 1 17.5 22H4a2 2 0 0 1-2-2v-8a2 2 0 0 1 2-2h2.76a2 2 0 0 0 1.79-1.11L12 2a3.13 3.13 0 0 1 3 3.88Z",key:"emmmcr"}],["path",{d:"M7 10v12",key:"1qc93n"}]],_k=Ld("thumbs-up",Ble);/**
 * @license lucide-react v0.562.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Hle=[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]],Vle=Ld("x",Hle);function yV(e,t){return function(){return e.apply(t,arguments)}}const{toString:Wle}=Object.prototype,{getPrototypeOf:EN}=Object,{iterator:B1,toStringTag:bV}=Symbol,H1=(e=>t=>{const n=Wle.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Us=e=>(e=e.toLowerCase(),t=>H1(t)===e),V1=e=>t=>typeof t===e,{isArray:rh}=Array,Cm=V1("undefined");function hv(e){return e!==null&&!Cm(e)&&e.constructor!==null&&!Cm(e.constructor)&&ra(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const xV=Us("ArrayBuffer");function Ule(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&xV(e.buffer),t}const Kle=V1("string"),ra=V1("function"),wV=V1("number"),pv=e=>e!==null&&typeof e=="object",qle=e=>e===!0||e===!1,Xy=e=>{if(H1(e)!=="object")return!1;const t=EN(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(bV in e)&&!(B1 in e)},Gle=e=>{if(!pv(e)||hv(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},Xle=Us("Date"),Yle=Us("File"),Zle=Us("Blob"),Jle=Us("FileList"),Qle=e=>pv(e)&&ra(e.pipe),ece=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||ra(e.append)&&((t=H1(e))==="formdata"||t==="object"&&ra(e.toString)&&e.toString()==="[object FormData]"))},tce=Us("URLSearchParams"),[nce,rce,oce,ice]=["ReadableStream","Request","Response","Headers"].map(Us),ace=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function gv(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,o;if(typeof e!="object"&&(e=[e]),rh(e))for(r=0,o=e.length;r<o;r++)t.call(null,e[r],r,e);else{if(hv(e))return;const i=n?Object.getOwnPropertyNames(e):Object.keys(e),a=i.length;let s;for(r=0;r<a;r++)s=i[r],t.call(null,e[s],s,e)}}function SV(e,t){if(hv(e))return null;t=t.toLowerCase();const n=Object.keys(e);let r=n.length,o;for(;r-- >0;)if(o=n[r],t===o.toLowerCase())return o;return null}const Fu=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,CV=e=>!Cm(e)&&e!==Fu;function uO(){const{caseless:e,skipUndefined:t}=CV(this)&&this||{},n={},r=(o,i)=>{const a=e&&SV(n,i)||i;Xy(n[a])&&Xy(o)?n[a]=uO(n[a],o):Xy(o)?n[a]=uO({},o):rh(o)?n[a]=o.slice():(!t||!Cm(o))&&(n[a]=o)};for(let o=0,i=arguments.length;o<i;o++)arguments[o]&&gv(arguments[o],r);return n}const sce=(e,t,n,{allOwnKeys:r}={})=>(gv(t,(o,i)=>{n&&ra(o)?e[i]=yV(o,n):e[i]=o},{allOwnKeys:r}),e),lce=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),cce=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),n&&Object.assign(e.prototype,n)},uce=(e,t,n,r)=>{let o,i,a;const s={};if(t=t||{},e==null)return t;do{for(o=Object.getOwnPropertyNames(e),i=o.length;i-- >0;)a=o[i],(!r||r(a,e,t))&&!s[a]&&(t[a]=e[a],s[a]=!0);e=n!==!1&&EN(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},dce=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},fce=e=>{if(!e)return null;if(rh(e))return e;let t=e.length;if(!wV(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},mce=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&EN(Uint8Array)),hce=(e,t)=>{const r=(e&&e[B1]).call(e);let o;for(;(o=r.next())&&!o.done;){const i=o.value;t.call(e,i[0],i[1])}},pce=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},gce=Us("HTMLFormElement"),vce=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,o){return r.toUpperCase()+o}),Nk=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),yce=Us("RegExp"),$V=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};gv(n,(o,i)=>{let a;(a=t(o,i,e))!==!1&&(r[i]=a||o)}),Object.defineProperties(e,r)},bce=e=>{$V(e,(t,n)=>{if(ra(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(ra(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},xce=(e,t)=>{const n={},r=o=>{o.forEach(i=>{n[i]=!0})};return rh(e)?r(e):r(String(e).split(t)),n},wce=()=>{},Sce=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function Cce(e){return!!(e&&ra(e.append)&&e[bV]==="FormData"&&e[B1])}const $ce=e=>{const t=new Array(10),n=(r,o)=>{if(pv(r)){if(t.indexOf(r)>=0)return;if(hv(r))return r;if(!("toJSON"in r)){t[o]=r;const i=rh(r)?[]:{};return gv(r,(a,s)=>{const l=n(a,o+1);!Cm(l)&&(i[s]=l)}),t[o]=void 0,i}}return r};return n(e,0)},Ece=Us("AsyncFunction"),Oce=e=>e&&(pv(e)||ra(e))&&ra(e.then)&&ra(e.catch),EV=((e,t)=>e?setImmediate:t?((n,r)=>(Fu.addEventListener("message",({source:o,data:i})=>{o===Fu&&i===n&&r.length&&r.shift()()},!1),o=>{r.push(o),Fu.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",ra(Fu.postMessage)),Pce=typeof queueMicrotask<"u"?queueMicrotask.bind(Fu):typeof process<"u"&&process.nextTick||EV,jce=e=>e!=null&&ra(e[B1]),Ve={isArray:rh,isArrayBuffer:xV,isBuffer:hv,isFormData:ece,isArrayBufferView:Ule,isString:Kle,isNumber:wV,isBoolean:qle,isObject:pv,isPlainObject:Xy,isEmptyObject:Gle,isReadableStream:nce,isRequest:rce,isResponse:oce,isHeaders:ice,isUndefined:Cm,isDate:Xle,isFile:Yle,isBlob:Zle,isRegExp:yce,isFunction:ra,isStream:Qle,isURLSearchParams:tce,isTypedArray:mce,isFileList:Jle,forEach:gv,merge:uO,extend:sce,trim:ace,stripBOM:lce,inherits:cce,toFlatObject:uce,kindOf:H1,kindOfTest:Us,endsWith:dce,toArray:fce,forEachEntry:hce,matchAll:pce,isHTMLForm:gce,hasOwnProperty:Nk,hasOwnProp:Nk,reduceDescriptors:$V,freezeMethods:bce,toObjectSet:xce,toCamelCase:vce,noop:wce,toFiniteNumber:Sce,findKey:SV,global:Fu,isContextDefined:CV,isSpecCompliantForm:Cce,toJSONObject:$ce,isAsyncFn:Ece,isThenable:Oce,setImmediate:EV,asap:Pce,isIterable:jce};function Cn(e,t,n,r,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),r&&(this.request=r),o&&(this.response=o,this.status=o.status?o.status:null)}Ve.inherits(Cn,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:Ve.toJSONObject(this.config),code:this.code,status:this.status}}});const OV=Cn.prototype,PV={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{PV[e]={value:e}});Object.defineProperties(Cn,PV);Object.defineProperty(OV,"isAxiosError",{value:!0});Cn.from=(e,t,n,r,o,i)=>{const a=Object.create(OV);Ve.toFlatObject(e,a,function(d){return d!==Error.prototype},u=>u!=="isAxiosError");const s=e&&e.message?e.message:"Error",l=t==null&&e?e.code:t;return Cn.call(a,s,l,n,r,o),e&&a.cause==null&&Object.defineProperty(a,"cause",{value:e,configurable:!0}),a.name=e&&e.name||"Error",i&&Object.assign(a,i),a};const Ice=null;function dO(e){return Ve.isPlainObject(e)||Ve.isArray(e)}function jV(e){return Ve.endsWith(e,"[]")?e.slice(0,-2):e}function Rk(e,t,n){return e?e.concat(t).map(function(o,i){return o=jV(o),!n&&i?"["+o+"]":o}).join(n?".":""):t}function _ce(e){return Ve.isArray(e)&&!e.some(dO)}const Nce=Ve.toFlatObject(Ve,{},null,function(t){return/^is[A-Z]/.test(t)});function W1(e,t,n){if(!Ve.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=Ve.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(b,v){return!Ve.isUndefined(v[b])});const r=n.metaTokens,o=n.visitor||d,i=n.dots,a=n.indexes,l=(n.Blob||typeof Blob<"u"&&Blob)&&Ve.isSpecCompliantForm(t);if(!Ve.isFunction(o))throw new TypeError("visitor must be a function");function u(p){if(p===null)return"";if(Ve.isDate(p))return p.toISOString();if(Ve.isBoolean(p))return p.toString();if(!l&&Ve.isBlob(p))throw new Cn("Blob is not supported. Use a Buffer instead.");return Ve.isArrayBuffer(p)||Ve.isTypedArray(p)?l&&typeof Blob=="function"?new Blob([p]):Buffer.from(p):p}function d(p,b,v){let y=p;if(p&&!v&&typeof p=="object"){if(Ve.endsWith(b,"{}"))b=r?b:b.slice(0,-2),p=JSON.stringify(p);else if(Ve.isArray(p)&&_ce(p)||(Ve.isFileList(p)||Ve.endsWith(b,"[]"))&&(y=Ve.toArray(p)))return b=jV(b),y.forEach(function(w,C){!(Ve.isUndefined(w)||w===null)&&t.append(a===!0?Rk([b],C,i):a===null?b:b+"[]",u(w))}),!1}return dO(p)?!0:(t.append(Rk(v,b,i),u(p)),!1)}const f=[],m=Object.assign(Nce,{defaultVisitor:d,convertValue:u,isVisitable:dO});function h(p,b){if(!Ve.isUndefined(p)){if(f.indexOf(p)!==-1)throw Error("Circular reference detected in "+b.join("."));f.push(p),Ve.forEach(p,function(y,x){(!(Ve.isUndefined(y)||y===null)&&o.call(t,y,Ve.isString(x)?x.trim():x,b,m))===!0&&h(y,b?b.concat(x):[x])}),f.pop()}}if(!Ve.isObject(e))throw new TypeError("data must be an object");return h(e),t}function Tk(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function ON(e,t){this._pairs=[],e&&W1(e,this,t)}const IV=ON.prototype;IV.append=function(t,n){this._pairs.push([t,n])};IV.toString=function(t){const n=t?function(r){return t.call(this,r,Tk)}:Tk;return this._pairs.map(function(o){return n(o[0])+"="+n(o[1])},"").join("&")};function Rce(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function _V(e,t,n){if(!t)return e;const r=n&&n.encode||Rce;Ve.isFunction(n)&&(n={serialize:n});const o=n&&n.serialize;let i;if(o?i=o(t,n):i=Ve.isURLSearchParams(t)?t.toString():new ON(t,n).toString(r),i){const a=e.indexOf("#");a!==-1&&(e=e.slice(0,a)),e+=(e.indexOf("?")===-1?"?":"&")+i}return e}class Mk{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){Ve.forEach(this.handlers,function(r){r!==null&&t(r)})}}const NV={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Tce=typeof URLSearchParams<"u"?URLSearchParams:ON,Mce=typeof FormData<"u"?FormData:null,kce=typeof Blob<"u"?Blob:null,Ace={isBrowser:!0,classes:{URLSearchParams:Tce,FormData:Mce,Blob:kce},protocols:["http","https","file","blob","url","data"]},PN=typeof window<"u"&&typeof document<"u",fO=typeof navigator=="object"&&navigator||void 0,Dce=PN&&(!fO||["ReactNative","NativeScript","NS"].indexOf(fO.product)<0),Lce=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",zce=PN&&window.location.href||"http://localhost",Fce=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:PN,hasStandardBrowserEnv:Dce,hasStandardBrowserWebWorkerEnv:Lce,navigator:fO,origin:zce},Symbol.toStringTag,{value:"Module"})),vi={...Fce,...Ace};function Bce(e,t){return W1(e,new vi.classes.URLSearchParams,{visitor:function(n,r,o,i){return vi.isNode&&Ve.isBuffer(n)?(this.append(r,n.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)},...t})}function Hce(e){return Ve.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function Vce(e){const t={},n=Object.keys(e);let r;const o=n.length;let i;for(r=0;r<o;r++)i=n[r],t[i]=e[i];return t}function RV(e){function t(n,r,o,i){let a=n[i++];if(a==="__proto__")return!0;const s=Number.isFinite(+a),l=i>=n.length;return a=!a&&Ve.isArray(o)?o.length:a,l?(Ve.hasOwnProp(o,a)?o[a]=[o[a],r]:o[a]=r,!s):((!o[a]||!Ve.isObject(o[a]))&&(o[a]=[]),t(n,r,o[a],i)&&Ve.isArray(o[a])&&(o[a]=Vce(o[a])),!s)}if(Ve.isFormData(e)&&Ve.isFunction(e.entries)){const n={};return Ve.forEachEntry(e,(r,o)=>{t(Hce(r),o,n,0)}),n}return null}function Wce(e,t,n){if(Ve.isString(e))try{return(t||JSON.parse)(e),Ve.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const vv={transitional:NV,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",o=r.indexOf("application/json")>-1,i=Ve.isObject(t);if(i&&Ve.isHTMLForm(t)&&(t=new FormData(t)),Ve.isFormData(t))return o?JSON.stringify(RV(t)):t;if(Ve.isArrayBuffer(t)||Ve.isBuffer(t)||Ve.isStream(t)||Ve.isFile(t)||Ve.isBlob(t)||Ve.isReadableStream(t))return t;if(Ve.isArrayBufferView(t))return t.buffer;if(Ve.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let s;if(i){if(r.indexOf("application/x-www-form-urlencoded")>-1)return Bce(t,this.formSerializer).toString();if((s=Ve.isFileList(t))||r.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return W1(s?{"files[]":t}:t,l&&new l,this.formSerializer)}}return i||o?(n.setContentType("application/json",!1),Wce(t)):t}],transformResponse:[function(t){const n=this.transitional||vv.transitional,r=n&&n.forcedJSONParsing,o=this.responseType==="json";if(Ve.isResponse(t)||Ve.isReadableStream(t))return t;if(t&&Ve.isString(t)&&(r&&!this.responseType||o)){const a=!(n&&n.silentJSONParsing)&&o;try{return JSON.parse(t,this.parseReviver)}catch(s){if(a)throw s.name==="SyntaxError"?Cn.from(s,Cn.ERR_BAD_RESPONSE,this,null,this.response):s}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:vi.classes.FormData,Blob:vi.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};Ve.forEach(["delete","get","head","post","put","patch"],e=>{vv.headers[e]={}});const Uce=Ve.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),Kce=e=>{const t={};let n,r,o;return e&&e.split(`
`).forEach(function(a){o=a.indexOf(":"),n=a.substring(0,o).trim().toLowerCase(),r=a.substring(o+1).trim(),!(!n||t[n]&&Uce[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},kk=Symbol("internals");function qh(e){return e&&String(e).trim().toLowerCase()}function Yy(e){return e===!1||e==null?e:Ve.isArray(e)?e.map(Yy):String(e)}function qce(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const Gce=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function o$(e,t,n,r,o){if(Ve.isFunction(r))return r.call(this,t,n);if(o&&(t=n),!!Ve.isString(t)){if(Ve.isString(r))return t.indexOf(r)!==-1;if(Ve.isRegExp(r))return r.test(t)}}function Xce(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function Yce(e,t){const n=Ve.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(o,i,a){return this[r].call(this,t,o,i,a)},configurable:!0})})}let oa=class{constructor(t){t&&this.set(t)}set(t,n,r){const o=this;function i(s,l,u){const d=qh(l);if(!d)throw new Error("header name must be a non-empty string");const f=Ve.findKey(o,d);(!f||o[f]===void 0||u===!0||u===void 0&&o[f]!==!1)&&(o[f||l]=Yy(s))}const a=(s,l)=>Ve.forEach(s,(u,d)=>i(u,d,l));if(Ve.isPlainObject(t)||t instanceof this.constructor)a(t,n);else if(Ve.isString(t)&&(t=t.trim())&&!Gce(t))a(Kce(t),n);else if(Ve.isObject(t)&&Ve.isIterable(t)){let s={},l,u;for(const d of t){if(!Ve.isArray(d))throw TypeError("Object iterator must return a key-value pair");s[u=d[0]]=(l=s[u])?Ve.isArray(l)?[...l,d[1]]:[l,d[1]]:d[1]}a(s,n)}else t!=null&&i(n,t,r);return this}get(t,n){if(t=qh(t),t){const r=Ve.findKey(this,t);if(r){const o=this[r];if(!n)return o;if(n===!0)return qce(o);if(Ve.isFunction(n))return n.call(this,o,r);if(Ve.isRegExp(n))return n.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=qh(t),t){const r=Ve.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||o$(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let o=!1;function i(a){if(a=qh(a),a){const s=Ve.findKey(r,a);s&&(!n||o$(r,r[s],s,n))&&(delete r[s],o=!0)}}return Ve.isArray(t)?t.forEach(i):i(t),o}clear(t){const n=Object.keys(this);let r=n.length,o=!1;for(;r--;){const i=n[r];(!t||o$(this,this[i],i,t,!0))&&(delete this[i],o=!0)}return o}normalize(t){const n=this,r={};return Ve.forEach(this,(o,i)=>{const a=Ve.findKey(r,i);if(a){n[a]=Yy(o),delete n[i];return}const s=t?Xce(i):String(i).trim();s!==i&&delete n[i],n[s]=Yy(o),r[s]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return Ve.forEach(this,(r,o)=>{r!=null&&r!==!1&&(n[o]=t&&Ve.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(`
`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(o=>r.set(o)),r}static accessor(t){const r=(this[kk]=this[kk]={accessors:{}}).accessors,o=this.prototype;function i(a){const s=qh(a);r[s]||(Yce(o,a),r[s]=!0)}return Ve.isArray(t)?t.forEach(i):i(t),this}};oa.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);Ve.reduceDescriptors(oa.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});Ve.freezeMethods(oa);function i$(e,t){const n=this||vv,r=t||n,o=oa.from(r.headers);let i=r.data;return Ve.forEach(e,function(s){i=s.call(n,i,o.normalize(),t?t.status:void 0)}),o.normalize(),i}function TV(e){return!!(e&&e.__CANCEL__)}function oh(e,t,n){Cn.call(this,e??"canceled",Cn.ERR_CANCELED,t,n),this.name="CanceledError"}Ve.inherits(oh,Cn,{__CANCEL__:!0});function MV(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new Cn("Request failed with status code "+n.status,[Cn.ERR_BAD_REQUEST,Cn.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function Zce(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function Jce(e,t){e=e||10;const n=new Array(e),r=new Array(e);let o=0,i=0,a;return t=t!==void 0?t:1e3,function(l){const u=Date.now(),d=r[i];a||(a=u),n[o]=l,r[o]=u;let f=i,m=0;for(;f!==o;)m+=n[f++],f=f%e;if(o=(o+1)%e,o===i&&(i=(i+1)%e),u-a<t)return;const h=d&&u-d;return h?Math.round(m*1e3/h):void 0}}function Qce(e,t){let n=0,r=1e3/t,o,i;const a=(u,d=Date.now())=>{n=d,o=null,i&&(clearTimeout(i),i=null),e(...u)};return[(...u)=>{const d=Date.now(),f=d-n;f>=r?a(u,d):(o=u,i||(i=setTimeout(()=>{i=null,a(o)},r-f)))},()=>o&&a(o)]}const Gb=(e,t,n=3)=>{let r=0;const o=Jce(50,250);return Qce(i=>{const a=i.loaded,s=i.lengthComputable?i.total:void 0,l=a-r,u=o(l),d=a<=s;r=a;const f={loaded:a,total:s,progress:s?a/s:void 0,bytes:l,rate:u||void 0,estimated:u&&s&&d?(s-a)/u:void 0,event:i,lengthComputable:s!=null,[t?"download":"upload"]:!0};e(f)},n)},Ak=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},Dk=e=>(...t)=>Ve.asap(()=>e(...t)),eue=vi.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,vi.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(vi.origin),vi.navigator&&/(msie|trident)/i.test(vi.navigator.userAgent)):()=>!0,tue=vi.hasStandardBrowserEnv?{write(e,t,n,r,o,i,a){if(typeof document>"u")return;const s=[`${e}=${encodeURIComponent(t)}`];Ve.isNumber(n)&&s.push(`expires=${new Date(n).toUTCString()}`),Ve.isString(r)&&s.push(`path=${r}`),Ve.isString(o)&&s.push(`domain=${o}`),i===!0&&s.push("secure"),Ve.isString(a)&&s.push(`SameSite=${a}`),document.cookie=s.join("; ")},read(e){if(typeof document>"u")return null;const t=document.cookie.match(new RegExp("(?:^|; )"+e+"=([^;]*)"));return t?decodeURIComponent(t[1]):null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function nue(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function rue(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function kV(e,t,n){let r=!nue(t);return e&&(r||n==!1)?rue(e,t):t}const Lk=e=>e instanceof oa?{...e}:e;function hd(e,t){t=t||{};const n={};function r(u,d,f,m){return Ve.isPlainObject(u)&&Ve.isPlainObject(d)?Ve.merge.call({caseless:m},u,d):Ve.isPlainObject(d)?Ve.merge({},d):Ve.isArray(d)?d.slice():d}function o(u,d,f,m){if(Ve.isUndefined(d)){if(!Ve.isUndefined(u))return r(void 0,u,f,m)}else return r(u,d,f,m)}function i(u,d){if(!Ve.isUndefined(d))return r(void 0,d)}function a(u,d){if(Ve.isUndefined(d)){if(!Ve.isUndefined(u))return r(void 0,u)}else return r(void 0,d)}function s(u,d,f){if(f in t)return r(u,d);if(f in e)return r(void 0,u)}const l={url:i,method:i,data:i,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,withXSRFToken:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,beforeRedirect:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:s,headers:(u,d,f)=>o(Lk(u),Lk(d),f,!0)};return Ve.forEach(Object.keys({...e,...t}),function(d){const f=l[d]||o,m=f(e[d],t[d],d);Ve.isUndefined(m)&&f!==s||(n[d]=m)}),n}const AV=e=>{const t=hd({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:o,xsrfCookieName:i,headers:a,auth:s}=t;if(t.headers=a=oa.from(a),t.url=_V(kV(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),s&&a.set("Authorization","Basic "+btoa((s.username||"")+":"+(s.password?unescape(encodeURIComponent(s.password)):""))),Ve.isFormData(n)){if(vi.hasStandardBrowserEnv||vi.hasStandardBrowserWebWorkerEnv)a.setContentType(void 0);else if(Ve.isFunction(n.getHeaders)){const l=n.getHeaders(),u=["content-type","content-length"];Object.entries(l).forEach(([d,f])=>{u.includes(d.toLowerCase())&&a.set(d,f)})}}if(vi.hasStandardBrowserEnv&&(r&&Ve.isFunction(r)&&(r=r(t)),r||r!==!1&&eue(t.url))){const l=o&&i&&tue.read(i);l&&a.set(o,l)}return t},oue=typeof XMLHttpRequest<"u",iue=oue&&function(e){return new Promise(function(n,r){const o=AV(e);let i=o.data;const a=oa.from(o.headers).normalize();let{responseType:s,onUploadProgress:l,onDownloadProgress:u}=o,d,f,m,h,p;function b(){h&&h(),p&&p(),o.cancelToken&&o.cancelToken.unsubscribe(d),o.signal&&o.signal.removeEventListener("abort",d)}let v=new XMLHttpRequest;v.open(o.method.toUpperCase(),o.url,!0),v.timeout=o.timeout;function y(){if(!v)return;const w=oa.from("getAllResponseHeaders"in v&&v.getAllResponseHeaders()),S={data:!s||s==="text"||s==="json"?v.responseText:v.response,status:v.status,statusText:v.statusText,headers:w,config:e,request:v};MV(function(E){n(E),b()},function(E){r(E),b()},S),v=null}"onloadend"in v?v.onloadend=y:v.onreadystatechange=function(){!v||v.readyState!==4||v.status===0&&!(v.responseURL&&v.responseURL.indexOf("file:")===0)||setTimeout(y)},v.onabort=function(){v&&(r(new Cn("Request aborted",Cn.ECONNABORTED,e,v)),v=null)},v.onerror=function(C){const S=C&&C.message?C.message:"Network Error",$=new Cn(S,Cn.ERR_NETWORK,e,v);$.event=C||null,r($),v=null},v.ontimeout=function(){let C=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded";const S=o.transitional||NV;o.timeoutErrorMessage&&(C=o.timeoutErrorMessage),r(new Cn(C,S.clarifyTimeoutError?Cn.ETIMEDOUT:Cn.ECONNABORTED,e,v)),v=null},i===void 0&&a.setContentType(null),"setRequestHeader"in v&&Ve.forEach(a.toJSON(),function(C,S){v.setRequestHeader(S,C)}),Ve.isUndefined(o.withCredentials)||(v.withCredentials=!!o.withCredentials),s&&s!=="json"&&(v.responseType=o.responseType),u&&([m,p]=Gb(u,!0),v.addEventListener("progress",m)),l&&v.upload&&([f,h]=Gb(l),v.upload.addEventListener("progress",f),v.upload.addEventListener("loadend",h)),(o.cancelToken||o.signal)&&(d=w=>{v&&(r(!w||w.type?new oh(null,e,v):w),v.abort(),v=null)},o.cancelToken&&o.cancelToken.subscribe(d),o.signal&&(o.signal.aborted?d():o.signal.addEventListener("abort",d)));const x=Zce(o.url);if(x&&vi.protocols.indexOf(x)===-1){r(new Cn("Unsupported protocol "+x+":",Cn.ERR_BAD_REQUEST,e));return}v.send(i||null)})},aue=(e,t)=>{const{length:n}=e=e?e.filter(Boolean):[];if(t||n){let r=new AbortController,o;const i=function(u){if(!o){o=!0,s();const d=u instanceof Error?u:this.reason;r.abort(d instanceof Cn?d:new oh(d instanceof Error?d.message:d))}};let a=t&&setTimeout(()=>{a=null,i(new Cn(`timeout ${t} of ms exceeded`,Cn.ETIMEDOUT))},t);const s=()=>{e&&(a&&clearTimeout(a),a=null,e.forEach(u=>{u.unsubscribe?u.unsubscribe(i):u.removeEventListener("abort",i)}),e=null)};e.forEach(u=>u.addEventListener("abort",i));const{signal:l}=r;return l.unsubscribe=()=>Ve.asap(s),l}},sue=function*(e,t){let n=e.byteLength;if(n<t){yield e;return}let r=0,o;for(;r<n;)o=r+t,yield e.slice(r,o),r=o},lue=async function*(e,t){for await(const n of cue(e))yield*sue(n,t)},cue=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:n,value:r}=await t.read();if(n)break;yield r}}finally{await t.cancel()}},zk=(e,t,n,r)=>{const o=lue(e,t);let i=0,a,s=l=>{a||(a=!0,r&&r(l))};return new ReadableStream({async pull(l){try{const{done:u,value:d}=await o.next();if(u){s(),l.close();return}let f=d.byteLength;if(n){let m=i+=f;n(m)}l.enqueue(new Uint8Array(d))}catch(u){throw s(u),u}},cancel(l){return s(l),o.return()}},{highWaterMark:2})},Fk=64*1024,{isFunction:A0}=Ve,uue=(({Request:e,Response:t})=>({Request:e,Response:t}))(Ve.global),{ReadableStream:Bk,TextEncoder:Hk}=Ve.global,Vk=(e,...t)=>{try{return!!e(...t)}catch{return!1}},due=e=>{e=Ve.merge.call({skipUndefined:!0},uue,e);const{fetch:t,Request:n,Response:r}=e,o=t?A0(t):typeof fetch=="function",i=A0(n),a=A0(r);if(!o)return!1;const s=o&&A0(Bk),l=o&&(typeof Hk=="function"?(p=>b=>p.encode(b))(new Hk):async p=>new Uint8Array(await new n(p).arrayBuffer())),u=i&&s&&Vk(()=>{let p=!1;const b=new n(vi.origin,{body:new Bk,method:"POST",get duplex(){return p=!0,"half"}}).headers.has("Content-Type");return p&&!b}),d=a&&s&&Vk(()=>Ve.isReadableStream(new r("").body)),f={stream:d&&(p=>p.body)};o&&["text","arrayBuffer","blob","formData","stream"].forEach(p=>{!f[p]&&(f[p]=(b,v)=>{let y=b&&b[p];if(y)return y.call(b);throw new Cn(`Response type '${p}' is not supported`,Cn.ERR_NOT_SUPPORT,v)})});const m=async p=>{if(p==null)return 0;if(Ve.isBlob(p))return p.size;if(Ve.isSpecCompliantForm(p))return(await new n(vi.origin,{method:"POST",body:p}).arrayBuffer()).byteLength;if(Ve.isArrayBufferView(p)||Ve.isArrayBuffer(p))return p.byteLength;if(Ve.isURLSearchParams(p)&&(p=p+""),Ve.isString(p))return(await l(p)).byteLength},h=async(p,b)=>{const v=Ve.toFiniteNumber(p.getContentLength());return v??m(b)};return async p=>{let{url:b,method:v,data:y,signal:x,cancelToken:w,timeout:C,onDownloadProgress:S,onUploadProgress:$,responseType:E,headers:O,withCredentials:P="same-origin",fetchOptions:j}=AV(p),I=t||fetch;E=E?(E+"").toLowerCase():"text";let _=aue([x,w&&w.toAbortSignal()],C),R=null;const N=_&&_.unsubscribe&&(()=>{_.unsubscribe()});let A;try{if($&&u&&v!=="get"&&v!=="head"&&(A=await h(O,y))!==0){let B=new n(b,{method:"POST",body:y,duplex:"half"}),H;if(Ve.isFormData(y)&&(H=B.headers.get("content-type"))&&O.setContentType(H),B.body){const[F,W]=Ak(A,Gb(Dk($)));y=zk(B.body,Fk,F,W)}}Ve.isString(P)||(P=P?"include":"omit");const M=i&&"credentials"in n.prototype,T={...j,signal:_,method:v.toUpperCase(),headers:O.normalize().toJSON(),body:y,duplex:"half",credentials:M?P:void 0};R=i&&new n(b,T);let k=await(i?I(R,j):I(b,T));const D=d&&(E==="stream"||E==="response");if(d&&(S||D&&N)){const B={};["status","statusText","headers"].forEach(q=>{B[q]=k[q]});const H=Ve.toFiniteNumber(k.headers.get("content-length")),[F,W]=S&&Ak(H,Gb(Dk(S),!0))||[];k=new r(zk(k.body,Fk,F,()=>{W&&W(),N&&N()}),B)}E=E||"text";let L=await f[Ve.findKey(f,E)||"text"](k,p);return!D&&N&&N(),await new Promise((B,H)=>{MV(B,H,{data:L,headers:oa.from(k.headers),status:k.status,statusText:k.statusText,config:p,request:R})})}catch(M){throw N&&N(),M&&M.name==="TypeError"&&/Load failed|fetch/i.test(M.message)?Object.assign(new Cn("Network Error",Cn.ERR_NETWORK,p,R),{cause:M.cause||M}):Cn.from(M,M&&M.code,p,R)}}},fue=new Map,DV=e=>{let t=e&&e.env||{};const{fetch:n,Request:r,Response:o}=t,i=[r,o,n];let a=i.length,s=a,l,u,d=fue;for(;s--;)l=i[s],u=d.get(l),u===void 0&&d.set(l,u=s?new Map:due(t)),d=u;return u};DV();const jN={http:Ice,xhr:iue,fetch:{get:DV}};Ve.forEach(jN,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const Wk=e=>`- ${e}`,mue=e=>Ve.isFunction(e)||e===null||e===!1;function hue(e,t){e=Ve.isArray(e)?e:[e];const{length:n}=e;let r,o;const i={};for(let a=0;a<n;a++){r=e[a];let s;if(o=r,!mue(r)&&(o=jN[(s=String(r)).toLowerCase()],o===void 0))throw new Cn(`Unknown adapter '${s}'`);if(o&&(Ve.isFunction(o)||(o=o.get(t))))break;i[s||"#"+a]=o}if(!o){const a=Object.entries(i).map(([l,u])=>`adapter ${l} `+(u===!1?"is not supported by the environment":"is not available in the build"));let s=n?a.length>1?`since :
`+a.map(Wk).join(`
`):" "+Wk(a[0]):"as no adapter specified";throw new Cn("There is no suitable adapter to dispatch the request "+s,"ERR_NOT_SUPPORT")}return o}const LV={getAdapter:hue,adapters:jN};function a$(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new oh(null,e)}function Uk(e){return a$(e),e.headers=oa.from(e.headers),e.data=i$.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),LV.getAdapter(e.adapter||vv.adapter,e)(e).then(function(r){return a$(e),r.data=i$.call(e,e.transformResponse,r),r.headers=oa.from(r.headers),r},function(r){return TV(r)||(a$(e),r&&r.response&&(r.response.data=i$.call(e,e.transformResponse,r.response),r.response.headers=oa.from(r.response.headers))),Promise.reject(r)})}const zV="1.13.2",U1={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{U1[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const Kk={};U1.transitional=function(t,n,r){function o(i,a){return"[Axios v"+zV+"] Transitional option '"+i+"'"+a+(r?". "+r:"")}return(i,a,s)=>{if(t===!1)throw new Cn(o(a," has been removed"+(n?" in "+n:"")),Cn.ERR_DEPRECATED);return n&&!Kk[a]&&(Kk[a]=!0,console.warn(o(a," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(i,a,s):!0}};U1.spelling=function(t){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${t}`),!0)};function pue(e,t,n){if(typeof e!="object")throw new Cn("options must be an object",Cn.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let o=r.length;for(;o-- >0;){const i=r[o],a=t[i];if(a){const s=e[i],l=s===void 0||a(s,i,e);if(l!==!0)throw new Cn("option "+i+" must be "+l,Cn.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new Cn("Unknown option "+i,Cn.ERR_BAD_OPTION)}}const Zy={assertOptions:pue,validators:U1},Ys=Zy.validators;let ed=class{constructor(t){this.defaults=t||{},this.interceptors={request:new Mk,response:new Mk}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let o={};Error.captureStackTrace?Error.captureStackTrace(o):o=new Error;const i=o.stack?o.stack.replace(/^.+\n/,""):"";try{r.stack?i&&!String(r.stack).endsWith(i.replace(/^.+\n.+\n/,""))&&(r.stack+=`
`+i):r.stack=i}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=hd(this.defaults,n);const{transitional:r,paramsSerializer:o,headers:i}=n;r!==void 0&&Zy.assertOptions(r,{silentJSONParsing:Ys.transitional(Ys.boolean),forcedJSONParsing:Ys.transitional(Ys.boolean),clarifyTimeoutError:Ys.transitional(Ys.boolean)},!1),o!=null&&(Ve.isFunction(o)?n.paramsSerializer={serialize:o}:Zy.assertOptions(o,{encode:Ys.function,serialize:Ys.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),Zy.assertOptions(n,{baseUrl:Ys.spelling("baseURL"),withXsrfToken:Ys.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let a=i&&Ve.merge(i.common,i[n.method]);i&&Ve.forEach(["delete","get","head","post","put","patch","common"],p=>{delete i[p]}),n.headers=oa.concat(a,i);const s=[];let l=!0;this.interceptors.request.forEach(function(b){typeof b.runWhen=="function"&&b.runWhen(n)===!1||(l=l&&b.synchronous,s.unshift(b.fulfilled,b.rejected))});const u=[];this.interceptors.response.forEach(function(b){u.push(b.fulfilled,b.rejected)});let d,f=0,m;if(!l){const p=[Uk.bind(this),void 0];for(p.unshift(...s),p.push(...u),m=p.length,d=Promise.resolve(n);f<m;)d=d.then(p[f++],p[f++]);return d}m=s.length;let h=n;for(;f<m;){const p=s[f++],b=s[f++];try{h=p(h)}catch(v){b.call(this,v);break}}try{d=Uk.call(this,h)}catch(p){return Promise.reject(p)}for(f=0,m=u.length;f<m;)d=d.then(u[f++],u[f++]);return d}getUri(t){t=hd(this.defaults,t);const n=kV(t.baseURL,t.url,t.allowAbsoluteUrls);return _V(n,t.params,t.paramsSerializer)}};Ve.forEach(["delete","get","head","options"],function(t){ed.prototype[t]=function(n,r){return this.request(hd(r||{},{method:t,url:n,data:(r||{}).data}))}});Ve.forEach(["post","put","patch"],function(t){function n(r){return function(i,a,s){return this.request(hd(s||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:i,data:a}))}}ed.prototype[t]=n(),ed.prototype[t+"Form"]=n(!0)});let gue=class FV{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(i){n=i});const r=this;this.promise.then(o=>{if(!r._listeners)return;let i=r._listeners.length;for(;i-- >0;)r._listeners[i](o);r._listeners=null}),this.promise.then=o=>{let i;const a=new Promise(s=>{r.subscribe(s),i=s}).then(o);return a.cancel=function(){r.unsubscribe(i)},a},t(function(i,a,s){r.reason||(r.reason=new oh(i,a,s),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=r=>{t.abort(r)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new FV(function(o){t=o}),cancel:t}}};function vue(e){return function(n){return e.apply(null,n)}}function yue(e){return Ve.isObject(e)&&e.isAxiosError===!0}const mO={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(mO).forEach(([e,t])=>{mO[t]=e});function BV(e){const t=new ed(e),n=yV(ed.prototype.request,t);return Ve.extend(n,ed.prototype,t,{allOwnKeys:!0}),Ve.extend(n,t,null,{allOwnKeys:!0}),n.create=function(o){return BV(hd(e,o))},n}const Or=BV(vv);Or.Axios=ed;Or.CanceledError=oh;Or.CancelToken=gue;Or.isCancel=TV;Or.VERSION=zV;Or.toFormData=W1;Or.AxiosError=Cn;Or.Cancel=Or.CanceledError;Or.all=function(t){return Promise.all(t)};Or.spread=vue;Or.isAxiosError=yue;Or.mergeConfig=hd;Or.AxiosHeaders=oa;Or.formToJSON=e=>RV(Ve.isHTMLForm(e)?new FormData(e):e);Or.getAdapter=LV.getAdapter;Or.HttpStatusCode=mO;Or.default=Or;const{Axios:Uot,AxiosError:Kot,CanceledError:qot,isCancel:Got,CancelToken:Xot,VERSION:Yot,all:Zot,Cancel:Jot,isAxiosError:Qot,spread:eit,toFormData:tit,AxiosHeaders:nit,HttpStatusCode:rit,formToJSON:oit,getAdapter:iit,mergeConfig:ait}=Or,bue="/api/school-template",Dt=Or.create({baseURL:bue,headers:{"Content-Type":"application/json"}});Dt.interceptors.request.use(e=>{const t=localStorage.getItem("token");return t&&(e.headers.Authorization=`Bearer ${t}`),e},e=>Promise.reject(e));Dt.interceptors.response.use(e=>e,e=>(e.response&&e.response.status===401&&(localStorage.removeItem("token"),localStorage.removeItem("user"),window.location.pathname!=="/login"&&(window.location.href="/login")),Promise.reject(e)));const xue=({className:e})=>{const[t,n]=c.useState(!1),[r,o]=c.useState(0),[i,a]=c.useState("general"),[s,l]=c.useState(""),[u,d]=c.useState(""),[f,m]=c.useState(!1),[h,p]=c.useState(!1),[b,v]=c.useState(null),y=async x=>{if(x.preventDefault(),r===0){v("Пожалуйста, выберите оценку");return}m(!0),v(null);try{await Dt.post("/v1/feedback",{rating:r,category:i,comment:s,contact_email:u||void 0}),p(!0),setTimeout(()=>{n(!1),p(!1),o(0),l(""),a("general")},3e3)}catch(w){console.error("Не удалось отправить отзыв",w),v("Не удалось отправить отзыв. Пожалуйста, попробуйте снова.")}finally{m(!1)}};return g.jsx("div",{className:`fixed bottom-6 right-6 z-50 ${e}`,children:t?g.jsxs("div",{className:"bg-white rounded-2xl shadow-2xl w-80 md:w-96 overflow-hidden border border-gray-100 animate-in slide-in-from-bottom-5 duration-200",children:[g.jsxs("div",{className:"bg-blue-600 p-4 flex justify-between items-center text-white",children:[g.jsxs("h3",{className:"font-bold text-lg flex items-center gap-2",children:[g.jsx(Ik,{className:"w-5 h-5"}),"Ваш отзыв"]}),g.jsx("button",{onClick:()=>n(!1),className:"hover:bg-blue-700 p-1 rounded-full transition-colors",children:g.jsx(Vle,{className:"w-5 h-5"})})]}),h?g.jsxs("div",{className:"p-8 text-center flex flex-col items-center justify-center min-h-[300px]",children:[g.jsx("div",{className:"w-16 h-16 bg-green-100 text-green-600 rounded-full flex items-center justify-center mb-4",children:g.jsx(_k,{className:"w-8 h-8"})}),g.jsx("h4",{className:"text-xl font-bold text-gray-800 mb-2",children:"Спасибо!"}),g.jsx("p",{className:"text-gray-500",children:"Ваш отзыв помогает нам улучшить School Node."})]}):g.jsxs("form",{onSubmit:y,className:"p-4 space-y-4",children:[g.jsxs("div",{children:[g.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Как вы оцениваете свой опыт?"}),g.jsx("div",{className:"flex justify-between px-2",children:[1,2,3,4,5].map(x=>g.jsx("button",{type:"button",onClick:()=>o(x),className:`text-2xl transition-transform hover:scale-110 focus:outline-none ${r>=x?"text-yellow-400":"text-gray-300"}`,children:"★"},x))})]}),g.jsxs("div",{children:[g.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-2",children:"Категория"}),g.jsx("div",{className:"grid grid-cols-3 gap-2",children:[{id:"general",label:"Общее",icon:_k},{id:"bug",label:"Ошибка",icon:Tle},{id:"feature",label:"Идея",icon:Dle}].map(x=>g.jsxs("button",{type:"button",onClick:()=>a(x.id),className:`flex flex-col items-center justify-center p-2 rounded-lg border text-xs font-medium transition-colors ${i===x.id?"bg-blue-50 border-blue-200 text-blue-700":"bg-gray-50 border-gray-200 text-gray-600 hover:bg-gray-100"}`,children:[g.jsx(x.icon,{className:"w-4 h-4 mb-1"}),x.label]},x.id))})]}),g.jsxs("div",{children:[g.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-1",children:"Комментарии"}),g.jsx("textarea",{value:s,onChange:x=>l(x.target.value),className:"w-full px-3 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-blue-500 focus:border-transparent outline-none resize-none h-24 text-sm",placeholder:"Расскажите, что вы думаете..."})]}),g.jsxs("div",{children:[g.jsx("label",{className:"block text-sm font-medium text-gray-700 mb-1",children:"Email (необязательно)"}),g.jsx("input",{type:"email",value:u,onChange:x=>d(x.target.value),className:"w-full px-3 py-2 border border-gray-300 rounded-lg focus:ring-2 focus:ring-blue-500 focus:border-transparent outline-none text-sm",placeholder:"Для обратной связи..."})]}),b&&g.jsxs("div",{className:"bg-red-50 text-red-600 text-xs p-3 rounded-lg flex items-center gap-2",children:[g.jsx(kle,{className:"w-4 h-4 flex-shrink-0"}),b]}),g.jsx("button",{type:"submit",disabled:f,className:"w-full bg-blue-600 hover:bg-blue-700 text-white font-medium py-2.5 rounded-lg transition-colors flex items-center justify-center gap-2 disabled:opacity-70 disabled:cursor-not-allowed",children:f?g.jsx("div",{className:"w-5 h-5 border-2 border-white border-t-transparent rounded-full animate-spin"}):g.jsxs(g.Fragment,{children:[g.jsx(Fle,{className:"w-4 h-4"}),"Отправить отзыв"]})})]})]}):g.jsxs("button",{onClick:()=>n(!0),className:"bg-blue-600 hover:bg-blue-700 text-white rounded-full p-4 shadow-lg transition-all duration-200 flex items-center gap-2",children:[g.jsx(Ik,{className:"w-6 h-6"}),g.jsx("span",{className:"font-medium hidden md:inline",children:"Отзыв"})]})})},wue=()=>{var a;const{user:e,logout:t}=nc(),n=fs(),r=nh(),o=()=>{t(),r("/login")},i=[{name:"Главная",href:"/"},{name:"Расписание",href:"/schedule"},{name:"Материалы",href:"/materials"},{name:"Дневник",href:"/diary"},{name:"Отчеты",href:"/reports"},{name:"Активность",href:"/activity"}];return((e==null?void 0:e.role)==="admin"||(e==null?void 0:e.role)==="school_admin")&&i.push({name:"Администрирование",href:"/admin"}),g.jsxs("div",{className:"min-h-screen bg-gray-100 flex",children:[g.jsxs("div",{className:"bg-indigo-800 text-white w-64 flex-shrink-0",children:[g.jsx("div",{className:"p-4",children:g.jsx("h1",{className:"text-2xl font-bold",children:"Школа ИИ"})}),g.jsx("nav",{className:"mt-4",children:i.map(s=>g.jsx(Sm,{to:s.href,className:`block py-2.5 px-4 transition duration-200 hover:bg-indigo-700 ${n.pathname===s.href?"bg-indigo-900":""}`,children:s.name},s.name))})]}),g.jsxs("div",{className:"flex-1 flex flex-col overflow-hidden",children:[g.jsx("header",{className:"bg-white shadow-sm z-10",children:g.jsxs("div",{className:"max-w-7xl mx-auto py-4 px-4 sm:px-6 lg:px-8 flex justify-between items-center",children:[g.jsx("h2",{className:"text-xl font-semibold text-gray-800",children:n.pathname==="/profile"?"Профиль":((a=i.find(s=>s.href===n.pathname))==null?void 0:a.name)||"Главная"}),g.jsxs("div",{className:"flex items-center",children:[g.jsxs(Sm,{to:"/profile",className:"mr-4 text-gray-600 hover:text-indigo-600 font-medium",children:[e==null?void 0:e.full_name," (",e==null?void 0:e.role,")"]}),g.jsx("button",{onClick:o,className:"bg-red-500 hover:bg-red-600 text-white px-3 py-1 rounded text-sm",children:"Выйти"})]})]})}),g.jsx("main",{className:"flex-1 overflow-x-hidden overflow-y-auto bg-gray-100 p-6",children:g.jsx(uV,{})})]}),g.jsx(xue,{})]})},Bn={getUsers:async e=>(await Dt.get("/v1/admin/users",{params:e})).data,createUser:async e=>(await Dt.post("/v1/admin/users",e)).data,updateUser:async(e,t)=>(await Dt.put(`/v1/admin/users/${e}`,t)).data,changePassword:async e=>(await Dt.post("/api/v1/mobile/profile/change-password",e)).data,deleteSelf:async()=>(await Dt.delete("/api/v1/mobile/profile")).data,deleteUser:async e=>(await Dt.delete(`/v1/admin/users/${e}`)).data,getSchools:async e=>(await Dt.get("/v1/admin/schools",{params:e})).data,createSchool:async e=>(await Dt.post("/v1/admin/schools",e)).data,updateSchool:async(e,t)=>(await Dt.put(`/v1/admin/schools/${e}`,t)).data,getSchoolSettings:async e=>(await Dt.get(`/v1/admin/schools/${e}/settings`)).data,updateSchoolSettings:async(e,t)=>(await Dt.put(`/v1/admin/schools/${e}/settings`,{settings:t})).data,getSchoolModules:async e=>(await Dt.get(`/v1/admin/schools/${e}/modules`)).data,toggleSchoolModule:async(e,t,n,r={})=>(await Dt.post(`/v1/admin/schools/${e}/modules/activate`,{module_name:t,is_active:n,config:r})).data,getGTORules:async e=>(await Dt.get("/gto/rules",{params:e})).data,createGTORule:async e=>(await Dt.post("/gto/rules",e)).data,getStudents:async()=>(await Dt.get("/api/v1/functional/students")).data,getLessonsDropdown:async()=>(await Dt.get("/api/v1/functional/lessons/dropdown")).data,getGroups:async()=>(await Dt.get("/api/v1/functional/groups")).data,getSubjects:async()=>(await Dt.get("/api/v1/functional/subjects")).data,getTrainers:async()=>(await Dt.get("/api/v1/functional/trainers")).data,getRooms:async()=>(await Dt.get("/api/v1/functional/rooms")).data,getLessons:async e=>(await Dt.get("/api/v1/functional/lessons",{params:e})).data,getUpcomingLessons:async(e=5)=>(await Dt.get("/api/v1/functional/lessons/upcoming",{params:{limit:e}})).data,createLesson:async e=>(await Dt.post("/api/v1/functional/lessons",e)).data,updateLesson:async(e,t)=>(await Dt.put(`/api/v1/functional/lessons/${e}`,t)).data,deleteLesson:async e=>(await Dt.delete(`/api/v1/functional/lessons/${e}`)).data,getLessonAttendance:async e=>(await Dt.get(`/api/v1/functional/attendance/lesson/${e}`)).data,updateAttendance:async e=>(await Dt.post("/api/v1/functional/attendance",e)).data,getMaterials:async e=>(await Dt.get("/api/v1/functional/materials",{params:e})).data,getMaterial:async e=>(await Dt.get(`/api/v1/functional/materials/${e}`)).data,createMaterial:async e=>(await Dt.post("/api/v1/functional/materials",e)).data,updateMaterial:async(e,t)=>(await Dt.put(`/api/v1/functional/materials/${e}`,t)).data,deleteMaterial:async e=>(await Dt.delete(`/api/v1/functional/materials/${e}`)).data,getDiaryEntries:async e=>(await Dt.get("/api/v1/functional/diary-entries",{params:e})).data,createDiaryEntry:async e=>(await Dt.post("/api/v1/functional/diary-entries",e)).data,updateDiaryEntry:async(e,t)=>(await Dt.put(`/api/v1/functional/diary-entries/${e}`,t)).data,deleteDiaryEntry:async e=>(await Dt.delete(`/api/v1/functional/diary-entries/${e}`)).data};function fc({className:e="",variant:t="text",width:n,height:r}){const o="animate-pulse bg-gray-200 rounded",i={text:"h-4 w-full",circular:"rounded-full",rectangular:"h-full w-full"},a={width:n,height:r};return g.jsx("div",{className:`${o} ${i[t]} ${e}`,style:a})}function Sue(){const{user:e}=nc(),[t,n]=c.useState([]),[r,o]=c.useState([]),[i,a]=c.useState(!0),[s,l]=c.useState("");c.useEffect(()=>{(async()=>{try{const[f,m]=await Promise.all([Bn.getUpcomingLessons(5),Bn.getMaterials({limit:5})]);n(f.upcoming_lessons||[]),o(m.materials||[])}catch(f){console.error("Не удалось загрузить данные дашборда",f),l("Не удалось загрузить данные дашборда")}finally{a(!1)}})()},[]);const u=d=>({scheduled:"Запланировано",cancelled:"Отменено",completed:"Завершено",active:"Активно"})[d]||d;return i?g.jsxs("div",{className:"space-y-6",children:[g.jsxs("header",{children:[g.jsx(fc,{className:"h-10 w-64 mb-2"}),g.jsx(fc,{className:"h-5 w-48"})]}),g.jsxs("div",{className:"grid grid-cols-1 gap-6 lg:grid-cols-2",children:[g.jsxs("div",{className:"bg-white shadow overflow-hidden sm:rounded-lg h-96 p-6 space-y-4",children:[g.jsxs("div",{className:"flex justify-between",children:[g.jsx(fc,{className:"h-6 w-32"}),g.jsx(fc,{className:"h-4 w-16"})]}),g.jsx("div",{className:"space-y-4",children:[1,2,3,4,5].map(d=>g.jsx(fc,{className:"h-16 w-full"},d))})]}),g.jsxs("div",{className:"bg-white shadow overflow-hidden sm:rounded-lg h-96 p-6 space-y-4",children:[g.jsxs("div",{className:"flex justify-between",children:[g.jsx(fc,{className:"h-6 w-32"}),g.jsx(fc,{className:"h-4 w-16"})]}),g.jsx("div",{className:"space-y-4",children:[1,2,3,4,5].map(d=>g.jsx(fc,{className:"h-16 w-full"},d))})]})]})]}):g.jsxs("div",{className:"space-y-6",children:[g.jsxs("header",{children:[g.jsxs("h1",{className:"text-3xl font-bold text-gray-900",children:["С возвращением, ",(e==null?void 0:e.full_name)||"Студент","!"]}),g.jsx("p",{className:"mt-1 text-sm text-gray-500",children:"Вот что происходит сегодня."})]}),s&&g.jsx("div",{className:"bg-red-50 border-l-4 border-red-400 p-4",children:g.jsxs("div",{className:"flex",children:[g.jsx("div",{className:"flex-shrink-0",children:g.jsx("svg",{className:"h-5 w-5 text-red-400",viewBox:"0 0 20 20",fill:"currentColor",children:g.jsx("path",{fillRule:"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zM8.707 7.293a1 1 0 00-1.414 1.414L8.586 10l-1.293 1.293a1 1 0 101.414 1.414L10 11.414l1.293 1.293a1 1 0 001.414-1.414L11.414 10l1.293-1.293a1 1 0 00-1.414-1.414L10 8.586 8.707 7.293z",clipRule:"evenodd"})})}),g.jsx("div",{className:"ml-3",children:g.jsx("p",{className:"text-sm text-red-700",children:s})})]})}),g.jsxs("div",{className:"grid grid-cols-1 gap-6 lg:grid-cols-2",children:[g.jsxs("div",{className:"bg-white shadow overflow-hidden sm:rounded-lg",children:[g.jsxs("div",{className:"px-4 py-5 sm:px-6 flex justify-between items-center",children:[g.jsx("h3",{className:"text-lg leading-6 font-medium text-gray-900",children:"Предстоящие занятия"}),g.jsx(Sm,{to:"/schedule",className:"text-sm text-indigo-600 hover:text-indigo-900",children:"Смотреть все"})]}),g.jsx("div",{className:"border-t border-gray-200",children:t.length>0?g.jsx("ul",{className:"divide-y divide-gray-200",children:t.map(d=>g.jsxs("li",{className:"px-4 py-4 sm:px-6 hover:bg-gray-50 transition",children:[g.jsxs("div",{className:"flex items-center justify-between",children:[g.jsx("div",{className:"text-sm font-medium text-indigo-600 truncate",children:d.description||"Обычное занятие"}),g.jsx("div",{className:"ml-2 flex-shrink-0 flex",children:g.jsx("span",{className:`px-2 inline-flex text-xs leading-5 font-semibold rounded-full ${d.status==="scheduled"?"bg-green-100 text-green-800":d.status==="cancelled"?"bg-red-100 text-red-800":"bg-gray-100 text-gray-800"}`,children:u(d.status)})})]}),g.jsx("div",{className:"mt-2 sm:flex sm:justify-between",children:g.jsxs("div",{className:"sm:flex",children:[g.jsxs("p",{className:"flex items-center text-sm text-gray-500",children:[g.jsx("svg",{className:"flex-shrink-0 mr-1.5 h-5 w-5 text-gray-400",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",children:g.jsx("path",{fillRule:"evenodd",d:"M6 2a1 1 0 00-1 1v1H4a2 2 0 00-2 2v10a2 2 0 002 2h12a2 2 0 002-2V6a2 2 0 00-2-2h-1V3a1 1 0 10-2 0v1H7V3a1 1 0 00-1-1zm0 5a1 1 0 000 2h8a1 1 0 100-2H6z",clipRule:"evenodd"})}),new Date(d.start_time).toLocaleString("ru-RU")]}),g.jsxs("p",{className:"mt-2 flex items-center text-sm text-gray-500 sm:mt-0 sm:ml-6",children:[g.jsx("svg",{className:"flex-shrink-0 mr-1.5 h-5 w-5 text-gray-400",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",children:g.jsx("path",{fillRule:"evenodd",d:"M5.05 4.05a7 7 0 119.9 9.9L10 18.9l-4.95-4.95a7 7 0 010-9.9zM10 11a2 2 0 100-4 2 2 0 000 4z",clipRule:"evenodd"})}),"Аудитория ",d.room_id||"Главная"]})]})})]},d.id))}):g.jsx("div",{className:"px-4 py-5 sm:px-6 text-gray-500 text-sm text-center",children:"Предстоящих занятий не найдено."})})]}),g.jsxs("div",{className:"bg-white shadow overflow-hidden sm:rounded-lg",children:[g.jsxs("div",{className:"px-4 py-5 sm:px-6 flex justify-between items-center",children:[g.jsx("h3",{className:"text-lg leading-6 font-medium text-gray-900",children:"Новые материалы"}),g.jsx(Sm,{to:"/materials",className:"text-sm text-indigo-600 hover:text-indigo-900",children:"Смотреть библиотеку"})]}),g.jsx("div",{className:"border-t border-gray-200",children:r.length>0?g.jsx("ul",{className:"divide-y divide-gray-200",children:r.map(d=>g.jsxs("li",{className:"px-4 py-4 sm:px-6 hover:bg-gray-50 transition",children:[g.jsxs("div",{className:"flex items-center justify-between",children:[g.jsx("div",{className:"text-sm font-medium text-indigo-600 truncate",children:d.title}),g.jsx("div",{className:"ml-2 flex-shrink-0 flex",children:g.jsx("span",{className:"px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-blue-100 text-blue-800",children:d.material_type})})]}),g.jsxs("div",{className:"mt-2 flex justify-between",children:[g.jsx("p",{className:"text-sm text-gray-500 truncate w-3/4",children:d.description||"Нет описания"}),g.jsx("a",{href:d.file_url||"#",target:"_blank",rel:"noopener noreferrer",className:"text-xs text-indigo-500 hover:text-indigo-700 font-medium",children:"Скачать"})]})]},d.id))}):g.jsx("div",{className:"px-4 py-5 sm:px-6 text-gray-500 text-sm text-center",children:"Новых материалов не найдено."})})]})]})]})}var yv=e=>e.type==="checkbox",Bu=e=>e instanceof Date,Ki=e=>e==null;const HV=e=>typeof e=="object";var fo=e=>!Ki(e)&&!Array.isArray(e)&&HV(e)&&!Bu(e),VV=e=>fo(e)&&e.target?yv(e.target)?e.target.checked:e.target.value:e,Cue=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,WV=(e,t)=>e.has(Cue(t)),$ue=e=>{const t=e.constructor&&e.constructor.prototype;return fo(t)&&t.hasOwnProperty("isPrototypeOf")},IN=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function yr(e){if(e instanceof Date)return new Date(e);const t=typeof FileList<"u"&&e instanceof FileList;if(IN&&(e instanceof Blob||t))return e;const n=Array.isArray(e);if(!n&&!(fo(e)&&$ue(e)))return e;const r=n?[]:Object.create(Object.getPrototypeOf(e));for(const o in e)Object.prototype.hasOwnProperty.call(e,o)&&(r[o]=yr(e[o]));return r}var K1=e=>/^\w*$/.test(e),dr=e=>e===void 0,q1=e=>Array.isArray(e)?e.filter(Boolean):[],_N=e=>q1(e.replace(/["|']|\]/g,"").split(/\.|\[/)),Mt=(e,t,n)=>{if(!t||!fo(e))return n;const r=(K1(t)?[t]:_N(t)).reduce((o,i)=>Ki(o)?o:o[i],e);return dr(r)||r===e?dr(e[t])?n:e[t]:r},ba=e=>typeof e=="boolean",Ti=e=>typeof e=="function",Gn=(e,t,n)=>{let r=-1;const o=K1(t)?[t]:_N(t),i=o.length,a=i-1;for(;++r<i;){const s=o[r];let l=n;if(r!==a){const u=e[s];l=fo(u)||Array.isArray(u)?u:isNaN(+o[r+1])?{}:[]}if(s==="__proto__"||s==="constructor"||s==="prototype")return;e[s]=l,e=e[s]}};const Xb={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},Xa={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},wl={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},UV=ce.createContext(null);UV.displayName="HookFormContext";const G1=()=>ce.useContext(UV);var KV=(e,t,n,r=!0)=>{const o={defaultValues:t._defaultValues};for(const i in e)Object.defineProperty(o,i,{get:()=>{const a=i;return t._proxyFormState[a]!==Xa.all&&(t._proxyFormState[a]=!r||Xa.all),n&&(n[a]=!0),e[a]}});return o};const X1=typeof window<"u"?ce.useLayoutEffect:ce.useEffect;function Eue(e){const t=G1(),{control:n=t.control,disabled:r,name:o,exact:i}=e||{},[a,s]=ce.useState(n._formState),l=ce.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1});return X1(()=>n._subscribe({name:o,formState:l.current,exact:i,callback:u=>{!r&&s({...n._formState,...u})}}),[o,r,i]),ce.useEffect(()=>{l.current.isValid&&n._setValid(!0)},[n]),ce.useMemo(()=>KV(a,n,l.current,!1),[a,n])}var wa=e=>typeof e=="string",hO=(e,t,n,r,o)=>wa(e)?(r&&t.watch.add(e),Mt(n,e,o)):Array.isArray(e)?e.map(i=>(r&&t.watch.add(i),Mt(n,i))):(r&&(t.watchAll=!0),n),pO=e=>Ki(e)||!HV(e);function Os(e,t,n=new WeakSet){if(pO(e)||pO(t))return Object.is(e,t);if(Bu(e)&&Bu(t))return e.getTime()===t.getTime();const r=Object.keys(e),o=Object.keys(t);if(r.length!==o.length)return!1;if(n.has(e)||n.has(t))return!0;n.add(e),n.add(t);for(const i of r){const a=e[i];if(!o.includes(i))return!1;if(i!=="ref"){const s=t[i];if(Bu(a)&&Bu(s)||fo(a)&&fo(s)||Array.isArray(a)&&Array.isArray(s)?!Os(a,s,n):!Object.is(a,s))return!1}}return!0}function qV(e){const t=G1(),{control:n=t.control,name:r,defaultValue:o,disabled:i,exact:a,compute:s}=e||{},l=ce.useRef(o),u=ce.useRef(s),d=ce.useRef(void 0),f=ce.useRef(n),m=ce.useRef(r);u.current=s;const[h,p]=ce.useState(()=>{const C=n._getWatch(r,l.current);return u.current?u.current(C):C}),b=ce.useCallback(C=>{const S=hO(r,n._names,C||n._formValues,!1,l.current);return u.current?u.current(S):S},[n._formValues,n._names,r]),v=ce.useCallback(C=>{if(!i){const S=hO(r,n._names,C||n._formValues,!1,l.current);if(u.current){const $=u.current(S);Os($,d.current)||(p($),d.current=$)}else p(S)}},[n._formValues,n._names,i,r]);X1(()=>((f.current!==n||!Os(m.current,r))&&(f.current=n,m.current=r,v()),n._subscribe({name:r,formState:{values:!0},exact:a,callback:C=>{v(C.values)}})),[n,a,r,v]),ce.useEffect(()=>n._removeUnmounted());const y=f.current!==n,x=m.current,w=ce.useMemo(()=>{if(i)return null;const C=!y&&!Os(x,r);return y||C?b():null},[i,y,r,x,b]);return w!==null?w:h}function Oue(e){const t=G1(),{name:n,disabled:r,control:o=t.control,shouldUnregister:i,defaultValue:a,exact:s=!0}=e,l=WV(o._names.array,n),u=ce.useMemo(()=>Mt(o._formValues,n,Mt(o._defaultValues,n,a)),[o,n,a]),d=qV({control:o,name:n,defaultValue:u,exact:s}),f=Eue({control:o,name:n,exact:s}),m=ce.useRef(e),h=ce.useRef(void 0),p=ce.useRef(o.register(n,{...e.rules,value:d,...ba(e.disabled)?{disabled:e.disabled}:{}}));m.current=e;const b=ce.useMemo(()=>Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!Mt(f.errors,n)},isDirty:{enumerable:!0,get:()=>!!Mt(f.dirtyFields,n)},isTouched:{enumerable:!0,get:()=>!!Mt(f.touchedFields,n)},isValidating:{enumerable:!0,get:()=>!!Mt(f.validatingFields,n)},error:{enumerable:!0,get:()=>Mt(f.errors,n)}}),[f,n]),v=ce.useCallback(C=>p.current.onChange({target:{value:VV(C),name:n},type:Xb.CHANGE}),[n]),y=ce.useCallback(()=>p.current.onBlur({target:{value:Mt(o._formValues,n),name:n},type:Xb.BLUR}),[n,o._formValues]),x=ce.useCallback(C=>{const S=Mt(o._fields,n);S&&S._f&&C&&(S._f.ref={focus:()=>Ti(C.focus)&&C.focus(),select:()=>Ti(C.select)&&C.select(),setCustomValidity:$=>Ti(C.setCustomValidity)&&C.setCustomValidity($),reportValidity:()=>Ti(C.reportValidity)&&C.reportValidity()})},[o._fields,n]),w=ce.useMemo(()=>({name:n,value:d,...ba(r)||f.disabled?{disabled:f.disabled||r}:{},onChange:v,onBlur:y,ref:x}),[n,r,f.disabled,v,y,x,d]);return ce.useEffect(()=>{const C=o._options.shouldUnregister||i,S=h.current;S&&S!==n&&!l&&o.unregister(S),o.register(n,{...m.current.rules,...ba(m.current.disabled)?{disabled:m.current.disabled}:{}});const $=(E,O)=>{const P=Mt(o._fields,E);P&&P._f&&(P._f.mount=O)};if($(n,!0),C){const E=yr(Mt(o._options.defaultValues,n,m.current.defaultValue));Gn(o._defaultValues,n,E),dr(Mt(o._formValues,n))&&Gn(o._formValues,n,E)}return!l&&o.register(n),h.current=n,()=>{(l?C&&!o._state.action:C)?o.unregister(n):$(n,!1)}},[n,o,l,i]),ce.useEffect(()=>{o._setDisabledField({disabled:r,name:n})},[r,n,o]),ce.useMemo(()=>({field:w,formState:f,fieldState:b}),[w,f,b])}const Bo=e=>e.render(Oue(e));var NN=(e,t,n,r,o)=>t?{...n[e],types:{...n[e]&&n[e].types?n[e].types:{},[r]:o||!0}}:{},Yi=e=>Array.isArray(e)?e:[e],qk=()=>{let e=[];return{get observers(){return e},next:o=>{for(const i of e)i.next&&i.next(o)},subscribe:o=>(e.push(o),{unsubscribe:()=>{e=e.filter(i=>i!==o)}}),unsubscribe:()=>{e=[]}}};function GV(e,t){const n={};for(const r in e)if(e.hasOwnProperty(r)){const o=e[r],i=t[r];if(o&&fo(o)&&i){const a=GV(o,i);fo(a)&&(n[r]=a)}else e[r]&&(n[r]=i)}return n}var di=e=>fo(e)&&!Object.keys(e).length,RN=e=>e.type==="file",Yb=e=>{if(!IN)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},XV=e=>e.type==="select-multiple",TN=e=>e.type==="radio",Pue=e=>TN(e)||yv(e),s$=e=>Yb(e)&&e.isConnected;function jue(e,t){const n=t.slice(0,-1).length;let r=0;for(;r<n;)e=dr(e)?r++:e[t[r++]];return e}function Iue(e){for(const t in e)if(e.hasOwnProperty(t)&&!dr(e[t]))return!1;return!0}function Yr(e,t){const n=Array.isArray(t)?t:K1(t)?[t]:_N(t),r=n.length===1?e:jue(e,n),o=n.length-1,i=n[o];return r&&delete r[i],o!==0&&(fo(r)&&di(r)||Array.isArray(r)&&Iue(r))&&Yr(e,n.slice(0,-1)),e}var _ue=e=>{for(const t in e)if(Ti(e[t]))return!0;return!1};function YV(e){return Array.isArray(e)||fo(e)&&!_ue(e)}function gO(e,t={}){for(const n in e){const r=e[n];YV(r)?(t[n]=Array.isArray(r)?[]:{},gO(r,t[n])):dr(r)||(t[n]=!0)}return t}function Cf(e,t,n){n||(n=gO(t));for(const r in e){const o=e[r];if(YV(o))dr(t)||pO(n[r])?n[r]=gO(o,Array.isArray(o)?[]:{}):Cf(o,Ki(t)?{}:t[r],n[r]);else{const i=t[r];n[r]=!Os(o,i)}}return n}const Gk={value:!1,isValid:!1},Xk={value:!0,isValid:!0};var ZV=e=>{if(Array.isArray(e)){if(e.length>1){const t=e.filter(n=>n&&n.checked&&!n.disabled).map(n=>n.value);return{value:t,isValid:!!t.length}}return e[0].checked&&!e[0].disabled?e[0].attributes&&!dr(e[0].attributes.value)?dr(e[0].value)||e[0].value===""?Xk:{value:e[0].value,isValid:!0}:Xk:Gk}return Gk},JV=(e,{valueAsNumber:t,valueAsDate:n,setValueAs:r})=>dr(e)?e:t?e===""?NaN:e&&+e:n&&wa(e)?new Date(e):r?r(e):e;const Yk={isValid:!1,value:null};var QV=e=>Array.isArray(e)?e.reduce((t,n)=>n&&n.checked&&!n.disabled?{isValid:!0,value:n.value}:t,Yk):Yk;function Zk(e){const t=e.ref;return RN(t)?t.files:TN(t)?QV(e.refs).value:XV(t)?[...t.selectedOptions].map(({value:n})=>n):yv(t)?ZV(e.refs).value:JV(dr(t.value)?e.ref.value:t.value,e)}var Nue=(e,t,n,r)=>{const o={};for(const i of e){const a=Mt(t,i);a&&Gn(o,i,a._f)}return{criteriaMode:n,names:[...e],fields:o,shouldUseNativeValidation:r}},Zb=e=>e instanceof RegExp,Gh=e=>dr(e)?e:Zb(e)?e.source:fo(e)?Zb(e.value)?e.value.source:e.value:e,Df=e=>({isOnSubmit:!e||e===Xa.onSubmit,isOnBlur:e===Xa.onBlur,isOnChange:e===Xa.onChange,isOnAll:e===Xa.all,isOnTouch:e===Xa.onTouched});const Jk="AsyncFunction";var Rue=e=>!!e&&!!e.validate&&!!(Ti(e.validate)&&e.validate.constructor.name===Jk||fo(e.validate)&&Object.values(e.validate).find(t=>t.constructor.name===Jk)),Tue=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate),vO=(e,t,n)=>!n&&(t.watchAll||t.watch.has(e)||[...t.watch].some(r=>e.startsWith(r)&&/^\.\w+/.test(e.slice(r.length))));const rm=(e,t,n,r)=>{for(const o of n||Object.keys(e)){const i=Mt(e,o);if(i){const{_f:a,...s}=i;if(a){if(a.refs&&a.refs[0]&&t(a.refs[0],o)&&!r)return!0;if(a.ref&&t(a.ref,a.name)&&!r)return!0;if(rm(s,t))break}else if(fo(s)&&rm(s,t))break}}};function Qk(e,t,n){const r=Mt(e,n);if(r||K1(n))return{error:r,name:n};const o=n.split(".");for(;o.length;){const i=o.join("."),a=Mt(t,i),s=Mt(e,i);if(a&&!Array.isArray(a)&&n!==i)return{name:n};if(s&&s.type)return{name:i,error:s};if(s&&s.root&&s.root.type)return{name:`${i}.root`,error:s.root};o.pop()}return{name:n}}var Mue=(e,t,n,r)=>{n(e);const{name:o,...i}=e;return di(i)||Object.keys(i).length>=Object.keys(t).length||Object.keys(i).find(a=>t[a]===(!r||Xa.all))},kue=(e,t,n)=>!e||!t||e===t||Yi(e).some(r=>r&&(n?r===t:r.startsWith(t)||t.startsWith(r))),Aue=(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,Due=(e,t)=>!q1(Mt(e,t)).length&&Yr(e,t),eW=(e,t,n)=>{const r=Yi(Mt(e,n));return Gn(r,"root",t[n]),Gn(e,n,r),e};function e6(e,t,n="validate"){if(wa(e)||Array.isArray(e)&&e.every(wa)||ba(e)&&!e)return{type:n,message:wa(e)?e:"",ref:t}}var af=e=>fo(e)&&!Zb(e)?e:{value:e,message:""},yO=async(e,t,n,r,o,i)=>{const{ref:a,refs:s,required:l,maxLength:u,minLength:d,min:f,max:m,pattern:h,validate:p,name:b,valueAsNumber:v,mount:y}=e._f,x=Mt(n,b);if(!y||t.has(b))return{};const w=s?s[0]:a,C=_=>{o&&w.reportValidity&&(w.setCustomValidity(ba(_)?"":_||""),w.reportValidity())},S={},$=TN(a),E=yv(a),O=$||E,P=(v||RN(a))&&dr(a.value)&&dr(x)||Yb(a)&&a.value===""||x===""||Array.isArray(x)&&!x.length,j=NN.bind(null,b,r,S),I=(_,R,N,A=wl.maxLength,M=wl.minLength)=>{const T=_?R:N;S[b]={type:_?A:M,message:T,ref:a,...j(_?A:M,T)}};if(i?!Array.isArray(x)||!x.length:l&&(!O&&(P||Ki(x))||ba(x)&&!x||E&&!ZV(s).isValid||$&&!QV(s).isValid)){const{value:_,message:R}=wa(l)?{value:!!l,message:l}:af(l);if(_&&(S[b]={type:wl.required,message:R,ref:w,...j(wl.required,R)},!r))return C(R),S}if(!P&&(!Ki(f)||!Ki(m))){let _,R;const N=af(m),A=af(f);if(!Ki(x)&&!isNaN(x)){const M=a.valueAsNumber||x&&+x;Ki(N.value)||(_=M>N.value),Ki(A.value)||(R=M<A.value)}else{const M=a.valueAsDate||new Date(x),T=L=>new Date(new Date().toDateString()+" "+L),k=a.type=="time",D=a.type=="week";wa(N.value)&&x&&(_=k?T(x)>T(N.value):D?x>N.value:M>new Date(N.value)),wa(A.value)&&x&&(R=k?T(x)<T(A.value):D?x<A.value:M<new Date(A.value))}if((_||R)&&(I(!!_,N.message,A.message,wl.max,wl.min),!r))return C(S[b].message),S}if((u||d)&&!P&&(wa(x)||i&&Array.isArray(x))){const _=af(u),R=af(d),N=!Ki(_.value)&&x.length>+_.value,A=!Ki(R.value)&&x.length<+R.value;if((N||A)&&(I(N,_.message,R.message),!r))return C(S[b].message),S}if(h&&!P&&wa(x)){const{value:_,message:R}=af(h);if(Zb(_)&&!x.match(_)&&(S[b]={type:wl.pattern,message:R,ref:a,...j(wl.pattern,R)},!r))return C(R),S}if(p){if(Ti(p)){const _=await p(x,n),R=e6(_,w);if(R&&(S[b]={...R,...j(wl.validate,R.message)},!r))return C(R.message),S}else if(fo(p)){let _={};for(const R in p){if(!di(_)&&!r)break;const N=e6(await p[R](x,n),w,R);N&&(_={...N,...j(R,N.message)},C(N.message),r&&(S[b]=_))}if(!di(_)&&(S[b]={ref:w,..._},!r))return S}}return C(!0),S};const Lue={mode:Xa.onSubmit,reValidateMode:Xa.onChange,shouldFocusError:!0};function zue(e={}){let t={...Lue,...e},n={submitCount:0,isDirty:!1,isReady:!1,isLoading:Ti(t.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:t.errors||{},disabled:t.disabled||!1},r={},o=fo(t.defaultValues)||fo(t.values)?yr(t.defaultValues||t.values)||{}:{},i=t.shouldUnregister?{}:yr(o),a={action:!1,mount:!1,watch:!1,keepIsValid:!1},s={mount:new Set,disabled:new Set,unMount:new Set,array:new Set,watch:new Set},l,u=0;const d={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},f={...d};let m={...f};const h={array:qk(),state:qk()},p=t.criteriaMode===Xa.all,b=V=>J=>{clearTimeout(u),u=setTimeout(V,J)},v=async V=>{if(!a.keepIsValid&&!t.disabled&&(f.isValid||m.isValid||V)){let J;t.resolver?(J=di((await O()).errors),y()):J=await j(r,!0),J!==n.isValid&&h.state.next({isValid:J})}},y=(V,J)=>{!t.disabled&&(f.isValidating||f.validatingFields||m.isValidating||m.validatingFields)&&((V||Array.from(s.mount)).forEach(oe=>{oe&&(J?Gn(n.validatingFields,oe,J):Yr(n.validatingFields,oe))}),h.state.next({validatingFields:n.validatingFields,isValidating:!di(n.validatingFields)}))},x=(V,J=[],oe,de,be=!0,ge=!0)=>{if(de&&oe&&!t.disabled){if(a.action=!0,ge&&Array.isArray(Mt(r,V))){const ie=oe(Mt(r,V),de.argA,de.argB);be&&Gn(r,V,ie)}if(ge&&Array.isArray(Mt(n.errors,V))){const ie=oe(Mt(n.errors,V),de.argA,de.argB);be&&Gn(n.errors,V,ie),Due(n.errors,V)}if((f.touchedFields||m.touchedFields)&&ge&&Array.isArray(Mt(n.touchedFields,V))){const ie=oe(Mt(n.touchedFields,V),de.argA,de.argB);be&&Gn(n.touchedFields,V,ie)}(f.dirtyFields||m.dirtyFields)&&(n.dirtyFields=Cf(o,i)),h.state.next({name:V,isDirty:_(V,J),dirtyFields:n.dirtyFields,errors:n.errors,isValid:n.isValid})}else Gn(i,V,J)},w=(V,J)=>{Gn(n.errors,V,J),h.state.next({errors:n.errors})},C=V=>{n.errors=V,h.state.next({errors:n.errors,isValid:!1})},S=(V,J,oe,de)=>{const be=Mt(r,V);if(be){const ge=Mt(i,V,dr(oe)?Mt(o,V):oe);dr(ge)||de&&de.defaultChecked||J?Gn(i,V,J?ge:Zk(be._f)):A(V,ge),a.mount&&!a.action&&v()}},$=(V,J,oe,de,be)=>{let ge=!1,ie=!1;const he={name:V};if(!t.disabled){if(!oe||de){(f.isDirty||m.isDirty)&&(ie=n.isDirty,n.isDirty=he.isDirty=_(),ge=ie!==he.isDirty);const xe=Os(Mt(o,V),J);ie=!!Mt(n.dirtyFields,V),xe?Yr(n.dirtyFields,V):Gn(n.dirtyFields,V,!0),he.dirtyFields=n.dirtyFields,ge=ge||(f.dirtyFields||m.dirtyFields)&&ie!==!xe}if(oe){const xe=Mt(n.touchedFields,V);xe||(Gn(n.touchedFields,V,oe),he.touchedFields=n.touchedFields,ge=ge||(f.touchedFields||m.touchedFields)&&xe!==oe)}ge&&be&&h.state.next(he)}return ge?he:{}},E=(V,J,oe,de)=>{const be=Mt(n.errors,V),ge=(f.isValid||m.isValid)&&ba(J)&&n.isValid!==J;if(t.delayError&&oe?(l=b(()=>w(V,oe)),l(t.delayError)):(clearTimeout(u),l=null,oe?Gn(n.errors,V,oe):Yr(n.errors,V)),(oe?!Os(be,oe):be)||!di(de)||ge){const ie={...de,...ge&&ba(J)?{isValid:J}:{},errors:n.errors,name:V};n={...n,...ie},h.state.next(ie)}},O=async V=>(y(V,!0),await t.resolver(i,t.context,Nue(V||s.mount,r,t.criteriaMode,t.shouldUseNativeValidation))),P=async V=>{const{errors:J}=await O(V);if(y(V),V)for(const oe of V){const de=Mt(J,oe);de?Gn(n.errors,oe,de):Yr(n.errors,oe)}else n.errors=J;return J},j=async(V,J,oe={valid:!0})=>{for(const de in V){const be=V[de];if(be){const{_f:ge,...ie}=be;if(ge){const he=s.array.has(ge.name),xe=be._f&&Rue(be._f);xe&&f.validatingFields&&y([ge.name],!0);const Re=await yO(be,s.disabled,i,p,t.shouldUseNativeValidation&&!J,he);if(xe&&f.validatingFields&&y([ge.name]),Re[ge.name]&&(oe.valid=!1,J))break;!J&&(Mt(Re,ge.name)?he?eW(n.errors,Re,ge.name):Gn(n.errors,ge.name,Re[ge.name]):Yr(n.errors,ge.name))}!di(ie)&&await j(ie,J,oe)}}return oe.valid},I=()=>{for(const V of s.unMount){const J=Mt(r,V);J&&(J._f.refs?J._f.refs.every(oe=>!s$(oe)):!s$(J._f.ref))&&ee(V)}s.unMount=new Set},_=(V,J)=>!t.disabled&&(V&&J&&Gn(i,V,J),!Os(B(),o)),R=(V,J,oe)=>hO(V,s,{...a.mount?i:dr(J)?o:wa(V)?{[V]:J}:J},oe,J),N=V=>q1(Mt(a.mount?i:o,V,t.shouldUnregister?Mt(o,V,[]):[])),A=(V,J,oe={})=>{const de=Mt(r,V);let be=J;if(de){const ge=de._f;ge&&(!ge.disabled&&Gn(i,V,JV(J,ge)),be=Yb(ge.ref)&&Ki(J)?"":J,XV(ge.ref)?[...ge.ref.options].forEach(ie=>ie.selected=be.includes(ie.value)):ge.refs?yv(ge.ref)?ge.refs.forEach(ie=>{(!ie.defaultChecked||!ie.disabled)&&(Array.isArray(be)?ie.checked=!!be.find(he=>he===ie.value):ie.checked=be===ie.value||!!be)}):ge.refs.forEach(ie=>ie.checked=ie.value===be):RN(ge.ref)?ge.ref.value="":(ge.ref.value=be,ge.ref.type||h.state.next({name:V,values:yr(i)})))}(oe.shouldDirty||oe.shouldTouch)&&$(V,be,oe.shouldTouch,oe.shouldDirty,!0),oe.shouldValidate&&L(V)},M=(V,J,oe)=>{for(const de in J){if(!J.hasOwnProperty(de))return;const be=J[de],ge=V+"."+de,ie=Mt(r,ge);(s.array.has(V)||fo(be)||ie&&!ie._f)&&!Bu(be)?M(ge,be,oe):A(ge,be,oe)}},T=(V,J,oe={})=>{const de=Mt(r,V),be=s.array.has(V),ge=yr(J);Gn(i,V,ge),be?(h.array.next({name:V,values:yr(i)}),(f.isDirty||f.dirtyFields||m.isDirty||m.dirtyFields)&&oe.shouldDirty&&h.state.next({name:V,dirtyFields:Cf(o,i),isDirty:_(V,ge)})):de&&!de._f&&!Ki(ge)?M(V,ge,oe):A(V,ge,oe),vO(V,s)&&h.state.next({...n,name:V}),h.state.next({name:a.mount?V:void 0,values:yr(i)})},k=async V=>{a.mount=!0;const J=V.target;let oe=J.name,de=!0;const be=Mt(r,oe),ge=xe=>{de=Number.isNaN(xe)||Bu(xe)&&isNaN(xe.getTime())||Os(xe,Mt(i,oe,xe))},ie=Df(t.mode),he=Df(t.reValidateMode);if(be){let xe,Re;const Ce=J.type?Zk(be._f):VV(V),pe=V.type===Xb.BLUR||V.type===Xb.FOCUS_OUT,_e=!Tue(be._f)&&!t.resolver&&!Mt(n.errors,oe)&&!be._f.deps||Aue(pe,Mt(n.touchedFields,oe),n.isSubmitted,he,ie),we=vO(oe,s,pe);Gn(i,oe,Ce),pe?(!J||!J.readOnly)&&(be._f.onBlur&&be._f.onBlur(V),l&&l(0)):be._f.onChange&&be._f.onChange(V);const $e=$(oe,Ce,pe),ve=!di($e)||we;if(!pe&&h.state.next({name:oe,type:V.type,values:yr(i)}),_e)return(f.isValid||m.isValid)&&(t.mode==="onBlur"?pe&&v():pe||v()),ve&&h.state.next({name:oe,...we?{}:$e});if(!pe&&we&&h.state.next({...n}),t.resolver){const{errors:me}=await O([oe]);if(y([oe]),ge(Ce),de){const Se=Qk(n.errors,r,oe),De=Qk(me,r,Se.name||oe);xe=De.error,oe=De.name,Re=di(me)}}else y([oe],!0),xe=(await yO(be,s.disabled,i,p,t.shouldUseNativeValidation))[oe],y([oe]),ge(Ce),de&&(xe?Re=!1:(f.isValid||m.isValid)&&(Re=await j(r,!0)));de&&(be._f.deps&&(!Array.isArray(be._f.deps)||be._f.deps.length>0)&&L(be._f.deps),E(oe,Re,xe,$e))}},D=(V,J)=>{if(Mt(n.errors,J)&&V.focus)return V.focus(),1},L=async(V,J={})=>{let oe,de;const be=Yi(V);if(t.resolver){const ge=await P(dr(V)?V:be);oe=di(ge),de=V?!be.some(ie=>Mt(ge,ie)):oe}else V?(de=(await Promise.all(be.map(async ge=>{const ie=Mt(r,ge);return await j(ie&&ie._f?{[ge]:ie}:ie)}))).every(Boolean),!(!de&&!n.isValid)&&v()):de=oe=await j(r);return h.state.next({...!wa(V)||(f.isValid||m.isValid)&&oe!==n.isValid?{}:{name:V},...t.resolver||!V?{isValid:oe}:{},errors:n.errors}),J.shouldFocus&&!de&&rm(r,D,V?be:s.mount),de},B=(V,J)=>{let oe={...a.mount?i:o};return J&&(oe=GV(J.dirtyFields?n.dirtyFields:n.touchedFields,oe)),dr(V)?oe:wa(V)?Mt(oe,V):V.map(de=>Mt(oe,de))},H=(V,J)=>({invalid:!!Mt((J||n).errors,V),isDirty:!!Mt((J||n).dirtyFields,V),error:Mt((J||n).errors,V),isValidating:!!Mt(n.validatingFields,V),isTouched:!!Mt((J||n).touchedFields,V)}),F=V=>{V&&Yi(V).forEach(J=>Yr(n.errors,J)),h.state.next({errors:V?n.errors:{}})},W=(V,J,oe)=>{const de=(Mt(r,V,{_f:{}})._f||{}).ref,be=Mt(n.errors,V)||{},{ref:ge,message:ie,type:he,...xe}=be;Gn(n.errors,V,{...xe,...J,ref:de}),h.state.next({name:V,errors:n.errors,isValid:!1}),oe&&oe.shouldFocus&&de&&de.focus&&de.focus()},q=(V,J)=>Ti(V)?h.state.subscribe({next:oe=>"values"in oe&&V(R(void 0,J),oe)}):R(V,J,!0),G=V=>h.state.subscribe({next:J=>{kue(V.name,J.name,V.exact)&&Mue(J,V.formState||f,ye,V.reRenderRoot)&&V.callback({values:{...i},...n,...J,defaultValues:o})}}).unsubscribe,te=V=>(a.mount=!0,m={...m,...V.formState},G({...V,formState:{...d,...V.formState}})),ee=(V,J={})=>{for(const oe of V?Yi(V):s.mount)s.mount.delete(oe),s.array.delete(oe),J.keepValue||(Yr(r,oe),Yr(i,oe)),!J.keepError&&Yr(n.errors,oe),!J.keepDirty&&Yr(n.dirtyFields,oe),!J.keepTouched&&Yr(n.touchedFields,oe),!J.keepIsValidating&&Yr(n.validatingFields,oe),!t.shouldUnregister&&!J.keepDefaultValue&&Yr(o,oe);h.state.next({values:yr(i)}),h.state.next({...n,...J.keepDirty?{isDirty:_()}:{}}),!J.keepIsValid&&v()},z=({disabled:V,name:J})=>{(ba(V)&&a.mount||V||s.disabled.has(J))&&(V?s.disabled.add(J):s.disabled.delete(J))},ne=(V,J={})=>{let oe=Mt(r,V);const de=ba(J.disabled)||ba(t.disabled);return Gn(r,V,{...oe||{},_f:{...oe&&oe._f?oe._f:{ref:{name:V}},name:V,mount:!0,...J}}),s.mount.add(V),oe?z({disabled:ba(J.disabled)?J.disabled:t.disabled,name:V}):S(V,!0,J.value),{...de?{disabled:J.disabled||t.disabled}:{},...t.progressive?{required:!!J.required,min:Gh(J.min),max:Gh(J.max),minLength:Gh(J.minLength),maxLength:Gh(J.maxLength),pattern:Gh(J.pattern)}:{},name:V,onChange:k,onBlur:k,ref:be=>{if(be){ne(V,J),oe=Mt(r,V);const ge=dr(be.value)&&be.querySelectorAll&&be.querySelectorAll("input,select,textarea")[0]||be,ie=Pue(ge),he=oe._f.refs||[];if(ie?he.find(xe=>xe===ge):ge===oe._f.ref)return;Gn(r,V,{_f:{...oe._f,...ie?{refs:[...he.filter(s$),ge,...Array.isArray(Mt(o,V))?[{}]:[]],ref:{type:ge.type,name:V}}:{ref:ge}}}),S(V,!1,void 0,ge)}else oe=Mt(r,V,{}),oe._f&&(oe._f.mount=!1),(t.shouldUnregister||J.shouldUnregister)&&!(WV(s.array,V)&&a.action)&&s.unMount.add(V)}}},X=()=>t.shouldFocusError&&rm(r,D,s.mount),U=V=>{ba(V)&&(h.state.next({disabled:V}),rm(r,(J,oe)=>{const de=Mt(r,oe);de&&(J.disabled=de._f.disabled||V,Array.isArray(de._f.refs)&&de._f.refs.forEach(be=>{be.disabled=de._f.disabled||V}))},0,!1))},le=(V,J)=>async oe=>{let de;oe&&(oe.preventDefault&&oe.preventDefault(),oe.persist&&oe.persist());let be=yr(i);if(h.state.next({isSubmitting:!0}),t.resolver){const{errors:ge,values:ie}=await O();y(),n.errors=ge,be=yr(ie)}else await j(r);if(s.disabled.size)for(const ge of s.disabled)Yr(be,ge);if(Yr(n.errors,"root"),di(n.errors)){h.state.next({errors:{}});try{await V(be,oe)}catch(ge){de=ge}}else J&&await J({...n.errors},oe),X(),setTimeout(X);if(h.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:di(n.errors)&&!de,submitCount:n.submitCount+1,errors:n.errors}),de)throw de},se=(V,J={})=>{Mt(r,V)&&(dr(J.defaultValue)?T(V,yr(Mt(o,V))):(T(V,J.defaultValue),Gn(o,V,yr(J.defaultValue))),J.keepTouched||Yr(n.touchedFields,V),J.keepDirty||(Yr(n.dirtyFields,V),n.isDirty=J.defaultValue?_(V,yr(Mt(o,V))):_()),J.keepError||(Yr(n.errors,V),f.isValid&&v()),h.state.next({...n}))},ae=(V,J={})=>{const oe=V?yr(V):o,de=yr(oe),be=di(V),ge=be?o:de;if(J.keepDefaultValues||(o=oe),!J.keepValues){if(J.keepDirtyValues){const ie=new Set([...s.mount,...Object.keys(Cf(o,i))]);for(const he of Array.from(ie))Mt(n.dirtyFields,he)?Gn(ge,he,Mt(i,he)):T(he,Mt(ge,he))}else{if(IN&&dr(V))for(const ie of s.mount){const he=Mt(r,ie);if(he&&he._f){const xe=Array.isArray(he._f.refs)?he._f.refs[0]:he._f.ref;if(Yb(xe)){const Re=xe.closest("form");if(Re){Re.reset();break}}}}if(J.keepFieldsRef)for(const ie of s.mount)T(ie,Mt(ge,ie));else r={}}i=t.shouldUnregister?J.keepDefaultValues?yr(o):{}:yr(ge),h.array.next({values:{...ge}}),h.state.next({values:{...ge}})}s={mount:J.keepDirtyValues?s.mount:new Set,unMount:new Set,array:new Set,disabled:new Set,watch:new Set,watchAll:!1,focus:""},a.mount=!f.isValid||!!J.keepIsValid||!!J.keepDirtyValues||!t.shouldUnregister&&!di(ge),a.watch=!!t.shouldUnregister,a.keepIsValid=!!J.keepIsValid,a.action=!1,J.keepErrors||(n.errors={}),h.state.next({submitCount:J.keepSubmitCount?n.submitCount:0,isDirty:be?!1:J.keepDirty?n.isDirty:!!(J.keepDefaultValues&&!Os(V,o)),isSubmitted:J.keepIsSubmitted?n.isSubmitted:!1,dirtyFields:be?{}:J.keepDirtyValues?J.keepDefaultValues&&i?Cf(o,i):n.dirtyFields:J.keepDefaultValues&&V?Cf(o,V):J.keepDirty?n.dirtyFields:{},touchedFields:J.keepTouched?n.touchedFields:{},errors:J.keepErrors?n.errors:{},isSubmitSuccessful:J.keepIsSubmitSuccessful?n.isSubmitSuccessful:!1,isSubmitting:!1,defaultValues:o})},re=(V,J)=>ae(Ti(V)?V(i):V,{...t.resetOptions,...J}),fe=(V,J={})=>{const oe=Mt(r,V),de=oe&&oe._f;if(de){const be=de.refs?de.refs[0]:de.ref;be.focus&&setTimeout(()=>{be.focus(),J.shouldSelect&&Ti(be.select)&&be.select()})}},ye=V=>{n={...n,...V}},Oe={control:{register:ne,unregister:ee,getFieldState:H,handleSubmit:le,setError:W,_subscribe:G,_runSchema:O,_updateIsValidating:y,_focusError:X,_getWatch:R,_getDirty:_,_setValid:v,_setFieldArray:x,_setDisabledField:z,_setErrors:C,_getFieldArray:N,_reset:ae,_resetDefaultValues:()=>Ti(t.defaultValues)&&t.defaultValues().then(V=>{re(V,t.resetOptions),h.state.next({isLoading:!1})}),_removeUnmounted:I,_disableForm:U,_subjects:h,_proxyFormState:f,get _fields(){return r},get _formValues(){return i},get _state(){return a},set _state(V){a=V},get _defaultValues(){return o},get _names(){return s},set _names(V){s=V},get _formState(){return n},get _options(){return t},set _options(V){t={...t,...V}}},subscribe:te,trigger:L,register:ne,handleSubmit:le,watch:q,setValue:T,getValues:B,reset:re,resetField:se,clearErrors:F,unregister:ee,setError:W,setFocus:fe,getFieldState:H};return{...Oe,formControl:Oe}}var mc=()=>{if(typeof crypto<"u"&&crypto.randomUUID)return crypto.randomUUID();const e=typeof performance>"u"?Date.now():performance.now()*1e3;return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,t=>{const n=(Math.random()*16+e)%16|0;return(t=="x"?n:n&3|8).toString(16)})},l$=(e,t,n={})=>n.shouldFocus||dr(n.shouldFocus)?n.focusName||`${e}.${dr(n.focusIndex)?t:n.focusIndex}.`:"",c$=(e,t)=>[...e,...Yi(t)],u$=e=>Array.isArray(e)?e.map(()=>{}):void 0;function d$(e,t,n){return[...e.slice(0,t),...Yi(n),...e.slice(t)]}var f$=(e,t,n)=>Array.isArray(e)?(dr(e[n])&&(e[n]=void 0),e.splice(n,0,e.splice(t,1)[0]),e):[],m$=(e,t)=>[...Yi(t),...Yi(e)];function Fue(e,t){let n=0;const r=[...e];for(const o of t)r.splice(o-n,1),n++;return q1(r).length?r:[]}var h$=(e,t)=>dr(t)?[]:Fue(e,Yi(t).sort((n,r)=>n-r)),p$=(e,t,n)=>{[e[t],e[n]]=[e[n],e[t]]},t6=(e,t,n)=>(e[t]=n,e);function Bue(e){const t=G1(),{control:n=t.control,name:r,keyName:o="id",shouldUnregister:i,rules:a}=e,[s,l]=ce.useState(n._getFieldArray(r)),u=ce.useRef(n._getFieldArray(r).map(mc)),d=ce.useRef(!1);n._names.array.add(r),ce.useMemo(()=>a&&s.length>=0&&n.register(r,a),[n,r,s.length,a]),X1(()=>n._subjects.array.subscribe({next:({values:C,name:S})=>{if(S===r||!S){const $=Mt(C,r);Array.isArray($)&&(l($),u.current=$.map(mc))}}}).unsubscribe,[n,r]);const f=ce.useCallback(C=>{d.current=!0,n._setFieldArray(r,C)},[n,r]),m=(C,S)=>{const $=Yi(yr(C)),E=c$(n._getFieldArray(r),$);n._names.focus=l$(r,E.length-1,S),u.current=c$(u.current,$.map(mc)),f(E),l(E),n._setFieldArray(r,E,c$,{argA:u$(C)})},h=(C,S)=>{const $=Yi(yr(C)),E=m$(n._getFieldArray(r),$);n._names.focus=l$(r,0,S),u.current=m$(u.current,$.map(mc)),f(E),l(E),n._setFieldArray(r,E,m$,{argA:u$(C)})},p=C=>{const S=h$(n._getFieldArray(r),C);u.current=h$(u.current,C),f(S),l(S),!Array.isArray(Mt(n._fields,r))&&Gn(n._fields,r,void 0),n._setFieldArray(r,S,h$,{argA:C})},b=(C,S,$)=>{const E=Yi(yr(S)),O=d$(n._getFieldArray(r),C,E);n._names.focus=l$(r,C,$),u.current=d$(u.current,C,E.map(mc)),f(O),l(O),n._setFieldArray(r,O,d$,{argA:C,argB:u$(S)})},v=(C,S)=>{const $=n._getFieldArray(r);p$($,C,S),p$(u.current,C,S),f($),l($),n._setFieldArray(r,$,p$,{argA:C,argB:S},!1)},y=(C,S)=>{const $=n._getFieldArray(r);f$($,C,S),f$(u.current,C,S),f($),l($),n._setFieldArray(r,$,f$,{argA:C,argB:S},!1)},x=(C,S)=>{const $=yr(S),E=t6(n._getFieldArray(r),C,$);u.current=[...E].map((O,P)=>!O||P===C?mc():u.current[P]),f(E),l([...E]),n._setFieldArray(r,E,t6,{argA:C,argB:$},!0,!1)},w=C=>{const S=Yi(yr(C));u.current=S.map(mc),f([...S]),l([...S]),n._setFieldArray(r,[...S],$=>$,{},!0,!1)};return ce.useEffect(()=>{if(n._state.action=!1,vO(r,n._names)&&n._subjects.state.next({...n._formState}),d.current&&(!Df(n._options.mode).isOnSubmit||n._formState.isSubmitted)&&!Df(n._options.reValidateMode).isOnSubmit)if(n._options.resolver)n._runSchema([r]).then(C=>{n._updateIsValidating([r]);const S=Mt(C.errors,r),$=Mt(n._formState.errors,r);($?!S&&$.type||S&&($.type!==S.type||$.message!==S.message):S&&S.type)&&(S?Gn(n._formState.errors,r,S):Yr(n._formState.errors,r),n._subjects.state.next({errors:n._formState.errors}))});else{const C=Mt(n._fields,r);C&&C._f&&!(Df(n._options.reValidateMode).isOnSubmit&&Df(n._options.mode).isOnSubmit)&&yO(C,n._names.disabled,n._formValues,n._options.criteriaMode===Xa.all,n._options.shouldUseNativeValidation,!0).then(S=>!di(S)&&n._subjects.state.next({errors:eW(n._formState.errors,S,r)}))}n._subjects.state.next({name:r,values:yr(n._formValues)}),n._names.focus&&rm(n._fields,(C,S)=>{if(n._names.focus&&S.startsWith(n._names.focus)&&C.focus)return C.focus(),1}),n._names.focus="",n._setValid(),d.current=!1},[s,r,n]),ce.useEffect(()=>(!Mt(n._formValues,r)&&n._setFieldArray(r),()=>{const C=(S,$)=>{const E=Mt(n._fields,S);E&&E._f&&(E._f.mount=$)};n._options.shouldUnregister||i?n.unregister(r):C(r,!1)}),[r,n,o,i]),{swap:ce.useCallback(v,[f,r,n]),move:ce.useCallback(y,[f,r,n]),prepend:ce.useCallback(h,[f,r,n]),append:ce.useCallback(m,[f,r,n]),remove:ce.useCallback(p,[f,r,n]),insert:ce.useCallback(b,[f,r,n]),update:ce.useCallback(x,[f,r,n]),replace:ce.useCallback(w,[f,r,n]),fields:ce.useMemo(()=>s.map((C,S)=>({...C,[o]:u.current[S]||mc()})),[s,o])}}function cu(e={}){const t=ce.useRef(void 0),n=ce.useRef(void 0),[r,o]=ce.useState({isDirty:!1,isValidating:!1,isLoading:Ti(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},validatingFields:{},errors:e.errors||{},disabled:e.disabled||!1,isReady:!1,defaultValues:Ti(e.defaultValues)?void 0:e.defaultValues});if(!t.current)if(e.formControl)t.current={...e.formControl,formState:r},e.defaultValues&&!Ti(e.defaultValues)&&e.formControl.reset(e.defaultValues,e.resetOptions);else{const{formControl:a,...s}=zue(e);t.current={...s,formState:r}}const i=t.current.control;return i._options=e,X1(()=>{const a=i._subscribe({formState:i._proxyFormState,callback:()=>o({...i._formState}),reRenderRoot:!0});return o(s=>({...s,isReady:!0})),i._formState.isReady=!0,a},[i]),ce.useEffect(()=>i._disableForm(e.disabled),[i,e.disabled]),ce.useEffect(()=>{e.mode&&(i._options.mode=e.mode),e.reValidateMode&&(i._options.reValidateMode=e.reValidateMode)},[i,e.mode,e.reValidateMode]),ce.useEffect(()=>{e.errors&&(i._setErrors(e.errors),i._focusError())},[i,e.errors]),ce.useEffect(()=>{e.shouldUnregister&&i._subjects.state.next({values:i._getWatch()})},[i,e.shouldUnregister]),ce.useEffect(()=>{if(i._proxyFormState.isDirty){const a=i._getDirty();a!==r.isDirty&&i._subjects.state.next({isDirty:a})}},[i,r.isDirty]),ce.useEffect(()=>{var a;e.values&&!Os(e.values,n.current)?(i._reset(e.values,{keepFieldsRef:!0,...i._options.resetOptions}),!((a=i._options.resetOptions)===null||a===void 0)&&a.keepIsValid||i._setValid(),n.current=e.values,o(s=>({...s}))):i._resetDefaultValues()},[i,e.values]),ce.useEffect(()=>{i._state.mount||(i._setValid(),i._state.mount=!0),i._state.watch&&(i._state.watch=!1,i._subjects.state.next({...i._formState})),i._removeUnmounted()}),t.current.formState=KV(r,i),t.current}const n6=(e,t,n)=>{if(e&&"reportValidity"in e){const r=Mt(n,t);e.setCustomValidity(r&&r.message||""),e.reportValidity()}},bO=(e,t)=>{for(const n in t.fields){const r=t.fields[n];r&&r.ref&&"reportValidity"in r.ref?n6(r.ref,n,e):r&&r.refs&&r.refs.forEach(o=>n6(o,n,e))}},r6=(e,t)=>{t.shouldUseNativeValidation&&bO(e,t);const n={};for(const r in e){const o=Mt(t.fields,r),i=Object.assign(e[r]||{},{ref:o&&o.ref});if(Hue(t.names||Object.keys(e),r)){const a=Object.assign({},Mt(n,r));Gn(a,"root",i),Gn(n,r,a)}else Gn(n,r,i)}return n},Hue=(e,t)=>{const n=o6(t);return e.some(r=>o6(r).match(`^${n}\\.\\d+`))};function o6(e){return e.replace(/\]|\[/g,"")}function ut(e,t,n){function r(s,l){if(s._zod||Object.defineProperty(s,"_zod",{value:{def:l,constr:a,traits:new Set},enumerable:!1}),s._zod.traits.has(e))return;s._zod.traits.add(e),t(s,l);const u=a.prototype,d=Object.keys(u);for(let f=0;f<d.length;f++){const m=d[f];m in s||(s[m]=u[m].bind(s))}}const o=(n==null?void 0:n.Parent)??Object;class i extends o{}Object.defineProperty(i,"name",{value:e});function a(s){var l;const u=n!=null&&n.Parent?new i:this;r(u,s),(l=u._zod).deferred??(l.deferred=[]);for(const d of u._zod.deferred)d();return u}return Object.defineProperty(a,"init",{value:r}),Object.defineProperty(a,Symbol.hasInstance,{value:s=>{var l,u;return n!=null&&n.Parent&&s instanceof n.Parent?!0:(u=(l=s==null?void 0:s._zod)==null?void 0:l.traits)==null?void 0:u.has(e)}}),Object.defineProperty(a,"name",{value:e}),a}class om extends Error{constructor(){super("Encountered Promise during synchronous parse. Use .parseAsync() instead.")}}class tW extends Error{constructor(t){super(`Encountered unidirectional transform during encode: ${t}`),this.name="ZodEncodeError"}}const nW={};function pd(e){return nW}function rW(e){const t=Object.values(e).filter(r=>typeof r=="number");return Object.entries(e).filter(([r,o])=>t.indexOf(+r)===-1).map(([r,o])=>o)}function xO(e,t){return typeof t=="bigint"?t.toString():t}function MN(e){return{get value(){{const t=e();return Object.defineProperty(this,"value",{value:t}),t}}}}function kN(e){return e==null}function AN(e){const t=e.startsWith("^")?1:0,n=e.endsWith("$")?e.length-1:e.length;return e.slice(t,n)}function Vue(e,t){const n=(e.toString().split(".")[1]||"").length,r=t.toString();let o=(r.split(".")[1]||"").length;if(o===0&&/\d?e-\d?/.test(r)){const l=r.match(/\d?e-(\d?)/);l!=null&&l[1]&&(o=Number.parseInt(l[1]))}const i=n>o?n:o,a=Number.parseInt(e.toFixed(i).replace(".","")),s=Number.parseInt(t.toFixed(i).replace(".",""));return a%s/10**i}const i6=Symbol("evaluating");function mr(e,t,n){let r;Object.defineProperty(e,t,{get(){if(r!==i6)return r===void 0&&(r=i6,r=n()),r},set(o){Object.defineProperty(e,t,{value:o})},configurable:!0})}function zd(e,t,n){Object.defineProperty(e,t,{value:n,writable:!0,enumerable:!0,configurable:!0})}function Fd(...e){const t={};for(const n of e){const r=Object.getOwnPropertyDescriptors(n);Object.assign(t,r)}return Object.defineProperties({},t)}function a6(e){return JSON.stringify(e)}function Wue(e){return e.toLowerCase().trim().replace(/[^\w\s-]/g,"").replace(/[\s_-]+/g,"-").replace(/^-+|-+$/g,"")}const oW="captureStackTrace"in Error?Error.captureStackTrace:(...e)=>{};function Jb(e){return typeof e=="object"&&e!==null&&!Array.isArray(e)}const Uue=MN(()=>{var e;if(typeof navigator<"u"&&((e=navigator==null?void 0:navigator.userAgent)!=null&&e.includes("Cloudflare")))return!1;try{const t=Function;return new t(""),!0}catch{return!1}});function yg(e){if(Jb(e)===!1)return!1;const t=e.constructor;if(t===void 0||typeof t!="function")return!0;const n=t.prototype;return!(Jb(n)===!1||Object.prototype.hasOwnProperty.call(n,"isPrototypeOf")===!1)}function iW(e){return yg(e)?{...e}:Array.isArray(e)?[...e]:e}const Kue=new Set(["string","number","symbol"]);function $m(e){return e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&")}function uu(e,t,n){const r=new e._zod.constr(t??e._zod.def);return(!t||n!=null&&n.parent)&&(r._zod.parent=e),r}function on(e){const t=e;if(!t)return{};if(typeof t=="string")return{error:()=>t};if((t==null?void 0:t.message)!==void 0){if((t==null?void 0:t.error)!==void 0)throw new Error("Cannot specify both `message` and `error` params");t.error=t.message}return delete t.message,typeof t.error=="string"?{...t,error:()=>t.error}:t}function que(e){return Object.keys(e).filter(t=>e[t]._zod.optin==="optional"&&e[t]._zod.optout==="optional")}const Gue={safeint:[Number.MIN_SAFE_INTEGER,Number.MAX_SAFE_INTEGER],int32:[-2147483648,2147483647],uint32:[0,4294967295],float32:[-34028234663852886e22,34028234663852886e22],float64:[-Number.MAX_VALUE,Number.MAX_VALUE]};function Xue(e,t){const n=e._zod.def,r=Fd(e._zod.def,{get shape(){const o={};for(const i in t){if(!(i in n.shape))throw new Error(`Unrecognized key: "${i}"`);t[i]&&(o[i]=n.shape[i])}return zd(this,"shape",o),o},checks:[]});return uu(e,r)}function Yue(e,t){const n=e._zod.def,r=Fd(e._zod.def,{get shape(){const o={...e._zod.def.shape};for(const i in t){if(!(i in n.shape))throw new Error(`Unrecognized key: "${i}"`);t[i]&&delete o[i]}return zd(this,"shape",o),o},checks:[]});return uu(e,r)}function Zue(e,t){if(!yg(t))throw new Error("Invalid input to extend: expected a plain object");const n=e._zod.def.checks;if(n&&n.length>0)throw new Error("Object schemas containing refinements cannot be extended. Use `.safeExtend()` instead.");const o=Fd(e._zod.def,{get shape(){const i={...e._zod.def.shape,...t};return zd(this,"shape",i),i},checks:[]});return uu(e,o)}function Jue(e,t){if(!yg(t))throw new Error("Invalid input to safeExtend: expected a plain object");const n={...e._zod.def,get shape(){const r={...e._zod.def.shape,...t};return zd(this,"shape",r),r},checks:e._zod.def.checks};return uu(e,n)}function Que(e,t){const n=Fd(e._zod.def,{get shape(){const r={...e._zod.def.shape,...t._zod.def.shape};return zd(this,"shape",r),r},get catchall(){return t._zod.def.catchall},checks:[]});return uu(e,n)}function ede(e,t,n){const r=Fd(t._zod.def,{get shape(){const o=t._zod.def.shape,i={...o};if(n)for(const a in n){if(!(a in o))throw new Error(`Unrecognized key: "${a}"`);n[a]&&(i[a]=e?new e({type:"optional",innerType:o[a]}):o[a])}else for(const a in o)i[a]=e?new e({type:"optional",innerType:o[a]}):o[a];return zd(this,"shape",i),i},checks:[]});return uu(t,r)}function tde(e,t,n){const r=Fd(t._zod.def,{get shape(){const o=t._zod.def.shape,i={...o};if(n)for(const a in n){if(!(a in i))throw new Error(`Unrecognized key: "${a}"`);n[a]&&(i[a]=new e({type:"nonoptional",innerType:o[a]}))}else for(const a in o)i[a]=new e({type:"nonoptional",innerType:o[a]});return zd(this,"shape",i),i},checks:[]});return uu(t,r)}function Lf(e,t=0){var n;if(e.aborted===!0)return!0;for(let r=t;r<e.issues.length;r++)if(((n=e.issues[r])==null?void 0:n.continue)!==!0)return!0;return!1}function aW(e,t){return t.map(n=>{var r;return(r=n).path??(r.path=[]),n.path.unshift(e),n})}function D0(e){return typeof e=="string"?e:e==null?void 0:e.message}function gd(e,t,n){var o,i,a,s,l,u;const r={...e,path:e.path??[]};if(!e.message){const d=D0((a=(i=(o=e.inst)==null?void 0:o._zod.def)==null?void 0:i.error)==null?void 0:a.call(i,e))??D0((s=t==null?void 0:t.error)==null?void 0:s.call(t,e))??D0((l=n.customError)==null?void 0:l.call(n,e))??D0((u=n.localeError)==null?void 0:u.call(n,e))??"Invalid input";r.message=d}return delete r.inst,delete r.continue,t!=null&&t.reportInput||delete r.input,r}function DN(e){return Array.isArray(e)?"array":typeof e=="string"?"string":"unknown"}function bg(...e){const[t,n,r]=e;return typeof t=="string"?{message:t,code:"custom",input:n,inst:r}:{...t}}const sW=(e,t)=>{e.name="$ZodError",Object.defineProperty(e,"_zod",{value:e._zod,enumerable:!1}),Object.defineProperty(e,"issues",{value:t,enumerable:!1}),e.message=JSON.stringify(t,xO,2),Object.defineProperty(e,"toString",{value:()=>e.message,enumerable:!1})},LN=ut("$ZodError",sW),Y1=ut("$ZodError",sW,{Parent:Error});function nde(e,t=n=>n.message){const n={},r=[];for(const o of e.issues)o.path.length>0?(n[o.path[0]]=n[o.path[0]]||[],n[o.path[0]].push(t(o))):r.push(t(o));return{formErrors:r,fieldErrors:n}}function rde(e,t=n=>n.message){const n={_errors:[]},r=o=>{for(const i of o.issues)if(i.code==="invalid_union"&&i.errors.length)i.errors.map(a=>r({issues:a}));else if(i.code==="invalid_key")r({issues:i.issues});else if(i.code==="invalid_element")r({issues:i.issues});else if(i.path.length===0)n._errors.push(t(i));else{let a=n,s=0;for(;s<i.path.length;){const l=i.path[s];s===i.path.length-1?(a[l]=a[l]||{_errors:[]},a[l]._errors.push(t(i))):a[l]=a[l]||{_errors:[]},a=a[l],s++}}};return r(e),n}const Z1=e=>(t,n,r,o)=>{const i=r?Object.assign(r,{async:!1}):{async:!1},a=t._zod.run({value:n,issues:[]},i);if(a instanceof Promise)throw new om;if(a.issues.length){const s=new((o==null?void 0:o.Err)??e)(a.issues.map(l=>gd(l,i,pd())));throw oW(s,o==null?void 0:o.callee),s}return a.value},ode=Z1(Y1),J1=e=>async(t,n,r,o)=>{const i=r?Object.assign(r,{async:!0}):{async:!0};let a=t._zod.run({value:n,issues:[]},i);if(a instanceof Promise&&(a=await a),a.issues.length){const s=new((o==null?void 0:o.Err)??e)(a.issues.map(l=>gd(l,i,pd())));throw oW(s,o==null?void 0:o.callee),s}return a.value},ide=J1(Y1),Q1=e=>(t,n,r)=>{const o=r?{...r,async:!1}:{async:!1},i=t._zod.run({value:n,issues:[]},o);if(i instanceof Promise)throw new om;return i.issues.length?{success:!1,error:new(e??LN)(i.issues.map(a=>gd(a,o,pd())))}:{success:!0,data:i.value}},ade=Q1(Y1),ew=e=>async(t,n,r)=>{const o=r?Object.assign(r,{async:!0}):{async:!0};let i=t._zod.run({value:n,issues:[]},o);return i instanceof Promise&&(i=await i),i.issues.length?{success:!1,error:new e(i.issues.map(a=>gd(a,o,pd())))}:{success:!0,data:i.value}},sde=ew(Y1),lde=e=>(t,n,r)=>{const o=r?Object.assign(r,{direction:"backward"}):{direction:"backward"};return Z1(e)(t,n,o)},cde=e=>(t,n,r)=>Z1(e)(t,n,r),ude=e=>async(t,n,r)=>{const o=r?Object.assign(r,{direction:"backward"}):{direction:"backward"};return J1(e)(t,n,o)},dde=e=>async(t,n,r)=>J1(e)(t,n,r),fde=e=>(t,n,r)=>{const o=r?Object.assign(r,{direction:"backward"}):{direction:"backward"};return Q1(e)(t,n,o)},mde=e=>(t,n,r)=>Q1(e)(t,n,r),hde=e=>async(t,n,r)=>{const o=r?Object.assign(r,{direction:"backward"}):{direction:"backward"};return ew(e)(t,n,o)},pde=e=>async(t,n,r)=>ew(e)(t,n,r),gde=/^[cC][^\s-]{8,}$/,vde=/^[0-9a-z]+$/,yde=/^[0-9A-HJKMNP-TV-Za-hjkmnp-tv-z]{26}$/,bde=/^[0-9a-vA-V]{20}$/,xde=/^[A-Za-z0-9]{27}$/,wde=/^[a-zA-Z0-9_-]{21}$/,Sde=/^P(?:(\d+W)|(?!.*W)(?=\d|T\d)(\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+([.,]\d+)?S)?)?)$/,Cde=/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12})$/,s6=e=>e?new RegExp(`^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-${e}[0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12})$`):/^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$/,$de=/^(?!\.)(?!.*\.\.)([A-Za-z0-9_'+\-\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\-]*\.)+[A-Za-z]{2,}$/,Ede="^(\\p{Extended_Pictographic}|\\p{Emoji_Component})+$";function Ode(){return new RegExp(Ede,"u")}const Pde=/^(?:(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(?:25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])$/,jde=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:))$/,Ide=/^((25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\.){3}(25[0-5]|2[0-4][0-9]|1[0-9][0-9]|[1-9][0-9]|[0-9])\/([0-9]|[1-2][0-9]|3[0-2])$/,_de=/^(([0-9a-fA-F]{1,4}:){7}[0-9a-fA-F]{1,4}|::|([0-9a-fA-F]{1,4})?::([0-9a-fA-F]{1,4}:?){0,6})\/(12[0-8]|1[01][0-9]|[1-9]?[0-9])$/,Nde=/^$|^(?:[0-9a-zA-Z+/]{4})*(?:(?:[0-9a-zA-Z+/]{2}==)|(?:[0-9a-zA-Z+/]{3}=))?$/,lW=/^[A-Za-z0-9_-]*$/,Rde=/^\+(?:[0-9]){6,14}[0-9]$/,cW="(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))",Tde=new RegExp(`^${cW}$`);function uW(e){const t="(?:[01]\\d|2[0-3]):[0-5]\\d";return typeof e.precision=="number"?e.precision===-1?`${t}`:e.precision===0?`${t}:[0-5]\\d`:`${t}:[0-5]\\d\\.\\d{${e.precision}}`:`${t}(?::[0-5]\\d(?:\\.\\d+)?)?`}function Mde(e){return new RegExp(`^${uW(e)}$`)}function kde(e){const t=uW({precision:e.precision}),n=["Z"];e.local&&n.push(""),e.offset&&n.push("([+-](?:[01]\\d|2[0-3]):[0-5]\\d)");const r=`${t}(?:${n.join("|")})`;return new RegExp(`^${cW}T(?:${r})$`)}const Ade=e=>{const t=e?`[\\s\\S]{${(e==null?void 0:e.minimum)??0},${(e==null?void 0:e.maximum)??""}}`:"[\\s\\S]*";return new RegExp(`^${t}$`)},Dde=/^-?\d+$/,Lde=/^-?\d+(?:\.\d+)?/,zde=/^(?:true|false)$/i,Fde=/^[^A-Z]*$/,Bde=/^[^a-z]*$/,aa=ut("$ZodCheck",(e,t)=>{var n;e._zod??(e._zod={}),e._zod.def=t,(n=e._zod).onattach??(n.onattach=[])}),dW={number:"number",bigint:"bigint",object:"date"},fW=ut("$ZodCheckLessThan",(e,t)=>{aa.init(e,t);const n=dW[typeof t.value];e._zod.onattach.push(r=>{const o=r._zod.bag,i=(t.inclusive?o.maximum:o.exclusiveMaximum)??Number.POSITIVE_INFINITY;t.value<i&&(t.inclusive?o.maximum=t.value:o.exclusiveMaximum=t.value)}),e._zod.check=r=>{(t.inclusive?r.value<=t.value:r.value<t.value)||r.issues.push({origin:n,code:"too_big",maximum:t.value,input:r.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),mW=ut("$ZodCheckGreaterThan",(e,t)=>{aa.init(e,t);const n=dW[typeof t.value];e._zod.onattach.push(r=>{const o=r._zod.bag,i=(t.inclusive?o.minimum:o.exclusiveMinimum)??Number.NEGATIVE_INFINITY;t.value>i&&(t.inclusive?o.minimum=t.value:o.exclusiveMinimum=t.value)}),e._zod.check=r=>{(t.inclusive?r.value>=t.value:r.value>t.value)||r.issues.push({origin:n,code:"too_small",minimum:t.value,input:r.value,inclusive:t.inclusive,inst:e,continue:!t.abort})}}),Hde=ut("$ZodCheckMultipleOf",(e,t)=>{aa.init(e,t),e._zod.onattach.push(n=>{var r;(r=n._zod.bag).multipleOf??(r.multipleOf=t.value)}),e._zod.check=n=>{if(typeof n.value!=typeof t.value)throw new Error("Cannot mix number and bigint in multiple_of check.");(typeof n.value=="bigint"?n.value%t.value===BigInt(0):Vue(n.value,t.value)===0)||n.issues.push({origin:typeof n.value,code:"not_multiple_of",divisor:t.value,input:n.value,inst:e,continue:!t.abort})}}),Vde=ut("$ZodCheckNumberFormat",(e,t)=>{var a;aa.init(e,t),t.format=t.format||"float64";const n=(a=t.format)==null?void 0:a.includes("int"),r=n?"int":"number",[o,i]=Gue[t.format];e._zod.onattach.push(s=>{const l=s._zod.bag;l.format=t.format,l.minimum=o,l.maximum=i,n&&(l.pattern=Dde)}),e._zod.check=s=>{const l=s.value;if(n){if(!Number.isInteger(l)){s.issues.push({expected:r,format:t.format,code:"invalid_type",continue:!1,input:l,inst:e});return}if(!Number.isSafeInteger(l)){l>0?s.issues.push({input:l,code:"too_big",maximum:Number.MAX_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:r,continue:!t.abort}):s.issues.push({input:l,code:"too_small",minimum:Number.MIN_SAFE_INTEGER,note:"Integers must be within the safe integer range.",inst:e,origin:r,continue:!t.abort});return}}l<o&&s.issues.push({origin:"number",input:l,code:"too_small",minimum:o,inclusive:!0,inst:e,continue:!t.abort}),l>i&&s.issues.push({origin:"number",input:l,code:"too_big",maximum:i,inst:e})}}),Wde=ut("$ZodCheckMaxLength",(e,t)=>{var n;aa.init(e,t),(n=e._zod.def).when??(n.when=r=>{const o=r.value;return!kN(o)&&o.length!==void 0}),e._zod.onattach.push(r=>{const o=r._zod.bag.maximum??Number.POSITIVE_INFINITY;t.maximum<o&&(r._zod.bag.maximum=t.maximum)}),e._zod.check=r=>{const o=r.value;if(o.length<=t.maximum)return;const a=DN(o);r.issues.push({origin:a,code:"too_big",maximum:t.maximum,inclusive:!0,input:o,inst:e,continue:!t.abort})}}),Ude=ut("$ZodCheckMinLength",(e,t)=>{var n;aa.init(e,t),(n=e._zod.def).when??(n.when=r=>{const o=r.value;return!kN(o)&&o.length!==void 0}),e._zod.onattach.push(r=>{const o=r._zod.bag.minimum??Number.NEGATIVE_INFINITY;t.minimum>o&&(r._zod.bag.minimum=t.minimum)}),e._zod.check=r=>{const o=r.value;if(o.length>=t.minimum)return;const a=DN(o);r.issues.push({origin:a,code:"too_small",minimum:t.minimum,inclusive:!0,input:o,inst:e,continue:!t.abort})}}),Kde=ut("$ZodCheckLengthEquals",(e,t)=>{var n;aa.init(e,t),(n=e._zod.def).when??(n.when=r=>{const o=r.value;return!kN(o)&&o.length!==void 0}),e._zod.onattach.push(r=>{const o=r._zod.bag;o.minimum=t.length,o.maximum=t.length,o.length=t.length}),e._zod.check=r=>{const o=r.value,i=o.length;if(i===t.length)return;const a=DN(o),s=i>t.length;r.issues.push({origin:a,...s?{code:"too_big",maximum:t.length}:{code:"too_small",minimum:t.length},inclusive:!0,exact:!0,input:r.value,inst:e,continue:!t.abort})}}),tw=ut("$ZodCheckStringFormat",(e,t)=>{var n,r;aa.init(e,t),e._zod.onattach.push(o=>{const i=o._zod.bag;i.format=t.format,t.pattern&&(i.patterns??(i.patterns=new Set),i.patterns.add(t.pattern))}),t.pattern?(n=e._zod).check??(n.check=o=>{t.pattern.lastIndex=0,!t.pattern.test(o.value)&&o.issues.push({origin:"string",code:"invalid_format",format:t.format,input:o.value,...t.pattern?{pattern:t.pattern.toString()}:{},inst:e,continue:!t.abort})}):(r=e._zod).check??(r.check=()=>{})}),qde=ut("$ZodCheckRegex",(e,t)=>{tw.init(e,t),e._zod.check=n=>{t.pattern.lastIndex=0,!t.pattern.test(n.value)&&n.issues.push({origin:"string",code:"invalid_format",format:"regex",input:n.value,pattern:t.pattern.toString(),inst:e,continue:!t.abort})}}),Gde=ut("$ZodCheckLowerCase",(e,t)=>{t.pattern??(t.pattern=Fde),tw.init(e,t)}),Xde=ut("$ZodCheckUpperCase",(e,t)=>{t.pattern??(t.pattern=Bde),tw.init(e,t)}),Yde=ut("$ZodCheckIncludes",(e,t)=>{aa.init(e,t);const n=$m(t.includes),r=new RegExp(typeof t.position=="number"?`^.{${t.position}}${n}`:n);t.pattern=r,e._zod.onattach.push(o=>{const i=o._zod.bag;i.patterns??(i.patterns=new Set),i.patterns.add(r)}),e._zod.check=o=>{o.value.includes(t.includes,t.position)||o.issues.push({origin:"string",code:"invalid_format",format:"includes",includes:t.includes,input:o.value,inst:e,continue:!t.abort})}}),Zde=ut("$ZodCheckStartsWith",(e,t)=>{aa.init(e,t);const n=new RegExp(`^${$m(t.prefix)}.*`);t.pattern??(t.pattern=n),e._zod.onattach.push(r=>{const o=r._zod.bag;o.patterns??(o.patterns=new Set),o.patterns.add(n)}),e._zod.check=r=>{r.value.startsWith(t.prefix)||r.issues.push({origin:"string",code:"invalid_format",format:"starts_with",prefix:t.prefix,input:r.value,inst:e,continue:!t.abort})}}),Jde=ut("$ZodCheckEndsWith",(e,t)=>{aa.init(e,t);const n=new RegExp(`.*${$m(t.suffix)}$`);t.pattern??(t.pattern=n),e._zod.onattach.push(r=>{const o=r._zod.bag;o.patterns??(o.patterns=new Set),o.patterns.add(n)}),e._zod.check=r=>{r.value.endsWith(t.suffix)||r.issues.push({origin:"string",code:"invalid_format",format:"ends_with",suffix:t.suffix,input:r.value,inst:e,continue:!t.abort})}}),Qde=ut("$ZodCheckOverwrite",(e,t)=>{aa.init(e,t),e._zod.check=n=>{n.value=t.tx(n.value)}});class efe{constructor(t=[]){this.content=[],this.indent=0,this&&(this.args=t)}indented(t){this.indent+=1,t(this),this.indent-=1}write(t){if(typeof t=="function"){t(this,{execution:"sync"}),t(this,{execution:"async"});return}const r=t.split(`
`).filter(a=>a),o=Math.min(...r.map(a=>a.length-a.trimStart().length)),i=r.map(a=>a.slice(o)).map(a=>" ".repeat(this.indent*2)+a);for(const a of i)this.content.push(a)}compile(){const t=Function,n=this==null?void 0:this.args,o=[...((this==null?void 0:this.content)??[""]).map(i=>`  ${i}`)];return new t(...n,o.join(`
`))}}const tfe={major:4,minor:2,patch:1},Gr=ut("$ZodType",(e,t)=>{var o;var n;e??(e={}),e._zod.def=t,e._zod.bag=e._zod.bag||{},e._zod.version=tfe;const r=[...e._zod.def.checks??[]];e._zod.traits.has("$ZodCheck")&&r.unshift(e);for(const i of r)for(const a of i._zod.onattach)a(e);if(r.length===0)(n=e._zod).deferred??(n.deferred=[]),(o=e._zod.deferred)==null||o.push(()=>{e._zod.run=e._zod.parse});else{const i=(s,l,u)=>{let d=Lf(s),f;for(const m of l){if(m._zod.def.when){if(!m._zod.def.when(s))continue}else if(d)continue;const h=s.issues.length,p=m._zod.check(s);if(p instanceof Promise&&(u==null?void 0:u.async)===!1)throw new om;if(f||p instanceof Promise)f=(f??Promise.resolve()).then(async()=>{await p,s.issues.length!==h&&(d||(d=Lf(s,h)))});else{if(s.issues.length===h)continue;d||(d=Lf(s,h))}}return f?f.then(()=>s):s},a=(s,l,u)=>{if(Lf(s))return s.aborted=!0,s;const d=i(l,r,u);if(d instanceof Promise){if(u.async===!1)throw new om;return d.then(f=>e._zod.parse(f,u))}return e._zod.parse(d,u)};e._zod.run=(s,l)=>{if(l.skipChecks)return e._zod.parse(s,l);if(l.direction==="backward"){const d=e._zod.parse({value:s.value,issues:[]},{...l,skipChecks:!0});return d instanceof Promise?d.then(f=>a(f,s,l)):a(d,s,l)}const u=e._zod.parse(s,l);if(u instanceof Promise){if(l.async===!1)throw new om;return u.then(d=>i(d,r,l))}return i(u,r,l)}}e["~standard"]={validate:i=>{var a;try{const s=ade(e,i);return s.success?{value:s.data}:{issues:(a=s.error)==null?void 0:a.issues}}catch{return sde(e,i).then(l=>{var u;return l.success?{value:l.data}:{issues:(u=l.error)==null?void 0:u.issues}})}},vendor:"zod",version:1}}),zN=ut("$ZodString",(e,t)=>{var n;Gr.init(e,t),e._zod.pattern=[...((n=e==null?void 0:e._zod.bag)==null?void 0:n.patterns)??[]].pop()??Ade(e._zod.bag),e._zod.parse=(r,o)=>{if(t.coerce)try{r.value=String(r.value)}catch{}return typeof r.value=="string"||r.issues.push({expected:"string",code:"invalid_type",input:r.value,inst:e}),r}}),jr=ut("$ZodStringFormat",(e,t)=>{tw.init(e,t),zN.init(e,t)}),nfe=ut("$ZodGUID",(e,t)=>{t.pattern??(t.pattern=Cde),jr.init(e,t)}),rfe=ut("$ZodUUID",(e,t)=>{if(t.version){const r={v1:1,v2:2,v3:3,v4:4,v5:5,v6:6,v7:7,v8:8}[t.version];if(r===void 0)throw new Error(`Invalid UUID version: "${t.version}"`);t.pattern??(t.pattern=s6(r))}else t.pattern??(t.pattern=s6());jr.init(e,t)}),ofe=ut("$ZodEmail",(e,t)=>{t.pattern??(t.pattern=$de),jr.init(e,t)}),ife=ut("$ZodURL",(e,t)=>{jr.init(e,t),e._zod.check=n=>{try{const r=n.value.trim(),o=new URL(r);t.hostname&&(t.hostname.lastIndex=0,t.hostname.test(o.hostname)||n.issues.push({code:"invalid_format",format:"url",note:"Invalid hostname",pattern:t.hostname.source,input:n.value,inst:e,continue:!t.abort})),t.protocol&&(t.protocol.lastIndex=0,t.protocol.test(o.protocol.endsWith(":")?o.protocol.slice(0,-1):o.protocol)||n.issues.push({code:"invalid_format",format:"url",note:"Invalid protocol",pattern:t.protocol.source,input:n.value,inst:e,continue:!t.abort})),t.normalize?n.value=o.href:n.value=r;return}catch{n.issues.push({code:"invalid_format",format:"url",input:n.value,inst:e,continue:!t.abort})}}}),afe=ut("$ZodEmoji",(e,t)=>{t.pattern??(t.pattern=Ode()),jr.init(e,t)}),sfe=ut("$ZodNanoID",(e,t)=>{t.pattern??(t.pattern=wde),jr.init(e,t)}),lfe=ut("$ZodCUID",(e,t)=>{t.pattern??(t.pattern=gde),jr.init(e,t)}),cfe=ut("$ZodCUID2",(e,t)=>{t.pattern??(t.pattern=vde),jr.init(e,t)}),ufe=ut("$ZodULID",(e,t)=>{t.pattern??(t.pattern=yde),jr.init(e,t)}),dfe=ut("$ZodXID",(e,t)=>{t.pattern??(t.pattern=bde),jr.init(e,t)}),ffe=ut("$ZodKSUID",(e,t)=>{t.pattern??(t.pattern=xde),jr.init(e,t)}),mfe=ut("$ZodISODateTime",(e,t)=>{t.pattern??(t.pattern=kde(t)),jr.init(e,t)}),hfe=ut("$ZodISODate",(e,t)=>{t.pattern??(t.pattern=Tde),jr.init(e,t)}),pfe=ut("$ZodISOTime",(e,t)=>{t.pattern??(t.pattern=Mde(t)),jr.init(e,t)}),gfe=ut("$ZodISODuration",(e,t)=>{t.pattern??(t.pattern=Sde),jr.init(e,t)}),vfe=ut("$ZodIPv4",(e,t)=>{t.pattern??(t.pattern=Pde),jr.init(e,t),e._zod.bag.format="ipv4"}),yfe=ut("$ZodIPv6",(e,t)=>{t.pattern??(t.pattern=jde),jr.init(e,t),e._zod.bag.format="ipv6",e._zod.check=n=>{try{new URL(`http://[${n.value}]`)}catch{n.issues.push({code:"invalid_format",format:"ipv6",input:n.value,inst:e,continue:!t.abort})}}}),bfe=ut("$ZodCIDRv4",(e,t)=>{t.pattern??(t.pattern=Ide),jr.init(e,t)}),xfe=ut("$ZodCIDRv6",(e,t)=>{t.pattern??(t.pattern=_de),jr.init(e,t),e._zod.check=n=>{const r=n.value.split("/");try{if(r.length!==2)throw new Error;const[o,i]=r;if(!i)throw new Error;const a=Number(i);if(`${a}`!==i)throw new Error;if(a<0||a>128)throw new Error;new URL(`http://[${o}]`)}catch{n.issues.push({code:"invalid_format",format:"cidrv6",input:n.value,inst:e,continue:!t.abort})}}});function hW(e){if(e==="")return!0;if(e.length%4!==0)return!1;try{return atob(e),!0}catch{return!1}}const wfe=ut("$ZodBase64",(e,t)=>{t.pattern??(t.pattern=Nde),jr.init(e,t),e._zod.bag.contentEncoding="base64",e._zod.check=n=>{hW(n.value)||n.issues.push({code:"invalid_format",format:"base64",input:n.value,inst:e,continue:!t.abort})}});function Sfe(e){if(!lW.test(e))return!1;const t=e.replace(/[-_]/g,r=>r==="-"?"+":"/"),n=t.padEnd(Math.ceil(t.length/4)*4,"=");return hW(n)}const Cfe=ut("$ZodBase64URL",(e,t)=>{t.pattern??(t.pattern=lW),jr.init(e,t),e._zod.bag.contentEncoding="base64url",e._zod.check=n=>{Sfe(n.value)||n.issues.push({code:"invalid_format",format:"base64url",input:n.value,inst:e,continue:!t.abort})}}),$fe=ut("$ZodE164",(e,t)=>{t.pattern??(t.pattern=Rde),jr.init(e,t)});function Efe(e,t=null){try{const n=e.split(".");if(n.length!==3)return!1;const[r]=n;if(!r)return!1;const o=JSON.parse(atob(r));return!("typ"in o&&(o==null?void 0:o.typ)!=="JWT"||!o.alg||t&&(!("alg"in o)||o.alg!==t))}catch{return!1}}const Ofe=ut("$ZodJWT",(e,t)=>{jr.init(e,t),e._zod.check=n=>{Efe(n.value,t.alg)||n.issues.push({code:"invalid_format",format:"jwt",input:n.value,inst:e,continue:!t.abort})}}),pW=ut("$ZodNumber",(e,t)=>{Gr.init(e,t),e._zod.pattern=e._zod.bag.pattern??Lde,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=Number(n.value)}catch{}const o=n.value;if(typeof o=="number"&&!Number.isNaN(o)&&Number.isFinite(o))return n;const i=typeof o=="number"?Number.isNaN(o)?"NaN":Number.isFinite(o)?void 0:"Infinity":void 0;return n.issues.push({expected:"number",code:"invalid_type",input:o,inst:e,...i?{received:i}:{}}),n}}),Pfe=ut("$ZodNumberFormat",(e,t)=>{Vde.init(e,t),pW.init(e,t)}),jfe=ut("$ZodBoolean",(e,t)=>{Gr.init(e,t),e._zod.pattern=zde,e._zod.parse=(n,r)=>{if(t.coerce)try{n.value=!!n.value}catch{}const o=n.value;return typeof o=="boolean"||n.issues.push({expected:"boolean",code:"invalid_type",input:o,inst:e}),n}}),Ife=ut("$ZodUnknown",(e,t)=>{Gr.init(e,t),e._zod.parse=n=>n}),_fe=ut("$ZodNever",(e,t)=>{Gr.init(e,t),e._zod.parse=(n,r)=>(n.issues.push({expected:"never",code:"invalid_type",input:n.value,inst:e}),n)});function l6(e,t,n){e.issues.length&&t.issues.push(...aW(n,e.issues)),t.value[n]=e.value}const Nfe=ut("$ZodArray",(e,t)=>{Gr.init(e,t),e._zod.parse=(n,r)=>{const o=n.value;if(!Array.isArray(o))return n.issues.push({expected:"array",code:"invalid_type",input:o,inst:e}),n;n.value=Array(o.length);const i=[];for(let a=0;a<o.length;a++){const s=o[a],l=t.element._zod.run({value:s,issues:[]},r);l instanceof Promise?i.push(l.then(u=>l6(u,n,a))):l6(l,n,a)}return i.length?Promise.all(i).then(()=>n):n}});function Qb(e,t,n,r){e.issues.length&&t.issues.push(...aW(n,e.issues)),e.value===void 0?n in r&&(t.value[n]=void 0):t.value[n]=e.value}function gW(e){var r,o,i,a;const t=Object.keys(e.shape);for(const s of t)if(!((a=(i=(o=(r=e.shape)==null?void 0:r[s])==null?void 0:o._zod)==null?void 0:i.traits)!=null&&a.has("$ZodType")))throw new Error(`Invalid element at key "${s}": expected a Zod schema`);const n=que(e.shape);return{...e,keys:t,keySet:new Set(t),numKeys:t.length,optionalKeys:new Set(n)}}function vW(e,t,n,r,o,i){const a=[],s=o.keySet,l=o.catchall._zod,u=l.def.type;for(const d in t){if(s.has(d))continue;if(u==="never"){a.push(d);continue}const f=l.run({value:t[d],issues:[]},r);f instanceof Promise?e.push(f.then(m=>Qb(m,n,d,t))):Qb(f,n,d,t)}return a.length&&n.issues.push({code:"unrecognized_keys",keys:a,input:t,inst:i}),e.length?Promise.all(e).then(()=>n):n}const Rfe=ut("$ZodObject",(e,t)=>{Gr.init(e,t);const n=Object.getOwnPropertyDescriptor(t,"shape");if(!(n!=null&&n.get)){const s=t.shape;Object.defineProperty(t,"shape",{get:()=>{const l={...s};return Object.defineProperty(t,"shape",{value:l}),l}})}const r=MN(()=>gW(t));mr(e._zod,"propValues",()=>{const s=t.shape,l={};for(const u in s){const d=s[u]._zod;if(d.values){l[u]??(l[u]=new Set);for(const f of d.values)l[u].add(f)}}return l});const o=Jb,i=t.catchall;let a;e._zod.parse=(s,l)=>{a??(a=r.value);const u=s.value;if(!o(u))return s.issues.push({expected:"object",code:"invalid_type",input:u,inst:e}),s;s.value={};const d=[],f=a.shape;for(const m of a.keys){const p=f[m]._zod.run({value:u[m],issues:[]},l);p instanceof Promise?d.push(p.then(b=>Qb(b,s,m,u))):Qb(p,s,m,u)}return i?vW(d,u,s,l,r.value,e):d.length?Promise.all(d).then(()=>s):s}}),Tfe=ut("$ZodObjectJIT",(e,t)=>{Rfe.init(e,t);const n=e._zod.parse,r=MN(()=>gW(t)),o=m=>{const h=new efe(["shape","payload","ctx"]),p=r.value,b=w=>{const C=a6(w);return`shape[${C}]._zod.run({ value: input[${C}], issues: [] }, ctx)`};h.write("const input = payload.value;");const v=Object.create(null);let y=0;for(const w of p.keys)v[w]=`key_${y++}`;h.write("const newResult = {};");for(const w of p.keys){const C=v[w],S=a6(w);h.write(`const ${C} = ${b(w)};`),h.write(`
        if (${C}.issues.length) {
          payload.issues = payload.issues.concat(${C}.issues.map(iss => ({
            ...iss,
            path: iss.path ? [${S}, ...iss.path] : [${S}]
          })));
        }
        
        
        if (${C}.value === undefined) {
          if (${S} in input) {
            newResult[${S}] = undefined;
          }
        } else {
          newResult[${S}] = ${C}.value;
        }
        
      `)}h.write("payload.value = newResult;"),h.write("return payload;");const x=h.compile();return(w,C)=>x(m,w,C)};let i;const a=Jb,s=!nW.jitless,u=s&&Uue.value,d=t.catchall;let f;e._zod.parse=(m,h)=>{f??(f=r.value);const p=m.value;return a(p)?s&&u&&(h==null?void 0:h.async)===!1&&h.jitless!==!0?(i||(i=o(t.shape)),m=i(m,h),d?vW([],p,m,h,f,e):m):n(m,h):(m.issues.push({expected:"object",code:"invalid_type",input:p,inst:e}),m)}});function c6(e,t,n,r){for(const i of e)if(i.issues.length===0)return t.value=i.value,t;const o=e.filter(i=>!Lf(i));return o.length===1?(t.value=o[0].value,o[0]):(t.issues.push({code:"invalid_union",input:t.value,inst:n,errors:e.map(i=>i.issues.map(a=>gd(a,r,pd())))}),t)}const Mfe=ut("$ZodUnion",(e,t)=>{Gr.init(e,t),mr(e._zod,"optin",()=>t.options.some(o=>o._zod.optin==="optional")?"optional":void 0),mr(e._zod,"optout",()=>t.options.some(o=>o._zod.optout==="optional")?"optional":void 0),mr(e._zod,"values",()=>{if(t.options.every(o=>o._zod.values))return new Set(t.options.flatMap(o=>Array.from(o._zod.values)))}),mr(e._zod,"pattern",()=>{if(t.options.every(o=>o._zod.pattern)){const o=t.options.map(i=>i._zod.pattern);return new RegExp(`^(${o.map(i=>AN(i.source)).join("|")})$`)}});const n=t.options.length===1,r=t.options[0]._zod.run;e._zod.parse=(o,i)=>{if(n)return r(o,i);let a=!1;const s=[];for(const l of t.options){const u=l._zod.run({value:o.value,issues:[]},i);if(u instanceof Promise)s.push(u),a=!0;else{if(u.issues.length===0)return u;s.push(u)}}return a?Promise.all(s).then(l=>c6(l,o,e,i)):c6(s,o,e,i)}}),kfe=ut("$ZodIntersection",(e,t)=>{Gr.init(e,t),e._zod.parse=(n,r)=>{const o=n.value,i=t.left._zod.run({value:o,issues:[]},r),a=t.right._zod.run({value:o,issues:[]},r);return i instanceof Promise||a instanceof Promise?Promise.all([i,a]).then(([l,u])=>u6(n,l,u)):u6(n,i,a)}});function wO(e,t){if(e===t)return{valid:!0,data:e};if(e instanceof Date&&t instanceof Date&&+e==+t)return{valid:!0,data:e};if(yg(e)&&yg(t)){const n=Object.keys(t),r=Object.keys(e).filter(i=>n.indexOf(i)!==-1),o={...e,...t};for(const i of r){const a=wO(e[i],t[i]);if(!a.valid)return{valid:!1,mergeErrorPath:[i,...a.mergeErrorPath]};o[i]=a.data}return{valid:!0,data:o}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};const n=[];for(let r=0;r<e.length;r++){const o=e[r],i=t[r],a=wO(o,i);if(!a.valid)return{valid:!1,mergeErrorPath:[r,...a.mergeErrorPath]};n.push(a.data)}return{valid:!0,data:n}}return{valid:!1,mergeErrorPath:[]}}function u6(e,t,n){if(t.issues.length&&e.issues.push(...t.issues),n.issues.length&&e.issues.push(...n.issues),Lf(e))return e;const r=wO(t.value,n.value);if(!r.valid)throw new Error(`Unmergable intersection. Error path: ${JSON.stringify(r.mergeErrorPath)}`);return e.value=r.data,e}const Afe=ut("$ZodEnum",(e,t)=>{Gr.init(e,t);const n=rW(t.entries),r=new Set(n);e._zod.values=r,e._zod.pattern=new RegExp(`^(${n.filter(o=>Kue.has(typeof o)).map(o=>typeof o=="string"?$m(o):o.toString()).join("|")})$`),e._zod.parse=(o,i)=>{const a=o.value;return r.has(a)||o.issues.push({code:"invalid_value",values:n,input:a,inst:e}),o}}),Dfe=ut("$ZodLiteral",(e,t)=>{if(Gr.init(e,t),t.values.length===0)throw new Error("Cannot create literal schema with no valid values");const n=new Set(t.values);e._zod.values=n,e._zod.pattern=new RegExp(`^(${t.values.map(r=>typeof r=="string"?$m(r):r?$m(r.toString()):String(r)).join("|")})$`),e._zod.parse=(r,o)=>{const i=r.value;return n.has(i)||r.issues.push({code:"invalid_value",values:t.values,input:i,inst:e}),r}}),Lfe=ut("$ZodTransform",(e,t)=>{Gr.init(e,t),e._zod.parse=(n,r)=>{if(r.direction==="backward")throw new tW(e.constructor.name);const o=t.transform(n.value,n);if(r.async)return(o instanceof Promise?o:Promise.resolve(o)).then(a=>(n.value=a,n));if(o instanceof Promise)throw new om;return n.value=o,n}});function d6(e,t){return e.issues.length&&t===void 0?{issues:[],value:void 0}:e}const zfe=ut("$ZodOptional",(e,t)=>{Gr.init(e,t),e._zod.optin="optional",e._zod.optout="optional",mr(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),mr(e._zod,"pattern",()=>{const n=t.innerType._zod.pattern;return n?new RegExp(`^(${AN(n.source)})?$`):void 0}),e._zod.parse=(n,r)=>{if(t.innerType._zod.optin==="optional"){const o=t.innerType._zod.run(n,r);return o instanceof Promise?o.then(i=>d6(i,n.value)):d6(o,n.value)}return n.value===void 0?n:t.innerType._zod.run(n,r)}}),Ffe=ut("$ZodNullable",(e,t)=>{Gr.init(e,t),mr(e._zod,"optin",()=>t.innerType._zod.optin),mr(e._zod,"optout",()=>t.innerType._zod.optout),mr(e._zod,"pattern",()=>{const n=t.innerType._zod.pattern;return n?new RegExp(`^(${AN(n.source)}|null)$`):void 0}),mr(e._zod,"values",()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(n,r)=>n.value===null?n:t.innerType._zod.run(n,r)}),Bfe=ut("$ZodDefault",(e,t)=>{Gr.init(e,t),e._zod.optin="optional",mr(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,r)=>{if(r.direction==="backward")return t.innerType._zod.run(n,r);if(n.value===void 0)return n.value=t.defaultValue,n;const o=t.innerType._zod.run(n,r);return o instanceof Promise?o.then(i=>f6(i,t)):f6(o,t)}});function f6(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}const Hfe=ut("$ZodPrefault",(e,t)=>{Gr.init(e,t),e._zod.optin="optional",mr(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,r)=>(r.direction==="backward"||n.value===void 0&&(n.value=t.defaultValue),t.innerType._zod.run(n,r))}),Vfe=ut("$ZodNonOptional",(e,t)=>{Gr.init(e,t),mr(e._zod,"values",()=>{const n=t.innerType._zod.values;return n?new Set([...n].filter(r=>r!==void 0)):void 0}),e._zod.parse=(n,r)=>{const o=t.innerType._zod.run(n,r);return o instanceof Promise?o.then(i=>m6(i,e)):m6(o,e)}});function m6(e,t){return!e.issues.length&&e.value===void 0&&e.issues.push({code:"invalid_type",expected:"nonoptional",input:e.value,inst:t}),e}const Wfe=ut("$ZodCatch",(e,t)=>{Gr.init(e,t),mr(e._zod,"optin",()=>t.innerType._zod.optin),mr(e._zod,"optout",()=>t.innerType._zod.optout),mr(e._zod,"values",()=>t.innerType._zod.values),e._zod.parse=(n,r)=>{if(r.direction==="backward")return t.innerType._zod.run(n,r);const o=t.innerType._zod.run(n,r);return o instanceof Promise?o.then(i=>(n.value=i.value,i.issues.length&&(n.value=t.catchValue({...n,error:{issues:i.issues.map(a=>gd(a,r,pd()))},input:n.value}),n.issues=[]),n)):(n.value=o.value,o.issues.length&&(n.value=t.catchValue({...n,error:{issues:o.issues.map(i=>gd(i,r,pd()))},input:n.value}),n.issues=[]),n)}}),Ufe=ut("$ZodPipe",(e,t)=>{Gr.init(e,t),mr(e._zod,"values",()=>t.in._zod.values),mr(e._zod,"optin",()=>t.in._zod.optin),mr(e._zod,"optout",()=>t.out._zod.optout),mr(e._zod,"propValues",()=>t.in._zod.propValues),e._zod.parse=(n,r)=>{if(r.direction==="backward"){const i=t.out._zod.run(n,r);return i instanceof Promise?i.then(a=>L0(a,t.in,r)):L0(i,t.in,r)}const o=t.in._zod.run(n,r);return o instanceof Promise?o.then(i=>L0(i,t.out,r)):L0(o,t.out,r)}});function L0(e,t,n){return e.issues.length?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues},n)}const Kfe=ut("$ZodReadonly",(e,t)=>{Gr.init(e,t),mr(e._zod,"propValues",()=>t.innerType._zod.propValues),mr(e._zod,"values",()=>t.innerType._zod.values),mr(e._zod,"optin",()=>{var n,r;return(r=(n=t.innerType)==null?void 0:n._zod)==null?void 0:r.optin}),mr(e._zod,"optout",()=>{var n,r;return(r=(n=t.innerType)==null?void 0:n._zod)==null?void 0:r.optout}),e._zod.parse=(n,r)=>{if(r.direction==="backward")return t.innerType._zod.run(n,r);const o=t.innerType._zod.run(n,r);return o instanceof Promise?o.then(h6):h6(o)}});function h6(e){return e.value=Object.freeze(e.value),e}const qfe=ut("$ZodCustom",(e,t)=>{aa.init(e,t),Gr.init(e,t),e._zod.parse=(n,r)=>n,e._zod.check=n=>{const r=n.value,o=t.fn(r);if(o instanceof Promise)return o.then(i=>p6(i,n,r,e));p6(o,n,r,e)}});function p6(e,t,n,r){if(!e){const o={code:"custom",input:n,inst:r,path:[...r._zod.def.path??[]],continue:!r._zod.def.abort};r._zod.def.params&&(o.params=r._zod.def.params),t.issues.push(bg(o))}}var g6;class Gfe{constructor(){this._map=new WeakMap,this._idmap=new Map}add(t,...n){const r=n[0];if(this._map.set(t,r),r&&typeof r=="object"&&"id"in r){if(this._idmap.has(r.id))throw new Error(`ID ${r.id} already exists in the registry`);this._idmap.set(r.id,t)}return this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(t){const n=this._map.get(t);return n&&typeof n=="object"&&"id"in n&&this._idmap.delete(n.id),this._map.delete(t),this}get(t){const n=t._zod.parent;if(n){const r={...this.get(n)??{}};delete r.id;const o={...r,...this._map.get(t)};return Object.keys(o).length?o:void 0}return this._map.get(t)}has(t){return this._map.has(t)}}function Xfe(){return new Gfe}(g6=globalThis).__zod_globalRegistry??(g6.__zod_globalRegistry=Xfe());const bp=globalThis.__zod_globalRegistry;function Yfe(e,t){return new e({type:"string",...on(t)})}function Zfe(e,t){return new e({type:"string",format:"email",check:"string_format",abort:!1,...on(t)})}function v6(e,t){return new e({type:"string",format:"guid",check:"string_format",abort:!1,...on(t)})}function Jfe(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,...on(t)})}function Qfe(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v4",...on(t)})}function eme(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v6",...on(t)})}function tme(e,t){return new e({type:"string",format:"uuid",check:"string_format",abort:!1,version:"v7",...on(t)})}function nme(e,t){return new e({type:"string",format:"url",check:"string_format",abort:!1,...on(t)})}function rme(e,t){return new e({type:"string",format:"emoji",check:"string_format",abort:!1,...on(t)})}function ome(e,t){return new e({type:"string",format:"nanoid",check:"string_format",abort:!1,...on(t)})}function ime(e,t){return new e({type:"string",format:"cuid",check:"string_format",abort:!1,...on(t)})}function ame(e,t){return new e({type:"string",format:"cuid2",check:"string_format",abort:!1,...on(t)})}function sme(e,t){return new e({type:"string",format:"ulid",check:"string_format",abort:!1,...on(t)})}function lme(e,t){return new e({type:"string",format:"xid",check:"string_format",abort:!1,...on(t)})}function cme(e,t){return new e({type:"string",format:"ksuid",check:"string_format",abort:!1,...on(t)})}function ume(e,t){return new e({type:"string",format:"ipv4",check:"string_format",abort:!1,...on(t)})}function dme(e,t){return new e({type:"string",format:"ipv6",check:"string_format",abort:!1,...on(t)})}function fme(e,t){return new e({type:"string",format:"cidrv4",check:"string_format",abort:!1,...on(t)})}function mme(e,t){return new e({type:"string",format:"cidrv6",check:"string_format",abort:!1,...on(t)})}function hme(e,t){return new e({type:"string",format:"base64",check:"string_format",abort:!1,...on(t)})}function pme(e,t){return new e({type:"string",format:"base64url",check:"string_format",abort:!1,...on(t)})}function gme(e,t){return new e({type:"string",format:"e164",check:"string_format",abort:!1,...on(t)})}function vme(e,t){return new e({type:"string",format:"jwt",check:"string_format",abort:!1,...on(t)})}function yme(e,t){return new e({type:"string",format:"datetime",check:"string_format",offset:!1,local:!1,precision:null,...on(t)})}function bme(e,t){return new e({type:"string",format:"date",check:"string_format",...on(t)})}function xme(e,t){return new e({type:"string",format:"time",check:"string_format",precision:null,...on(t)})}function wme(e,t){return new e({type:"string",format:"duration",check:"string_format",...on(t)})}function Sme(e,t){return new e({type:"number",coerce:!0,checks:[],...on(t)})}function Cme(e,t){return new e({type:"number",check:"number_format",abort:!1,format:"safeint",...on(t)})}function $me(e,t){return new e({type:"boolean",...on(t)})}function Eme(e){return new e({type:"unknown"})}function Ome(e,t){return new e({type:"never",...on(t)})}function y6(e,t){return new fW({check:"less_than",...on(t),value:e,inclusive:!1})}function g$(e,t){return new fW({check:"less_than",...on(t),value:e,inclusive:!0})}function b6(e,t){return new mW({check:"greater_than",...on(t),value:e,inclusive:!1})}function v$(e,t){return new mW({check:"greater_than",...on(t),value:e,inclusive:!0})}function x6(e,t){return new Hde({check:"multiple_of",...on(t),value:e})}function yW(e,t){return new Wde({check:"max_length",...on(t),maximum:e})}function ex(e,t){return new Ude({check:"min_length",...on(t),minimum:e})}function bW(e,t){return new Kde({check:"length_equals",...on(t),length:e})}function Pme(e,t){return new qde({check:"string_format",format:"regex",...on(t),pattern:e})}function jme(e){return new Gde({check:"string_format",format:"lowercase",...on(e)})}function Ime(e){return new Xde({check:"string_format",format:"uppercase",...on(e)})}function _me(e,t){return new Yde({check:"string_format",format:"includes",...on(t),includes:e})}function Nme(e,t){return new Zde({check:"string_format",format:"starts_with",...on(t),prefix:e})}function Rme(e,t){return new Jde({check:"string_format",format:"ends_with",...on(t),suffix:e})}function ih(e){return new Qde({check:"overwrite",tx:e})}function Tme(e){return ih(t=>t.normalize(e))}function Mme(){return ih(e=>e.trim())}function kme(){return ih(e=>e.toLowerCase())}function Ame(){return ih(e=>e.toUpperCase())}function Dme(){return ih(e=>Wue(e))}function Lme(e,t,n){return new e({type:"array",element:t,...on(n)})}function zme(e,t,n){return new e({type:"custom",check:"custom",fn:t,...on(n)})}function Fme(e){const t=Bme(n=>(n.addIssue=r=>{if(typeof r=="string")n.issues.push(bg(r,n.value,t._zod.def));else{const o=r;o.fatal&&(o.continue=!1),o.code??(o.code="custom"),o.input??(o.input=n.value),o.inst??(o.inst=t),o.continue??(o.continue=!t._zod.def.abort),n.issues.push(bg(o))}},e(n.value,n)));return t}function Bme(e,t){const n=new aa({check:"custom",...on(t)});return n._zod.check=e,n}function xW(e){let t=(e==null?void 0:e.target)??"draft-2020-12";return t==="draft-4"&&(t="draft-04"),t==="draft-7"&&(t="draft-07"),{processors:e.processors??{},metadataRegistry:(e==null?void 0:e.metadata)??bp,target:t,unrepresentable:(e==null?void 0:e.unrepresentable)??"throw",override:(e==null?void 0:e.override)??(()=>{}),io:(e==null?void 0:e.io)??"output",counter:0,seen:new Map,cycles:(e==null?void 0:e.cycles)??"ref",reused:(e==null?void 0:e.reused)??"inline",external:(e==null?void 0:e.external)??void 0}}function oi(e,t,n={path:[],schemaPath:[]}){var d,f;var r;const o=e._zod.def,i=t.seen.get(e);if(i)return i.count++,n.schemaPath.includes(e)&&(i.cycle=n.path),i.schema;const a={schema:{},count:1,cycle:void 0,path:n.path};t.seen.set(e,a);const s=(f=(d=e._zod).toJSONSchema)==null?void 0:f.call(d);if(s)a.schema=s;else{const m={...n,schemaPath:[...n.schemaPath,e],path:n.path},h=e._zod.parent;if(h)a.ref=h,oi(h,t,m),t.seen.get(h).isParent=!0;else if(e._zod.processJSONSchema)e._zod.processJSONSchema(t,a.schema,m);else{const p=a.schema,b=t.processors[o.type];if(!b)throw new Error(`[toJSONSchema]: Non-representable type encountered: ${o.type}`);b(e,t,p,m)}}const l=t.metadataRegistry.get(e);return l&&Object.assign(a.schema,l),t.io==="input"&&Ii(e)&&(delete a.schema.examples,delete a.schema.default),t.io==="input"&&a.schema._prefault&&((r=a.schema).default??(r.default=a.schema._prefault)),delete a.schema._prefault,t.seen.get(e).schema}function wW(e,t){var i,a,s;const n=e.seen.get(t);if(!n)throw new Error("Unprocessed schema. This is a bug in Zod.");const r=l=>{var h;const u=e.target==="draft-2020-12"?"$defs":"definitions";if(e.external){const p=(h=e.external.registry.get(l[0]))==null?void 0:h.id,b=e.external.uri??(y=>y);if(p)return{ref:b(p)};const v=l[1].defId??l[1].schema.id??`schema${e.counter++}`;return l[1].defId=v,{defId:v,ref:`${b("__shared")}#/${u}/${v}`}}if(l[1]===n)return{ref:"#"};const f=`#/${u}/`,m=l[1].schema.id??`__schema${e.counter++}`;return{defId:m,ref:f+m}},o=l=>{if(l[1].schema.$ref)return;const u=l[1],{ref:d,defId:f}=r(l);u.def={...u.schema},f&&(u.defId=f);const m=u.schema;for(const h in m)delete m[h];m.$ref=d};if(e.cycles==="throw")for(const l of e.seen.entries()){const u=l[1];if(u.cycle)throw new Error(`Cycle detected: #/${(i=u.cycle)==null?void 0:i.join("/")}/<root>

Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(const l of e.seen.entries()){const u=l[1];if(t===l[0]){o(l);continue}if(e.external){const f=(a=e.external.registry.get(l[0]))==null?void 0:a.id;if(t!==l[0]&&f){o(l);continue}}if((s=e.metadataRegistry.get(l[0]))==null?void 0:s.id){o(l);continue}if(u.cycle){o(l);continue}if(u.count>1&&e.reused==="ref"){o(l);continue}}}function SW(e,t){var a,s,l;const n=e.seen.get(t);if(!n)throw new Error("Unprocessed schema. This is a bug in Zod.");const r=u=>{const d=e.seen.get(u),f=d.def??d.schema,m={...f};if(d.ref===null)return;const h=d.ref;if(d.ref=null,h){r(h);const p=e.seen.get(h).schema;p.$ref&&(e.target==="draft-07"||e.target==="draft-04"||e.target==="openapi-3.0")?(f.allOf=f.allOf??[],f.allOf.push(p)):(Object.assign(f,p),Object.assign(f,m))}d.isParent||e.override({zodSchema:u,jsonSchema:f,path:d.path??[]})};for(const u of[...e.seen.entries()].reverse())r(u[0]);const o={};if(e.target==="draft-2020-12"?o.$schema="https://json-schema.org/draft/2020-12/schema":e.target==="draft-07"?o.$schema="http://json-schema.org/draft-07/schema#":e.target==="draft-04"?o.$schema="http://json-schema.org/draft-04/schema#":e.target,(a=e.external)!=null&&a.uri){const u=(s=e.external.registry.get(t))==null?void 0:s.id;if(!u)throw new Error("Schema is missing an `id` property");o.$id=e.external.uri(u)}Object.assign(o,n.def??n.schema);const i=((l=e.external)==null?void 0:l.defs)??{};for(const u of e.seen.entries()){const d=u[1];d.def&&d.defId&&(i[d.defId]=d.def)}e.external||Object.keys(i).length>0&&(e.target==="draft-2020-12"?o.$defs=i:o.definitions=i);try{const u=JSON.parse(JSON.stringify(o));return Object.defineProperty(u,"~standard",{value:{...t["~standard"],jsonSchema:{input:tx(t,"input"),output:tx(t,"output")}},enumerable:!1,writable:!1}),u}catch{throw new Error("Error converting schema to JSON.")}}function Ii(e,t){const n=t??{seen:new Set};if(n.seen.has(e))return!1;n.seen.add(e);const r=e._zod.def;if(r.type==="transform")return!0;if(r.type==="array")return Ii(r.element,n);if(r.type==="set")return Ii(r.valueType,n);if(r.type==="lazy")return Ii(r.getter(),n);if(r.type==="promise"||r.type==="optional"||r.type==="nonoptional"||r.type==="nullable"||r.type==="readonly"||r.type==="default"||r.type==="prefault")return Ii(r.innerType,n);if(r.type==="intersection")return Ii(r.left,n)||Ii(r.right,n);if(r.type==="record"||r.type==="map")return Ii(r.keyType,n)||Ii(r.valueType,n);if(r.type==="pipe")return Ii(r.in,n)||Ii(r.out,n);if(r.type==="object"){for(const o in r.shape)if(Ii(r.shape[o],n))return!0;return!1}if(r.type==="union"){for(const o of r.options)if(Ii(o,n))return!0;return!1}if(r.type==="tuple"){for(const o of r.items)if(Ii(o,n))return!0;return!!(r.rest&&Ii(r.rest,n))}return!1}const Hme=(e,t={})=>n=>{const r=xW({...n,processors:t});return oi(e,r),wW(r,e),SW(r,e)},tx=(e,t)=>n=>{const{libraryOptions:r,target:o}=n??{},i=xW({...r??{},target:o,io:t,processors:{}});return oi(e,i),wW(i,e),SW(i,e)},Vme={guid:"uuid",url:"uri",datetime:"date-time",json_string:"json-string",regex:""},Wme=(e,t,n,r)=>{const o=n;o.type="string";const{minimum:i,maximum:a,format:s,patterns:l,contentEncoding:u}=e._zod.bag;if(typeof i=="number"&&(o.minLength=i),typeof a=="number"&&(o.maxLength=a),s&&(o.format=Vme[s]??s,o.format===""&&delete o.format),u&&(o.contentEncoding=u),l&&l.size>0){const d=[...l];d.length===1?o.pattern=d[0].source:d.length>1&&(o.allOf=[...d.map(f=>({...t.target==="draft-07"||t.target==="draft-04"||t.target==="openapi-3.0"?{type:"string"}:{},pattern:f.source}))])}},Ume=(e,t,n,r)=>{const o=n,{minimum:i,maximum:a,format:s,multipleOf:l,exclusiveMaximum:u,exclusiveMinimum:d}=e._zod.bag;typeof s=="string"&&s.includes("int")?o.type="integer":o.type="number",typeof d=="number"&&(t.target==="draft-04"||t.target==="openapi-3.0"?(o.minimum=d,o.exclusiveMinimum=!0):o.exclusiveMinimum=d),typeof i=="number"&&(o.minimum=i,typeof d=="number"&&t.target!=="draft-04"&&(d>=i?delete o.minimum:delete o.exclusiveMinimum)),typeof u=="number"&&(t.target==="draft-04"||t.target==="openapi-3.0"?(o.maximum=u,o.exclusiveMaximum=!0):o.exclusiveMaximum=u),typeof a=="number"&&(o.maximum=a,typeof u=="number"&&t.target!=="draft-04"&&(u<=a?delete o.maximum:delete o.exclusiveMaximum)),typeof l=="number"&&(o.multipleOf=l)},Kme=(e,t,n,r)=>{n.type="boolean"},qme=(e,t,n,r)=>{n.not={}},Gme=(e,t,n,r)=>{},Xme=(e,t,n,r)=>{const o=e._zod.def,i=rW(o.entries);i.every(a=>typeof a=="number")&&(n.type="number"),i.every(a=>typeof a=="string")&&(n.type="string"),n.enum=i},Yme=(e,t,n,r)=>{const o=e._zod.def,i=[];for(const a of o.values)if(a===void 0){if(t.unrepresentable==="throw")throw new Error("Literal `undefined` cannot be represented in JSON Schema")}else if(typeof a=="bigint"){if(t.unrepresentable==="throw")throw new Error("BigInt literals cannot be represented in JSON Schema");i.push(Number(a))}else i.push(a);if(i.length!==0)if(i.length===1){const a=i[0];n.type=a===null?"null":typeof a,t.target==="draft-04"||t.target==="openapi-3.0"?n.enum=[a]:n.const=a}else i.every(a=>typeof a=="number")&&(n.type="number"),i.every(a=>typeof a=="string")&&(n.type="string"),i.every(a=>typeof a=="boolean")&&(n.type="boolean"),i.every(a=>a===null)&&(n.type="null"),n.enum=i},Zme=(e,t,n,r)=>{if(t.unrepresentable==="throw")throw new Error("Custom types cannot be represented in JSON Schema")},Jme=(e,t,n,r)=>{if(t.unrepresentable==="throw")throw new Error("Transforms cannot be represented in JSON Schema")},Qme=(e,t,n,r)=>{const o=n,i=e._zod.def,{minimum:a,maximum:s}=e._zod.bag;typeof a=="number"&&(o.minItems=a),typeof s=="number"&&(o.maxItems=s),o.type="array",o.items=oi(i.element,t,{...r,path:[...r.path,"items"]})},ehe=(e,t,n,r)=>{var u;const o=n,i=e._zod.def;o.type="object",o.properties={};const a=i.shape;for(const d in a)o.properties[d]=oi(a[d],t,{...r,path:[...r.path,"properties",d]});const s=new Set(Object.keys(a)),l=new Set([...s].filter(d=>{const f=i.shape[d]._zod;return t.io==="input"?f.optin===void 0:f.optout===void 0}));l.size>0&&(o.required=Array.from(l)),((u=i.catchall)==null?void 0:u._zod.def.type)==="never"?o.additionalProperties=!1:i.catchall?i.catchall&&(o.additionalProperties=oi(i.catchall,t,{...r,path:[...r.path,"additionalProperties"]})):t.io==="output"&&(o.additionalProperties=!1)},the=(e,t,n,r)=>{const o=e._zod.def,i=o.inclusive===!1,a=o.options.map((s,l)=>oi(s,t,{...r,path:[...r.path,i?"oneOf":"anyOf",l]}));i?n.oneOf=a:n.anyOf=a},nhe=(e,t,n,r)=>{const o=e._zod.def,i=oi(o.left,t,{...r,path:[...r.path,"allOf",0]}),a=oi(o.right,t,{...r,path:[...r.path,"allOf",1]}),s=u=>"allOf"in u&&Object.keys(u).length===1,l=[...s(i)?i.allOf:[i],...s(a)?a.allOf:[a]];n.allOf=l},rhe=(e,t,n,r)=>{const o=e._zod.def,i=oi(o.innerType,t,r),a=t.seen.get(e);t.target==="openapi-3.0"?(a.ref=o.innerType,n.nullable=!0):n.anyOf=[i,{type:"null"}]},ohe=(e,t,n,r)=>{const o=e._zod.def;oi(o.innerType,t,r);const i=t.seen.get(e);i.ref=o.innerType},ihe=(e,t,n,r)=>{const o=e._zod.def;oi(o.innerType,t,r);const i=t.seen.get(e);i.ref=o.innerType,n.default=JSON.parse(JSON.stringify(o.defaultValue))},ahe=(e,t,n,r)=>{const o=e._zod.def;oi(o.innerType,t,r);const i=t.seen.get(e);i.ref=o.innerType,t.io==="input"&&(n._prefault=JSON.parse(JSON.stringify(o.defaultValue)))},she=(e,t,n,r)=>{const o=e._zod.def;oi(o.innerType,t,r);const i=t.seen.get(e);i.ref=o.innerType;let a;try{a=o.catchValue(void 0)}catch{throw new Error("Dynamic catch values are not supported in JSON Schema")}n.default=a},lhe=(e,t,n,r)=>{const o=e._zod.def,i=t.io==="input"?o.in._zod.def.type==="transform"?o.out:o.in:o.out;oi(i,t,r);const a=t.seen.get(e);a.ref=i},che=(e,t,n,r)=>{const o=e._zod.def;oi(o.innerType,t,r);const i=t.seen.get(e);i.ref=o.innerType,n.readOnly=!0},uhe=(e,t,n,r)=>{const o=e._zod.def;oi(o.innerType,t,r);const i=t.seen.get(e);i.ref=o.innerType};function w6(e,t){try{var n=e()}catch(r){return t(r)}return n&&n.then?n.then(void 0,t):n}function dhe(e,t){for(var n={};e.length;){var r=e[0],o=r.code,i=r.message,a=r.path.join(".");if(!n[a])if("unionErrors"in r){var s=r.unionErrors[0].errors[0];n[a]={message:s.message,type:s.code}}else n[a]={message:i,type:o};if("unionErrors"in r&&r.unionErrors.forEach(function(d){return d.errors.forEach(function(f){return e.push(f)})}),t){var l=n[a].types,u=l&&l[r.code];n[a]=NN(a,t,n,o,u?[].concat(u,r.message):r.message)}e.shift()}return n}function fhe(e,t){for(var n={};e.length;){var r=e[0],o=r.code,i=r.message,a=r.path.join(".");if(!n[a])if(r.code==="invalid_union"&&r.errors.length>0){var s=r.errors[0][0];n[a]={message:s.message,type:s.code}}else n[a]={message:i,type:o};if(r.code==="invalid_union"&&r.errors.forEach(function(d){return d.forEach(function(f){return e.push(f)})}),t){var l=n[a].types,u=l&&l[r.code];n[a]=NN(a,t,n,o,u?[].concat(u,r.message):r.message)}e.shift()}return n}function du(e,t,n){if(n===void 0&&(n={}),function(r){return"_def"in r&&typeof r._def=="object"&&"typeName"in r._def}(e))return function(r,o,i){try{return Promise.resolve(w6(function(){return Promise.resolve(e[n.mode==="sync"?"parse":"parseAsync"](r,t)).then(function(a){return i.shouldUseNativeValidation&&bO({},i),{errors:{},values:n.raw?Object.assign({},r):a}})},function(a){if(function(s){return Array.isArray(s==null?void 0:s.issues)}(a))return{values:{},errors:r6(dhe(a.errors,!i.shouldUseNativeValidation&&i.criteriaMode==="all"),i)};throw a}))}catch(a){return Promise.reject(a)}};if(function(r){return"_zod"in r&&typeof r._zod=="object"}(e))return function(r,o,i){try{return Promise.resolve(w6(function(){return Promise.resolve((n.mode==="sync"?ode:ide)(e,r,t)).then(function(a){return i.shouldUseNativeValidation&&bO({},i),{errors:{},values:n.raw?Object.assign({},r):a}})},function(a){if(function(s){return s instanceof LN}(a))return{values:{},errors:r6(fhe(a.issues,!i.shouldUseNativeValidation&&i.criteriaMode==="all"),i)};throw a}))}catch(a){return Promise.reject(a)}};throw new Error("Invalid input: not a Zod schema")}const mhe=ut("ZodISODateTime",(e,t)=>{mfe.init(e,t),zr.init(e,t)});function hhe(e){return yme(mhe,e)}const phe=ut("ZodISODate",(e,t)=>{hfe.init(e,t),zr.init(e,t)});function ghe(e){return bme(phe,e)}const vhe=ut("ZodISOTime",(e,t)=>{pfe.init(e,t),zr.init(e,t)});function yhe(e){return xme(vhe,e)}const bhe=ut("ZodISODuration",(e,t)=>{gfe.init(e,t),zr.init(e,t)});function xhe(e){return wme(bhe,e)}const whe=(e,t)=>{LN.init(e,t),e.name="ZodError",Object.defineProperties(e,{format:{value:n=>rde(e,n)},flatten:{value:n=>nde(e,n)},addIssue:{value:n=>{e.issues.push(n),e.message=JSON.stringify(e.issues,xO,2)}},addIssues:{value:n=>{e.issues.push(...n),e.message=JSON.stringify(e.issues,xO,2)}},isEmpty:{get(){return e.issues.length===0}}})},ms=ut("ZodError",whe,{Parent:Error}),She=Z1(ms),Che=J1(ms),$he=Q1(ms),Ehe=ew(ms),Ohe=lde(ms),Phe=cde(ms),jhe=ude(ms),Ihe=dde(ms),_he=fde(ms),Nhe=mde(ms),Rhe=hde(ms),The=pde(ms),to=ut("ZodType",(e,t)=>(Gr.init(e,t),Object.assign(e["~standard"],{jsonSchema:{input:tx(e,"input"),output:tx(e,"output")}}),e.toJSONSchema=Hme(e,{}),e.def=t,e.type=t.type,Object.defineProperty(e,"_def",{value:t}),e.check=(...n)=>e.clone(Fd(t,{checks:[...t.checks??[],...n.map(r=>typeof r=="function"?{_zod:{check:r,def:{check:"custom"},onattach:[]}}:r)]})),e.clone=(n,r)=>uu(e,n,r),e.brand=()=>e,e.register=(n,r)=>(n.add(e,r),e),e.parse=(n,r)=>She(e,n,r,{callee:e.parse}),e.safeParse=(n,r)=>$he(e,n,r),e.parseAsync=async(n,r)=>Che(e,n,r,{callee:e.parseAsync}),e.safeParseAsync=async(n,r)=>Ehe(e,n,r),e.spa=e.safeParseAsync,e.encode=(n,r)=>Ohe(e,n,r),e.decode=(n,r)=>Phe(e,n,r),e.encodeAsync=async(n,r)=>jhe(e,n,r),e.decodeAsync=async(n,r)=>Ihe(e,n,r),e.safeEncode=(n,r)=>_he(e,n,r),e.safeDecode=(n,r)=>Nhe(e,n,r),e.safeEncodeAsync=async(n,r)=>Rhe(e,n,r),e.safeDecodeAsync=async(n,r)=>The(e,n,r),e.refine=(n,r)=>e.check($pe(n,r)),e.superRefine=n=>e.check(Epe(n)),e.overwrite=n=>e.check(ih(n)),e.optional=()=>E6(e),e.nullable=()=>O6(e),e.nullish=()=>E6(O6(e)),e.nonoptional=n=>vpe(e,n),e.array=()=>EW(e),e.or=n=>ape([e,n]),e.and=n=>lpe(e,n),e.transform=n=>P6(e,dpe(n)),e.default=n=>hpe(e,n),e.prefault=n=>gpe(e,n),e.catch=n=>bpe(e,n),e.pipe=n=>P6(e,n),e.readonly=()=>Spe(e),e.describe=n=>{const r=e.clone();return bp.add(r,{description:n}),r},Object.defineProperty(e,"description",{get(){var n;return(n=bp.get(e))==null?void 0:n.description},configurable:!0}),e.meta=(...n)=>{if(n.length===0)return bp.get(e);const r=e.clone();return bp.add(r,n[0]),r},e.isOptional=()=>e.safeParse(void 0).success,e.isNullable=()=>e.safeParse(null).success,e)),CW=ut("_ZodString",(e,t)=>{zN.init(e,t),to.init(e,t),e._zod.processJSONSchema=(r,o,i)=>Wme(e,r,o);const n=e._zod.bag;e.format=n.format??null,e.minLength=n.minimum??null,e.maxLength=n.maximum??null,e.regex=(...r)=>e.check(Pme(...r)),e.includes=(...r)=>e.check(_me(...r)),e.startsWith=(...r)=>e.check(Nme(...r)),e.endsWith=(...r)=>e.check(Rme(...r)),e.min=(...r)=>e.check(ex(...r)),e.max=(...r)=>e.check(yW(...r)),e.length=(...r)=>e.check(bW(...r)),e.nonempty=(...r)=>e.check(ex(1,...r)),e.lowercase=r=>e.check(jme(r)),e.uppercase=r=>e.check(Ime(r)),e.trim=()=>e.check(Mme()),e.normalize=(...r)=>e.check(Tme(...r)),e.toLowerCase=()=>e.check(kme()),e.toUpperCase=()=>e.check(Ame()),e.slugify=()=>e.check(Dme())}),Mhe=ut("ZodString",(e,t)=>{zN.init(e,t),CW.init(e,t),e.email=n=>e.check(Zfe(khe,n)),e.url=n=>e.check(nme(Ahe,n)),e.jwt=n=>e.check(vme(Zhe,n)),e.emoji=n=>e.check(rme(Dhe,n)),e.guid=n=>e.check(v6(S6,n)),e.uuid=n=>e.check(Jfe(z0,n)),e.uuidv4=n=>e.check(Qfe(z0,n)),e.uuidv6=n=>e.check(eme(z0,n)),e.uuidv7=n=>e.check(tme(z0,n)),e.nanoid=n=>e.check(ome(Lhe,n)),e.guid=n=>e.check(v6(S6,n)),e.cuid=n=>e.check(ime(zhe,n)),e.cuid2=n=>e.check(ame(Fhe,n)),e.ulid=n=>e.check(sme(Bhe,n)),e.base64=n=>e.check(hme(Ghe,n)),e.base64url=n=>e.check(pme(Xhe,n)),e.xid=n=>e.check(lme(Hhe,n)),e.ksuid=n=>e.check(cme(Vhe,n)),e.ipv4=n=>e.check(ume(Whe,n)),e.ipv6=n=>e.check(dme(Uhe,n)),e.cidrv4=n=>e.check(fme(Khe,n)),e.cidrv6=n=>e.check(mme(qhe,n)),e.e164=n=>e.check(gme(Yhe,n)),e.datetime=n=>e.check(hhe(n)),e.date=n=>e.check(ghe(n)),e.time=n=>e.check(yhe(n)),e.duration=n=>e.check(xhe(n))});function Wn(e){return Yfe(Mhe,e)}const zr=ut("ZodStringFormat",(e,t)=>{jr.init(e,t),CW.init(e,t)}),khe=ut("ZodEmail",(e,t)=>{ofe.init(e,t),zr.init(e,t)}),S6=ut("ZodGUID",(e,t)=>{nfe.init(e,t),zr.init(e,t)}),z0=ut("ZodUUID",(e,t)=>{rfe.init(e,t),zr.init(e,t)}),Ahe=ut("ZodURL",(e,t)=>{ife.init(e,t),zr.init(e,t)}),Dhe=ut("ZodEmoji",(e,t)=>{afe.init(e,t),zr.init(e,t)}),Lhe=ut("ZodNanoID",(e,t)=>{sfe.init(e,t),zr.init(e,t)}),zhe=ut("ZodCUID",(e,t)=>{lfe.init(e,t),zr.init(e,t)}),Fhe=ut("ZodCUID2",(e,t)=>{cfe.init(e,t),zr.init(e,t)}),Bhe=ut("ZodULID",(e,t)=>{ufe.init(e,t),zr.init(e,t)}),Hhe=ut("ZodXID",(e,t)=>{dfe.init(e,t),zr.init(e,t)}),Vhe=ut("ZodKSUID",(e,t)=>{ffe.init(e,t),zr.init(e,t)}),Whe=ut("ZodIPv4",(e,t)=>{vfe.init(e,t),zr.init(e,t)}),Uhe=ut("ZodIPv6",(e,t)=>{yfe.init(e,t),zr.init(e,t)}),Khe=ut("ZodCIDRv4",(e,t)=>{bfe.init(e,t),zr.init(e,t)}),qhe=ut("ZodCIDRv6",(e,t)=>{xfe.init(e,t),zr.init(e,t)}),Ghe=ut("ZodBase64",(e,t)=>{wfe.init(e,t),zr.init(e,t)}),Xhe=ut("ZodBase64URL",(e,t)=>{Cfe.init(e,t),zr.init(e,t)}),Yhe=ut("ZodE164",(e,t)=>{$fe.init(e,t),zr.init(e,t)}),Zhe=ut("ZodJWT",(e,t)=>{Ofe.init(e,t),zr.init(e,t)}),$W=ut("ZodNumber",(e,t)=>{pW.init(e,t),to.init(e,t),e._zod.processJSONSchema=(r,o,i)=>Ume(e,r,o),e.gt=(r,o)=>e.check(b6(r,o)),e.gte=(r,o)=>e.check(v$(r,o)),e.min=(r,o)=>e.check(v$(r,o)),e.lt=(r,o)=>e.check(y6(r,o)),e.lte=(r,o)=>e.check(g$(r,o)),e.max=(r,o)=>e.check(g$(r,o)),e.int=r=>e.check(C6(r)),e.safe=r=>e.check(C6(r)),e.positive=r=>e.check(b6(0,r)),e.nonnegative=r=>e.check(v$(0,r)),e.negative=r=>e.check(y6(0,r)),e.nonpositive=r=>e.check(g$(0,r)),e.multipleOf=(r,o)=>e.check(x6(r,o)),e.step=(r,o)=>e.check(x6(r,o)),e.finite=()=>e;const n=e._zod.bag;e.minValue=Math.max(n.minimum??Number.NEGATIVE_INFINITY,n.exclusiveMinimum??Number.NEGATIVE_INFINITY)??null,e.maxValue=Math.min(n.maximum??Number.POSITIVE_INFINITY,n.exclusiveMaximum??Number.POSITIVE_INFINITY)??null,e.isInt=(n.format??"").includes("int")||Number.isSafeInteger(n.multipleOf??.5),e.isFinite=!0,e.format=n.format??null}),Jhe=ut("ZodNumberFormat",(e,t)=>{Pfe.init(e,t),$W.init(e,t)});function C6(e){return Cme(Jhe,e)}const Qhe=ut("ZodBoolean",(e,t)=>{jfe.init(e,t),to.init(e,t),e._zod.processJSONSchema=(n,r,o)=>Kme(e,n,r)});function Em(e){return $me(Qhe,e)}const epe=ut("ZodUnknown",(e,t)=>{Ife.init(e,t),to.init(e,t),e._zod.processJSONSchema=(n,r,o)=>Gme()});function $6(){return Eme(epe)}const tpe=ut("ZodNever",(e,t)=>{_fe.init(e,t),to.init(e,t),e._zod.processJSONSchema=(n,r,o)=>qme(e,n,r)});function npe(e){return Ome(tpe,e)}const rpe=ut("ZodArray",(e,t)=>{Nfe.init(e,t),to.init(e,t),e._zod.processJSONSchema=(n,r,o)=>Qme(e,n,r,o),e.element=t.element,e.min=(n,r)=>e.check(ex(n,r)),e.nonempty=n=>e.check(ex(1,n)),e.max=(n,r)=>e.check(yW(n,r)),e.length=(n,r)=>e.check(bW(n,r)),e.unwrap=()=>e.element});function EW(e,t){return Lme(rpe,e,t)}const ope=ut("ZodObject",(e,t)=>{Tfe.init(e,t),to.init(e,t),e._zod.processJSONSchema=(n,r,o)=>ehe(e,n,r,o),mr(e,"shape",()=>t.shape),e.keyof=()=>vd(Object.keys(e._zod.def.shape)),e.catchall=n=>e.clone({...e._zod.def,catchall:n}),e.passthrough=()=>e.clone({...e._zod.def,catchall:$6()}),e.loose=()=>e.clone({...e._zod.def,catchall:$6()}),e.strict=()=>e.clone({...e._zod.def,catchall:npe()}),e.strip=()=>e.clone({...e._zod.def,catchall:void 0}),e.extend=n=>Zue(e,n),e.safeExtend=n=>Jue(e,n),e.merge=n=>Que(e,n),e.pick=n=>Xue(e,n),e.omit=n=>Yue(e,n),e.partial=(...n)=>ede(OW,e,n[0]),e.required=(...n)=>tde(PW,e,n[0])});function cl(e,t){const n={type:"object",shape:e??{},...on(t)};return new ope(n)}const ipe=ut("ZodUnion",(e,t)=>{Mfe.init(e,t),to.init(e,t),e._zod.processJSONSchema=(n,r,o)=>the(e,n,r,o),e.options=t.options});function ape(e,t){return new ipe({type:"union",options:e,...on(t)})}const spe=ut("ZodIntersection",(e,t)=>{kfe.init(e,t),to.init(e,t),e._zod.processJSONSchema=(n,r,o)=>nhe(e,n,r,o)});function lpe(e,t){return new spe({type:"intersection",left:e,right:t})}const SO=ut("ZodEnum",(e,t)=>{Afe.init(e,t),to.init(e,t),e._zod.processJSONSchema=(r,o,i)=>Xme(e,r,o),e.enum=t.entries,e.options=Object.values(t.entries);const n=new Set(Object.keys(t.entries));e.extract=(r,o)=>{const i={};for(const a of r)if(n.has(a))i[a]=t.entries[a];else throw new Error(`Key ${a} not found in enum`);return new SO({...t,checks:[],...on(o),entries:i})},e.exclude=(r,o)=>{const i={...t.entries};for(const a of r)if(n.has(a))delete i[a];else throw new Error(`Key ${a} not found in enum`);return new SO({...t,checks:[],...on(o),entries:i})}});function vd(e,t){const n=Array.isArray(e)?Object.fromEntries(e.map(r=>[r,r])):e;return new SO({type:"enum",entries:n,...on(t)})}const cpe=ut("ZodLiteral",(e,t)=>{Dfe.init(e,t),to.init(e,t),e._zod.processJSONSchema=(n,r,o)=>Yme(e,n,r),e.values=new Set(t.values),Object.defineProperty(e,"value",{get(){if(t.values.length>1)throw new Error("This schema contains multiple valid literal values. Use `.values` instead.");return t.values[0]}})});function Om(e,t){return new cpe({type:"literal",values:Array.isArray(e)?e:[e],...on(t)})}const upe=ut("ZodTransform",(e,t)=>{Lfe.init(e,t),to.init(e,t),e._zod.processJSONSchema=(n,r,o)=>Jme(e,n),e._zod.parse=(n,r)=>{if(r.direction==="backward")throw new tW(e.constructor.name);n.addIssue=i=>{if(typeof i=="string")n.issues.push(bg(i,n.value,t));else{const a=i;a.fatal&&(a.continue=!1),a.code??(a.code="custom"),a.input??(a.input=n.value),a.inst??(a.inst=e),n.issues.push(bg(a))}};const o=t.transform(n.value,n);return o instanceof Promise?o.then(i=>(n.value=i,n)):(n.value=o,n)}});function dpe(e){return new upe({type:"transform",transform:e})}const OW=ut("ZodOptional",(e,t)=>{zfe.init(e,t),to.init(e,t),e._zod.processJSONSchema=(n,r,o)=>uhe(e,n,r,o),e.unwrap=()=>e._zod.def.innerType});function E6(e){return new OW({type:"optional",innerType:e})}const fpe=ut("ZodNullable",(e,t)=>{Ffe.init(e,t),to.init(e,t),e._zod.processJSONSchema=(n,r,o)=>rhe(e,n,r,o),e.unwrap=()=>e._zod.def.innerType});function O6(e){return new fpe({type:"nullable",innerType:e})}const mpe=ut("ZodDefault",(e,t)=>{Bfe.init(e,t),to.init(e,t),e._zod.processJSONSchema=(n,r,o)=>ihe(e,n,r,o),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function hpe(e,t){return new mpe({type:"default",innerType:e,get defaultValue(){return typeof t=="function"?t():iW(t)}})}const ppe=ut("ZodPrefault",(e,t)=>{Hfe.init(e,t),to.init(e,t),e._zod.processJSONSchema=(n,r,o)=>ahe(e,n,r,o),e.unwrap=()=>e._zod.def.innerType});function gpe(e,t){return new ppe({type:"prefault",innerType:e,get defaultValue(){return typeof t=="function"?t():iW(t)}})}const PW=ut("ZodNonOptional",(e,t)=>{Vfe.init(e,t),to.init(e,t),e._zod.processJSONSchema=(n,r,o)=>ohe(e,n,r,o),e.unwrap=()=>e._zod.def.innerType});function vpe(e,t){return new PW({type:"nonoptional",innerType:e,...on(t)})}const ype=ut("ZodCatch",(e,t)=>{Wfe.init(e,t),to.init(e,t),e._zod.processJSONSchema=(n,r,o)=>she(e,n,r,o),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function bpe(e,t){return new ype({type:"catch",innerType:e,catchValue:typeof t=="function"?t:()=>t})}const xpe=ut("ZodPipe",(e,t)=>{Ufe.init(e,t),to.init(e,t),e._zod.processJSONSchema=(n,r,o)=>lhe(e,n,r,o),e.in=t.in,e.out=t.out});function P6(e,t){return new xpe({type:"pipe",in:e,out:t})}const wpe=ut("ZodReadonly",(e,t)=>{Kfe.init(e,t),to.init(e,t),e._zod.processJSONSchema=(n,r,o)=>che(e,n,r,o),e.unwrap=()=>e._zod.def.innerType});function Spe(e){return new wpe({type:"readonly",innerType:e})}const Cpe=ut("ZodCustom",(e,t)=>{qfe.init(e,t),to.init(e,t),e._zod.processJSONSchema=(n,r,o)=>Zme(e,n)});function $pe(e,t={}){return zme(Cpe,e,t)}function Epe(e){return Fme(e)}function nx(e){return Sme($W,e)}const Ope=cl({group_id:Wn().min(1,"Группа обязательна"),subject_id:Wn().min(1,"Предмет обязателен"),trainer_id:Wn().min(1,"Преподаватель обязателен"),room_id:Wn().optional().or(Om("")),start_time:Wn().min(1,"Время начала обязательно"),end_time:Wn().min(1,"Время окончания обязательно"),lesson_type:vd(["regular","exam","lab","online"]),description:Wn().optional(),is_recurring:Em().optional()}).refine(e=>e.start_time&&e.end_time?new Date(e.start_time)<new Date(e.end_time):!0,{message:"Время окончания должно быть позже времени начала",path:["end_time"]});function Ppe({isOpen:e,onClose:t,onSuccess:n,lesson:r}){const{register:o,handleSubmit:i,reset:a,formState:{errors:s,isSubmitting:l}}=cu({resolver:du(Ope),defaultValues:{group_id:"",subject_id:"",trainer_id:"",room_id:"",start_time:"",end_time:"",lesson_type:"regular",description:"",is_recurring:!1}}),{addToast:u}=bl(),[d,f]=c.useState([]),[m,h]=c.useState([]),[p,b]=c.useState([]),[v,y]=c.useState([]);c.useEffect(()=>{e&&(x(),a(r?{group_id:r.group_id,subject_id:r.subject_id,trainer_id:r.trainer_id,room_id:r.room_id||"",start_time:new Date(r.start_time).toISOString().slice(0,16),end_time:new Date(r.end_time).toISOString().slice(0,16),lesson_type:r.lesson_type,description:r.description||"",is_recurring:!1}:{group_id:"",subject_id:"",trainer_id:"",room_id:"",start_time:"",end_time:"",lesson_type:"regular",description:"",is_recurring:!1}))},[e,r,a]);const x=async()=>{try{const[C,S,$,E]=await Promise.all([Bn.getGroups(),Bn.getSubjects(),Bn.getTrainers(),Bn.getRooms()]);f(C),h(S),b($),y(E)}catch(C){console.error("Failed to fetch options",C),u("Не удалось загрузить данные формы","error")}},w=async C=>{var S,$;try{const E={...C,room_id:C.room_id||void 0,lesson_type:C.lesson_type};r?(await Bn.updateLesson(r.id,E),u("Урок успешно обновлен","success")):(await Bn.createLesson(E),u("Урок успешно запланирован","success")),n(),t()}catch(E){console.error("Failed to save lesson",E);const O=(($=(S=E.response)==null?void 0:S.data)==null?void 0:$.detail)||"Не удалось сохранить урок";u(O,"error")}};return e?g.jsx("div",{className:"fixed inset-0 z-50 overflow-y-auto","aria-labelledby":"modal-title",role:"dialog","aria-modal":"true",children:g.jsxs("div",{className:"flex items-end justify-center min-h-screen pt-4 px-4 pb-20 text-center sm:block sm:p-0",children:[g.jsx("div",{className:"fixed inset-0 bg-gray-500 bg-opacity-75 transition-opacity","aria-hidden":"true",onClick:t}),g.jsx("span",{className:"hidden sm:inline-block sm:align-middle sm:h-screen","aria-hidden":"true",children:"​"}),g.jsx("div",{className:"inline-block align-bottom bg-white rounded-lg px-4 pt-5 pb-4 text-left overflow-hidden shadow-xl transform transition-all sm:my-8 sm:align-middle sm:max-w-lg sm:w-full sm:p-6",children:g.jsxs("div",{className:"sm:flex sm:items-start",children:[g.jsx("div",{className:"mx-auto flex-shrink-0 flex items-center justify-center h-12 w-12 rounded-full bg-indigo-100 sm:mx-0 sm:h-10 sm:w-10",children:g.jsx("svg",{className:"h-6 w-6 text-indigo-600",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:g.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M8 7V3m8 4V3m-9 8h10M5 21h14a2 2 0 002-2V7a2 2 0 00-2-2H5a2 2 0 00-2 2v12a2 2 0 002 2z"})})}),g.jsxs("div",{className:"mt-3 text-center sm:mt-0 sm:ml-4 sm:text-left w-full",children:[g.jsx("h3",{className:"text-lg leading-6 font-medium text-gray-900",id:"modal-title",children:r?"Редактировать урок":"Запланировать урок"}),g.jsxs("form",{onSubmit:i(w),className:"mt-5 space-y-4",children:[g.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[g.jsxs("div",{children:[g.jsx("label",{htmlFor:"group_id",className:"block text-sm font-medium text-gray-700",children:"Группа"}),g.jsxs("select",{id:"group_id",...o("group_id"),className:`mt-1 block w-full py-2 px-3 border ${s.group_id?"border-red-500":"border-gray-300"} bg-white rounded-md shadow-sm focus:outline-none focus:ring-indigo-500 focus:border-indigo-500 sm:text-sm`,children:[g.jsx("option",{value:"",children:"Выберите группу"}),d.map(C=>g.jsx("option",{value:C.id,children:C.name},C.id))]}),s.group_id&&g.jsx("p",{className:"mt-1 text-sm text-red-600",children:s.group_id.message})]}),g.jsxs("div",{children:[g.jsx("label",{htmlFor:"subject_id",className:"block text-sm font-medium text-gray-700",children:"Предмет"}),g.jsxs("select",{id:"subject_id",...o("subject_id"),className:`mt-1 block w-full py-2 px-3 border ${s.subject_id?"border-red-500":"border-gray-300"} bg-white rounded-md shadow-sm focus:outline-none focus:ring-indigo-500 focus:border-indigo-500 sm:text-sm`,children:[g.jsx("option",{value:"",children:"Выберите предмет"}),m.map(C=>g.jsx("option",{value:C.id,children:C.name},C.id))]}),s.subject_id&&g.jsx("p",{className:"mt-1 text-sm text-red-600",children:s.subject_id.message})]})]}),g.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[g.jsxs("div",{children:[g.jsx("label",{htmlFor:"trainer_id",className:"block text-sm font-medium text-gray-700",children:"Преподаватель"}),g.jsxs("select",{id:"trainer_id",...o("trainer_id"),className:`mt-1 block w-full py-2 px-3 border ${s.trainer_id?"border-red-500":"border-gray-300"} bg-white rounded-md shadow-sm focus:outline-none focus:ring-indigo-500 focus:border-indigo-500 sm:text-sm`,children:[g.jsx("option",{value:"",children:"Выберите преподавателя"}),p.map(C=>g.jsx("option",{value:C.id,children:C.name},C.id))]}),s.trainer_id&&g.jsx("p",{className:"mt-1 text-sm text-red-600",children:s.trainer_id.message})]}),g.jsxs("div",{children:[g.jsx("label",{htmlFor:"room_id",className:"block text-sm font-medium text-gray-700",children:"Аудитория (Опционально)"}),g.jsxs("select",{id:"room_id",...o("room_id"),className:"mt-1 block w-full py-2 px-3 border border-gray-300 bg-white rounded-md shadow-sm focus:outline-none focus:ring-indigo-500 focus:border-indigo-500 sm:text-sm",children:[g.jsx("option",{value:"",children:"Выберите аудиторию"}),v.map(C=>g.jsxs("option",{value:C.id,children:[C.name," (",C.capacity,")"]},C.id))]})]})]}),g.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[g.jsxs("div",{children:[g.jsx("label",{htmlFor:"start_time",className:"block text-sm font-medium text-gray-700",children:"Время начала"}),g.jsx("input",{type:"datetime-local",id:"start_time",...o("start_time"),className:`mt-1 block w-full py-2 px-3 border ${s.start_time?"border-red-500":"border-gray-300"} bg-white rounded-md shadow-sm focus:outline-none focus:ring-indigo-500 focus:border-indigo-500 sm:text-sm`}),s.start_time&&g.jsx("p",{className:"mt-1 text-sm text-red-600",children:s.start_time.message})]}),g.jsxs("div",{children:[g.jsx("label",{htmlFor:"end_time",className:"block text-sm font-medium text-gray-700",children:"Время окончания"}),g.jsx("input",{type:"datetime-local",id:"end_time",...o("end_time"),className:`mt-1 block w-full py-2 px-3 border ${s.end_time?"border-red-500":"border-gray-300"} bg-white rounded-md shadow-sm focus:outline-none focus:ring-indigo-500 focus:border-indigo-500 sm:text-sm`}),s.end_time&&g.jsx("p",{className:"mt-1 text-sm text-red-600",children:s.end_time.message})]})]}),g.jsxs("div",{children:[g.jsx("label",{htmlFor:"lesson_type",className:"block text-sm font-medium text-gray-700",children:"Тип урока"}),g.jsxs("select",{id:"lesson_type",...o("lesson_type"),className:"mt-1 block w-full py-2 px-3 border border-gray-300 bg-white rounded-md shadow-sm focus:outline-none focus:ring-indigo-500 focus:border-indigo-500 sm:text-sm",children:[g.jsx("option",{value:"regular",children:"Обычный"}),g.jsx("option",{value:"exam",children:"Экзамен"}),g.jsx("option",{value:"lab",children:"Лабораторная"}),g.jsx("option",{value:"online",children:"Онлайн"})]})]}),g.jsxs("div",{children:[g.jsx("label",{htmlFor:"description",className:"block text-sm font-medium text-gray-700",children:"Описание (Опционально)"}),g.jsx("textarea",{id:"description",rows:3,...o("description"),className:"mt-1 block w-full py-2 px-3 border border-gray-300 bg-white rounded-md shadow-sm focus:outline-none focus:ring-indigo-500 focus:border-indigo-500 sm:text-sm"})]}),g.jsxs("div",{className:"flex items-center",children:[g.jsx("input",{id:"is_recurring",type:"checkbox",...o("is_recurring"),className:"h-4 w-4 text-indigo-600 focus:ring-indigo-500 border-gray-300 rounded"}),g.jsx("label",{htmlFor:"is_recurring",className:"ml-2 block text-sm text-gray-900",children:"Повторяющийся урок"})]}),g.jsxs("div",{className:"mt-5 sm:mt-4 sm:flex sm:flex-row-reverse",children:[g.jsx("button",{type:"submit",disabled:l,className:"w-full inline-flex justify-center rounded-md border border-transparent shadow-sm px-4 py-2 bg-indigo-600 text-base font-medium text-white hover:bg-indigo-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500 sm:ml-3 sm:w-auto sm:text-sm disabled:bg-indigo-400",children:l?"Планирование...":"Запланировать"}),g.jsx("button",{type:"button",onClick:t,className:"mt-3 w-full inline-flex justify-center rounded-md border border-gray-300 shadow-sm px-4 py-2 bg-white text-base font-medium text-gray-700 hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500 sm:mt-0 sm:w-auto sm:text-sm",children:"Отмена"})]})]})]})]})})]})}):null}const jpe=cl({student_id:Wn({required_error:"ID студента обязателен"}),student_name:Wn({required_error:"Имя студента обязательно"}),status:vd(["pending","present","absent","late","excused"],{required_error:"Статус обязателен"}),notes:Wn().optional()}),Ipe=cl({attendances:EW(jpe)}),_pe=({isOpen:e,onClose:t,lessonId:n,lessonTitle:r})=>{const{addToast:o}=bl(),{control:i,handleSubmit:a,reset:s,setValue:l,formState:{isSubmitting:u,isLoading:d}}=cu({resolver:du(Ipe),defaultValues:{attendances:[]}}),{fields:f}=Bue({control:i,name:"attendances"}),m=qV({control:i,name:"attendances"});c.useEffect(()=>{e&&n&&h()},[e,n]);const h=async()=>{try{const y=await Bn.getLessonAttendance(n);s({attendances:y})}catch(y){console.error("Failed to fetch attendance",y),o("Не удалось загрузить список студентов","error")}},p=async y=>{try{const x=y.attendances.map(w=>{if(w.status==="pending")return null;const C={lesson_id:n,student_id:w.student_id,status:w.status,notes:w.notes};return Bn.updateAttendance(C)}).filter(Boolean);if(x.length===0){t();return}await Promise.all(x),o("Посещаемость успешно сохранена","success"),t()}catch(x){console.error("Failed to save attendance",x),o("Не удалось сохранить данные посещаемости","error")}},b=(y,x)=>{l(`attendances.${y}.status`,x,{shouldDirty:!0})},v={pending:"Ожидает",present:"Присутствовал",absent:"Отсутствовал",late:"Опоздал",excused:"Уважительная"};return e?g.jsx("div",{className:"fixed inset-0 z-50 overflow-y-auto","aria-labelledby":"modal-title",role:"dialog","aria-modal":"true",children:g.jsxs("div",{className:"flex items-end justify-center min-h-screen pt-4 px-4 pb-20 text-center sm:block sm:p-0",children:[g.jsx("div",{className:"fixed inset-0 bg-gray-500 bg-opacity-75 transition-opacity","aria-hidden":"true",onClick:t}),g.jsx("span",{className:"hidden sm:inline-block sm:align-middle sm:h-screen","aria-hidden":"true",children:"​"}),g.jsx("div",{className:"inline-block align-bottom bg-white rounded-lg text-left overflow-hidden shadow-xl transform transition-all sm:my-8 sm:align-middle sm:max-w-3xl sm:w-full",children:g.jsxs("form",{onSubmit:a(p),children:[g.jsx("div",{className:"bg-white px-4 pt-5 pb-4 sm:p-6 sm:pb-4",children:g.jsx("div",{className:"sm:flex sm:items-start",children:g.jsxs("div",{className:"mt-3 text-center sm:mt-0 sm:ml-4 sm:text-left w-full",children:[g.jsxs("h3",{className:"text-lg leading-6 font-medium text-gray-900",id:"modal-title",children:["Посещаемость: ",r||"Урок"]}),d?g.jsx("div",{className:"mt-4 flex justify-center",children:g.jsx("div",{className:"animate-spin rounded-full h-8 w-8 border-b-2 border-indigo-600"})}):g.jsx("div",{className:"mt-4 max-h-[60vh] overflow-y-auto",children:g.jsxs("table",{className:"min-w-full divide-y divide-gray-200",children:[g.jsx("thead",{className:"bg-gray-50",children:g.jsxs("tr",{children:[g.jsx("th",{scope:"col",className:"px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider",children:"Ученик"}),g.jsx("th",{scope:"col",className:"px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider",children:"Статус"})]})}),g.jsx("tbody",{className:"bg-white divide-y divide-gray-200",children:f.map((y,x)=>{var C;const w=((C=m==null?void 0:m[x])==null?void 0:C.status)||y.status;return g.jsxs("tr",{children:[g.jsx("td",{className:"px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900",children:y.student_name}),g.jsx("td",{className:"px-6 py-4 whitespace-nowrap text-sm text-gray-500",children:g.jsx("div",{className:"flex space-x-2",children:["present","absent","late","excused"].map(S=>g.jsx("button",{type:"button",onClick:()=>b(x,S),className:`px-3 py-1 rounded-full text-xs font-medium ${w===S?S==="present"?"bg-green-100 text-green-800":S==="absent"?"bg-red-100 text-red-800":S==="late"?"bg-yellow-100 text-yellow-800":"bg-blue-100 text-blue-800":"bg-gray-100 text-gray-800 hover:bg-gray-200"}`,children:v[S]},S))})})]},y.id)})})]})})]})})}),g.jsxs("div",{className:"bg-gray-50 px-4 py-3 sm:px-6 sm:flex sm:flex-row-reverse",children:[g.jsx("button",{type:"submit",disabled:u,className:"w-full inline-flex justify-center rounded-md border border-transparent shadow-sm px-4 py-2 bg-indigo-600 text-base font-medium text-white hover:bg-indigo-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500 sm:ml-3 sm:w-auto sm:text-sm disabled:bg-indigo-400",children:u?"Сохранение...":"Сохранить"}),g.jsx("button",{type:"button",onClick:t,className:"mt-3 w-full inline-flex justify-center rounded-md border border-gray-300 shadow-sm px-4 py-2 bg-white text-base font-medium text-gray-700 hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500 sm:mt-0 sm:w-auto sm:text-sm",children:"Закрыть"})]})]})})]})}):null};function Npe(){const[e,t]=c.useState(new Date),[n,r]=c.useState([]),[o,i]=c.useState(!0),[a,s]=c.useState(!1),[l,u]=c.useState(!1),[d,f]=c.useState(""),[m,h]=c.useState(""),[p,b]=c.useState(void 0),{addToast:v}=bl(),y=I=>{const _=new Date(I),R=_.getDay()||7;R!==1&&_.setHours(-24*(R-1)),_.setHours(0,0,0,0);const N=new Date(_);return N.setDate(N.getDate()+6),N.setHours(23,59,59,999),{start:_,end:N}},x=async()=>{i(!0);try{const{start:I,end:_}=y(e),R=await Bn.getLessons({start_date:I.toISOString(),end_date:_.toISOString()});r(R.lessons||[])}catch(I){console.error("Failed to fetch lessons",I),v("Не удалось загрузить расписание","error")}finally{i(!1)}};c.useEffect(()=>{x()},[e]);const w=()=>{const I=new Date(e);I.setDate(I.getDate()-7),t(I)},C=()=>{const I=new Date(e);I.setDate(I.getDate()+7),t(I)},{start:S,end:$}=y(e),E=n.reduce((I,_)=>{const R=new Date(_.start_time).toDateString();return I[R]||(I[R]=[]),I[R].push(_),I},{}),O=[];for(let I=0;I<7;I++){const _=new Date(S);_.setDate(_.getDate()+I),O.push(_)}if(o&&n.length===0)return g.jsx("div",{className:"flex justify-center items-center h-full",children:g.jsx("div",{className:"animate-spin rounded-full h-12 w-12 border-b-2 border-indigo-600"})});const P=I=>{b(I),s(!0)},j=async I=>{if(window.confirm("Вы уверены, что хотите удалить это занятие?"))try{await Bn.deleteLesson(I),v("Занятие успешно удалено","success"),x()}catch(_){console.error("Failed to delete lesson",_),v("Не удалось удалить занятие","error")}};return g.jsxs("div",{className:"space-y-6",children:[g.jsxs("header",{className:"flex flex-col sm:flex-row sm:items-center sm:justify-between",children:[g.jsx("h1",{className:"text-3xl font-bold text-gray-900",children:"Расписание"}),g.jsxs("div",{className:"mt-4 sm:mt-0 flex items-center space-x-4",children:[g.jsxs("button",{onClick:()=>s(!0),className:"inline-flex items-center px-4 py-2 border border-transparent text-sm font-medium rounded-md shadow-sm text-white bg-indigo-600 hover:bg-indigo-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500",children:[g.jsx("svg",{className:"-ml-1 mr-2 h-5 w-5",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:g.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 6v6m0 0v6m0-6h6m-6 0H6"})}),"Добавить занятие"]}),g.jsx("button",{onClick:w,className:"p-2 rounded-md hover:bg-gray-100 border border-gray-300",children:"Назад"}),g.jsxs("span",{className:"font-medium text-gray-700",children:[S.toLocaleDateString("ru-RU")," - ",$.toLocaleDateString("ru-RU")]}),g.jsx("button",{onClick:C,className:"p-2 rounded-md hover:bg-gray-100 border border-gray-300",children:"Вперед"})]})]}),g.jsx("div",{className:"grid grid-cols-1 md:grid-cols-7 gap-4",children:O.map(I=>{const _=I.toDateString(),R=E[_]||[],N=I.toDateString()===new Date().toDateString();return g.jsxs("div",{className:`min-h-[200px] bg-white rounded-lg shadow border ${N?"border-indigo-500 ring-1 ring-indigo-500":"border-gray-200"}`,children:[g.jsxs("div",{className:"p-3 border-b border-gray-100 bg-gray-50 rounded-t-lg",children:[g.jsx("p",{className:"text-sm font-semibold text-gray-700",children:I.toLocaleDateString("ru-RU",{weekday:"short"})}),g.jsx("p",{className:"text-xs text-gray-500",children:I.toLocaleDateString("ru-RU")})]}),g.jsx("div",{className:"p-2 space-y-2",children:R.length>0?R.map(A=>g.jsxs("div",{className:"p-2 bg-indigo-50 rounded border border-indigo-100 text-xs",children:[g.jsx("div",{className:"font-semibold text-indigo-700",children:new Date(A.start_time).toLocaleTimeString("ru-RU",{hour:"2-digit",minute:"2-digit"})}),g.jsx("div",{className:"truncate font-medium",title:A.description,children:A.description||"Занятие"}),g.jsxs("div",{className:"text-gray-500",children:["Кабинет ",A.room_id||"Н/Д"]}),g.jsxs("div",{className:"mt-2 flex space-x-1",children:[g.jsx("button",{onClick:()=>{f(A.id),h(A.description||"Занятие"),u(!0)},className:"flex-1 inline-flex justify-center items-center px-2 py-1 border border-transparent text-xs font-medium rounded text-indigo-700 bg-indigo-100 hover:bg-indigo-200 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500",children:"Посещаемость"}),g.jsx("button",{onClick:()=>P(A),className:"inline-flex justify-center items-center px-2 py-1 border border-transparent text-xs font-medium rounded text-blue-700 bg-blue-100 hover:bg-blue-200 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500",title:"Изменить",children:"✎"}),g.jsx("button",{onClick:()=>j(A.id),className:"inline-flex justify-center items-center px-2 py-1 border border-transparent text-xs font-medium rounded text-red-700 bg-red-100 hover:bg-red-200 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-red-500",title:"Удалить",children:"✕"})]})]},A.id)):g.jsx("div",{className:"text-center py-4 text-gray-400 text-xs",children:"Нет занятий"})})]},_)})}),g.jsx(Ppe,{isOpen:a,onClose:()=>{s(!1),b(void 0)},onSuccess:x,lesson:p}),g.jsx(_pe,{isOpen:l,onClose:()=>u(!1),lessonId:d,lessonTitle:m})]})}const Rpe=cl({title:Wn().min(3,"Заголовок должен содержать не менее 3 символов"),description:Wn().optional(),material_type:vd(["document","video","link"]),file_url:Wn().url("Должен быть валидный URL").optional().or(Om("")),access_level:vd(["all","group","private"]),is_public:Em().optional()});function Tpe({isOpen:e,onClose:t,onSuccess:n,material:r}){const{register:o,handleSubmit:i,reset:a,formState:{errors:s,isSubmitting:l}}=cu({resolver:du(Rpe),defaultValues:{title:"",description:"",material_type:"document",file_url:"",access_level:"all",is_public:!1}}),{addToast:u}=bl();c.useEffect(()=>{e&&a(r?{title:r.title,description:r.description||"",material_type:r.material_type,file_url:r.file_url||"",access_level:"all",is_public:r.is_public||!1}:{title:"",description:"",material_type:"document",file_url:"",access_level:"all",is_public:!1})},[e,r,a]);const d=async f=>{var m,h;try{r?(await Bn.updateMaterial(r.id,{...f,description:f.description||void 0,file_url:f.file_url||void 0}),u("Материал успешно обновлен","success")):(await Bn.createMaterial({...f,description:f.description||void 0,file_url:f.file_url||void 0,group_ids:[],tags:[]}),u("Материал успешно создан","success")),n(),t()}catch(p){console.error("Failed to save material",p);const b=((h=(m=p.response)==null?void 0:m.data)==null?void 0:h.detail)||"Не удалось сохранить материал";u(b,"error")}};return e?g.jsx("div",{className:"fixed inset-0 z-50 overflow-y-auto","aria-labelledby":"modal-title",role:"dialog","aria-modal":"true",children:g.jsxs("div",{className:"flex items-end justify-center min-h-screen pt-4 px-4 pb-20 text-center sm:block sm:p-0",children:[g.jsx("div",{className:"fixed inset-0 bg-gray-500 bg-opacity-75 transition-opacity","aria-hidden":"true",onClick:t}),g.jsx("span",{className:"hidden sm:inline-block sm:align-middle sm:h-screen","aria-hidden":"true",children:"​"}),g.jsx("div",{className:"inline-block align-bottom bg-white rounded-lg px-4 pt-5 pb-4 text-left overflow-hidden shadow-xl transform transition-all sm:my-8 sm:align-middle sm:max-w-lg sm:w-full sm:p-6",children:g.jsxs("div",{className:"sm:flex sm:items-start",children:[g.jsx("div",{className:"mx-auto flex-shrink-0 flex items-center justify-center h-12 w-12 rounded-full bg-indigo-100 sm:mx-0 sm:h-10 sm:w-10",children:g.jsx("svg",{className:"h-6 w-6 text-indigo-600",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:g.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 4v16m8-8H4"})})}),g.jsxs("div",{className:"mt-3 text-center sm:mt-0 sm:ml-4 sm:text-left w-full",children:[g.jsx("h3",{className:"text-lg leading-6 font-medium text-gray-900",id:"modal-title",children:r?"Редактировать материал":"Добавить материал"}),g.jsx("div",{className:"mt-2",children:g.jsx("p",{className:"text-sm text-gray-500",children:r?"Обновите детали учебного материала.":"Заполните форму ниже, чтобы добавить новый учебный материал."})}),g.jsxs("form",{onSubmit:i(d),className:"mt-5 space-y-4",children:[g.jsxs("div",{children:[g.jsx("label",{htmlFor:"title",className:"block text-sm font-medium text-gray-700",children:"Заголовок"}),g.jsx("input",{type:"text",id:"title",...o("title"),className:`mt-1 focus:ring-indigo-500 focus:border-indigo-500 block w-full shadow-sm sm:text-sm border ${s.title?"border-red-500":"border-gray-300"} rounded-md border p-2`}),s.title&&g.jsx("p",{className:"mt-1 text-sm text-red-600",children:s.title.message})]}),g.jsxs("div",{children:[g.jsx("label",{htmlFor:"description",className:"block text-sm font-medium text-gray-700",children:"Описание"}),g.jsx("textarea",{id:"description",rows:3,...o("description"),className:"mt-1 focus:ring-indigo-500 focus:border-indigo-500 block w-full shadow-sm sm:text-sm border-gray-300 rounded-md border p-2"})]}),g.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[g.jsxs("div",{children:[g.jsx("label",{htmlFor:"material_type",className:"block text-sm font-medium text-gray-700",children:"Тип"}),g.jsxs("select",{id:"material_type",...o("material_type"),className:"mt-1 block w-full py-2 px-3 border border-gray-300 bg-white rounded-md shadow-sm focus:outline-none focus:ring-indigo-500 focus:border-indigo-500 sm:text-sm",children:[g.jsx("option",{value:"document",children:"Документ"}),g.jsx("option",{value:"video",children:"Видео"}),g.jsx("option",{value:"link",children:"Ссылка"})]})]}),g.jsxs("div",{children:[g.jsx("label",{htmlFor:"access_level",className:"block text-sm font-medium text-gray-700",children:"Доступ"}),g.jsxs("select",{id:"access_level",...o("access_level"),className:"mt-1 block w-full py-2 px-3 border border-gray-300 bg-white rounded-md shadow-sm focus:outline-none focus:ring-indigo-500 focus:border-indigo-500 sm:text-sm",children:[g.jsx("option",{value:"all",children:"Все ученики"}),g.jsx("option",{value:"group",children:"Мои группы"}),g.jsx("option",{value:"private",children:"Личный"})]})]})]}),g.jsxs("div",{children:[g.jsx("label",{htmlFor:"file_url",className:"block text-sm font-medium text-gray-700",children:"Ссылка на файл"}),g.jsx("input",{type:"text",id:"file_url",...o("file_url"),placeholder:"https://...",className:`mt-1 focus:ring-indigo-500 focus:border-indigo-500 block w-full shadow-sm sm:text-sm border ${s.file_url?"border-red-500":"border-gray-300"} rounded-md border p-2`}),s.file_url&&g.jsx("p",{className:"mt-1 text-sm text-red-600",children:s.file_url.message})]}),g.jsxs("div",{className:"flex items-center",children:[g.jsx("input",{id:"is_public",type:"checkbox",...o("is_public"),className:"h-4 w-4 text-indigo-600 focus:ring-indigo-500 border-gray-300 rounded"}),g.jsx("label",{htmlFor:"is_public",className:"ml-2 block text-sm text-gray-900",children:"Публичный (виден всем)"})]}),g.jsxs("div",{className:"mt-5 sm:mt-4 sm:flex sm:flex-row-reverse",children:[g.jsx("button",{type:"submit",disabled:l,className:"w-full inline-flex justify-center rounded-md border border-transparent shadow-sm px-4 py-2 bg-indigo-600 text-base font-medium text-white hover:bg-indigo-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500 sm:ml-3 sm:w-auto sm:text-sm disabled:bg-indigo-400",children:l?"Сохранение...":"Сохранить"}),g.jsx("button",{type:"button",onClick:t,className:"mt-3 w-full inline-flex justify-center rounded-md border border-gray-300 shadow-sm px-4 py-2 bg-white text-base font-medium text-gray-700 hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500 sm:mt-0 sm:w-auto sm:text-sm",children:"Отмена"})]})]})]})]})})]})}):null}function Mpe(){const[e,t]=c.useState([]),[n,r]=c.useState(!0),[o,i]=c.useState(""),[a,s]=c.useState(1),[l,u]=c.useState(0),[d,f]=c.useState(!1),[m,h]=c.useState(null),{addToast:p}=bl(),b=12,v=async()=>{r(!0);try{const S=(a-1)*b,$=await Bn.getMaterials({limit:b,offset:S,search_query:o||void 0});t($.materials||[]),u($.total||0)}catch(S){console.error("Failed to fetch materials",S),p("Не удалось загрузить библиотеку материалов","error")}finally{r(!1)}};c.useEffect(()=>{const S=setTimeout(()=>{v()},500);return()=>clearTimeout(S)},[a,o]);const y=S=>{i(S.target.value),s(1)},x=S=>{h(S),f(!0)},w=async S=>{if(window.confirm("Вы уверены, что хотите удалить этот материал?"))try{await Bn.deleteMaterial(S),p("Материал успешно удален","success"),v()}catch($){console.error("Failed to delete material",$),p("Не удалось удалить материал","error")}},C=Math.ceil(l/b);return g.jsxs("div",{className:"space-y-6",children:[g.jsxs("header",{className:"flex flex-col sm:flex-row sm:items-center sm:justify-between",children:[g.jsx("h1",{className:"text-3xl font-bold text-gray-900",children:"Библиотека материалов"}),g.jsxs("div",{className:"mt-4 sm:mt-0 flex space-x-4 w-full sm:w-auto",children:[g.jsx("div",{className:"w-full sm:w-64",children:g.jsx("input",{type:"text",placeholder:"Поиск материалов...",value:o,onChange:y,className:"w-full shadow-sm focus:ring-indigo-500 focus:border-indigo-500 block sm:text-sm border-gray-300 rounded-md p-2 border"})}),g.jsxs("button",{onClick:()=>f(!0),className:"inline-flex items-center px-4 py-2 border border-transparent text-sm font-medium rounded-md shadow-sm text-white bg-indigo-600 hover:bg-indigo-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500",children:[g.jsx("svg",{className:"-ml-1 mr-2 h-5 w-5",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:g.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 4v16m8-8H4"})}),"Добавить материал"]})]})]}),n?g.jsx("div",{className:"flex justify-center items-center py-12",children:g.jsx("div",{className:"animate-spin rounded-full h-12 w-12 border-b-2 border-indigo-600"})}):e.length>0?g.jsx("div",{className:"grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-6",children:e.map(S=>g.jsxs("div",{className:"bg-white overflow-hidden shadow rounded-lg hover:shadow-md transition",children:[g.jsxs("div",{className:"p-5",children:[g.jsxs("div",{className:"flex items-center",children:[g.jsx("div",{className:"flex-shrink-0",children:S.material_type==="video"?g.jsxs("svg",{className:"h-6 w-6 text-red-500",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:[g.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M14.752 11.168l-3.197-2.132A1 1 0 0010 9.87v4.263a1 1 0 001.555.832l3.197-2.132a1 1 0 000-1.664z"}),g.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M21 12a9 9 0 11-18 0 9 9 0 0118 0z"})]}):g.jsx("svg",{className:"h-6 w-6 text-indigo-500",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:g.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z"})})}),g.jsxs("div",{className:"ml-5 w-0 flex-1",children:[g.jsx("h3",{className:"text-lg font-medium text-gray-900 truncate",title:S.title,children:S.title}),g.jsx("p",{className:"text-sm text-gray-500 truncate",children:S.material_type})]})]}),g.jsx("div",{className:"mt-4",children:g.jsx("p",{className:"text-sm text-gray-500 line-clamp-3",children:S.description||"Нет описания."})})]}),g.jsxs("div",{className:"bg-gray-50 px-5 py-3 flex justify-between items-center",children:[g.jsx("div",{className:"text-sm",children:g.jsx("a",{href:S.file_url||"#",target:"_blank",rel:"noopener noreferrer",className:"font-medium text-indigo-600 hover:text-indigo-500",children:"Просмотреть материал"})}),g.jsxs("div",{className:"flex space-x-2",children:[g.jsx("button",{onClick:()=>x(S),className:"text-gray-400 hover:text-indigo-600",title:"Edit",children:g.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-5 w-5",viewBox:"0 0 20 20",fill:"currentColor",children:g.jsx("path",{d:"M13.586 3.586a2 2 0 112.828 2.828l-.793.793-2.828-2.828.793-.793zM11.379 5.793L3 14.172V17h2.828l8.38-8.379-2.83-2.828z"})})}),g.jsx("button",{onClick:()=>w(S.id),className:"text-gray-400 hover:text-red-600",title:"Delete",children:g.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",className:"h-5 w-5",viewBox:"0 0 20 20",fill:"currentColor",children:g.jsx("path",{fillRule:"evenodd",d:"M9 2a1 1 0 00-.894.553L7.382 4H4a1 1 0 000 2v10a2 2 0 002 2h8a2 2 0 002-2V6a1 1 0 100-2h-3.382l-.724-1.447A1 1 0 0011 2H9zM7 8a1 1 0 012 0v6a1 1 0 11-2 0V8zm5-1a1 1 0 00-1 1v6a1 1 0 102 0V8a1 1 0 00-1-1z",clipRule:"evenodd"})})})]})]})]},S.id))}):g.jsxs("div",{className:"text-center py-12 bg-white rounded-lg shadow",children:[g.jsx("svg",{className:"mx-auto h-12 w-12 text-gray-400",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:g.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M9 13h6m-3-3v6m-9 1V7a2 2 0 012-2h6l2 2h6a2 2 0 012 2v8a2 2 0 01-2 2H5a2 2 0 01-2-2z"})}),g.jsx("h3",{className:"mt-2 text-sm font-medium text-gray-900",children:"No materials found"}),g.jsx("p",{className:"mt-1 text-sm text-gray-500",children:"Try adjusting your search terms."})]}),C>1&&g.jsx("div",{className:"flex justify-center mt-6",children:g.jsxs("nav",{className:"relative z-0 inline-flex rounded-md shadow-sm -space-x-px","aria-label":"Pagination",children:[g.jsxs("button",{onClick:()=>s(S=>Math.max(1,S-1)),disabled:a===1,className:"relative inline-flex items-center px-2 py-2 rounded-l-md border border-gray-300 bg-white text-sm font-medium text-gray-500 hover:bg-gray-50 disabled:bg-gray-100 disabled:cursor-not-allowed",children:[g.jsx("span",{className:"sr-only",children:"Previous"}),g.jsx("svg",{className:"h-5 w-5",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",children:g.jsx("path",{fillRule:"evenodd",d:"M12.707 5.293a1 1 0 010 1.414L9.414 10l3.293 3.293a1 1 0 01-1.414 1.414l-4-4a1 1 0 010-1.414l4-4a1 1 0 011.414 0z",clipRule:"evenodd"})})]}),g.jsxs("span",{className:"relative inline-flex items-center px-4 py-2 border border-gray-300 bg-white text-sm font-medium text-gray-700",children:["Page ",a," of ",C]}),g.jsxs("button",{onClick:()=>s(S=>Math.min(C,S+1)),disabled:a===C,className:"relative inline-flex items-center px-2 py-2 rounded-r-md border border-gray-300 bg-white text-sm font-medium text-gray-500 hover:bg-gray-50 disabled:bg-gray-100 disabled:cursor-not-allowed",children:[g.jsx("span",{className:"sr-only",children:"Next"}),g.jsx("svg",{className:"h-5 w-5",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",children:g.jsx("path",{fillRule:"evenodd",d:"M7.293 14.707a1 1 0 010-1.414L10.586 10 7.293 6.707a1 1 0 011.414-1.414l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414 0z",clipRule:"evenodd"})})]})]})}),g.jsx(Tpe,{isOpen:d,onClose:()=>{f(!1),h(null)},onSuccess:v,material:m||void 0})]})}const kpe=cl({student_id:Wn().min(1,"Ученик обязателен"),lesson_id:Wn().min(1,"Урок обязателен"),title:Wn().min(3,"Заголовок должен содержать не менее 3 символов"),content:Wn().min(10,"Содержимое должно содержать не менее 10 символов"),entry_type:vd(["academic","behavioral","note"]),grade:Wn().optional(),behavior_rating:nx().min(1).max(5),is_public:Em().optional()});function Ape({isOpen:e,onClose:t,onSuccess:n,entry:r}){const[o,i]=c.useState(!1),{addToast:a}=bl(),[s,l]=c.useState([]),[u,d]=c.useState([]),{register:f,handleSubmit:m,reset:h,formState:{errors:p}}=cu({resolver:du(kpe),defaultValues:{student_id:"",lesson_id:"",title:"",content:"",entry_type:"academic",grade:"",behavior_rating:5,is_public:!1}});c.useEffect(()=>{e&&(b(),h(r?{student_id:r.student_id,lesson_id:r.lesson_id,title:r.title,content:r.content,entry_type:r.entry_type,grade:r.grade||"",behavior_rating:r.behavior_rating||5,is_public:r.is_public||!1}:{student_id:"",lesson_id:"",title:"",content:"",entry_type:"academic",grade:"",behavior_rating:5,is_public:!1}))},[e,r,h]);const b=async()=>{try{const[y,x]=await Promise.all([Bn.getStudents(),Bn.getLessonsDropdown()]);l(y),d(x)}catch(y){console.error("Failed to fetch options",y),a("Не удалось загрузить данные формы","error")}},v=async y=>{var x,w;i(!0);try{r?(await Bn.updateDiaryEntry(r.id,{...y,grade:y.grade||void 0}),a("Запись обновлена успешно","success")):(await Bn.createDiaryEntry({...y,grade:y.grade||void 0}),a("Запись создана успешно","success")),n(),t()}catch(C){console.error("Failed to save diary entry",C);const S=((w=(x=C.response)==null?void 0:x.data)==null?void 0:w.detail)||"Не удалось сохранить запись";a(S,"error")}finally{i(!1)}};return e?g.jsx("div",{className:"fixed inset-0 z-50 overflow-y-auto","aria-labelledby":"modal-title",role:"dialog","aria-modal":"true",children:g.jsxs("div",{className:"flex items-end justify-center min-h-screen pt-4 px-4 pb-20 text-center sm:block sm:p-0",children:[g.jsx("div",{className:"fixed inset-0 bg-gray-500 bg-opacity-75 transition-opacity","aria-hidden":"true",onClick:t}),g.jsx("span",{className:"hidden sm:inline-block sm:align-middle sm:h-screen","aria-hidden":"true",children:"​"}),g.jsx("div",{className:"inline-block align-bottom bg-white rounded-lg px-4 pt-5 pb-4 text-left overflow-hidden shadow-xl transform transition-all sm:my-8 sm:align-middle sm:max-w-lg sm:w-full sm:p-6",children:g.jsxs("div",{className:"sm:flex sm:items-start",children:[g.jsx("div",{className:"mx-auto flex-shrink-0 flex items-center justify-center h-12 w-12 rounded-full bg-indigo-100 sm:mx-0 sm:h-10 sm:w-10",children:g.jsx("svg",{className:"h-6 w-6 text-indigo-600",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:g.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M11 5H6a2 2 0 00-2 2v11a2 2 0 002 2h11a2 2 0 002-2v-5m-1.414-9.414a2 2 0 112.828 2.828L11.828 15H9v-2.828l8.586-8.586z"})})}),g.jsxs("div",{className:"mt-3 text-center sm:mt-0 sm:ml-4 sm:text-left w-full",children:[g.jsx("h3",{className:"text-lg leading-6 font-medium text-gray-900",id:"modal-title",children:r?"Редактировать запись":"Добавить запись"}),g.jsxs("form",{onSubmit:m(v),className:"mt-5 space-y-4",children:[g.jsxs("div",{children:[g.jsx("label",{htmlFor:"student_id",className:"block text-sm font-medium text-gray-700",children:"Ученик"}),g.jsxs("select",{id:"student_id",...f("student_id"),className:"mt-1 block w-full py-2 px-3 border border-gray-300 bg-white rounded-md shadow-sm focus:outline-none focus:ring-indigo-500 focus:border-indigo-500 sm:text-sm",children:[g.jsx("option",{value:"",children:"Выберите ученика"}),s.map(y=>g.jsx("option",{value:y.id,children:y.full_name},y.id))]}),p.student_id&&g.jsx("p",{className:"mt-1 text-sm text-red-600",children:p.student_id.message})]}),g.jsxs("div",{children:[g.jsx("label",{htmlFor:"lesson_id",className:"block text-sm font-medium text-gray-700",children:"Урок"}),g.jsxs("select",{id:"lesson_id",...f("lesson_id"),className:"mt-1 block w-full py-2 px-3 border border-gray-300 bg-white rounded-md shadow-sm focus:outline-none focus:ring-indigo-500 focus:border-indigo-500 sm:text-sm",children:[g.jsx("option",{value:"",children:"Выберите урок"}),u.map(y=>g.jsxs("option",{value:y.id,children:[new Date(y.start_time).toLocaleString()," - ",y.name]},y.id))]}),p.lesson_id&&g.jsx("p",{className:"mt-1 text-sm text-red-600",children:p.lesson_id.message})]}),g.jsxs("div",{children:[g.jsx("label",{htmlFor:"title",className:"block text-sm font-medium text-gray-700",children:"Заголовок / Предмет"}),g.jsx("input",{type:"text",id:"title",...f("title"),className:"mt-1 focus:ring-indigo-500 focus:border-indigo-500 block w-full shadow-sm sm:text-sm border-gray-300 rounded-md border p-2"}),p.title&&g.jsx("p",{className:"mt-1 text-sm text-red-600",children:p.title.message})]}),g.jsxs("div",{children:[g.jsx("label",{htmlFor:"content",className:"block text-sm font-medium text-gray-700",children:"Содержимое / Отзыв"}),g.jsx("textarea",{id:"content",rows:3,...f("content"),className:"mt-1 focus:ring-indigo-500 focus:border-indigo-500 block w-full shadow-sm sm:text-sm border-gray-300 rounded-md border p-2"}),p.content&&g.jsx("p",{className:"mt-1 text-sm text-red-600",children:p.content.message})]}),g.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[g.jsxs("div",{children:[g.jsx("label",{htmlFor:"entry_type",className:"block text-sm font-medium text-gray-700",children:"Тип"}),g.jsxs("select",{id:"entry_type",...f("entry_type"),className:"mt-1 block w-full py-2 px-3 border border-gray-300 bg-white rounded-md shadow-sm focus:outline-none focus:ring-indigo-500 focus:border-indigo-500 sm:text-sm",children:[g.jsx("option",{value:"academic",children:"Академическая"}),g.jsx("option",{value:"behavioral",children:"Поведенческая"}),g.jsx("option",{value:"note",children:"Заметка"})]}),p.entry_type&&g.jsx("p",{className:"mt-1 text-sm text-red-600",children:p.entry_type.message})]}),g.jsxs("div",{children:[g.jsx("label",{htmlFor:"grade",className:"block text-sm font-medium text-gray-700",children:"Оценка (необязательно)"}),g.jsx("input",{type:"text",id:"grade",...f("grade"),className:"mt-1 focus:ring-indigo-500 focus:border-indigo-500 block w-full shadow-sm sm:text-sm border-gray-300 rounded-md border p-2"}),p.grade&&g.jsx("p",{className:"mt-1 text-sm text-red-600",children:p.grade.message})]})]}),g.jsxs("div",{children:[g.jsx("label",{htmlFor:"behavior_rating",className:"block text-sm font-medium text-gray-700",children:"Оценка поведения (1-5)"}),g.jsx("input",{type:"number",min:"1",max:"5",id:"behavior_rating",...f("behavior_rating"),className:"mt-1 focus:ring-indigo-500 focus:border-indigo-500 block w-full shadow-sm sm:text-sm border-gray-300 rounded-md border p-2"}),p.behavior_rating&&g.jsx("p",{className:"mt-1 text-sm text-red-600",children:p.behavior_rating.message})]}),g.jsxs("div",{className:"flex items-center",children:[g.jsx("input",{id:"is_public",type:"checkbox",...f("is_public"),className:"h-4 w-4 text-indigo-600 focus:ring-indigo-500 border-gray-300 rounded"}),g.jsx("label",{htmlFor:"is_public",className:"ml-2 block text-sm text-gray-900",children:"Публичная (видна ученику/родителям)"})]}),g.jsxs("div",{className:"mt-5 sm:mt-4 sm:flex sm:flex-row-reverse",children:[g.jsx("button",{type:"submit",disabled:o,className:"w-full inline-flex justify-center rounded-md border border-transparent shadow-sm px-4 py-2 bg-indigo-600 text-base font-medium text-white hover:bg-indigo-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500 sm:ml-3 sm:w-auto sm:text-sm disabled:bg-indigo-400",children:o?"Сохранение...":"Сохранить"}),g.jsx("button",{type:"button",onClick:t,className:"mt-3 w-full inline-flex justify-center rounded-md border border-gray-300 shadow-sm px-4 py-2 bg-white text-base font-medium text-gray-700 hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500 sm:mt-0 sm:w-auto sm:text-sm",children:"Отмена"})]})]})]})]})})]})}):null}function Dpe(){const[e,t]=c.useState([]),[n,r]=c.useState(!0),[o,i]=c.useState(1),[a,s]=c.useState(0),[l,u]=c.useState(!1),[d,f]=c.useState(void 0),{addToast:m}=bl(),h=10,p=async()=>{r(!0);try{const x=(o-1)*h,w=await Bn.getDiaryEntries({limit:h,offset:x});t(w.entries||[]),s(w.total||0)}catch(x){console.error("Failed to fetch diary entries",x),m("Не удалось загрузить записи дневника","error")}finally{r(!1)}};c.useEffect(()=>{p()},[o]);const b=x=>{f(x),u(!0)},v=async x=>{if(window.confirm("Вы уверены, что хотите удалить эту запись?"))try{await Bn.deleteDiaryEntry(x),m("Запись дневника успешно удалена","success"),p()}catch(w){console.error("Failed to delete diary entry",w),m("Не удалось удалить запись дневника","error")}},y=Math.ceil(a/h);return g.jsxs("div",{className:"space-y-6",children:[g.jsxs("header",{className:"flex flex-col sm:flex-row sm:items-center sm:justify-between",children:[g.jsx("h1",{className:"text-3xl font-bold text-gray-900",children:"Дневник и Прогресс"}),g.jsx("div",{className:"mt-4 sm:mt-0",children:g.jsxs("button",{onClick:()=>u(!0),className:"inline-flex items-center px-4 py-2 border border-transparent text-sm font-medium rounded-md shadow-sm text-white bg-indigo-600 hover:bg-indigo-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500",children:[g.jsx("svg",{className:"-ml-1 mr-2 h-5 w-5",xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:g.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M11 5H6a2 2 0 00-2 2v11a2 2 0 002 2h11a2 2 0 002-2v-5m-1.414-9.414a2 2 0 112.828 2.828L11.828 15H9v-2.828l8.586-8.586z"})}),"Добавить запись"]})})]}),n?g.jsx("div",{className:"flex justify-center items-center py-12",children:g.jsx("div",{className:"animate-spin rounded-full h-12 w-12 border-b-2 border-indigo-600"})}):e.length>0?g.jsx("div",{className:"bg-white shadow overflow-hidden sm:rounded-md",children:g.jsx("ul",{className:"divide-y divide-gray-200",children:e.map(x=>{var w;return g.jsx("li",{children:g.jsxs("div",{className:"px-4 py-4 sm:px-6",children:[g.jsxs("div",{className:"flex items-center justify-between",children:[g.jsx("p",{className:"text-sm font-medium text-indigo-600 truncate",children:x.title}),g.jsx("div",{className:"ml-2 flex-shrink-0 flex",children:x.grade&&g.jsxs("span",{className:"px-2 inline-flex text-xs leading-5 font-semibold rounded-full bg-green-100 text-green-800",children:["Grade: ",x.grade]})})]}),g.jsxs("div",{className:"mt-2 sm:flex sm:justify-between",children:[g.jsx("div",{className:"sm:flex",children:g.jsx("p",{className:"flex items-center text-sm text-gray-500",children:x.content})}),g.jsxs("div",{className:"mt-2 flex items-center text-sm text-gray-500 sm:mt-0",children:[g.jsx("svg",{className:"flex-shrink-0 mr-1.5 h-5 w-5 text-gray-400",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",children:g.jsx("path",{fillRule:"evenodd",d:"M6 2a1 1 0 00-1 1v1H4a2 2 0 00-2 2v10a2 2 0 002 2h12a2 2 0 002-2V6a2 2 0 00-2-2h-1V3a1 1 0 10-2 0v1H7V3a1 1 0 00-1-1zm0 5a1 1 0 000 2h8a1 1 0 100-2H6z",clipRule:"evenodd"})}),g.jsx("p",{children:new Date(x.created_at).toLocaleDateString()})]})]}),g.jsx("div",{className:"mt-2",children:g.jsxs("div",{className:"flex flex-wrap gap-2 items-center justify-between",children:[g.jsx("div",{className:"flex flex-wrap gap-2",children:(w=x.tags)==null?void 0:w.map((C,S)=>g.jsx("span",{className:"inline-flex items-center px-2 py-0.5 rounded text-xs font-medium bg-gray-100 text-gray-800",children:C},S))}),g.jsxs("div",{className:"flex space-x-2",children:[g.jsx("button",{onClick:()=>b(x),className:"inline-flex items-center px-2 py-1 border border-gray-300 shadow-sm text-xs font-medium rounded text-gray-700 bg-white hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500",children:"Изменить"}),g.jsx("button",{onClick:()=>v(x.id),className:"inline-flex items-center px-2 py-1 border border-transparent shadow-sm text-xs font-medium rounded text-white bg-red-600 hover:bg-red-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-red-500",children:"Удалить"})]})]})})]})},x.id)})})}):g.jsxs("div",{className:"text-center py-12 bg-white rounded-lg shadow",children:[g.jsx("svg",{className:"mx-auto h-12 w-12 text-gray-400",fill:"none",viewBox:"0 0 24 24",stroke:"currentColor",children:g.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M12 6.253v13m0-13C10.832 5.477 9.246 5 7.5 5S4.168 5.477 3 6.253v13C4.168 18.477 5.754 18 7.5 18s3.332.477 4.5 1.253m0-13C13.168 5.477 14.754 5 16.5 5c1.747 0 3.332.477 4.5 1.253v13C19.832 18.477 18.247 18 16.5 18c-1.746 0-3.332.477-4.5 1.253"})}),g.jsx("h3",{className:"mt-2 text-sm font-medium text-gray-900",children:"Записей в дневнике не найдено"}),g.jsx("p",{className:"mt-1 text-sm text-gray-500",children:"Ваш учебный прогресс появится здесь."})]}),y>1&&g.jsx("div",{className:"flex justify-center mt-6",children:g.jsxs("nav",{className:"relative z-0 inline-flex rounded-md shadow-sm -space-x-px","aria-label":"Pagination",children:[g.jsxs("button",{onClick:()=>i(x=>Math.max(1,x-1)),disabled:o===1,className:"relative inline-flex items-center px-2 py-2 rounded-l-md border border-gray-300 bg-white text-sm font-medium text-gray-500 hover:bg-gray-50 disabled:bg-gray-100 disabled:cursor-not-allowed",children:[g.jsx("span",{className:"sr-only",children:"Previous"}),g.jsx("svg",{className:"h-5 w-5",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",children:g.jsx("path",{fillRule:"evenodd",d:"M12.707 5.293a1 1 0 010 1.414L9.414 10l3.293 3.293a1 1 0 01-1.414 1.414l-4-4a1 1 0 010-1.414l4-4a1 1 0 011.414 0z",clipRule:"evenodd"})})]}),g.jsxs("span",{className:"relative inline-flex items-center px-4 py-2 border border-gray-300 bg-white text-sm font-medium text-gray-700",children:["Страница ",o," из ",y]}),g.jsxs("button",{onClick:()=>i(x=>Math.min(y,x+1)),disabled:o===y,className:"relative inline-flex items-center px-2 py-2 rounded-r-md border border-gray-300 bg-white text-sm font-medium text-gray-500 hover:bg-gray-50 disabled:bg-gray-100 disabled:cursor-not-allowed",children:[g.jsx("span",{className:"sr-only",children:"Next"}),g.jsx("svg",{className:"h-5 w-5",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor","aria-hidden":"true",children:g.jsx("path",{fillRule:"evenodd",d:"M7.293 14.707a1 1 0 010-1.414L10.586 10 7.293 6.707a1 1 0 011.414-1.414l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414 0z",clipRule:"evenodd"})})]})]})}),g.jsx(Ape,{isOpen:l,onClose:()=>{u(!1),f(void 0)},onSuccess:p,entry:d})]})}function jW(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=jW(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function Zn(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=jW(e))&&(r&&(r+=" "),r+=t);return r}var Lpe=["dangerouslySetInnerHTML","onCopy","onCopyCapture","onCut","onCutCapture","onPaste","onPasteCapture","onCompositionEnd","onCompositionEndCapture","onCompositionStart","onCompositionStartCapture","onCompositionUpdate","onCompositionUpdateCapture","onFocus","onFocusCapture","onBlur","onBlurCapture","onChange","onChangeCapture","onBeforeInput","onBeforeInputCapture","onInput","onInputCapture","onReset","onResetCapture","onSubmit","onSubmitCapture","onInvalid","onInvalidCapture","onLoad","onLoadCapture","onError","onErrorCapture","onKeyDown","onKeyDownCapture","onKeyPress","onKeyPressCapture","onKeyUp","onKeyUpCapture","onAbort","onAbortCapture","onCanPlay","onCanPlayCapture","onCanPlayThrough","onCanPlayThroughCapture","onDurationChange","onDurationChangeCapture","onEmptied","onEmptiedCapture","onEncrypted","onEncryptedCapture","onEnded","onEndedCapture","onLoadedData","onLoadedDataCapture","onLoadedMetadata","onLoadedMetadataCapture","onLoadStart","onLoadStartCapture","onPause","onPauseCapture","onPlay","onPlayCapture","onPlaying","onPlayingCapture","onProgress","onProgressCapture","onRateChange","onRateChangeCapture","onSeeked","onSeekedCapture","onSeeking","onSeekingCapture","onStalled","onStalledCapture","onSuspend","onSuspendCapture","onTimeUpdate","onTimeUpdateCapture","onVolumeChange","onVolumeChangeCapture","onWaiting","onWaitingCapture","onAuxClick","onAuxClickCapture","onClick","onClickCapture","onContextMenu","onContextMenuCapture","onDoubleClick","onDoubleClickCapture","onDrag","onDragCapture","onDragEnd","onDragEndCapture","onDragEnter","onDragEnterCapture","onDragExit","onDragExitCapture","onDragLeave","onDragLeaveCapture","onDragOver","onDragOverCapture","onDragStart","onDragStartCapture","onDrop","onDropCapture","onMouseDown","onMouseDownCapture","onMouseEnter","onMouseLeave","onMouseMove","onMouseMoveCapture","onMouseOut","onMouseOutCapture","onMouseOver","onMouseOverCapture","onMouseUp","onMouseUpCapture","onSelect","onSelectCapture","onTouchCancel","onTouchCancelCapture","onTouchEnd","onTouchEndCapture","onTouchMove","onTouchMoveCapture","onTouchStart","onTouchStartCapture","onPointerDown","onPointerDownCapture","onPointerMove","onPointerMoveCapture","onPointerUp","onPointerUpCapture","onPointerCancel","onPointerCancelCapture","onPointerEnter","onPointerEnterCapture","onPointerLeave","onPointerLeaveCapture","onPointerOver","onPointerOverCapture","onPointerOut","onPointerOutCapture","onGotPointerCapture","onGotPointerCaptureCapture","onLostPointerCapture","onLostPointerCaptureCapture","onScroll","onScrollCapture","onWheel","onWheelCapture","onAnimationStart","onAnimationStartCapture","onAnimationEnd","onAnimationEndCapture","onAnimationIteration","onAnimationIterationCapture","onTransitionEnd","onTransitionEndCapture"];function FN(e){if(typeof e!="string")return!1;var t=Lpe;return t.includes(e)}var zpe=["aria-activedescendant","aria-atomic","aria-autocomplete","aria-busy","aria-checked","aria-colcount","aria-colindex","aria-colspan","aria-controls","aria-current","aria-describedby","aria-details","aria-disabled","aria-errormessage","aria-expanded","aria-flowto","aria-haspopup","aria-hidden","aria-invalid","aria-keyshortcuts","aria-label","aria-labelledby","aria-level","aria-live","aria-modal","aria-multiline","aria-multiselectable","aria-orientation","aria-owns","aria-placeholder","aria-posinset","aria-pressed","aria-readonly","aria-relevant","aria-required","aria-roledescription","aria-rowcount","aria-rowindex","aria-rowspan","aria-selected","aria-setsize","aria-sort","aria-valuemax","aria-valuemin","aria-valuenow","aria-valuetext","className","color","height","id","lang","max","media","method","min","name","style","target","width","role","tabIndex","accentHeight","accumulate","additive","alignmentBaseline","allowReorder","alphabetic","amplitude","arabicForm","ascent","attributeName","attributeType","autoReverse","azimuth","baseFrequency","baselineShift","baseProfile","bbox","begin","bias","by","calcMode","capHeight","clip","clipPath","clipPathUnits","clipRule","colorInterpolation","colorInterpolationFilters","colorProfile","colorRendering","contentScriptType","contentStyleType","cursor","cx","cy","d","decelerate","descent","diffuseConstant","direction","display","divisor","dominantBaseline","dur","dx","dy","edgeMode","elevation","enableBackground","end","exponent","externalResourcesRequired","fill","fillOpacity","fillRule","filter","filterRes","filterUnits","floodColor","floodOpacity","focusable","fontFamily","fontSize","fontSizeAdjust","fontStretch","fontStyle","fontVariant","fontWeight","format","from","fx","fy","g1","g2","glyphName","glyphOrientationHorizontal","glyphOrientationVertical","glyphRef","gradientTransform","gradientUnits","hanging","horizAdvX","horizOriginX","href","ideographic","imageRendering","in2","in","intercept","k1","k2","k3","k4","k","kernelMatrix","kernelUnitLength","kerning","keyPoints","keySplines","keyTimes","lengthAdjust","letterSpacing","lightingColor","limitingConeAngle","local","markerEnd","markerHeight","markerMid","markerStart","markerUnits","markerWidth","mask","maskContentUnits","maskUnits","mathematical","mode","numOctaves","offset","opacity","operator","order","orient","orientation","origin","overflow","overlinePosition","overlineThickness","paintOrder","panose1","pathLength","patternContentUnits","patternTransform","patternUnits","pointerEvents","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","r","radius","refX","refY","renderingIntent","repeatCount","repeatDur","requiredExtensions","requiredFeatures","restart","result","rotate","rx","ry","seed","shapeRendering","slope","spacing","specularConstant","specularExponent","speed","spreadMethod","startOffset","stdDeviation","stemh","stemv","stitchTiles","stopColor","stopOpacity","strikethroughPosition","strikethroughThickness","string","stroke","strokeDasharray","strokeDashoffset","strokeLinecap","strokeLinejoin","strokeMiterlimit","strokeOpacity","strokeWidth","surfaceScale","systemLanguage","tableValues","targetX","targetY","textAnchor","textDecoration","textLength","textRendering","to","transform","u1","u2","underlinePosition","underlineThickness","unicode","unicodeBidi","unicodeRange","unitsPerEm","vAlphabetic","values","vectorEffect","version","vertAdvY","vertOriginX","vertOriginY","vHanging","vIdeographic","viewTarget","visibility","vMathematical","widths","wordSpacing","writingMode","x1","x2","x","xChannelSelector","xHeight","xlinkActuate","xlinkArcrole","xlinkHref","xlinkRole","xlinkShow","xlinkTitle","xlinkType","xmlBase","xmlLang","xmlns","xmlnsXlink","xmlSpace","y1","y2","y","yChannelSelector","z","zoomAndPan","ref","key","angle"],Fpe=new Set(zpe);function IW(e){return typeof e!="string"?!1:Fpe.has(e)}function _W(e){return typeof e=="string"&&e.startsWith("data-")}function Ds(e){if(typeof e!="object"||e===null)return{};var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(IW(n)||_W(n))&&(t[n]=e[n]);return t}function xg(e){if(e==null)return null;if(c.isValidElement(e)&&typeof e.props=="object"&&e.props!==null){var t=e.props;return Ds(t)}return typeof e=="object"&&!Array.isArray(e)?Ds(e):null}function ia(e){var t={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(IW(n)||_W(n)||FN(n))&&(t[n]=e[n]);return t}function sit(e){return e==null?null:c.isValidElement(e)?ia(e.props):typeof e=="object"&&!Array.isArray(e)?ia(e):null}var Bpe=["children","width","height","viewBox","className","style","title","desc"];function CO(){return CO=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},CO.apply(null,arguments)}function Hpe(e,t){if(e==null)return{};var n,r,o=Vpe(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function Vpe(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}var BN=c.forwardRef((e,t)=>{var{children:n,width:r,height:o,viewBox:i,className:a,style:s,title:l,desc:u}=e,d=Hpe(e,Bpe),f=i||{width:r,height:o,x:0,y:0},m=Zn("recharts-surface",a);return c.createElement("svg",CO({},ia(d),{className:m,width:r,height:o,style:s,viewBox:"".concat(f.x," ").concat(f.y," ").concat(f.width," ").concat(f.height),ref:t}),c.createElement("title",null,l),c.createElement("desc",null,u),n)}),Wpe=["children","className"];function $O(){return $O=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},$O.apply(null,arguments)}function Upe(e,t){if(e==null)return{};var n,r,o=Kpe(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function Kpe(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}var Bi=c.forwardRef((e,t)=>{var{children:n,className:r}=e,o=Upe(e,Wpe),i=Zn("recharts-layer",r);return c.createElement("g",$O({className:i},ia(o),{ref:t}),n)}),NW=c.createContext(null),qpe=()=>c.useContext(NW);function ur(e){return function(){return e}}const RW=Math.cos,rx=Math.sin,Ks=Math.sqrt,ox=Math.PI,nw=2*ox,EO=Math.PI,OO=2*EO,_u=1e-6,Gpe=OO-_u;function TW(e){this._+=e[0];for(let t=1,n=e.length;t<n;++t)this._+=arguments[t]+e[t]}function Xpe(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return TW;const n=10**t;return function(r){this._+=r[0];for(let o=1,i=r.length;o<i;++o)this._+=Math.round(arguments[o]*n)/n+r[o]}}class Ype{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?TW:Xpe(t)}moveTo(t,n){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(t,n){this._append`L${this._x1=+t},${this._y1=+n}`}quadraticCurveTo(t,n,r,o){this._append`Q${+t},${+n},${this._x1=+r},${this._y1=+o}`}bezierCurveTo(t,n,r,o,i,a){this._append`C${+t},${+n},${+r},${+o},${this._x1=+i},${this._y1=+a}`}arcTo(t,n,r,o,i){if(t=+t,n=+n,r=+r,o=+o,i=+i,i<0)throw new Error(`negative radius: ${i}`);let a=this._x1,s=this._y1,l=r-t,u=o-n,d=a-t,f=s-n,m=d*d+f*f;if(this._x1===null)this._append`M${this._x1=t},${this._y1=n}`;else if(m>_u)if(!(Math.abs(f*l-u*d)>_u)||!i)this._append`L${this._x1=t},${this._y1=n}`;else{let h=r-a,p=o-s,b=l*l+u*u,v=h*h+p*p,y=Math.sqrt(b),x=Math.sqrt(m),w=i*Math.tan((EO-Math.acos((b+m-v)/(2*y*x)))/2),C=w/x,S=w/y;Math.abs(C-1)>_u&&this._append`L${t+C*d},${n+C*f}`,this._append`A${i},${i},0,0,${+(f*h>d*p)},${this._x1=t+S*l},${this._y1=n+S*u}`}}arc(t,n,r,o,i,a){if(t=+t,n=+n,r=+r,a=!!a,r<0)throw new Error(`negative radius: ${r}`);let s=r*Math.cos(o),l=r*Math.sin(o),u=t+s,d=n+l,f=1^a,m=a?o-i:i-o;this._x1===null?this._append`M${u},${d}`:(Math.abs(this._x1-u)>_u||Math.abs(this._y1-d)>_u)&&this._append`L${u},${d}`,r&&(m<0&&(m=m%OO+OO),m>Gpe?this._append`A${r},${r},0,1,${f},${t-s},${n-l}A${r},${r},0,1,${f},${this._x1=u},${this._y1=d}`:m>_u&&this._append`A${r},${r},0,${+(m>=EO)},${f},${this._x1=t+r*Math.cos(i)},${this._y1=n+r*Math.sin(i)}`)}rect(t,n,r,o){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}h${r=+r}v${+o}h${-r}Z`}toString(){return this._}}function HN(e){let t=3;return e.digits=function(n){if(!arguments.length)return t;if(n==null)t=null;else{const r=Math.floor(n);if(!(r>=0))throw new RangeError(`invalid digits: ${n}`);t=r}return e},()=>new Ype(t)}function VN(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function MW(e){this._context=e}MW.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t);break}}};function rw(e){return new MW(e)}function kW(e){return e[0]}function AW(e){return e[1]}function DW(e,t){var n=ur(!0),r=null,o=rw,i=null,a=HN(s);e=typeof e=="function"?e:e===void 0?kW:ur(e),t=typeof t=="function"?t:t===void 0?AW:ur(t);function s(l){var u,d=(l=VN(l)).length,f,m=!1,h;for(r==null&&(i=o(h=a())),u=0;u<=d;++u)!(u<d&&n(f=l[u],u,l))===m&&((m=!m)?i.lineStart():i.lineEnd()),m&&i.point(+e(f,u,l),+t(f,u,l));if(h)return i=null,h+""||null}return s.x=function(l){return arguments.length?(e=typeof l=="function"?l:ur(+l),s):e},s.y=function(l){return arguments.length?(t=typeof l=="function"?l:ur(+l),s):t},s.defined=function(l){return arguments.length?(n=typeof l=="function"?l:ur(!!l),s):n},s.curve=function(l){return arguments.length?(o=l,r!=null&&(i=o(r)),s):o},s.context=function(l){return arguments.length?(l==null?r=i=null:i=o(r=l),s):r},s}function F0(e,t,n){var r=null,o=ur(!0),i=null,a=rw,s=null,l=HN(u);e=typeof e=="function"?e:e===void 0?kW:ur(+e),t=typeof t=="function"?t:ur(t===void 0?0:+t),n=typeof n=="function"?n:n===void 0?AW:ur(+n);function u(f){var m,h,p,b=(f=VN(f)).length,v,y=!1,x,w=new Array(b),C=new Array(b);for(i==null&&(s=a(x=l())),m=0;m<=b;++m){if(!(m<b&&o(v=f[m],m,f))===y)if(y=!y)h=m,s.areaStart(),s.lineStart();else{for(s.lineEnd(),s.lineStart(),p=m-1;p>=h;--p)s.point(w[p],C[p]);s.lineEnd(),s.areaEnd()}y&&(w[m]=+e(v,m,f),C[m]=+t(v,m,f),s.point(r?+r(v,m,f):w[m],n?+n(v,m,f):C[m]))}if(x)return s=null,x+""||null}function d(){return DW().defined(o).curve(a).context(i)}return u.x=function(f){return arguments.length?(e=typeof f=="function"?f:ur(+f),r=null,u):e},u.x0=function(f){return arguments.length?(e=typeof f=="function"?f:ur(+f),u):e},u.x1=function(f){return arguments.length?(r=f==null?null:typeof f=="function"?f:ur(+f),u):r},u.y=function(f){return arguments.length?(t=typeof f=="function"?f:ur(+f),n=null,u):t},u.y0=function(f){return arguments.length?(t=typeof f=="function"?f:ur(+f),u):t},u.y1=function(f){return arguments.length?(n=f==null?null:typeof f=="function"?f:ur(+f),u):n},u.lineX0=u.lineY0=function(){return d().x(e).y(t)},u.lineY1=function(){return d().x(e).y(n)},u.lineX1=function(){return d().x(r).y(t)},u.defined=function(f){return arguments.length?(o=typeof f=="function"?f:ur(!!f),u):o},u.curve=function(f){return arguments.length?(a=f,i!=null&&(s=a(i)),u):a},u.context=function(f){return arguments.length?(f==null?i=s=null:s=a(i=f),u):i},u}class LW{constructor(t,n){this._context=t,this._x=n}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line}point(t,n){switch(t=+t,n=+n,this._point){case 0:{this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break}case 1:this._point=2;default:{this._x?this._context.bezierCurveTo(this._x0=(this._x0+t)/2,this._y0,this._x0,n,t,n):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+n)/2,t,this._y0,t,n);break}}this._x0=t,this._y0=n}}function Zpe(e){return new LW(e,!0)}function Jpe(e){return new LW(e,!1)}const WN={draw(e,t){const n=Ks(t/ox);e.moveTo(n,0),e.arc(0,0,n,0,nw)}},Qpe={draw(e,t){const n=Ks(t/5)/2;e.moveTo(-3*n,-n),e.lineTo(-n,-n),e.lineTo(-n,-3*n),e.lineTo(n,-3*n),e.lineTo(n,-n),e.lineTo(3*n,-n),e.lineTo(3*n,n),e.lineTo(n,n),e.lineTo(n,3*n),e.lineTo(-n,3*n),e.lineTo(-n,n),e.lineTo(-3*n,n),e.closePath()}},zW=Ks(1/3),ege=zW*2,tge={draw(e,t){const n=Ks(t/ege),r=n*zW;e.moveTo(0,-n),e.lineTo(r,0),e.lineTo(0,n),e.lineTo(-r,0),e.closePath()}},nge={draw(e,t){const n=Ks(t),r=-n/2;e.rect(r,r,n,n)}},rge=.8908130915292852,FW=rx(ox/10)/rx(7*ox/10),oge=rx(nw/10)*FW,ige=-RW(nw/10)*FW,age={draw(e,t){const n=Ks(t*rge),r=oge*n,o=ige*n;e.moveTo(0,-n),e.lineTo(r,o);for(let i=1;i<5;++i){const a=nw*i/5,s=RW(a),l=rx(a);e.lineTo(l*n,-s*n),e.lineTo(s*r-l*o,l*r+s*o)}e.closePath()}},y$=Ks(3),sge={draw(e,t){const n=-Ks(t/(y$*3));e.moveTo(0,n*2),e.lineTo(-y$*n,-n),e.lineTo(y$*n,-n),e.closePath()}},Aa=-.5,Da=Ks(3)/2,PO=1/Ks(12),lge=(PO/2+1)*3,cge={draw(e,t){const n=Ks(t/lge),r=n/2,o=n*PO,i=r,a=n*PO+n,s=-i,l=a;e.moveTo(r,o),e.lineTo(i,a),e.lineTo(s,l),e.lineTo(Aa*r-Da*o,Da*r+Aa*o),e.lineTo(Aa*i-Da*a,Da*i+Aa*a),e.lineTo(Aa*s-Da*l,Da*s+Aa*l),e.lineTo(Aa*r+Da*o,Aa*o-Da*r),e.lineTo(Aa*i+Da*a,Aa*a-Da*i),e.lineTo(Aa*s+Da*l,Aa*l-Da*s),e.closePath()}};function uge(e,t){let n=null,r=HN(o);e=typeof e=="function"?e:ur(e||WN),t=typeof t=="function"?t:ur(t===void 0?64:+t);function o(){let i;if(n||(n=i=r()),e.apply(this,arguments).draw(n,+t.apply(this,arguments)),i)return n=null,i+""||null}return o.type=function(i){return arguments.length?(e=typeof i=="function"?i:ur(i),o):e},o.size=function(i){return arguments.length?(t=typeof i=="function"?i:ur(+i),o):t},o.context=function(i){return arguments.length?(n=i??null,o):n},o}function ix(){}function ax(e,t,n){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+n)/6)}function BW(e){this._context=e}BW.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:ax(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:ax(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function dge(e){return new BW(e)}function HW(e){this._context=e}HW.prototype={areaStart:ix,areaEnd:ix,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x2,this._y2),this._context.closePath();break}case 2:{this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break}case 3:{this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:ax(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function fge(e){return new HW(e)}function VW(e){this._context=e}VW.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+e)/6,r=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:ax(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function mge(e){return new VW(e)}function WW(e){this._context=e}WW.prototype={areaStart:ix,areaEnd:ix,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}};function hge(e){return new WW(e)}function j6(e){return e<0?-1:1}function I6(e,t,n){var r=e._x1-e._x0,o=t-e._x1,i=(e._y1-e._y0)/(r||o<0&&-0),a=(n-e._y1)/(o||r<0&&-0),s=(i*o+a*r)/(r+o);return(j6(i)+j6(a))*Math.min(Math.abs(i),Math.abs(a),.5*Math.abs(s))||0}function _6(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function b$(e,t,n){var r=e._x0,o=e._y0,i=e._x1,a=e._y1,s=(i-r)/3;e._context.bezierCurveTo(r+s,o+s*t,i-s,a-s*n,i,a)}function sx(e){this._context=e}sx.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:b$(this,this._t0,_6(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var n=NaN;if(e=+e,t=+t,!(e===this._x1&&t===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,b$(this,_6(this,n=I6(this,e,t)),n);break;default:b$(this,this._t0,n=I6(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}};function UW(e){this._context=new KW(e)}(UW.prototype=Object.create(sx.prototype)).point=function(e,t){sx.prototype.point.call(this,t,e)};function KW(e){this._context=e}KW.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,n,r,o,i){this._context.bezierCurveTo(t,e,r,n,i,o)}};function pge(e){return new sx(e)}function gge(e){return new UW(e)}function qW(e){this._context=e}qW.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,n=e.length;if(n)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),n===2)this._context.lineTo(e[1],t[1]);else for(var r=N6(e),o=N6(t),i=0,a=1;a<n;++i,++a)this._context.bezierCurveTo(r[0][i],o[0][i],r[1][i],o[1][i],e[a],t[a]);(this._line||this._line!==0&&n===1)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(e,t){this._x.push(+e),this._y.push(+t)}};function N6(e){var t,n=e.length-1,r,o=new Array(n),i=new Array(n),a=new Array(n);for(o[0]=0,i[0]=2,a[0]=e[0]+2*e[1],t=1;t<n-1;++t)o[t]=1,i[t]=4,a[t]=4*e[t]+2*e[t+1];for(o[n-1]=2,i[n-1]=7,a[n-1]=8*e[n-1]+e[n],t=1;t<n;++t)r=o[t]/i[t-1],i[t]-=r,a[t]-=r*a[t-1];for(o[n-1]=a[n-1]/i[n-1],t=n-2;t>=0;--t)o[t]=(a[t]-o[t+1])/i[t];for(i[n-1]=(e[n]+o[n-1])/2,t=0;t<n-1;++t)i[t]=2*e[t+1]-o[t+1];return[o,i]}function vge(e){return new qW(e)}function ow(e,t){this._context=e,this._t=t}ow.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&this._point===2&&this._context.lineTo(this._x,this._y),(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var n=this._x*(1-this._t)+e*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,t)}break}}this._x=e,this._y=t}};function yge(e){return new ow(e,.5)}function bge(e){return new ow(e,0)}function xge(e){return new ow(e,1)}function yd(e,t){if((a=e.length)>1)for(var n=1,r,o,i=e[t[0]],a,s=i.length;n<a;++n)for(o=i,i=e[t[n]],r=0;r<s;++r)i[r][1]+=i[r][0]=isNaN(o[r][1])?o[r][0]:o[r][1]}function jO(e){for(var t=e.length,n=new Array(t);--t>=0;)n[t]=t;return n}function wge(e,t){return e[t]}function Sge(e){const t=[];return t.key=e,t}function Cge(){var e=ur([]),t=jO,n=yd,r=wge;function o(i){var a=Array.from(e.apply(this,arguments),Sge),s,l=a.length,u=-1,d;for(const f of i)for(s=0,++u;s<l;++s)(a[s][u]=[0,+r(f,a[s].key,u,i)]).data=f;for(s=0,d=VN(t(a));s<l;++s)a[d[s]].index=s;return n(a,d),a}return o.keys=function(i){return arguments.length?(e=typeof i=="function"?i:ur(Array.from(i)),o):e},o.value=function(i){return arguments.length?(r=typeof i=="function"?i:ur(+i),o):r},o.order=function(i){return arguments.length?(t=i==null?jO:typeof i=="function"?i:ur(Array.from(i)),o):t},o.offset=function(i){return arguments.length?(n=i??yd,o):n},o}function $ge(e,t){if((r=e.length)>0){for(var n,r,o=0,i=e[0].length,a;o<i;++o){for(a=n=0;n<r;++n)a+=e[n][o][1]||0;if(a)for(n=0;n<r;++n)e[n][o][1]/=a}yd(e,t)}}function Ege(e,t){if((o=e.length)>0){for(var n=0,r=e[t[0]],o,i=r.length;n<i;++n){for(var a=0,s=0;a<o;++a)s+=e[a][n][1]||0;r[n][1]+=r[n][0]=-s/2}yd(e,t)}}function Oge(e,t){if(!(!((a=e.length)>0)||!((i=(o=e[t[0]]).length)>0))){for(var n=0,r=1,o,i,a;r<i;++r){for(var s=0,l=0,u=0;s<a;++s){for(var d=e[t[s]],f=d[r][1]||0,m=d[r-1][1]||0,h=(f-m)/2,p=0;p<s;++p){var b=e[t[p]],v=b[r][1]||0,y=b[r-1][1]||0;h+=v-y}l+=f,u+=h*f}o[r-1][1]+=o[r-1][0]=n,l&&(n-=u/l)}o[r-1][1]+=o[r-1][0]=n,yd(e,t)}}var iw={},GW={};(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return n==="__proto__"}e.isUnsafeProperty=t})(GW);var UN={};(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){switch(typeof n){case"number":case"symbol":return!1;case"string":return n.includes(".")||n.includes("[")||n.includes("]")}}e.isDeepKey=t})(UN);var aw={};(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){var r;return typeof n=="string"||typeof n=="symbol"?n:Object.is((r=n==null?void 0:n.valueOf)==null?void 0:r.call(n),-0)?"-0":String(n)}e.toKey=t})(aw);var sw={},XW={};(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){if(n==null)return"";if(typeof n=="string")return n;if(Array.isArray(n))return n.map(t).join(",");const r=String(n);return r==="0"&&Object.is(Number(n),-0)?"-0":r}e.toString=t})(XW);(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=XW,n=aw;function r(o){if(Array.isArray(o))return o.map(n.toKey);if(typeof o=="symbol")return[o];o=t.toString(o);const i=[],a=o.length;if(a===0)return i;let s=0,l="",u="",d=!1;for(o.charCodeAt(0)===46&&(i.push(""),s++);s<a;){const f=o[s];u?f==="\\"&&s+1<a?(s++,l+=o[s]):f===u?u="":l+=f:d?f==='"'||f==="'"?u=f:f==="]"?(d=!1,i.push(l),l=""):l+=f:f==="["?(d=!0,l&&(i.push(l),l="")):f==="."?l&&(i.push(l),l=""):l+=f,s++}return l&&i.push(l),i}e.toPath=r})(sw);(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=GW,n=UN,r=aw,o=sw;function i(s,l,u){if(s==null)return u;switch(typeof l){case"string":{if(t.isUnsafeProperty(l))return u;const d=s[l];return d===void 0?n.isDeepKey(l)?i(s,o.toPath(l),u):u:d}case"number":case"symbol":{typeof l=="number"&&(l=r.toKey(l));const d=s[l];return d===void 0?u:d}default:{if(Array.isArray(l))return a(s,l,u);if(Object.is(l==null?void 0:l.valueOf(),-0)?l="-0":l=String(l),t.isUnsafeProperty(l))return u;const d=s[l];return d===void 0?u:d}}}function a(s,l,u){if(l.length===0)return u;let d=s;for(let f=0;f<l.length;f++){if(d==null||t.isUnsafeProperty(l[f]))return u;d=d[l[f]]}return d===void 0?u:d}e.get=i})(iw);var Pge=iw.get;const bd=ho(Pge);var jge=4;function Nc(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:jge,n=10**t,r=Math.round(e*n)/n;return Object.is(r,-0)?0:r}function Vr(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return e.reduce((o,i,a)=>{var s=n[a-1];return typeof s=="string"?o+s+i:s!==void 0?o+Nc(s)+i:o+i},"")}var Ho=e=>e===0?0:e>0?1:-1,Ls=e=>typeof e=="number"&&e!=+e,Wl=e=>typeof e=="string"&&e.indexOf("%")===e.length-1,Jt=e=>(typeof e=="number"||e instanceof Number)&&!Ls(e),ul=e=>Jt(e)||typeof e=="string",Ige=0,wg=e=>{var t=++Ige;return"".concat(e||"").concat(t)},xi=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,o=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(!Jt(t)&&typeof t!="string")return r;var i;if(Wl(t)){if(n==null)return r;var a=t.indexOf("%");i=n*parseFloat(t.slice(0,a))/100}else i=+t;return Ls(i)&&(i=r),o&&n!=null&&i>n&&(i=n),i},YW=e=>{if(!Array.isArray(e))return!1;for(var t=e.length,n={},r=0;r<t;r++)if(!n[String(e[r])])n[String(e[r])]=!0;else return!0;return!1};function xo(e,t,n){return Jt(e)&&Jt(t)?Nc(e+n*(t-e)):t}function ZW(e,t,n){if(!(!e||!e.length))return e.find(r=>r&&(typeof t=="function"?t(r):bd(r,t))===n)}var eo=e=>e===null||typeof e>"u",bv=e=>eo(e)?e:"".concat(e.charAt(0).toUpperCase()).concat(e.slice(1));function _ge(e){return e!=null}function xv(){}var Nge=["type","size","sizeType"];function IO(){return IO=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},IO.apply(null,arguments)}function R6(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 T6(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?R6(Object(n),!0).forEach(function(r){Rge(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):R6(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Rge(e,t,n){return(t=Tge(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Tge(e){var t=Mge(e,"string");return typeof t=="symbol"?t:t+""}function Mge(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function kge(e,t){if(e==null)return{};var n,r,o=Age(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function Age(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}var JW={symbolCircle:WN,symbolCross:Qpe,symbolDiamond:tge,symbolSquare:nge,symbolStar:age,symbolTriangle:sge,symbolWye:cge},Dge=Math.PI/180,Lge=e=>{var t="symbol".concat(bv(e));return JW[t]||WN},zge=(e,t,n)=>{if(t==="area")return e;switch(n){case"cross":return 5*e*e/9;case"diamond":return .5*e*e/Math.sqrt(3);case"square":return e*e;case"star":{var r=18*Dge;return 1.25*e*e*(Math.tan(r)-Math.tan(r*2)*Math.tan(r)**2)}case"triangle":return Math.sqrt(3)*e*e/4;case"wye":return(21-10*Math.sqrt(3))*e*e/8;default:return Math.PI*e*e/4}},Fge=(e,t)=>{JW["symbol".concat(bv(e))]=t},KN=e=>{var{type:t="circle",size:n=64,sizeType:r="area"}=e,o=kge(e,Nge),i=T6(T6({},o),{},{type:t,size:n,sizeType:r}),a="circle";typeof t=="string"&&(a=t);var s=()=>{var m=Lge(a),h=uge().type(m).size(zge(n,r,a)),p=h();if(p!==null)return p},{className:l,cx:u,cy:d}=i,f=ia(i);return Jt(u)&&Jt(d)&&Jt(n)?c.createElement("path",IO({},f,{className:Zn("recharts-symbols",l),transform:"translate(".concat(u,", ").concat(d,")"),d:s()})):null};KN.registerSymbol=Fge;var QW=e=>"radius"in e&&"startAngle"in e&&"endAngle"in e,Bge=(e,t)=>{if(!e||typeof e=="function"||typeof e=="boolean")return null;var n=e;if(c.isValidElement(e)&&(n=e.props),typeof n!="object"&&typeof n!="function")return null;var r={};return Object.keys(n).forEach(o=>{FN(o)&&(r[o]=i=>n[o](n,i))}),r},Hge=(e,t,n)=>r=>(e(t,n,r),null),wv=(e,t,n)=>{if(e===null||typeof e!="object"&&typeof e!="function")return null;var r=null;return Object.keys(e).forEach(o=>{var i=e[o];FN(o)&&typeof i=="function"&&(r||(r={}),r[o]=Hge(i,t,n))}),r};function M6(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 Vge(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?M6(Object(n),!0).forEach(function(r){Wge(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):M6(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Wge(e,t,n){return(t=Uge(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Uge(e){var t=Kge(e,"string");return typeof t=="symbol"?t:t+""}function Kge(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function qo(e,t){var n=Vge({},e),r=t,o=Object.keys(t),i=o.reduce((a,s)=>(a[s]===void 0&&r[s]!==void 0&&(a[s]=r[s]),a),n);return i}function lx(){return lx=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},lx.apply(null,arguments)}function k6(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 qge(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?k6(Object(n),!0).forEach(function(r){Gge(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):k6(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Gge(e,t,n){return(t=Xge(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Xge(e){var t=Yge(e,"string");return typeof t=="symbol"?t:t+""}function Yge(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Va=32,Zge={align:"center",iconSize:14,inactiveColor:"#ccc",layout:"horizontal",verticalAlign:"middle"};function Jge(e){var{data:t,iconType:n,inactiveColor:r}=e,o=Va/2,i=Va/6,a=Va/3,s=t.inactive?r:t.color,l=n??t.type;if(l==="none")return null;if(l==="plainline"){var u;return c.createElement("line",{strokeWidth:4,fill:"none",stroke:s,strokeDasharray:(u=t.payload)===null||u===void 0?void 0:u.strokeDasharray,x1:0,y1:o,x2:Va,y2:o,className:"recharts-legend-icon"})}if(l==="line")return c.createElement("path",{strokeWidth:4,fill:"none",stroke:s,d:"M0,".concat(o,"h").concat(a,`
            A`).concat(i,",").concat(i,",0,1,1,").concat(2*a,",").concat(o,`
            H`).concat(Va,"M").concat(2*a,",").concat(o,`
            A`).concat(i,",").concat(i,",0,1,1,").concat(a,",").concat(o),className:"recharts-legend-icon"});if(l==="rect")return c.createElement("path",{stroke:"none",fill:s,d:"M0,".concat(Va/8,"h").concat(Va,"v").concat(Va*3/4,"h").concat(-Va,"z"),className:"recharts-legend-icon"});if(c.isValidElement(t.legendIcon)){var d=qge({},t);return delete d.legendIcon,c.cloneElement(t.legendIcon,d)}return c.createElement(KN,{fill:s,cx:o,cy:o,size:Va,sizeType:"diameter",type:l})}function Qge(e){var{payload:t,iconSize:n,layout:r,formatter:o,inactiveColor:i,iconType:a}=e,s={x:0,y:0,width:Va,height:Va},l={display:r==="horizontal"?"inline-block":"block",marginRight:10},u={display:"inline-block",verticalAlign:"middle",marginRight:4};return t.map((d,f)=>{var m=d.formatter||o,h=Zn({"recharts-legend-item":!0,["legend-item-".concat(f)]:!0,inactive:d.inactive});if(d.type==="none")return null;var p=d.inactive?i:d.color,b=m?m(d.value,d,f):d.value;return c.createElement("li",lx({className:h,style:l,key:"legend-item-".concat(f)},wv(e,d,f)),c.createElement(BN,{width:n,height:n,viewBox:s,style:u,"aria-label":"".concat(b," legend icon")},c.createElement(Jge,{data:d,iconType:a,inactiveColor:i})),c.createElement("span",{className:"recharts-legend-item-text",style:{color:p}},b))})}var eve=e=>{var t=qo(e,Zge),{payload:n,layout:r,align:o}=t;if(!n||!n.length)return null;var i={padding:0,margin:0,textAlign:r==="horizontal"?o:"left"};return c.createElement("ul",{className:"recharts-default-legend",style:i},c.createElement(Qge,lx({},t,{payload:n})))},eU={},tU={};(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n,r){const o=new Map;for(let i=0;i<n.length;i++){const a=n[i],s=r(a);o.has(s)||o.set(s,a)}return Array.from(o.values())}e.uniqBy=t})(tU);var qN={};(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return n}e.identity=t})(qN);var nU={},lw={},rU={};(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return Number.isSafeInteger(n)&&n>=0}e.isLength=t})(rU);(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=rU;function n(r){return r!=null&&typeof r!="function"&&t.isLength(r.length)}e.isArrayLike=n})(lw);var oU={};(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return typeof n=="object"&&n!==null}e.isObjectLike=t})(oU);(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=lw,n=oU;function r(o){return n.isObjectLike(o)&&t.isArrayLike(o)}e.isArrayLikeObject=r})(nU);var iU={},aU={};(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=iw;function n(r){return function(o){return t.get(o,r)}}e.property=n})(aU);var sU={},GN={},lU={},XN={};(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return n!==null&&(typeof n=="object"||typeof n=="function")}e.isObject=t})(XN);var YN={};(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return n==null||typeof n!="object"&&typeof n!="function"}e.isPrimitive=t})(YN);var ZN={};(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n,r){return n===r||Number.isNaN(n)&&Number.isNaN(r)}e.eq=t})(ZN);(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=XN,n=YN,r=ZN;function o(d,f,m){return typeof m!="function"?o(d,f,()=>{}):i(d,f,function h(p,b,v,y,x,w){const C=m(p,b,v,y,x,w);return C!==void 0?!!C:i(p,b,h,w)},new Map)}function i(d,f,m,h){if(f===d)return!0;switch(typeof f){case"object":return a(d,f,m,h);case"function":return Object.keys(f).length>0?i(d,{...f},m,h):r.eq(d,f);default:return t.isObject(d)?typeof f=="string"?f==="":!0:r.eq(d,f)}}function a(d,f,m,h){if(f==null)return!0;if(Array.isArray(f))return l(d,f,m,h);if(f instanceof Map)return s(d,f,m,h);if(f instanceof Set)return u(d,f,m,h);const p=Object.keys(f);if(d==null||n.isPrimitive(d))return p.length===0;if(p.length===0)return!0;if(h!=null&&h.has(f))return h.get(f)===d;h==null||h.set(f,d);try{for(let b=0;b<p.length;b++){const v=p[b];if(!n.isPrimitive(d)&&!(v in d)||f[v]===void 0&&d[v]!==void 0||f[v]===null&&d[v]!==null||!m(d[v],f[v],v,d,f,h))return!1}return!0}finally{h==null||h.delete(f)}}function s(d,f,m,h){if(f.size===0)return!0;if(!(d instanceof Map))return!1;for(const[p,b]of f.entries()){const v=d.get(p);if(m(v,b,p,d,f,h)===!1)return!1}return!0}function l(d,f,m,h){if(f.length===0)return!0;if(!Array.isArray(d))return!1;const p=new Set;for(let b=0;b<f.length;b++){const v=f[b];let y=!1;for(let x=0;x<d.length;x++){if(p.has(x))continue;const w=d[x];let C=!1;if(m(w,v,b,d,f,h)&&(C=!0),C){p.add(x),y=!0;break}}if(!y)return!1}return!0}function u(d,f,m,h){return f.size===0?!0:d instanceof Set?l([...d],[...f],m,h):!1}e.isMatchWith=o,e.isSetMatch=u})(lU);(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=lU;function n(r,o){return t.isMatchWith(r,o,()=>{})}e.isMatch=n})(GN);var cU={},JN={},uU={};(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return Object.getOwnPropertySymbols(n).filter(r=>Object.prototype.propertyIsEnumerable.call(n,r))}e.getSymbols=t})(uU);var QN={};(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return n==null?n===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(n)}e.getTag=t})(QN);var eR={};(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t="[object RegExp]",n="[object String]",r="[object Number]",o="[object Boolean]",i="[object Arguments]",a="[object Symbol]",s="[object Date]",l="[object Map]",u="[object Set]",d="[object Array]",f="[object Function]",m="[object ArrayBuffer]",h="[object Object]",p="[object Error]",b="[object DataView]",v="[object Uint8Array]",y="[object Uint8ClampedArray]",x="[object Uint16Array]",w="[object Uint32Array]",C="[object BigUint64Array]",S="[object Int8Array]",$="[object Int16Array]",E="[object Int32Array]",O="[object BigInt64Array]",P="[object Float32Array]",j="[object Float64Array]";e.argumentsTag=i,e.arrayBufferTag=m,e.arrayTag=d,e.bigInt64ArrayTag=O,e.bigUint64ArrayTag=C,e.booleanTag=o,e.dataViewTag=b,e.dateTag=s,e.errorTag=p,e.float32ArrayTag=P,e.float64ArrayTag=j,e.functionTag=f,e.int16ArrayTag=$,e.int32ArrayTag=E,e.int8ArrayTag=S,e.mapTag=l,e.numberTag=r,e.objectTag=h,e.regexpTag=t,e.setTag=u,e.stringTag=n,e.symbolTag=a,e.uint16ArrayTag=x,e.uint32ArrayTag=w,e.uint8ArrayTag=v,e.uint8ClampedArrayTag=y})(eR);var dU={};(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return ArrayBuffer.isView(n)&&!(n instanceof DataView)}e.isTypedArray=t})(dU);(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=uU,n=QN,r=eR,o=YN,i=dU;function a(d,f){return s(d,void 0,d,new Map,f)}function s(d,f,m,h=new Map,p=void 0){const b=p==null?void 0:p(d,f,m,h);if(b!==void 0)return b;if(o.isPrimitive(d))return d;if(h.has(d))return h.get(d);if(Array.isArray(d)){const v=new Array(d.length);h.set(d,v);for(let y=0;y<d.length;y++)v[y]=s(d[y],y,m,h,p);return Object.hasOwn(d,"index")&&(v.index=d.index),Object.hasOwn(d,"input")&&(v.input=d.input),v}if(d instanceof Date)return new Date(d.getTime());if(d instanceof RegExp){const v=new RegExp(d.source,d.flags);return v.lastIndex=d.lastIndex,v}if(d instanceof Map){const v=new Map;h.set(d,v);for(const[y,x]of d)v.set(y,s(x,y,m,h,p));return v}if(d instanceof Set){const v=new Set;h.set(d,v);for(const y of d)v.add(s(y,void 0,m,h,p));return v}if(typeof Buffer<"u"&&Buffer.isBuffer(d))return d.subarray();if(i.isTypedArray(d)){const v=new(Object.getPrototypeOf(d)).constructor(d.length);h.set(d,v);for(let y=0;y<d.length;y++)v[y]=s(d[y],y,m,h,p);return v}if(d instanceof ArrayBuffer||typeof SharedArrayBuffer<"u"&&d instanceof SharedArrayBuffer)return d.slice(0);if(d instanceof DataView){const v=new DataView(d.buffer.slice(0),d.byteOffset,d.byteLength);return h.set(d,v),l(v,d,m,h,p),v}if(typeof File<"u"&&d instanceof File){const v=new File([d],d.name,{type:d.type});return h.set(d,v),l(v,d,m,h,p),v}if(typeof Blob<"u"&&d instanceof Blob){const v=new Blob([d],{type:d.type});return h.set(d,v),l(v,d,m,h,p),v}if(d instanceof Error){const v=new d.constructor;return h.set(d,v),v.message=d.message,v.name=d.name,v.stack=d.stack,v.cause=d.cause,l(v,d,m,h,p),v}if(d instanceof Boolean){const v=new Boolean(d.valueOf());return h.set(d,v),l(v,d,m,h,p),v}if(d instanceof Number){const v=new Number(d.valueOf());return h.set(d,v),l(v,d,m,h,p),v}if(d instanceof String){const v=new String(d.valueOf());return h.set(d,v),l(v,d,m,h,p),v}if(typeof d=="object"&&u(d)){const v=Object.create(Object.getPrototypeOf(d));return h.set(d,v),l(v,d,m,h,p),v}return d}function l(d,f,m=d,h,p){const b=[...Object.keys(f),...t.getSymbols(f)];for(let v=0;v<b.length;v++){const y=b[v],x=Object.getOwnPropertyDescriptor(d,y);(x==null||x.writable)&&(d[y]=s(f[y],y,m,h,p))}}function u(d){switch(n.getTag(d)){case r.argumentsTag:case r.arrayTag:case r.arrayBufferTag:case r.dataViewTag:case r.booleanTag:case r.dateTag:case r.float32ArrayTag:case r.float64ArrayTag:case r.int8ArrayTag:case r.int16ArrayTag:case r.int32ArrayTag:case r.mapTag:case r.numberTag:case r.objectTag:case r.regexpTag:case r.setTag:case r.stringTag:case r.symbolTag:case r.uint8ArrayTag:case r.uint8ClampedArrayTag:case r.uint16ArrayTag:case r.uint32ArrayTag:return!0;default:return!1}}e.cloneDeepWith=a,e.cloneDeepWithImpl=s,e.copyProperties=l})(JN);(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=JN;function n(r){return t.cloneDeepWithImpl(r,void 0,r,new Map,void 0)}e.cloneDeep=n})(cU);(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=GN,n=cU;function r(o){return o=n.cloneDeep(o),i=>t.isMatch(i,o)}e.matches=r})(sU);var fU={},mU={},hU={};(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=JN,n=eR;function r(o,i){return t.cloneDeepWith(o,(a,s,l,u)=>{const d=i==null?void 0:i(a,s,l,u);if(d!==void 0)return d;if(typeof o=="object")switch(Object.prototype.toString.call(o)){case n.numberTag:case n.stringTag:case n.booleanTag:{const f=new o.constructor(o==null?void 0:o.valueOf());return t.copyProperties(f,o),f}case n.argumentsTag:{const f={};return t.copyProperties(f,o),f.length=o.length,f[Symbol.iterator]=o[Symbol.iterator],f}default:return}})}e.cloneDeepWith=r})(hU);(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=hU;function n(r){return t.cloneDeepWith(r)}e.cloneDeep=n})(mU);var pU={},tR={};(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=/^(?:0|[1-9]\d*)$/;function n(r,o=Number.MAX_SAFE_INTEGER){switch(typeof r){case"number":return Number.isInteger(r)&&r>=0&&r<o;case"symbol":return!1;case"string":return t.test(r)}}e.isIndex=n})(tR);var gU={};(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=QN;function n(r){return r!==null&&typeof r=="object"&&t.getTag(r)==="[object Arguments]"}e.isArguments=n})(gU);(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=UN,n=tR,r=gU,o=sw;function i(a,s){let l;if(Array.isArray(s)?l=s:typeof s=="string"&&t.isDeepKey(s)&&(a==null?void 0:a[s])==null?l=o.toPath(s):l=[s],l.length===0)return!1;let u=a;for(let d=0;d<l.length;d++){const f=l[d];if((u==null||!Object.hasOwn(u,f))&&!((Array.isArray(u)||r.isArguments(u))&&n.isIndex(f)&&f<u.length))return!1;u=u[f]}return!0}e.has=i})(pU);(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=GN,n=aw,r=mU,o=iw,i=pU;function a(s,l){switch(typeof s){case"object":{Object.is(s==null?void 0:s.valueOf(),-0)&&(s="-0");break}case"number":{s=n.toKey(s);break}}return l=r.cloneDeep(l),function(u){const d=o.get(u,s);return d===void 0?i.has(u,s):l===void 0?d===void 0:t.isMatch(d,l)}}e.matchesProperty=a})(fU);(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=qN,n=aU,r=sU,o=fU;function i(a){if(a==null)return t.identity;switch(typeof a){case"function":return a;case"object":return Array.isArray(a)&&a.length===2?o.matchesProperty(a[0],a[1]):r.matches(a);case"string":case"symbol":case"number":return n.property(a)}}e.iteratee=i})(iU);(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=tU,n=qN,r=nU,o=iU;function i(a,s=n.identity){return r.isArrayLikeObject(a)?t.uniqBy(Array.from(a),o.iteratee(s)):[]}e.uniqBy=i})(eU);var tve=eU.uniqBy;const A6=ho(tve);function vU(e,t,n){return t===!0?A6(e,n):typeof t=="function"?A6(e,t):e}var yU={exports:{}},bU={},xU={exports:{}},wU={};/**
 * @license React
 * use-sync-external-store-shim.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var Pm=c;function nve(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var rve=typeof Object.is=="function"?Object.is:nve,ove=Pm.useState,ive=Pm.useEffect,ave=Pm.useLayoutEffect,sve=Pm.useDebugValue;function lve(e,t){var n=t(),r=ove({inst:{value:n,getSnapshot:t}}),o=r[0].inst,i=r[1];return ave(function(){o.value=n,o.getSnapshot=t,x$(o)&&i({inst:o})},[e,n,t]),ive(function(){return x$(o)&&i({inst:o}),e(function(){x$(o)&&i({inst:o})})},[e]),sve(n),n}function x$(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!rve(e,n)}catch{return!0}}function cve(e,t){return t()}var uve=typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"?cve:lve;wU.useSyncExternalStore=Pm.useSyncExternalStore!==void 0?Pm.useSyncExternalStore:uve;xU.exports=wU;var dve=xU.exports;/**
 * @license React
 * use-sync-external-store-shim/with-selector.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var cw=c,fve=dve;function mve(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var hve=typeof Object.is=="function"?Object.is:mve,pve=fve.useSyncExternalStore,gve=cw.useRef,vve=cw.useEffect,yve=cw.useMemo,bve=cw.useDebugValue;bU.useSyncExternalStoreWithSelector=function(e,t,n,r,o){var i=gve(null);if(i.current===null){var a={hasValue:!1,value:null};i.current=a}else a=i.current;i=yve(function(){function l(h){if(!u){if(u=!0,d=h,h=r(h),o!==void 0&&a.hasValue){var p=a.value;if(o(p,h))return f=p}return f=h}if(p=f,hve(d,h))return p;var b=r(h);return o!==void 0&&o(p,b)?(d=h,p):(d=h,f=b)}var u=!1,d,f,m=n===void 0?null:n;return[function(){return l(t())},m===null?void 0:function(){return l(m())}]},[t,n,r,o]);var s=pve(e,i[0],i[1]);return vve(function(){a.hasValue=!0,a.value=s},[s]),bve(s),s};yU.exports=bU;var xve=yU.exports,nR=c.createContext(null),wve=e=>e,gr=()=>{var e=c.useContext(nR);return e?e.store.dispatch:wve},Jy=()=>{},Sve=()=>Jy,Cve=(e,t)=>e===t;function Qt(e){var t=c.useContext(nR);return xve.useSyncExternalStoreWithSelector(t?t.subscription.addNestedSub:Sve,t?t.store.getState:Jy,t?t.store.getState:Jy,t?e:Jy,Cve)}function $ve(e,t=`expected a function, instead received ${typeof e}`){if(typeof e!="function")throw new TypeError(t)}function Eve(e,t=`expected an object, instead received ${typeof e}`){if(typeof e!="object")throw new TypeError(t)}function Ove(e,t="expected all items to be functions, instead received the following types: "){if(!e.every(n=>typeof n=="function")){const n=e.map(r=>typeof r=="function"?`function ${r.name||"unnamed"}()`:typeof r).join(", ");throw new TypeError(`${t}[${n}]`)}}var D6=e=>Array.isArray(e)?e:[e];function Pve(e){const t=Array.isArray(e[0])?e[0]:e;return Ove(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}function jve(e,t){const n=[],{length:r}=e;for(let o=0;o<r;o++)n.push(e[o].apply(null,t));return n}var Ive=class{constructor(e){this.value=e}deref(){return this.value}},_ve=typeof WeakRef<"u"?WeakRef:Ive,Nve=0,L6=1;function B0(){return{s:Nve,v:void 0,o:null,p:null}}function SU(e,t={}){let n=B0();const{resultEqualityCheck:r}=t;let o,i=0;function a(){var f;let s=n;const{length:l}=arguments;for(let m=0,h=l;m<h;m++){const p=arguments[m];if(typeof p=="function"||typeof p=="object"&&p!==null){let b=s.o;b===null&&(s.o=b=new WeakMap);const v=b.get(p);v===void 0?(s=B0(),b.set(p,s)):s=v}else{let b=s.p;b===null&&(s.p=b=new Map);const v=b.get(p);v===void 0?(s=B0(),b.set(p,s)):s=v}}const u=s;let d;if(s.s===L6)d=s.v;else if(d=e.apply(null,arguments),i++,r){const m=((f=o==null?void 0:o.deref)==null?void 0:f.call(o))??o;m!=null&&r(m,d)&&(d=m,i!==0&&i--),o=typeof d=="object"&&d!==null||typeof d=="function"?new _ve(d):d}return u.s=L6,u.v=d,d}return a.clearCache=()=>{n=B0(),a.resetResultsCount()},a.resultsCount=()=>i,a.resetResultsCount=()=>{i=0},a}function Rve(e,...t){const n=typeof e=="function"?{memoize:e,memoizeOptions:t}:e,r=(...o)=>{let i=0,a=0,s,l={},u=o.pop();typeof u=="object"&&(l=u,u=o.pop()),$ve(u,`createSelector expects an output function after the inputs, but received: [${typeof u}]`);const d={...n,...l},{memoize:f,memoizeOptions:m=[],argsMemoize:h=SU,argsMemoizeOptions:p=[]}=d,b=D6(m),v=D6(p),y=Pve(o),x=f(function(){return i++,u.apply(null,arguments)},...b),w=h(function(){a++;const S=jve(y,arguments);return s=x.apply(null,S),s},...v);return Object.assign(w,{resultFunc:u,memoizedResultFunc:x,dependencies:y,dependencyRecomputations:()=>a,resetDependencyRecomputations:()=>{a=0},lastResult:()=>s,recomputations:()=>i,resetRecomputations:()=>{i=0},memoize:f,argsMemoize:h})};return Object.assign(r,{withTypes:()=>r}),r}var Fe=Rve(SU),Tve=Object.assign((e,t=Fe)=>{Eve(e,`createStructuredSelector expects first argument to be an object where each property is a selector, instead received a ${typeof e}`);const n=Object.keys(e),r=n.map(i=>e[i]);return t(r,(...i)=>i.reduce((a,s,l)=>(a[n[l]]=s,a),{}))},{withTypes:()=>Tve}),CU={},$U={},EU={};(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(r){return typeof r=="symbol"?1:r===null?2:r===void 0?3:r!==r?4:0}const n=(r,o,i)=>{if(r!==o){const a=t(r),s=t(o);if(a===s&&a===0){if(r<o)return i==="desc"?1:-1;if(r>o)return i==="desc"?-1:1}return i==="desc"?s-a:a-s}return 0};e.compareValues=n})(EU);var OU={},rR={};(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return typeof n=="symbol"||n instanceof Symbol}e.isSymbol=t})(rR);(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=rR,n=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,r=/^\w*$/;function o(i,a){return Array.isArray(i)?!1:typeof i=="number"||typeof i=="boolean"||i==null||t.isSymbol(i)?!0:typeof i=="string"&&(r.test(i)||!n.test(i))||a!=null&&Object.hasOwn(a,i)}e.isKey=o})(OU);(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=EU,n=OU,r=sw;function o(i,a,s,l){if(i==null)return[];s=l?void 0:s,Array.isArray(i)||(i=Object.values(i)),Array.isArray(a)||(a=a==null?[null]:[a]),a.length===0&&(a=[null]),Array.isArray(s)||(s=s==null?[]:[s]),s=s.map(h=>String(h));const u=(h,p)=>{let b=h;for(let v=0;v<p.length&&b!=null;++v)b=b[p[v]];return b},d=(h,p)=>p==null||h==null?p:typeof h=="object"&&"key"in h?Object.hasOwn(p,h.key)?p[h.key]:u(p,h.path):typeof h=="function"?h(p):Array.isArray(h)?u(p,h):typeof p=="object"?p[h]:p,f=a.map(h=>(Array.isArray(h)&&h.length===1&&(h=h[0]),h==null||typeof h=="function"||Array.isArray(h)||n.isKey(h)?h:{key:h,path:r.toPath(h)}));return i.map(h=>({original:h,criteria:f.map(p=>d(p,h))})).slice().sort((h,p)=>{for(let b=0;b<f.length;b++){const v=t.compareValues(h.criteria[b],p.criteria[b],s[b]);if(v!==0)return v}return 0}).map(h=>h.original)}e.orderBy=o})($U);var PU={};(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n,r=1){const o=[],i=Math.floor(r),a=(s,l)=>{for(let u=0;u<s.length;u++){const d=s[u];Array.isArray(d)&&l<i?a(d,l+1):o.push(d)}};return a(n,0),o}e.flatten=t})(PU);var oR={};(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=tR,n=lw,r=XN,o=ZN;function i(a,s,l){return r.isObject(l)&&(typeof s=="number"&&n.isArrayLike(l)&&t.isIndex(s)&&s<l.length||typeof s=="string"&&s in l)?o.eq(l[s],a):!1}e.isIterateeCall=i})(oR);(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=$U,n=PU,r=oR;function o(i,...a){const s=a.length;return s>1&&r.isIterateeCall(i,a[0],a[1])?a=[]:s>2&&r.isIterateeCall(a[0],a[1],a[2])&&(a=[a[0]]),t.orderBy(i,n.flatten(a),["asc"])}e.sortBy=o})(CU);var Mve=CU.sortBy;const uw=ho(Mve);var jU=e=>e.legend.settings,kve=e=>e.legend.size,Ave=e=>e.legend.payload,Dve=Fe([Ave,jU],(e,t)=>{var{itemSorter:n}=t,r=e.flat(1);return n?uw(r,n):r});function Lve(){return Qt(Dve)}var H0=1;function IU(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],[t,n]=c.useState({height:0,left:0,top:0,width:0}),r=c.useCallback(o=>{if(o!=null){var i=o.getBoundingClientRect(),a={height:i.height,left:i.left,top:i.top,width:i.width};(Math.abs(a.height-t.height)>H0||Math.abs(a.left-t.left)>H0||Math.abs(a.top-t.top)>H0||Math.abs(a.width-t.width)>H0)&&n({height:a.height,left:a.left,top:a.top,width:a.width})}},[t.width,t.height,t.top,t.left,...e]);return[t,r]}function Zo(e){return`Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var zve=typeof Symbol=="function"&&Symbol.observable||"@@observable",z6=zve,w$=()=>Math.random().toString(36).substring(7).split("").join("."),Fve={INIT:`@@redux/INIT${w$()}`,REPLACE:`@@redux/REPLACE${w$()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${w$()}`},cx=Fve;function iR(e){if(typeof e!="object"||e===null)return!1;let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||Object.getPrototypeOf(e)===null}function _U(e,t,n){if(typeof e!="function")throw new Error(Zo(2));if(typeof t=="function"&&typeof n=="function"||typeof n=="function"&&typeof arguments[3]=="function")throw new Error(Zo(0));if(typeof t=="function"&&typeof n>"u"&&(n=t,t=void 0),typeof n<"u"){if(typeof n!="function")throw new Error(Zo(1));return n(_U)(e,t)}let r=e,o=t,i=new Map,a=i,s=0,l=!1;function u(){a===i&&(a=new Map,i.forEach((v,y)=>{a.set(y,v)}))}function d(){if(l)throw new Error(Zo(3));return o}function f(v){if(typeof v!="function")throw new Error(Zo(4));if(l)throw new Error(Zo(5));let y=!0;u();const x=s++;return a.set(x,v),function(){if(y){if(l)throw new Error(Zo(6));y=!1,u(),a.delete(x),i=null}}}function m(v){if(!iR(v))throw new Error(Zo(7));if(typeof v.type>"u")throw new Error(Zo(8));if(typeof v.type!="string")throw new Error(Zo(17));if(l)throw new Error(Zo(9));try{l=!0,o=r(o,v)}finally{l=!1}return(i=a).forEach(x=>{x()}),v}function h(v){if(typeof v!="function")throw new Error(Zo(10));r=v,m({type:cx.REPLACE})}function p(){const v=f;return{subscribe(y){if(typeof y!="object"||y===null)throw new Error(Zo(11));function x(){const C=y;C.next&&C.next(d())}return x(),{unsubscribe:v(x)}},[z6](){return this}}}return m({type:cx.INIT}),{dispatch:m,subscribe:f,getState:d,replaceReducer:h,[z6]:p}}function Bve(e){Object.keys(e).forEach(t=>{const n=e[t];if(typeof n(void 0,{type:cx.INIT})>"u")throw new Error(Zo(12));if(typeof n(void 0,{type:cx.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(Zo(13))})}function NU(e){const t=Object.keys(e),n={};for(let i=0;i<t.length;i++){const a=t[i];typeof e[a]=="function"&&(n[a]=e[a])}const r=Object.keys(n);let o;try{Bve(n)}catch(i){o=i}return function(a={},s){if(o)throw o;let l=!1;const u={};for(let d=0;d<r.length;d++){const f=r[d],m=n[f],h=a[f],p=m(h,s);if(typeof p>"u")throw s&&s.type,new Error(Zo(14));u[f]=p,l=l||p!==h}return l=l||r.length!==Object.keys(a).length,l?u:a}}function ux(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,n)=>(...r)=>t(n(...r)))}function Hve(...e){return t=>(n,r)=>{const o=t(n,r);let i=()=>{throw new Error(Zo(15))};const a={getState:o.getState,dispatch:(l,...u)=>i(l,...u)},s=e.map(l=>l(a));return i=ux(...s)(o.dispatch),{...o,dispatch:i}}}function RU(e){return iR(e)&&"type"in e&&typeof e.type=="string"}var TU=Symbol.for("immer-nothing"),F6=Symbol.for("immer-draftable"),Hi=Symbol.for("immer-state");function Ps(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var $a=Object,jm=$a.getPrototypeOf,dx="constructor",dw="prototype",_O="configurable",fx="enumerable",Qy="writable",Sg="value",Ul=e=>!!e&&!!e[Hi];function zs(e){var t;return e?MU(e)||fw(e)||!!e[F6]||!!((t=e[dx])!=null&&t[F6])||mw(e)||hw(e):!1}var Vve=$a[dw][dx].toString(),B6=new WeakMap;function MU(e){if(!e||!aR(e))return!1;const t=jm(e);if(t===null||t===$a[dw])return!0;const n=$a.hasOwnProperty.call(t,dx)&&t[dx];if(n===Object)return!0;if(!$f(n))return!1;let r=B6.get(n);return r===void 0&&(r=Function.toString.call(n),B6.set(n,r)),r===Vve}function Sv(e,t,n=!0){Cv(e)===0?(n?Reflect.ownKeys(e):$a.keys(e)).forEach(o=>{t(o,e[o],e)}):e.forEach((r,o)=>t(o,r,e))}function Cv(e){const t=e[Hi];return t?t.type_:fw(e)?1:mw(e)?2:hw(e)?3:0}var H6=(e,t,n=Cv(e))=>n===2?e.has(t):$a[dw].hasOwnProperty.call(e,t),NO=(e,t,n=Cv(e))=>n===2?e.get(t):e[t],mx=(e,t,n,r=Cv(e))=>{r===2?e.set(t,n):r===3?e.add(n):e[t]=n};function Wve(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}var fw=Array.isArray,mw=e=>e instanceof Map,hw=e=>e instanceof Set,aR=e=>typeof e=="object",$f=e=>typeof e=="function",S$=e=>typeof e=="boolean";function Uve(e){const t=+e;return Number.isInteger(t)&&String(t)===e}var El=e=>e.copy_||e.base_,sR=e=>e.modified_?e.copy_:e.base_;function RO(e,t){if(mw(e))return new Map(e);if(hw(e))return new Set(e);if(fw(e))return Array[dw].slice.call(e);const n=MU(e);if(t===!0||t==="class_only"&&!n){const r=$a.getOwnPropertyDescriptors(e);delete r[Hi];let o=Reflect.ownKeys(r);for(let i=0;i<o.length;i++){const a=o[i],s=r[a];s[Qy]===!1&&(s[Qy]=!0,s[_O]=!0),(s.get||s.set)&&(r[a]={[_O]:!0,[Qy]:!0,[fx]:s[fx],[Sg]:e[a]})}return $a.create(jm(e),r)}else{const r=jm(e);if(r!==null&&n)return{...e};const o=$a.create(r);return $a.assign(o,e)}}function lR(e,t=!1){return pw(e)||Ul(e)||!zs(e)||(Cv(e)>1&&$a.defineProperties(e,{set:V0,add:V0,clear:V0,delete:V0}),$a.freeze(e),t&&Sv(e,(n,r)=>{lR(r,!0)},!1)),e}function Kve(){Ps(2)}var V0={[Sg]:Kve};function pw(e){return e===null||!aR(e)?!0:$a.isFrozen(e)}var hx="MapSet",TO="Patches",V6="ArrayMethods",kU={};function xd(e){const t=kU[e];return t||Ps(0,e),t}var W6=e=>!!kU[e],Cg,AU=()=>Cg,qve=(e,t)=>({drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0,handledSet_:new Set,processedForPatches_:new Set,mapSetPlugin_:W6(hx)?xd(hx):void 0,arrayMethodsPlugin_:W6(V6)?xd(V6):void 0});function U6(e,t){t&&(e.patchPlugin_=xd(TO),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function MO(e){kO(e),e.drafts_.forEach(Gve),e.drafts_=null}function kO(e){e===Cg&&(Cg=e.parent_)}var K6=e=>Cg=qve(Cg,e);function Gve(e){const t=e[Hi];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function q6(e,t){t.unfinalizedDrafts_=t.drafts_.length;const n=t.drafts_[0];if(e!==void 0&&e!==n){n[Hi].modified_&&(MO(t),Ps(4)),zs(e)&&(e=G6(t,e));const{patchPlugin_:o}=t;o&&o.generateReplacementPatches_(n[Hi].base_,e,t)}else e=G6(t,n);return Xve(t,e,!0),MO(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==TU?e:void 0}function G6(e,t){if(pw(t))return t;const n=t[Hi];if(!n)return cR(t,e.handledSet_,e);if(!gw(n,e))return t;if(!n.modified_)return n.base_;if(!n.finalized_){const{callbacks_:r}=n;if(r)for(;r.length>0;)r.pop()(e);zU(n,e)}return n.copy_}function Xve(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&lR(t,n)}function DU(e){e.finalized_=!0,e.scope_.unfinalizedDrafts_--}var gw=(e,t)=>e.scope_===t,Yve=[];function LU(e,t,n,r){const o=El(e),i=e.type_;if(r!==void 0&&NO(o,r,i)===t){mx(o,r,n,i);return}if(!e.draftLocations_){const s=e.draftLocations_=new Map;Sv(o,(l,u)=>{if(Ul(u)){const d=s.get(u)||[];d.push(l),s.set(u,d)}})}const a=e.draftLocations_.get(t)??Yve;for(const s of a)mx(o,s,n,i)}function Zve(e,t,n){e.callbacks_.push(function(o){var s;const i=t;if(!i||!gw(i,o))return;(s=o.mapSetPlugin_)==null||s.fixSetContents(i);const a=sR(i);LU(e,i.draft_??i,a,n),zU(i,o)})}function zU(e,t){var r;if(e.modified_&&!e.finalized_&&(e.type_===3||e.type_===1&&e.allIndicesReassigned_||(((r=e.assigned_)==null?void 0:r.size)??0)>0)){const{patchPlugin_:o}=t;if(o){const i=o.getPath(e);i&&o.generatePatches_(e,i,t)}DU(e)}}function Jve(e,t,n){const{scope_:r}=e;if(Ul(n)){const o=n[Hi];gw(o,r)&&o.callbacks_.push(function(){eb(e);const a=sR(o);LU(e,n,a,t)})}else zs(n)&&e.callbacks_.push(function(){const i=El(e);NO(i,t,e.type_)===n&&r.drafts_.length>1&&(e.assigned_.get(t)??!1)===!0&&e.copy_&&cR(NO(e.copy_,t,e.type_),r.handledSet_,r)})}function cR(e,t,n){return!n.immer_.autoFreeze_&&n.unfinalizedDrafts_<1||Ul(e)||t.has(e)||!zs(e)||pw(e)||(t.add(e),Sv(e,(r,o)=>{if(Ul(o)){const i=o[Hi];if(gw(i,n)){const a=sR(i);mx(e,r,a,e.type_),DU(i)}}else zs(o)&&cR(o,t,n)})),e}function Qve(e,t){const n=fw(e),r={type_:n?1:0,scope_:t?t.scope_:AU(),modified_:!1,finalized_:!1,assigned_:void 0,parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1,callbacks_:void 0};let o=r,i=uR;n&&(o=[r],i=$g);const{revoke:a,proxy:s}=Proxy.revocable(o,i);return r.draft_=s,r.revoke_=a,[s,r]}var uR={get(e,t){if(t===Hi)return e;let n=e.scope_.arrayMethodsPlugin_;const r=e.type_===1&&typeof t=="string";if(r&&n!=null&&n.isArrayOperationMethod(t))return n.createMethodInterceptor(e,t);const o=El(e);if(!H6(o,t,e.type_))return e0e(e,o,t);const i=o[t];if(e.finalized_||!zs(i)||r&&e.operationMethod&&(n!=null&&n.isMutatingArrayMethod(e.operationMethod))&&Uve(t))return i;if(i===C$(e.base_,t)){eb(e);const a=e.type_===1?+t:t,s=DO(e.scope_,i,e,a);return e.copy_[a]=s}return i},has(e,t){return t in El(e)},ownKeys(e){return Reflect.ownKeys(El(e))},set(e,t,n){const r=FU(El(e),t);if(r!=null&&r.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){const o=C$(El(e),t),i=o==null?void 0:o[Hi];if(i&&i.base_===n)return e.copy_[t]=n,e.assigned_.set(t,!1),!0;if(Wve(n,o)&&(n!==void 0||H6(e.base_,t,e.type_)))return!0;eb(e),AO(e)}return e.copy_[t]===n&&(n!==void 0||t in e.copy_)||Number.isNaN(n)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=n,e.assigned_.set(t,!0),Jve(e,t,n)),!0},deleteProperty(e,t){return eb(e),C$(e.base_,t)!==void 0||t in e.base_?(e.assigned_.set(t,!1),AO(e)):e.assigned_.delete(t),e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const n=El(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{[Qy]:!0,[_O]:e.type_!==1||t!=="length",[fx]:r[fx],[Sg]:n[t]}},defineProperty(){Ps(11)},getPrototypeOf(e){return jm(e.base_)},setPrototypeOf(){Ps(12)}},$g={};Sv(uR,(e,t)=>{$g[e]=function(){const n=arguments;return n[0]=n[0][0],t.apply(this,n)}});$g.deleteProperty=function(e,t){return $g.set.call(this,e,t,void 0)};$g.set=function(e,t,n){return uR.set.call(this,e[0],t,n,e[0])};function C$(e,t){const n=e[Hi];return(n?El(n):e)[t]}function e0e(e,t,n){var o;const r=FU(t,n);return r?Sg in r?r[Sg]:(o=r.get)==null?void 0:o.call(e.draft_):void 0}function FU(e,t){if(!(t in e))return;let n=jm(e);for(;n;){const r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=jm(n)}}function AO(e){e.modified_||(e.modified_=!0,e.parent_&&AO(e.parent_))}function eb(e){e.copy_||(e.assigned_=new Map,e.copy_=RO(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var t0e=class{constructor(t){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!1,this.produce=(n,r,o)=>{if($f(n)&&!$f(r)){const a=r;r=n;const s=this;return function(u=a,...d){return s.produce(u,f=>r.call(this,f,...d))}}$f(r)||Ps(6),o!==void 0&&!$f(o)&&Ps(7);let i;if(zs(n)){const a=K6(this),s=DO(a,n,void 0);let l=!0;try{i=r(s),l=!1}finally{l?MO(a):kO(a)}return U6(a,o),q6(i,a)}else if(!n||!aR(n)){if(i=r(n),i===void 0&&(i=n),i===TU&&(i=void 0),this.autoFreeze_&&lR(i,!0),o){const a=[],s=[];xd(TO).generateReplacementPatches_(n,i,{patches_:a,inversePatches_:s}),o(a,s)}return i}else Ps(1,n)},this.produceWithPatches=(n,r)=>{if($f(n))return(s,...l)=>this.produceWithPatches(s,u=>n(u,...l));let o,i;return[this.produce(n,r,(s,l)=>{o=s,i=l}),o,i]},S$(t==null?void 0:t.autoFreeze)&&this.setAutoFreeze(t.autoFreeze),S$(t==null?void 0:t.useStrictShallowCopy)&&this.setUseStrictShallowCopy(t.useStrictShallowCopy),S$(t==null?void 0:t.useStrictIteration)&&this.setUseStrictIteration(t.useStrictIteration)}createDraft(t){zs(t)||Ps(8),Ul(t)&&(t=Rs(t));const n=K6(this),r=DO(n,t,void 0);return r[Hi].isManual_=!0,kO(n),r}finishDraft(t,n){const r=t&&t[Hi];(!r||!r.isManual_)&&Ps(9);const{scope_:o}=r;return U6(o,n),q6(void 0,o)}setAutoFreeze(t){this.autoFreeze_=t}setUseStrictShallowCopy(t){this.useStrictShallowCopy_=t}setUseStrictIteration(t){this.useStrictIteration_=t}shouldUseStrictIteration(){return this.useStrictIteration_}applyPatches(t,n){let r;for(r=n.length-1;r>=0;r--){const i=n[r];if(i.path.length===0&&i.op==="replace"){t=i.value;break}}r>-1&&(n=n.slice(r+1));const o=xd(TO).applyPatches_;return Ul(t)?o(t,n):this.produce(t,i=>o(i,n))}};function DO(e,t,n,r){const[o,i]=mw(t)?xd(hx).proxyMap_(t,n):hw(t)?xd(hx).proxySet_(t,n):Qve(t,n);return((n==null?void 0:n.scope_)??AU()).drafts_.push(o),i.callbacks_=(n==null?void 0:n.callbacks_)??[],i.key_=r,n&&r!==void 0?Zve(n,i,r):i.callbacks_.push(function(l){var d;(d=l.mapSetPlugin_)==null||d.fixSetContents(i);const{patchPlugin_:u}=l;i.modified_&&u&&u.generatePatches_(i,[],l)}),o}function Rs(e){return Ul(e)||Ps(10,e),BU(e)}function BU(e){if(!zs(e)||pw(e))return e;const t=e[Hi];let n,r=!0;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=RO(e,t.scope_.immer_.useStrictShallowCopy_),r=t.scope_.immer_.shouldUseStrictIteration()}else n=RO(e,!0);return Sv(n,(o,i)=>{mx(n,o,BU(i))},r),t&&(t.finalized_=!1),n}var n0e=new t0e,HU=n0e.produce;function VU(e){return({dispatch:n,getState:r})=>o=>i=>typeof i=="function"?i(n,r,e):o(i)}var r0e=VU(),o0e=VU,i0e=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?ux:ux.apply(null,arguments)};function as(e,t){function n(...r){if(t){let o=t(...r);if(!o)throw new Error(Pa(0));return{type:e,payload:o.payload,..."meta"in o&&{meta:o.meta},..."error"in o&&{error:o.error}}}return{type:e,payload:r[0]}}return n.toString=()=>`${e}`,n.type=e,n.match=r=>RU(r)&&r.type===e,n}var WU=class xp extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,xp.prototype)}static get[Symbol.species](){return xp}concat(...t){return super.concat.apply(this,t)}prepend(...t){return t.length===1&&Array.isArray(t[0])?new xp(...t[0].concat(this)):new xp(...t.concat(this))}};function X6(e){return zs(e)?HU(e,()=>{}):e}function W0(e,t,n){return e.has(t)?e.get(t):e.set(t,n(t)).get(t)}function a0e(e){return typeof e=="boolean"}var s0e=()=>function(t){const{thunk:n=!0,immutableCheck:r=!0,serializableCheck:o=!0,actionCreatorCheck:i=!0}=t??{};let a=new WU;return n&&(a0e(n)?a.push(r0e):a.push(o0e(n.extraArgument))),a},UU="RTK_autoBatch",wr=()=>e=>({payload:e,meta:{[UU]:!0}}),Y6=e=>t=>{setTimeout(t,e)},KU=(e={type:"raf"})=>t=>(...n)=>{const r=t(...n);let o=!0,i=!1,a=!1;const s=new Set,l=e.type==="tick"?queueMicrotask:e.type==="raf"?typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:Y6(10):e.type==="callback"?e.queueNotification:Y6(e.timeout),u=()=>{a=!1,i&&(i=!1,s.forEach(d=>d()))};return Object.assign({},r,{subscribe(d){const f=()=>o&&d(),m=r.subscribe(f);return s.add(d),()=>{m(),s.delete(d)}},dispatch(d){var f;try{return o=!((f=d==null?void 0:d.meta)!=null&&f[UU]),i=!o,i&&(a||(a=!0,l(u))),r.dispatch(d)}finally{o=!0}}})},l0e=e=>function(n){const{autoBatch:r=!0}=n??{};let o=new WU(e);return r&&o.push(KU(typeof r=="object"?r:void 0)),o};function c0e(e){const t=s0e(),{reducer:n=void 0,middleware:r,devTools:o=!0,preloadedState:i=void 0,enhancers:a=void 0}=e||{};let s;if(typeof n=="function")s=n;else if(iR(n))s=NU(n);else throw new Error(Pa(1));let l;typeof r=="function"?l=r(t):l=t();let u=ux;o&&(u=i0e({trace:!1,...typeof o=="object"&&o}));const d=Hve(...l),f=l0e(d);let m=typeof a=="function"?a(f):f();const h=u(...m);return _U(s,i,h)}function qU(e){const t={},n=[];let r;const o={addCase(i,a){const s=typeof i=="string"?i:i.type;if(!s)throw new Error(Pa(28));if(s in t)throw new Error(Pa(29));return t[s]=a,o},addAsyncThunk(i,a){return a.pending&&(t[i.pending.type]=a.pending),a.rejected&&(t[i.rejected.type]=a.rejected),a.fulfilled&&(t[i.fulfilled.type]=a.fulfilled),a.settled&&n.push({matcher:i.settled,reducer:a.settled}),o},addMatcher(i,a){return n.push({matcher:i,reducer:a}),o},addDefaultCase(i){return r=i,o}};return e(o),[t,n,r]}function u0e(e){return typeof e=="function"}function d0e(e,t){let[n,r,o]=qU(t),i;if(u0e(e))i=()=>X6(e());else{const s=X6(e);i=()=>s}function a(s=i(),l){let u=[n[l.type],...r.filter(({matcher:d})=>d(l)).map(({reducer:d})=>d)];return u.filter(d=>!!d).length===0&&(u=[o]),u.reduce((d,f)=>{if(f)if(Ul(d)){const h=f(d,l);return h===void 0?d:h}else{if(zs(d))return HU(d,m=>f(m,l));{const m=f(d,l);if(m===void 0){if(d===null)return d;throw Error("A case reducer on a non-draftable value must not return undefined")}return m}}return d},s)}return a.getInitialState=i,a}var f0e="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",m0e=(e=21)=>{let t="",n=e;for(;n--;)t+=f0e[Math.random()*64|0];return t},h0e=Symbol.for("rtk-slice-createasyncthunk");function p0e(e,t){return`${e}/${t}`}function g0e({creators:e}={}){var n;const t=(n=e==null?void 0:e.asyncThunk)==null?void 0:n[h0e];return function(o){const{name:i,reducerPath:a=i}=o;if(!i)throw new Error(Pa(11));const s=(typeof o.reducers=="function"?o.reducers(y0e()):o.reducers)||{},l=Object.keys(s),u={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},d={addCase(C,S){const $=typeof C=="string"?C:C.type;if(!$)throw new Error(Pa(12));if($ in u.sliceCaseReducersByType)throw new Error(Pa(13));return u.sliceCaseReducersByType[$]=S,d},addMatcher(C,S){return u.sliceMatchers.push({matcher:C,reducer:S}),d},exposeAction(C,S){return u.actionCreators[C]=S,d},exposeCaseReducer(C,S){return u.sliceCaseReducersByName[C]=S,d}};l.forEach(C=>{const S=s[C],$={reducerName:C,type:p0e(i,C),createNotation:typeof o.reducers=="function"};x0e(S)?S0e($,S,d,t):b0e($,S,d)});function f(){const[C={},S=[],$=void 0]=typeof o.extraReducers=="function"?qU(o.extraReducers):[o.extraReducers],E={...C,...u.sliceCaseReducersByType};return d0e(o.initialState,O=>{for(let P in E)O.addCase(P,E[P]);for(let P of u.sliceMatchers)O.addMatcher(P.matcher,P.reducer);for(let P of S)O.addMatcher(P.matcher,P.reducer);$&&O.addDefaultCase($)})}const m=C=>C,h=new Map,p=new WeakMap;let b;function v(C,S){return b||(b=f()),b(C,S)}function y(){return b||(b=f()),b.getInitialState()}function x(C,S=!1){function $(O){let P=O[C];return typeof P>"u"&&S&&(P=W0(p,$,y)),P}function E(O=m){const P=W0(h,S,()=>new WeakMap);return W0(P,O,()=>{const j={};for(const[I,_]of Object.entries(o.selectors??{}))j[I]=v0e(_,O,()=>W0(p,O,y),S);return j})}return{reducerPath:C,getSelectors:E,get selectors(){return E($)},selectSlice:$}}const w={name:i,reducer:v,actions:u.actionCreators,caseReducers:u.sliceCaseReducersByName,getInitialState:y,...x(a),injectInto(C,{reducerPath:S,...$}={}){const E=S??a;return C.inject({reducerPath:E,reducer:v},$),{...w,...x(E,!0)}}};return w}}function v0e(e,t,n,r){function o(i,...a){let s=t(i);return typeof s>"u"&&r&&(s=n()),e(s,...a)}return o.unwrapped=e,o}var sa=g0e();function y0e(){function e(t,n){return{_reducerDefinitionType:"asyncThunk",payloadCreator:t,...n}}return e.withTypes=()=>e,{reducer(t){return Object.assign({[t.name](...n){return t(...n)}}[t.name],{_reducerDefinitionType:"reducer"})},preparedReducer(t,n){return{_reducerDefinitionType:"reducerWithPrepare",prepare:t,reducer:n}},asyncThunk:e}}function b0e({type:e,reducerName:t,createNotation:n},r,o){let i,a;if("reducer"in r){if(n&&!w0e(r))throw new Error(Pa(17));i=r.reducer,a=r.prepare}else i=r;o.addCase(e,i).exposeCaseReducer(t,i).exposeAction(t,a?as(e,a):as(e))}function x0e(e){return e._reducerDefinitionType==="asyncThunk"}function w0e(e){return e._reducerDefinitionType==="reducerWithPrepare"}function S0e({type:e,reducerName:t},n,r,o){if(!o)throw new Error(Pa(18));const{payloadCreator:i,fulfilled:a,pending:s,rejected:l,settled:u,options:d}=n,f=o(e,i,d);r.exposeAction(t,f),a&&r.addCase(f.fulfilled,a),s&&r.addCase(f.pending,s),l&&r.addCase(f.rejected,l),u&&r.addMatcher(f.settled,u),r.exposeCaseReducer(t,{fulfilled:a||U0,pending:s||U0,rejected:l||U0,settled:u||U0})}function U0(){}var C0e="task",GU="listener",XU="completed",dR="cancelled",$0e=`task-${dR}`,E0e=`task-${XU}`,LO=`${GU}-${dR}`,O0e=`${GU}-${XU}`,vw=class{constructor(e){li(this,"name","TaskAbortError");li(this,"message");this.code=e,this.message=`${C0e} ${dR} (reason: ${e})`}},fR=(e,t)=>{if(typeof e!="function")throw new TypeError(Pa(32))},px=()=>{},YU=(e,t=px)=>(e.catch(t),e),ZU=(e,t)=>(e.addEventListener("abort",t,{once:!0}),()=>e.removeEventListener("abort",t)),td=e=>{if(e.aborted)throw new vw(e.reason)};function JU(e,t){let n=px;return new Promise((r,o)=>{const i=()=>o(new vw(e.reason));if(e.aborted){i();return}n=ZU(e,i),t.finally(()=>n()).then(r,o)}).finally(()=>{n=px})}var P0e=async(e,t)=>{try{return await Promise.resolve(),{status:"ok",value:await e()}}catch(n){return{status:n instanceof vw?"cancelled":"rejected",error:n}}finally{t==null||t()}},gx=e=>t=>YU(JU(e,t).then(n=>(td(e),n))),QU=e=>{const t=gx(e);return n=>t(new Promise(r=>setTimeout(r,n)))},{assign:im}=Object,Z6={},yw="listenerMiddleware",j0e=(e,t)=>{const n=r=>ZU(e,()=>r.abort(e.reason));return(r,o)=>{fR(r);const i=new AbortController;n(i);const a=P0e(async()=>{td(e),td(i.signal);const s=await r({pause:gx(i.signal),delay:QU(i.signal),signal:i.signal});return td(i.signal),s},()=>i.abort(E0e));return o!=null&&o.autoJoin&&t.push(a.catch(px)),{result:gx(e)(a),cancel(){i.abort($0e)}}}},I0e=(e,t)=>{const n=async(r,o)=>{td(t);let i=()=>{};const s=[new Promise((l,u)=>{let d=e({predicate:r,effect:(f,m)=>{m.unsubscribe(),l([f,m.getState(),m.getOriginalState()])}});i=()=>{d(),u()}})];o!=null&&s.push(new Promise(l=>setTimeout(l,o,null)));try{const l=await JU(t,Promise.race(s));return td(t),l}finally{i()}};return(r,o)=>YU(n(r,o))},eK=e=>{let{type:t,actionCreator:n,matcher:r,predicate:o,effect:i}=e;if(t)o=as(t).match;else if(n)t=n.type,o=n.match;else if(r)o=r;else if(!o)throw new Error(Pa(21));return fR(i),{predicate:o,type:t,effect:i}},tK=im(e=>{const{type:t,predicate:n,effect:r}=eK(e);return{id:m0e(),effect:r,type:t,predicate:n,pending:new Set,unsubscribe:()=>{throw new Error(Pa(22))}}},{withTypes:()=>tK}),J6=(e,t)=>{const{type:n,effect:r,predicate:o}=eK(t);return Array.from(e.values()).find(i=>(typeof n=="string"?i.type===n:i.predicate===o)&&i.effect===r)},zO=e=>{e.pending.forEach(t=>{t.abort(LO)})},_0e=(e,t)=>()=>{for(const n of t.keys())zO(n);e.clear()},Q6=(e,t,n)=>{try{e(t,n)}catch(r){setTimeout(()=>{throw r},0)}},nK=im(as(`${yw}/add`),{withTypes:()=>nK}),N0e=as(`${yw}/removeAll`),rK=im(as(`${yw}/remove`),{withTypes:()=>rK}),R0e=(...e)=>{console.error(`${yw}/error`,...e)},$v=(e={})=>{const t=new Map,n=new Map,r=h=>{const p=n.get(h)??0;n.set(h,p+1)},o=h=>{const p=n.get(h)??1;p===1?n.delete(h):n.set(h,p-1)},{extra:i,onError:a=R0e}=e;fR(a);const s=h=>(h.unsubscribe=()=>t.delete(h.id),t.set(h.id,h),p=>{h.unsubscribe(),p!=null&&p.cancelActive&&zO(h)}),l=h=>{const p=J6(t,h)??tK(h);return s(p)};im(l,{withTypes:()=>l});const u=h=>{const p=J6(t,h);return p&&(p.unsubscribe(),h.cancelActive&&zO(p)),!!p};im(u,{withTypes:()=>u});const d=async(h,p,b,v)=>{const y=new AbortController,x=I0e(l,y.signal),w=[];try{h.pending.add(y),r(h),await Promise.resolve(h.effect(p,im({},b,{getOriginalState:v,condition:(C,S)=>x(C,S).then(Boolean),take:x,delay:QU(y.signal),pause:gx(y.signal),extra:i,signal:y.signal,fork:j0e(y.signal,w),unsubscribe:h.unsubscribe,subscribe:()=>{t.set(h.id,h)},cancelActiveListeners:()=>{h.pending.forEach((C,S,$)=>{C!==y&&(C.abort(LO),$.delete(C))})},cancel:()=>{y.abort(LO),h.pending.delete(y)},throwIfCancelled:()=>{td(y.signal)}})))}catch(C){C instanceof vw||Q6(a,C,{raisedBy:"effect"})}finally{await Promise.all(w),y.abort(O0e),o(h),h.pending.delete(y)}},f=_0e(t,n);return{middleware:h=>p=>b=>{if(!RU(b))return p(b);if(nK.match(b))return l(b.payload);if(N0e.match(b)){f();return}if(rK.match(b))return u(b.payload);let v=h.getState();const y=()=>{if(v===Z6)throw new Error(Pa(23));return v};let x;try{if(x=p(b),t.size>0){const w=h.getState(),C=Array.from(t.values());for(const S of C){let $=!1;try{$=S.predicate(b,w,v)}catch(E){$=!1,Q6(a,E,{raisedBy:"predicate"})}$&&d(S,b,h,y)}}}finally{v=Z6}return x},startListening:l,stopListening:u,clearListeners:f}};function Pa(e){return`Minified Redux Toolkit error #${e}; visit https://redux-toolkit.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var T0e={layoutType:"horizontal",width:0,height:0,margin:{top:5,right:5,bottom:5,left:5},scale:1},oK=sa({name:"chartLayout",initialState:T0e,reducers:{setLayout(e,t){e.layoutType=t.payload},setChartSize(e,t){e.width=t.payload.width,e.height=t.payload.height},setMargin(e,t){var n,r,o,i;e.margin.top=(n=t.payload.top)!==null&&n!==void 0?n:0,e.margin.right=(r=t.payload.right)!==null&&r!==void 0?r:0,e.margin.bottom=(o=t.payload.bottom)!==null&&o!==void 0?o:0,e.margin.left=(i=t.payload.left)!==null&&i!==void 0?i:0},setScale(e,t){e.scale=t.payload}}}),{setMargin:M0e,setLayout:k0e,setChartSize:A0e,setScale:D0e}=oK.actions,L0e=oK.reducer;function iK(e,t,n){return Array.isArray(e)&&e&&t+n!==0?e.slice(t,n+1):e}function Lr(e){return Number.isFinite(e)}function dl(e){return typeof e=="number"&&e>0&&Number.isFinite(e)}function eA(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 zf(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?eA(Object(n),!0).forEach(function(r){z0e(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):eA(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function z0e(e,t,n){return(t=F0e(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function F0e(e){var t=B0e(e,"string");return typeof t=="symbol"?t:t+""}function B0e(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function hr(e,t,n){return eo(e)||eo(t)?n:ul(t)?bd(e,t,n):typeof t=="function"?t(e):n}var H0e=(e,t,n)=>{if(t&&n){var{width:r,height:o}=n,{align:i,verticalAlign:a,layout:s}=t;if((s==="vertical"||s==="horizontal"&&a==="middle")&&i!=="center"&&Jt(e[i]))return zf(zf({},e),{},{[i]:e[i]+(r||0)});if((s==="horizontal"||s==="vertical"&&i==="center")&&a!=="middle"&&Jt(e[a]))return zf(zf({},e),{},{[a]:e[a]+(o||0)})}return e},Bd=(e,t)=>e==="horizontal"&&t==="xAxis"||e==="vertical"&&t==="yAxis"||e==="centric"&&t==="angleAxis"||e==="radial"&&t==="radiusAxis",aK=(e,t,n,r)=>{if(r)return e.map(s=>s.coordinate);var o,i,a=e.map(s=>(s.coordinate===t&&(o=!0),s.coordinate===n&&(i=!0),s.coordinate));return o||a.push(t),i||a.push(n),a},sK=(e,t,n)=>{if(!e)return null;var{duplicateDomain:r,type:o,range:i,scale:a,realScaleType:s,isCategorical:l,categoricalDomain:u,tickCount:d,ticks:f,niceTicks:m,axisType:h}=e;if(!a)return null;var p=s==="scaleBand"&&a.bandwidth?a.bandwidth()/2:2,b=o==="category"&&a.bandwidth?a.bandwidth()/p:0;if(b=h==="angleAxis"&&i&&i.length>=2?Ho(i[0]-i[1])*2*b:b,f||m){var v=(f||m||[]).map((y,x)=>{var w=r?r.indexOf(y):y;return{coordinate:a(w)+b,value:y,offset:b,index:x}});return v.filter(y=>!Ls(y.coordinate))}return l&&u?u.map((y,x)=>({coordinate:a(y)+b,value:y,index:x,offset:b})):a.ticks&&d!=null?a.ticks(d).map((y,x)=>({coordinate:a(y)+b,value:y,offset:b,index:x})):a.domain().map((y,x)=>({coordinate:a(y)+b,value:r?r[y]:y,index:x,offset:b}))},tA=1e-4,V0e=e=>{var t=e.domain();if(!(!t||t.length<=2)){var n=t.length,r=e.range(),o=Math.min(r[0],r[1])-tA,i=Math.max(r[0],r[1])+tA,a=e(t[0]),s=e(t[n-1]);(a<o||a>i||s<o||s>i)&&e.domain([t[0],t[n-1]])}},W0e=(e,t)=>{if(!t||t.length!==2||!Jt(t[0])||!Jt(t[1]))return e;var n=Math.min(t[0],t[1]),r=Math.max(t[0],t[1]),o=[e[0],e[1]];return(!Jt(e[0])||e[0]<n)&&(o[0]=n),(!Jt(e[1])||e[1]>r)&&(o[1]=r),o[0]>r&&(o[0]=r),o[1]<n&&(o[1]=n),o},U0e=e=>{var t,n=e.length;if(!(n<=0)){var r=(t=e[0])===null||t===void 0?void 0:t.length;if(!(r==null||r<=0))for(var o=0;o<r;++o)for(var i=0,a=0,s=0;s<n;++s){var l=e[s],u=l==null?void 0:l[o];if(u!=null){var d=u[1],f=u[0],m=Ls(d)?f:d;m>=0?(u[0]=i,u[1]=i+m,i=d):(u[0]=a,u[1]=a+m,a=d)}}}},K0e=e=>{var t,n=e.length;if(!(n<=0)){var r=(t=e[0])===null||t===void 0?void 0:t.length;if(!(r==null||r<=0))for(var o=0;o<r;++o)for(var i=0,a=0;a<n;++a){var s=e[a],l=s==null?void 0:s[o];if(l!=null){var u=Ls(l[1])?l[0]:l[1];u>=0?(l[0]=i,l[1]=i+u,i=l[1]):(l[0]=0,l[1]=0)}}}},q0e={sign:U0e,expand:$ge,none:yd,silhouette:Ege,wiggle:Oge,positive:K0e},G0e=(e,t,n)=>{var r,o=(r=q0e[n])!==null&&r!==void 0?r:yd,i=Cge().keys(t).value((s,l)=>Number(hr(s,l,0))).order(jO).offset(o),a=i(e);return a.forEach((s,l)=>{s.forEach((u,d)=>{var f=hr(e[d],t[l],0);Array.isArray(f)&&f.length===2&&Jt(f[0])&&Jt(f[1])&&(u[0]=f[0],u[1]=f[1])})}),a};function X0e(e){return e==null?void 0:String(e)}function cit(e){var{axis:t,ticks:n,bandSize:r,entry:o,index:i,dataKey:a}=e;if(t.type==="category"){if(!t.allowDuplicatedCategory&&t.dataKey&&!eo(o[t.dataKey])){var s=ZW(n,"value",o[t.dataKey]);if(s)return s.coordinate+r/2}return n[i]?n[i].coordinate+r/2:null}var l=hr(o,eo(a)?t.dataKey:a);return eo(l)?null:t.scale(l)}var nA=e=>{var{axis:t,ticks:n,offset:r,bandSize:o,entry:i,index:a}=e;if(t.type==="category")return n[a]?n[a].coordinate+r:null;var s=hr(i,t.dataKey,t.scale.domain()[a]);return eo(s)?null:t.scale(s)-o/2+r},Y0e=e=>{var{numericAxis:t}=e,n=t.scale.domain();if(t.type==="number"){var r=Math.min(n[0],n[1]),o=Math.max(n[0],n[1]);return r<=0&&o>=0?0:o<0?o:r}return n[0]},Z0e=e=>{var t=e.flat(2).filter(Jt);return[Math.min(...t),Math.max(...t)]},J0e=e=>[e[0]===1/0?0:e[0],e[1]===-1/0?0:e[1]],Q0e=(e,t,n)=>{if(e!=null)return J0e(Object.keys(e).reduce((r,o)=>{var i=e[o];if(!i)return r;var{stackedData:a}=i,s=a.reduce((l,u)=>{var d=iK(u,t,n),f=Z0e(d);return!Lr(f[0])||!Lr(f[1])?l:[Math.min(l[0],f[0]),Math.max(l[1],f[1])]},[1/0,-1/0]);return[Math.min(s[0],r[0]),Math.max(s[1],r[1])]},[1/0,-1/0]))},rA=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,oA=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,vx=(e,t,n)=>{if(e&&e.scale&&e.scale.bandwidth){var r=e.scale.bandwidth();if(!n||r>0)return r}if(e&&t&&t.length>=2){for(var o=uw(t,d=>d.coordinate),i=1/0,a=1,s=o.length;a<s;a++){var l=o[a],u=o[a-1];i=Math.min(((l==null?void 0:l.coordinate)||0)-((u==null?void 0:u.coordinate)||0),i)}return i===1/0?0:i}return n?void 0:0};function iA(e){var{tooltipEntrySettings:t,dataKey:n,payload:r,value:o,name:i}=e;return zf(zf({},t),{},{dataKey:n,payload:r,value:o,name:i})}function bw(e,t){if(e)return String(e);if(typeof t=="string")return t}var eye=(e,t)=>{if(t==="horizontal")return e.chartX;if(t==="vertical")return e.chartY},tye=(e,t)=>t==="centric"?e.angle:e.radius,rc=e=>e.layout.width,oc=e=>e.layout.height,nye=e=>e.layout.scale,lK=e=>e.layout.margin,xw=Fe(e=>e.cartesianAxis.xAxis,e=>Object.values(e)),ww=Fe(e=>e.cartesianAxis.yAxis,e=>Object.values(e)),cK="data-recharts-item-index",uK="data-recharts-item-id",Ev=60;function aA(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 K0(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?aA(Object(n),!0).forEach(function(r){rye(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):aA(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function rye(e,t,n){return(t=oye(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function oye(e){var t=iye(e,"string");return typeof t=="symbol"?t:t+""}function iye(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var aye=e=>e.brush.height;function sye(e){var t=ww(e);return t.reduce((n,r)=>{if(r.orientation==="left"&&!r.mirror&&!r.hide){var o=typeof r.width=="number"?r.width:Ev;return n+o}return n},0)}function lye(e){var t=ww(e);return t.reduce((n,r)=>{if(r.orientation==="right"&&!r.mirror&&!r.hide){var o=typeof r.width=="number"?r.width:Ev;return n+o}return n},0)}function cye(e){var t=xw(e);return t.reduce((n,r)=>r.orientation==="top"&&!r.mirror&&!r.hide?n+r.height:n,0)}function uye(e){var t=xw(e);return t.reduce((n,r)=>r.orientation==="bottom"&&!r.mirror&&!r.hide?n+r.height:n,0)}var jo=Fe([rc,oc,lK,aye,sye,lye,cye,uye,jU,kve],(e,t,n,r,o,i,a,s,l,u)=>{var d={left:(n.left||0)+o,right:(n.right||0)+i},f={top:(n.top||0)+a,bottom:(n.bottom||0)+s},m=K0(K0({},f),d),h=m.bottom;m.bottom+=r,m=H0e(m,l,u);var p=e-m.left-m.right,b=t-m.top-m.bottom;return K0(K0({brushBottom:h},m),{},{width:Math.max(p,0),height:Math.max(b,0)})}),dye=Fe(jo,e=>({x:e.left,y:e.top,width:e.width,height:e.height})),mR=Fe(rc,oc,(e,t)=>({x:0,y:0,width:e,height:t})),fye=c.createContext(null),la=()=>c.useContext(fye)!=null,Sw=e=>e.brush,Cw=Fe([Sw,jo,lK],(e,t,n)=>({height:e.height,x:Jt(e.x)?e.x:t.left,y:Jt(e.y)?e.y:t.top+t.height+t.brushBottom-((n==null?void 0:n.bottom)||0),width:Jt(e.width)?e.width:t.width})),dK={},fK={},mK={};(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n,r,{signal:o,edges:i}={}){let a,s=null;const l=i!=null&&i.includes("leading"),u=i==null||i.includes("trailing"),d=()=>{s!==null&&(n.apply(a,s),a=void 0,s=null)},f=()=>{u&&d(),b()};let m=null;const h=()=>{m!=null&&clearTimeout(m),m=setTimeout(()=>{m=null,f()},r)},p=()=>{m!==null&&(clearTimeout(m),m=null)},b=()=>{p(),a=void 0,s=null},v=()=>{d()},y=function(...x){if(o!=null&&o.aborted)return;a=this,s=x;const w=m==null;h(),l&&w&&d()};return y.schedule=h,y.cancel=b,y.flush=v,o==null||o.addEventListener("abort",b,{once:!0}),y}e.debounce=t})(mK);(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=mK;function n(r,o=0,i={}){typeof i!="object"&&(i={});const{leading:a=!1,trailing:s=!0,maxWait:l}=i,u=Array(2);a&&(u[0]="leading"),s&&(u[1]="trailing");let d,f=null;const m=t.debounce(function(...b){d=r.apply(this,b),f=null},o,{edges:u}),h=function(...b){return l!=null&&(f===null&&(f=Date.now()),Date.now()-f>=l)?(d=r.apply(this,b),f=Date.now(),m.cancel(),m.schedule(),d):(m.apply(this,b),d)},p=()=>(m.flush(),d);return h.cancel=m.cancel,h.flush=p,h}e.debounce=n})(fK);(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=fK;function n(r,o=0,i={}){const{leading:a=!0,trailing:s=!0}=i;return t.debounce(r,o,{leading:a,maxWait:o,trailing:s})}e.throttle=n})(dK);var mye=dK.throttle;const hye=ho(mye);var yx=function(t,n){for(var r=arguments.length,o=new Array(r>2?r-2:0),i=2;i<r;i++)o[i-2]=arguments[i];if(typeof console<"u"&&console.warn&&(n===void 0&&console.warn("LogUtils requires an error message argument"),!t))if(n===void 0)console.warn("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var a=0;console.warn(n.replace(/%s/g,()=>o[a++]))}},hK=(e,t,n)=>{var{width:r="100%",height:o="100%",aspect:i,maxHeight:a}=n,s=Wl(r)?e:Number(r),l=Wl(o)?t:Number(o);return i&&i>0&&(s?l=s/i:l&&(s=l*i),a&&l!=null&&l>a&&(l=a)),{calculatedWidth:s,calculatedHeight:l}},pye={width:0,height:0,overflow:"visible"},gye={width:0,overflowX:"visible"},vye={height:0,overflowY:"visible"},yye={},bye=e=>{var{width:t,height:n}=e,r=Wl(t),o=Wl(n);return r&&o?pye:r?gye:o?vye:yye};function xye(e){var{width:t,height:n,aspect:r}=e,o=t,i=n;return o===void 0&&i===void 0?(o="100%",i="100%"):o===void 0?o=r&&r>0?void 0:"100%":i===void 0&&(i=r&&r>0?void 0:"100%"),{width:o,height:i}}function FO(){return FO=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},FO.apply(null,arguments)}function sA(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 lA(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?sA(Object(n),!0).forEach(function(r){wye(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):sA(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function wye(e,t,n){return(t=Sye(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Sye(e){var t=Cye(e,"string");return typeof t=="symbol"?t:t+""}function Cye(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var pK=c.createContext({width:-1,height:-1});function $ye(e){return dl(e.width)&&dl(e.height)}function gK(e){var{children:t,width:n,height:r}=e,o=c.useMemo(()=>({width:n,height:r}),[n,r]);return $ye(o)?c.createElement(pK.Provider,{value:o},t):null}var hR=()=>c.useContext(pK),Eye=c.forwardRef((e,t)=>{var{aspect:n,initialDimension:r={width:-1,height:-1},width:o,height:i,minWidth:a=0,minHeight:s,maxHeight:l,children:u,debounce:d=0,id:f,className:m,onResize:h,style:p={}}=e,b=c.useRef(null),v=c.useRef();v.current=h,c.useImperativeHandle(t,()=>b.current);var[y,x]=c.useState({containerWidth:r.width,containerHeight:r.height}),w=c.useCallback((O,P)=>{x(j=>{var I=Math.round(O),_=Math.round(P);return j.containerWidth===I&&j.containerHeight===_?j:{containerWidth:I,containerHeight:_}})},[]);c.useEffect(()=>{if(b.current==null||typeof ResizeObserver>"u")return xv;var O=_=>{var R,{width:N,height:A}=_[0].contentRect;w(N,A),(R=v.current)===null||R===void 0||R.call(v,N,A)};d>0&&(O=hye(O,d,{trailing:!0,leading:!1}));var P=new ResizeObserver(O),{width:j,height:I}=b.current.getBoundingClientRect();return w(j,I),P.observe(b.current),()=>{P.disconnect()}},[w,d]);var{containerWidth:C,containerHeight:S}=y;yx(!n||n>0,"The aspect(%s) must be greater than zero.",n);var{calculatedWidth:$,calculatedHeight:E}=hK(C,S,{width:o,height:i,aspect:n,maxHeight:l});return yx($!=null&&$>0||E!=null&&E>0,`The width(%s) and height(%s) of chart should be greater than 0,
       please check the style of container, or the props width(%s) and height(%s),
       or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the
       height and width.`,$,E,o,i,a,s,n),c.createElement("div",{id:f?"".concat(f):void 0,className:Zn("recharts-responsive-container",m),style:lA(lA({},p),{},{width:o,height:i,minWidth:a,minHeight:s,maxHeight:l}),ref:b},c.createElement("div",{style:bye({width:o,height:i})},c.createElement(gK,{width:$,height:E},u)))}),wd=c.forwardRef((e,t)=>{var n=hR();if(dl(n.width)&&dl(n.height))return e.children;var{width:r,height:o}=xye({width:e.width,height:e.height,aspect:e.aspect}),{calculatedWidth:i,calculatedHeight:a}=hK(void 0,void 0,{width:r,height:o,aspect:e.aspect,maxHeight:e.maxHeight});return Jt(i)&&Jt(a)?c.createElement(gK,{width:i,height:a},e.children):c.createElement(Eye,FO({},e,{width:r,height:o,ref:t}))});function vK(e){if(e)return{x:e.x,y:e.y,upperWidth:"upperWidth"in e?e.upperWidth:e.width,lowerWidth:"lowerWidth"in e?e.lowerWidth:e.width,width:e.width,height:e.height}}var $w=()=>{var e,t=la(),n=Qt(dye),r=Qt(Cw),o=(e=Qt(Sw))===null||e===void 0?void 0:e.padding;return!t||!r||!o?n:{width:r.width-o.left-o.right,height:r.height-o.top-o.bottom,x:o.left,y:o.top}},Oye={top:0,bottom:0,left:0,right:0,width:0,height:0,brushBottom:0},yK=()=>{var e;return(e=Qt(jo))!==null&&e!==void 0?e:Oye},pR=()=>Qt(rc),gR=()=>Qt(oc),Pye=()=>Qt(e=>e.layout.margin),Kn=e=>e.layout.layoutType,Ov=()=>Qt(Kn),jye=()=>{var e=Ov();return e!==void 0},Ew=e=>{var t=gr(),n=la(),{width:r,height:o}=e,i=hR(),a=r,s=o;return i&&(a=i.width>0?i.width:r,s=i.height>0?i.height:o),c.useEffect(()=>{!n&&dl(a)&&dl(s)&&t(A0e({width:a,height:s}))},[t,n,a,s]),null},bK=Symbol.for("immer-nothing"),cA=Symbol.for("immer-draftable"),Ia=Symbol.for("immer-state");function js(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var Eg=Object.getPrototypeOf;function Im(e){return!!e&&!!e[Ia]}function Sd(e){var t;return e?xK(e)||Array.isArray(e)||!!e[cA]||!!((t=e.constructor)!=null&&t[cA])||Pv(e)||Pw(e):!1}var Iye=Object.prototype.constructor.toString(),uA=new WeakMap;function xK(e){if(!e||typeof e!="object")return!1;const t=Object.getPrototypeOf(e);if(t===null||t===Object.prototype)return!0;const n=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;if(n===Object)return!0;if(typeof n!="function")return!1;let r=uA.get(n);return r===void 0&&(r=Function.toString.call(n),uA.set(n,r)),r===Iye}function bx(e,t,n=!0){Ow(e)===0?(n?Reflect.ownKeys(e):Object.keys(e)).forEach(o=>{t(o,e[o],e)}):e.forEach((r,o)=>t(o,r,e))}function Ow(e){const t=e[Ia];return t?t.type_:Array.isArray(e)?1:Pv(e)?2:Pw(e)?3:0}function BO(e,t){return Ow(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function wK(e,t,n){const r=Ow(e);r===2?e.set(t,n):r===3?e.add(n):e[t]=n}function _ye(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}function Pv(e){return e instanceof Map}function Pw(e){return e instanceof Set}function Nu(e){return e.copy_||e.base_}function HO(e,t){if(Pv(e))return new Map(e);if(Pw(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);const n=xK(e);if(t===!0||t==="class_only"&&!n){const r=Object.getOwnPropertyDescriptors(e);delete r[Ia];let o=Reflect.ownKeys(r);for(let i=0;i<o.length;i++){const a=o[i],s=r[a];s.writable===!1&&(s.writable=!0,s.configurable=!0),(s.get||s.set)&&(r[a]={configurable:!0,writable:!0,enumerable:s.enumerable,value:e[a]})}return Object.create(Eg(e),r)}else{const r=Eg(e);if(r!==null&&n)return{...e};const o=Object.create(r);return Object.assign(o,e)}}function vR(e,t=!1){return jw(e)||Im(e)||!Sd(e)||(Ow(e)>1&&Object.defineProperties(e,{set:q0,add:q0,clear:q0,delete:q0}),Object.freeze(e),t&&Object.values(e).forEach(n=>vR(n,!0))),e}function Nye(){js(2)}var q0={value:Nye};function jw(e){return e===null||typeof e!="object"?!0:Object.isFrozen(e)}var Rye={};function Cd(e){const t=Rye[e];return t||js(0,e),t}var Og;function SK(){return Og}function Tye(e,t){return{drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function dA(e,t){t&&(Cd("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function VO(e){WO(e),e.drafts_.forEach(Mye),e.drafts_=null}function WO(e){e===Og&&(Og=e.parent_)}function fA(e){return Og=Tye(Og,e)}function Mye(e){const t=e[Ia];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function mA(e,t){t.unfinalizedDrafts_=t.drafts_.length;const n=t.drafts_[0];return e!==void 0&&e!==n?(n[Ia].modified_&&(VO(t),js(4)),Sd(e)&&(e=xx(t,e),t.parent_||wx(t,e)),t.patches_&&Cd("Patches").generateReplacementPatches_(n[Ia].base_,e,t.patches_,t.inversePatches_)):e=xx(t,n,[]),VO(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==bK?e:void 0}function xx(e,t,n){if(jw(t))return t;const r=e.immer_.shouldUseStrictIteration(),o=t[Ia];if(!o)return bx(t,(i,a)=>hA(e,o,t,i,a,n),r),t;if(o.scope_!==e)return t;if(!o.modified_)return wx(e,o.base_,!0),o.base_;if(!o.finalized_){o.finalized_=!0,o.scope_.unfinalizedDrafts_--;const i=o.copy_;let a=i,s=!1;o.type_===3&&(a=new Set(i),i.clear(),s=!0),bx(a,(l,u)=>hA(e,o,i,l,u,n,s),r),wx(e,i,!1),n&&e.patches_&&Cd("Patches").generatePatches_(o,n,e.patches_,e.inversePatches_)}return o.copy_}function hA(e,t,n,r,o,i,a){if(o==null||typeof o!="object"&&!a)return;const s=jw(o);if(!(s&&!a)){if(Im(o)){const l=i&&t&&t.type_!==3&&!BO(t.assigned_,r)?i.concat(r):void 0,u=xx(e,o,l);if(wK(n,r,u),Im(u))e.canAutoFreeze_=!1;else return}else a&&n.add(o);if(Sd(o)&&!s){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1||t&&t.base_&&t.base_[r]===o&&s)return;xx(e,o),(!t||!t.scope_.parent_)&&typeof r!="symbol"&&(Pv(n)?n.has(r):Object.prototype.propertyIsEnumerable.call(n,r))&&wx(e,o)}}}function wx(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&vR(t,n)}function kye(e,t){const n=Array.isArray(e),r={type_:n?1:0,scope_:t?t.scope_:SK(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let o=r,i=yR;n&&(o=[r],i=Pg);const{revoke:a,proxy:s}=Proxy.revocable(o,i);return r.draft_=s,r.revoke_=a,s}var yR={get(e,t){if(t===Ia)return e;const n=Nu(e);if(!BO(n,t))return Aye(e,n,t);const r=n[t];return e.finalized_||!Sd(r)?r:r===$$(e.base_,t)?(E$(e),e.copy_[t]=KO(r,e)):r},has(e,t){return t in Nu(e)},ownKeys(e){return Reflect.ownKeys(Nu(e))},set(e,t,n){const r=CK(Nu(e),t);if(r!=null&&r.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){const o=$$(Nu(e),t),i=o==null?void 0:o[Ia];if(i&&i.base_===n)return e.copy_[t]=n,e.assigned_[t]=!1,!0;if(_ye(n,o)&&(n!==void 0||BO(e.base_,t)))return!0;E$(e),UO(e)}return e.copy_[t]===n&&(n!==void 0||t in e.copy_)||Number.isNaN(n)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=n,e.assigned_[t]=!0),!0},deleteProperty(e,t){return $$(e.base_,t)!==void 0||t in e.base_?(e.assigned_[t]=!1,E$(e),UO(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const n=Nu(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{writable:!0,configurable:e.type_!==1||t!=="length",enumerable:r.enumerable,value:n[t]}},defineProperty(){js(11)},getPrototypeOf(e){return Eg(e.base_)},setPrototypeOf(){js(12)}},Pg={};bx(yR,(e,t)=>{Pg[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}});Pg.deleteProperty=function(e,t){return Pg.set.call(this,e,t,void 0)};Pg.set=function(e,t,n){return yR.set.call(this,e[0],t,n,e[0])};function $$(e,t){const n=e[Ia];return(n?Nu(n):e)[t]}function Aye(e,t,n){var o;const r=CK(t,n);return r?"value"in r?r.value:(o=r.get)==null?void 0:o.call(e.draft_):void 0}function CK(e,t){if(!(t in e))return;let n=Eg(e);for(;n;){const r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=Eg(n)}}function UO(e){e.modified_||(e.modified_=!0,e.parent_&&UO(e.parent_))}function E$(e){e.copy_||(e.copy_=HO(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var Dye=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!0,this.produce=(t,n,r)=>{if(typeof t=="function"&&typeof n!="function"){const i=n;n=t;const a=this;return function(l=i,...u){return a.produce(l,d=>n.call(this,d,...u))}}typeof n!="function"&&js(6),r!==void 0&&typeof r!="function"&&js(7);let o;if(Sd(t)){const i=fA(this),a=KO(t,void 0);let s=!0;try{o=n(a),s=!1}finally{s?VO(i):WO(i)}return dA(i,r),mA(o,i)}else if(!t||typeof t!="object"){if(o=n(t),o===void 0&&(o=t),o===bK&&(o=void 0),this.autoFreeze_&&vR(o,!0),r){const i=[],a=[];Cd("Patches").generateReplacementPatches_(t,o,i,a),r(i,a)}return o}else js(1,t)},this.produceWithPatches=(t,n)=>{if(typeof t=="function")return(a,...s)=>this.produceWithPatches(a,l=>t(l,...s));let r,o;return[this.produce(t,n,(a,s)=>{r=a,o=s}),r,o]},typeof(e==null?void 0:e.autoFreeze)=="boolean"&&this.setAutoFreeze(e.autoFreeze),typeof(e==null?void 0:e.useStrictShallowCopy)=="boolean"&&this.setUseStrictShallowCopy(e.useStrictShallowCopy),typeof(e==null?void 0:e.useStrictIteration)=="boolean"&&this.setUseStrictIteration(e.useStrictIteration)}createDraft(e){Sd(e)||js(8),Im(e)&&(e=Lye(e));const t=fA(this),n=KO(e,void 0);return n[Ia].isManual_=!0,WO(t),n}finishDraft(e,t){const n=e&&e[Ia];(!n||!n.isManual_)&&js(9);const{scope_:r}=n;return dA(r,t),mA(void 0,r)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}setUseStrictIteration(e){this.useStrictIteration_=e}shouldUseStrictIteration(){return this.useStrictIteration_}applyPatches(e,t){let n;for(n=t.length-1;n>=0;n--){const o=t[n];if(o.path.length===0&&o.op==="replace"){e=o.value;break}}n>-1&&(t=t.slice(n+1));const r=Cd("Patches").applyPatches_;return Im(e)?r(e,t):this.produce(e,o=>r(o,t))}};function KO(e,t){const n=Pv(e)?Cd("MapSet").proxyMap_(e,t):Pw(e)?Cd("MapSet").proxySet_(e,t):kye(e,t);return(t?t.scope_:SK()).drafts_.push(n),n}function Lye(e){return Im(e)||js(10,e),$K(e)}function $K(e){if(!Sd(e)||jw(e))return e;const t=e[Ia];let n,r=!0;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=HO(e,t.scope_.immer_.useStrictShallowCopy_),r=t.scope_.immer_.shouldUseStrictIteration()}else n=HO(e,!0);return bx(n,(o,i)=>{wK(n,o,$K(i))},r),t&&(t.finalized_=!1),n}var zye=new Dye;zye.produce;var Fye={settings:{layout:"horizontal",align:"center",verticalAlign:"middle",itemSorter:"value"},size:{width:0,height:0},payload:[]},EK=sa({name:"legend",initialState:Fye,reducers:{setLegendSize(e,t){e.size.width=t.payload.width,e.size.height=t.payload.height},setLegendSettings(e,t){e.settings.align=t.payload.align,e.settings.layout=t.payload.layout,e.settings.verticalAlign=t.payload.verticalAlign,e.settings.itemSorter=t.payload.itemSorter},addLegendPayload:{reducer(e,t){e.payload.push(t.payload)},prepare:wr()},replaceLegendPayload:{reducer(e,t){var{prev:n,next:r}=t.payload,o=Rs(e).payload.indexOf(n);o>-1&&(e.payload[o]=r)},prepare:wr()},removeLegendPayload:{reducer(e,t){var n=Rs(e).payload.indexOf(t.payload);n>-1&&e.payload.splice(n,1)},prepare:wr()}}}),{setLegendSize:pA,setLegendSettings:Bye,addLegendPayload:OK,replaceLegendPayload:PK,removeLegendPayload:jK}=EK.actions,Hye=EK.reducer,Vye=["contextPayload"];function qO(){return qO=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},qO.apply(null,arguments)}function gA(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 _m(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?gA(Object(n),!0).forEach(function(r){Wye(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):gA(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Wye(e,t,n){return(t=Uye(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Uye(e){var t=Kye(e,"string");return typeof t=="symbol"?t:t+""}function Kye(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function qye(e,t){if(e==null)return{};var n,r,o=Gye(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function Gye(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 Xye(e){return e.value}function Yye(e){var{contextPayload:t}=e,n=qye(e,Vye),r=vU(t,e.payloadUniqBy,Xye),o=_m(_m({},n),{},{payload:r});return c.isValidElement(e.content)?c.cloneElement(e.content,o):typeof e.content=="function"?c.createElement(e.content,o):c.createElement(eve,o)}function Zye(e,t,n,r,o,i){var{layout:a,align:s,verticalAlign:l}=t,u,d;return(!e||(e.left===void 0||e.left===null)&&(e.right===void 0||e.right===null))&&(s==="center"&&a==="vertical"?u={left:((r||0)-i.width)/2}:u=s==="right"?{right:n&&n.right||0}:{left:n&&n.left||0}),(!e||(e.top===void 0||e.top===null)&&(e.bottom===void 0||e.bottom===null))&&(l==="middle"?d={top:((o||0)-i.height)/2}:d=l==="bottom"?{bottom:n&&n.bottom||0}:{top:n&&n.top||0}),_m(_m({},u),d)}function Jye(e){var t=gr();return c.useEffect(()=>{t(Bye(e))},[t,e]),null}function Qye(e){var t=gr();return c.useEffect(()=>(t(pA(e)),()=>{t(pA({width:0,height:0}))}),[t,e]),null}function ebe(e,t,n,r){return e==="vertical"&&Jt(t)?{height:t}:e==="horizontal"?{width:n||r}:null}var tbe={align:"center",iconSize:14,itemSorter:"value",layout:"horizontal",verticalAlign:"bottom"};function jv(e){var t=qo(e,tbe),n=Lve(),r=qpe(),o=Pye(),{width:i,height:a,wrapperStyle:s,portal:l}=t,[u,d]=IU([n]),f=pR(),m=gR();if(f==null||m==null)return null;var h=f-((o==null?void 0:o.left)||0)-((o==null?void 0:o.right)||0),p=ebe(t.layout,a,i,h),b=l?s:_m(_m({position:"absolute",width:(p==null?void 0:p.width)||i||"auto",height:(p==null?void 0:p.height)||a||"auto"},Zye(s,t,o,f,m,u)),s),v=l??r;if(v==null||n==null)return null;var y=c.createElement("div",{className:"recharts-legend-wrapper",style:b,ref:d},c.createElement(Jye,{layout:t.layout,align:t.align,verticalAlign:t.verticalAlign,itemSorter:t.itemSorter}),!l&&c.createElement(Qye,{width:u.width,height:u.height}),c.createElement(Yye,qO({},t,p,{margin:o,chartWidth:f,chartHeight:m,contextPayload:n})));return Fi.createPortal(y,v)}jv.displayName="Legend";function GO(){return GO=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},GO.apply(null,arguments)}function vA(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 O$(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?vA(Object(n),!0).forEach(function(r){nbe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):vA(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function nbe(e,t,n){return(t=rbe(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function rbe(e){var t=obe(e,"string");return typeof t=="symbol"?t:t+""}function obe(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function ibe(e){return Array.isArray(e)&&ul(e[0])&&ul(e[1])?e.join(" ~ "):e}var abe=e=>{var{separator:t=" : ",contentStyle:n={},itemStyle:r={},labelStyle:o={},payload:i,formatter:a,itemSorter:s,wrapperClassName:l,labelClassName:u,label:d,labelFormatter:f,accessibilityLayer:m=!1}=e,h=()=>{if(i&&i.length){var S={padding:0,margin:0},$=(s?uw(i,s):i).map((E,O)=>{if(E.type==="none")return null;var P=E.formatter||a||ibe,{value:j,name:I}=E,_=j,R=I;if(P){var N=P(j,I,E,O,i);if(Array.isArray(N))[_,R]=N;else if(N!=null)_=N;else return null}var A=O$({display:"block",paddingTop:4,paddingBottom:4,color:E.color||"#000"},r);return c.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat(O),style:A},ul(R)?c.createElement("span",{className:"recharts-tooltip-item-name"},R):null,ul(R)?c.createElement("span",{className:"recharts-tooltip-item-separator"},t):null,c.createElement("span",{className:"recharts-tooltip-item-value"},_),c.createElement("span",{className:"recharts-tooltip-item-unit"},E.unit||""))});return c.createElement("ul",{className:"recharts-tooltip-item-list",style:S},$)}return null},p=O$({margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},n),b=O$({margin:0},o),v=!eo(d),y=v?d:"",x=Zn("recharts-default-tooltip",l),w=Zn("recharts-tooltip-label",u);v&&f&&i!==void 0&&i!==null&&(y=f(d,i));var C=m?{role:"status","aria-live":"assertive"}:{};return c.createElement("div",GO({className:x,style:p},C),c.createElement("p",{className:w,style:b},c.isValidElement(y)?y:"".concat(y)),h())},Xh="recharts-tooltip-wrapper",sbe={visibility:"hidden"};function lbe(e){var{coordinate:t,translateX:n,translateY:r}=e;return Zn(Xh,{["".concat(Xh,"-right")]:Jt(n)&&t&&Jt(t.x)&&n>=t.x,["".concat(Xh,"-left")]:Jt(n)&&t&&Jt(t.x)&&n<t.x,["".concat(Xh,"-bottom")]:Jt(r)&&t&&Jt(t.y)&&r>=t.y,["".concat(Xh,"-top")]:Jt(r)&&t&&Jt(t.y)&&r<t.y})}function yA(e){var{allowEscapeViewBox:t,coordinate:n,key:r,offsetTopLeft:o,position:i,reverseDirection:a,tooltipDimension:s,viewBox:l,viewBoxDimension:u}=e;if(i&&Jt(i[r]))return i[r];var d=n[r]-s-(o>0?o:0),f=n[r]+o;if(t[r])return a[r]?d:f;var m=l[r];if(m==null)return 0;if(a[r]){var h=d,p=m;return h<p?Math.max(f,m):Math.max(d,m)}if(u==null)return 0;var b=f+s,v=m+u;return b>v?Math.max(d,m):Math.max(f,m)}function cbe(e){var{translateX:t,translateY:n,useTranslate3d:r}=e;return{transform:r?"translate3d(".concat(t,"px, ").concat(n,"px, 0)"):"translate(".concat(t,"px, ").concat(n,"px)")}}function ube(e){var{allowEscapeViewBox:t,coordinate:n,offsetTopLeft:r,position:o,reverseDirection:i,tooltipBox:a,useTranslate3d:s,viewBox:l}=e,u,d,f;return a.height>0&&a.width>0&&n?(d=yA({allowEscapeViewBox:t,coordinate:n,key:"x",offsetTopLeft:r,position:o,reverseDirection:i,tooltipDimension:a.width,viewBox:l,viewBoxDimension:l.width}),f=yA({allowEscapeViewBox:t,coordinate:n,key:"y",offsetTopLeft:r,position:o,reverseDirection:i,tooltipDimension:a.height,viewBox:l,viewBoxDimension:l.height}),u=cbe({translateX:d,translateY:f,useTranslate3d:s})):u=sbe,{cssProperties:u,cssClasses:lbe({translateX:d,translateY:f,coordinate:n})}}function bA(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 G0(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?bA(Object(n),!0).forEach(function(r){XO(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):bA(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function XO(e,t,n){return(t=dbe(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function dbe(e){var t=fbe(e,"string");return typeof t=="symbol"?t:t+""}function fbe(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}class mbe extends c.PureComponent{constructor(){super(...arguments),XO(this,"state",{dismissed:!1,dismissedAtCoordinate:{x:0,y:0}}),XO(this,"handleKeyDown",t=>{if(t.key==="Escape"){var n,r,o,i;this.setState({dismissed:!0,dismissedAtCoordinate:{x:(n=(r=this.props.coordinate)===null||r===void 0?void 0:r.x)!==null&&n!==void 0?n:0,y:(o=(i=this.props.coordinate)===null||i===void 0?void 0:i.y)!==null&&o!==void 0?o:0}})}})}componentDidMount(){document.addEventListener("keydown",this.handleKeyDown)}componentWillUnmount(){document.removeEventListener("keydown",this.handleKeyDown)}componentDidUpdate(){var t,n;this.state.dismissed&&(((t=this.props.coordinate)===null||t===void 0?void 0:t.x)!==this.state.dismissedAtCoordinate.x||((n=this.props.coordinate)===null||n===void 0?void 0:n.y)!==this.state.dismissedAtCoordinate.y)&&(this.state.dismissed=!1)}render(){var{active:t,allowEscapeViewBox:n,animationDuration:r,animationEasing:o,children:i,coordinate:a,hasPayload:s,isAnimationActive:l,offset:u,position:d,reverseDirection:f,useTranslate3d:m,viewBox:h,wrapperStyle:p,lastBoundingBox:b,innerRef:v,hasPortalFromProps:y}=this.props,{cssClasses:x,cssProperties:w}=ube({allowEscapeViewBox:n,coordinate:a,offsetTopLeft:u,position:d,reverseDirection:f,tooltipBox:{height:b.height,width:b.width},useTranslate3d:m,viewBox:h}),C=y?{}:G0(G0({transition:l&&t?"transform ".concat(r,"ms ").concat(o):void 0},w),{},{pointerEvents:"none",visibility:!this.state.dismissed&&t&&s?"visible":"hidden",position:"absolute",top:0,left:0}),S=G0(G0({},C),{},{visibility:!this.state.dismissed&&t&&s?"visible":"hidden"},p);return c.createElement("div",{xmlns:"http://www.w3.org/1999/xhtml",tabIndex:-1,className:x,style:S,ref:v},i)}}var IK=()=>{var e;return(e=Qt(t=>t.rootProps.accessibilityLayer))!==null&&e!==void 0?e:!0};function YO(){return YO=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},YO.apply(null,arguments)}function xA(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 wA(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?xA(Object(n),!0).forEach(function(r){hbe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xA(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function hbe(e,t,n){return(t=pbe(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function pbe(e){var t=gbe(e,"string");return typeof t=="symbol"?t:t+""}function gbe(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var SA={curveBasisClosed:fge,curveBasisOpen:mge,curveBasis:dge,curveBumpX:Zpe,curveBumpY:Jpe,curveLinearClosed:hge,curveLinear:rw,curveMonotoneX:pge,curveMonotoneY:gge,curveNatural:vge,curveStep:yge,curveStepAfter:xge,curveStepBefore:bge},Sx=e=>Lr(e.x)&&Lr(e.y),CA=e=>e.base!=null&&Sx(e.base)&&Sx(e),Yh=e=>e.x,Zh=e=>e.y,vbe=(e,t)=>{if(typeof e=="function")return e;var n="curve".concat(bv(e));return(n==="curveMonotone"||n==="curveBump")&&t?SA["".concat(n).concat(t==="vertical"?"Y":"X")]:SA[n]||rw},ybe=e=>{var{type:t="linear",points:n=[],baseLine:r,layout:o,connectNulls:i=!1}=e,a=vbe(t,o),s=i?n.filter(Sx):n,l;if(Array.isArray(r)){var u=n.map((h,p)=>wA(wA({},h),{},{base:r[p]}));o==="vertical"?l=F0().y(Zh).x1(Yh).x0(h=>h.base.x):l=F0().x(Yh).y1(Zh).y0(h=>h.base.y);var d=l.defined(CA).curve(a),f=i?u.filter(CA):u;return d(f)}o==="vertical"&&Jt(r)?l=F0().y(Zh).x1(Yh).x0(r):Jt(r)?l=F0().x(Yh).y1(Zh).y0(r):l=DW().x(Yh).y(Zh);var m=l.defined(Sx).curve(a);return m(s)},bR=e=>{var{className:t,points:n,path:r,pathRef:o}=e,i=Ov();if((!n||!n.length)&&!r)return null;var a={type:e.type,points:e.points,baseLine:e.baseLine,layout:e.layout||i,connectNulls:e.connectNulls},s=n&&n.length?ybe(a):r;return c.createElement("path",YO({},Ds(e),Bge(e),{className:Zn("recharts-curve",t),d:s===null?void 0:s,ref:o}))},bbe=["x","y","top","left","width","height","className"];function ZO(){return ZO=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},ZO.apply(null,arguments)}function $A(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 xbe(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?$A(Object(n),!0).forEach(function(r){wbe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$A(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function wbe(e,t,n){return(t=Sbe(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Sbe(e){var t=Cbe(e,"string");return typeof t=="symbol"?t:t+""}function Cbe(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function $be(e,t){if(e==null)return{};var n,r,o=Ebe(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function Ebe(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}var Obe=(e,t,n,r,o,i)=>"M".concat(e,",").concat(o,"v").concat(r,"M").concat(i,",").concat(t,"h").concat(n),Pbe=e=>{var{x:t=0,y:n=0,top:r=0,left:o=0,width:i=0,height:a=0,className:s}=e,l=$be(e,bbe),u=xbe({x:t,y:n,top:r,left:o,width:i,height:a},l);return!Jt(t)||!Jt(n)||!Jt(i)||!Jt(a)||!Jt(r)||!Jt(o)?null:c.createElement("path",ZO({},ia(u),{className:Zn("recharts-cross",s),d:Obe(t,n,i,a,r,o)}))};function jbe(e,t,n,r){var o=r/2;return{stroke:"none",fill:"#ccc",x:e==="horizontal"?t.x-o:n.left+.5,y:e==="horizontal"?n.top+.5:t.y-o,width:e==="horizontal"?r:n.width-1,height:e==="horizontal"?n.height-1:r}}function EA(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 OA(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?EA(Object(n),!0).forEach(function(r){Ibe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):EA(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Ibe(e,t,n){return(t=_be(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _be(e){var t=Nbe(e,"string");return typeof t=="symbol"?t:t+""}function Nbe(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Rbe=e=>e.replace(/([A-Z])/g,t=>"-".concat(t.toLowerCase())),_K=(e,t,n)=>e.map(r=>"".concat(Rbe(r)," ").concat(t,"ms ").concat(n)).join(","),Tbe=(e,t)=>[Object.keys(e),Object.keys(t)].reduce((n,r)=>n.filter(o=>r.includes(o))),jg=(e,t)=>Object.keys(t).reduce((n,r)=>OA(OA({},n),{},{[r]:e(r,t[r])}),{});function PA(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 wo(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?PA(Object(n),!0).forEach(function(r){Mbe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):PA(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Mbe(e,t,n){return(t=kbe(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function kbe(e){var t=Abe(e,"string");return typeof t=="symbol"?t:t+""}function Abe(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Cx=(e,t,n)=>e+(t-e)*n,JO=e=>{var{from:t,to:n}=e;return t!==n},NK=(e,t,n)=>{var r=jg((o,i)=>{if(JO(i)){var[a,s]=e(i.from,i.to,i.velocity);return wo(wo({},i),{},{from:a,velocity:s})}return i},t);return n<1?jg((o,i)=>JO(i)&&r[o]!=null?wo(wo({},i),{},{velocity:Cx(i.velocity,r[o].velocity,n),from:Cx(i.from,r[o].from,n)}):i,t):NK(e,r,n-1)};function Dbe(e,t,n,r,o,i){var a,s=r.reduce((m,h)=>wo(wo({},m),{},{[h]:{from:e[h],velocity:0,to:t[h]}}),{}),l=()=>jg((m,h)=>h.from,s),u=()=>!Object.values(s).filter(JO).length,d=null,f=m=>{a||(a=m);var h=m-a,p=h/n.dt;s=NK(n,s,p),o(wo(wo(wo({},e),t),l())),a=m,u()||(d=i.setTimeout(f))};return()=>(d=i.setTimeout(f),()=>{var m;(m=d)===null||m===void 0||m()})}function Lbe(e,t,n,r,o,i,a){var s=null,l=o.reduce((f,m)=>{var h=e[m],p=t[m];return h==null||p==null?f:wo(wo({},f),{},{[m]:[h,p]})},{}),u,d=f=>{u||(u=f);var m=(f-u)/r,h=jg((b,v)=>Cx(...v,n(m)),l);if(i(wo(wo(wo({},e),t),h)),m<1)s=a.setTimeout(d);else{var p=jg((b,v)=>Cx(...v,n(1)),l);i(wo(wo(wo({},e),t),p))}};return()=>(s=a.setTimeout(d),()=>{var f;(f=s)===null||f===void 0||f()})}const zbe=(e,t,n,r,o,i)=>{var a=Tbe(e,t);return n==null?()=>(o(wo(wo({},e),t)),()=>{}):n.isStepper===!0?Dbe(e,t,n,a,o,i):Lbe(e,t,n,r,a,o,i)};var $x=1e-4,RK=(e,t)=>[0,3*e,3*t-6*e,3*e-3*t+1],TK=(e,t)=>e.map((n,r)=>n*t**r).reduce((n,r)=>n+r),jA=(e,t)=>n=>{var r=RK(e,t);return TK(r,n)},Fbe=(e,t)=>n=>{var r=RK(e,t),o=[...r.map((i,a)=>i*a).slice(1),0];return TK(o,n)},Bbe=e=>{var t,n=e.split("(");if(n.length!==2||n[0]!=="cubic-bezier")return null;var r=(t=n[1])===null||t===void 0||(t=t.split(")")[0])===null||t===void 0?void 0:t.split(",");if(r==null||r.length!==4)return null;var o=r.map(i=>parseFloat(i));return[o[0],o[1],o[2],o[3]]},Hbe=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];if(n.length===1)switch(n[0]){case"linear":return[0,0,1,1];case"ease":return[.25,.1,.25,1];case"ease-in":return[.42,0,1,1];case"ease-out":return[.42,0,.58,1];case"ease-in-out":return[0,0,.58,1];default:{var o=Bbe(n[0]);if(o)return o}}return n.length===4?n:[0,0,1,1]},Vbe=(e,t,n,r)=>{var o=jA(e,n),i=jA(t,r),a=Fbe(e,n),s=u=>u>1?1:u<0?0:u,l=u=>{for(var d=u>1?1:u,f=d,m=0;m<8;++m){var h=o(f)-d,p=a(f);if(Math.abs(h-d)<$x||p<$x)return i(f);f=s(f-h/p)}return i(f)};return l.isStepper=!1,l},IA=function(){return Vbe(...Hbe(...arguments))},Wbe=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},{stiff:n=100,damping:r=8,dt:o=17}=t,i=(a,s,l)=>{var u=-(a-s)*n,d=l*r,f=l+(u-d)*o/1e3,m=l*o/1e3+a;return Math.abs(m-s)<$x&&Math.abs(f)<$x?[s,0]:[m,f]};return i.isStepper=!0,i.dt=o,i},Ube=e=>{if(typeof e=="string")switch(e){case"ease":case"ease-in-out":case"ease-out":case"ease-in":case"linear":return IA(e);case"spring":return Wbe();default:if(e.split("(")[0]==="cubic-bezier")return IA(e)}return typeof e=="function"?e:null};function Kbe(e){var t,n=()=>null,r=!1,o=null,i=a=>{if(!r){if(Array.isArray(a)){if(!a.length)return;var s=a,[l,...u]=s;if(typeof l=="number"){o=e.setTimeout(i.bind(null,u),l);return}i(l),o=e.setTimeout(i.bind(null,u));return}typeof a=="string"&&(t=a,n(t)),typeof a=="object"&&(t=a,n(t)),typeof a=="function"&&a()}};return{stop:()=>{r=!0},start:a=>{r=!1,o&&(o(),o=null),i(a)},subscribe:a=>(n=a,()=>{n=()=>null}),getTimeoutController:()=>e}}class qbe{setTimeout(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r=performance.now(),o=null,i=a=>{a-r>=n?t(a):typeof requestAnimationFrame=="function"&&(o=requestAnimationFrame(i))};return o=requestAnimationFrame(i),()=>{o!=null&&cancelAnimationFrame(o)}}}function Gbe(){return Kbe(new qbe)}var Xbe=c.createContext(Gbe);function Ybe(e,t){var n=c.useContext(Xbe);return c.useMemo(()=>t??n(e),[e,t,n])}var Zbe=()=>!(typeof window<"u"&&window.document&&window.document.createElement&&window.setTimeout),Iw={isSsr:Zbe()},Jbe={begin:0,duration:1e3,easing:"ease",isActive:!0,canBegin:!0,onAnimationEnd:()=>{},onAnimationStart:()=>{}},_A={t:0},P$={t:1};function _w(e){var t=qo(e,Jbe),{isActive:n,canBegin:r,duration:o,easing:i,begin:a,onAnimationEnd:s,onAnimationStart:l,children:u}=t,d=n==="auto"?!Iw.isSsr:n,f=Ybe(t.animationId,t.animationManager),[m,h]=c.useState(d?_A:P$),p=c.useRef(null);return c.useEffect(()=>{d||h(P$)},[d]),c.useEffect(()=>{if(!d||!r)return xv;var b=zbe(_A,P$,Ube(i),o,h,f.getTimeoutController()),v=()=>{p.current=b()};return f.start([l,a,v,o,s]),()=>{f.stop(),p.current&&p.current(),s()}},[d,r,o,i,a,l,s,f]),u(m.t)}function Nw(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"animation-",n=c.useRef(wg(t)),r=c.useRef(e);return r.current!==e&&(n.current=wg(t),r.current=e),n.current}var Qbe=["radius"],exe=["radius"],NA,RA,TA,MA,kA,AA,DA,LA,zA,FA;function BA(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 HA(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?BA(Object(n),!0).forEach(function(r){txe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):BA(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function txe(e,t,n){return(t=nxe(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function nxe(e){var t=rxe(e,"string");return typeof t=="symbol"?t:t+""}function rxe(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Ex(){return Ex=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ex.apply(null,arguments)}function VA(e,t){if(e==null)return{};var n,r,o=oxe(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function oxe(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 Zs(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var WA=(e,t,n,r,o)=>{var i=Nc(n),a=Nc(r),s=Math.min(Math.abs(i)/2,Math.abs(a)/2),l=a>=0?1:-1,u=i>=0?1:-1,d=a>=0&&i>=0||a<0&&i<0?1:0,f;if(s>0&&o instanceof Array){for(var m=[0,0,0,0],h=0,p=4;h<p;h++)m[h]=o[h]>s?s:o[h];f=Vr(NA||(NA=Zs(["M",",",""])),e,t+l*m[0]),m[0]>0&&(f+=Vr(RA||(RA=Zs(["A ",",",",0,0,",",",",",""])),m[0],m[0],d,e+u*m[0],t)),f+=Vr(TA||(TA=Zs(["L ",",",""])),e+n-u*m[1],t),m[1]>0&&(f+=Vr(MA||(MA=Zs(["A ",",",",0,0,",`,
        `,",",""])),m[1],m[1],d,e+n,t+l*m[1])),f+=Vr(kA||(kA=Zs(["L ",",",""])),e+n,t+r-l*m[2]),m[2]>0&&(f+=Vr(AA||(AA=Zs(["A ",",",",0,0,",`,
        `,",",""])),m[2],m[2],d,e+n-u*m[2],t+r)),f+=Vr(DA||(DA=Zs(["L ",",",""])),e+u*m[3],t+r),m[3]>0&&(f+=Vr(LA||(LA=Zs(["A ",",",",0,0,",`,
        `,",",""])),m[3],m[3],d,e,t+r-l*m[3])),f+="Z"}else if(s>0&&o===+o&&o>0){var b=Math.min(s,o);f=Vr(zA||(zA=Zs(["M ",",",`
            A `,",",",0,0,",",",",",`
            L `,",",`
            A `,",",",0,0,",",",",",`
            L `,",",`
            A `,",",",0,0,",",",",",`
            L `,",",`
            A `,",",",0,0,",",",","," Z"])),e,t+l*b,b,b,d,e+u*b,t,e+n-u*b,t,b,b,d,e+n,t+l*b,e+n,t+r-l*b,b,b,d,e+n-u*b,t+r,e+u*b,t+r,b,b,d,e,t+r-l*b)}else f=Vr(FA||(FA=Zs(["M ",","," h "," v "," h "," Z"])),e,t,n,r,-n);return f},UA={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},MK=e=>{var t=qo(e,UA),n=c.useRef(null),[r,o]=c.useState(-1);c.useEffect(()=>{if(n.current&&n.current.getTotalLength)try{var T=n.current.getTotalLength();T&&o(T)}catch{}},[]);var{x:i,y:a,width:s,height:l,radius:u,className:d}=t,{animationEasing:f,animationDuration:m,animationBegin:h,isAnimationActive:p,isUpdateAnimationActive:b}=t,v=c.useRef(s),y=c.useRef(l),x=c.useRef(i),w=c.useRef(a),C=c.useMemo(()=>({x:i,y:a,width:s,height:l,radius:u}),[i,a,s,l,u]),S=Nw(C,"rectangle-");if(i!==+i||a!==+a||s!==+s||l!==+l||s===0||l===0)return null;var $=Zn("recharts-rectangle",d);if(!b){var E=ia(t),{radius:O}=E,P=VA(E,Qbe);return c.createElement("path",Ex({},P,{x:Nc(i),y:Nc(a),width:Nc(s),height:Nc(l),radius:typeof u=="number"?u:void 0,className:$,d:WA(i,a,s,l,u)}))}var j=v.current,I=y.current,_=x.current,R=w.current,N="0px ".concat(r===-1?1:r,"px"),A="".concat(r,"px 0px"),M=_K(["strokeDasharray"],m,typeof f=="string"?f:UA.animationEasing);return c.createElement(_w,{animationId:S,key:S,canBegin:r>0,duration:m,easing:f,isActive:b,begin:h},T=>{var k=xo(j,s,T),D=xo(I,l,T),L=xo(_,i,T),B=xo(R,a,T);n.current&&(v.current=k,y.current=D,x.current=L,w.current=B);var H;p?T>0?H={transition:M,strokeDasharray:A}:H={strokeDasharray:N}:H={strokeDasharray:A};var F=ia(t),{radius:W}=F,q=VA(F,exe);return c.createElement("path",Ex({},q,{radius:typeof u=="number"?u:void 0,className:$,d:WA(L,B,k,D,u),ref:n,style:HA(HA({},H),t.style)}))})};function KA(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 qA(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?KA(Object(n),!0).forEach(function(r){ixe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):KA(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function ixe(e,t,n){return(t=axe(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function axe(e){var t=sxe(e,"string");return typeof t=="symbol"?t:t+""}function sxe(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Ox=Math.PI/180,uit=e=>e*Math.PI/180,lxe=e=>e*180/Math.PI,uo=(e,t,n,r)=>({x:e+Math.cos(-Ox*r)*n,y:t+Math.sin(-Ox*r)*n}),kK=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{top:0,right:0,bottom:0,left:0};return Math.min(Math.abs(t-(r.left||0)-(r.right||0)),Math.abs(n-(r.top||0)-(r.bottom||0)))/2},cxe=(e,t)=>{var{x:n,y:r}=e,{x:o,y:i}=t;return Math.sqrt((n-o)**2+(r-i)**2)},uxe=(e,t)=>{var{x:n,y:r}=e,{cx:o,cy:i}=t,a=cxe({x:n,y:r},{x:o,y:i});if(a<=0)return{radius:a,angle:0};var s=(n-o)/a,l=Math.acos(s);return r>i&&(l=2*Math.PI-l),{radius:a,angle:lxe(l),angleInRadian:l}},dxe=e=>{var{startAngle:t,endAngle:n}=e,r=Math.floor(t/360),o=Math.floor(n/360),i=Math.min(r,o);return{startAngle:t-i*360,endAngle:n-i*360}},fxe=(e,t)=>{var{startAngle:n,endAngle:r}=t,o=Math.floor(n/360),i=Math.floor(r/360),a=Math.min(o,i);return e+a*360},mxe=(e,t)=>{var{chartX:n,chartY:r}=e,{radius:o,angle:i}=uxe({x:n,y:r},t),{innerRadius:a,outerRadius:s}=t;if(o<a||o>s||o===0)return null;var{startAngle:l,endAngle:u}=dxe(t),d=i,f;if(l<=u){for(;d>u;)d-=360;for(;d<l;)d+=360;f=d>=l&&d<=u}else{for(;d>l;)d-=360;for(;d<u;)d+=360;f=d>=u&&d<=l}return f?qA(qA({},t),{},{radius:o,angle:fxe(d,t)}):null},dit=e=>!c.isValidElement(e)&&typeof e!="function"&&typeof e!="boolean"&&e!=null?e.className:"";function AK(e){var{cx:t,cy:n,radius:r,startAngle:o,endAngle:i}=e,a=uo(t,n,r,o),s=uo(t,n,r,i);return{points:[a,s],cx:t,cy:n,radius:r,startAngle:o,endAngle:i}}var GA,XA,YA,ZA,JA,QA,e8;function QO(){return QO=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},QO.apply(null,arguments)}function Hu(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var hxe=(e,t)=>{var n=Ho(t-e),r=Math.min(Math.abs(t-e),359.999);return n*r},X0=e=>{var{cx:t,cy:n,radius:r,angle:o,sign:i,isExternal:a,cornerRadius:s,cornerIsExternal:l}=e,u=s*(a?1:-1)+r,d=Math.asin(s/u)/Ox,f=l?o:o+i*d,m=uo(t,n,u,f),h=uo(t,n,r,f),p=l?o-i*d:o,b=uo(t,n,u*Math.cos(d*Ox),p);return{center:m,circleTangency:h,lineTangency:b,theta:d}},DK=e=>{var{cx:t,cy:n,innerRadius:r,outerRadius:o,startAngle:i,endAngle:a}=e,s=hxe(i,a),l=i+s,u=uo(t,n,o,i),d=uo(t,n,o,l),f=Vr(GA||(GA=Hu(["M ",",",`
    A `,",",`,0,
    `,",",`,
    `,",",`
  `])),u.x,u.y,o,o,+(Math.abs(s)>180),+(i>l),d.x,d.y);if(r>0){var m=uo(t,n,r,i),h=uo(t,n,r,l);f+=Vr(XA||(XA=Hu(["L ",",",`
            A `,",",`,0,
            `,",",`,
            `,","," Z"])),h.x,h.y,r,r,+(Math.abs(s)>180),+(i<=l),m.x,m.y)}else f+=Vr(YA||(YA=Hu(["L ",","," Z"])),t,n);return f},pxe=e=>{var{cx:t,cy:n,innerRadius:r,outerRadius:o,cornerRadius:i,forceCornerRadius:a,cornerIsExternal:s,startAngle:l,endAngle:u}=e,d=Ho(u-l),{circleTangency:f,lineTangency:m,theta:h}=X0({cx:t,cy:n,radius:o,angle:l,sign:d,cornerRadius:i,cornerIsExternal:s}),{circleTangency:p,lineTangency:b,theta:v}=X0({cx:t,cy:n,radius:o,angle:u,sign:-d,cornerRadius:i,cornerIsExternal:s}),y=s?Math.abs(l-u):Math.abs(l-u)-h-v;if(y<0)return a?Vr(ZA||(ZA=Hu(["M ",",",`
        a`,",",",0,0,1,",`,0
        a`,",",",0,0,1,",`,0
      `])),m.x,m.y,i,i,i*2,i,i,-i*2):DK({cx:t,cy:n,innerRadius:r,outerRadius:o,startAngle:l,endAngle:u});var x=Vr(JA||(JA=Hu(["M ",",",`
    A`,",",",0,0,",",",",",`
    A`,",",",0,",",",",",",",`
    A`,",",",0,0,",",",",",`
  `])),m.x,m.y,i,i,+(d<0),f.x,f.y,o,o,+(y>180),+(d<0),p.x,p.y,i,i,+(d<0),b.x,b.y);if(r>0){var{circleTangency:w,lineTangency:C,theta:S}=X0({cx:t,cy:n,radius:r,angle:l,sign:d,isExternal:!0,cornerRadius:i,cornerIsExternal:s}),{circleTangency:$,lineTangency:E,theta:O}=X0({cx:t,cy:n,radius:r,angle:u,sign:-d,isExternal:!0,cornerRadius:i,cornerIsExternal:s}),P=s?Math.abs(l-u):Math.abs(l-u)-S-O;if(P<0&&i===0)return"".concat(x,"L").concat(t,",").concat(n,"Z");x+=Vr(QA||(QA=Hu(["L",",",`
      A`,",",",0,0,",",",",",`
      A`,",",",0,",",",",",",",`
      A`,",",",0,0,",",",",","Z"])),E.x,E.y,i,i,+(d<0),$.x,$.y,r,r,+(P>180),+(d>0),w.x,w.y,i,i,+(d<0),C.x,C.y)}else x+=Vr(e8||(e8=Hu(["L",",","Z"])),t,n);return x},gxe={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},LK=e=>{var t=qo(e,gxe),{cx:n,cy:r,innerRadius:o,outerRadius:i,cornerRadius:a,forceCornerRadius:s,cornerIsExternal:l,startAngle:u,endAngle:d,className:f}=t;if(i<o||u===d)return null;var m=Zn("recharts-sector",f),h=i-o,p=xi(a,h,0,!0),b;return p>0&&Math.abs(u-d)<360?b=pxe({cx:n,cy:r,innerRadius:o,outerRadius:i,cornerRadius:Math.min(p,h/2),forceCornerRadius:s,cornerIsExternal:l,startAngle:u,endAngle:d}):b=DK({cx:n,cy:r,innerRadius:o,outerRadius:i,startAngle:u,endAngle:d}),c.createElement("path",QO({},ia(t),{className:m,d:b}))};function vxe(e,t,n){if(e==="horizontal")return[{x:t.x,y:n.top},{x:t.x,y:n.top+n.height}];if(e==="vertical")return[{x:n.left,y:t.y},{x:n.left+n.width,y:t.y}];if(QW(t)){if(e==="centric"){var{cx:r,cy:o,innerRadius:i,outerRadius:a,angle:s}=t,l=uo(r,o,i,s),u=uo(r,o,a,s);return[{x:l.x,y:l.y},{x:u.x,y:u.y}]}return AK(t)}}var zK={},FK={},BK={};(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=rR;function n(r){return t.isSymbol(r)?NaN:Number(r)}e.toNumber=n})(BK);(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=BK;function n(r){return r?(r=t.toNumber(r),r===1/0||r===-1/0?(r<0?-1:1)*Number.MAX_VALUE:r===r?r:0):r===0?r:0}e.toFinite=n})(FK);(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=oR,n=FK;function r(o,i,a){a&&typeof a!="number"&&t.isIterateeCall(o,i,a)&&(i=a=void 0),o=n.toFinite(o),i===void 0?(i=o,o=0):i=n.toFinite(i),a=a===void 0?o<i?1:-1:n.toFinite(a);const s=Math.max(Math.ceil((i-o)/(a||1)),0),l=new Array(s);for(let u=0;u<s;u++)l[u]=o,o+=a;return l}e.range=r})(zK);var yxe=zK.range;const HK=ho(yxe);function Vc(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function bxe(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function xR(e){let t,n,r;e.length!==2?(t=Vc,n=(s,l)=>Vc(e(s),l),r=(s,l)=>e(s)-l):(t=e===Vc||e===bxe?e:xxe,n=e,r=e);function o(s,l,u=0,d=s.length){if(u<d){if(t(l,l)!==0)return d;do{const f=u+d>>>1;n(s[f],l)<0?u=f+1:d=f}while(u<d)}return u}function i(s,l,u=0,d=s.length){if(u<d){if(t(l,l)!==0)return d;do{const f=u+d>>>1;n(s[f],l)<=0?u=f+1:d=f}while(u<d)}return u}function a(s,l,u=0,d=s.length){const f=o(s,l,u,d-1);return f>u&&r(s[f-1],l)>-r(s[f],l)?f-1:f}return{left:o,center:a,right:i}}function xxe(){return 0}function VK(e){return e===null?NaN:+e}function*wxe(e,t){for(let n of e)n!=null&&(n=+n)>=n&&(yield n)}const Sxe=xR(Vc),Iv=Sxe.right;xR(VK).center;class t8 extends Map{constructor(t,n=Exe){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:n}}),t!=null)for(const[r,o]of t)this.set(r,o)}get(t){return super.get(n8(this,t))}has(t){return super.has(n8(this,t))}set(t,n){return super.set(Cxe(this,t),n)}delete(t){return super.delete($xe(this,t))}}function n8({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):n}function Cxe({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}function $xe({_intern:e,_key:t},n){const r=t(n);return e.has(r)&&(n=e.get(r),e.delete(r)),n}function Exe(e){return e!==null&&typeof e=="object"?e.valueOf():e}function Oxe(e=Vc){if(e===Vc)return WK;if(typeof e!="function")throw new TypeError("compare is not a function");return(t,n)=>{const r=e(t,n);return r||r===0?r:(e(n,n)===0)-(e(t,t)===0)}}function WK(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(e<t?-1:e>t?1:0)}const Pxe=Math.sqrt(50),jxe=Math.sqrt(10),Ixe=Math.sqrt(2);function Px(e,t,n){const r=(t-e)/Math.max(0,n),o=Math.floor(Math.log10(r)),i=r/Math.pow(10,o),a=i>=Pxe?10:i>=jxe?5:i>=Ixe?2:1;let s,l,u;return o<0?(u=Math.pow(10,-o)/a,s=Math.round(e*u),l=Math.round(t*u),s/u<e&&++s,l/u>t&&--l,u=-u):(u=Math.pow(10,o)*a,s=Math.round(e/u),l=Math.round(t/u),s*u<e&&++s,l*u>t&&--l),l<s&&.5<=n&&n<2?Px(e,t,n*2):[s,l,u]}function eP(e,t,n){if(t=+t,e=+e,n=+n,!(n>0))return[];if(e===t)return[e];const r=t<e,[o,i,a]=r?Px(t,e,n):Px(e,t,n);if(!(i>=o))return[];const s=i-o+1,l=new Array(s);if(r)if(a<0)for(let u=0;u<s;++u)l[u]=(i-u)/-a;else for(let u=0;u<s;++u)l[u]=(i-u)*a;else if(a<0)for(let u=0;u<s;++u)l[u]=(o+u)/-a;else for(let u=0;u<s;++u)l[u]=(o+u)*a;return l}function tP(e,t,n){return t=+t,e=+e,n=+n,Px(e,t,n)[2]}function nP(e,t,n){t=+t,e=+e,n=+n;const r=t<e,o=r?tP(t,e,n):tP(e,t,n);return(r?-1:1)*(o<0?1/-o:o)}function r8(e,t){let n;for(const r of e)r!=null&&(n<r||n===void 0&&r>=r)&&(n=r);return n}function o8(e,t){let n;for(const r of e)r!=null&&(n>r||n===void 0&&r>=r)&&(n=r);return n}function UK(e,t,n=0,r=1/0,o){if(t=Math.floor(t),n=Math.floor(Math.max(0,n)),r=Math.floor(Math.min(e.length-1,r)),!(n<=t&&t<=r))return e;for(o=o===void 0?WK:Oxe(o);r>n;){if(r-n>600){const l=r-n+1,u=t-n+1,d=Math.log(l),f=.5*Math.exp(2*d/3),m=.5*Math.sqrt(d*f*(l-f)/l)*(u-l/2<0?-1:1),h=Math.max(n,Math.floor(t-u*f/l+m)),p=Math.min(r,Math.floor(t+(l-u)*f/l+m));UK(e,t,h,p,o)}const i=e[t];let a=n,s=r;for(Jh(e,n,t),o(e[r],i)>0&&Jh(e,n,r);a<s;){for(Jh(e,a,s),++a,--s;o(e[a],i)<0;)++a;for(;o(e[s],i)>0;)--s}o(e[n],i)===0?Jh(e,n,s):(++s,Jh(e,s,r)),s<=t&&(n=s+1),t<=s&&(r=s-1)}return e}function Jh(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function _xe(e,t,n){if(e=Float64Array.from(wxe(e)),!(!(r=e.length)||isNaN(t=+t))){if(t<=0||r<2)return o8(e);if(t>=1)return r8(e);var r,o=(r-1)*t,i=Math.floor(o),a=r8(UK(e,i).subarray(0,i+1)),s=o8(e.subarray(i+1));return a+(s-a)*(o-i)}}function Nxe(e,t,n=VK){if(!(!(r=e.length)||isNaN(t=+t))){if(t<=0||r<2)return+n(e[0],0,e);if(t>=1)return+n(e[r-1],r-1,e);var r,o=(r-1)*t,i=Math.floor(o),a=+n(e[i],i,e),s=+n(e[i+1],i+1,e);return a+(s-a)*(o-i)}}function Rxe(e,t,n){e=+e,t=+t,n=(o=arguments.length)<2?(t=e,e=0,1):o<3?1:+n;for(var r=-1,o=Math.max(0,Math.ceil((t-e)/n))|0,i=new Array(o);++r<o;)i[r]=e+r*n;return i}function hs(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}function ic(e,t){switch(arguments.length){case 0:break;case 1:{typeof e=="function"?this.interpolator(e):this.range(e);break}default:{this.domain(e),typeof t=="function"?this.interpolator(t):this.range(t);break}}return this}const rP=Symbol("implicit");function wR(){var e=new t8,t=[],n=[],r=rP;function o(i){let a=e.get(i);if(a===void 0){if(r!==rP)return r;e.set(i,a=t.push(i)-1)}return n[a%n.length]}return o.domain=function(i){if(!arguments.length)return t.slice();t=[],e=new t8;for(const a of i)e.has(a)||e.set(a,t.push(a)-1);return o},o.range=function(i){return arguments.length?(n=Array.from(i),o):n.slice()},o.unknown=function(i){return arguments.length?(r=i,o):r},o.copy=function(){return wR(t,n).unknown(r)},hs.apply(o,arguments),o}function SR(){var e=wR().unknown(void 0),t=e.domain,n=e.range,r=0,o=1,i,a,s=!1,l=0,u=0,d=.5;delete e.unknown;function f(){var m=t().length,h=o<r,p=h?o:r,b=h?r:o;i=(b-p)/Math.max(1,m-l+u*2),s&&(i=Math.floor(i)),p+=(b-p-i*(m-l))*d,a=i*(1-l),s&&(p=Math.round(p),a=Math.round(a));var v=Rxe(m).map(function(y){return p+i*y});return n(h?v.reverse():v)}return e.domain=function(m){return arguments.length?(t(m),f()):t()},e.range=function(m){return arguments.length?([r,o]=m,r=+r,o=+o,f()):[r,o]},e.rangeRound=function(m){return[r,o]=m,r=+r,o=+o,s=!0,f()},e.bandwidth=function(){return a},e.step=function(){return i},e.round=function(m){return arguments.length?(s=!!m,f()):s},e.padding=function(m){return arguments.length?(l=Math.min(1,u=+m),f()):l},e.paddingInner=function(m){return arguments.length?(l=Math.min(1,m),f()):l},e.paddingOuter=function(m){return arguments.length?(u=+m,f()):u},e.align=function(m){return arguments.length?(d=Math.max(0,Math.min(1,m)),f()):d},e.copy=function(){return SR(t(),[r,o]).round(s).paddingInner(l).paddingOuter(u).align(d)},hs.apply(f(),arguments)}function KK(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return KK(t())},e}function Txe(){return KK(SR.apply(null,arguments).paddingInner(1))}function CR(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function qK(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function _v(){}var Ig=.7,jx=1/Ig,am="\\s*([+-]?\\d+)\\s*",_g="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",al="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Mxe=/^#([0-9a-f]{3,8})$/,kxe=new RegExp(`^rgb\\(${am},${am},${am}\\)$`),Axe=new RegExp(`^rgb\\(${al},${al},${al}\\)$`),Dxe=new RegExp(`^rgba\\(${am},${am},${am},${_g}\\)$`),Lxe=new RegExp(`^rgba\\(${al},${al},${al},${_g}\\)$`),zxe=new RegExp(`^hsl\\(${_g},${al},${al}\\)$`),Fxe=new RegExp(`^hsla\\(${_g},${al},${al},${_g}\\)$`),i8={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};CR(_v,Ng,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:a8,formatHex:a8,formatHex8:Bxe,formatHsl:Hxe,formatRgb:s8,toString:s8});function a8(){return this.rgb().formatHex()}function Bxe(){return this.rgb().formatHex8()}function Hxe(){return GK(this).formatHsl()}function s8(){return this.rgb().formatRgb()}function Ng(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=Mxe.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?l8(t):n===3?new Zi(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?Y0(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?Y0(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=kxe.exec(e))?new Zi(t[1],t[2],t[3],1):(t=Axe.exec(e))?new Zi(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=Dxe.exec(e))?Y0(t[1],t[2],t[3],t[4]):(t=Lxe.exec(e))?Y0(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=zxe.exec(e))?d8(t[1],t[2]/100,t[3]/100,1):(t=Fxe.exec(e))?d8(t[1],t[2]/100,t[3]/100,t[4]):i8.hasOwnProperty(e)?l8(i8[e]):e==="transparent"?new Zi(NaN,NaN,NaN,0):null}function l8(e){return new Zi(e>>16&255,e>>8&255,e&255,1)}function Y0(e,t,n,r){return r<=0&&(e=t=n=NaN),new Zi(e,t,n,r)}function Vxe(e){return e instanceof _v||(e=Ng(e)),e?(e=e.rgb(),new Zi(e.r,e.g,e.b,e.opacity)):new Zi}function oP(e,t,n,r){return arguments.length===1?Vxe(e):new Zi(e,t,n,r??1)}function Zi(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}CR(Zi,oP,qK(_v,{brighter(e){return e=e==null?jx:Math.pow(jx,e),new Zi(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?Ig:Math.pow(Ig,e),new Zi(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new Zi(nd(this.r),nd(this.g),nd(this.b),Ix(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:c8,formatHex:c8,formatHex8:Wxe,formatRgb:u8,toString:u8}));function c8(){return`#${Vu(this.r)}${Vu(this.g)}${Vu(this.b)}`}function Wxe(){return`#${Vu(this.r)}${Vu(this.g)}${Vu(this.b)}${Vu((isNaN(this.opacity)?1:this.opacity)*255)}`}function u8(){const e=Ix(this.opacity);return`${e===1?"rgb(":"rgba("}${nd(this.r)}, ${nd(this.g)}, ${nd(this.b)}${e===1?")":`, ${e})`}`}function Ix(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function nd(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function Vu(e){return e=nd(e),(e<16?"0":"")+e.toString(16)}function d8(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Is(e,t,n,r)}function GK(e){if(e instanceof Is)return new Is(e.h,e.s,e.l,e.opacity);if(e instanceof _v||(e=Ng(e)),!e)return new Is;if(e instanceof Is)return e;e=e.rgb();var t=e.r/255,n=e.g/255,r=e.b/255,o=Math.min(t,n,r),i=Math.max(t,n,r),a=NaN,s=i-o,l=(i+o)/2;return s?(t===i?a=(n-r)/s+(n<r)*6:n===i?a=(r-t)/s+2:a=(t-n)/s+4,s/=l<.5?i+o:2-i-o,a*=60):s=l>0&&l<1?0:a,new Is(a,s,l,e.opacity)}function Uxe(e,t,n,r){return arguments.length===1?GK(e):new Is(e,t,n,r??1)}function Is(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}CR(Is,Uxe,qK(_v,{brighter(e){return e=e==null?jx:Math.pow(jx,e),new Is(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?Ig:Math.pow(Ig,e),new Is(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,o=2*n-r;return new Zi(j$(e>=240?e-240:e+120,o,r),j$(e,o,r),j$(e<120?e+240:e-120,o,r),this.opacity)},clamp(){return new Is(f8(this.h),Z0(this.s),Z0(this.l),Ix(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=Ix(this.opacity);return`${e===1?"hsl(":"hsla("}${f8(this.h)}, ${Z0(this.s)*100}%, ${Z0(this.l)*100}%${e===1?")":`, ${e})`}`}}));function f8(e){return e=(e||0)%360,e<0?e+360:e}function Z0(e){return Math.max(0,Math.min(1,e||0))}function j$(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}const $R=e=>()=>e;function Kxe(e,t){return function(n){return e+n*t}}function qxe(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}function Gxe(e){return(e=+e)==1?XK:function(t,n){return n-t?qxe(t,n,e):$R(isNaN(t)?n:t)}}function XK(e,t){var n=t-e;return n?Kxe(e,n):$R(isNaN(e)?t:e)}const m8=function e(t){var n=Gxe(t);function r(o,i){var a=n((o=oP(o)).r,(i=oP(i)).r),s=n(o.g,i.g),l=n(o.b,i.b),u=XK(o.opacity,i.opacity);return function(d){return o.r=a(d),o.g=s(d),o.b=l(d),o.opacity=u(d),o+""}}return r.gamma=e,r}(1);function Xxe(e,t){t||(t=[]);var n=e?Math.min(t.length,e.length):0,r=t.slice(),o;return function(i){for(o=0;o<n;++o)r[o]=e[o]*(1-i)+t[o]*i;return r}}function Yxe(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function Zxe(e,t){var n=t?t.length:0,r=e?Math.min(n,e.length):0,o=new Array(r),i=new Array(n),a;for(a=0;a<r;++a)o[a]=ah(e[a],t[a]);for(;a<n;++a)i[a]=t[a];return function(s){for(a=0;a<r;++a)i[a]=o[a](s);return i}}function Jxe(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}function _x(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function Qxe(e,t){var n={},r={},o;(e===null||typeof e!="object")&&(e={}),(t===null||typeof t!="object")&&(t={});for(o in t)o in e?n[o]=ah(e[o],t[o]):r[o]=t[o];return function(i){for(o in n)r[o]=n[o](i);return r}}var iP=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,I$=new RegExp(iP.source,"g");function e1e(e){return function(){return e}}function t1e(e){return function(t){return e(t)+""}}function n1e(e,t){var n=iP.lastIndex=I$.lastIndex=0,r,o,i,a=-1,s=[],l=[];for(e=e+"",t=t+"";(r=iP.exec(e))&&(o=I$.exec(t));)(i=o.index)>n&&(i=t.slice(n,i),s[a]?s[a]+=i:s[++a]=i),(r=r[0])===(o=o[0])?s[a]?s[a]+=o:s[++a]=o:(s[++a]=null,l.push({i:a,x:_x(r,o)})),n=I$.lastIndex;return n<t.length&&(i=t.slice(n),s[a]?s[a]+=i:s[++a]=i),s.length<2?l[0]?t1e(l[0].x):e1e(t):(t=l.length,function(u){for(var d=0,f;d<t;++d)s[(f=l[d]).i]=f.x(u);return s.join("")})}function ah(e,t){var n=typeof t,r;return t==null||n==="boolean"?$R(t):(n==="number"?_x:n==="string"?(r=Ng(t))?(t=r,m8):n1e:t instanceof Ng?m8:t instanceof Date?Jxe:Yxe(t)?Xxe:Array.isArray(t)?Zxe:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?Qxe:_x)(e,t)}function ER(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}function r1e(e,t){t===void 0&&(t=e,e=ah);for(var n=0,r=t.length-1,o=t[0],i=new Array(r<0?0:r);n<r;)i[n]=e(o,o=t[++n]);return function(a){var s=Math.max(0,Math.min(r-1,Math.floor(a*=r)));return i[s](a-s)}}function o1e(e){return function(){return e}}function Nx(e){return+e}var h8=[0,1];function ki(e){return e}function aP(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:o1e(isNaN(t)?NaN:.5)}function i1e(e,t){var n;return e>t&&(n=e,e=t,t=n),function(r){return Math.max(e,Math.min(t,r))}}function a1e(e,t,n){var r=e[0],o=e[1],i=t[0],a=t[1];return o<r?(r=aP(o,r),i=n(a,i)):(r=aP(r,o),i=n(i,a)),function(s){return i(r(s))}}function s1e(e,t,n){var r=Math.min(e.length,t.length)-1,o=new Array(r),i=new Array(r),a=-1;for(e[r]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++a<r;)o[a]=aP(e[a],e[a+1]),i[a]=n(t[a],t[a+1]);return function(s){var l=Iv(e,s,1,r)-1;return i[l](o[l](s))}}function Nv(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function Rw(){var e=h8,t=h8,n=ah,r,o,i,a=ki,s,l,u;function d(){var m=Math.min(e.length,t.length);return a!==ki&&(a=i1e(e[0],e[m-1])),s=m>2?s1e:a1e,l=u=null,f}function f(m){return m==null||isNaN(m=+m)?i:(l||(l=s(e.map(r),t,n)))(r(a(m)))}return f.invert=function(m){return a(o((u||(u=s(t,e.map(r),_x)))(m)))},f.domain=function(m){return arguments.length?(e=Array.from(m,Nx),d()):e.slice()},f.range=function(m){return arguments.length?(t=Array.from(m),d()):t.slice()},f.rangeRound=function(m){return t=Array.from(m),n=ER,d()},f.clamp=function(m){return arguments.length?(a=m?!0:ki,d()):a!==ki},f.interpolate=function(m){return arguments.length?(n=m,d()):n},f.unknown=function(m){return arguments.length?(i=m,f):i},function(m,h){return r=m,o=h,d()}}function OR(){return Rw()(ki,ki)}function l1e(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function Rx(e,t){if((n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"))<0)return null;var n,r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}function Nm(e){return e=Rx(Math.abs(e)),e?e[1]:NaN}function c1e(e,t){return function(n,r){for(var o=n.length,i=[],a=0,s=e[0],l=0;o>0&&s>0&&(l+s+1>r&&(s=Math.max(1,r-l)),i.push(n.substring(o-=s,o+s)),!((l+=s+1)>r));)s=e[a=(a+1)%e.length];return i.reverse().join(t)}}function u1e(e){return function(t){return t.replace(/[0-9]/g,function(n){return e[+n]})}}var d1e=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Rg(e){if(!(t=d1e.exec(e)))throw new Error("invalid format: "+e);var t;return new PR({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}Rg.prototype=PR.prototype;function PR(e){this.fill=e.fill===void 0?" ":e.fill+"",this.align=e.align===void 0?">":e.align+"",this.sign=e.sign===void 0?"-":e.sign+"",this.symbol=e.symbol===void 0?"":e.symbol+"",this.zero=!!e.zero,this.width=e.width===void 0?void 0:+e.width,this.comma=!!e.comma,this.precision=e.precision===void 0?void 0:+e.precision,this.trim=!!e.trim,this.type=e.type===void 0?"":e.type+""}PR.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function f1e(e){e:for(var t=e.length,n=1,r=-1,o;n<t;++n)switch(e[n]){case".":r=o=n;break;case"0":r===0&&(r=n),o=n;break;default:if(!+e[n])break e;r>0&&(r=0);break}return r>0?e.slice(0,r)+e.slice(o+1):e}var YK;function m1e(e,t){var n=Rx(e,t);if(!n)return e+"";var r=n[0],o=n[1],i=o-(YK=Math.max(-8,Math.min(8,Math.floor(o/3)))*3)+1,a=r.length;return i===a?r:i>a?r+new Array(i-a+1).join("0"):i>0?r.slice(0,i)+"."+r.slice(i):"0."+new Array(1-i).join("0")+Rx(e,Math.max(0,t+i-1))[0]}function p8(e,t){var n=Rx(e,t);if(!n)return e+"";var r=n[0],o=n[1];return o<0?"0."+new Array(-o).join("0")+r:r.length>o+1?r.slice(0,o+1)+"."+r.slice(o+1):r+new Array(o-r.length+2).join("0")}const g8={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:l1e,e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>p8(e*100,t),r:p8,s:m1e,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function v8(e){return e}var y8=Array.prototype.map,b8=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function h1e(e){var t=e.grouping===void 0||e.thousands===void 0?v8:c1e(y8.call(e.grouping,Number),e.thousands+""),n=e.currency===void 0?"":e.currency[0]+"",r=e.currency===void 0?"":e.currency[1]+"",o=e.decimal===void 0?".":e.decimal+"",i=e.numerals===void 0?v8:u1e(y8.call(e.numerals,String)),a=e.percent===void 0?"%":e.percent+"",s=e.minus===void 0?"−":e.minus+"",l=e.nan===void 0?"NaN":e.nan+"";function u(f){f=Rg(f);var m=f.fill,h=f.align,p=f.sign,b=f.symbol,v=f.zero,y=f.width,x=f.comma,w=f.precision,C=f.trim,S=f.type;S==="n"?(x=!0,S="g"):g8[S]||(w===void 0&&(w=12),C=!0,S="g"),(v||m==="0"&&h==="=")&&(v=!0,m="0",h="=");var $=b==="$"?n:b==="#"&&/[boxX]/.test(S)?"0"+S.toLowerCase():"",E=b==="$"?r:/[%p]/.test(S)?a:"",O=g8[S],P=/[defgprs%]/.test(S);w=w===void 0?6:/[gprs]/.test(S)?Math.max(1,Math.min(21,w)):Math.max(0,Math.min(20,w));function j(I){var _=$,R=E,N,A,M;if(S==="c")R=O(I)+R,I="";else{I=+I;var T=I<0||1/I<0;if(I=isNaN(I)?l:O(Math.abs(I),w),C&&(I=f1e(I)),T&&+I==0&&p!=="+"&&(T=!1),_=(T?p==="("?p:s:p==="-"||p==="("?"":p)+_,R=(S==="s"?b8[8+YK/3]:"")+R+(T&&p==="("?")":""),P){for(N=-1,A=I.length;++N<A;)if(M=I.charCodeAt(N),48>M||M>57){R=(M===46?o+I.slice(N+1):I.slice(N))+R,I=I.slice(0,N);break}}}x&&!v&&(I=t(I,1/0));var k=_.length+I.length+R.length,D=k<y?new Array(y-k+1).join(m):"";switch(x&&v&&(I=t(D+I,D.length?y-R.length:1/0),D=""),h){case"<":I=_+I+R+D;break;case"=":I=_+D+I+R;break;case"^":I=D.slice(0,k=D.length>>1)+_+I+R+D.slice(k);break;default:I=D+_+I+R;break}return i(I)}return j.toString=function(){return f+""},j}function d(f,m){var h=u((f=Rg(f),f.type="f",f)),p=Math.max(-8,Math.min(8,Math.floor(Nm(m)/3)))*3,b=Math.pow(10,-p),v=b8[8+p/3];return function(y){return h(b*y)+v}}return{format:u,formatPrefix:d}}var J0,jR,ZK;p1e({thousands:",",grouping:[3],currency:["$",""]});function p1e(e){return J0=h1e(e),jR=J0.format,ZK=J0.formatPrefix,J0}function g1e(e){return Math.max(0,-Nm(Math.abs(e)))}function v1e(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(Nm(t)/3)))*3-Nm(Math.abs(e)))}function y1e(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,Nm(t)-Nm(e))+1}function JK(e,t,n,r){var o=nP(e,t,n),i;switch(r=Rg(r??",f"),r.type){case"s":{var a=Math.max(Math.abs(e),Math.abs(t));return r.precision==null&&!isNaN(i=v1e(o,a))&&(r.precision=i),ZK(r,a)}case"":case"e":case"g":case"p":case"r":{r.precision==null&&!isNaN(i=y1e(o,Math.max(Math.abs(e),Math.abs(t))))&&(r.precision=i-(r.type==="e"));break}case"f":case"%":{r.precision==null&&!isNaN(i=g1e(o))&&(r.precision=i-(r.type==="%")*2);break}}return jR(r)}function fu(e){var t=e.domain;return e.ticks=function(n){var r=t();return eP(r[0],r[r.length-1],n??10)},e.tickFormat=function(n,r){var o=t();return JK(o[0],o[o.length-1],n??10,r)},e.nice=function(n){n==null&&(n=10);var r=t(),o=0,i=r.length-1,a=r[o],s=r[i],l,u,d=10;for(s<a&&(u=a,a=s,s=u,u=o,o=i,i=u);d-- >0;){if(u=tP(a,s,n),u===l)return r[o]=a,r[i]=s,t(r);if(u>0)a=Math.floor(a/u)*u,s=Math.ceil(s/u)*u;else if(u<0)a=Math.ceil(a*u)/u,s=Math.floor(s*u)/u;else break;l=u}return e},e}function QK(){var e=OR();return e.copy=function(){return Nv(e,QK())},hs.apply(e,arguments),fu(e)}function eq(e){var t;function n(r){return r==null||isNaN(r=+r)?t:r}return n.invert=n,n.domain=n.range=function(r){return arguments.length?(e=Array.from(r,Nx),n):e.slice()},n.unknown=function(r){return arguments.length?(t=r,n):t},n.copy=function(){return eq(e).unknown(t)},e=arguments.length?Array.from(e,Nx):[0,1],fu(n)}function tq(e,t){e=e.slice();var n=0,r=e.length-1,o=e[n],i=e[r],a;return i<o&&(a=n,n=r,r=a,a=o,o=i,i=a),e[n]=t.floor(o),e[r]=t.ceil(i),e}function x8(e){return Math.log(e)}function w8(e){return Math.exp(e)}function b1e(e){return-Math.log(-e)}function x1e(e){return-Math.exp(-e)}function w1e(e){return isFinite(e)?+("1e"+e):e<0?0:e}function S1e(e){return e===10?w1e:e===Math.E?Math.exp:t=>Math.pow(e,t)}function C1e(e){return e===Math.E?Math.log:e===10&&Math.log10||e===2&&Math.log2||(e=Math.log(e),t=>Math.log(t)/e)}function S8(e){return(t,n)=>-e(-t,n)}function IR(e){const t=e(x8,w8),n=t.domain;let r=10,o,i;function a(){return o=C1e(r),i=S1e(r),n()[0]<0?(o=S8(o),i=S8(i),e(b1e,x1e)):e(x8,w8),t}return t.base=function(s){return arguments.length?(r=+s,a()):r},t.domain=function(s){return arguments.length?(n(s),a()):n()},t.ticks=s=>{const l=n();let u=l[0],d=l[l.length-1];const f=d<u;f&&([u,d]=[d,u]);let m=o(u),h=o(d),p,b;const v=s==null?10:+s;let y=[];if(!(r%1)&&h-m<v){if(m=Math.floor(m),h=Math.ceil(h),u>0){for(;m<=h;++m)for(p=1;p<r;++p)if(b=m<0?p/i(-m):p*i(m),!(b<u)){if(b>d)break;y.push(b)}}else for(;m<=h;++m)for(p=r-1;p>=1;--p)if(b=m>0?p/i(-m):p*i(m),!(b<u)){if(b>d)break;y.push(b)}y.length*2<v&&(y=eP(u,d,v))}else y=eP(m,h,Math.min(h-m,v)).map(i);return f?y.reverse():y},t.tickFormat=(s,l)=>{if(s==null&&(s=10),l==null&&(l=r===10?"s":","),typeof l!="function"&&(!(r%1)&&(l=Rg(l)).precision==null&&(l.trim=!0),l=jR(l)),s===1/0)return l;const u=Math.max(1,r*s/t.ticks().length);return d=>{let f=d/i(Math.round(o(d)));return f*r<r-.5&&(f*=r),f<=u?l(d):""}},t.nice=()=>n(tq(n(),{floor:s=>i(Math.floor(o(s))),ceil:s=>i(Math.ceil(o(s)))})),t}function nq(){const e=IR(Rw()).domain([1,10]);return e.copy=()=>Nv(e,nq()).base(e.base()),hs.apply(e,arguments),e}function C8(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function $8(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function _R(e){var t=1,n=e(C8(t),$8(t));return n.constant=function(r){return arguments.length?e(C8(t=+r),$8(t)):t},fu(n)}function rq(){var e=_R(Rw());return e.copy=function(){return Nv(e,rq()).constant(e.constant())},hs.apply(e,arguments)}function E8(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function $1e(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function E1e(e){return e<0?-e*e:e*e}function NR(e){var t=e(ki,ki),n=1;function r(){return n===1?e(ki,ki):n===.5?e($1e,E1e):e(E8(n),E8(1/n))}return t.exponent=function(o){return arguments.length?(n=+o,r()):n},fu(t)}function RR(){var e=NR(Rw());return e.copy=function(){return Nv(e,RR()).exponent(e.exponent())},hs.apply(e,arguments),e}function O1e(){return RR.apply(null,arguments).exponent(.5)}function O8(e){return Math.sign(e)*e*e}function P1e(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function oq(){var e=OR(),t=[0,1],n=!1,r;function o(i){var a=P1e(e(i));return isNaN(a)?r:n?Math.round(a):a}return o.invert=function(i){return e.invert(O8(i))},o.domain=function(i){return arguments.length?(e.domain(i),o):e.domain()},o.range=function(i){return arguments.length?(e.range((t=Array.from(i,Nx)).map(O8)),o):t.slice()},o.rangeRound=function(i){return o.range(i).round(!0)},o.round=function(i){return arguments.length?(n=!!i,o):n},o.clamp=function(i){return arguments.length?(e.clamp(i),o):e.clamp()},o.unknown=function(i){return arguments.length?(r=i,o):r},o.copy=function(){return oq(e.domain(),t).round(n).clamp(e.clamp()).unknown(r)},hs.apply(o,arguments),fu(o)}function iq(){var e=[],t=[],n=[],r;function o(){var a=0,s=Math.max(1,t.length);for(n=new Array(s-1);++a<s;)n[a-1]=Nxe(e,a/s);return i}function i(a){return a==null||isNaN(a=+a)?r:t[Iv(n,a)]}return i.invertExtent=function(a){var s=t.indexOf(a);return s<0?[NaN,NaN]:[s>0?n[s-1]:e[0],s<n.length?n[s]:e[e.length-1]]},i.domain=function(a){if(!arguments.length)return e.slice();e=[];for(let s of a)s!=null&&!isNaN(s=+s)&&e.push(s);return e.sort(Vc),o()},i.range=function(a){return arguments.length?(t=Array.from(a),o()):t.slice()},i.unknown=function(a){return arguments.length?(r=a,i):r},i.quantiles=function(){return n.slice()},i.copy=function(){return iq().domain(e).range(t).unknown(r)},hs.apply(i,arguments)}function aq(){var e=0,t=1,n=1,r=[.5],o=[0,1],i;function a(l){return l!=null&&l<=l?o[Iv(r,l,0,n)]:i}function s(){var l=-1;for(r=new Array(n);++l<n;)r[l]=((l+1)*t-(l-n)*e)/(n+1);return a}return a.domain=function(l){return arguments.length?([e,t]=l,e=+e,t=+t,s()):[e,t]},a.range=function(l){return arguments.length?(n=(o=Array.from(l)).length-1,s()):o.slice()},a.invertExtent=function(l){var u=o.indexOf(l);return u<0?[NaN,NaN]:u<1?[e,r[0]]:u>=n?[r[n-1],t]:[r[u-1],r[u]]},a.unknown=function(l){return arguments.length&&(i=l),a},a.thresholds=function(){return r.slice()},a.copy=function(){return aq().domain([e,t]).range(o).unknown(i)},hs.apply(fu(a),arguments)}function sq(){var e=[.5],t=[0,1],n,r=1;function o(i){return i!=null&&i<=i?t[Iv(e,i,0,r)]:n}return o.domain=function(i){return arguments.length?(e=Array.from(i),r=Math.min(e.length,t.length-1),o):e.slice()},o.range=function(i){return arguments.length?(t=Array.from(i),r=Math.min(e.length,t.length-1),o):t.slice()},o.invertExtent=function(i){var a=t.indexOf(i);return[e[a-1],e[a]]},o.unknown=function(i){return arguments.length?(n=i,o):n},o.copy=function(){return sq().domain(e).range(t).unknown(n)},hs.apply(o,arguments)}const _$=new Date,N$=new Date;function Io(e,t,n,r){function o(i){return e(i=arguments.length===0?new Date:new Date(+i)),i}return o.floor=i=>(e(i=new Date(+i)),i),o.ceil=i=>(e(i=new Date(i-1)),t(i,1),e(i),i),o.round=i=>{const a=o(i),s=o.ceil(i);return i-a<s-i?a:s},o.offset=(i,a)=>(t(i=new Date(+i),a==null?1:Math.floor(a)),i),o.range=(i,a,s)=>{const l=[];if(i=o.ceil(i),s=s==null?1:Math.floor(s),!(i<a)||!(s>0))return l;let u;do l.push(u=new Date(+i)),t(i,s),e(i);while(u<i&&i<a);return l},o.filter=i=>Io(a=>{if(a>=a)for(;e(a),!i(a);)a.setTime(a-1)},(a,s)=>{if(a>=a)if(s<0)for(;++s<=0;)for(;t(a,-1),!i(a););else for(;--s>=0;)for(;t(a,1),!i(a););}),n&&(o.count=(i,a)=>(_$.setTime(+i),N$.setTime(+a),e(_$),e(N$),Math.floor(n(_$,N$))),o.every=i=>(i=Math.floor(i),!isFinite(i)||!(i>0)?null:i>1?o.filter(r?a=>r(a)%i===0:a=>o.count(0,a)%i===0):o)),o}const Tx=Io(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);Tx.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?Io(t=>{t.setTime(Math.floor(t/e)*e)},(t,n)=>{t.setTime(+t+n*e)},(t,n)=>(n-t)/e):Tx);Tx.range;const Nl=1e3,Za=Nl*60,Rl=Za*60,Kl=Rl*24,TR=Kl*7,P8=Kl*30,R$=Kl*365,Wu=Io(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*Nl)},(e,t)=>(t-e)/Nl,e=>e.getUTCSeconds());Wu.range;const MR=Io(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Nl)},(e,t)=>{e.setTime(+e+t*Za)},(e,t)=>(t-e)/Za,e=>e.getMinutes());MR.range;const kR=Io(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*Za)},(e,t)=>(t-e)/Za,e=>e.getUTCMinutes());kR.range;const AR=Io(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Nl-e.getMinutes()*Za)},(e,t)=>{e.setTime(+e+t*Rl)},(e,t)=>(t-e)/Rl,e=>e.getHours());AR.range;const DR=Io(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*Rl)},(e,t)=>(t-e)/Rl,e=>e.getUTCHours());DR.range;const Rv=Io(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*Za)/Kl,e=>e.getDate()-1);Rv.range;const Tw=Io(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Kl,e=>e.getUTCDate()-1);Tw.range;const lq=Io(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Kl,e=>Math.floor(e/Kl));lq.range;function Hd(e){return Io(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(t,n)=>{t.setDate(t.getDate()+n*7)},(t,n)=>(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*Za)/TR)}const Mw=Hd(0),Mx=Hd(1),j1e=Hd(2),I1e=Hd(3),Rm=Hd(4),_1e=Hd(5),N1e=Hd(6);Mw.range;Mx.range;j1e.range;I1e.range;Rm.range;_1e.range;N1e.range;function Vd(e){return Io(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCDate(t.getUTCDate()+n*7)},(t,n)=>(n-t)/TR)}const kw=Vd(0),kx=Vd(1),R1e=Vd(2),T1e=Vd(3),Tm=Vd(4),M1e=Vd(5),k1e=Vd(6);kw.range;kx.range;R1e.range;T1e.range;Tm.range;M1e.range;k1e.range;const LR=Io(e=>{e.setDate(1),e.setHours(0,0,0,0)},(e,t)=>{e.setMonth(e.getMonth()+t)},(e,t)=>t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12,e=>e.getMonth());LR.range;const zR=Io(e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCMonth(e.getUTCMonth()+t)},(e,t)=>t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12,e=>e.getUTCMonth());zR.range;const ql=Io(e=>{e.setMonth(0,1),e.setHours(0,0,0,0)},(e,t)=>{e.setFullYear(e.getFullYear()+t)},(e,t)=>t.getFullYear()-e.getFullYear(),e=>e.getFullYear());ql.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Io(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,n)=>{t.setFullYear(t.getFullYear()+n*e)});ql.range;const Gl=Io(e=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCFullYear(e.getUTCFullYear()+t)},(e,t)=>t.getUTCFullYear()-e.getUTCFullYear(),e=>e.getUTCFullYear());Gl.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:Io(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCFullYear(t.getUTCFullYear()+n*e)});Gl.range;function cq(e,t,n,r,o,i){const a=[[Wu,1,Nl],[Wu,5,5*Nl],[Wu,15,15*Nl],[Wu,30,30*Nl],[i,1,Za],[i,5,5*Za],[i,15,15*Za],[i,30,30*Za],[o,1,Rl],[o,3,3*Rl],[o,6,6*Rl],[o,12,12*Rl],[r,1,Kl],[r,2,2*Kl],[n,1,TR],[t,1,P8],[t,3,3*P8],[e,1,R$]];function s(u,d,f){const m=d<u;m&&([u,d]=[d,u]);const h=f&&typeof f.range=="function"?f:l(u,d,f),p=h?h.range(u,+d+1):[];return m?p.reverse():p}function l(u,d,f){const m=Math.abs(d-u)/f,h=xR(([,,v])=>v).right(a,m);if(h===a.length)return e.every(nP(u/R$,d/R$,f));if(h===0)return Tx.every(Math.max(nP(u,d,f),1));const[p,b]=a[m/a[h-1][2]<a[h][2]/m?h-1:h];return p.every(b)}return[s,l]}const[A1e,D1e]=cq(Gl,zR,kw,lq,DR,kR),[L1e,z1e]=cq(ql,LR,Mw,Rv,AR,MR);function T$(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function M$(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function Qh(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}function F1e(e){var t=e.dateTime,n=e.date,r=e.time,o=e.periods,i=e.days,a=e.shortDays,s=e.months,l=e.shortMonths,u=ep(o),d=tp(o),f=ep(i),m=tp(i),h=ep(a),p=tp(a),b=ep(s),v=tp(s),y=ep(l),x=tp(l),w={a:T,A:k,b:D,B:L,c:null,d:T8,e:T8,f:cwe,g:bwe,G:wwe,H:awe,I:swe,j:lwe,L:uq,m:uwe,M:dwe,p:B,q:H,Q:A8,s:D8,S:fwe,u:mwe,U:hwe,V:pwe,w:gwe,W:vwe,x:null,X:null,y:ywe,Y:xwe,Z:Swe,"%":k8},C={a:F,A:W,b:q,B:G,c:null,d:M8,e:M8,f:Owe,g:Awe,G:Lwe,H:Cwe,I:$we,j:Ewe,L:fq,m:Pwe,M:jwe,p:te,q:ee,Q:A8,s:D8,S:Iwe,u:_we,U:Nwe,V:Rwe,w:Twe,W:Mwe,x:null,X:null,y:kwe,Y:Dwe,Z:zwe,"%":k8},S={a:j,A:I,b:_,B:R,c:N,d:N8,e:N8,f:nwe,g:_8,G:I8,H:R8,I:R8,j:J1e,L:twe,m:Z1e,M:Q1e,p:P,q:Y1e,Q:owe,s:iwe,S:ewe,u:U1e,U:K1e,V:q1e,w:W1e,W:G1e,x:A,X:M,y:_8,Y:I8,Z:X1e,"%":rwe};w.x=$(n,w),w.X=$(r,w),w.c=$(t,w),C.x=$(n,C),C.X=$(r,C),C.c=$(t,C);function $(z,ne){return function(X){var U=[],le=-1,se=0,ae=z.length,re,fe,ye;for(X instanceof Date||(X=new Date(+X));++le<ae;)z.charCodeAt(le)===37&&(U.push(z.slice(se,le)),(fe=j8[re=z.charAt(++le)])!=null?re=z.charAt(++le):fe=re==="e"?" ":"0",(ye=ne[re])&&(re=ye(X,fe)),U.push(re),se=le+1);return U.push(z.slice(se,le)),U.join("")}}function E(z,ne){return function(X){var U=Qh(1900,void 0,1),le=O(U,z,X+="",0),se,ae;if(le!=X.length)return null;if("Q"in U)return new Date(U.Q);if("s"in U)return new Date(U.s*1e3+("L"in U?U.L:0));if(ne&&!("Z"in U)&&(U.Z=0),"p"in U&&(U.H=U.H%12+U.p*12),U.m===void 0&&(U.m="q"in U?U.q:0),"V"in U){if(U.V<1||U.V>53)return null;"w"in U||(U.w=1),"Z"in U?(se=M$(Qh(U.y,0,1)),ae=se.getUTCDay(),se=ae>4||ae===0?kx.ceil(se):kx(se),se=Tw.offset(se,(U.V-1)*7),U.y=se.getUTCFullYear(),U.m=se.getUTCMonth(),U.d=se.getUTCDate()+(U.w+6)%7):(se=T$(Qh(U.y,0,1)),ae=se.getDay(),se=ae>4||ae===0?Mx.ceil(se):Mx(se),se=Rv.offset(se,(U.V-1)*7),U.y=se.getFullYear(),U.m=se.getMonth(),U.d=se.getDate()+(U.w+6)%7)}else("W"in U||"U"in U)&&("w"in U||(U.w="u"in U?U.u%7:"W"in U?1:0),ae="Z"in U?M$(Qh(U.y,0,1)).getUTCDay():T$(Qh(U.y,0,1)).getDay(),U.m=0,U.d="W"in U?(U.w+6)%7+U.W*7-(ae+5)%7:U.w+U.U*7-(ae+6)%7);return"Z"in U?(U.H+=U.Z/100|0,U.M+=U.Z%100,M$(U)):T$(U)}}function O(z,ne,X,U){for(var le=0,se=ne.length,ae=X.length,re,fe;le<se;){if(U>=ae)return-1;if(re=ne.charCodeAt(le++),re===37){if(re=ne.charAt(le++),fe=S[re in j8?ne.charAt(le++):re],!fe||(U=fe(z,X,U))<0)return-1}else if(re!=X.charCodeAt(U++))return-1}return U}function P(z,ne,X){var U=u.exec(ne.slice(X));return U?(z.p=d.get(U[0].toLowerCase()),X+U[0].length):-1}function j(z,ne,X){var U=h.exec(ne.slice(X));return U?(z.w=p.get(U[0].toLowerCase()),X+U[0].length):-1}function I(z,ne,X){var U=f.exec(ne.slice(X));return U?(z.w=m.get(U[0].toLowerCase()),X+U[0].length):-1}function _(z,ne,X){var U=y.exec(ne.slice(X));return U?(z.m=x.get(U[0].toLowerCase()),X+U[0].length):-1}function R(z,ne,X){var U=b.exec(ne.slice(X));return U?(z.m=v.get(U[0].toLowerCase()),X+U[0].length):-1}function N(z,ne,X){return O(z,t,ne,X)}function A(z,ne,X){return O(z,n,ne,X)}function M(z,ne,X){return O(z,r,ne,X)}function T(z){return a[z.getDay()]}function k(z){return i[z.getDay()]}function D(z){return l[z.getMonth()]}function L(z){return s[z.getMonth()]}function B(z){return o[+(z.getHours()>=12)]}function H(z){return 1+~~(z.getMonth()/3)}function F(z){return a[z.getUTCDay()]}function W(z){return i[z.getUTCDay()]}function q(z){return l[z.getUTCMonth()]}function G(z){return s[z.getUTCMonth()]}function te(z){return o[+(z.getUTCHours()>=12)]}function ee(z){return 1+~~(z.getUTCMonth()/3)}return{format:function(z){var ne=$(z+="",w);return ne.toString=function(){return z},ne},parse:function(z){var ne=E(z+="",!1);return ne.toString=function(){return z},ne},utcFormat:function(z){var ne=$(z+="",C);return ne.toString=function(){return z},ne},utcParse:function(z){var ne=E(z+="",!0);return ne.toString=function(){return z},ne}}}var j8={"-":"",_:" ",0:"0"},Go=/^\s*\d+/,B1e=/^%/,H1e=/[\\^$*+?|[\]().{}]/g;function Un(e,t,n){var r=e<0?"-":"",o=(r?-e:e)+"",i=o.length;return r+(i<n?new Array(n-i+1).join(t)+o:o)}function V1e(e){return e.replace(H1e,"\\$&")}function ep(e){return new RegExp("^(?:"+e.map(V1e).join("|")+")","i")}function tp(e){return new Map(e.map((t,n)=>[t.toLowerCase(),n]))}function W1e(e,t,n){var r=Go.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function U1e(e,t,n){var r=Go.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function K1e(e,t,n){var r=Go.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function q1e(e,t,n){var r=Go.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function G1e(e,t,n){var r=Go.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function I8(e,t,n){var r=Go.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function _8(e,t,n){var r=Go.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function X1e(e,t,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function Y1e(e,t,n){var r=Go.exec(t.slice(n,n+1));return r?(e.q=r[0]*3-3,n+r[0].length):-1}function Z1e(e,t,n){var r=Go.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function N8(e,t,n){var r=Go.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function J1e(e,t,n){var r=Go.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function R8(e,t,n){var r=Go.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function Q1e(e,t,n){var r=Go.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function ewe(e,t,n){var r=Go.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function twe(e,t,n){var r=Go.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function nwe(e,t,n){var r=Go.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function rwe(e,t,n){var r=B1e.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function owe(e,t,n){var r=Go.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function iwe(e,t,n){var r=Go.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function T8(e,t){return Un(e.getDate(),t,2)}function awe(e,t){return Un(e.getHours(),t,2)}function swe(e,t){return Un(e.getHours()%12||12,t,2)}function lwe(e,t){return Un(1+Rv.count(ql(e),e),t,3)}function uq(e,t){return Un(e.getMilliseconds(),t,3)}function cwe(e,t){return uq(e,t)+"000"}function uwe(e,t){return Un(e.getMonth()+1,t,2)}function dwe(e,t){return Un(e.getMinutes(),t,2)}function fwe(e,t){return Un(e.getSeconds(),t,2)}function mwe(e){var t=e.getDay();return t===0?7:t}function hwe(e,t){return Un(Mw.count(ql(e)-1,e),t,2)}function dq(e){var t=e.getDay();return t>=4||t===0?Rm(e):Rm.ceil(e)}function pwe(e,t){return e=dq(e),Un(Rm.count(ql(e),e)+(ql(e).getDay()===4),t,2)}function gwe(e){return e.getDay()}function vwe(e,t){return Un(Mx.count(ql(e)-1,e),t,2)}function ywe(e,t){return Un(e.getFullYear()%100,t,2)}function bwe(e,t){return e=dq(e),Un(e.getFullYear()%100,t,2)}function xwe(e,t){return Un(e.getFullYear()%1e4,t,4)}function wwe(e,t){var n=e.getDay();return e=n>=4||n===0?Rm(e):Rm.ceil(e),Un(e.getFullYear()%1e4,t,4)}function Swe(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+Un(t/60|0,"0",2)+Un(t%60,"0",2)}function M8(e,t){return Un(e.getUTCDate(),t,2)}function Cwe(e,t){return Un(e.getUTCHours(),t,2)}function $we(e,t){return Un(e.getUTCHours()%12||12,t,2)}function Ewe(e,t){return Un(1+Tw.count(Gl(e),e),t,3)}function fq(e,t){return Un(e.getUTCMilliseconds(),t,3)}function Owe(e,t){return fq(e,t)+"000"}function Pwe(e,t){return Un(e.getUTCMonth()+1,t,2)}function jwe(e,t){return Un(e.getUTCMinutes(),t,2)}function Iwe(e,t){return Un(e.getUTCSeconds(),t,2)}function _we(e){var t=e.getUTCDay();return t===0?7:t}function Nwe(e,t){return Un(kw.count(Gl(e)-1,e),t,2)}function mq(e){var t=e.getUTCDay();return t>=4||t===0?Tm(e):Tm.ceil(e)}function Rwe(e,t){return e=mq(e),Un(Tm.count(Gl(e),e)+(Gl(e).getUTCDay()===4),t,2)}function Twe(e){return e.getUTCDay()}function Mwe(e,t){return Un(kx.count(Gl(e)-1,e),t,2)}function kwe(e,t){return Un(e.getUTCFullYear()%100,t,2)}function Awe(e,t){return e=mq(e),Un(e.getUTCFullYear()%100,t,2)}function Dwe(e,t){return Un(e.getUTCFullYear()%1e4,t,4)}function Lwe(e,t){var n=e.getUTCDay();return e=n>=4||n===0?Tm(e):Tm.ceil(e),Un(e.getUTCFullYear()%1e4,t,4)}function zwe(){return"+0000"}function k8(){return"%"}function A8(e){return+e}function D8(e){return Math.floor(+e/1e3)}var sf,hq,pq;Fwe({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function Fwe(e){return sf=F1e(e),hq=sf.format,sf.parse,pq=sf.utcFormat,sf.utcParse,sf}function Bwe(e){return new Date(e)}function Hwe(e){return e instanceof Date?+e:+new Date(+e)}function FR(e,t,n,r,o,i,a,s,l,u){var d=OR(),f=d.invert,m=d.domain,h=u(".%L"),p=u(":%S"),b=u("%I:%M"),v=u("%I %p"),y=u("%a %d"),x=u("%b %d"),w=u("%B"),C=u("%Y");function S($){return(l($)<$?h:s($)<$?p:a($)<$?b:i($)<$?v:r($)<$?o($)<$?y:x:n($)<$?w:C)($)}return d.invert=function($){return new Date(f($))},d.domain=function($){return arguments.length?m(Array.from($,Hwe)):m().map(Bwe)},d.ticks=function($){var E=m();return e(E[0],E[E.length-1],$??10)},d.tickFormat=function($,E){return E==null?S:u(E)},d.nice=function($){var E=m();return(!$||typeof $.range!="function")&&($=t(E[0],E[E.length-1],$??10)),$?m(tq(E,$)):d},d.copy=function(){return Nv(d,FR(e,t,n,r,o,i,a,s,l,u))},d}function Vwe(){return hs.apply(FR(L1e,z1e,ql,LR,Mw,Rv,AR,MR,Wu,hq).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function Wwe(){return hs.apply(FR(A1e,D1e,Gl,zR,kw,Tw,DR,kR,Wu,pq).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function Aw(){var e=0,t=1,n,r,o,i,a=ki,s=!1,l;function u(f){return f==null||isNaN(f=+f)?l:a(o===0?.5:(f=(i(f)-n)*o,s?Math.max(0,Math.min(1,f)):f))}u.domain=function(f){return arguments.length?([e,t]=f,n=i(e=+e),r=i(t=+t),o=n===r?0:1/(r-n),u):[e,t]},u.clamp=function(f){return arguments.length?(s=!!f,u):s},u.interpolator=function(f){return arguments.length?(a=f,u):a};function d(f){return function(m){var h,p;return arguments.length?([h,p]=m,a=f(h,p),u):[a(0),a(1)]}}return u.range=d(ah),u.rangeRound=d(ER),u.unknown=function(f){return arguments.length?(l=f,u):l},function(f){return i=f,n=f(e),r=f(t),o=n===r?0:1/(r-n),u}}function mu(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function gq(){var e=fu(Aw()(ki));return e.copy=function(){return mu(e,gq())},ic.apply(e,arguments)}function vq(){var e=IR(Aw()).domain([1,10]);return e.copy=function(){return mu(e,vq()).base(e.base())},ic.apply(e,arguments)}function yq(){var e=_R(Aw());return e.copy=function(){return mu(e,yq()).constant(e.constant())},ic.apply(e,arguments)}function BR(){var e=NR(Aw());return e.copy=function(){return mu(e,BR()).exponent(e.exponent())},ic.apply(e,arguments)}function Uwe(){return BR.apply(null,arguments).exponent(.5)}function bq(){var e=[],t=ki;function n(r){if(r!=null&&!isNaN(r=+r))return t((Iv(e,r,1)-1)/(e.length-1))}return n.domain=function(r){if(!arguments.length)return e.slice();e=[];for(let o of r)o!=null&&!isNaN(o=+o)&&e.push(o);return e.sort(Vc),n},n.interpolator=function(r){return arguments.length?(t=r,n):t},n.range=function(){return e.map((r,o)=>t(o/(e.length-1)))},n.quantiles=function(r){return Array.from({length:r+1},(o,i)=>_xe(e,i/r))},n.copy=function(){return bq(t).domain(e)},ic.apply(n,arguments)}function Dw(){var e=0,t=.5,n=1,r=1,o,i,a,s,l,u=ki,d,f=!1,m;function h(b){return isNaN(b=+b)?m:(b=.5+((b=+d(b))-i)*(r*b<r*i?s:l),u(f?Math.max(0,Math.min(1,b)):b))}h.domain=function(b){return arguments.length?([e,t,n]=b,o=d(e=+e),i=d(t=+t),a=d(n=+n),s=o===i?0:.5/(i-o),l=i===a?0:.5/(a-i),r=i<o?-1:1,h):[e,t,n]},h.clamp=function(b){return arguments.length?(f=!!b,h):f},h.interpolator=function(b){return arguments.length?(u=b,h):u};function p(b){return function(v){var y,x,w;return arguments.length?([y,x,w]=v,u=r1e(b,[y,x,w]),h):[u(0),u(.5),u(1)]}}return h.range=p(ah),h.rangeRound=p(ER),h.unknown=function(b){return arguments.length?(m=b,h):m},function(b){return d=b,o=b(e),i=b(t),a=b(n),s=o===i?0:.5/(i-o),l=i===a?0:.5/(a-i),r=i<o?-1:1,h}}function xq(){var e=fu(Dw()(ki));return e.copy=function(){return mu(e,xq())},ic.apply(e,arguments)}function wq(){var e=IR(Dw()).domain([.1,1,10]);return e.copy=function(){return mu(e,wq()).base(e.base())},ic.apply(e,arguments)}function Sq(){var e=_R(Dw());return e.copy=function(){return mu(e,Sq()).constant(e.constant())},ic.apply(e,arguments)}function HR(){var e=NR(Dw());return e.copy=function(){return mu(e,HR()).exponent(e.exponent())},ic.apply(e,arguments)}function Kwe(){return HR.apply(null,arguments).exponent(.5)}const wp=Object.freeze(Object.defineProperty({__proto__:null,scaleBand:SR,scaleDiverging:xq,scaleDivergingLog:wq,scaleDivergingPow:HR,scaleDivergingSqrt:Kwe,scaleDivergingSymlog:Sq,scaleIdentity:eq,scaleImplicit:rP,scaleLinear:QK,scaleLog:nq,scaleOrdinal:wR,scalePoint:Txe,scalePow:RR,scaleQuantile:iq,scaleQuantize:aq,scaleRadial:oq,scaleSequential:gq,scaleSequentialLog:vq,scaleSequentialPow:BR,scaleSequentialQuantile:bq,scaleSequentialSqrt:Uwe,scaleSequentialSymlog:yq,scaleSqrt:O1e,scaleSymlog:rq,scaleThreshold:sq,scaleTime:Vwe,scaleUtc:Wwe,tickFormat:JK},Symbol.toStringTag,{value:"Module"}));var ac=e=>e.chartData,Lw=Fe([ac],e=>{var t=e.chartData!=null?e.chartData.length-1:0;return{chartData:e.chartData,computedData:e.computedData,dataEndIndex:t,dataStartIndex:0}}),Cq=(e,t,n,r)=>r?Lw(e):ac(e),qwe=(e,t,n)=>n?Lw(e):ac(e);function Yc(e){if(Array.isArray(e)&&e.length===2){var[t,n]=e;if(Lr(t)&&Lr(n))return!0}return!1}function L8(e,t,n){return n?e:[Math.min(e[0],t[0]),Math.max(e[1],t[1])]}function $q(e,t){if(t&&typeof e!="function"&&Array.isArray(e)&&e.length===2){var[n,r]=e,o,i;if(Lr(n))o=n;else if(typeof n=="function")return;if(Lr(r))i=r;else if(typeof r=="function")return;var a=[o,i];if(Yc(a))return a}}function Gwe(e,t,n){if(!(!n&&t==null)){if(typeof e=="function"&&t!=null)try{var r=e(t,n);if(Yc(r))return L8(r,t,n)}catch{}if(Array.isArray(e)&&e.length===2){var[o,i]=e,a,s;if(o==="auto")t!=null&&(a=Math.min(...t));else if(Jt(o))a=o;else if(typeof o=="function")try{t!=null&&(a=o(t==null?void 0:t[0]))}catch{}else if(typeof o=="string"&&rA.test(o)){var l=rA.exec(o);if(l==null||l[1]==null||t==null)a=void 0;else{var u=+l[1];a=t[0]-u}}else a=t==null?void 0:t[0];if(i==="auto")t!=null&&(s=Math.max(...t));else if(Jt(i))s=i;else if(typeof i=="function")try{t!=null&&(s=i(t==null?void 0:t[1]))}catch{}else if(typeof i=="string"&&oA.test(i)){var d=oA.exec(i);if(d==null||d[1]==null||t==null)s=void 0;else{var f=+d[1];s=t[1]+f}}else s=t==null?void 0:t[1];var m=[a,s];if(Yc(m))return t==null?m:L8(m,t,n)}}}var sh=1e9,Xwe={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},WR,Cr=!0,ss="[DecimalError] ",rd=ss+"Invalid argument: ",VR=ss+"Exponent out of range: ",lh=Math.floor,Ru=Math.pow,Ywe=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,Sa,zo=1e7,br=7,Eq=9007199254740991,Ax=lh(Eq/br),Yt={};Yt.absoluteValue=Yt.abs=function(){var e=new this.constructor(this);return e.s&&(e.s=1),e};Yt.comparedTo=Yt.cmp=function(e){var t,n,r,o,i=this;if(e=new i.constructor(e),i.s!==e.s)return i.s||-e.s;if(i.e!==e.e)return i.e>e.e^i.s<0?1:-1;for(r=i.d.length,o=e.d.length,t=0,n=r<o?r:o;t<n;++t)if(i.d[t]!==e.d[t])return i.d[t]>e.d[t]^i.s<0?1:-1;return r===o?0:r>o^i.s<0?1:-1};Yt.decimalPlaces=Yt.dp=function(){var e=this,t=e.d.length-1,n=(t-e.e)*br;if(t=e.d[t],t)for(;t%10==0;t/=10)n--;return n<0?0:n};Yt.dividedBy=Yt.div=function(e){return kl(this,new this.constructor(e))};Yt.dividedToIntegerBy=Yt.idiv=function(e){var t=this,n=t.constructor;return sr(kl(t,new n(e),0,1),n.precision)};Yt.equals=Yt.eq=function(e){return!this.cmp(e)};Yt.exponent=function(){return mo(this)};Yt.greaterThan=Yt.gt=function(e){return this.cmp(e)>0};Yt.greaterThanOrEqualTo=Yt.gte=function(e){return this.cmp(e)>=0};Yt.isInteger=Yt.isint=function(){return this.e>this.d.length-2};Yt.isNegative=Yt.isneg=function(){return this.s<0};Yt.isPositive=Yt.ispos=function(){return this.s>0};Yt.isZero=function(){return this.s===0};Yt.lessThan=Yt.lt=function(e){return this.cmp(e)<0};Yt.lessThanOrEqualTo=Yt.lte=function(e){return this.cmp(e)<1};Yt.logarithm=Yt.log=function(e){var t,n=this,r=n.constructor,o=r.precision,i=o+5;if(e===void 0)e=new r(10);else if(e=new r(e),e.s<1||e.eq(Sa))throw Error(ss+"NaN");if(n.s<1)throw Error(ss+(n.s?"NaN":"-Infinity"));return n.eq(Sa)?new r(0):(Cr=!1,t=kl(Tg(n,i),Tg(e,i),i),Cr=!0,sr(t,o))};Yt.minus=Yt.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?jq(t,e):Oq(t,(e.s=-e.s,e))};Yt.modulo=Yt.mod=function(e){var t,n=this,r=n.constructor,o=r.precision;if(e=new r(e),!e.s)throw Error(ss+"NaN");return n.s?(Cr=!1,t=kl(n,e,0,1).times(e),Cr=!0,n.minus(t)):sr(new r(n),o)};Yt.naturalExponential=Yt.exp=function(){return Pq(this)};Yt.naturalLogarithm=Yt.ln=function(){return Tg(this)};Yt.negated=Yt.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e};Yt.plus=Yt.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?Oq(t,e):jq(t,(e.s=-e.s,e))};Yt.precision=Yt.sd=function(e){var t,n,r,o=this;if(e!==void 0&&e!==!!e&&e!==1&&e!==0)throw Error(rd+e);if(t=mo(o)+1,r=o.d.length-1,n=r*br+1,r=o.d[r],r){for(;r%10==0;r/=10)n--;for(r=o.d[0];r>=10;r/=10)n++}return e&&t>n?t:n};Yt.squareRoot=Yt.sqrt=function(){var e,t,n,r,o,i,a,s=this,l=s.constructor;if(s.s<1){if(!s.s)return new l(0);throw Error(ss+"NaN")}for(e=mo(s),Cr=!1,o=Math.sqrt(+s),o==0||o==1/0?(t=nl(s.d),(t.length+e)%2==0&&(t+="0"),o=Math.sqrt(t),e=lh((e+1)/2)-(e<0||e%2),o==1/0?t="5e"+e:(t=o.toExponential(),t=t.slice(0,t.indexOf("e")+1)+e),r=new l(t)):r=new l(o.toString()),n=l.precision,o=a=n+3;;)if(i=r,r=i.plus(kl(s,i,a+2)).times(.5),nl(i.d).slice(0,a)===(t=nl(r.d)).slice(0,a)){if(t=t.slice(a-3,a+1),o==a&&t=="4999"){if(sr(i,n+1,0),i.times(i).eq(s)){r=i;break}}else if(t!="9999")break;a+=4}return Cr=!0,sr(r,n)};Yt.times=Yt.mul=function(e){var t,n,r,o,i,a,s,l,u,d=this,f=d.constructor,m=d.d,h=(e=new f(e)).d;if(!d.s||!e.s)return new f(0);for(e.s*=d.s,n=d.e+e.e,l=m.length,u=h.length,l<u&&(i=m,m=h,h=i,a=l,l=u,u=a),i=[],a=l+u,r=a;r--;)i.push(0);for(r=u;--r>=0;){for(t=0,o=l+r;o>r;)s=i[o]+h[r]*m[o-r-1]+t,i[o--]=s%zo|0,t=s/zo|0;i[o]=(i[o]+t)%zo|0}for(;!i[--a];)i.pop();return t?++n:i.shift(),e.d=i,e.e=n,Cr?sr(e,f.precision):e};Yt.toDecimalPlaces=Yt.todp=function(e,t){var n=this,r=n.constructor;return n=new r(n),e===void 0?n:(fl(e,0,sh),t===void 0?t=r.rounding:fl(t,0,8),sr(n,e+mo(n)+1,t))};Yt.toExponential=function(e,t){var n,r=this,o=r.constructor;return e===void 0?n=$d(r,!0):(fl(e,0,sh),t===void 0?t=o.rounding:fl(t,0,8),r=sr(new o(r),e+1,t),n=$d(r,!0,e+1)),n};Yt.toFixed=function(e,t){var n,r,o=this,i=o.constructor;return e===void 0?$d(o):(fl(e,0,sh),t===void 0?t=i.rounding:fl(t,0,8),r=sr(new i(o),e+mo(o)+1,t),n=$d(r.abs(),!1,e+mo(r)+1),o.isneg()&&!o.isZero()?"-"+n:n)};Yt.toInteger=Yt.toint=function(){var e=this,t=e.constructor;return sr(new t(e),mo(e)+1,t.rounding)};Yt.toNumber=function(){return+this};Yt.toPower=Yt.pow=function(e){var t,n,r,o,i,a,s=this,l=s.constructor,u=12,d=+(e=new l(e));if(!e.s)return new l(Sa);if(s=new l(s),!s.s){if(e.s<1)throw Error(ss+"Infinity");return s}if(s.eq(Sa))return s;if(r=l.precision,e.eq(Sa))return sr(s,r);if(t=e.e,n=e.d.length-1,a=t>=n,i=s.s,a){if((n=d<0?-d:d)<=Eq){for(o=new l(Sa),t=Math.ceil(r/br+4),Cr=!1;n%2&&(o=o.times(s),F8(o.d,t)),n=lh(n/2),n!==0;)s=s.times(s),F8(s.d,t);return Cr=!0,e.s<0?new l(Sa).div(o):sr(o,r)}}else if(i<0)throw Error(ss+"NaN");return i=i<0&&e.d[Math.max(t,n)]&1?-1:1,s.s=1,Cr=!1,o=e.times(Tg(s,r+u)),Cr=!0,o=Pq(o),o.s=i,o};Yt.toPrecision=function(e,t){var n,r,o=this,i=o.constructor;return e===void 0?(n=mo(o),r=$d(o,n<=i.toExpNeg||n>=i.toExpPos)):(fl(e,1,sh),t===void 0?t=i.rounding:fl(t,0,8),o=sr(new i(o),e,t),n=mo(o),r=$d(o,e<=n||n<=i.toExpNeg,e)),r};Yt.toSignificantDigits=Yt.tosd=function(e,t){var n=this,r=n.constructor;return e===void 0?(e=r.precision,t=r.rounding):(fl(e,1,sh),t===void 0?t=r.rounding:fl(t,0,8)),sr(new r(n),e,t)};Yt.toString=Yt.valueOf=Yt.val=Yt.toJSON=Yt[Symbol.for("nodejs.util.inspect.custom")]=function(){var e=this,t=mo(e),n=e.constructor;return $d(e,t<=n.toExpNeg||t>=n.toExpPos)};function Oq(e,t){var n,r,o,i,a,s,l,u,d=e.constructor,f=d.precision;if(!e.s||!t.s)return t.s||(t=new d(e)),Cr?sr(t,f):t;if(l=e.d,u=t.d,a=e.e,o=t.e,l=l.slice(),i=a-o,i){for(i<0?(r=l,i=-i,s=u.length):(r=u,o=a,s=l.length),a=Math.ceil(f/br),s=a>s?a+1:s+1,i>s&&(i=s,r.length=1),r.reverse();i--;)r.push(0);r.reverse()}for(s=l.length,i=u.length,s-i<0&&(i=s,r=u,u=l,l=r),n=0;i;)n=(l[--i]=l[i]+u[i]+n)/zo|0,l[i]%=zo;for(n&&(l.unshift(n),++o),s=l.length;l[--s]==0;)l.pop();return t.d=l,t.e=o,Cr?sr(t,f):t}function fl(e,t,n){if(e!==~~e||e<t||e>n)throw Error(rd+e)}function nl(e){var t,n,r,o=e.length-1,i="",a=e[0];if(o>0){for(i+=a,t=1;t<o;t++)r=e[t]+"",n=br-r.length,n&&(i+=Cc(n)),i+=r;a=e[t],r=a+"",n=br-r.length,n&&(i+=Cc(n))}else if(a===0)return"0";for(;a%10===0;)a/=10;return i+a}var kl=function(){function e(r,o){var i,a=0,s=r.length;for(r=r.slice();s--;)i=r[s]*o+a,r[s]=i%zo|0,a=i/zo|0;return a&&r.unshift(a),r}function t(r,o,i,a){var s,l;if(i!=a)l=i>a?1:-1;else for(s=l=0;s<i;s++)if(r[s]!=o[s]){l=r[s]>o[s]?1:-1;break}return l}function n(r,o,i){for(var a=0;i--;)r[i]-=a,a=r[i]<o[i]?1:0,r[i]=a*zo+r[i]-o[i];for(;!r[0]&&r.length>1;)r.shift()}return function(r,o,i,a){var s,l,u,d,f,m,h,p,b,v,y,x,w,C,S,$,E,O,P=r.constructor,j=r.s==o.s?1:-1,I=r.d,_=o.d;if(!r.s)return new P(r);if(!o.s)throw Error(ss+"Division by zero");for(l=r.e-o.e,E=_.length,S=I.length,h=new P(j),p=h.d=[],u=0;_[u]==(I[u]||0);)++u;if(_[u]>(I[u]||0)&&--l,i==null?x=i=P.precision:a?x=i+(mo(r)-mo(o))+1:x=i,x<0)return new P(0);if(x=x/br+2|0,u=0,E==1)for(d=0,_=_[0],x++;(u<S||d)&&x--;u++)w=d*zo+(I[u]||0),p[u]=w/_|0,d=w%_|0;else{for(d=zo/(_[0]+1)|0,d>1&&(_=e(_,d),I=e(I,d),E=_.length,S=I.length),C=E,b=I.slice(0,E),v=b.length;v<E;)b[v++]=0;O=_.slice(),O.unshift(0),$=_[0],_[1]>=zo/2&&++$;do d=0,s=t(_,b,E,v),s<0?(y=b[0],E!=v&&(y=y*zo+(b[1]||0)),d=y/$|0,d>1?(d>=zo&&(d=zo-1),f=e(_,d),m=f.length,v=b.length,s=t(f,b,m,v),s==1&&(d--,n(f,E<m?O:_,m))):(d==0&&(s=d=1),f=_.slice()),m=f.length,m<v&&f.unshift(0),n(b,f,v),s==-1&&(v=b.length,s=t(_,b,E,v),s<1&&(d++,n(b,E<v?O:_,v))),v=b.length):s===0&&(d++,b=[0]),p[u++]=d,s&&b[0]?b[v++]=I[C]||0:(b=[I[C]],v=1);while((C++<S||b[0]!==void 0)&&x--)}return p[0]||p.shift(),h.e=l,sr(h,a?i+mo(h)+1:i)}}();function Pq(e,t){var n,r,o,i,a,s,l=0,u=0,d=e.constructor,f=d.precision;if(mo(e)>16)throw Error(VR+mo(e));if(!e.s)return new d(Sa);for(Cr=!1,s=f,a=new d(.03125);e.abs().gte(.1);)e=e.times(a),u+=5;for(r=Math.log(Ru(2,u))/Math.LN10*2+5|0,s+=r,n=o=i=new d(Sa),d.precision=s;;){if(o=sr(o.times(e),s),n=n.times(++l),a=i.plus(kl(o,n,s)),nl(a.d).slice(0,s)===nl(i.d).slice(0,s)){for(;u--;)i=sr(i.times(i),s);return d.precision=f,t==null?(Cr=!0,sr(i,f)):i}i=a}}function mo(e){for(var t=e.e*br,n=e.d[0];n>=10;n/=10)t++;return t}function k$(e,t,n){if(t>e.LN10.sd())throw Cr=!0,n&&(e.precision=n),Error(ss+"LN10 precision limit exceeded");return sr(new e(e.LN10),t)}function Cc(e){for(var t="";e--;)t+="0";return t}function Tg(e,t){var n,r,o,i,a,s,l,u,d,f=1,m=10,h=e,p=h.d,b=h.constructor,v=b.precision;if(h.s<1)throw Error(ss+(h.s?"NaN":"-Infinity"));if(h.eq(Sa))return new b(0);if(t==null?(Cr=!1,u=v):u=t,h.eq(10))return t==null&&(Cr=!0),k$(b,u);if(u+=m,b.precision=u,n=nl(p),r=n.charAt(0),i=mo(h),Math.abs(i)<15e14){for(;r<7&&r!=1||r==1&&n.charAt(1)>3;)h=h.times(e),n=nl(h.d),r=n.charAt(0),f++;i=mo(h),r>1?(h=new b("0."+n),i++):h=new b(r+"."+n.slice(1))}else return l=k$(b,u+2,v).times(i+""),h=Tg(new b(r+"."+n.slice(1)),u-m).plus(l),b.precision=v,t==null?(Cr=!0,sr(h,v)):h;for(s=a=h=kl(h.minus(Sa),h.plus(Sa),u),d=sr(h.times(h),u),o=3;;){if(a=sr(a.times(d),u),l=s.plus(kl(a,new b(o),u)),nl(l.d).slice(0,u)===nl(s.d).slice(0,u))return s=s.times(2),i!==0&&(s=s.plus(k$(b,u+2,v).times(i+""))),s=kl(s,new b(f),u),b.precision=v,t==null?(Cr=!0,sr(s,v)):s;s=l,o+=2}}function z8(e,t){var n,r,o;for((n=t.indexOf("."))>-1&&(t=t.replace(".","")),(r=t.search(/e/i))>0?(n<0&&(n=r),n+=+t.slice(r+1),t=t.substring(0,r)):n<0&&(n=t.length),r=0;t.charCodeAt(r)===48;)++r;for(o=t.length;t.charCodeAt(o-1)===48;)--o;if(t=t.slice(r,o),t){if(o-=r,n=n-r-1,e.e=lh(n/br),e.d=[],r=(n+1)%br,n<0&&(r+=br),r<o){for(r&&e.d.push(+t.slice(0,r)),o-=br;r<o;)e.d.push(+t.slice(r,r+=br));t=t.slice(r),r=br-t.length}else r-=o;for(;r--;)t+="0";if(e.d.push(+t),Cr&&(e.e>Ax||e.e<-Ax))throw Error(VR+n)}else e.s=0,e.e=0,e.d=[0];return e}function sr(e,t,n){var r,o,i,a,s,l,u,d,f=e.d;for(a=1,i=f[0];i>=10;i/=10)a++;if(r=t-a,r<0)r+=br,o=t,u=f[d=0];else{if(d=Math.ceil((r+1)/br),i=f.length,d>=i)return e;for(u=i=f[d],a=1;i>=10;i/=10)a++;r%=br,o=r-br+a}if(n!==void 0&&(i=Ru(10,a-o-1),s=u/i%10|0,l=t<0||f[d+1]!==void 0||u%i,l=n<4?(s||l)&&(n==0||n==(e.s<0?3:2)):s>5||s==5&&(n==4||l||n==6&&(r>0?o>0?u/Ru(10,a-o):0:f[d-1])%10&1||n==(e.s<0?8:7))),t<1||!f[0])return l?(i=mo(e),f.length=1,t=t-i-1,f[0]=Ru(10,(br-t%br)%br),e.e=lh(-t/br)||0):(f.length=1,f[0]=e.e=e.s=0),e;if(r==0?(f.length=d,i=1,d--):(f.length=d+1,i=Ru(10,br-r),f[d]=o>0?(u/Ru(10,a-o)%Ru(10,o)|0)*i:0),l)for(;;)if(d==0){(f[0]+=i)==zo&&(f[0]=1,++e.e);break}else{if(f[d]+=i,f[d]!=zo)break;f[d--]=0,i=1}for(r=f.length;f[--r]===0;)f.pop();if(Cr&&(e.e>Ax||e.e<-Ax))throw Error(VR+mo(e));return e}function jq(e,t){var n,r,o,i,a,s,l,u,d,f,m=e.constructor,h=m.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new m(e),Cr?sr(t,h):t;if(l=e.d,f=t.d,r=t.e,u=e.e,l=l.slice(),a=u-r,a){for(d=a<0,d?(n=l,a=-a,s=f.length):(n=f,r=u,s=l.length),o=Math.max(Math.ceil(h/br),s)+2,a>o&&(a=o,n.length=1),n.reverse(),o=a;o--;)n.push(0);n.reverse()}else{for(o=l.length,s=f.length,d=o<s,d&&(s=o),o=0;o<s;o++)if(l[o]!=f[o]){d=l[o]<f[o];break}a=0}for(d&&(n=l,l=f,f=n,t.s=-t.s),s=l.length,o=f.length-s;o>0;--o)l[s++]=0;for(o=f.length;o>a;){if(l[--o]<f[o]){for(i=o;i&&l[--i]===0;)l[i]=zo-1;--l[i],l[o]+=zo}l[o]-=f[o]}for(;l[--s]===0;)l.pop();for(;l[0]===0;l.shift())--r;return l[0]?(t.d=l,t.e=r,Cr?sr(t,h):t):new m(0)}function $d(e,t,n){var r,o=mo(e),i=nl(e.d),a=i.length;return t?(n&&(r=n-a)>0?i=i.charAt(0)+"."+i.slice(1)+Cc(r):a>1&&(i=i.charAt(0)+"."+i.slice(1)),i=i+(o<0?"e":"e+")+o):o<0?(i="0."+Cc(-o-1)+i,n&&(r=n-a)>0&&(i+=Cc(r))):o>=a?(i+=Cc(o+1-a),n&&(r=n-o-1)>0&&(i=i+"."+Cc(r))):((r=o+1)<a&&(i=i.slice(0,r)+"."+i.slice(r)),n&&(r=n-a)>0&&(o+1===a&&(i+="."),i+=Cc(r))),e.s<0?"-"+i:i}function F8(e,t){if(e.length>t)return e.length=t,!0}function Iq(e){var t,n,r;function o(i){var a=this;if(!(a instanceof o))return new o(i);if(a.constructor=o,i instanceof o){a.s=i.s,a.e=i.e,a.d=(i=i.d)?i.slice():i;return}if(typeof i=="number"){if(i*0!==0)throw Error(rd+i);if(i>0)a.s=1;else if(i<0)i=-i,a.s=-1;else{a.s=0,a.e=0,a.d=[0];return}if(i===~~i&&i<1e7){a.e=0,a.d=[i];return}return z8(a,i.toString())}else if(typeof i!="string")throw Error(rd+i);if(i.charCodeAt(0)===45?(i=i.slice(1),a.s=-1):a.s=1,Ywe.test(i))z8(a,i);else throw Error(rd+i)}if(o.prototype=Yt,o.ROUND_UP=0,o.ROUND_DOWN=1,o.ROUND_CEIL=2,o.ROUND_FLOOR=3,o.ROUND_HALF_UP=4,o.ROUND_HALF_DOWN=5,o.ROUND_HALF_EVEN=6,o.ROUND_HALF_CEIL=7,o.ROUND_HALF_FLOOR=8,o.clone=Iq,o.config=o.set=Zwe,e===void 0&&(e={}),e)for(r=["precision","rounding","toExpNeg","toExpPos","LN10"],t=0;t<r.length;)e.hasOwnProperty(n=r[t++])||(e[n]=this[n]);return o.config(e),o}function Zwe(e){if(!e||typeof e!="object")throw Error(ss+"Object expected");var t,n,r,o=["precision",1,sh,"rounding",0,8,"toExpNeg",-1/0,0,"toExpPos",0,1/0];for(t=0;t<o.length;t+=3)if((r=e[n=o[t]])!==void 0)if(lh(r)===r&&r>=o[t+1]&&r<=o[t+2])this[n]=r;else throw Error(rd+n+": "+r);if((r=e[n="LN10"])!==void 0)if(r==Math.LN10)this[n]=new this(r);else throw Error(rd+n+": "+r);return this}var WR=Iq(Xwe);Sa=new WR(1);const Qn=WR;var Jwe=e=>e,_q={},Nq=e=>e===_q,B8=e=>function t(){return arguments.length===0||arguments.length===1&&Nq(arguments.length<=0?void 0:arguments[0])?t:e(...arguments)},Rq=(e,t)=>e===1?t:B8(function(){for(var n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];var i=r.filter(a=>a!==_q).length;return i>=e?t(...r):Rq(e-i,B8(function(){for(var a=arguments.length,s=new Array(a),l=0;l<a;l++)s[l]=arguments[l];var u=r.map(d=>Nq(d)?s.shift():d);return t(...u,...s)}))}),Qwe=e=>Rq(e.length,e),sP=(e,t)=>{for(var n=[],r=e;r<t;++r)n[r-e]=r;return n},eSe=Qwe((e,t)=>Array.isArray(t)?t.map(e):Object.keys(t).map(n=>t[n]).map(e)),tSe=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];if(!n.length)return Jwe;var o=n.reverse(),i=o[0],a=o.slice(1);return function(){return a.reduce((s,l)=>l(s),i(...arguments))}};function Tq(e){var t;return e===0?t=1:t=Math.floor(new Qn(e).abs().log(10).toNumber())+1,t}function Mq(e,t,n){for(var r=new Qn(e),o=0,i=[];r.lt(t)&&o<1e5;)i.push(r.toNumber()),r=r.add(n),o++;return i}var kq=e=>{var[t,n]=e,[r,o]=[t,n];return t>n&&([r,o]=[n,t]),[r,o]},Aq=(e,t,n)=>{if(e.lte(0))return new Qn(0);var r=Tq(e.toNumber()),o=new Qn(10).pow(r),i=e.div(o),a=r!==1?.05:.1,s=new Qn(Math.ceil(i.div(a).toNumber())).add(n).mul(a),l=s.mul(o);return t?new Qn(l.toNumber()):new Qn(Math.ceil(l.toNumber()))},nSe=(e,t,n)=>{var r=new Qn(1),o=new Qn(e);if(!o.isint()&&n){var i=Math.abs(e);i<1?(r=new Qn(10).pow(Tq(e)-1),o=new Qn(Math.floor(o.div(r).toNumber())).mul(r)):i>1&&(o=new Qn(Math.floor(e)))}else e===0?o=new Qn(Math.floor((t-1)/2)):n||(o=new Qn(Math.floor(e)));var a=Math.floor((t-1)/2),s=tSe(eSe(l=>o.add(new Qn(l-a).mul(r)).toNumber()),sP);return s(0,t)},Dq=function(t,n,r,o){var i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0;if(!Number.isFinite((n-t)/(r-1)))return{step:new Qn(0),tickMin:new Qn(0),tickMax:new Qn(0)};var a=Aq(new Qn(n).sub(t).div(r-1),o,i),s;t<=0&&n>=0?s=new Qn(0):(s=new Qn(t).add(n).div(2),s=s.sub(new Qn(s).mod(a)));var l=Math.ceil(s.sub(t).div(a).toNumber()),u=Math.ceil(new Qn(n).sub(s).div(a).toNumber()),d=l+u+1;return d>r?Dq(t,n,r,o,i+1):(d<r&&(u=n>0?u+(r-d):u,l=n>0?l:l+(r-d)),{step:a,tickMin:s.sub(new Qn(l).mul(a)),tickMax:s.add(new Qn(u).mul(a))})},rSe=function(t){var[n,r]=t,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:6,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,a=Math.max(o,2),[s,l]=kq([n,r]);if(s===-1/0||l===1/0){var u=l===1/0?[s,...sP(0,o-1).map(()=>1/0)]:[...sP(0,o-1).map(()=>-1/0),l];return n>r?u.reverse():u}if(s===l)return nSe(s,o,i);var{step:d,tickMin:f,tickMax:m}=Dq(s,l,a,i,0),h=Mq(f,m.add(new Qn(.1).mul(d)),d);return n>r?h.reverse():h},oSe=function(t,n){var[r,o]=t,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,[a,s]=kq([r,o]);if(a===-1/0||s===1/0)return[r,o];if(a===s)return[a];var l=Math.max(n,2),u=Aq(new Qn(s).sub(a).div(l-1),i,0),d=[...Mq(new Qn(a),new Qn(s),u),s];return i===!1&&(d=d.map(f=>Math.round(f))),r>o?d.reverse():d},Lq=e=>e.rootProps.maxBarSize,iSe=e=>e.rootProps.barGap,zq=e=>e.rootProps.barCategoryGap,aSe=e=>e.rootProps.barSize,Tv=e=>e.rootProps.stackOffset,Fq=e=>e.rootProps.reverseStackOrder,UR=e=>e.options.chartName,KR=e=>e.rootProps.syncId,Bq=e=>e.rootProps.syncMethod,qR=e=>e.options.eventEmitter,Co={grid:-100,barBackground:-50,area:100,cursorRectangle:200,bar:300,line:400,axis:500,scatter:600,activeBar:1e3,cursorLine:1100,activeDot:1200,label:2e3},Pl={allowDecimals:!1,allowDuplicatedCategory:!0,angleAxisId:0,axisLine:!0,axisLineType:"polygon",cx:0,cy:0,orientation:"outer",reversed:!1,scale:"auto",tick:!0,tickLine:!0,tickSize:8,type:"category",zIndex:Co.axis},xa={allowDataOverflow:!1,allowDecimals:!1,allowDuplicatedCategory:!0,angle:0,axisLine:!0,includeHidden:!1,hide:!1,label:!1,orientation:"right",radiusAxisId:0,reversed:!1,scale:"auto",stroke:"#ccc",tick:!0,tickCount:5,type:"number",zIndex:Co.axis},zw=(e,t)=>{if(!(!e||!t))return e!=null&&e.reversed?[t[1],t[0]]:t},sSe={allowDataOverflow:!1,allowDecimals:!1,allowDuplicatedCategory:!1,dataKey:void 0,domain:void 0,id:Pl.angleAxisId,includeHidden:!1,name:void 0,reversed:Pl.reversed,scale:Pl.scale,tick:Pl.tick,tickCount:void 0,ticks:void 0,type:Pl.type,unit:void 0},lSe={allowDataOverflow:xa.allowDataOverflow,allowDecimals:!1,allowDuplicatedCategory:xa.allowDuplicatedCategory,dataKey:void 0,domain:void 0,id:xa.radiusAxisId,includeHidden:!1,name:void 0,reversed:!1,scale:xa.scale,tick:xa.tick,tickCount:xa.tickCount,ticks:void 0,type:xa.type,unit:void 0},cSe={allowDataOverflow:!1,allowDecimals:!1,allowDuplicatedCategory:Pl.allowDuplicatedCategory,dataKey:void 0,domain:void 0,id:Pl.angleAxisId,includeHidden:!1,name:void 0,reversed:!1,scale:Pl.scale,tick:Pl.tick,tickCount:void 0,ticks:void 0,type:"number",unit:void 0},uSe={allowDataOverflow:xa.allowDataOverflow,allowDecimals:!1,allowDuplicatedCategory:xa.allowDuplicatedCategory,dataKey:void 0,domain:void 0,id:xa.radiusAxisId,includeHidden:!1,name:void 0,reversed:!1,scale:xa.scale,tick:xa.tick,tickCount:xa.tickCount,ticks:void 0,type:"category",unit:void 0},GR=(e,t)=>e.polarAxis.angleAxis[t]!=null?e.polarAxis.angleAxis[t]:e.layout.layoutType==="radial"?cSe:sSe,XR=(e,t)=>e.polarAxis.radiusAxis[t]!=null?e.polarAxis.radiusAxis[t]:e.layout.layoutType==="radial"?uSe:lSe,Fw=e=>e.polarOptions,YR=Fe([rc,oc,jo],kK),Hq=Fe([Fw,YR],(e,t)=>{if(e!=null)return xi(e.innerRadius,t,0)}),Vq=Fe([Fw,YR],(e,t)=>{if(e!=null)return xi(e.outerRadius,t,t*.8)}),dSe=e=>{if(e==null)return[0,0];var{startAngle:t,endAngle:n}=e;return[t,n]},Wq=Fe([Fw],dSe),fit=Fe([GR,Wq],zw),Uq=Fe([YR,Hq,Vq],(e,t,n)=>{if(!(e==null||t==null||n==null))return[t,n]}),mit=Fe([XR,Uq],zw),Kq=Fe([Kn,Fw,Hq,Vq,rc,oc],(e,t,n,r,o,i)=>{if(!(e!=="centric"&&e!=="radial"||t==null||n==null||r==null)){var{cx:a,cy:s,startAngle:l,endAngle:u}=t;return{cx:xi(a,o,o/2),cy:xi(s,i,i/2),innerRadius:n,outerRadius:r,startAngle:l,endAngle:u,clockWise:!1}}}),Ir=(e,t)=>t,Mv=(e,t,n)=>n;function ZR(e){return e==null?void 0:e.id}function qq(e,t,n){var{chartData:r=[]}=t,{allowDuplicatedCategory:o,dataKey:i}=n,a=new Map;return e.forEach(s=>{var l,u=(l=s.data)!==null&&l!==void 0?l:r;if(!(u==null||u.length===0)){var d=ZR(s);u.forEach((f,m)=>{var h=i==null||o?m:String(hr(f,i,null)),p=hr(f,s.dataKey,0),b;a.has(h)?b=a.get(h):b={},Object.assign(b,{[d]:p}),a.set(h,b)})}}),Array.from(a.values())}function Bw(e){return"stackId"in e&&e.stackId!=null&&e.dataKey!=null}var Hw=(e,t)=>e===t?!0:e==null||t==null?!1:e[0]===t[0]&&e[1]===t[1];function Vw(e,t){return Array.isArray(e)&&Array.isArray(t)&&e.length===0&&t.length===0?!0:e===t}function fSe(e,t){if(e.length===t.length){for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}return!1}var _o=e=>{var t=Kn(e);return t==="horizontal"?"xAxis":t==="vertical"?"yAxis":t==="centric"?"angleAxis":"radiusAxis"},ch=e=>e.tooltip.settings.axisId;function H8(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 Dx(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?H8(Object(n),!0).forEach(function(r){mSe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):H8(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function mSe(e,t,n){return(t=hSe(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function hSe(e){var t=pSe(e,"string");return typeof t=="symbol"?t:t+""}function pSe(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var lP=[0,"auto"],Do={allowDataOverflow:!1,allowDecimals:!0,allowDuplicatedCategory:!0,angle:0,dataKey:void 0,domain:void 0,height:30,hide:!0,id:0,includeHidden:!1,interval:"preserveEnd",minTickGap:5,mirror:!1,name:void 0,orientation:"bottom",padding:{left:0,right:0},reversed:!1,scale:"auto",tick:!0,tickCount:5,tickFormatter:void 0,ticks:void 0,type:"category",unit:void 0},Gq=(e,t)=>e.cartesianAxis.xAxis[t],sc=(e,t)=>{var n=Gq(e,t);return n??Do},Lo={allowDataOverflow:!1,allowDecimals:!0,allowDuplicatedCategory:!0,angle:0,dataKey:void 0,domain:lP,hide:!0,id:0,includeHidden:!1,interval:"preserveEnd",minTickGap:5,mirror:!1,name:void 0,orientation:"left",padding:{top:0,bottom:0},reversed:!1,scale:"auto",tick:!0,tickCount:5,tickFormatter:void 0,ticks:void 0,type:"number",unit:void 0,width:Ev},Xq=(e,t)=>e.cartesianAxis.yAxis[t],lc=(e,t)=>{var n=Xq(e,t);return n??Lo},gSe={domain:[0,"auto"],includeHidden:!1,reversed:!1,allowDataOverflow:!1,allowDuplicatedCategory:!1,dataKey:void 0,id:0,name:"",range:[64,64],scale:"auto",type:"number",unit:""},JR=(e,t)=>{var n=e.cartesianAxis.zAxis[t];return n??gSe},Fr=(e,t,n)=>{switch(t){case"xAxis":return sc(e,n);case"yAxis":return lc(e,n);case"zAxis":return JR(e,n);case"angleAxis":return GR(e,n);case"radiusAxis":return XR(e,n);default:throw new Error("Unexpected axis type: ".concat(t))}},vSe=(e,t,n)=>{switch(t){case"xAxis":return sc(e,n);case"yAxis":return lc(e,n);default:throw new Error("Unexpected axis type: ".concat(t))}},kv=(e,t,n)=>{switch(t){case"xAxis":return sc(e,n);case"yAxis":return lc(e,n);case"angleAxis":return GR(e,n);case"radiusAxis":return XR(e,n);default:throw new Error("Unexpected axis type: ".concat(t))}},Yq=e=>e.graphicalItems.cartesianItems.some(t=>t.type==="bar")||e.graphicalItems.polarItems.some(t=>t.type==="radialBar");function QR(e,t){return n=>{switch(e){case"xAxis":return"xAxisId"in n&&n.xAxisId===t;case"yAxis":return"yAxisId"in n&&n.yAxisId===t;case"zAxis":return"zAxisId"in n&&n.zAxisId===t;case"angleAxis":return"angleAxisId"in n&&n.angleAxisId===t;case"radiusAxis":return"radiusAxisId"in n&&n.radiusAxisId===t;default:return!1}}}var e4=e=>e.graphicalItems.cartesianItems,ySe=Fe([Ir,Mv],QR),t4=(e,t,n)=>e.filter(n).filter(r=>(t==null?void 0:t.includeHidden)===!0?!0:!r.hide),Av=Fe([e4,Fr,ySe],t4,{memoizeOptions:{resultEqualityCheck:Vw}}),Zq=Fe([Av],e=>e.filter(t=>t.type==="area"||t.type==="bar").filter(Bw)),Jq=e=>e.filter(t=>!("stackId"in t)||t.stackId===void 0),bSe=Fe([Av],Jq),n4=e=>e.map(t=>t.data).filter(Boolean).flat(1),xSe=Fe([Av],n4,{memoizeOptions:{resultEqualityCheck:Vw}}),r4=(e,t)=>{var{chartData:n=[],dataStartIndex:r,dataEndIndex:o}=t;return e.length>0?e:n.slice(r,o+1)},o4=Fe([xSe,Cq],r4),i4=(e,t,n)=>(t==null?void 0:t.dataKey)!=null?e.map(r=>({value:hr(r,t.dataKey)})):n.length>0?n.map(r=>r.dataKey).flatMap(r=>e.map(o=>({value:hr(o,r)}))):e.map(r=>({value:r})),Ww=Fe([o4,Fr,Av],i4);function Qq(e,t){switch(e){case"xAxis":return t.direction==="x";case"yAxis":return t.direction==="y";default:return!1}}function tb(e){if(ul(e)||e instanceof Date){var t=Number(e);if(Lr(t))return t}}function V8(e){if(Array.isArray(e)){var t=[tb(e[0]),tb(e[1])];return Yc(t)?t:void 0}var n=tb(e);if(n!=null)return[n,n]}function Xl(e){return e.map(tb).filter(_ge)}function wSe(e,t,n){return!n||typeof t!="number"||Ls(t)?[]:n.length?Xl(n.flatMap(r=>{var o=hr(e,r.dataKey),i,a;if(Array.isArray(o)?[i,a]=o:i=a=o,!(!Lr(i)||!Lr(a)))return[t-i,t+a]})):[]}var No=e=>{var t=_o(e),n=ch(e);return kv(e,t,n)},Dv=Fe([No],e=>e==null?void 0:e.dataKey),SSe=Fe([Zq,Cq,No],qq),eG=(e,t,n,r)=>{var o={},i=t.reduce((a,s)=>{if(s.stackId==null)return a;var l=a[s.stackId];return l==null&&(l=[]),l.push(s),a[s.stackId]=l,a},o);return Object.fromEntries(Object.entries(i).map(a=>{var[s,l]=a,u=r?[...l].reverse():l,d=u.map(ZR);return[s,{stackedData:G0e(e,d,n),graphicalItems:u}]}))},cP=Fe([SSe,Zq,Tv,Fq],eG),tG=(e,t,n,r)=>{var{dataStartIndex:o,dataEndIndex:i}=t;if(r==null&&n!=="zAxis"){var a=Q0e(e,o,i);if(!(a!=null&&a[0]===0&&a[1]===0))return a}},CSe=Fe([Fr],e=>e.allowDataOverflow),a4=e=>{var t;if(e==null||!("domain"in e))return lP;if(e.domain!=null)return e.domain;if("ticks"in e&&e.ticks!=null){if(e.type==="number"){var n=Xl(e.ticks);return[Math.min(...n),Math.max(...n)]}if(e.type==="category")return e.ticks.map(String)}return(t=e==null?void 0:e.domain)!==null&&t!==void 0?t:lP},s4=Fe([Fr],a4),l4=Fe([s4,CSe],$q),$Se=Fe([cP,ac,Ir,l4],tG,{memoizeOptions:{resultEqualityCheck:Hw}}),Uw=e=>e.errorBars,ESe=(e,t,n)=>e.flatMap(r=>t[r.id]).filter(Boolean).filter(r=>Qq(n,r)),Lx=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var o=n.filter(Boolean);if(o.length!==0){var i=o.flat(),a=Math.min(...i),s=Math.max(...i);return[a,s]}},c4=(e,t,n,r,o)=>{var i,a;if(n.length>0&&e.forEach(s=>{n.forEach(l=>{var u,d,f=(u=r[l.id])===null||u===void 0?void 0:u.filter(y=>Qq(o,y)),m=hr(s,(d=t.dataKey)!==null&&d!==void 0?d:l.dataKey),h=wSe(s,m,f);if(h.length>=2){var p=Math.min(...h),b=Math.max(...h);(i==null||p<i)&&(i=p),(a==null||b>a)&&(a=b)}var v=V8(m);v!=null&&(i=i==null?v[0]:Math.min(i,v[0]),a=a==null?v[1]:Math.max(a,v[1]))})}),(t==null?void 0:t.dataKey)!=null&&e.forEach(s=>{var l=V8(hr(s,t.dataKey));l!=null&&(i=i==null?l[0]:Math.min(i,l[0]),a=a==null?l[1]:Math.max(a,l[1]))}),Lr(i)&&Lr(a))return[i,a]},OSe=Fe([o4,Fr,bSe,Uw,Ir],c4,{memoizeOptions:{resultEqualityCheck:Hw}});function PSe(e){var{value:t}=e;if(ul(t)||t instanceof Date)return t}var jSe=(e,t,n)=>{var r=e.map(PSe).filter(o=>o!=null);return n&&(t.dataKey==null||t.allowDuplicatedCategory&&YW(r))?HK(0,e.length):t.allowDuplicatedCategory?r:Array.from(new Set(r))},nG=e=>e.referenceElements.dots,uh=(e,t,n)=>e.filter(r=>r.ifOverflow==="extendDomain").filter(r=>t==="xAxis"?r.xAxisId===n:r.yAxisId===n),ISe=Fe([nG,Ir,Mv],uh),rG=e=>e.referenceElements.areas,_Se=Fe([rG,Ir,Mv],uh),oG=e=>e.referenceElements.lines,NSe=Fe([oG,Ir,Mv],uh),iG=(e,t)=>{if(e!=null){var n=Xl(e.map(r=>t==="xAxis"?r.x:r.y));if(n.length!==0)return[Math.min(...n),Math.max(...n)]}},RSe=Fe(ISe,Ir,iG),aG=(e,t)=>{if(e!=null){var n=Xl(e.flatMap(r=>[t==="xAxis"?r.x1:r.y1,t==="xAxis"?r.x2:r.y2]));if(n.length!==0)return[Math.min(...n),Math.max(...n)]}},TSe=Fe([_Se,Ir],aG);function MSe(e){var t;if(e.x!=null)return Xl([e.x]);var n=(t=e.segment)===null||t===void 0?void 0:t.map(r=>r.x);return n==null||n.length===0?[]:Xl(n)}function kSe(e){var t;if(e.y!=null)return Xl([e.y]);var n=(t=e.segment)===null||t===void 0?void 0:t.map(r=>r.y);return n==null||n.length===0?[]:Xl(n)}var sG=(e,t)=>{if(e!=null){var n=e.flatMap(r=>t==="xAxis"?MSe(r):kSe(r));if(n.length!==0)return[Math.min(...n),Math.max(...n)]}},ASe=Fe([NSe,Ir],sG),DSe=Fe(RSe,ASe,TSe,(e,t,n)=>Lx(e,n,t)),u4=(e,t,n,r,o,i,a,s)=>{if(n!=null)return n;var l=a==="vertical"&&s==="xAxis"||a==="horizontal"&&s==="yAxis",u=l?Lx(r,i,o):Lx(i,o);return Gwe(t,u,e.allowDataOverflow)},LSe=Fe([Fr,s4,l4,$Se,OSe,DSe,Kn,Ir],u4,{memoizeOptions:{resultEqualityCheck:Hw}}),zSe=[0,1],d4=(e,t,n,r,o,i,a)=>{if(!((e==null||n==null||n.length===0)&&a===void 0)){var{dataKey:s,type:l}=e,u=Bd(t,i);if(u&&s==null){var d;return HK(0,(d=n==null?void 0:n.length)!==null&&d!==void 0?d:0)}return l==="category"?jSe(r,e,u):o==="expand"?zSe:a}},f4=Fe([Fr,Kn,o4,Ww,Tv,Ir,LSe],d4),lG=(e,t,n,r,o)=>{if(e!=null){var{scale:i,type:a}=e;if(i==="auto")return t==="radial"&&o==="radiusAxis"?"band":t==="radial"&&o==="angleAxis"?"linear":a==="category"&&r&&(r.indexOf("LineChart")>=0||r.indexOf("AreaChart")>=0||r.indexOf("ComposedChart")>=0&&!n)?"point":a==="category"?"band":"linear";if(typeof i=="string"){var s="scale".concat(bv(i));return s in wp?s:"point"}}},dh=Fe([Fr,Kn,Yq,UR,Ir],lG);function FSe(e){if(e!=null){if(e in wp)return wp[e]();var t="scale".concat(bv(e));if(t in wp)return wp[t]()}}function m4(e,t,n,r){if(!(n==null||r==null)){if(typeof e.scale=="function")return e.scale.copy().domain(n).range(r);var o=FSe(t);if(o!=null){var i=o.domain(n).range(r);return V0e(i),i}}}var h4=(e,t,n)=>{var r=a4(t);if(!(n!=="auto"&&n!=="linear")){if(t!=null&&t.tickCount&&Array.isArray(r)&&(r[0]==="auto"||r[1]==="auto")&&Yc(e))return rSe(e,t.tickCount,t.allowDecimals);if(t!=null&&t.tickCount&&t.type==="number"&&Yc(e))return oSe(e,t.tickCount,t.allowDecimals)}},p4=Fe([f4,kv,dh],h4),g4=(e,t,n,r)=>{if(r!=="angleAxis"&&(e==null?void 0:e.type)==="number"&&Yc(t)&&Array.isArray(n)&&n.length>0){var o=t[0],i=n[0],a=t[1],s=n[n.length-1];return[Math.min(o,i),Math.max(a,s)]}return t},BSe=Fe([Fr,f4,p4,Ir],g4),HSe=Fe(Ww,Fr,(e,t)=>{if(!(!t||t.type!=="number")){var n=1/0,r=Array.from(Xl(e.map(f=>f.value))).sort((f,m)=>f-m),o=r[0],i=r[r.length-1];if(o==null||i==null)return 1/0;var a=i-o;if(a===0)return 1/0;for(var s=0;s<r.length-1;s++){var l=r[s],u=r[s+1];if(!(l==null||u==null)){var d=u-l;n=Math.min(n,d)}}return n/a}}),cG=Fe(HSe,Kn,zq,jo,(e,t,n,r,o)=>o,(e,t,n,r,o)=>{if(!Lr(e))return 0;var i=t==="vertical"?r.height:r.width;if(o==="gap")return e*i/2;if(o==="no-gap"){var a=xi(n,e*i),s=e*i/2;return s-a-(s-a)/i*a}return 0}),VSe=(e,t,n)=>{var r=sc(e,t);return r==null||typeof r.padding!="string"?0:cG(e,"xAxis",t,n,r.padding)},WSe=(e,t,n)=>{var r=lc(e,t);return r==null||typeof r.padding!="string"?0:cG(e,"yAxis",t,n,r.padding)},USe=Fe(sc,VSe,(e,t)=>{var n,r;if(e==null)return{left:0,right:0};var{padding:o}=e;return typeof o=="string"?{left:t,right:t}:{left:((n=o.left)!==null&&n!==void 0?n:0)+t,right:((r=o.right)!==null&&r!==void 0?r:0)+t}}),KSe=Fe(lc,WSe,(e,t)=>{var n,r;if(e==null)return{top:0,bottom:0};var{padding:o}=e;return typeof o=="string"?{top:t,bottom:t}:{top:((n=o.top)!==null&&n!==void 0?n:0)+t,bottom:((r=o.bottom)!==null&&r!==void 0?r:0)+t}}),qSe=Fe([jo,USe,Cw,Sw,(e,t,n)=>n],(e,t,n,r,o)=>{var{padding:i}=r;return o?[i.left,n.width-i.right]:[e.left+t.left,e.left+e.width-t.right]}),GSe=Fe([jo,Kn,KSe,Cw,Sw,(e,t,n)=>n],(e,t,n,r,o,i)=>{var{padding:a}=o;return i?[r.height-a.bottom,a.top]:t==="horizontal"?[e.top+e.height-n.bottom,e.top+n.top]:[e.top+n.top,e.top+e.height-n.bottom]}),Lv=(e,t,n,r)=>{var o;switch(t){case"xAxis":return qSe(e,n,r);case"yAxis":return GSe(e,n,r);case"zAxis":return(o=JR(e,n))===null||o===void 0?void 0:o.range;case"angleAxis":return Wq(e);case"radiusAxis":return Uq(e,n);default:return}},uG=Fe([Fr,Lv],zw),Kw=Fe([Fr,dh,BSe,uG],m4);Fe([Av,Uw,Ir],ESe);function dG(e,t){return e.id<t.id?-1:e.id>t.id?1:0}var qw=(e,t)=>t,Gw=(e,t,n)=>n,XSe=Fe(xw,qw,Gw,(e,t,n)=>e.filter(r=>r.orientation===t).filter(r=>r.mirror===n).sort(dG)),YSe=Fe(ww,qw,Gw,(e,t,n)=>e.filter(r=>r.orientation===t).filter(r=>r.mirror===n).sort(dG)),fG=(e,t)=>({width:e.width,height:t.height}),ZSe=(e,t)=>{var n=typeof t.width=="number"?t.width:Ev;return{width:n,height:e.height}},mG=Fe(jo,sc,fG),JSe=(e,t,n)=>{switch(t){case"top":return e.top;case"bottom":return n-e.bottom;default:return 0}},QSe=(e,t,n)=>{switch(t){case"left":return e.left;case"right":return n-e.right;default:return 0}},eCe=Fe(oc,jo,XSe,qw,Gw,(e,t,n,r,o)=>{var i={},a;return n.forEach(s=>{var l=fG(t,s);a==null&&(a=JSe(t,r,e));var u=r==="top"&&!o||r==="bottom"&&o;i[s.id]=a-Number(u)*l.height,a+=(u?-1:1)*l.height}),i}),tCe=Fe(rc,jo,YSe,qw,Gw,(e,t,n,r,o)=>{var i={},a;return n.forEach(s=>{var l=ZSe(t,s);a==null&&(a=QSe(t,r,e));var u=r==="left"&&!o||r==="right"&&o;i[s.id]=a-Number(u)*l.width,a+=(u?-1:1)*l.width}),i}),nCe=(e,t)=>{var n=sc(e,t);if(n!=null)return eCe(e,n.orientation,n.mirror)},rCe=Fe([jo,sc,nCe,(e,t)=>t],(e,t,n,r)=>{if(t!=null){var o=n==null?void 0:n[r];return o==null?{x:e.left,y:0}:{x:e.left,y:o}}}),oCe=(e,t)=>{var n=lc(e,t);if(n!=null)return tCe(e,n.orientation,n.mirror)},iCe=Fe([jo,lc,oCe,(e,t)=>t],(e,t,n,r)=>{if(t!=null){var o=n==null?void 0:n[r];return o==null?{x:0,y:e.top}:{x:o,y:e.top}}}),hG=Fe(jo,lc,(e,t)=>{var n=typeof t.width=="number"?t.width:Ev;return{width:n,height:e.height}}),W8=(e,t,n)=>{switch(t){case"xAxis":return mG(e,n).width;case"yAxis":return hG(e,n).height;default:return}},pG=(e,t,n,r)=>{if(n!=null){var{allowDuplicatedCategory:o,type:i,dataKey:a}=n,s=Bd(e,r),l=t.map(u=>u.value);if(a&&s&&i==="category"&&o&&YW(l))return l}},v4=Fe([Kn,Ww,Fr,Ir],pG),gG=(e,t,n,r)=>{if(!(n==null||n.dataKey==null)){var{type:o,scale:i}=n,a=Bd(e,r);if(a&&(o==="number"||i!=="auto"))return t.map(s=>s.value)}},y4=Fe([Kn,Ww,kv,Ir],gG),U8=Fe([Kn,vSe,dh,Kw,v4,y4,Lv,p4,Ir],(e,t,n,r,o,i,a,s,l)=>{if(t!=null){var u=Bd(e,l);return{angle:t.angle,interval:t.interval,minTickGap:t.minTickGap,orientation:t.orientation,tick:t.tick,tickCount:t.tickCount,tickFormatter:t.tickFormatter,ticks:t.ticks,type:t.type,unit:t.unit,axisType:l,categoricalDomain:i,duplicateDomain:o,isCategorical:u,niceTicks:s,range:a,realScaleType:n,scale:r}}}),aCe=(e,t,n,r,o,i,a,s,l)=>{if(!(t==null||r==null)){var u=Bd(e,l),{type:d,ticks:f,tickCount:m}=t,h=n==="scaleBand"&&typeof r.bandwidth=="function"?r.bandwidth()/2:2,p=d==="category"&&r.bandwidth?r.bandwidth()/h:0;p=l==="angleAxis"&&i!=null&&i.length>=2?Ho(i[0]-i[1])*2*p:p;var b=f||o;if(b){var v=b.map((y,x)=>{var w=a?a.indexOf(y):y;return{index:x,coordinate:r(w)+p,value:y,offset:p}});return v.filter(y=>Lr(y.coordinate))}return u&&s?s.map((y,x)=>({coordinate:r(y)+p,value:y,index:x,offset:p})).filter(y=>Lr(y.coordinate)):r.ticks?r.ticks(m).map(y=>({coordinate:r(y)+p,value:y,offset:p})):r.domain().map((y,x)=>({coordinate:r(y)+p,value:a?a[y]:y,index:x,offset:p}))}},vG=Fe([Kn,kv,dh,Kw,p4,Lv,v4,y4,Ir],aCe),sCe=(e,t,n,r,o,i,a)=>{if(!(t==null||n==null||r==null||r[0]===r[1])){var s=Bd(e,a),{tickCount:l}=t,u=0;return u=a==="angleAxis"&&(r==null?void 0:r.length)>=2?Ho(r[0]-r[1])*2*u:u,s&&i?i.map((d,f)=>({coordinate:n(d)+u,value:d,index:f,offset:u})):n.ticks?n.ticks(l).map(d=>({coordinate:n(d)+u,value:d,offset:u})):n.domain().map((d,f)=>({coordinate:n(d)+u,value:o?o[d]:d,index:f,offset:u}))}},Mm=Fe([Kn,kv,Kw,Lv,v4,y4,Ir],sCe),km=Fe(Fr,Kw,(e,t)=>{if(!(e==null||t==null))return Dx(Dx({},e),{},{scale:t})}),lCe=Fe([Fr,dh,f4,uG],m4);Fe((e,t,n)=>JR(e,n),lCe,(e,t)=>{if(!(e==null||t==null))return Dx(Dx({},e),{},{scale:t})});var cCe=Fe([Kn,xw,ww],(e,t,n)=>{switch(e){case"horizontal":return t.some(r=>r.reversed)?"right-to-left":"left-to-right";case"vertical":return n.some(r=>r.reversed)?"bottom-to-top":"top-to-bottom";case"centric":case"radial":return"left-to-right";default:return}}),yG=e=>e.options.defaultTooltipEventType,bG=e=>e.options.validateTooltipEventTypes;function xG(e,t,n){if(e==null)return t;var r=e?"axis":"item";return n==null?t:n.includes(r)?r:t}function b4(e,t){var n=yG(e),r=bG(e);return xG(t,n,r)}function uCe(e){return Qt(t=>b4(t,e))}var wG=(e,t)=>{var n,r=Number(t);if(!(Ls(r)||t==null))return r>=0?e==null||(n=e[r])===null||n===void 0?void 0:n.value:void 0},dCe=e=>e.tooltip.settings,jc={active:!1,index:null,dataKey:void 0,graphicalItemId:void 0,coordinate:void 0},fCe={itemInteraction:{click:jc,hover:jc},axisInteraction:{click:jc,hover:jc},keyboardInteraction:jc,syncInteraction:{active:!1,index:null,dataKey:void 0,label:void 0,coordinate:void 0,sourceViewBox:void 0,graphicalItemId:void 0},tooltipItemPayloads:[],settings:{shared:void 0,trigger:"hover",axisId:0,active:!1,defaultIndex:void 0}},SG=sa({name:"tooltip",initialState:fCe,reducers:{addTooltipEntrySettings:{reducer(e,t){e.tooltipItemPayloads.push(t.payload)},prepare:wr()},replaceTooltipEntrySettings:{reducer(e,t){var{prev:n,next:r}=t.payload,o=Rs(e).tooltipItemPayloads.indexOf(n);o>-1&&(e.tooltipItemPayloads[o]=r)},prepare:wr()},removeTooltipEntrySettings:{reducer(e,t){var n=Rs(e).tooltipItemPayloads.indexOf(t.payload);n>-1&&e.tooltipItemPayloads.splice(n,1)},prepare:wr()},setTooltipSettingsState(e,t){e.settings=t.payload},setActiveMouseOverItemIndex(e,t){e.syncInteraction.active=!1,e.keyboardInteraction.active=!1,e.itemInteraction.hover.active=!0,e.itemInteraction.hover.index=t.payload.activeIndex,e.itemInteraction.hover.dataKey=t.payload.activeDataKey,e.itemInteraction.hover.graphicalItemId=t.payload.activeGraphicalItemId,e.itemInteraction.hover.coordinate=t.payload.activeCoordinate},mouseLeaveChart(e){e.itemInteraction.hover.active=!1,e.axisInteraction.hover.active=!1},mouseLeaveItem(e){e.itemInteraction.hover.active=!1},setActiveClickItemIndex(e,t){e.syncInteraction.active=!1,e.itemInteraction.click.active=!0,e.keyboardInteraction.active=!1,e.itemInteraction.click.index=t.payload.activeIndex,e.itemInteraction.click.dataKey=t.payload.activeDataKey,e.itemInteraction.click.graphicalItemId=t.payload.activeGraphicalItemId,e.itemInteraction.click.coordinate=t.payload.activeCoordinate},setMouseOverAxisIndex(e,t){e.syncInteraction.active=!1,e.axisInteraction.hover.active=!0,e.keyboardInteraction.active=!1,e.axisInteraction.hover.index=t.payload.activeIndex,e.axisInteraction.hover.dataKey=t.payload.activeDataKey,e.axisInteraction.hover.coordinate=t.payload.activeCoordinate},setMouseClickAxisIndex(e,t){e.syncInteraction.active=!1,e.keyboardInteraction.active=!1,e.axisInteraction.click.active=!0,e.axisInteraction.click.index=t.payload.activeIndex,e.axisInteraction.click.dataKey=t.payload.activeDataKey,e.axisInteraction.click.coordinate=t.payload.activeCoordinate},setSyncInteraction(e,t){e.syncInteraction=t.payload},setKeyboardInteraction(e,t){e.keyboardInteraction.active=t.payload.active,e.keyboardInteraction.index=t.payload.activeIndex,e.keyboardInteraction.coordinate=t.payload.activeCoordinate}}}),{addTooltipEntrySettings:mCe,replaceTooltipEntrySettings:hCe,removeTooltipEntrySettings:pCe,setTooltipSettingsState:gCe,setActiveMouseOverItemIndex:CG,mouseLeaveItem:vCe,mouseLeaveChart:$G,setActiveClickItemIndex:yCe,setMouseOverAxisIndex:EG,setMouseClickAxisIndex:bCe,setSyncInteraction:uP,setKeyboardInteraction:dP}=SG.actions,xCe=SG.reducer;function K8(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 Q0(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?K8(Object(n),!0).forEach(function(r){wCe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):K8(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function wCe(e,t,n){return(t=SCe(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function SCe(e){var t=CCe(e,"string");return typeof t=="symbol"?t:t+""}function CCe(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function $Ce(e,t,n){return t==="axis"?n==="click"?e.axisInteraction.click:e.axisInteraction.hover:n==="click"?e.itemInteraction.click:e.itemInteraction.hover}function ECe(e){return e.index!=null}var OG=(e,t,n,r)=>{if(t==null)return jc;var o=$Ce(e,t,n);if(o==null)return jc;if(o.active)return o;if(e.keyboardInteraction.active)return e.keyboardInteraction;if(e.syncInteraction.active&&e.syncInteraction.index!=null)return e.syncInteraction;var i=e.settings.active===!0;if(ECe(o)){if(i)return Q0(Q0({},o),{},{active:!0})}else if(r!=null)return{active:!0,coordinate:void 0,dataKey:void 0,index:r,graphicalItemId:void 0};return Q0(Q0({},jc),{},{coordinate:o.coordinate})};function OCe(e){if(typeof e=="number")return Number.isFinite(e)?e:void 0;if(e instanceof Date){var t=e.valueOf();return Number.isFinite(t)?t:void 0}var n=Number(e);return Number.isFinite(n)?n:void 0}function PCe(e,t){var n=OCe(e),r=t[0],o=t[1];if(n===void 0)return!1;var i=Math.min(r,o),a=Math.max(r,o);return n>=i&&n<=a}function jCe(e,t,n){if(n==null||t==null)return!0;var r=hr(e,t);return r==null||!Yc(n)?!0:PCe(r,n)}var x4=(e,t,n,r)=>{var o=e==null?void 0:e.index;if(o==null)return null;var i=Number(o);if(!Lr(i))return o;var a=0,s=1/0;t.length>0&&(s=t.length-1);var l=Math.max(a,Math.min(i,s)),u=t[l];return u==null||jCe(u,n,r)?String(l):null},PG=(e,t,n,r,o,i,a,s)=>{if(!(i==null||s==null)){var l=a[0],u=l==null?void 0:s(l.positions,i);if(u!=null)return u;var d=o==null?void 0:o[Number(i)];if(d)switch(n){case"horizontal":return{x:d.coordinate,y:(r.top+t)/2};default:return{x:(r.left+e)/2,y:d.coordinate}}}},jG=(e,t,n,r)=>{if(t==="axis")return e.tooltipItemPayloads;if(e.tooltipItemPayloads.length===0)return[];var o;if(n==="hover"?o=e.itemInteraction.hover.graphicalItemId:o=e.itemInteraction.click.graphicalItemId,o==null&&r!=null){var i=e.tooltipItemPayloads[0];return i!=null?[i]:[]}return e.tooltipItemPayloads.filter(a=>{var s;return((s=a.settings)===null||s===void 0?void 0:s.graphicalItemId)===o})},zv=e=>e.options.tooltipPayloadSearcher,fh=e=>e.tooltip;function q8(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 G8(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?q8(Object(n),!0).forEach(function(r){ICe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):q8(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function ICe(e,t,n){return(t=_Ce(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _Ce(e){var t=NCe(e,"string");return typeof t=="symbol"?t:t+""}function NCe(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function RCe(e,t){return e??t}var IG=(e,t,n,r,o,i,a)=>{if(!(t==null||i==null)){var{chartData:s,computedData:l,dataStartIndex:u,dataEndIndex:d}=n,f=[];return e.reduce((m,h)=>{var p,{dataDefinedOnItem:b,settings:v}=h,y=RCe(b,s),x=Array.isArray(y)?iK(y,u,d):y,w=(p=v==null?void 0:v.dataKey)!==null&&p!==void 0?p:r,C=v==null?void 0:v.nameKey,S;if(r&&Array.isArray(x)&&!Array.isArray(x[0])&&a==="axis"?S=ZW(x,r,o):S=i(x,t,l,C),Array.isArray(S))S.forEach(E=>{var O=G8(G8({},v),{},{name:E.name,unit:E.unit,color:void 0,fill:void 0});m.push(iA({tooltipEntrySettings:O,dataKey:E.dataKey,payload:E.payload,value:hr(E.payload,E.dataKey),name:E.name}))});else{var $;m.push(iA({tooltipEntrySettings:v,dataKey:w,payload:S,value:hr(S,w),name:($=hr(S,C))!==null&&$!==void 0?$:v==null?void 0:v.name}))}return m},f)}},w4=Fe([No,Kn,Yq,UR,_o],lG),TCe=Fe([e=>e.graphicalItems.cartesianItems,e=>e.graphicalItems.polarItems],(e,t)=>[...e,...t]),MCe=Fe([_o,ch],QR),mh=Fe([TCe,No,MCe],t4,{memoizeOptions:{resultEqualityCheck:Vw}}),kCe=Fe([mh],e=>e.filter(Bw)),ACe=Fe([mh],n4,{memoizeOptions:{resultEqualityCheck:Vw}}),hh=Fe([ACe,ac],r4),DCe=Fe([kCe,ac,No],qq),S4=Fe([hh,No,mh],i4),_G=Fe([No],a4),LCe=Fe([No],e=>e.allowDataOverflow),NG=Fe([_G,LCe],$q),zCe=Fe([mh],e=>e.filter(Bw)),FCe=Fe([DCe,zCe,Tv,Fq],eG),BCe=Fe([FCe,ac,_o,NG],tG),HCe=Fe([mh],Jq),VCe=Fe([hh,No,HCe,Uw,_o],c4,{memoizeOptions:{resultEqualityCheck:Hw}}),WCe=Fe([nG,_o,ch],uh),UCe=Fe([WCe,_o],iG),KCe=Fe([rG,_o,ch],uh),qCe=Fe([KCe,_o],aG),GCe=Fe([oG,_o,ch],uh),XCe=Fe([GCe,_o],sG),YCe=Fe([UCe,XCe,qCe],Lx),ZCe=Fe([No,_G,NG,BCe,VCe,YCe,Kn,_o],u4),Fv=Fe([No,Kn,hh,S4,Tv,_o,ZCe],d4),JCe=Fe([Fv,No,w4],h4),QCe=Fe([No,Fv,JCe,_o],g4),RG=e=>{var t=_o(e),n=ch(e),r=!1;return Lv(e,t,n,r)},TG=Fe([No,RG],zw),MG=Fe([No,w4,QCe,TG],m4),e$e=Fe([Kn,S4,No,_o],pG),t$e=Fe([Kn,S4,No,_o],gG),n$e=(e,t,n,r,o,i,a,s)=>{if(t){var{type:l}=t,u=Bd(e,s);if(r){var d=n==="scaleBand"&&r.bandwidth?r.bandwidth()/2:2,f=l==="category"&&r.bandwidth?r.bandwidth()/d:0;return f=s==="angleAxis"&&o!=null&&(o==null?void 0:o.length)>=2?Ho(o[0]-o[1])*2*f:f,u&&a?a.map((m,h)=>({coordinate:r(m)+f,value:m,index:h,offset:f})):r.domain().map((m,h)=>({coordinate:r(m)+f,value:i?i[m]:m,index:h,offset:f}))}}},cc=Fe([Kn,No,w4,MG,RG,e$e,t$e,_o],n$e),C4=Fe([yG,bG,dCe],(e,t,n)=>xG(n.shared,e,t)),kG=e=>e.tooltip.settings.trigger,$4=e=>e.tooltip.settings.defaultIndex,Bv=Fe([fh,C4,kG,$4],OG),Ed=Fe([Bv,hh,Dv,Fv],x4),AG=Fe([cc,Ed],wG),E4=Fe([Bv],e=>{if(e)return e.dataKey}),r$e=Fe([Bv],e=>{if(e)return e.graphicalItemId}),DG=Fe([fh,C4,kG,$4],jG),o$e=Fe([rc,oc,Kn,jo,cc,$4,DG,zv],PG),i$e=Fe([Bv,o$e],(e,t)=>e!=null&&e.coordinate?e.coordinate:t),a$e=Fe([Bv],e=>{var t;return(t=e==null?void 0:e.active)!==null&&t!==void 0?t:!1}),s$e=Fe([DG,Ed,ac,Dv,AG,zv,C4],IG),l$e=Fe([s$e],e=>{if(e!=null){var t=e.map(n=>n.payload).filter(n=>n!=null);return Array.from(new Set(t))}});function X8(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 Y8(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?X8(Object(n),!0).forEach(function(r){c$e(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):X8(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function c$e(e,t,n){return(t=u$e(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function u$e(e){var t=d$e(e,"string");return typeof t=="symbol"?t:t+""}function d$e(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var f$e=()=>Qt(No),m$e=()=>{var e=f$e(),t=Qt(cc),n=Qt(MG);return vx(!e||!n?void 0:Y8(Y8({},e),{},{scale:n}),t)};function Z8(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 lf(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Z8(Object(n),!0).forEach(function(r){h$e(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Z8(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function h$e(e,t,n){return(t=p$e(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function p$e(e){var t=g$e(e,"string");return typeof t=="symbol"?t:t+""}function g$e(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var v$e=(e,t,n,r)=>{var o=t.find(i=>i&&i.index===n);if(o){if(e==="horizontal")return{x:o.coordinate,y:r.chartY};if(e==="vertical")return{x:r.chartX,y:o.coordinate}}return{x:0,y:0}},y$e=(e,t,n,r)=>{var o=t.find(u=>u&&u.index===n);if(o){if(e==="centric"){var i=o.coordinate,{radius:a}=r;return lf(lf(lf({},r),uo(r.cx,r.cy,a,i)),{},{angle:i,radius:a})}var s=o.coordinate,{angle:l}=r;return lf(lf(lf({},r),uo(r.cx,r.cy,s,l)),{},{angle:l,radius:s})}return{angle:0,clockWise:!1,cx:0,cy:0,endAngle:0,innerRadius:0,outerRadius:0,radius:0,startAngle:0,x:0,y:0}};function b$e(e,t){var{chartX:n,chartY:r}=e;return n>=t.left&&n<=t.left+t.width&&r>=t.top&&r<=t.top+t.height}var LG=(e,t,n,r,o)=>{var i,a=(i=t==null?void 0:t.length)!==null&&i!==void 0?i:0;if(a<=1||e==null)return 0;if(r==="angleAxis"&&o!=null&&Math.abs(Math.abs(o[1]-o[0])-360)<=1e-6)for(var s=0;s<a;s++){var l,u,d,f,m,h=s>0?(l=n[s-1])===null||l===void 0?void 0:l.coordinate:(u=n[a-1])===null||u===void 0?void 0:u.coordinate,p=(d=n[s])===null||d===void 0?void 0:d.coordinate,b=s>=a-1?(f=n[0])===null||f===void 0?void 0:f.coordinate:(m=n[s+1])===null||m===void 0?void 0:m.coordinate,v=void 0;if(!(h==null||p==null||b==null))if(Ho(p-h)!==Ho(b-p)){var y=[];if(Ho(b-p)===Ho(o[1]-o[0])){v=b;var x=p+o[1]-o[0];y[0]=Math.min(x,(x+h)/2),y[1]=Math.max(x,(x+h)/2)}else{v=h;var w=b+o[1]-o[0];y[0]=Math.min(p,(w+p)/2),y[1]=Math.max(p,(w+p)/2)}var C=[Math.min(p,(v+p)/2),Math.max(p,(v+p)/2)];if(e>C[0]&&e<=C[1]||e>=y[0]&&e<=y[1]){var S;return(S=n[s])===null||S===void 0?void 0:S.index}}else{var $=Math.min(h,b),E=Math.max(h,b);if(e>($+p)/2&&e<=(E+p)/2){var O;return(O=n[s])===null||O===void 0?void 0:O.index}}}else if(t)for(var P=0;P<a;P++){var j=t[P];if(j!=null){var I=t[P+1],_=t[P-1];if(P===0&&I!=null&&e<=(j.coordinate+I.coordinate)/2||P===a-1&&_!=null&&e>(j.coordinate+_.coordinate)/2||P>0&&P<a-1&&_!=null&&I!=null&&e>(j.coordinate+_.coordinate)/2&&e<=(j.coordinate+I.coordinate)/2)return j.index}}return-1},x$e=()=>Qt(UR),O4=(e,t)=>t,zG=(e,t,n)=>n,P4=(e,t,n,r)=>r,w$e=Fe(cc,e=>uw(e,t=>t.coordinate)),j4=Fe([fh,O4,zG,P4],OG),I4=Fe([j4,hh,Dv,Fv],x4),S$e=(e,t,n)=>{if(t!=null){var r=fh(e);return t==="axis"?n==="hover"?r.axisInteraction.hover.dataKey:r.axisInteraction.click.dataKey:n==="hover"?r.itemInteraction.hover.dataKey:r.itemInteraction.click.dataKey}},FG=Fe([fh,O4,zG,P4],jG),zx=Fe([rc,oc,Kn,jo,cc,P4,FG,zv],PG),C$e=Fe([j4,zx],(e,t)=>{var n;return(n=e.coordinate)!==null&&n!==void 0?n:t}),BG=Fe([cc,I4],wG),$$e=Fe([FG,I4,ac,Dv,BG,zv,O4],IG),E$e=Fe([j4,I4],(e,t)=>({isActive:e.active&&t!=null,activeIndex:t})),O$e=(e,t,n,r,o,i,a)=>{if(!(!e||!n||!r||!o)&&b$e(e,a)){var s=eye(e,t),l=LG(s,i,o,n,r),u=v$e(t,o,l,e);return{activeIndex:String(l),activeCoordinate:u}}},P$e=(e,t,n,r,o,i,a)=>{if(!(!e||!r||!o||!i||!n)){var s=mxe(e,n);if(s){var l=tye(s,t),u=LG(l,a,i,r,o),d=y$e(t,i,u,s);return{activeIndex:String(u),activeCoordinate:d}}}},j$e=(e,t,n,r,o,i,a,s)=>{if(!(!e||!t||!r||!o||!i))return t==="horizontal"||t==="vertical"?O$e(e,t,r,o,i,a,s):P$e(e,t,n,r,o,i,a)},I$e=Fe(e=>e.zIndex.zIndexMap,(e,t)=>t,(e,t,n)=>n,(e,t,n)=>{if(t!=null){var r=e[t];if(r!=null)return n?r.panoramaElement:r.element}}),_$e=Fe(e=>e.zIndex.zIndexMap,e=>{var t=Object.keys(e).map(r=>parseInt(r,10)).concat(Object.values(Co)),n=Array.from(new Set(t));return n.sort((r,o)=>r-o)},{memoizeOptions:{resultEqualityCheck:fSe}});function J8(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 Q8(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?J8(Object(n),!0).forEach(function(r){N$e(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):J8(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function N$e(e,t,n){return(t=R$e(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function R$e(e){var t=T$e(e,"string");return typeof t=="symbol"?t:t+""}function T$e(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var M$e={},k$e={zIndexMap:Object.values(Co).reduce((e,t)=>Q8(Q8({},e),{},{[t]:{element:void 0,panoramaElement:void 0,consumers:0}}),M$e)},A$e=new Set(Object.values(Co));function D$e(e){return A$e.has(e)}var HG=sa({name:"zIndex",initialState:k$e,reducers:{registerZIndexPortal:{reducer:(e,t)=>{var{zIndex:n}=t.payload;e.zIndexMap[n]?e.zIndexMap[n].consumers+=1:e.zIndexMap[n]={consumers:1,element:void 0,panoramaElement:void 0}},prepare:wr()},unregisterZIndexPortal:{reducer:(e,t)=>{var{zIndex:n}=t.payload;e.zIndexMap[n]&&(e.zIndexMap[n].consumers-=1,e.zIndexMap[n].consumers<=0&&!D$e(n)&&delete e.zIndexMap[n])},prepare:wr()},registerZIndexPortalElement:{reducer:(e,t)=>{var{zIndex:n,element:r,isPanorama:o}=t.payload;e.zIndexMap[n]?o?e.zIndexMap[n].panoramaElement=r:e.zIndexMap[n].element=r:e.zIndexMap[n]={consumers:0,element:o?void 0:r,panoramaElement:o?r:void 0}},prepare:wr()},unregisterZIndexPortalElement:{reducer:(e,t)=>{var{zIndex:n}=t.payload;e.zIndexMap[n]&&(t.payload.isPanorama?e.zIndexMap[n].panoramaElement=void 0:e.zIndexMap[n].element=void 0)},prepare:wr()}}}),{registerZIndexPortal:L$e,unregisterZIndexPortal:z$e,registerZIndexPortalElement:F$e,unregisterZIndexPortalElement:B$e}=HG.actions,H$e=HG.reducer;function qs(e){var{zIndex:t,children:n}=e,r=jye(),o=r&&t!==void 0&&t!==0,i=la(),a=gr();c.useLayoutEffect(()=>o?(a(L$e({zIndex:t})),()=>{a(z$e({zIndex:t}))}):xv,[a,t,o]);var s=Qt(l=>I$e(l,t,i));return o?s?Fi.createPortal(n,s):null:n}function fP(){return fP=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},fP.apply(null,arguments)}function e5(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 ey(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?e5(Object(n),!0).forEach(function(r){V$e(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):e5(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function V$e(e,t,n){return(t=W$e(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function W$e(e){var t=U$e(e,"string");return typeof t=="symbol"?t:t+""}function U$e(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function K$e(e){var{cursor:t,cursorComp:n,cursorProps:r}=e;return c.isValidElement(t)?c.cloneElement(t,r):c.createElement(n,r)}function q$e(e){var t,{coordinate:n,payload:r,index:o,offset:i,tooltipAxisBandSize:a,layout:s,cursor:l,tooltipEventType:u,chartName:d}=e,f=n,m=r,h=o;if(!l||!f||d!=="ScatterChart"&&u!=="axis")return null;var p,b,v;if(d==="ScatterChart")p=f,b=Pbe,v=Co.cursorLine;else if(d==="BarChart")p=jbe(s,f,i,a),b=MK,v=Co.cursorRectangle;else if(s==="radial"&&QW(f)){var{cx:y,cy:x,radius:w,startAngle:C,endAngle:S}=AK(f);p={cx:y,cy:x,startAngle:C,endAngle:S,innerRadius:w,outerRadius:w},b=LK,v=Co.cursorLine}else p={points:vxe(s,f,i)},b=bR,v=Co.cursorLine;var $=typeof l=="object"&&"className"in l?l.className:void 0,E=ey(ey(ey(ey({stroke:"#ccc",pointerEvents:"none"},i),p),xg(l)),{},{payload:m,payloadIndex:h,className:Zn("recharts-tooltip-cursor",$)});return c.createElement(qs,{zIndex:(t=e.zIndex)!==null&&t!==void 0?t:v},c.createElement(K$e,{cursor:l,cursorComp:b,cursorProps:E}))}function G$e(e){var t=m$e(),n=yK(),r=Ov(),o=x$e();return t==null||n==null||r==null||o==null?null:c.createElement(q$e,fP({},e,{offset:n,layout:r,tooltipAxisBandSize:t,chartName:o}))}var VG=c.createContext(null),X$e=()=>c.useContext(VG),WG={exports:{}};(function(e){var t=Object.prototype.hasOwnProperty,n="~";function r(){}Object.create&&(r.prototype=Object.create(null),new r().__proto__||(n=!1));function o(l,u,d){this.fn=l,this.context=u,this.once=d||!1}function i(l,u,d,f,m){if(typeof d!="function")throw new TypeError("The listener must be a function");var h=new o(d,f||l,m),p=n?n+u:u;return l._events[p]?l._events[p].fn?l._events[p]=[l._events[p],h]:l._events[p].push(h):(l._events[p]=h,l._eventsCount++),l}function a(l,u){--l._eventsCount===0?l._events=new r:delete l._events[u]}function s(){this._events=new r,this._eventsCount=0}s.prototype.eventNames=function(){var u=[],d,f;if(this._eventsCount===0)return u;for(f in d=this._events)t.call(d,f)&&u.push(n?f.slice(1):f);return Object.getOwnPropertySymbols?u.concat(Object.getOwnPropertySymbols(d)):u},s.prototype.listeners=function(u){var d=n?n+u:u,f=this._events[d];if(!f)return[];if(f.fn)return[f.fn];for(var m=0,h=f.length,p=new Array(h);m<h;m++)p[m]=f[m].fn;return p},s.prototype.listenerCount=function(u){var d=n?n+u:u,f=this._events[d];return f?f.fn?1:f.length:0},s.prototype.emit=function(u,d,f,m,h,p){var b=n?n+u:u;if(!this._events[b])return!1;var v=this._events[b],y=arguments.length,x,w;if(v.fn){switch(v.once&&this.removeListener(u,v.fn,void 0,!0),y){case 1:return v.fn.call(v.context),!0;case 2:return v.fn.call(v.context,d),!0;case 3:return v.fn.call(v.context,d,f),!0;case 4:return v.fn.call(v.context,d,f,m),!0;case 5:return v.fn.call(v.context,d,f,m,h),!0;case 6:return v.fn.call(v.context,d,f,m,h,p),!0}for(w=1,x=new Array(y-1);w<y;w++)x[w-1]=arguments[w];v.fn.apply(v.context,x)}else{var C=v.length,S;for(w=0;w<C;w++)switch(v[w].once&&this.removeListener(u,v[w].fn,void 0,!0),y){case 1:v[w].fn.call(v[w].context);break;case 2:v[w].fn.call(v[w].context,d);break;case 3:v[w].fn.call(v[w].context,d,f);break;case 4:v[w].fn.call(v[w].context,d,f,m);break;default:if(!x)for(S=1,x=new Array(y-1);S<y;S++)x[S-1]=arguments[S];v[w].fn.apply(v[w].context,x)}}return!0},s.prototype.on=function(u,d,f){return i(this,u,d,f,!1)},s.prototype.once=function(u,d,f){return i(this,u,d,f,!0)},s.prototype.removeListener=function(u,d,f,m){var h=n?n+u:u;if(!this._events[h])return this;if(!d)return a(this,h),this;var p=this._events[h];if(p.fn)p.fn===d&&(!m||p.once)&&(!f||p.context===f)&&a(this,h);else{for(var b=0,v=[],y=p.length;b<y;b++)(p[b].fn!==d||m&&!p[b].once||f&&p[b].context!==f)&&v.push(p[b]);v.length?this._events[h]=v.length===1?v[0]:v:a(this,h)}return this},s.prototype.removeAllListeners=function(u){var d;return u?(d=n?n+u:u,this._events[d]&&a(this,d)):(this._events=new r,this._eventsCount=0),this},s.prototype.off=s.prototype.removeListener,s.prototype.addListener=s.prototype.on,s.prefixed=n,s.EventEmitter=s,e.exports=s})(WG);var Y$e=WG.exports;const Z$e=ho(Y$e);var Mg=new Z$e,mP="recharts.syncEvent.tooltip",t5="recharts.syncEvent.brush";function UG(e,t){if(t){var n=Number.parseInt(t,10);if(!Ls(n))return e==null?void 0:e[n]}}var J$e={chartName:"",tooltipPayloadSearcher:void 0,eventEmitter:void 0,defaultTooltipEventType:"axis"},KG=sa({name:"options",initialState:J$e,reducers:{createEventEmitter:e=>{e.eventEmitter==null&&(e.eventEmitter=Symbol("rechartsEventEmitter"))}}}),Q$e=KG.reducer,{createEventEmitter:e2e}=KG.actions;function t2e(e){return e.tooltip.syncInteraction}var n2e={chartData:void 0,computedData:void 0,dataStartIndex:0,dataEndIndex:0},qG=sa({name:"chartData",initialState:n2e,reducers:{setChartData(e,t){if(e.chartData=t.payload,t.payload==null){e.dataStartIndex=0,e.dataEndIndex=0;return}t.payload.length>0&&e.dataEndIndex!==t.payload.length-1&&(e.dataEndIndex=t.payload.length-1)},setComputedData(e,t){e.computedData=t.payload},setDataStartEndIndexes(e,t){var{startIndex:n,endIndex:r}=t.payload;n!=null&&(e.dataStartIndex=n),r!=null&&(e.dataEndIndex=r)}}}),{setChartData:n5,setDataStartEndIndexes:r2e,setComputedData:hit}=qG.actions,o2e=qG.reducer,i2e=["x","y"];function r5(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 cf(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?r5(Object(n),!0).forEach(function(r){a2e(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r5(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function a2e(e,t,n){return(t=s2e(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function s2e(e){var t=l2e(e,"string");return typeof t=="symbol"?t:t+""}function l2e(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function c2e(e,t){if(e==null)return{};var n,r,o=u2e(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function u2e(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 d2e(){var e=Qt(KR),t=Qt(qR),n=gr(),r=Qt(Bq),o=Qt(cc),i=Ov(),a=$w(),s=Qt(l=>l.rootProps.className);c.useEffect(()=>{if(e==null)return xv;var l=(u,d,f)=>{if(t!==f&&e===u){if(r==="index"){var m;if(a&&d!==null&&d!==void 0&&(m=d.payload)!==null&&m!==void 0&&m.coordinate&&d.payload.sourceViewBox){var h=d.payload.coordinate,{x:p,y:b}=h,v=c2e(h,i2e),{x:y,y:x,width:w,height:C}=d.payload.sourceViewBox,S=cf(cf({},v),{},{x:a.x+(w?(p-y)/w:0)*a.width,y:a.y+(C?(b-x)/C:0)*a.height});n(cf(cf({},d),{},{payload:cf(cf({},d.payload),{},{coordinate:S})}))}else n(d);return}if(o!=null){var $;if(typeof r=="function"){var E={activeTooltipIndex:d.payload.index==null?void 0:Number(d.payload.index),isTooltipActive:d.payload.active,activeIndex:d.payload.index==null?void 0:Number(d.payload.index),activeLabel:d.payload.label,activeDataKey:d.payload.dataKey,activeCoordinate:d.payload.coordinate},O=r(o,E);$=o[O]}else r==="value"&&($=o.find(M=>String(M.value)===d.payload.label));var{coordinate:P}=d.payload;if($==null||d.payload.active===!1||P==null||a==null){n(uP({active:!1,coordinate:void 0,dataKey:void 0,index:null,label:void 0,sourceViewBox:void 0,graphicalItemId:void 0}));return}var{x:j,y:I}=P,_=Math.min(j,a.x+a.width),R=Math.min(I,a.y+a.height),N={x:i==="horizontal"?$.coordinate:_,y:i==="horizontal"?R:$.coordinate},A=uP({active:d.payload.active,coordinate:N,dataKey:d.payload.dataKey,index:String($.index),label:d.payload.label,sourceViewBox:d.payload.sourceViewBox,graphicalItemId:d.payload.graphicalItemId});n(A)}}};return Mg.on(mP,l),()=>{Mg.off(mP,l)}},[s,n,t,e,r,o,i,a])}function f2e(){var e=Qt(KR),t=Qt(qR),n=gr();c.useEffect(()=>{if(e==null)return xv;var r=(o,i,a)=>{t!==a&&e===o&&n(r2e(i))};return Mg.on(t5,r),()=>{Mg.off(t5,r)}},[n,t,e])}function m2e(){var e=gr();c.useEffect(()=>{e(e2e())},[e]),d2e(),f2e()}function h2e(e,t,n,r,o,i){var a=Qt(h=>S$e(h,e,t)),s=Qt(qR),l=Qt(KR),u=Qt(Bq),d=Qt(t2e),f=d==null?void 0:d.active,m=$w();c.useEffect(()=>{if(!f&&l!=null&&s!=null){var h=uP({active:i,coordinate:n,dataKey:a,index:o,label:typeof r=="number"?String(r):r,sourceViewBox:m,graphicalItemId:void 0});Mg.emit(mP,l,h,s)}},[f,n,a,o,r,s,l,u,i,m])}function o5(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 i5(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?o5(Object(n),!0).forEach(function(r){p2e(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o5(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function p2e(e,t,n){return(t=g2e(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function g2e(e){var t=v2e(e,"string");return typeof t=="symbol"?t:t+""}function v2e(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function y2e(e){return e.dataKey}function b2e(e,t){return c.isValidElement(e)?c.cloneElement(e,t):typeof e=="function"?c.createElement(e,t):c.createElement(abe,t)}var a5=[],x2e={allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",axisId:0,contentStyle:{},cursor:!0,filterNull:!0,includeHidden:!1,isAnimationActive:"auto",itemSorter:"name",itemStyle:{},labelStyle:{},offset:10,reverseDirection:{x:!1,y:!1},separator:" : ",trigger:"hover",useTranslate3d:!1,wrapperStyle:{}};function Od(e){var t,n,r=qo(e,x2e),{active:o,allowEscapeViewBox:i,animationDuration:a,animationEasing:s,content:l,filterNull:u,isAnimationActive:d,offset:f,payloadUniqBy:m,position:h,reverseDirection:p,useTranslate3d:b,wrapperStyle:v,cursor:y,shared:x,trigger:w,defaultIndex:C,portal:S,axisId:$}=r,E=gr(),O=typeof C=="number"?String(C):C;c.useEffect(()=>{E(gCe({shared:x,trigger:w,axisId:$,active:o,defaultIndex:O}))},[E,x,w,$,o,O]);var P=$w(),j=IK(),I=uCe(x),{activeIndex:_,isActive:R}=(t=Qt(te=>E$e(te,I,w,O)))!==null&&t!==void 0?t:{},N=Qt(te=>$$e(te,I,w,O)),A=Qt(te=>BG(te,I,w,O)),M=Qt(te=>C$e(te,I,w,O)),T=N,k=X$e(),D=(n=o??R)!==null&&n!==void 0?n:!1,[L,B]=IU([T,D]),H=I==="axis"?A:void 0;h2e(I,w,M,H,_,D);var F=S??k;if(F==null||P==null||I==null)return null;var W=T??a5;D||(W=a5),u&&W.length&&(W=vU(W.filter(te=>te.value!=null&&(te.hide!==!0||r.includeHidden)),m,y2e));var q=W.length>0,G=c.createElement(mbe,{allowEscapeViewBox:i,animationDuration:a,animationEasing:s,isAnimationActive:d,active:D,coordinate:M,hasPayload:q,offset:f,position:h,reverseDirection:p,useTranslate3d:b,viewBox:P,wrapperStyle:v,lastBoundingBox:L,innerRef:B,hasPortalFromProps:!!S},b2e(l,i5(i5({},r),{},{payload:W,label:H,active:D,activeIndex:_,coordinate:M,accessibilityLayer:j})));return c.createElement(c.Fragment,null,Fi.createPortal(G,F),D&&c.createElement(G$e,{cursor:y,tooltipEventType:I,coordinate:M,payload:W,index:_}))}var Wd=e=>null;Wd.displayName="Cell";function w2e(e,t,n){return(t=S2e(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function S2e(e){var t=C2e(e,"string");return typeof t=="symbol"?t:t+""}function C2e(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}class $2e{constructor(t){w2e(this,"cache",new Map),this.maxSize=t}get(t){var n=this.cache.get(t);return n!==void 0&&(this.cache.delete(t),this.cache.set(t,n)),n}set(t,n){if(this.cache.has(t))this.cache.delete(t);else if(this.cache.size>=this.maxSize){var r=this.cache.keys().next().value;r!=null&&this.cache.delete(r)}this.cache.set(t,n)}clear(){this.cache.clear()}size(){return this.cache.size}}function s5(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 E2e(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?s5(Object(n),!0).forEach(function(r){O2e(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s5(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function O2e(e,t,n){return(t=P2e(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function P2e(e){var t=j2e(e,"string");return typeof t=="symbol"?t:t+""}function j2e(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var I2e={cacheSize:2e3,enableCache:!0},GG=E2e({},I2e),l5=new $2e(GG.cacheSize),_2e={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},c5="recharts_measurement_span";function N2e(e,t){var n=t.fontSize||"",r=t.fontFamily||"",o=t.fontWeight||"",i=t.fontStyle||"",a=t.letterSpacing||"",s=t.textTransform||"";return"".concat(e,"|").concat(n,"|").concat(r,"|").concat(o,"|").concat(i,"|").concat(a,"|").concat(s)}var u5=(e,t)=>{try{var n=document.getElementById(c5);n||(n=document.createElement("span"),n.setAttribute("id",c5),n.setAttribute("aria-hidden","true"),document.body.appendChild(n)),Object.assign(n.style,_2e,t),n.textContent="".concat(e);var r=n.getBoundingClientRect();return{width:r.width,height:r.height}}catch{return{width:0,height:0}}},zp=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(t==null||Iw.isSsr)return{width:0,height:0};if(!GG.enableCache)return u5(t,n);var r=N2e(t,n),o=l5.get(r);if(o)return o;var i=u5(t,n);return l5.set(r,i),i},XG;function R2e(e,t,n){return(t=T2e(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function T2e(e){var t=M2e(e,"string");return typeof t=="symbol"?t:t+""}function M2e(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var d5=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,f5=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,k2e=/^px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q$/,A2e=/(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/,D2e={cm:96/2.54,mm:96/25.4,pt:96/72,pc:96/6,in:96,Q:96/(2.54*40),px:1},L2e=["cm","mm","pt","pc","in","Q","px"];function z2e(e){return L2e.includes(e)}var Ff="NaN";function F2e(e,t){return e*D2e[t]}class ei{static parse(t){var n,[,r,o]=(n=A2e.exec(t))!==null&&n!==void 0?n:[];return r==null?ei.NaN:new ei(parseFloat(r),o??"")}constructor(t,n){this.num=t,this.unit=n,this.num=t,this.unit=n,Ls(t)&&(this.unit=""),n!==""&&!k2e.test(n)&&(this.num=NaN,this.unit=""),z2e(n)&&(this.num=F2e(t,n),this.unit="px")}add(t){return this.unit!==t.unit?new ei(NaN,""):new ei(this.num+t.num,this.unit)}subtract(t){return this.unit!==t.unit?new ei(NaN,""):new ei(this.num-t.num,this.unit)}multiply(t){return this.unit!==""&&t.unit!==""&&this.unit!==t.unit?new ei(NaN,""):new ei(this.num*t.num,this.unit||t.unit)}divide(t){return this.unit!==""&&t.unit!==""&&this.unit!==t.unit?new ei(NaN,""):new ei(this.num/t.num,this.unit||t.unit)}toString(){return"".concat(this.num).concat(this.unit)}isNaN(){return Ls(this.num)}}XG=ei;R2e(ei,"NaN",new XG(NaN,""));function YG(e){if(e==null||e.includes(Ff))return Ff;for(var t=e;t.includes("*")||t.includes("/");){var n,[,r,o,i]=(n=d5.exec(t))!==null&&n!==void 0?n:[],a=ei.parse(r??""),s=ei.parse(i??""),l=o==="*"?a.multiply(s):a.divide(s);if(l.isNaN())return Ff;t=t.replace(d5,l.toString())}for(;t.includes("+")||/.-\d+(?:\.\d+)?/.test(t);){var u,[,d,f,m]=(u=f5.exec(t))!==null&&u!==void 0?u:[],h=ei.parse(d??""),p=ei.parse(m??""),b=f==="+"?h.add(p):h.subtract(p);if(b.isNaN())return Ff;t=t.replace(f5,b.toString())}return t}var m5=/\(([^()]*)\)/;function B2e(e){for(var t=e,n;(n=m5.exec(t))!=null;){var[,r]=n;t=t.replace(m5,YG(r))}return t}function H2e(e){var t=e.replace(/\s+/g,"");return t=B2e(t),t=YG(t),t}function V2e(e){try{return H2e(e)}catch{return Ff}}function A$(e){var t=V2e(e.slice(5,-1));return t===Ff?"":t}var W2e=["x","y","lineHeight","capHeight","fill","scaleToFit","textAnchor","verticalAnchor"],U2e=["dx","dy","angle","className","breakAll"];function hP(){return hP=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},hP.apply(null,arguments)}function h5(e,t){if(e==null)return{};var n,r,o=K2e(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function K2e(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}var ZG=/[ \f\n\r\t\v\u2028\u2029]+/,JG=e=>{var{children:t,breakAll:n,style:r}=e;try{var o=[];eo(t)||(n?o=t.toString().split(""):o=t.toString().split(ZG));var i=o.map(s=>({word:s,width:zp(s,r).width})),a=n?0:zp(" ",r).width;return{wordsWithComputedWidth:i,spaceWidth:a}}catch{return null}};function q2e(e){return e==="start"||e==="middle"||e==="end"||e==="inherit"}var QG=(e,t,n,r)=>e.reduce((o,i)=>{var{word:a,width:s}=i,l=o[o.length-1];if(l&&s!=null&&(t==null||r||l.width+s+n<Number(t)))l.words.push(a),l.width+=s+n;else{var u={words:[a],width:s};o.push(u)}return o},[]),eX=e=>e.reduce((t,n)=>t.width>n.width?t:n),G2e="…",p5=(e,t,n,r,o,i,a,s)=>{var l=e.slice(0,t),u=JG({breakAll:n,style:r,children:l+G2e});if(!u)return[!1,[]];var d=QG(u.wordsWithComputedWidth,i,a,s),f=d.length>o||eX(d).width>Number(i);return[f,d]},X2e=(e,t,n,r,o)=>{var{maxLines:i,children:a,style:s,breakAll:l}=e,u=Jt(i),d=String(a),f=QG(t,r,n,o);if(!u||o)return f;var m=f.length>i||eX(f).width>Number(r);if(!m)return f;for(var h=0,p=d.length-1,b=0,v;h<=p&&b<=d.length-1;){var y=Math.floor((h+p)/2),x=y-1,[w,C]=p5(d,x,l,s,i,r,n,o),[S]=p5(d,y,l,s,i,r,n,o);if(!w&&!S&&(h=y+1),w&&S&&(p=y-1),!w&&S){v=C;break}b++}return v||f},g5=e=>{var t=eo(e)?[]:e.toString().split(ZG);return[{words:t,width:void 0}]},Y2e=e=>{var{width:t,scaleToFit:n,children:r,style:o,breakAll:i,maxLines:a}=e;if((t||n)&&!Iw.isSsr){var s,l,u=JG({breakAll:i,children:r,style:o});if(u){var{wordsWithComputedWidth:d,spaceWidth:f}=u;s=d,l=f}else return g5(r);return X2e({breakAll:i,children:r,maxLines:a,style:o},s,l,t,!!n)}return g5(r)},tX="#808080",Z2e={angle:0,breakAll:!1,capHeight:"0.71em",fill:tX,lineHeight:"1em",scaleToFit:!1,textAnchor:"start",verticalAnchor:"end",x:0,y:0},Xw=c.forwardRef((e,t)=>{var n=qo(e,Z2e),{x:r,y:o,lineHeight:i,capHeight:a,fill:s,scaleToFit:l,textAnchor:u,verticalAnchor:d}=n,f=h5(n,W2e),m=c.useMemo(()=>Y2e({breakAll:f.breakAll,children:f.children,maxLines:f.maxLines,scaleToFit:l,style:f.style,width:f.width}),[f.breakAll,f.children,f.maxLines,l,f.style,f.width]),{dx:h,dy:p,angle:b,className:v,breakAll:y}=f,x=h5(f,U2e);if(!ul(r)||!ul(o)||m.length===0)return null;var w=Number(r)+(Jt(h)?h:0),C=Number(o)+(Jt(p)?p:0);if(!Lr(w)||!Lr(C))return null;var S;switch(d){case"start":S=A$("calc(".concat(a,")"));break;case"middle":S=A$("calc(".concat((m.length-1)/2," * -").concat(i," + (").concat(a," / 2))"));break;default:S=A$("calc(".concat(m.length-1," * -").concat(i,")"));break}var $=[];if(l){var E=m[0].width,{width:O}=f;$.push("scale(".concat(Jt(O)&&Jt(E)?O/E:1,")"))}return b&&$.push("rotate(".concat(b,", ").concat(w,", ").concat(C,")")),$.length&&(x.transform=$.join(" ")),c.createElement("text",hP({},ia(x),{ref:t,x:w,y:C,className:Zn("recharts-text",v),textAnchor:u,fill:s.includes("url")?tX:s}),m.map((P,j)=>{var I=P.words.join(y?"":" ");return c.createElement("tspan",{x:w,dy:j===0?S:i,key:"".concat(I,"-").concat(j)},I)}))});Xw.displayName="Text";var J2e=["labelRef"],Q2e=["content"];function v5(e,t){if(e==null)return{};var n,r,o=eEe(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function eEe(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 y5(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 Zr(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?y5(Object(n),!0).forEach(function(r){tEe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):y5(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function tEe(e,t,n){return(t=nEe(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function nEe(e){var t=rEe(e,"string");return typeof t=="symbol"?t:t+""}function rEe(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function jl(){return jl=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},jl.apply(null,arguments)}var nX=c.createContext(null),oEe=e=>{var{x:t,y:n,upperWidth:r,lowerWidth:o,width:i,height:a,children:s}=e,l=c.useMemo(()=>({x:t,y:n,upperWidth:r,lowerWidth:o,width:i,height:a}),[t,n,r,o,i,a]);return c.createElement(nX.Provider,{value:l},s)},rX=()=>{var e=c.useContext(nX),t=$w();return e||vK(t)},oX=c.createContext(null),pit=e=>{var{cx:t,cy:n,innerRadius:r,outerRadius:o,startAngle:i,endAngle:a,clockWise:s,children:l}=e,u=c.useMemo(()=>({cx:t,cy:n,innerRadius:r,outerRadius:o,startAngle:i,endAngle:a,clockWise:s}),[t,n,r,o,i,a,s]);return c.createElement(oX.Provider,{value:u},l)},iX=()=>{var e=c.useContext(oX),t=Qt(Kq);return e||t},iEe=e=>{var{value:t,formatter:n}=e,r=eo(e.children)?t:e.children;return typeof n=="function"?n(r):r},_4=e=>e!=null&&typeof e=="function",aEe=(e,t)=>{var n=Ho(t-e),r=Math.min(Math.abs(t-e),360);return n*r},sEe=(e,t,n,r,o)=>{var{offset:i,className:a}=e,{cx:s,cy:l,innerRadius:u,outerRadius:d,startAngle:f,endAngle:m,clockWise:h}=o,p=(u+d)/2,b=aEe(f,m),v=b>=0?1:-1,y,x;switch(t){case"insideStart":y=f+v*i,x=h;break;case"insideEnd":y=m-v*i,x=!h;break;case"end":y=m+v*i,x=h;break;default:throw new Error("Unsupported position ".concat(t))}x=b<=0?x:!x;var w=uo(s,l,p,y),C=uo(s,l,p,y+(x?1:-1)*359),S="M".concat(w.x,",").concat(w.y,`
    A`).concat(p,",").concat(p,",0,1,").concat(x?0:1,`,
    `).concat(C.x,",").concat(C.y),$=eo(e.id)?wg("recharts-radial-line-"):e.id;return c.createElement("text",jl({},r,{dominantBaseline:"central",className:Zn("recharts-radial-bar-label",a)}),c.createElement("defs",null,c.createElement("path",{id:$,d:S})),c.createElement("textPath",{xlinkHref:"#".concat($)},n))},lEe=(e,t,n)=>{var{cx:r,cy:o,innerRadius:i,outerRadius:a,startAngle:s,endAngle:l}=e,u=(s+l)/2;if(n==="outside"){var{x:d,y:f}=uo(r,o,a+t,u);return{x:d,y:f,textAnchor:d>=r?"start":"end",verticalAnchor:"middle"}}if(n==="center")return{x:r,y:o,textAnchor:"middle",verticalAnchor:"middle"};if(n==="centerTop")return{x:r,y:o,textAnchor:"middle",verticalAnchor:"start"};if(n==="centerBottom")return{x:r,y:o,textAnchor:"middle",verticalAnchor:"end"};var m=(i+a)/2,{x:h,y:p}=uo(r,o,m,u);return{x:h,y:p,textAnchor:"middle",verticalAnchor:"middle"}},pP=e=>"cx"in e&&Jt(e.cx),cEe=(e,t)=>{var{parentViewBox:n,offset:r,position:o}=e,i;n!=null&&!pP(n)&&(i=n);var{x:a,y:s,upperWidth:l,lowerWidth:u,height:d}=t,f=a,m=a+(l-u)/2,h=(f+m)/2,p=(l+u)/2,b=f+l/2,v=d>=0?1:-1,y=v*r,x=v>0?"end":"start",w=v>0?"start":"end",C=l>=0?1:-1,S=C*r,$=C>0?"end":"start",E=C>0?"start":"end";if(o==="top"){var O={x:f+l/2,y:s-y,textAnchor:"middle",verticalAnchor:x};return Zr(Zr({},O),i?{height:Math.max(s-i.y,0),width:l}:{})}if(o==="bottom"){var P={x:m+u/2,y:s+d+y,textAnchor:"middle",verticalAnchor:w};return Zr(Zr({},P),i?{height:Math.max(i.y+i.height-(s+d),0),width:u}:{})}if(o==="left"){var j={x:h-S,y:s+d/2,textAnchor:$,verticalAnchor:"middle"};return Zr(Zr({},j),i?{width:Math.max(j.x-i.x,0),height:d}:{})}if(o==="right"){var I={x:h+p+S,y:s+d/2,textAnchor:E,verticalAnchor:"middle"};return Zr(Zr({},I),i?{width:Math.max(i.x+i.width-I.x,0),height:d}:{})}var _=i?{width:p,height:d}:{};return o==="insideLeft"?Zr({x:h+S,y:s+d/2,textAnchor:E,verticalAnchor:"middle"},_):o==="insideRight"?Zr({x:h+p-S,y:s+d/2,textAnchor:$,verticalAnchor:"middle"},_):o==="insideTop"?Zr({x:f+l/2,y:s+y,textAnchor:"middle",verticalAnchor:w},_):o==="insideBottom"?Zr({x:m+u/2,y:s+d-y,textAnchor:"middle",verticalAnchor:x},_):o==="insideTopLeft"?Zr({x:f+S,y:s+y,textAnchor:E,verticalAnchor:w},_):o==="insideTopRight"?Zr({x:f+l-S,y:s+y,textAnchor:$,verticalAnchor:w},_):o==="insideBottomLeft"?Zr({x:m+S,y:s+d-y,textAnchor:E,verticalAnchor:x},_):o==="insideBottomRight"?Zr({x:m+u-S,y:s+d-y,textAnchor:$,verticalAnchor:x},_):o&&typeof o=="object"&&(Jt(o.x)||Wl(o.x))&&(Jt(o.y)||Wl(o.y))?Zr({x:a+xi(o.x,p),y:s+xi(o.y,d),textAnchor:"end",verticalAnchor:"end"},_):Zr({x:b,y:s+d/2,textAnchor:"middle",verticalAnchor:"middle"},_)},uEe={angle:0,offset:5,zIndex:Co.label,position:"middle",textBreakAll:!1};function $c(e){var t=qo(e,uEe),{viewBox:n,position:r,value:o,children:i,content:a,className:s="",textBreakAll:l,labelRef:u}=t,d=iX(),f=rX(),m=r==="center"?f:d??f,h,p,b;if(n==null?h=m:pP(n)?h=n:h=vK(n),!h||eo(o)&&eo(i)&&!c.isValidElement(a)&&typeof a!="function")return null;var v=Zr(Zr({},t),{},{viewBox:h});if(c.isValidElement(a)){var{labelRef:y}=v,x=v5(v,J2e);return c.cloneElement(a,x)}if(typeof a=="function"){var{content:w}=v,C=v5(v,Q2e);if(p=c.createElement(a,C),c.isValidElement(p))return p}else p=iEe(t);var S=ia(t);if(pP(h)){if(r==="insideStart"||r==="insideEnd"||r==="end")return sEe(t,r,p,S,h);b=lEe(h,t.offset,t.position)}else b=cEe(t,h);return c.createElement(qs,{zIndex:t.zIndex},c.createElement(Xw,jl({ref:u,className:Zn("recharts-label",s)},S,b,{textAnchor:q2e(S.textAnchor)?S.textAnchor:b.textAnchor,breakAll:l}),p))}$c.displayName="Label";var aX=(e,t,n)=>{if(!e)return null;var r={viewBox:t,labelRef:n};return e===!0?c.createElement($c,jl({key:"label-implicit"},r)):ul(e)?c.createElement($c,jl({key:"label-implicit",value:e},r)):c.isValidElement(e)?e.type===$c?c.cloneElement(e,Zr({key:"label-implicit"},r)):c.createElement($c,jl({key:"label-implicit",content:e},r)):_4(e)?c.createElement($c,jl({key:"label-implicit",content:e},r)):e&&typeof e=="object"?c.createElement($c,jl({},e,{key:"label-implicit"},r)):null};function dEe(e){var{label:t,labelRef:n}=e,r=rX();return aX(t,r,n)||null}function git(e){var{label:t}=e,n=iX();return aX(t,n)||null}var sX={},lX={};(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return n[n.length-1]}e.last=t})(lX);var cX={};(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){return Array.isArray(n)?n:Array.from(n)}e.toArray=t})(cX);(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});const t=lX,n=cX,r=lw;function o(i){if(r.isArrayLike(i))return t.last(n.toArray(i))}e.last=o})(sX);var fEe=sX.last;const mEe=ho(fEe);var hEe=["valueAccessor"],pEe=["dataKey","clockWise","id","textBreakAll","zIndex"];function Fx(){return Fx=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Fx.apply(null,arguments)}function b5(e,t){if(e==null)return{};var n,r,o=gEe(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function gEe(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}var vEe=e=>Array.isArray(e.value)?mEe(e.value):e.value,uX=c.createContext(void 0),yEe=uX.Provider,dX=c.createContext(void 0),bEe=dX.Provider;function xEe(){return c.useContext(uX)}function wEe(){return c.useContext(dX)}function nb(e){var{valueAccessor:t=vEe}=e,n=b5(e,hEe),{dataKey:r,clockWise:o,id:i,textBreakAll:a,zIndex:s}=n,l=b5(n,pEe),u=xEe(),d=wEe(),f=u||d;return!f||!f.length?null:c.createElement(qs,{zIndex:s??Co.label},c.createElement(Bi,{className:"recharts-label-list"},f.map((m,h)=>{var p,b=eo(r)?t(m,h):hr(m&&m.payload,r),v=eo(i)?{}:{id:"".concat(i,"-").concat(h)};return c.createElement($c,Fx({key:"label-".concat(h)},ia(m),l,v,{fill:(p=n.fill)!==null&&p!==void 0?p:m.fill,parentViewBox:m.parentViewBox,value:b,textBreakAll:a,viewBox:m.viewBox,index:h,zIndex:0}))})))}nb.displayName="LabelList";function fX(e){var{label:t}=e;return t?t===!0?c.createElement(nb,{key:"labelList-implicit"}):c.isValidElement(t)||_4(t)?c.createElement(nb,{key:"labelList-implicit",content:t}):typeof t=="object"?c.createElement(nb,Fx({key:"labelList-implicit"},t,{type:String(t.type)})):null:null}var mX=e=>e.graphicalItems.polarItems,SEe=Fe([Ir,Mv],QR),Yw=Fe([mX,Fr,SEe],t4),CEe=Fe([Yw],n4),Zw=Fe([CEe,Lw],r4),$Ee=Fe([Zw,Fr,Yw],i4);Fe([Zw,Fr,Yw],(e,t,n)=>n.length>0?e.flatMap(r=>n.flatMap(o=>{var i,a=hr(r,(i=t.dataKey)!==null&&i!==void 0?i:o.dataKey);return{value:a,errorDomain:[]}})).filter(Boolean):(t==null?void 0:t.dataKey)!=null?e.map(r=>({value:hr(r,t.dataKey),errorDomain:[]})):e.map(r=>({value:r,errorDomain:[]})));var x5=()=>{},EEe=Fe([Zw,Fr,Yw,Uw,Ir],c4),OEe=Fe([Fr,s4,l4,x5,EEe,x5,Kn,Ir],u4),hX=Fe([Fr,Kn,Zw,$Ee,Tv,Ir,OEe],d4),PEe=Fe([hX,Fr,dh],h4),vit=Fe([Fr,hX,PEe,Ir],g4),jEe={radiusAxis:{},angleAxis:{}},pX=sa({name:"polarAxis",initialState:jEe,reducers:{addRadiusAxis(e,t){e.radiusAxis[t.payload.id]=t.payload},removeRadiusAxis(e,t){delete e.radiusAxis[t.payload.id]},addAngleAxis(e,t){e.angleAxis[t.payload.id]=t.payload},removeAngleAxis(e,t){delete e.angleAxis[t.payload.id]}}}),{addRadiusAxis:yit,removeRadiusAxis:bit,addAngleAxis:xit,removeAngleAxis:wit}=pX.actions,IEe=pX.reducer;function w5(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 S5(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?w5(Object(n),!0).forEach(function(r){_Ee(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):w5(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function _Ee(e,t,n){return(t=NEe(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function NEe(e){var t=REe(e,"string");return typeof t=="symbol"?t:t+""}function REe(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var TEe=(e,t)=>t,N4=Fe([mX,TEe],(e,t)=>e.filter(n=>n.type==="pie").find(n=>n.id===t)),MEe=[],R4=(e,t,n)=>(n==null?void 0:n.length)===0?MEe:n,gX=Fe([Lw,N4,R4],(e,t,n)=>{var{chartData:r}=e;if(t!=null){var o;if((t==null?void 0:t.data)!=null&&t.data.length>0?o=t.data:o=r,(!o||!o.length)&&n!=null&&(o=n.map(i=>S5(S5({},t.presentationProps),i.props))),o!=null)return o}}),kEe=Fe([gX,N4,R4],(e,t,n)=>{if(!(e==null||t==null))return e.map((r,o)=>{var i,a=hr(r,t.nameKey,t.name),s;return n!=null&&(i=n[o])!==null&&i!==void 0&&(i=i.props)!==null&&i!==void 0&&i.fill?s=n[o].props.fill:typeof r=="object"&&r!=null&&"fill"in r?s=r.fill:s=t.fill,{value:bw(a,t.dataKey),color:s,payload:r,type:t.legendType}})}),AEe=Fe([gX,N4,R4,jo],(e,t,n,r)=>{if(!(t==null||e==null))return DOe({offset:r,pieSettings:t,displayedData:e,cells:n})}),vX={exports:{}},tr={};/**
 * @license React
 * react-is.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var T4=Symbol.for("react.element"),M4=Symbol.for("react.portal"),Jw=Symbol.for("react.fragment"),Qw=Symbol.for("react.strict_mode"),eS=Symbol.for("react.profiler"),tS=Symbol.for("react.provider"),nS=Symbol.for("react.context"),DEe=Symbol.for("react.server_context"),rS=Symbol.for("react.forward_ref"),oS=Symbol.for("react.suspense"),iS=Symbol.for("react.suspense_list"),aS=Symbol.for("react.memo"),sS=Symbol.for("react.lazy"),LEe=Symbol.for("react.offscreen"),yX;yX=Symbol.for("react.module.reference");function ps(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case T4:switch(e=e.type,e){case Jw:case eS:case Qw:case oS:case iS:return e;default:switch(e=e&&e.$$typeof,e){case DEe:case nS:case rS:case sS:case aS:case tS:return e;default:return t}}case M4:return t}}}tr.ContextConsumer=nS;tr.ContextProvider=tS;tr.Element=T4;tr.ForwardRef=rS;tr.Fragment=Jw;tr.Lazy=sS;tr.Memo=aS;tr.Portal=M4;tr.Profiler=eS;tr.StrictMode=Qw;tr.Suspense=oS;tr.SuspenseList=iS;tr.isAsyncMode=function(){return!1};tr.isConcurrentMode=function(){return!1};tr.isContextConsumer=function(e){return ps(e)===nS};tr.isContextProvider=function(e){return ps(e)===tS};tr.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===T4};tr.isForwardRef=function(e){return ps(e)===rS};tr.isFragment=function(e){return ps(e)===Jw};tr.isLazy=function(e){return ps(e)===sS};tr.isMemo=function(e){return ps(e)===aS};tr.isPortal=function(e){return ps(e)===M4};tr.isProfiler=function(e){return ps(e)===eS};tr.isStrictMode=function(e){return ps(e)===Qw};tr.isSuspense=function(e){return ps(e)===oS};tr.isSuspenseList=function(e){return ps(e)===iS};tr.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Jw||e===eS||e===Qw||e===oS||e===iS||e===LEe||typeof e=="object"&&e!==null&&(e.$$typeof===sS||e.$$typeof===aS||e.$$typeof===tS||e.$$typeof===nS||e.$$typeof===rS||e.$$typeof===yX||e.getModuleId!==void 0)};tr.typeOf=ps;vX.exports=tr;var rb=vX.exports,C5=e=>typeof e=="string"?e:e?e.displayName||e.name||"Component":"",$5=null,D$=null,bX=e=>{if(e===$5&&Array.isArray(D$))return D$;var t=[];return c.Children.forEach(e,n=>{eo(n)||(rb.isFragment(n)?t=t.concat(bX(n.props.children)):t.push(n))}),D$=t,$5=e,t};function k4(e,t){var n=[],r=[];return Array.isArray(t)?r=t.map(o=>C5(o)):r=[C5(t)],bX(e).forEach(o=>{var i=bd(o,"type.displayName")||bd(o,"type.name");i&&r.indexOf(i)!==-1&&n.push(o)}),n}var Sit=e=>e&&typeof e=="object"&&"clipDot"in e?!!e.clipDot:!0,xX={};(function(e){Object.defineProperty(e,Symbol.toStringTag,{value:"Module"});function t(n){var o;if(typeof n!="object"||n==null)return!1;if(Object.getPrototypeOf(n)===null)return!0;if(Object.prototype.toString.call(n)!=="[object Object]"){const i=n[Symbol.toStringTag];return i==null||!((o=Object.getOwnPropertyDescriptor(n,Symbol.toStringTag))!=null&&o.writable)?!1:n.toString()===`[object ${i}]`}let r=n;for(;Object.getPrototypeOf(r)!==null;)r=Object.getPrototypeOf(r);return Object.getPrototypeOf(n)===r}e.isPlainObject=t})(xX);var zEe=xX.isPlainObject;const FEe=ho(zEe);var E5,O5,P5,j5,I5;function _5(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 N5(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?_5(Object(n),!0).forEach(function(r){BEe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_5(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function BEe(e,t,n){return(t=HEe(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function HEe(e){var t=VEe(e,"string");return typeof t=="symbol"?t:t+""}function VEe(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Bx(){return Bx=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Bx.apply(null,arguments)}function np(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}var R5=(e,t,n,r,o)=>{var i=n-r,a;return a=Vr(E5||(E5=np(["M ",",",""])),e,t),a+=Vr(O5||(O5=np(["L ",",",""])),e+n,t),a+=Vr(P5||(P5=np(["L ",",",""])),e+n-i/2,t+o),a+=Vr(j5||(j5=np(["L ",",",""])),e+n-i/2-r,t+o),a+=Vr(I5||(I5=np(["L ",","," Z"])),e,t),a},WEe={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},UEe=e=>{var t=qo(e,WEe),{x:n,y:r,upperWidth:o,lowerWidth:i,height:a,className:s}=t,{animationEasing:l,animationDuration:u,animationBegin:d,isUpdateAnimationActive:f}=t,m=c.useRef(null),[h,p]=c.useState(-1),b=c.useRef(o),v=c.useRef(i),y=c.useRef(a),x=c.useRef(n),w=c.useRef(r),C=Nw(e,"trapezoid-");if(c.useEffect(()=>{if(m.current&&m.current.getTotalLength)try{var N=m.current.getTotalLength();N&&p(N)}catch{}},[]),n!==+n||r!==+r||o!==+o||i!==+i||a!==+a||o===0&&i===0||a===0)return null;var S=Zn("recharts-trapezoid",s);if(!f)return c.createElement("g",null,c.createElement("path",Bx({},ia(t),{className:S,d:R5(n,r,o,i,a)})));var $=b.current,E=v.current,O=y.current,P=x.current,j=w.current,I="0px ".concat(h===-1?1:h,"px"),_="".concat(h,"px 0px"),R=_K(["strokeDasharray"],u,l);return c.createElement(_w,{animationId:C,key:C,canBegin:h>0,duration:u,easing:l,isActive:f,begin:d},N=>{var A=xo($,o,N),M=xo(E,i,N),T=xo(O,a,N),k=xo(P,n,N),D=xo(j,r,N);m.current&&(b.current=A,v.current=M,y.current=T,x.current=k,w.current=D);var L=N>0?{transition:R,strokeDasharray:_}:{strokeDasharray:I};return c.createElement("path",Bx({},ia(t),{className:S,d:R5(k,D,A,M,T),ref:m,style:N5(N5({},L),t.style)}))})},KEe=["option","shapeType","activeClassName"];function qEe(e,t){if(e==null)return{};var n,r,o=GEe(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function GEe(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 T5(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 Hx(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?T5(Object(n),!0).forEach(function(r){XEe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):T5(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function XEe(e,t,n){return(t=YEe(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function YEe(e){var t=ZEe(e,"string");return typeof t=="symbol"?t:t+""}function ZEe(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function JEe(e,t){return Hx(Hx({},t),e)}function QEe(e,t){return e==="symbols"}function M5(e){var{shapeType:t,elementProps:n}=e;switch(t){case"rectangle":return c.createElement(MK,n);case"trapezoid":return c.createElement(UEe,n);case"sector":return c.createElement(LK,n);case"symbols":if(QEe(t))return c.createElement(KN,n);break;case"curve":return c.createElement(bR,n);default:return null}}function eOe(e){return c.isValidElement(e)?e.props:e}function wX(e){var{option:t,shapeType:n,activeClassName:r="recharts-active-shape"}=e,o=qEe(e,KEe),i;if(c.isValidElement(t))i=c.cloneElement(t,Hx(Hx({},o),eOe(t)));else if(typeof t=="function")i=t(o,o.index);else if(FEe(t)&&typeof t!="boolean"){var a=JEe(t,o);i=c.createElement(M5,{shapeType:n,elementProps:a})}else{var s=o;i=c.createElement(M5,{shapeType:n,elementProps:s})}return o.isActive?c.createElement(Bi,{className:r},i):i}var A4=(e,t,n)=>{var r=gr();return(o,i)=>a=>{e==null||e(o,i,a),r(CG({activeIndex:String(i),activeDataKey:t,activeCoordinate:o.tooltipPosition,activeGraphicalItemId:n}))}},D4=e=>{var t=gr();return(n,r)=>o=>{e==null||e(n,r,o),t(vCe())}},L4=(e,t,n)=>{var r=gr();return(o,i)=>a=>{e==null||e(o,i,a),r(yCe({activeIndex:String(i),activeDataKey:t,activeCoordinate:o.tooltipPosition,activeGraphicalItemId:n}))}};function SX(e){var{tooltipEntrySettings:t}=e,n=gr(),r=la(),o=c.useRef(null);return c.useLayoutEffect(()=>{r||(o.current===null?n(mCe(t)):o.current!==t&&n(hCe({prev:o.current,next:t})),o.current=t)},[t,n,r]),c.useLayoutEffect(()=>()=>{o.current&&(n(pCe(o.current)),o.current=null)},[n]),null}function tOe(e){var{legendPayload:t}=e,n=gr(),r=la(),o=c.useRef(null);return c.useLayoutEffect(()=>{r||(o.current===null?n(OK(t)):o.current!==t&&n(PK({prev:o.current,next:t})),o.current=t)},[n,r,t]),c.useLayoutEffect(()=>()=>{o.current&&(n(jK(o.current)),o.current=null)},[n]),null}function nOe(e){var{legendPayload:t}=e,n=gr(),r=Qt(Kn),o=c.useRef(null);return c.useLayoutEffect(()=>{r!=="centric"&&r!=="radial"||(o.current===null?n(OK(t)):o.current!==t&&n(PK({prev:o.current,next:t})),o.current=t)},[n,r,t]),c.useLayoutEffect(()=>()=>{o.current&&(n(jK(o.current)),o.current=null)},[n]),null}var L$,rOe=()=>{var[e]=c.useState(()=>wg("uid-"));return e},oOe=(L$=sv.useId)!==null&&L$!==void 0?L$:rOe;function iOe(e,t){var n=oOe();return t||(e?"".concat(e,"-").concat(n):n)}var aOe=c.createContext(void 0),CX=e=>{var{id:t,type:n,children:r}=e,o=iOe("recharts-".concat(n),t);return c.createElement(aOe.Provider,{value:o},r(o))},sOe={cartesianItems:[],polarItems:[]},$X=sa({name:"graphicalItems",initialState:sOe,reducers:{addCartesianGraphicalItem:{reducer(e,t){e.cartesianItems.push(t.payload)},prepare:wr()},replaceCartesianGraphicalItem:{reducer(e,t){var{prev:n,next:r}=t.payload,o=Rs(e).cartesianItems.indexOf(n);o>-1&&(e.cartesianItems[o]=r)},prepare:wr()},removeCartesianGraphicalItem:{reducer(e,t){var n=Rs(e).cartesianItems.indexOf(t.payload);n>-1&&e.cartesianItems.splice(n,1)},prepare:wr()},addPolarGraphicalItem:{reducer(e,t){e.polarItems.push(t.payload)},prepare:wr()},removePolarGraphicalItem:{reducer(e,t){var n=Rs(e).polarItems.indexOf(t.payload);n>-1&&e.polarItems.splice(n,1)},prepare:wr()}}}),{addCartesianGraphicalItem:lOe,replaceCartesianGraphicalItem:cOe,removeCartesianGraphicalItem:uOe,addPolarGraphicalItem:dOe,removePolarGraphicalItem:fOe}=$X.actions,mOe=$X.reducer,hOe=e=>{var t=gr(),n=c.useRef(null);return c.useLayoutEffect(()=>{n.current===null?t(lOe(e)):n.current!==e&&t(cOe({prev:n.current,next:e})),n.current=e},[t,e]),c.useLayoutEffect(()=>()=>{n.current&&(t(uOe(n.current)),n.current=null)},[t]),null},pOe=c.memo(hOe);function gOe(e){var t=gr();return c.useLayoutEffect(()=>(t(dOe(e)),()=>{t(fOe(e))}),[t,e]),null}var vOe=["key"],yOe=["onMouseEnter","onClick","onMouseLeave"],bOe=["id"],xOe=["id"];function k5(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 Kr(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?k5(Object(n),!0).forEach(function(r){wOe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):k5(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function wOe(e,t,n){return(t=SOe(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function SOe(e){var t=COe(e,"string");return typeof t=="symbol"?t:t+""}function COe(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Zc(){return Zc=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Zc.apply(null,arguments)}function lS(e,t){if(e==null)return{};var n,r,o=$Oe(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function $Oe(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 EOe(e){var t=c.useMemo(()=>k4(e.children,Wd),[e.children]),n=Qt(r=>kEe(r,e.id,t));return n==null?null:c.createElement(nOe,{legendPayload:n})}var OOe=c.memo(e=>{var{dataKey:t,nameKey:n,sectors:r,stroke:o,strokeWidth:i,fill:a,name:s,hide:l,tooltipType:u,id:d}=e,f={dataDefinedOnItem:r.map(m=>m.tooltipPayload),positions:r.map(m=>m.tooltipPosition),settings:{stroke:o,strokeWidth:i,fill:a,dataKey:t,nameKey:n,name:bw(s,t),hide:l,type:u,color:a,unit:"",graphicalItemId:d}};return c.createElement(SX,{tooltipEntrySettings:f})}),POe=(e,t)=>e>t?"start":e<t?"end":"middle",jOe=(e,t,n)=>xi(typeof t=="function"?t(e):t,n,n*.8),IOe=(e,t,n)=>{var{top:r,left:o,width:i,height:a}=t,s=kK(i,a),l=o+xi(e.cx,i,i/2),u=r+xi(e.cy,a,a/2),d=xi(e.innerRadius,s,0),f=jOe(n,e.outerRadius,s),m=e.maxRadius||Math.sqrt(i*i+a*a)/2;return{cx:l,cy:u,innerRadius:d,outerRadius:f,maxRadius:m}},_Oe=(e,t)=>{var n=Ho(t-e),r=Math.min(Math.abs(t-e),360);return n*r};function NOe(e){return e&&typeof e=="object"&&"className"in e&&typeof e.className=="string"?e.className:""}var ROe=(e,t)=>{if(c.isValidElement(e))return c.cloneElement(e,t);if(typeof e=="function")return e(t);var n=Zn("recharts-pie-label-line",typeof e!="boolean"?e.className:""),{key:r}=t,o=lS(t,vOe);return c.createElement(bR,Zc({},o,{type:"linear",className:n}))},TOe=(e,t,n)=>{if(c.isValidElement(e))return c.cloneElement(e,t);var r=n;if(typeof e=="function"&&(r=e(t),c.isValidElement(r)))return r;var o=Zn("recharts-pie-label-text",NOe(e));return c.createElement(Xw,Zc({},t,{alignmentBaseline:"middle",className:o}),r)};function MOe(e){var{sectors:t,props:n,showLabels:r}=e,{label:o,labelLine:i,dataKey:a}=n;if(!r||!o||!t)return null;var s=Ds(n),l=xg(o),u=xg(i),d=typeof o=="object"&&"offsetRadius"in o&&typeof o.offsetRadius=="number"&&o.offsetRadius||20,f=t.map((m,h)=>{var p=(m.startAngle+m.endAngle)/2,b=uo(m.cx,m.cy,m.outerRadius+d,p),v=Kr(Kr(Kr(Kr({},s),m),{},{stroke:"none"},l),{},{index:h,textAnchor:POe(b.x,m.cx)},b),y=Kr(Kr(Kr(Kr({},s),m),{},{fill:"none",stroke:m.fill},u),{},{index:h,points:[uo(m.cx,m.cy,m.outerRadius,p),b],key:"line"});return c.createElement(qs,{zIndex:Co.label,key:"label-".concat(m.startAngle,"-").concat(m.endAngle,"-").concat(m.midAngle,"-").concat(h)},c.createElement(Bi,null,i&&ROe(i,y),TOe(o,v,hr(m,a))))});return c.createElement(Bi,{className:"recharts-pie-labels"},f)}function kOe(e){var{sectors:t,props:n,showLabels:r}=e,{label:o}=n;return typeof o=="object"&&o!=null&&"position"in o?c.createElement(fX,{label:o}):c.createElement(MOe,{sectors:t,props:n,showLabels:r})}function AOe(e){var{sectors:t,activeShape:n,inactiveShape:r,allOtherPieProps:o,shape:i,id:a}=e,s=Qt(Ed),l=Qt(E4),u=Qt(r$e),{onMouseEnter:d,onClick:f,onMouseLeave:m}=o,h=lS(o,yOe),p=A4(d,o.dataKey,a),b=D4(m),v=L4(f,o.dataKey,a);return t==null||t.length===0?null:c.createElement(c.Fragment,null,t.map((y,x)=>{if((y==null?void 0:y.startAngle)===0&&(y==null?void 0:y.endAngle)===0&&t.length!==1)return null;var w=u==null||u===a,C=String(x)===s&&(l==null||o.dataKey===l)&&w,S=s?r:null,$=n&&C?n:S,E=Kr(Kr({},y),{},{stroke:y.stroke,tabIndex:-1,[cK]:x,[uK]:a});return c.createElement(Bi,Zc({key:"sector-".concat(y==null?void 0:y.startAngle,"-").concat(y==null?void 0:y.endAngle,"-").concat(y.midAngle,"-").concat(x),tabIndex:-1,className:"recharts-pie-sector"},wv(h,y,x),{onMouseEnter:p(y,x),onMouseLeave:b(y,x),onClick:v(y,x)}),c.createElement(wX,Zc({option:i??$,index:x,shapeType:"sector",isActive:C},E)))}))}function DOe(e){var t,{pieSettings:n,displayedData:r,cells:o,offset:i}=e,{cornerRadius:a,startAngle:s,endAngle:l,dataKey:u,nameKey:d,tooltipType:f}=n,m=Math.abs(n.minAngle),h=_Oe(s,l),p=Math.abs(h),b=r.length<=1?0:(t=n.paddingAngle)!==null&&t!==void 0?t:0,v=r.filter($=>hr($,u,0)!==0).length,y=(p>=360?v:v-1)*b,x=p-v*m-y,w=r.reduce(($,E)=>{var O=hr(E,u,0);return $+(Jt(O)?O:0)},0),C;if(w>0){var S;C=r.map(($,E)=>{var O=hr($,u,0),P=hr($,d,E),j=IOe(n,i,$),I=(Jt(O)?O:0)/w,_,R=Kr(Kr({},$),o&&o[E]&&o[E].props);E?_=S.endAngle+Ho(h)*b*(O!==0?1:0):_=s;var N=_+Ho(h)*((O!==0?m:0)+I*x),A=(_+N)/2,M=(j.innerRadius+j.outerRadius)/2,T=[{name:P,value:O,payload:R,dataKey:u,type:f,graphicalItemId:n.id}],k=uo(j.cx,j.cy,M,A);return S=Kr(Kr(Kr(Kr({},n.presentationProps),{},{percent:I,cornerRadius:typeof a=="string"?parseFloat(a):a,name:P,tooltipPayload:T,midAngle:A,middleRadius:M,tooltipPosition:k},R),j),{},{value:O,dataKey:u,startAngle:_,endAngle:N,payload:R,paddingAngle:Ho(h)*b}),S})}return C}function LOe(e){var{showLabels:t,sectors:n,children:r}=e,o=c.useMemo(()=>!t||!n?[]:n.map(i=>({value:i.value,payload:i.payload,clockWise:!1,parentViewBox:void 0,viewBox:{cx:i.cx,cy:i.cy,innerRadius:i.innerRadius,outerRadius:i.outerRadius,startAngle:i.startAngle,endAngle:i.endAngle,clockWise:!1},fill:i.fill})),[n,t]);return c.createElement(bEe,{value:t?o:void 0},r)}function zOe(e){var{props:t,previousSectorsRef:n,id:r}=e,{sectors:o,isAnimationActive:i,animationBegin:a,animationDuration:s,animationEasing:l,activeShape:u,inactiveShape:d,onAnimationStart:f,onAnimationEnd:m}=t,h=Nw(t,"recharts-pie-"),p=n.current,[b,v]=c.useState(!1),y=c.useCallback(()=>{typeof m=="function"&&m(),v(!1)},[m]),x=c.useCallback(()=>{typeof f=="function"&&f(),v(!0)},[f]);return c.createElement(LOe,{showLabels:!b,sectors:o},c.createElement(_w,{animationId:h,begin:a,duration:s,isActive:i,easing:l,onAnimationStart:x,onAnimationEnd:y,key:h},w=>{var C=[],S=o&&o[0],$=S==null?void 0:S.startAngle;return o==null||o.forEach((E,O)=>{var P=p&&p[O],j=O>0?bd(E,"paddingAngle",0):0;if(P){var I=xo(P.endAngle-P.startAngle,E.endAngle-E.startAngle,w),_=Kr(Kr({},E),{},{startAngle:$+j,endAngle:$+I+j});C.push(_),$=_.endAngle}else{var{endAngle:R,startAngle:N}=E,A=xo(0,R-N,w),M=Kr(Kr({},E),{},{startAngle:$+j,endAngle:$+A+j});C.push(M),$=M.endAngle}}),n.current=C,c.createElement(Bi,null,c.createElement(AOe,{sectors:C,activeShape:u,inactiveShape:d,allOtherPieProps:t,shape:t.shape,id:r}))}),c.createElement(kOe,{showLabels:!b,sectors:o,props:t}),t.children)}var FOe={animationBegin:400,animationDuration:1500,animationEasing:"ease",cx:"50%",cy:"50%",dataKey:"value",endAngle:360,fill:"#808080",hide:!1,innerRadius:0,isAnimationActive:"auto",label:!1,labelLine:!0,legendType:"rect",minAngle:0,nameKey:"name",outerRadius:"80%",paddingAngle:0,rootTabIndex:0,startAngle:0,stroke:"#fff",zIndex:Co.area};function BOe(e){var{id:t}=e,n=lS(e,bOe),{hide:r,className:o,rootTabIndex:i}=e,a=c.useMemo(()=>k4(e.children,Wd),[e.children]),s=Qt(d=>AEe(d,t,a)),l=c.useRef(null),u=Zn("recharts-pie",o);return r||s==null?(l.current=null,c.createElement(Bi,{tabIndex:i,className:u})):c.createElement(qs,{zIndex:e.zIndex},c.createElement(OOe,{dataKey:e.dataKey,nameKey:e.nameKey,sectors:s,stroke:e.stroke,strokeWidth:e.strokeWidth,fill:e.fill,name:e.name,hide:e.hide,tooltipType:e.tooltipType,id:t}),c.createElement(Bi,{tabIndex:i,className:u},c.createElement(zOe,{props:Kr(Kr({},n),{},{sectors:s}),previousSectorsRef:l,id:t})))}function cS(e){var t=qo(e,FOe),{id:n}=t,r=lS(t,xOe),o=Ds(r);return c.createElement(CX,{id:n,type:"pie"},i=>c.createElement(c.Fragment,null,c.createElement(gOe,{type:"pie",id:i,data:r.data,dataKey:r.dataKey,hide:r.hide,angleAxisId:0,radiusAxisId:0,name:r.name,nameKey:r.nameKey,tooltipType:r.tooltipType,legendType:r.legendType,fill:r.fill,cx:r.cx,cy:r.cy,startAngle:r.startAngle,endAngle:r.endAngle,paddingAngle:r.paddingAngle,minAngle:r.minAngle,innerRadius:r.innerRadius,outerRadius:r.outerRadius,cornerRadius:r.cornerRadius,presentationProps:o,maxRadius:t.maxRadius}),c.createElement(EOe,Zc({},r,{id:i})),c.createElement(BOe,Zc({},r,{id:i}))))}cS.displayName="Pie";function A5(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 D5(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?A5(Object(n),!0).forEach(function(r){HOe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):A5(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function HOe(e,t,n){return(t=VOe(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function VOe(e){var t=WOe(e,"string");return typeof t=="symbol"?t:t+""}function WOe(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var EX=0,UOe={xAxis:{},yAxis:{},zAxis:{}},OX=sa({name:"cartesianAxis",initialState:UOe,reducers:{addXAxis:{reducer(e,t){e.xAxis[t.payload.id]=t.payload},prepare:wr()},replaceXAxis:{reducer(e,t){var{prev:n,next:r}=t.payload;e.xAxis[n.id]!==void 0&&(n.id!==r.id&&delete e.xAxis[n.id],e.xAxis[r.id]=r)},prepare:wr()},removeXAxis:{reducer(e,t){delete e.xAxis[t.payload.id]},prepare:wr()},addYAxis:{reducer(e,t){e.yAxis[t.payload.id]=t.payload},prepare:wr()},replaceYAxis:{reducer(e,t){var{prev:n,next:r}=t.payload;e.yAxis[n.id]!==void 0&&(n.id!==r.id&&delete e.yAxis[n.id],e.yAxis[r.id]=r)},prepare:wr()},removeYAxis:{reducer(e,t){delete e.yAxis[t.payload.id]},prepare:wr()},addZAxis:{reducer(e,t){e.zAxis[t.payload.id]=t.payload},prepare:wr()},replaceZAxis:{reducer(e,t){var{prev:n,next:r}=t.payload;e.zAxis[n.id]!==void 0&&(n.id!==r.id&&delete e.zAxis[n.id],e.zAxis[r.id]=r)},prepare:wr()},removeZAxis:{reducer(e,t){delete e.zAxis[t.payload.id]},prepare:wr()},updateYAxisWidth(e,t){var{id:n,width:r}=t.payload,o=e.yAxis[n];if(o){var i=o.widthHistory||[];if(i.length===3&&i[0]===i[2]&&r===i[1]&&r!==o.width&&Math.abs(r-i[0])<=1)return;var a=[...i,r].slice(-3);e.yAxis[n]=D5(D5({},e.yAxis[n]),{},{width:r,widthHistory:a})}}}}),{addXAxis:KOe,replaceXAxis:qOe,removeXAxis:GOe,addYAxis:XOe,replaceYAxis:YOe,removeYAxis:ZOe,addZAxis:Cit,replaceZAxis:$it,removeZAxis:Eit,updateYAxisWidth:JOe}=OX.actions,QOe=OX.reducer,ePe=Fe([jo],e=>({top:e.top,bottom:e.bottom,left:e.left,right:e.right})),tPe=Fe([ePe,rc,oc],(e,t,n)=>{if(!(!e||t==null||n==null))return{x:e.left,y:e.top,width:Math.max(0,t-e.left-e.right),height:Math.max(0,n-e.top-e.bottom)}}),PX=()=>Qt(tPe),Oit=()=>Qt(l$e),L5=(e,t,n)=>{var r=n??e;if(!eo(r))return xi(r,t,0)},nPe=(e,t,n)=>{var r={},o=e.filter(Bw),i=e.filter(u=>u.stackId==null),a=o.reduce((u,d)=>(u[d.stackId]||(u[d.stackId]=[]),u[d.stackId].push(d),u),r),s=Object.entries(a).map(u=>{var[d,f]=u,m=f.map(p=>p.dataKey),h=L5(t,n,f[0].barSize);return{stackId:d,dataKeys:m,barSize:h}}),l=i.map(u=>{var d=[u.dataKey].filter(m=>m!=null),f=L5(t,n,u.barSize);return{stackId:void 0,dataKeys:d,barSize:f}});return[...s,...l]};function z5(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 ty(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?z5(Object(n),!0).forEach(function(r){rPe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):z5(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function rPe(e,t,n){return(t=oPe(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function oPe(e){var t=iPe(e,"string");return typeof t=="symbol"?t:t+""}function iPe(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function aPe(e,t,n,r,o){var i=r.length;if(!(i<1)){var a=xi(e,n,0,!0),s,l=[];if(Lr(r[0].barSize)){var u=!1,d=n/i,f=r.reduce((y,x)=>y+(x.barSize||0),0);f+=(i-1)*a,f>=n&&(f-=(i-1)*a,a=0),f>=n&&d>0&&(u=!0,d*=.9,f=i*d);var m=(n-f)/2>>0,h={offset:m-a,size:0};s=r.reduce((y,x)=>{var w,C={stackId:x.stackId,dataKeys:x.dataKeys,position:{offset:h.offset+h.size+a,size:u?d:(w=x.barSize)!==null&&w!==void 0?w:0}},S=[...y,C];return h=S[S.length-1].position,S},l)}else{var p=xi(t,n,0,!0);n-2*p-(i-1)*a<=0&&(a=0);var b=(n-2*p-(i-1)*a)/i;b>1&&(b>>=0);var v=Lr(o)?Math.min(b,o):b;s=r.reduce((y,x,w)=>[...y,{stackId:x.stackId,dataKeys:x.dataKeys,position:{offset:p+(b+a)*w+(b-v)/2,size:v}}],l)}return s}}var sPe=(e,t,n,r,o,i,a)=>{var s=eo(a)?t:a,l=aPe(n,r,o!==i?o:i,e,s);return o!==i&&l!=null&&(l=l.map(u=>ty(ty({},u),{},{position:ty(ty({},u.position),{},{offset:u.position.offset-o/2})}))),l},lPe=(e,t)=>{var n=ZR(t);if(!(!e||n==null||t==null)){var{stackId:r}=t;if(r!=null){var o=e[r];if(o){var{stackedData:i}=o;if(i)return i.find(a=>a.key===n)}}}};function cPe(e,t){return e&&typeof e=="object"&&"zIndex"in e&&typeof e.zIndex=="number"&&Lr(e.zIndex)?e.zIndex:t}var jX=e=>{var{chartData:t}=e,n=gr(),r=la();return c.useEffect(()=>r?()=>{}:(n(n5(t)),()=>{n(n5(void 0))}),[t,n,r]),null},F5={x:0,y:0,width:0,height:0,padding:{top:0,right:0,bottom:0,left:0}},IX=sa({name:"brush",initialState:F5,reducers:{setBrushSettings(e,t){return t.payload==null?F5:t.payload}}}),{setBrushSettings:Pit}=IX.actions,uPe=IX.reducer;function dPe(e,t,n){return(t=fPe(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function fPe(e){var t=mPe(e,"string");return typeof t=="symbol"?t:t+""}function mPe(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}class z4{static create(t){return new z4(t)}constructor(t){this.scale=t}get domain(){return this.scale.domain}get range(){return this.scale.range}get rangeMin(){return this.range()[0]}get rangeMax(){return this.range()[1]}get bandwidth(){return this.scale.bandwidth}apply(t){var{bandAware:n,position:r}=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(t!==void 0){if(r)switch(r){case"start":return this.scale(t);case"middle":{var o=this.bandwidth?this.bandwidth()/2:0;return this.scale(t)+o}case"end":{var i=this.bandwidth?this.bandwidth():0;return this.scale(t)+i}default:return this.scale(t)}if(n){var a=this.bandwidth?this.bandwidth()/2:0;return this.scale(t)+a}return this.scale(t)}}isInRange(t){var n=this.range(),r=n[0],o=n[n.length-1];return r<=o?t>=r&&t<=o:t>=o&&t<=r}}dPe(z4,"EPS",1e-4);function hPe(e){return(e%180+180)%180}var pPe=function(t){var{width:n,height:r}=t,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,i=hPe(o),a=i*Math.PI/180,s=Math.atan(r/n),l=a>s&&a<Math.PI-s?r/Math.sin(a):n/Math.cos(a);return Math.abs(l)},gPe={dots:[],areas:[],lines:[]},_X=sa({name:"referenceElements",initialState:gPe,reducers:{addDot:(e,t)=>{e.dots.push(t.payload)},removeDot:(e,t)=>{var n=Rs(e).dots.findIndex(r=>r===t.payload);n!==-1&&e.dots.splice(n,1)},addArea:(e,t)=>{e.areas.push(t.payload)},removeArea:(e,t)=>{var n=Rs(e).areas.findIndex(r=>r===t.payload);n!==-1&&e.areas.splice(n,1)},addLine:(e,t)=>{e.lines.push(t.payload)},removeLine:(e,t)=>{var n=Rs(e).lines.findIndex(r=>r===t.payload);n!==-1&&e.lines.splice(n,1)}}}),{addDot:jit,removeDot:Iit,addArea:_it,removeArea:Nit,addLine:Rit,removeLine:Tit}=_X.actions,vPe=_X.reducer,yPe=c.createContext(void 0),bPe=e=>{var{children:t}=e,[n]=c.useState("".concat(wg("recharts"),"-clip")),r=PX();if(r==null)return null;var{x:o,y:i,width:a,height:s}=r;return c.createElement(yPe.Provider,{value:n},c.createElement("defs",null,c.createElement("clipPath",{id:n},c.createElement("rect",{x:o,y:i,height:s,width:a}))),t)};function NX(e,t){if(t<1)return[];if(t===1)return e;for(var n=[],r=0;r<e.length;r+=t){var o=e[r];o!==void 0&&n.push(o)}return n}function xPe(e,t,n){var r={width:e.width+t.width,height:e.height+t.height};return pPe(r,n)}function wPe(e,t,n){var r=n==="width",{x:o,y:i,width:a,height:s}=e;return t===1?{start:r?o:i,end:r?o+a:i+s}:{start:r?o+a:i+s,end:r?o:i}}function kg(e,t,n,r,o){if(e*t<e*r||e*t>e*o)return!1;var i=n();return e*(t-e*i/2-r)>=0&&e*(t+e*i/2-o)<=0}function SPe(e,t){return NX(e,t+1)}function CPe(e,t,n,r,o){for(var i=(r||[]).slice(),{start:a,end:s}=t,l=0,u=1,d=a,f=function(){var p=r==null?void 0:r[l];if(p===void 0)return{v:NX(r,u)};var b=l,v,y=()=>(v===void 0&&(v=n(p,b)),v),x=p.coordinate,w=l===0||kg(e,x,y,d,s);w||(l=0,d=a,u+=1),w&&(d=x+e*(y()/2+o),l+=u)},m;u<=i.length;)if(m=f(),m)return m.v;return[]}function $Pe(e,t,n,r,o){var i=(r||[]).slice(),a=i.length;if(a===0)return[];for(var{start:s,end:l}=t,u=1;u<=a;u++){for(var d=(a-1)%u,f=s,m=!0,h=function(){var x=r[p],w=p,C,S=()=>(C===void 0&&(C=n(x,w)),C),$=x.coordinate,E=p===d||kg(e,$,S,f,l);if(!E)return m=!1,1;E&&(f=$+e*(S()/2+o))},p=d;p<a&&!h();p+=u);if(m){for(var b=[],v=d;v<a;v+=u)b.push(r[v]);return b}}return[]}function B5(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 fi(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?B5(Object(n),!0).forEach(function(r){EPe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):B5(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function EPe(e,t,n){return(t=OPe(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function OPe(e){var t=PPe(e,"string");return typeof t=="symbol"?t:t+""}function PPe(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function jPe(e,t,n,r,o){for(var i=(r||[]).slice(),a=i.length,{start:s}=t,{end:l}=t,u=function(m){var h=i[m],p,b=()=>(p===void 0&&(p=n(h,m)),p);if(m===a-1){var v=e*(h.coordinate+e*b()/2-l);i[m]=h=fi(fi({},h),{},{tickCoord:v>0?h.coordinate-v*e:h.coordinate})}else i[m]=h=fi(fi({},h),{},{tickCoord:h.coordinate});if(h.tickCoord!=null){var y=kg(e,h.tickCoord,b,s,l);y&&(l=h.tickCoord-e*(b()/2+o),i[m]=fi(fi({},h),{},{isShow:!0}))}},d=a-1;d>=0;d--)u(d);return i}function IPe(e,t,n,r,o,i){var a=(r||[]).slice(),s=a.length,{start:l,end:u}=t;if(i){var d=r[s-1],f=n(d,s-1),m=e*(d.coordinate+e*f/2-u);if(a[s-1]=d=fi(fi({},d),{},{tickCoord:m>0?d.coordinate-m*e:d.coordinate}),d.tickCoord!=null){var h=kg(e,d.tickCoord,()=>f,l,u);h&&(u=d.tickCoord-e*(f/2+o),a[s-1]=fi(fi({},d),{},{isShow:!0}))}}for(var p=i?s-1:s,b=function(x){var w=a[x],C,S=()=>(C===void 0&&(C=n(w,x)),C);if(x===0){var $=e*(w.coordinate-e*S()/2-l);a[x]=w=fi(fi({},w),{},{tickCoord:$<0?w.coordinate-$*e:w.coordinate})}else a[x]=w=fi(fi({},w),{},{tickCoord:w.coordinate});if(w.tickCoord!=null){var E=kg(e,w.tickCoord,S,l,u);E&&(l=w.tickCoord+e*(S()/2+o),a[x]=fi(fi({},w),{},{isShow:!0}))}},v=0;v<p;v++)b(v);return a}function F4(e,t,n){var{tick:r,ticks:o,viewBox:i,minTickGap:a,orientation:s,interval:l,tickFormatter:u,unit:d,angle:f}=e;if(!o||!o.length||!r)return[];if(Jt(l)||Iw.isSsr){var m;return(m=SPe(o,Jt(l)?l:0))!==null&&m!==void 0?m:[]}var h=[],p=s==="top"||s==="bottom"?"width":"height",b=d&&p==="width"?zp(d,{fontSize:t,letterSpacing:n}):{width:0,height:0},v=(w,C)=>{var S=typeof u=="function"?u(w.value,C):w.value;return p==="width"?xPe(zp(S,{fontSize:t,letterSpacing:n}),b,f):zp(S,{fontSize:t,letterSpacing:n})[p]},y=o.length>=2?Ho(o[1].coordinate-o[0].coordinate):1,x=wPe(i,y,p);return l==="equidistantPreserveStart"?CPe(y,x,v,o,a):l==="equidistantPreserveEnd"?$Pe(y,x,v,o,a):(l==="preserveStart"||l==="preserveStartEnd"?h=IPe(y,x,v,o,a,l==="preserveStartEnd"):h=jPe(y,x,v,o,a),h.filter(w=>w.isShow))}var _Pe=e=>{var{ticks:t,label:n,labelGapWithTick:r=5,tickSize:o=0,tickMargin:i=0}=e,a=0;if(t){Array.from(t).forEach(d=>{if(d){var f=d.getBoundingClientRect();f.width>a&&(a=f.width)}});var s=n?n.getBoundingClientRect().width:0,l=o+i,u=a+l+s+(n?r:0);return Math.round(u)}return 0},NPe=["axisLine","width","height","className","hide","ticks","axisType"];function RPe(e,t){if(e==null)return{};var n,r,o=TPe(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function TPe(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 Pd(){return Pd=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},Pd.apply(null,arguments)}function H5(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 so(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?H5(Object(n),!0).forEach(function(r){MPe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):H5(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function MPe(e,t,n){return(t=kPe(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function kPe(e){var t=APe(e,"string");return typeof t=="symbol"?t:t+""}function APe(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Al={x:0,y:0,width:0,height:0,viewBox:{x:0,y:0,width:0,height:0},orientation:"bottom",ticks:[],stroke:"#666",tickLine:!0,axisLine:!0,tick:!0,mirror:!1,minTickGap:5,tickSize:6,tickMargin:2,interval:"preserveEnd",zIndex:Co.axis};function DPe(e){var{x:t,y:n,width:r,height:o,orientation:i,mirror:a,axisLine:s,otherSvgProps:l}=e;if(!s)return null;var u=so(so(so({},l),Ds(s)),{},{fill:"none"});if(i==="top"||i==="bottom"){var d=+(i==="top"&&!a||i==="bottom"&&a);u=so(so({},u),{},{x1:t,y1:n+d*o,x2:t+r,y2:n+d*o})}else{var f=+(i==="left"&&!a||i==="right"&&a);u=so(so({},u),{},{x1:t+f*r,y1:n,x2:t+f*r,y2:n+o})}return c.createElement("line",Pd({},u,{className:Zn("recharts-cartesian-axis-line",bd(s,"className"))}))}function LPe(e,t,n,r,o,i,a,s,l){var u,d,f,m,h,p,b=s?-1:1,v=e.tickSize||a,y=Jt(e.tickCoord)?e.tickCoord:e.coordinate;switch(i){case"top":u=d=e.coordinate,m=n+ +!s*o,f=m-b*v,p=f-b*l,h=y;break;case"left":f=m=e.coordinate,d=t+ +!s*r,u=d-b*v,h=u-b*l,p=y;break;case"right":f=m=e.coordinate,d=t+ +s*r,u=d+b*v,h=u+b*l,p=y;break;default:u=d=e.coordinate,m=n+ +s*o,f=m+b*v,p=f+b*l,h=y;break}return{line:{x1:u,y1:f,x2:d,y2:m},tick:{x:h,y:p}}}function zPe(e,t){switch(e){case"left":return t?"start":"end";case"right":return t?"end":"start";default:return"middle"}}function FPe(e,t){switch(e){case"left":case"right":return"middle";case"top":return t?"start":"end";default:return t?"end":"start"}}function BPe(e){var{option:t,tickProps:n,value:r}=e,o,i=Zn(n.className,"recharts-cartesian-axis-tick-value");if(c.isValidElement(t))o=c.cloneElement(t,so(so({},n),{},{className:i}));else if(typeof t=="function")o=t(so(so({},n),{},{className:i}));else{var a="recharts-cartesian-axis-tick-value";typeof t!="boolean"&&(a=Zn(a,t==null?void 0:t.className)),o=c.createElement(Xw,Pd({},n,{className:a}),r)}return o}var HPe=c.forwardRef((e,t)=>{var{ticks:n=[],tick:r,tickLine:o,stroke:i,tickFormatter:a,unit:s,padding:l,tickTextProps:u,orientation:d,mirror:f,x:m,y:h,width:p,height:b,tickSize:v,tickMargin:y,fontSize:x,letterSpacing:w,getTicksConfig:C,events:S,axisType:$}=e,E=F4(so(so({},C),{},{ticks:n}),x,w),O=zPe(d,f),P=FPe(d,f),j=Ds(C),I=xg(r),_={};typeof o=="object"&&(_=o);var R=so(so({},j),{},{fill:"none"},_),N=E.map(T=>so({entry:T},LPe(T,m,h,p,b,d,v,f,y))),A=N.map(T=>{var{entry:k,line:D}=T;return c.createElement(Bi,{className:"recharts-cartesian-axis-tick",key:"tick-".concat(k.value,"-").concat(k.coordinate,"-").concat(k.tickCoord)},o&&c.createElement("line",Pd({},R,D,{className:Zn("recharts-cartesian-axis-tick-line",bd(o,"className"))})))}),M=N.map((T,k)=>{var{entry:D,tick:L}=T,B=so(so(so(so({textAnchor:O,verticalAnchor:P},j),{},{stroke:"none",fill:i},I),L),{},{index:k,payload:D,visibleTicksCount:E.length,tickFormatter:a,padding:l},u);return c.createElement(Bi,Pd({className:"recharts-cartesian-axis-tick-label",key:"tick-label-".concat(D.value,"-").concat(D.coordinate,"-").concat(D.tickCoord)},wv(S,D,k)),r&&c.createElement(BPe,{option:r,tickProps:B,value:"".concat(typeof a=="function"?a(D.value,k):D.value).concat(s||"")}))});return c.createElement("g",{className:"recharts-cartesian-axis-ticks recharts-".concat($,"-ticks")},M.length>0&&c.createElement(qs,{zIndex:Co.label},c.createElement("g",{className:"recharts-cartesian-axis-tick-labels recharts-".concat($,"-tick-labels"),ref:t},M)),A.length>0&&c.createElement("g",{className:"recharts-cartesian-axis-tick-lines recharts-".concat($,"-tick-lines")},A))}),VPe=c.forwardRef((e,t)=>{var{axisLine:n,width:r,height:o,className:i,hide:a,ticks:s,axisType:l}=e,u=RPe(e,NPe),[d,f]=c.useState(""),[m,h]=c.useState(""),p=c.useRef(null);c.useImperativeHandle(t,()=>({getCalculatedWidth:()=>{var v;return _Pe({ticks:p.current,label:(v=e.labelRef)===null||v===void 0?void 0:v.current,labelGapWithTick:5,tickSize:e.tickSize,tickMargin:e.tickMargin})}}));var b=c.useCallback(v=>{if(v){var y=v.getElementsByClassName("recharts-cartesian-axis-tick-value");p.current=y;var x=y[0];if(x){var w=window.getComputedStyle(x),C=w.fontSize,S=w.letterSpacing;(C!==d||S!==m)&&(f(C),h(S))}}},[d,m]);return a||r!=null&&r<=0||o!=null&&o<=0?null:c.createElement(qs,{zIndex:e.zIndex},c.createElement(Bi,{className:Zn("recharts-cartesian-axis",i)},c.createElement(DPe,{x:e.x,y:e.y,width:r,height:o,orientation:e.orientation,mirror:e.mirror,axisLine:n,otherSvgProps:Ds(e)}),c.createElement(HPe,{ref:b,axisType:l,events:u,fontSize:d,getTicksConfig:e,height:e.height,letterSpacing:m,mirror:e.mirror,orientation:e.orientation,padding:e.padding,stroke:e.stroke,tick:e.tick,tickFormatter:e.tickFormatter,tickLine:e.tickLine,tickMargin:e.tickMargin,tickSize:e.tickSize,tickTextProps:e.tickTextProps,ticks:s,unit:e.unit,width:e.width,x:e.x,y:e.y}),c.createElement(oEe,{x:e.x,y:e.y,width:e.width,height:e.height,lowerWidth:e.width,upperWidth:e.width},c.createElement(dEe,{label:e.label,labelRef:e.labelRef}),e.children)))}),B4=c.forwardRef((e,t)=>{var n=qo(e,Al);return c.createElement(VPe,Pd({},n,{ref:t}))});B4.displayName="CartesianAxis";var WPe=["x1","y1","x2","y2","key"],UPe=["offset"],KPe=["xAxisId","yAxisId"],qPe=["xAxisId","yAxisId"];function V5(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 gi(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?V5(Object(n),!0).forEach(function(r){GPe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):V5(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function GPe(e,t,n){return(t=XPe(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function XPe(e){var t=YPe(e,"string");return typeof t=="symbol"?t:t+""}function YPe(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Uu(){return Uu=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},Uu.apply(null,arguments)}function Vx(e,t){if(e==null)return{};var n,r,o=ZPe(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function ZPe(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}var JPe=e=>{var{fill:t}=e;if(!t||t==="none")return null;var{fillOpacity:n,x:r,y:o,width:i,height:a,ry:s}=e;return c.createElement("rect",{x:r,y:o,ry:s,width:i,height:a,stroke:"none",fill:t,fillOpacity:n,className:"recharts-cartesian-grid-bg"})};function RX(e){var{option:t,lineItemProps:n}=e,r;if(c.isValidElement(t))r=c.cloneElement(t,n);else if(typeof t=="function")r=t(n);else{var o,{x1:i,y1:a,x2:s,y2:l,key:u}=n,d=Vx(n,WPe),f=(o=Ds(d))!==null&&o!==void 0?o:{},{offset:m}=f,h=Vx(f,UPe);r=c.createElement("line",Uu({},h,{x1:i,y1:a,x2:s,y2:l,fill:"none",key:u}))}return r}function QPe(e){var{x:t,width:n,horizontal:r=!0,horizontalPoints:o}=e;if(!r||!o||!o.length)return null;var{xAxisId:i,yAxisId:a}=e,s=Vx(e,KPe),l=o.map((u,d)=>{var f=gi(gi({},s),{},{x1:t,y1:u,x2:t+n,y2:u,key:"line-".concat(d),index:d});return c.createElement(RX,{key:"line-".concat(d),option:r,lineItemProps:f})});return c.createElement("g",{className:"recharts-cartesian-grid-horizontal"},l)}function eje(e){var{y:t,height:n,vertical:r=!0,verticalPoints:o}=e;if(!r||!o||!o.length)return null;var{xAxisId:i,yAxisId:a}=e,s=Vx(e,qPe),l=o.map((u,d)=>{var f=gi(gi({},s),{},{x1:u,y1:t,x2:u,y2:t+n,key:"line-".concat(d),index:d});return c.createElement(RX,{option:r,lineItemProps:f,key:"line-".concat(d)})});return c.createElement("g",{className:"recharts-cartesian-grid-vertical"},l)}function tje(e){var{horizontalFill:t,fillOpacity:n,x:r,y:o,width:i,height:a,horizontalPoints:s,horizontal:l=!0}=e;if(!l||!t||!t.length||s==null)return null;var u=s.map(f=>Math.round(f+o-o)).sort((f,m)=>f-m);o!==u[0]&&u.unshift(0);var d=u.map((f,m)=>{var h=!u[m+1],p=h?o+a-f:u[m+1]-f;if(p<=0)return null;var b=m%t.length;return c.createElement("rect",{key:"react-".concat(m),y:f,x:r,height:p,width:i,stroke:"none",fill:t[b],fillOpacity:n,className:"recharts-cartesian-grid-bg"})});return c.createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},d)}function nje(e){var{vertical:t=!0,verticalFill:n,fillOpacity:r,x:o,y:i,width:a,height:s,verticalPoints:l}=e;if(!t||!n||!n.length)return null;var u=l.map(f=>Math.round(f+o-o)).sort((f,m)=>f-m);o!==u[0]&&u.unshift(0);var d=u.map((f,m)=>{var h=!u[m+1],p=h?o+a-f:u[m+1]-f;if(p<=0)return null;var b=m%n.length;return c.createElement("rect",{key:"react-".concat(m),x:f,y:i,width:p,height:s,stroke:"none",fill:n[b],fillOpacity:r,className:"recharts-cartesian-grid-bg"})});return c.createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},d)}var rje=(e,t)=>{var{xAxis:n,width:r,height:o,offset:i}=e;return aK(F4(gi(gi(gi({},Al),n),{},{ticks:sK(n),viewBox:{x:0,y:0,width:r,height:o}})),i.left,i.left+i.width,t)},oje=(e,t)=>{var{yAxis:n,width:r,height:o,offset:i}=e;return aK(F4(gi(gi(gi({},Al),n),{},{ticks:sK(n),viewBox:{x:0,y:0,width:r,height:o}})),i.top,i.top+i.height,t)},ije={horizontal:!0,vertical:!0,horizontalPoints:[],verticalPoints:[],stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[],xAxisId:0,yAxisId:0,syncWithTicks:!1,zIndex:Co.grid};function Hv(e){var t=pR(),n=gR(),r=yK(),o=gi(gi({},qo(e,ije)),{},{x:Jt(e.x)?e.x:r.left,y:Jt(e.y)?e.y:r.top,width:Jt(e.width)?e.width:r.width,height:Jt(e.height)?e.height:r.height}),{xAxisId:i,yAxisId:a,x:s,y:l,width:u,height:d,syncWithTicks:f,horizontalValues:m,verticalValues:h}=o,p=la(),b=Qt(P=>U8(P,"xAxis",i,p)),v=Qt(P=>U8(P,"yAxis",a,p));if(!dl(u)||!dl(d)||!Jt(s)||!Jt(l))return null;var y=o.verticalCoordinatesGenerator||rje,x=o.horizontalCoordinatesGenerator||oje,{horizontalPoints:w,verticalPoints:C}=o;if((!w||!w.length)&&typeof x=="function"){var S=m&&m.length,$=x({yAxis:v?gi(gi({},v),{},{ticks:S?m:v.ticks}):void 0,width:t??u,height:n??d,offset:r},S?!0:f);yx(Array.isArray($),"horizontalCoordinatesGenerator should return Array but instead it returned [".concat(typeof $,"]")),Array.isArray($)&&(w=$)}if((!C||!C.length)&&typeof y=="function"){var E=h&&h.length,O=y({xAxis:b?gi(gi({},b),{},{ticks:E?h:b.ticks}):void 0,width:t??u,height:n??d,offset:r},E?!0:f);yx(Array.isArray(O),"verticalCoordinatesGenerator should return Array but instead it returned [".concat(typeof O,"]")),Array.isArray(O)&&(C=O)}return c.createElement(qs,{zIndex:o.zIndex},c.createElement("g",{className:"recharts-cartesian-grid"},c.createElement(JPe,{fill:o.fill,fillOpacity:o.fillOpacity,x:o.x,y:o.y,width:o.width,height:o.height,ry:o.ry}),c.createElement(tje,Uu({},o,{horizontalPoints:w})),c.createElement(nje,Uu({},o,{verticalPoints:C})),c.createElement(QPe,Uu({},o,{offset:r,horizontalPoints:w,xAxis:b,yAxis:v})),c.createElement(eje,Uu({},o,{offset:r,verticalPoints:C,xAxis:b,yAxis:v}))))}Hv.displayName="CartesianGrid";var aje={},TX=sa({name:"errorBars",initialState:aje,reducers:{addErrorBar:(e,t)=>{var{itemId:n,errorBar:r}=t.payload;e[n]||(e[n]=[]),e[n].push(r)},replaceErrorBar:(e,t)=>{var{itemId:n,prev:r,next:o}=t.payload;e[n]&&(e[n]=e[n].map(i=>i.dataKey===r.dataKey&&i.direction===r.direction?o:i))},removeErrorBar:(e,t)=>{var{itemId:n,errorBar:r}=t.payload;e[n]&&(e[n]=e[n].filter(o=>o.dataKey!==r.dataKey||o.direction!==r.direction))}}}),{addErrorBar:Mit,replaceErrorBar:kit,removeErrorBar:Ait}=TX.actions,sje=TX.reducer,lje=["children"];function cje(e,t){if(e==null)return{};var n,r,o=uje(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function uje(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}var dje={data:[],xAxisId:"xAxis-0",yAxisId:"yAxis-0",dataPointFormatter:()=>({x:0,y:0,value:0}),errorBarOffset:0},fje=c.createContext(dje);function mje(e){var{children:t}=e,n=cje(e,lje);return c.createElement(fje.Provider,{value:n},t)}function MX(e,t){var n,r,o=Qt(u=>sc(u,e)),i=Qt(u=>lc(u,t)),a=(n=o==null?void 0:o.allowDataOverflow)!==null&&n!==void 0?n:Do.allowDataOverflow,s=(r=i==null?void 0:i.allowDataOverflow)!==null&&r!==void 0?r:Lo.allowDataOverflow,l=a||s;return{needClip:l,needClipX:a,needClipY:s}}function hje(e){var{xAxisId:t,yAxisId:n,clipPathId:r}=e,o=PX(),{needClipX:i,needClipY:a,needClip:s}=MX(t,n);if(!s||!o)return null;var{x:l,y:u,width:d,height:f}=o;return c.createElement("clipPath",{id:"clipPath-".concat(r)},c.createElement("rect",{x:i?l:l-d/2,y:a?u:u-f/2,width:i?d:d*2,height:a?f:f*2}))}var pje={};/**
 * @license React
 * use-sync-external-store-with-selector.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var Vv=c;function gje(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var vje=typeof Object.is=="function"?Object.is:gje,yje=Vv.useSyncExternalStore,bje=Vv.useRef,xje=Vv.useEffect,wje=Vv.useMemo,Sje=Vv.useDebugValue;pje.useSyncExternalStoreWithSelector=function(e,t,n,r,o){var i=bje(null);if(i.current===null){var a={hasValue:!1,value:null};i.current=a}else a=i.current;i=wje(function(){function l(h){if(!u){if(u=!0,d=h,h=r(h),o!==void 0&&a.hasValue){var p=a.value;if(o(p,h))return f=p}return f=h}if(p=f,vje(d,h))return p;var b=r(h);return o!==void 0&&o(p,b)?(d=h,p):(d=h,f=b)}var u=!1,d,f,m=n===void 0?null:n;return[function(){return l(t())},m===null?void 0:function(){return l(m())}]},[t,n,r,o]);var s=yje(e,i[0],i[1]);return xje(function(){a.hasValue=!0,a.value=s},[s]),Sje(s),s};function Cje(e){e()}function $je(){let e=null,t=null;return{clear(){e=null,t=null},notify(){Cje(()=>{let n=e;for(;n;)n.callback(),n=n.next})},get(){const n=[];let r=e;for(;r;)n.push(r),r=r.next;return n},subscribe(n){let r=!0;const o=t={callback:n,next:null,prev:t};return o.prev?o.prev.next=o:e=o,function(){!r||e===null||(r=!1,o.next?o.next.prev=o.prev:t=o.prev,o.prev?o.prev.next=o.next:e=o.next)}}}}var W5={notify(){},get:()=>[]};function Eje(e,t){let n,r=W5,o=0,i=!1;function a(b){d();const v=r.subscribe(b);let y=!1;return()=>{y||(y=!0,v(),f())}}function s(){r.notify()}function l(){p.onStateChange&&p.onStateChange()}function u(){return i}function d(){o++,n||(n=e.subscribe(l),r=$je())}function f(){o--,n&&o===0&&(n(),n=void 0,r.clear(),r=W5)}function m(){i||(i=!0,d())}function h(){i&&(i=!1,f())}const p={addNestedSub:a,notifyNestedSubs:s,handleChangeWrapper:l,isSubscribed:u,trySubscribe:m,tryUnsubscribe:h,getListeners:()=>r};return p}var Oje=()=>typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",Pje=Oje(),jje=()=>typeof navigator<"u"&&navigator.product==="ReactNative",Ije=jje(),_je=()=>Pje||Ije?c.useLayoutEffect:c.useEffect,Nje=_je();function U5(e,t){return e===t?e!==0||t!==0||1/e===1/t:e!==e&&t!==t}function Rje(e,t){if(U5(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(let o=0;o<n.length;o++)if(!Object.prototype.hasOwnProperty.call(t,n[o])||!U5(e[n[o]],t[n[o]]))return!1;return!0}var z$=Symbol.for("react-redux-context"),F$=typeof globalThis<"u"?globalThis:{};function Tje(){if(!c.createContext)return{};const e=F$[z$]??(F$[z$]=new Map);let t=e.get(c.createContext);return t||(t=c.createContext(null),e.set(c.createContext,t)),t}var Mje=Tje();function kje(e){const{children:t,context:n,serverState:r,store:o}=e,i=c.useMemo(()=>{const l=Eje(o);return{store:o,subscription:l,getServerState:r?()=>r:void 0}},[o,r]),a=c.useMemo(()=>o.getState(),[o]);Nje(()=>{const{subscription:l}=i;return l.onStateChange=l.notifyNestedSubs,l.trySubscribe(),a!==o.getState()&&l.notifyNestedSubs(),()=>{l.tryUnsubscribe(),l.onStateChange=void 0}},[i,a]);const s=n||Mje;return c.createElement(s.Provider,{value:i},t)}var Aje=kje,Dje=new Set(["axisLine","tickLine","activeBar","activeDot","activeLabel","activeShape","allowEscapeViewBox","background","cursor","dot","label","line","margin","padding","position","shape","style","tick","wrapperStyle","radius"]);function Lje(e,t){return e==null&&t==null?!0:typeof e=="number"&&typeof t=="number"?e===t||e!==e&&t!==t:e===t}function H4(e,t){var n=new Set([...Object.keys(e),...Object.keys(t)]);for(var r of n)if(Dje.has(r)){if(e[r]==null&&t[r]==null)continue;if(!Rje(e[r],t[r]))return!1}else if(!Lje(e[r],t[r]))return!1;return!0}function Ud(e,t){var n,r;return(n=(r=e.graphicalItems.cartesianItems.find(o=>o.id===t))===null||r===void 0?void 0:r.xAxisId)!==null&&n!==void 0?n:EX}function Kd(e,t){var n,r;return(n=(r=e.graphicalItems.cartesianItems.find(o=>o.id===t))===null||r===void 0?void 0:r.yAxisId)!==null&&n!==void 0?n:EX}var zje="Invariant failed";function Fje(e,t){throw new Error(zje)}function gP(){return gP=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},gP.apply(null,arguments)}function Wx(e){return c.createElement(wX,gP({shapeType:"rectangle",activeClassName:"recharts-active-bar"},e))}var Bje=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return(r,o)=>{if(Jt(t))return t;var i=Jt(r)||eo(r);return i?t(r,o):(i||Fje(),n)}},Hje=(e,t,n)=>n,Vje=(e,t)=>t,Wv=Fe([e4,Vje],(e,t)=>e.filter(n=>n.type==="bar").find(n=>n.id===t)),Wje=Fe([Wv],e=>e==null?void 0:e.maxBarSize),Uje=(e,t,n,r)=>r,Kje=Fe([Kn,e4,Ud,Kd,Hje],(e,t,n,r,o)=>t.filter(i=>e==="horizontal"?i.xAxisId===n:i.yAxisId===r).filter(i=>i.isPanorama===o).filter(i=>i.hide===!1).filter(i=>i.type==="bar")),qje=(e,t,n)=>{var r=Kn(e),o=Ud(e,t),i=Kd(e,t);if(!(o==null||i==null))return r==="horizontal"?cP(e,"yAxis",i,n):cP(e,"xAxis",o,n)},Gje=(e,t)=>{var n=Kn(e),r=Ud(e,t),o=Kd(e,t);if(!(r==null||o==null))return n==="horizontal"?W8(e,"xAxis",r):W8(e,"yAxis",o)},Xje=Fe([Kje,aSe,Gje],nPe),Yje=(e,t,n)=>{var r,o,i=Wv(e,t);if(i!=null){var a=Ud(e,t),s=Kd(e,t);if(!(a==null||s==null)){var l=Kn(e),u=Lq(e),{maxBarSize:d}=i,f=eo(d)?u:d,m,h;return l==="horizontal"?(m=km(e,"xAxis",a,n),h=Mm(e,"xAxis",a,n)):(m=km(e,"yAxis",s,n),h=Mm(e,"yAxis",s,n)),(r=(o=vx(m,h,!0))!==null&&o!==void 0?o:f)!==null&&r!==void 0?r:0}}},kX=(e,t,n)=>{var r=Kn(e),o=Ud(e,t),i=Kd(e,t);if(!(o==null||i==null)){var a,s;return r==="horizontal"?(a=km(e,"xAxis",o,n),s=Mm(e,"xAxis",o,n)):(a=km(e,"yAxis",i,n),s=Mm(e,"yAxis",i,n)),vx(a,s)}},Zje=Fe([Xje,Lq,iSe,zq,Yje,kX,Wje],sPe),Jje=(e,t,n)=>{var r=Ud(e,t);if(r!=null)return km(e,"xAxis",r,n)},Qje=(e,t,n)=>{var r=Kd(e,t);if(r!=null)return km(e,"yAxis",r,n)},eIe=(e,t,n)=>{var r=Ud(e,t);if(r!=null)return Mm(e,"xAxis",r,n)},tIe=(e,t,n)=>{var r=Kd(e,t);if(r!=null)return Mm(e,"yAxis",r,n)},nIe=Fe([Zje,Wv],(e,t)=>{if(!(e==null||t==null)){var n=e.find(r=>r.stackId===t.stackId&&t.dataKey!=null&&r.dataKeys.includes(t.dataKey));if(n!=null)return n.position}}),rIe=Fe([qje,Wv],lPe),oIe=Fe([jo,mR,Jje,Qje,eIe,tIe,nIe,Kn,qwe,kX,rIe,Wv,Uje],(e,t,n,r,o,i,a,s,l,u,d,f,m)=>{var{chartData:h,dataStartIndex:p,dataEndIndex:b}=l;if(!(f==null||a==null||t==null||s!=="horizontal"&&s!=="vertical"||n==null||r==null||o==null||i==null||u==null)){var{data:v}=f,y;if(v!=null&&v.length>0?y=v:y=h==null?void 0:h.slice(p,b+1),y!=null)return TIe({layout:s,barSettings:f,pos:a,parentViewBox:t,bandSize:u,xAxis:n,yAxis:r,xAxisTicks:o,yAxisTicks:i,stackedData:d,displayedData:y,offset:e,cells:m,dataStartIndex:p})}}),iIe=["index"];function vP(){return vP=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},vP.apply(null,arguments)}function aIe(e,t){if(e==null)return{};var n,r,o=sIe(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function sIe(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}var AX=c.createContext(void 0),lIe=e=>{var t=c.useContext(AX);if(t!=null)return t.stackId;if(e!=null)return X0e(e)},cIe=(e,t)=>"recharts-bar-stack-clip-path-".concat(e,"-").concat(t),uIe=e=>{var t=c.useContext(AX);if(t!=null){var{stackId:n}=t;return"url(#".concat(cIe(n,e),")")}},dIe=e=>{var{index:t}=e,n=aIe(e,iIe),r=uIe(t);return c.createElement(Bi,vP({className:"recharts-bar-stack-layer",clipPath:r},n))},fIe=["onMouseEnter","onMouseLeave","onClick"],mIe=["value","background","tooltipPosition"],hIe=["id"],pIe=["onMouseEnter","onClick","onMouseLeave"];function Yl(){return Yl=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},Yl.apply(null,arguments)}function K5(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 Ri(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?K5(Object(n),!0).forEach(function(r){gIe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):K5(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function gIe(e,t,n){return(t=vIe(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function vIe(e){var t=yIe(e,"string");return typeof t=="symbol"?t:t+""}function yIe(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Ux(e,t){if(e==null)return{};var n,r,o=bIe(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function bIe(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}var xIe=e=>{var{dataKey:t,name:n,fill:r,legendType:o,hide:i}=e;return[{inactive:i,dataKey:t,type:o,color:r,value:bw(n,t),payload:e}]},wIe=c.memo(e=>{var{dataKey:t,stroke:n,strokeWidth:r,fill:o,name:i,hide:a,unit:s,tooltipType:l,id:u}=e,d={dataDefinedOnItem:void 0,positions:void 0,settings:{stroke:n,strokeWidth:r,fill:o,dataKey:t,nameKey:void 0,name:bw(i,t),hide:a,type:l,color:o,unit:s,graphicalItemId:u}};return c.createElement(SX,{tooltipEntrySettings:d})});function SIe(e){var t=Qt(Ed),{data:n,dataKey:r,background:o,allOtherBarProps:i}=e,{onMouseEnter:a,onMouseLeave:s,onClick:l}=i,u=Ux(i,fIe),d=A4(a,r,i.id),f=D4(s),m=L4(l,r,i.id);if(!o||n==null)return null;var h=xg(o);return c.createElement(qs,{zIndex:cPe(o,Co.barBackground)},n.map((p,b)=>{var{value:v,background:y,tooltipPosition:x}=p,w=Ux(p,mIe);if(!y)return null;var C=d(p,b),S=f(p,b),$=m(p,b),E=Ri(Ri(Ri(Ri(Ri({option:o,isActive:String(b)===t},w),{},{fill:"#eee"},y),h),wv(u,p,b)),{},{onMouseEnter:C,onMouseLeave:S,onClick:$,dataKey:r,index:b,className:"recharts-bar-background-rectangle"});return c.createElement(Wx,Yl({key:"background-bar-".concat(b)},E))}))}function CIe(e){var{showLabels:t,children:n,rects:r}=e,o=r==null?void 0:r.map(i=>{var a={x:i.x,y:i.y,width:i.width,lowerWidth:i.width,upperWidth:i.width,height:i.height};return Ri(Ri({},a),{},{value:i.value,payload:i.payload,parentViewBox:i.parentViewBox,viewBox:a,fill:i.fill})});return c.createElement(yEe,{value:t?o:void 0},n)}function $Ie(e){var{shape:t,activeBar:n,baseProps:r,entry:o,index:i,dataKey:a}=e,s=Qt(Ed),l=Qt(E4),u=n&&String(i)===s&&(l==null||a===l),d=u?n:t;return u?c.createElement(qs,{zIndex:Co.activeBar},c.createElement(Wx,Yl({},r,{name:String(r.name)},o,{isActive:u,option:d,index:i,dataKey:a}))):c.createElement(Wx,Yl({},r,{name:String(r.name)},o,{isActive:u,option:d,index:i,dataKey:a}))}function EIe(e){var{shape:t,baseProps:n,entry:r,index:o,dataKey:i}=e;return c.createElement(Wx,Yl({},n,{name:String(n.name)},r,{isActive:!1,option:t,index:o,dataKey:i}))}function OIe(e){var t,{data:n,props:r}=e,o=(t=Ds(r))!==null&&t!==void 0?t:{},{id:i}=o,a=Ux(o,hIe),{shape:s,dataKey:l,activeBar:u}=r,{onMouseEnter:d,onClick:f,onMouseLeave:m}=r,h=Ux(r,pIe),p=A4(d,l,i),b=D4(m),v=L4(f,l,i);return n?c.createElement(c.Fragment,null,n.map((y,x)=>c.createElement(dIe,Yl({index:x,key:"rectangle-".concat(y==null?void 0:y.x,"-").concat(y==null?void 0:y.y,"-").concat(y==null?void 0:y.value,"-").concat(x),className:"recharts-bar-rectangle"},wv(h,y,x),{onMouseEnter:p(y,x),onMouseLeave:b(y,x),onClick:v(y,x)}),u?c.createElement($Ie,{shape:s,activeBar:u,baseProps:a,entry:y,index:x,dataKey:l}):c.createElement(EIe,{shape:s,baseProps:a,entry:y,index:x,dataKey:l})))):null}function PIe(e){var{props:t,previousRectanglesRef:n}=e,{data:r,layout:o,isAnimationActive:i,animationBegin:a,animationDuration:s,animationEasing:l,onAnimationEnd:u,onAnimationStart:d}=t,f=n.current,m=Nw(t,"recharts-bar-"),[h,p]=c.useState(!1),b=!h,v=c.useCallback(()=>{typeof u=="function"&&u(),p(!1)},[u]),y=c.useCallback(()=>{typeof d=="function"&&d(),p(!0)},[d]);return c.createElement(CIe,{showLabels:b,rects:r},c.createElement(_w,{animationId:m,begin:a,duration:s,isActive:i,easing:l,onAnimationEnd:v,onAnimationStart:y,key:m},x=>{var w=x===1?r:r==null?void 0:r.map((C,S)=>{var $=f&&f[S];if($)return Ri(Ri({},C),{},{x:xo($.x,C.x,x),y:xo($.y,C.y,x),width:xo($.width,C.width,x),height:xo($.height,C.height,x)});if(o==="horizontal"){var E=xo(0,C.height,x),O=xo(C.stackedBarStart,C.y,x);return Ri(Ri({},C),{},{y:O,height:E})}var P=xo(0,C.width,x),j=xo(C.stackedBarStart,C.x,x);return Ri(Ri({},C),{},{width:P,x:j})});return x>0&&(n.current=w??null),w==null?null:c.createElement(Bi,null,c.createElement(OIe,{props:t,data:w}))}),c.createElement(fX,{label:t.label}),t.children)}function jIe(e){var t=c.useRef(null);return c.createElement(PIe,{previousRectanglesRef:t,props:e})}var DX=0,IIe=(e,t)=>{var n=Array.isArray(e.value)?e.value[1]:e.value;return{x:e.x,y:e.y,value:n,errorVal:hr(e,t)}};class _Ie extends c.PureComponent{render(){var{hide:t,data:n,dataKey:r,className:o,xAxisId:i,yAxisId:a,needClip:s,background:l,id:u}=this.props;if(t||n==null)return null;var d=Zn("recharts-bar",o),f=u;return c.createElement(Bi,{className:d,id:u},s&&c.createElement("defs",null,c.createElement(hje,{clipPathId:f,xAxisId:i,yAxisId:a})),c.createElement(Bi,{className:"recharts-bar-rectangles",clipPath:s?"url(#clipPath-".concat(f,")"):void 0},c.createElement(SIe,{data:n,dataKey:r,background:l,allOtherBarProps:this.props}),c.createElement(jIe,this.props)))}}var NIe={activeBar:!1,animationBegin:0,animationDuration:400,animationEasing:"ease",background:!1,hide:!1,isAnimationActive:"auto",label:!1,legendType:"rect",minPointSize:DX,xAxisId:0,yAxisId:0,zIndex:Co.bar};function RIe(e){var{xAxisId:t,yAxisId:n,hide:r,legendType:o,minPointSize:i,activeBar:a,animationBegin:s,animationDuration:l,animationEasing:u,isAnimationActive:d}=e,{needClip:f}=MX(t,n),m=Ov(),h=la(),p=k4(e.children,Wd),b=Qt(x=>oIe(x,e.id,h,p));if(m!=="vertical"&&m!=="horizontal")return null;var v,y=b==null?void 0:b[0];return y==null||y.height==null||y.width==null?v=0:v=m==="vertical"?y.height/2:y.width/2,c.createElement(mje,{xAxisId:t,yAxisId:n,data:b,dataPointFormatter:IIe,errorBarOffset:v},c.createElement(_Ie,Yl({},e,{layout:m,needClip:f,data:b,xAxisId:t,yAxisId:n,hide:r,legendType:o,minPointSize:i,activeBar:a,animationBegin:s,animationDuration:l,animationEasing:u,isAnimationActive:d})))}function TIe(e){var{layout:t,barSettings:{dataKey:n,minPointSize:r},pos:o,bandSize:i,xAxis:a,yAxis:s,xAxisTicks:l,yAxisTicks:u,stackedData:d,displayedData:f,offset:m,cells:h,parentViewBox:p,dataStartIndex:b}=e,v=t==="horizontal"?s:a,y=d?v.scale.domain():null,x=Y0e({numericAxis:v}),w=v.scale(x);return f.map((C,S)=>{var $,E,O,P,j,I;if(d){var _=d[S+b];if(_==null)return null;$=W0e(_,y)}else $=hr(C,n),Array.isArray($)||($=[x,$]);var R=Bje(r,DX)($[1],S);if(t==="horizontal"){var N,[A,M]=[s.scale($[0]),s.scale($[1])];E=nA({axis:a,ticks:l,bandSize:i,offset:o.offset,entry:C,index:S}),O=(N=M??A)!==null&&N!==void 0?N:void 0,P=o.size;var T=A-M;if(j=Ls(T)?0:T,I={x:E,y:m.top,width:P,height:m.height},Math.abs(R)>0&&Math.abs(j)<Math.abs(R)){var k=Ho(j||R)*(Math.abs(R)-Math.abs(j));O-=k,j+=k}}else{var[D,L]=[a.scale($[0]),a.scale($[1])];if(E=D,O=nA({axis:s,ticks:u,bandSize:i,offset:o.offset,entry:C,index:S}),P=L-D,j=o.size,I={x:m.left,y:O,width:m.width,height:j},Math.abs(R)>0&&Math.abs(P)<Math.abs(R)){var B=Ho(P||R)*(Math.abs(R)-Math.abs(P));P+=B}}if(E==null||O==null||P==null||j==null)return null;var H=Ri(Ri({},C),{},{stackedBarStart:w,x:E,y:O,width:P,height:j,value:d?$:$[1],payload:C,background:I,tooltipPosition:{x:E+P/2,y:O+j/2},parentViewBox:p},h&&h[S]&&h[S].props);return H}).filter(Boolean)}function MIe(e){var t=qo(e,NIe),n=lIe(t.stackId),r=la();return c.createElement(CX,{id:t.id,type:"bar"},o=>c.createElement(c.Fragment,null,c.createElement(tOe,{legendPayload:xIe(t)}),c.createElement(wIe,{dataKey:t.dataKey,stroke:t.stroke,strokeWidth:t.strokeWidth,fill:t.fill,name:t.name,hide:t.hide,unit:t.unit,tooltipType:t.tooltipType,id:o}),c.createElement(pOe,{type:"bar",id:o,data:void 0,xAxisId:t.xAxisId,yAxisId:t.yAxisId,zAxisId:0,dataKey:t.dataKey,stackId:n,hide:t.hide,barSize:t.barSize,minPointSize:t.minPointSize,maxBarSize:t.maxBarSize,isPanorama:r}),c.createElement(qs,{zIndex:t.zIndex},c.createElement(RIe,Yl({},t,{id:o})))))}var Wc=c.memo(MIe,H4);Wc.displayName="Bar";var kIe=["domain","range"],AIe=["domain","range"];function q5(e,t){if(e==null)return{};var n,r,o=DIe(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function DIe(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 G5(e,t){return e===t?!0:Array.isArray(e)&&e.length===2&&Array.isArray(t)&&t.length===2?e[0]===t[0]&&e[1]===t[1]:!1}function LX(e,t){if(e===t)return!0;var{domain:n,range:r}=e,o=q5(e,kIe),{domain:i,range:a}=t,s=q5(t,AIe);return!G5(n,i)||!G5(r,a)?!1:H4(o,s)}var LIe=["dangerouslySetInnerHTML","ticks","scale"],zIe=["id","scale"];function yP(){return yP=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},yP.apply(null,arguments)}function X5(e,t){if(e==null)return{};var n,r,o=FIe(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function FIe(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 BIe(e){var t=gr(),n=c.useRef(null);return c.useLayoutEffect(()=>{n.current===null?t(KOe(e)):n.current!==e&&t(qOe({prev:n.current,next:e})),n.current=e},[e,t]),c.useLayoutEffect(()=>()=>{n.current&&(t(GOe(n.current)),n.current=null)},[t]),null}var HIe=e=>{var{xAxisId:t,className:n}=e,r=Qt(mR),o=la(),i="xAxis",a=Qt(y=>vG(y,i,t,o)),s=Qt(y=>mG(y,t)),l=Qt(y=>rCe(y,t)),u=Qt(y=>Gq(y,t));if(s==null||l==null||u==null)return null;var{dangerouslySetInnerHTML:d,ticks:f,scale:m}=e,h=X5(e,LIe),{id:p,scale:b}=u,v=X5(u,zIe);return c.createElement(B4,yP({},h,v,{x:l.x,y:l.y,width:s.width,height:s.height,className:Zn("recharts-".concat(i," ").concat(i),n),viewBox:r,ticks:a,axisType:i}))},VIe={allowDataOverflow:Do.allowDataOverflow,allowDecimals:Do.allowDecimals,allowDuplicatedCategory:Do.allowDuplicatedCategory,angle:Do.angle,axisLine:Al.axisLine,height:Do.height,hide:!1,includeHidden:Do.includeHidden,interval:Do.interval,minTickGap:Do.minTickGap,mirror:Do.mirror,orientation:Do.orientation,padding:Do.padding,reversed:Do.reversed,scale:Do.scale,tick:Do.tick,tickCount:Do.tickCount,tickLine:Al.tickLine,tickSize:Al.tickSize,type:Do.type,xAxisId:0},WIe=e=>{var t=qo(e,VIe);return c.createElement(c.Fragment,null,c.createElement(BIe,{allowDataOverflow:t.allowDataOverflow,allowDecimals:t.allowDecimals,allowDuplicatedCategory:t.allowDuplicatedCategory,angle:t.angle,dataKey:t.dataKey,domain:t.domain,height:t.height,hide:t.hide,id:t.xAxisId,includeHidden:t.includeHidden,interval:t.interval,minTickGap:t.minTickGap,mirror:t.mirror,name:t.name,orientation:t.orientation,padding:t.padding,reversed:t.reversed,scale:t.scale,tick:t.tick,tickCount:t.tickCount,tickFormatter:t.tickFormatter,ticks:t.ticks,type:t.type,unit:t.unit}),c.createElement(HIe,t))},Uv=c.memo(WIe,LX);Uv.displayName="XAxis";var UIe=["dangerouslySetInnerHTML","ticks","scale"],KIe=["id","scale"];function bP(){return bP=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},bP.apply(null,arguments)}function Y5(e,t){if(e==null)return{};var n,r,o=qIe(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function qIe(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 GIe(e){var t=gr(),n=c.useRef(null);return c.useLayoutEffect(()=>{n.current===null?t(XOe(e)):n.current!==e&&t(YOe({prev:n.current,next:e})),n.current=e},[e,t]),c.useLayoutEffect(()=>()=>{n.current&&(t(ZOe(n.current)),n.current=null)},[t]),null}var XIe=e=>{var{yAxisId:t,className:n,width:r,label:o}=e,i=c.useRef(null),a=c.useRef(null),s=Qt(mR),l=la(),u=gr(),d="yAxis",f=Qt($=>hG($,t)),m=Qt($=>iCe($,t)),h=Qt($=>vG($,d,t,l)),p=Qt($=>Xq($,t));if(c.useLayoutEffect(()=>{if(!(r!=="auto"||!f||_4(o)||c.isValidElement(o)||p==null)){var $=i.current;if($){var E=$.getCalculatedWidth();Math.round(f.width)!==Math.round(E)&&u(JOe({id:t,width:E}))}}},[h,f,u,o,t,r,p]),f==null||m==null||p==null)return null;var{dangerouslySetInnerHTML:b,ticks:v,scale:y}=e,x=Y5(e,UIe),{id:w,scale:C}=p,S=Y5(p,KIe);return c.createElement(B4,bP({},x,S,{ref:i,labelRef:a,x:m.x,y:m.y,tickTextProps:r==="auto"?{width:void 0}:{width:r},width:f.width,height:f.height,className:Zn("recharts-".concat(d," ").concat(d),n),viewBox:s,ticks:h,axisType:d}))},YIe={allowDataOverflow:Lo.allowDataOverflow,allowDecimals:Lo.allowDecimals,allowDuplicatedCategory:Lo.allowDuplicatedCategory,angle:Lo.angle,axisLine:Al.axisLine,hide:!1,includeHidden:Lo.includeHidden,interval:Lo.interval,minTickGap:Lo.minTickGap,mirror:Lo.mirror,orientation:Lo.orientation,padding:Lo.padding,reversed:Lo.reversed,scale:Lo.scale,tick:Lo.tick,tickCount:Lo.tickCount,tickLine:Al.tickLine,tickSize:Al.tickSize,type:Lo.type,width:Lo.width,yAxisId:0},ZIe=e=>{var t=qo(e,YIe);return c.createElement(c.Fragment,null,c.createElement(GIe,{interval:t.interval,id:t.yAxisId,scale:t.scale,type:t.type,domain:t.domain,allowDataOverflow:t.allowDataOverflow,dataKey:t.dataKey,allowDuplicatedCategory:t.allowDuplicatedCategory,allowDecimals:t.allowDecimals,tickCount:t.tickCount,padding:t.padding,includeHidden:t.includeHidden,reversed:t.reversed,ticks:t.ticks,width:t.width,orientation:t.orientation,mirror:t.mirror,hide:t.hide,unit:t.unit,name:t.name,angle:t.angle,minTickGap:t.minTickGap,tick:t.tick,tickFormatter:t.tickFormatter}),c.createElement(XIe,t))},Kv=c.memo(ZIe,LX);Kv.displayName="YAxis";var JIe=(e,t)=>t,V4=Fe([JIe,Kn,Kq,_o,TG,cc,w$e,jo],j$e),W4=e=>{var t=e.currentTarget.getBoundingClientRect(),n=t.width/e.currentTarget.offsetWidth,r=t.height/e.currentTarget.offsetHeight;return{chartX:Math.round((e.clientX-t.left)/n),chartY:Math.round((e.clientY-t.top)/r)}},zX=as("mouseClick"),FX=$v();FX.startListening({actionCreator:zX,effect:(e,t)=>{var n=e.payload,r=V4(t.getState(),W4(n));(r==null?void 0:r.activeIndex)!=null&&t.dispatch(bCe({activeIndex:r.activeIndex,activeDataKey:void 0,activeCoordinate:r.activeCoordinate}))}});var xP=as("mouseMove"),BX=$v(),ny=null;BX.startListening({actionCreator:xP,effect:(e,t)=>{var n=e.payload;ny!==null&&cancelAnimationFrame(ny);var r=W4(n);ny=requestAnimationFrame(()=>{var o=t.getState(),i=b4(o,o.tooltip.settings.shared);if(i==="axis"){var a=V4(o,r);(a==null?void 0:a.activeIndex)!=null?t.dispatch(EG({activeIndex:a.activeIndex,activeDataKey:void 0,activeCoordinate:a.activeCoordinate})):t.dispatch($G())}ny=null})}});function QIe(e,t){return t instanceof HTMLElement?"HTMLElement <".concat(t.tagName,' class="').concat(t.className,'">'):t===window?"global.window":e==="children"&&typeof t=="object"&&t!==null?"<<CHILDREN>>":t}var Z5={accessibilityLayer:!0,barCategoryGap:"10%",barGap:4,barSize:void 0,className:void 0,maxBarSize:void 0,stackOffset:"none",syncId:void 0,syncMethod:"index",baseValue:void 0,reverseStackOrder:!1},HX=sa({name:"rootProps",initialState:Z5,reducers:{updateOptions:(e,t)=>{var n;e.accessibilityLayer=t.payload.accessibilityLayer,e.barCategoryGap=t.payload.barCategoryGap,e.barGap=(n=t.payload.barGap)!==null&&n!==void 0?n:Z5.barGap,e.barSize=t.payload.barSize,e.maxBarSize=t.payload.maxBarSize,e.stackOffset=t.payload.stackOffset,e.syncId=t.payload.syncId,e.syncMethod=t.payload.syncMethod,e.className=t.payload.className,e.baseValue=t.payload.baseValue,e.reverseStackOrder=t.payload.reverseStackOrder}}}),e_e=HX.reducer,{updateOptions:t_e}=HX.actions,VX=sa({name:"polarOptions",initialState:null,reducers:{updatePolarOptions:(e,t)=>t.payload}}),{updatePolarOptions:n_e}=VX.actions,r_e=VX.reducer,WX=as("keyDown"),UX=as("focus"),U4=$v();U4.startListening({actionCreator:WX,effect:(e,t)=>{var n=t.getState(),r=n.rootProps.accessibilityLayer!==!1;if(r){var{keyboardInteraction:o}=n.tooltip,i=e.payload;if(!(i!=="ArrowRight"&&i!=="ArrowLeft"&&i!=="Enter")){var a=x4(o,hh(n),Dv(n),Fv(n)),s=a==null?-1:Number(a);if(!(!Number.isFinite(s)||s<0)){var l=cc(n);if(i==="Enter"){var u=zx(n,"axis","hover",String(o.index));t.dispatch(dP({active:!o.active,activeIndex:o.index,activeCoordinate:u}));return}var d=cCe(n),f=d==="left-to-right"?1:-1,m=i==="ArrowRight"?1:-1,h=s+m*f;if(!(l==null||h>=l.length||h<0)){var p=zx(n,"axis","hover",String(h));t.dispatch(dP({active:!0,activeIndex:h.toString(),activeCoordinate:p}))}}}}}});U4.startListening({actionCreator:UX,effect:(e,t)=>{var n=t.getState(),r=n.rootProps.accessibilityLayer!==!1;if(r){var{keyboardInteraction:o}=n.tooltip;if(!o.active&&o.index==null){var i="0",a=zx(n,"axis","hover",String(i));t.dispatch(dP({active:!0,activeIndex:i,activeCoordinate:a}))}}}});var Ha=as("externalEvent"),KX=$v(),B$=new Map;KX.startListening({actionCreator:Ha,effect:(e,t)=>{var{handler:n,reactEvent:r}=e.payload;if(n!=null){r.persist();var o=r.type,i=B$.get(o);i!==void 0&&cancelAnimationFrame(i);var a=requestAnimationFrame(()=>{try{var s=t.getState(),l={activeCoordinate:i$e(s),activeDataKey:E4(s),activeIndex:Ed(s),activeLabel:AG(s),activeTooltipIndex:Ed(s),isTooltipActive:a$e(s)};n(l,r)}finally{B$.delete(o)}});B$.set(o,a)}}});var o_e=Fe([fh],e=>e.tooltipItemPayloads),i_e=Fe([o_e,zv,(e,t)=>t,(e,t,n)=>n],(e,t,n,r)=>{var o=e.find(s=>s.settings.graphicalItemId===r);if(o!=null){var{positions:i}=o;if(i!=null){var a=t(i,n);return a}}}),qX=as("touchMove"),GX=$v();GX.startListening({actionCreator:qX,effect:(e,t)=>{var n=e.payload;if(!(n.touches==null||n.touches.length===0)){var r=t.getState(),o=b4(r,r.tooltip.settings.shared);if(o==="axis"){var i=n.touches[0];if(i==null)return;var a=V4(r,W4({clientX:i.clientX,clientY:i.clientY,currentTarget:n.currentTarget}));(a==null?void 0:a.activeIndex)!=null&&t.dispatch(EG({activeIndex:a.activeIndex,activeDataKey:void 0,activeCoordinate:a.activeCoordinate}))}else if(o==="item"){var s,l=n.touches[0];if(document.elementFromPoint==null||l==null)return;var u=document.elementFromPoint(l.clientX,l.clientY);if(!u||!u.getAttribute)return;var d=u.getAttribute(cK),f=(s=u.getAttribute(uK))!==null&&s!==void 0?s:void 0,m=mh(r).find(b=>b.id===f);if(d==null||m==null||f==null)return;var{dataKey:h}=m,p=i_e(r,d,f);t.dispatch(CG({activeDataKey:h,activeIndex:d,activeCoordinate:p,activeGraphicalItemId:f}))}}}});var a_e=NU({brush:uPe,cartesianAxis:QOe,chartData:o2e,errorBars:sje,graphicalItems:mOe,layout:L0e,legend:Hye,options:Q$e,polarAxis:IEe,polarOptions:r_e,referenceElements:vPe,rootProps:e_e,tooltip:xCe,zIndex:H$e}),s_e=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"Chart";return c0e({reducer:a_e,preloadedState:t,middleware:r=>{var o;return r({serializableCheck:!1,immutableCheck:!["commonjs","es6","production"].includes((o="es6")!==null&&o!==void 0?o:"")}).concat([FX.middleware,BX.middleware,U4.middleware,KX.middleware,GX.middleware])},enhancers:r=>{var o=r;return typeof r=="function"&&(o=r()),o.concat(KU({type:"raf"}))},devTools:{serialize:{replacer:QIe},name:"recharts-".concat(n)}})};function XX(e){var{preloadedState:t,children:n,reduxStoreName:r}=e,o=la(),i=c.useRef(null);if(o)return n;i.current==null&&(i.current=s_e(t,r));var a=nR;return c.createElement(Aje,{context:a,store:i.current},n)}function l_e(e){var{layout:t,margin:n}=e,r=gr(),o=la();return c.useEffect(()=>{o||(r(k0e(t)),r(M0e(n)))},[r,o,t,n]),null}var YX=c.memo(l_e,H4);function ZX(e){var t=gr();return c.useEffect(()=>{t(t_e(e))},[t,e]),null}function J5(e){var{zIndex:t,isPanorama:n}=e,r=c.useRef(null),o=gr();return c.useLayoutEffect(()=>(r.current&&o(F$e({zIndex:t,element:r.current,isPanorama:n})),()=>{o(B$e({zIndex:t,isPanorama:n}))}),[o,t,n]),c.createElement("g",{tabIndex:-1,ref:r})}function Q5(e){var{children:t,isPanorama:n}=e,r=Qt(_$e);if(!r||r.length===0)return t;var o=r.filter(a=>a<0),i=r.filter(a=>a>0);return c.createElement(c.Fragment,null,o.map(a=>c.createElement(J5,{key:a,zIndex:a,isPanorama:n})),t,i.map(a=>c.createElement(J5,{key:a,zIndex:a,isPanorama:n})))}var c_e=["children"];function u_e(e,t){if(e==null)return{};var n,r,o=d_e(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function d_e(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 Kx(){return Kx=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Kx.apply(null,arguments)}var f_e={width:"100%",height:"100%",display:"block"},m_e=c.forwardRef((e,t)=>{var n=pR(),r=gR(),o=IK();if(!dl(n)||!dl(r))return null;var{children:i,otherAttributes:a,title:s,desc:l}=e,u,d;return a!=null&&(typeof a.tabIndex=="number"?u=a.tabIndex:u=o?0:void 0,typeof a.role=="string"?d=a.role:d=o?"application":void 0),c.createElement(BN,Kx({},a,{title:s,desc:l,role:d,tabIndex:u,width:n,height:r,style:f_e,ref:t}),i)}),h_e=e=>{var{children:t}=e,n=Qt(Cw);if(!n)return null;var{width:r,height:o,y:i,x:a}=n;return c.createElement(BN,{width:r,height:o,x:a,y:i},t)},eD=c.forwardRef((e,t)=>{var{children:n}=e,r=u_e(e,c_e),o=la();return o?c.createElement(h_e,null,c.createElement(Q5,{isPanorama:!0},n)):c.createElement(m_e,Kx({ref:t},r),c.createElement(Q5,{isPanorama:!1},n))});function p_e(){var e=gr(),[t,n]=c.useState(null),r=Qt(nye);return c.useEffect(()=>{if(t!=null){var o=t.getBoundingClientRect(),i=o.width/t.offsetWidth;Lr(i)&&i!==r&&e(D0e(i))}},[t,e,r]),n}function tD(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 g_e(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?tD(Object(n),!0).forEach(function(r){v_e(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):tD(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function v_e(e,t,n){return(t=y_e(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function y_e(e){var t=b_e(e,"string");return typeof t=="symbol"?t:t+""}function b_e(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function jd(){return jd=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},jd.apply(null,arguments)}var x_e=()=>(m2e(),null);function qx(e){if(typeof e=="number")return e;if(typeof e=="string"){var t=parseFloat(e);if(!Number.isNaN(t))return t}return 0}var w_e=c.forwardRef((e,t)=>{var n,r,o=c.useRef(null),[i,a]=c.useState({containerWidth:qx((n=e.style)===null||n===void 0?void 0:n.width),containerHeight:qx((r=e.style)===null||r===void 0?void 0:r.height)}),s=c.useCallback((u,d)=>{a(f=>{var m=Math.round(u),h=Math.round(d);return f.containerWidth===m&&f.containerHeight===h?f:{containerWidth:m,containerHeight:h}})},[]),l=c.useCallback(u=>{if(typeof t=="function"&&t(u),u!=null&&typeof ResizeObserver<"u"){var{width:d,height:f}=u.getBoundingClientRect();s(d,f);var m=p=>{var{width:b,height:v}=p[0].contentRect;s(b,v)},h=new ResizeObserver(m);h.observe(u),o.current=h}},[t,s]);return c.useEffect(()=>()=>{var u=o.current;u!=null&&u.disconnect()},[s]),c.createElement(c.Fragment,null,c.createElement(Ew,{width:i.containerWidth,height:i.containerHeight}),c.createElement("div",jd({ref:l},e)))}),S_e=c.forwardRef((e,t)=>{var{width:n,height:r}=e,[o,i]=c.useState({containerWidth:qx(n),containerHeight:qx(r)}),a=c.useCallback((l,u)=>{i(d=>{var f=Math.round(l),m=Math.round(u);return d.containerWidth===f&&d.containerHeight===m?d:{containerWidth:f,containerHeight:m}})},[]),s=c.useCallback(l=>{if(typeof t=="function"&&t(l),l!=null){var{width:u,height:d}=l.getBoundingClientRect();a(u,d)}},[t,a]);return c.createElement(c.Fragment,null,c.createElement(Ew,{width:o.containerWidth,height:o.containerHeight}),c.createElement("div",jd({ref:s},e)))}),C_e=c.forwardRef((e,t)=>{var{width:n,height:r}=e;return c.createElement(c.Fragment,null,c.createElement(Ew,{width:n,height:r}),c.createElement("div",jd({ref:t},e)))}),$_e=c.forwardRef((e,t)=>{var{width:n,height:r}=e;return Wl(n)||Wl(r)?c.createElement(S_e,jd({},e,{ref:t})):c.createElement(C_e,jd({},e,{ref:t}))});function E_e(e){return e===!0?w_e:$_e}var O_e=c.forwardRef((e,t)=>{var{children:n,className:r,height:o,onClick:i,onContextMenu:a,onDoubleClick:s,onMouseDown:l,onMouseEnter:u,onMouseLeave:d,onMouseMove:f,onMouseUp:m,onTouchEnd:h,onTouchMove:p,onTouchStart:b,style:v,width:y,responsive:x,dispatchTouchEvents:w=!0}=e,C=c.useRef(null),S=gr(),[$,E]=c.useState(null),[O,P]=c.useState(null),j=p_e(),I=hR(),_=(I==null?void 0:I.width)>0?I.width:y,R=(I==null?void 0:I.height)>0?I.height:o,N=c.useCallback(z=>{j(z),typeof t=="function"&&t(z),E(z),P(z),z!=null&&(C.current=z)},[j,t,E,P]),A=c.useCallback(z=>{S(zX(z)),S(Ha({handler:i,reactEvent:z}))},[S,i]),M=c.useCallback(z=>{S(xP(z)),S(Ha({handler:u,reactEvent:z}))},[S,u]),T=c.useCallback(z=>{S($G()),S(Ha({handler:d,reactEvent:z}))},[S,d]),k=c.useCallback(z=>{S(xP(z)),S(Ha({handler:f,reactEvent:z}))},[S,f]),D=c.useCallback(()=>{S(UX())},[S]),L=c.useCallback(z=>{S(WX(z.key))},[S]),B=c.useCallback(z=>{S(Ha({handler:a,reactEvent:z}))},[S,a]),H=c.useCallback(z=>{S(Ha({handler:s,reactEvent:z}))},[S,s]),F=c.useCallback(z=>{S(Ha({handler:l,reactEvent:z}))},[S,l]),W=c.useCallback(z=>{S(Ha({handler:m,reactEvent:z}))},[S,m]),q=c.useCallback(z=>{S(Ha({handler:b,reactEvent:z}))},[S,b]),G=c.useCallback(z=>{w&&S(qX(z)),S(Ha({handler:p,reactEvent:z}))},[S,w,p]),te=c.useCallback(z=>{S(Ha({handler:h,reactEvent:z}))},[S,h]),ee=E_e(x);return c.createElement(VG.Provider,{value:$},c.createElement(NW.Provider,{value:O},c.createElement(ee,{width:_??(v==null?void 0:v.width),height:R??(v==null?void 0:v.height),className:Zn("recharts-wrapper",r),style:g_e({position:"relative",cursor:"default",width:_,height:R},v),onClick:A,onContextMenu:B,onDoubleClick:H,onFocus:D,onKeyDown:L,onMouseDown:F,onMouseEnter:M,onMouseLeave:T,onMouseMove:k,onMouseUp:W,onTouchEnd:te,onTouchMove:G,onTouchStart:q,ref:N},c.createElement(x_e,null),n)))}),P_e=["width","height","responsive","children","className","style","compact","title","desc"];function j_e(e,t){if(e==null)return{};var n,r,o=I_e(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function I_e(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}var JX=c.forwardRef((e,t)=>{var{width:n,height:r,responsive:o,children:i,className:a,style:s,compact:l,title:u,desc:d}=e,f=j_e(e,P_e),m=Ds(f);return l?c.createElement(c.Fragment,null,c.createElement(Ew,{width:n,height:r}),c.createElement(eD,{otherAttributes:m,title:u,desc:d},i)):c.createElement(O_e,{className:a,style:s,width:n,height:r,responsive:o??!1,onClick:e.onClick,onMouseLeave:e.onMouseLeave,onMouseEnter:e.onMouseEnter,onMouseMove:e.onMouseMove,onMouseDown:e.onMouseDown,onMouseUp:e.onMouseUp,onContextMenu:e.onContextMenu,onDoubleClick:e.onDoubleClick,onTouchStart:e.onTouchStart,onTouchMove:e.onTouchMove,onTouchEnd:e.onTouchEnd},c.createElement(eD,{otherAttributes:m,title:u,desc:d,ref:t},c.createElement(bPe,null,i)))});function wP(){return wP=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},wP.apply(null,arguments)}var __e={top:5,right:5,bottom:5,left:5},N_e={accessibilityLayer:!0,barCategoryGap:"10%",barGap:4,layout:"horizontal",margin:__e,responsive:!1,reverseStackOrder:!1,stackOffset:"none",syncMethod:"index"},R_e=c.forwardRef(function(t,n){var r,o=qo(t.categoricalChartProps,N_e),{chartName:i,defaultTooltipEventType:a,validateTooltipEventTypes:s,tooltipPayloadSearcher:l,categoricalChartProps:u}=t,d={chartName:i,defaultTooltipEventType:a,validateTooltipEventTypes:s,tooltipPayloadSearcher:l,eventEmitter:void 0};return c.createElement(XX,{preloadedState:{options:d},reduxStoreName:(r=u.id)!==null&&r!==void 0?r:i},c.createElement(jX,{chartData:u.data}),c.createElement(YX,{layout:o.layout,margin:o.margin}),c.createElement(ZX,{baseValue:o.baseValue,accessibilityLayer:o.accessibilityLayer,barCategoryGap:o.barCategoryGap,maxBarSize:o.maxBarSize,stackOffset:o.stackOffset,barGap:o.barGap,barSize:o.barSize,syncId:o.syncId,syncMethod:o.syncMethod,className:o.className,reverseStackOrder:o.reverseStackOrder}),c.createElement(JX,wP({},o,{ref:n})))}),T_e=["axis","item"],uS=c.forwardRef((e,t)=>c.createElement(R_e,{chartName:"BarChart",defaultTooltipEventType:"axis",validateTooltipEventTypes:T_e,tooltipPayloadSearcher:UG,categoricalChartProps:e,ref:t}));function M_e(e){var t=gr();return c.useEffect(()=>{t(n_e(e))},[t,e]),null}var k_e=["layout"];function SP(){return SP=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},SP.apply(null,arguments)}function A_e(e,t){if(e==null)return{};var n,r,o=D_e(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function D_e(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}var L_e={top:5,right:5,bottom:5,left:5},QX={accessibilityLayer:!0,stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:L_e,reverseStackOrder:!1,syncMethod:"index",layout:"radial",responsive:!1,cx:"50%",cy:"50%",innerRadius:0,outerRadius:"80%"},z_e=c.forwardRef(function(t,n){var r,o=qo(t.categoricalChartProps,QX),{layout:i}=o,a=A_e(o,k_e),{chartName:s,defaultTooltipEventType:l,validateTooltipEventTypes:u,tooltipPayloadSearcher:d}=t,f={chartName:s,defaultTooltipEventType:l,validateTooltipEventTypes:u,tooltipPayloadSearcher:d,eventEmitter:void 0};return c.createElement(XX,{preloadedState:{options:f},reduxStoreName:(r=o.id)!==null&&r!==void 0?r:s},c.createElement(jX,{chartData:o.data}),c.createElement(YX,{layout:i,margin:o.margin}),c.createElement(ZX,{baseValue:void 0,accessibilityLayer:o.accessibilityLayer,barCategoryGap:o.barCategoryGap,maxBarSize:o.maxBarSize,stackOffset:o.stackOffset,barGap:o.barGap,barSize:o.barSize,syncId:o.syncId,syncMethod:o.syncMethod,className:o.className,reverseStackOrder:o.reverseStackOrder}),c.createElement(M_e,{cx:o.cx,cy:o.cy,startAngle:o.startAngle,endAngle:o.endAngle,innerRadius:o.innerRadius,outerRadius:o.outerRadius}),c.createElement(JX,SP({},a,{ref:n})))});function nD(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 rD(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?nD(Object(n),!0).forEach(function(r){F_e(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):nD(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function F_e(e,t,n){return(t=B_e(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function B_e(e){var t=H_e(e,"string");return typeof t=="symbol"?t:t+""}function H_e(e,t){if(typeof e!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var V_e=["item"],W_e=rD(rD({},QX),{},{layout:"centric",startAngle:0,endAngle:360}),K4=c.forwardRef((e,t)=>{var n=qo(e,W_e);return c.createElement(z_e,{chartName:"PieChart",defaultTooltipEventType:"item",validateTooltipEventTypes:V_e,tooltipPayloadSearcher:UG,categoricalChartProps:n,ref:t})});const Am=["#0088FE","#00C49F","#FFBB28","#FF8042","#8884d8"],Ji=({title:e,value:t,suffix:n="",color:r="blue"})=>g.jsx("div",{className:`bg-white overflow-hidden shadow rounded-lg border-l-4 border-${r}-500`,children:g.jsxs("div",{className:"px-4 py-5 sm:p-6",children:[g.jsx("dt",{className:"text-sm font-medium text-gray-500 truncate",children:e}),g.jsxs("dd",{className:`mt-1 text-3xl font-semibold text-${r}-600`,children:[t,n]})]})}),U_e=({data:e})=>{var r,o,i,a,s;const t=e.attendance?[{name:"Присутствовал",value:e.attendance.present},{name:"Отсутствовал",value:e.attendance.absent},{name:"Опоздал",value:e.attendance.late},{name:"Уважительная",value:e.attendance.excused}].filter(l=>l.value>0):[],n=(r=e.grades)!=null&&r.subject_breakdown?Object.entries(e.grades.subject_breakdown).map(([l,u])=>({subject:l,score:u.average_percentage})):[];return g.jsxs("div",{className:"space-y-6",children:[g.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-4 gap-4",children:[g.jsx(Ji,{title:"Общий балл",value:((o=e.performance_metrics)==null?void 0:o.overall_performance_score)||0,suffix:"%",color:"indigo"}),g.jsx(Ji,{title:"Посещаемость",value:((i=e.performance_metrics)==null?void 0:i.attendance_score)||0,suffix:"%",color:"green"}),g.jsx(Ji,{title:"Оценки",value:((a=e.performance_metrics)==null?void 0:a.grade_score)||0,suffix:"%",color:"blue"}),g.jsx(Ji,{title:"Поведение",value:Math.round(((s=e.performance_metrics)==null?void 0:s.behavior_score)||0),suffix:"%",color:"yellow"})]}),g.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6 h-80",children:[g.jsxs("div",{className:"bg-white p-4 rounded-lg shadow border border-gray-100",children:[g.jsx("h3",{className:"text-lg font-medium text-gray-900 mb-4",children:"Распределение посещаемости"}),g.jsx(wd,{width:"100%",height:"90%",children:g.jsxs(K4,{children:[g.jsx(cS,{data:t,cx:"50%",cy:"50%",innerRadius:60,outerRadius:80,fill:"#8884d8",paddingAngle:5,dataKey:"value",label:!0,children:t.map((l,u)=>g.jsx(Wd,{fill:Am[u%Am.length]},`cell-${u}`))}),g.jsx(Od,{}),g.jsx(jv,{})]})})]}),g.jsxs("div",{className:"bg-white p-4 rounded-lg shadow border border-gray-100",children:[g.jsx("h3",{className:"text-lg font-medium text-gray-900 mb-4",children:"Успеваемость по предметам"}),g.jsx(wd,{width:"100%",height:"90%",children:g.jsxs(uS,{data:n,children:[g.jsx(Hv,{strokeDasharray:"3 3"}),g.jsx(Uv,{dataKey:"subject"}),g.jsx(Kv,{domain:[0,100]}),g.jsx(Od,{}),g.jsx(Wc,{dataKey:"score",fill:"#4F46E5",name:"Ср. балл %"})]})})]})]}),e.diary_entries&&g.jsxs("div",{className:"bg-white shadow rounded-lg p-6",children:[g.jsx("h3",{className:"text-lg font-medium text-gray-900 mb-4",children:"Дневник и поведение"}),g.jsxs("div",{className:"grid grid-cols-3 gap-4 text-center",children:[g.jsxs("div",{children:[g.jsxs("div",{className:"text-2xl font-bold text-gray-900",children:[e.diary_entries.average_behavior_rating,"/5"]}),g.jsx("div",{className:"text-sm text-gray-500",children:"Ср. поведение"})]}),g.jsxs("div",{children:[g.jsxs("div",{className:"text-2xl font-bold text-gray-900",children:[e.diary_entries.average_effort_rating,"/5"]}),g.jsx("div",{className:"text-sm text-gray-500",children:"Ср. старание"})]}),g.jsxs("div",{children:[g.jsxs("div",{className:"text-2xl font-bold text-gray-900",children:[e.diary_entries.average_participation_rating,"/5"]}),g.jsx("div",{className:"text-sm text-gray-500",children:"Ср. участие"})]})]})]})]})},K_e=({data:e})=>g.jsxs("div",{className:"space-y-6",children:[g.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-4",children:[g.jsx(Ji,{title:"Средний балл",value:e.group_statistics.average_performance_score,suffix:"%",color:"indigo"}),g.jsx(Ji,{title:"Лучший результат",value:e.group_statistics.highest_performance,suffix:"%",color:"green"}),g.jsx(Ji,{title:"Худший результат",value:e.group_statistics.lowest_performance,suffix:"%",color:"red"})]}),g.jsxs("div",{className:"bg-white p-4 rounded-lg shadow border border-gray-100 h-96",children:[g.jsx("h3",{className:"text-lg font-medium text-gray-900 mb-4",children:"Сравнение успеваемости учеников"}),g.jsx(wd,{width:"100%",height:"90%",children:g.jsxs(uS,{data:e.students,children:[g.jsx(Hv,{strokeDasharray:"3 3"}),g.jsx(Uv,{dataKey:"student_name"}),g.jsx(Kv,{domain:[0,100]}),g.jsx(Od,{}),g.jsx(jv,{}),g.jsx(Wc,{dataKey:"performance_score",fill:"#4F46E5",name:"Общий балл"}),g.jsx(Wc,{dataKey:"attendance.attendance_rate",fill:"#10B981",name:"Посещаемость %"}),g.jsx(Wc,{dataKey:"grades.average_percentage",fill:"#F59E0B",name:"Оценки %"})]})})]}),g.jsxs("div",{className:"bg-white shadow overflow-hidden sm:rounded-lg",children:[g.jsx("div",{className:"px-4 py-5 sm:px-6",children:g.jsx("h3",{className:"text-lg leading-6 font-medium text-gray-900",children:"Подробный список учеников"})}),g.jsx("div",{className:"border-t border-gray-200",children:g.jsxs("table",{className:"min-w-full divide-y divide-gray-200",children:[g.jsx("thead",{className:"bg-gray-50",children:g.jsxs("tr",{children:[g.jsx("th",{className:"px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider",children:"Ученик"}),g.jsx("th",{className:"px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider",children:"Общий"}),g.jsx("th",{className:"px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider",children:"Посещаемость"}),g.jsx("th",{className:"px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider",children:"Оценки"})]})}),g.jsx("tbody",{className:"bg-white divide-y divide-gray-200",children:e.students.map((t,n)=>g.jsxs("tr",{children:[g.jsx("td",{className:"px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900",children:t.student_name}),g.jsxs("td",{className:"px-6 py-4 whitespace-nowrap text-sm text-gray-500 font-bold",children:[t.performance_score,"%"]}),g.jsxs("td",{className:"px-6 py-4 whitespace-nowrap text-sm text-gray-500",children:[t.attendance.attendance_rate,"%"]}),g.jsxs("td",{className:"px-6 py-4 whitespace-nowrap text-sm text-gray-500",children:[t.grades.average_percentage,"%"]})]},n))})]})})]})]}),q_e=({data:e})=>{const t=Object.entries(e.summary.status_distribution).map(([n,r])=>({name:n.charAt(0).toUpperCase()+n.slice(1),value:r}));return g.jsxs("div",{className:"space-y-6",children:[g.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-4 gap-4",children:[g.jsx(Ji,{title:"Процент посещаемости",value:e.summary.attendance_rate,suffix:"%",color:"green"}),g.jsx(Ji,{title:"Всего уроков",value:e.summary.total_lessons,color:"blue"}),g.jsx(Ji,{title:"Всего записей",value:e.summary.total_attendance_records,color:"indigo"}),g.jsx(Ji,{title:"Присутствовал",value:e.summary.status_distribution.present||0,color:"teal"})]}),g.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6 h-80",children:g.jsxs("div",{className:"bg-white p-4 rounded-lg shadow border border-gray-100",children:[g.jsx("h3",{className:"text-lg font-medium text-gray-900 mb-4",children:"Распределение статусов"}),g.jsx(wd,{width:"100%",height:"90%",children:g.jsxs(K4,{children:[g.jsx(cS,{data:t,cx:"50%",cy:"50%",innerRadius:60,outerRadius:80,fill:"#8884d8",paddingAngle:5,dataKey:"value",label:!0,children:t.map((n,r)=>g.jsx(Wd,{fill:Am[r%Am.length]},`cell-${r}`))}),g.jsx(Od,{}),g.jsx(jv,{})]})})]})}),e.student_breakdown&&g.jsxs("div",{className:"bg-white shadow overflow-hidden sm:rounded-lg",children:[g.jsx("div",{className:"px-4 py-5 sm:px-6",children:g.jsx("h3",{className:"text-lg leading-6 font-medium text-gray-900",children:"Детализация по ученикам"})}),g.jsx("div",{className:"border-t border-gray-200 overflow-x-auto",children:g.jsxs("table",{className:"min-w-full divide-y divide-gray-200",children:[g.jsx("thead",{className:"bg-gray-50",children:g.jsxs("tr",{children:[g.jsx("th",{className:"px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider",children:"Ученик"}),g.jsx("th",{className:"px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider",children:"Присутствовал"}),g.jsx("th",{className:"px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider",children:"Отсутствовал"}),g.jsx("th",{className:"px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider",children:"Опоздал"}),g.jsx("th",{className:"px-6 py-3 text-left text-xs font-medium text-gray-500 uppercase tracking-wider",children:"Уважительная"})]})}),g.jsx("tbody",{className:"bg-white divide-y divide-gray-200",children:e.student_breakdown.map(n=>g.jsxs("tr",{children:[g.jsx("td",{className:"px-6 py-4 whitespace-nowrap text-sm font-medium text-gray-900",children:n.student_name}),g.jsx("td",{className:"px-6 py-4 whitespace-nowrap text-sm text-gray-500",children:n.present}),g.jsx("td",{className:"px-6 py-4 whitespace-nowrap text-sm text-gray-500",children:n.absent}),g.jsx("td",{className:"px-6 py-4 whitespace-nowrap text-sm text-gray-500",children:n.late}),g.jsx("td",{className:"px-6 py-4 whitespace-nowrap text-sm text-gray-500",children:n.excused})]},n.student_id))})]})})]})]})},G_e=({data:e})=>{const t=Object.entries(e.summary.subject_breakdown).map(([r,o])=>({subject:r,percentage:o.average_percentage,count:o.total_grades})),n=e.summary.grade_type_distribution?Object.entries(e.summary.grade_type_distribution).map(([r,o])=>({name:r,value:o})):[];return g.jsxs("div",{className:"space-y-6",children:[g.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-4",children:[g.jsx(Ji,{title:"Средний процент",value:e.summary.average_percentage,suffix:"%",color:"indigo"}),g.jsx(Ji,{title:"Средняя оценка",value:e.summary.average_grade,color:"blue"}),g.jsx(Ji,{title:"Всего оценок",value:e.summary.total_grades,color:"green"})]}),g.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6 h-80",children:[g.jsxs("div",{className:"bg-white p-4 rounded-lg shadow border border-gray-100",children:[g.jsx("h3",{className:"text-lg font-medium text-gray-900 mb-4",children:"Успеваемость по предметам"}),g.jsx(wd,{width:"100%",height:"90%",children:g.jsxs(uS,{data:t,children:[g.jsx(Hv,{strokeDasharray:"3 3"}),g.jsx(Uv,{dataKey:"subject"}),g.jsx(Kv,{domain:[0,100]}),g.jsx(Od,{}),g.jsx(Wc,{dataKey:"percentage",fill:"#4F46E5",name:"Ср. %"})]})})]}),g.jsxs("div",{className:"bg-white p-4 rounded-lg shadow border border-gray-100",children:[g.jsx("h3",{className:"text-lg font-medium text-gray-900 mb-4",children:"Типы оценок"}),g.jsx(wd,{width:"100%",height:"90%",children:g.jsxs(K4,{children:[g.jsx(cS,{data:n,cx:"50%",cy:"50%",innerRadius:60,outerRadius:80,fill:"#8884d8",paddingAngle:5,dataKey:"value",label:!0,children:n.map((r,o)=>g.jsx(Wd,{fill:Am[o%Am.length]},`cell-${o}`))}),g.jsx(Od,{}),g.jsx(jv,{})]})})]})]})]})},X_e=()=>{const[e,t]=c.useState(!1),[n,r]=c.useState(""),[o,i]=c.useState(null),[a,s]=c.useState({report_type:"student_progress",title:"New Report",description:"",parameters:{},start_date:new Date(new Date().setMonth(new Date().getMonth()-1)).toISOString().split("T")[0],end_date:new Date().toISOString().split("T")[0]}),[l,u]=c.useState(""),[d,f]=c.useState(""),m=async p=>{var b,v;p.preventDefault(),t(!0),r(""),i(null);try{const y={};if(a.report_type==="student_progress"){if(!l)throw new Error('ID ученика обязателен для отчета "Прогресс ученика"');y.student_id=l}else if(a.report_type==="group_performance"){if(!d)throw new Error('ID группы обязателен для отчета "Успеваемость группы"');y.group_id=d}l&&(y.student_id=l),d&&(y.group_id=d);const x={...a,parameters:{...a.parameters,...y}},w=await api.post("/v1/functional/reports/generate",x);i(w.data)}catch(y){console.error("Failed to generate report",y),r(((v=(b=y.response)==null?void 0:b.data)==null?void 0:v.detail)||y.message||"Не удалось создать отчет")}finally{t(!1)}},h=()=>{if(!o)return null;switch(o.report_type){case"student_progress":return g.jsx(U_e,{data:o.report_data});case"group_performance":return g.jsx(K_e,{data:o.report_data});case"attendance":return g.jsx(q_e,{data:o.report_data});case"grades":return g.jsx(G_e,{data:o.report_data});default:return g.jsx("div",{className:"bg-gray-50 p-4 rounded border border-gray-200 overflow-auto max-h-[600px]",children:g.jsx("pre",{className:"text-sm text-gray-800 whitespace-pre-wrap font-mono",children:JSON.stringify(o.report_data,null,2)})})}};return g.jsxs("div",{className:"space-y-6",children:[g.jsx("div",{className:"flex justify-between items-center",children:g.jsx("h1",{className:"text-2xl font-bold text-gray-900",children:"Отчеты и аналитика"})}),g.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-12 gap-6",children:[g.jsxs("div",{className:"lg:col-span-3 bg-white p-6 rounded-lg shadow h-fit",children:[g.jsx("h2",{className:"text-lg font-medium mb-4",children:"Настройки отчета"}),g.jsxs("form",{onSubmit:m,className:"space-y-4",children:[g.jsxs("div",{children:[g.jsx("label",{className:"block text-sm font-medium text-gray-700",children:"Тип отчета"}),g.jsxs("select",{className:"mt-1 block w-full rounded-md border-gray-300 shadow-sm focus:border-indigo-500 focus:ring-indigo-500 sm:text-sm p-2 border",value:a.report_type,onChange:p=>s({...a,report_type:p.target.value}),children:[g.jsx("option",{value:"student_progress",children:"Прогресс ученика"}),g.jsx("option",{value:"group_performance",children:"Успеваемость группы"}),g.jsx("option",{value:"attendance",children:"Посещаемость"}),g.jsx("option",{value:"grades",children:"Оценки"})]})]}),g.jsxs("div",{children:[g.jsx("label",{className:"block text-sm font-medium text-gray-700",children:"Название отчета"}),g.jsx("input",{type:"text",className:"mt-1 block w-full rounded-md border-gray-300 shadow-sm focus:border-indigo-500 focus:ring-indigo-500 sm:text-sm p-2 border",value:a.title,onChange:p=>s({...a,title:p.target.value}),required:!0})]}),g.jsxs("div",{children:[g.jsx("label",{className:"block text-sm font-medium text-gray-700",children:"Дата с"}),g.jsx("input",{type:"date",className:"mt-1 block w-full rounded-md border-gray-300 shadow-sm focus:border-indigo-500 focus:ring-indigo-500 sm:text-sm p-2 border",value:a.start_date,onChange:p=>s({...a,start_date:p.target.value})})]}),g.jsxs("div",{children:[g.jsx("label",{className:"block text-sm font-medium text-gray-700",children:"Дата по"}),g.jsx("input",{type:"date",className:"mt-1 block w-full rounded-md border-gray-300 shadow-sm focus:border-indigo-500 focus:ring-indigo-500 sm:text-sm p-2 border",value:a.end_date,onChange:p=>s({...a,end_date:p.target.value})})]}),g.jsxs("div",{children:[g.jsx("label",{className:"block text-sm font-medium text-gray-700",children:"ID ученика (опционально)"}),g.jsx("input",{type:"text",className:"mt-1 block w-full rounded-md border-gray-300 shadow-sm focus:border-indigo-500 focus:ring-indigo-500 sm:text-sm p-2 border",value:l,onChange:p=>u(p.target.value),placeholder:"Введите ID ученика"}),a.report_type==="student_progress"&&g.jsx("p",{className:"text-xs text-red-500 mt-1",children:"Обязательно для прогресса ученика"})]}),g.jsxs("div",{children:[g.jsx("label",{className:"block text-sm font-medium text-gray-700",children:"ID группы (опционально)"}),g.jsx("input",{type:"text",className:"mt-1 block w-full rounded-md border-gray-300 shadow-sm focus:border-indigo-500 focus:ring-indigo-500 sm:text-sm p-2 border",value:d,onChange:p=>f(p.target.value),placeholder:"Введите ID группы"}),a.report_type==="group_performance"&&g.jsx("p",{className:"text-xs text-red-500 mt-1",children:"Обязательно для успеваемости группы"})]}),g.jsx("button",{type:"submit",disabled:e,className:`w-full flex justify-center py-2 px-4 border border-transparent rounded-md shadow-sm text-sm font-medium text-white ${e?"bg-indigo-400":"bg-indigo-600 hover:bg-indigo-700"} focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500`,children:e?"Создание...":"Создать отчет"}),n&&g.jsx("div",{className:"text-red-600 text-sm bg-red-50 p-2 rounded",children:n})]})]}),g.jsxs("div",{className:"lg:col-span-9 space-y-6",children:[!o&&!e&&g.jsxs("div",{className:"bg-white p-6 rounded-lg shadow h-96 flex flex-col items-center justify-center text-gray-400",children:[g.jsx("svg",{className:"w-16 h-16 mb-4",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",children:g.jsx("path",{strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:2,d:"M9 17v-2m3 2v-4m3 4v-6m2 10H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z"})}),g.jsx("p",{children:"Настройте и создайте отчет, чтобы увидеть результаты здесь"})]}),e&&g.jsxs("div",{className:"bg-white p-6 rounded-lg shadow h-96 flex flex-col items-center justify-center",children:[g.jsx("div",{className:"animate-spin rounded-full h-12 w-12 border-b-2 border-indigo-600"}),g.jsx("p",{className:"mt-4 text-gray-600",children:"Создание отчета..."})]}),o&&h()]})]})]})},Y_e=()=>{var v,y;const[e,t]=c.useState("phone"),[n,r]=c.useState(""),[o,i]=c.useState(""),[a,s]=c.useState(!1),{login:l}=nc(),{addToast:u}=bl(),d=nh(),m=((y=(v=fs().state)==null?void 0:v.from)==null?void 0:y.pathname)||"/",h=async x=>{var w,C;s(!0);try{const S=await Dt.post("/v1/auth/verify_otp",{phone:x,code:"1111"}),{access_token:$,user:E}=S.data;let O=E;if(!O)try{O=(await Dt.get("/v1/auth/me",{headers:{Authorization:`Bearer ${$}`}})).data}catch(P){console.warn("Не удалось загрузить данные пользователя",P),O={id:"unknown",email:x,role:S.data.role||"student",full_name:x,is_active:!0}}l($,O),u("Успешный вход (Dev)","success"),d(m,{replace:!0})}catch(S){console.error("Ошибка быстрого входа:",S);const $=((C=(w=S.response)==null?void 0:w.data)==null?void 0:C.detail)||"Ошибка быстрого входа";u($,"error")}finally{s(!1)}},p=async x=>{var w,C;x.preventDefault(),s(!0);try{await Dt.post("/v1/auth/request_otp",{phone:n}),t("code"),u("Код отправлен успешно","success")}catch(S){console.error("Ошибка запроса кода:",S);const $=((C=(w=S.response)==null?void 0:w.data)==null?void 0:C.detail)||"Не удалось отправить код. Попробуйте снова.";u($,"error")}finally{s(!1)}},b=async x=>{var w,C;x.preventDefault(),s(!0);try{const S=await Dt.post("/v1/auth/verify_otp",{phone:n,code:o}),{access_token:$,user:E}=S.data;let O=E;if(!O)try{O=(await Dt.get("/v1/auth/me",{headers:{Authorization:`Bearer ${$}`}})).data}catch(P){console.warn("Не удалось загрузить данные пользователя",P),O={id:"unknown",email:n,role:S.data.role||"student",full_name:n,is_active:!0}}l($,O),u("Успешный вход","success"),d(m,{replace:!0})}catch(S){console.error("Ошибка проверки кода:",S);const $=((C=(w=S.response)==null?void 0:w.data)==null?void 0:C.detail)||"Неверный код. Попробуйте снова.";u($,"error")}finally{s(!1)}};return g.jsx("div",{className:"min-h-screen bg-gray-100 flex items-center justify-center",children:g.jsxs("div",{className:"bg-white p-8 rounded-lg shadow-md w-full max-w-md",children:[g.jsxs("div",{className:"text-center mb-8",children:[g.jsx("h1",{className:"text-3xl font-bold text-indigo-600",children:"Школа ИИ"}),g.jsx("p",{className:"text-gray-500 mt-2",children:e==="phone"?"Войти по номеру телефона":"Введите код подтверждения"})]}),e==="phone"?g.jsxs("form",{onSubmit:p,className:"space-y-6",children:[g.jsxs("div",{children:[g.jsx("label",{htmlFor:"phone",className:"block text-sm font-medium text-gray-700",children:"Номер телефона"}),g.jsx("input",{id:"phone",type:"tel",required:!0,placeholder:"+79991234567",className:"mt-1 block w-full px-3 py-2 border border-gray-300 rounded-md shadow-sm focus:outline-none focus:ring-indigo-500 focus:border-indigo-500",value:n,onChange:x=>r(x.target.value)})]}),g.jsx("div",{children:g.jsx("button",{type:"submit",disabled:a,className:`w-full flex justify-center py-2 px-4 border border-transparent rounded-md shadow-sm text-sm font-medium text-white bg-indigo-600 hover:bg-indigo-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500 ${a?"opacity-75 cursor-not-allowed":""}`,children:a?"Отправка кода...":"Отправить код"})}),g.jsx("div",{className:"text-xs text-center text-gray-500",children:"Используйте +79990000001 для теста"})]}):g.jsxs("form",{onSubmit:b,className:"space-y-6",children:[g.jsxs("div",{children:[g.jsx("label",{htmlFor:"code",className:"block text-sm font-medium text-gray-700",children:"Код подтверждения"}),g.jsx("input",{id:"code",type:"text",required:!0,placeholder:"123456",className:"mt-1 block w-full px-3 py-2 border border-gray-300 rounded-md shadow-sm focus:outline-none focus:ring-indigo-500 focus:border-indigo-500",value:o,onChange:x=>i(x.target.value)})]}),g.jsx("div",{children:g.jsx("button",{type:"submit",disabled:a,className:`w-full flex justify-center py-2 px-4 border border-transparent rounded-md shadow-sm text-sm font-medium text-white bg-indigo-600 hover:bg-indigo-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500 ${a?"opacity-75 cursor-not-allowed":""}`,children:a?"Проверка...":"Войти"})}),g.jsx("div",{className:"text-center",children:g.jsx("button",{type:"button",onClick:()=>t("phone"),className:"text-sm text-indigo-600 hover:text-indigo-500",children:"Изменить номер телефона"})})]}),g.jsxs("div",{className:"mt-8 border-t border-gray-200 pt-6",children:[g.jsx("h3",{className:"text-center text-sm font-medium text-gray-500 mb-4",children:"Быстрый вход (Dev)"}),g.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[g.jsx("button",{type:"button",onClick:()=>h("+79990000003"),disabled:a,className:"flex justify-center py-2 px-4 border border-gray-300 rounded-md shadow-sm text-xs font-medium text-gray-700 bg-white hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500",children:"Ученик"}),g.jsx("button",{type:"button",onClick:()=>h("+79990000002"),disabled:a,className:"flex justify-center py-2 px-4 border border-gray-300 rounded-md shadow-sm text-xs font-medium text-gray-700 bg-white hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500",children:"Тренер"}),g.jsx("button",{type:"button",onClick:()=>h("+79990000001"),disabled:a,className:"flex justify-center py-2 px-4 border border-gray-300 rounded-md shadow-sm text-xs font-medium text-gray-700 bg-white hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500",children:"Администратор школы"}),g.jsx("button",{type:"button",onClick:()=>h("+79990000000"),disabled:a,className:"flex justify-center py-2 px-4 border border-gray-300 rounded-md shadow-sm text-xs font-medium text-gray-700 bg-white hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500",children:"Системный администратор"})]})]})]})})};var eY={exports:{}};/*!
	Copyright (c) 2018 Jed Watson.
	Licensed under the MIT License (MIT), see
	http://jedwatson.github.io/classnames
*/(function(e){(function(){var t={}.hasOwnProperty;function n(){for(var i="",a=0;a<arguments.length;a++){var s=arguments[a];s&&(i=o(i,r(s)))}return i}function r(i){if(typeof i=="string"||typeof i=="number")return i;if(typeof i!="object")return"";if(Array.isArray(i))return n.apply(null,i);if(i.toString!==Object.prototype.toString&&!i.toString.toString().includes("[native code]"))return i.toString();var a="";for(var s in i)t.call(i,s)&&i[s]&&(a=o(a,s));return a}function o(i,a){return a?i?i+" "+a:i+a:i}e.exports?(n.default=n,e.exports=n):window.classNames=n})()})(eY);var Z_e=eY.exports;const Q=ho(Z_e);function Ee(){return Ee=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},Ee.apply(null,arguments)}function _t(e){"@babel/helpers - typeof";return _t=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},_t(e)}var J_e=Symbol.for("react.element"),Q_e=Symbol.for("react.transitional.element"),eNe=Symbol.for("react.fragment");function tY(e){return e&&_t(e)==="object"&&(e.$$typeof===J_e||e.$$typeof===Q_e)&&e.type===eNe}function ii(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[];return ce.Children.forEach(e,function(r){r==null&&!t.keepEmpty||(Array.isArray(r)?n=n.concat(ii(r)):tY(r)&&r.props?n=n.concat(ii(r.props.children,t)):n.push(r))}),n}var CP={},tNe=function(t){};function nNe(e,t){}function rNe(e,t){}function oNe(){CP={}}function nY(e,t,n){!t&&!CP[n]&&(e(!1,n),CP[n]=!0)}function ir(e,t){nY(nNe,e,t)}function iNe(e,t){nY(rNe,e,t)}ir.preMessage=tNe;ir.resetWarned=oNe;ir.noteOnce=iNe;function aNe(e,t){if(_t(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(_t(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function rY(e){var t=aNe(e,"string");return _t(t)=="symbol"?t:t+""}function K(e,t,n){return(t=rY(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function oD(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 Y(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?oD(Object(n),!0).forEach(function(r){K(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):oD(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Ag(e){return e instanceof HTMLElement||e instanceof SVGElement}function qv(e){return e&&_t(e)==="object"&&Ag(e.nativeElement)?e.nativeElement:Ag(e)?e:null}function ob(e){var t=qv(e);if(t)return t;if(e instanceof ce.Component){var n;return(n=gg.findDOMNode)===null||n===void 0?void 0:n.call(gg,e)}return null}function qd(e,t,n){var r=c.useRef({});return(!("value"in r.current)||n(r.current.condition,t))&&(r.current.value=e(),r.current.condition=t),r.current.value}var sNe=Number(c.version.split(".")[0]),Dg=function(t,n){typeof t=="function"?t(n):_t(t)==="object"&&t&&"current"in t&&(t.current=n)},po=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(i){n.forEach(function(a){Dg(a,i)})}},xl=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return qd(function(){return po.apply(void 0,n)},n,function(o,i){return o.length!==i.length||o.every(function(a,s){return a!==i[s]})})},Fs=function(t){var n,r;if(!t)return!1;if(q4(t)&&sNe>=19)return!0;var o=rb.isMemo(t)?t.type.type:t.type;return!(typeof o=="function"&&!((n=o.prototype)!==null&&n!==void 0&&n.render)&&o.$$typeof!==rb.ForwardRef||typeof t=="function"&&!((r=t.prototype)!==null&&r!==void 0&&r.render)&&t.$$typeof!==rb.ForwardRef)};function q4(e){return c.isValidElement(e)&&!tY(e)}var lNe=function(t){return q4(t)&&Fs(t)},hu=function(t){if(t&&q4(t)){var n=t;return n.props.propertyIsEnumerable("ref")?n.props.ref:n.ref}return null},$P=c.createContext(null);function cNe(e){var t=e.children,n=e.onBatchResize,r=c.useRef(0),o=c.useRef([]),i=c.useContext($P),a=c.useCallback(function(s,l,u){r.current+=1;var d=r.current;o.current.push({size:s,element:l,data:u}),Promise.resolve().then(function(){d===r.current&&(n==null||n(o.current),o.current=[])}),i==null||i(s,l,u)},[n,i]);return c.createElement($P.Provider,{value:a},t)}var oY=function(){if(typeof Map<"u")return Map;function e(t,n){var r=-1;return t.some(function(o,i){return o[0]===n?(r=i,!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,i=this.__entries__;o<i.length;o++){var a=i[o];n.call(r,a[1],a[0])}},t}()}(),EP=typeof window<"u"&&typeof document<"u"&&window.document===document,Gx=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")()}(),uNe=function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(Gx):function(e){return setTimeout(function(){return e(Date.now())},1e3/60)}}(),dNe=2;function fNe(e,t){var n=!1,r=!1,o=0;function i(){n&&(n=!1,e()),r&&s()}function a(){uNe(i)}function s(){var l=Date.now();if(n){if(l-o<dNe)return;r=!0}else n=!0,r=!1,setTimeout(a,t);o=l}return s}var mNe=20,hNe=["top","right","bottom","left","width","height","size","weight"],pNe=typeof MutationObserver<"u",gNe=function(){function e(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=fNe(this.refresh.bind(this),mNe)}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(){!EP||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),pNe?(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(){!EP||!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=hNe.some(function(i){return!!~r.indexOf(i)});o&&this.refresh()},e.getInstance=function(){return this.instance_||(this.instance_=new e),this.instance_},e.instance_=null,e}(),iY=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},Dm=function(e){var t=e&&e.ownerDocument&&e.ownerDocument.defaultView;return t||Gx},aY=dS(0,0,0,0);function Xx(e){return parseFloat(e)||0}function iD(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return t.reduce(function(r,o){var i=e["border-"+o+"-width"];return r+Xx(i)},0)}function vNe(e){for(var t=["top","right","bottom","left"],n={},r=0,o=t;r<o.length;r++){var i=o[r],a=e["padding-"+i];n[i]=Xx(a)}return n}function yNe(e){var t=e.getBBox();return dS(0,0,t.width,t.height)}function bNe(e){var t=e.clientWidth,n=e.clientHeight;if(!t&&!n)return aY;var r=Dm(e).getComputedStyle(e),o=vNe(r),i=o.left+o.right,a=o.top+o.bottom,s=Xx(r.width),l=Xx(r.height);if(r.boxSizing==="border-box"&&(Math.round(s+i)!==t&&(s-=iD(r,"left","right")+i),Math.round(l+a)!==n&&(l-=iD(r,"top","bottom")+a)),!wNe(e)){var u=Math.round(s+i)-t,d=Math.round(l+a)-n;Math.abs(u)!==1&&(s-=u),Math.abs(d)!==1&&(l-=d)}return dS(o.left,o.top,s,l)}var xNe=function(){return typeof SVGGraphicsElement<"u"?function(e){return e instanceof Dm(e).SVGGraphicsElement}:function(e){return e instanceof Dm(e).SVGElement&&typeof e.getBBox=="function"}}();function wNe(e){return e===Dm(e).document.documentElement}function SNe(e){return EP?xNe(e)?yNe(e):bNe(e):aY}function CNe(e){var t=e.x,n=e.y,r=e.width,o=e.height,i=typeof DOMRectReadOnly<"u"?DOMRectReadOnly:Object,a=Object.create(i.prototype);return iY(a,{x:t,y:n,width:r,height:o,top:n,right:t+r,bottom:o+n,left:t}),a}function dS(e,t,n,r){return{x:e,y:t,width:n,height:r}}var $Ne=function(){function e(t){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=dS(0,0,0,0),this.target=t}return e.prototype.isActive=function(){var t=SNe(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}(),ENe=function(){function e(t,n){var r=CNe(n);iY(this,{target:t,contentRect:r})}return e}(),ONe=function(){function e(t,n,r){if(this.activeObservations_=[],this.observations_=new oY,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 Dm(t).Element))throw new TypeError('parameter 1 is not of type "Element".');var n=this.observations_;n.has(t)||(n.set(t,new $Ne(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 Dm(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 ENe(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}(),sY=typeof WeakMap<"u"?new WeakMap:new oY,lY=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=gNe.getInstance(),r=new ONe(t,n,this);sY.set(this,r)}return e}();["observe","unobserve","disconnect"].forEach(function(e){lY.prototype[e]=function(){var t;return(t=sY.get(this))[e].apply(t,arguments)}});var PNe=function(){return typeof Gx.ResizeObserver<"u"?Gx.ResizeObserver:lY}(),Rc=new Map;function jNe(e){e.forEach(function(t){var n,r=t.target;(n=Rc.get(r))===null||n===void 0||n.forEach(function(o){return o(r)})})}var cY=new PNe(jNe);function INe(e,t){Rc.has(e)||(Rc.set(e,new Set),cY.observe(e)),Rc.get(e).add(t)}function _Ne(e,t){Rc.has(e)&&(Rc.get(e).delete(t),Rc.get(e).size||(cY.unobserve(e),Rc.delete(e)))}function lr(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function aD(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,rY(r.key),r)}}function cr(e,t,n){return t&&aD(e.prototype,t),n&&aD(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Lg(e,t){return Lg=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},Lg(e,t)}function Ta(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&&Lg(e,t)}function Id(e){return Id=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Id(e)}function fS(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(fS=function(){return!!e})()}function Ct(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function uY(e,t){if(t&&(_t(t)=="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Ct(e)}function gs(e){var t=fS();return function(){var n,r=Id(e);if(t){var o=Id(this).constructor;n=Reflect.construct(r,arguments,o)}else n=r.apply(this,arguments);return uY(this,n)}}var NNe=function(e){Ta(n,e);var t=gs(n);function n(){return lr(this,n),t.apply(this,arguments)}return cr(n,[{key:"render",value:function(){return this.props.children}}]),n}(c.Component);function RNe(e,t){var n=e.children,r=e.disabled,o=c.useRef(null),i=c.useRef(null),a=c.useContext($P),s=typeof n=="function",l=s?n(o):n,u=c.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),d=!s&&c.isValidElement(l)&&Fs(l),f=d?hu(l):null,m=xl(f,o),h=function(){var y;return ob(o.current)||(o.current&&_t(o.current)==="object"?ob((y=o.current)===null||y===void 0?void 0:y.nativeElement):null)||ob(i.current)};c.useImperativeHandle(t,function(){return h()});var p=c.useRef(e);p.current=e;var b=c.useCallback(function(v){var y=p.current,x=y.onResize,w=y.data,C=v.getBoundingClientRect(),S=C.width,$=C.height,E=v.offsetWidth,O=v.offsetHeight,P=Math.floor(S),j=Math.floor($);if(u.current.width!==P||u.current.height!==j||u.current.offsetWidth!==E||u.current.offsetHeight!==O){var I={width:P,height:j,offsetWidth:E,offsetHeight:O};u.current=I;var _=E===Math.round(S)?S:E,R=O===Math.round($)?$:O,N=Y(Y({},I),{},{offsetWidth:_,offsetHeight:R});a==null||a(N,v,w),x&&Promise.resolve().then(function(){x(N,v)})}},[]);return c.useEffect(function(){var v=h();return v&&!r&&INe(v,b),function(){return _Ne(v,b)}},[o.current,r]),c.createElement(NNe,{ref:i},d?c.cloneElement(l,{ref:m}):l)}var TNe=c.forwardRef(RNe),MNe="rc-observer-key";function kNe(e,t){var n=e.children,r=typeof n=="function"?[n]:ii(n);return r.map(function(o,i){var a=(o==null?void 0:o.key)||"".concat(MNe,"-").concat(i);return c.createElement(TNe,Ee({},e,{key:a,ref:i===0?t:void 0}),o)})}var Wo=c.forwardRef(kNe);Wo.Collection=cNe;function OP(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 ANe(e){if(Array.isArray(e))return OP(e)}function dY(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function G4(e,t){if(e){if(typeof e=="string")return OP(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)?OP(e,t):void 0}}function DNe(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function Ne(e){return ANe(e)||dY(e)||G4(e)||DNe()}var fY=function(t){return+setTimeout(t,16)},mY=function(t){return clearTimeout(t)};typeof window<"u"&&"requestAnimationFrame"in window&&(fY=function(t){return window.requestAnimationFrame(t)},mY=function(t){return window.cancelAnimationFrame(t)});var sD=0,X4=new Map;function hY(e){X4.delete(e)}var ln=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;sD+=1;var r=sD;function o(i){if(i===0)hY(r),t();else{var a=fY(function(){o(i-1)});X4.set(r,a)}}return o(n),r};ln.cancel=function(e){var t=X4.get(e);return hY(e),mY(t)};function pY(e){if(Array.isArray(e))return e}function LNe(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,o,i,a,s=[],l=!0,u=!1;try{if(i=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(s.push(r.value),s.length!==t);l=!0);}catch(d){u=!0,o=d}finally{try{if(!l&&n.return!=null&&(a=n.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}function gY(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function ue(e,t){return pY(e)||LNe(e,t)||G4(e,t)||gY()}function zg(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 Uo(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function PP(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 lD="data-rc-order",cD="data-rc-priority",zNe="rc-util-key",jP=new Map;function vY(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.mark;return t?t.startsWith("data-")?t:"data-".concat(t):zNe}function mS(e){if(e.attachTo)return e.attachTo;var t=document.querySelector("head");return t||document.body}function FNe(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function Y4(e){return Array.from((jP.get(e)||e).children).filter(function(t){return t.tagName==="STYLE"})}function yY(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!Uo())return null;var n=t.csp,r=t.prepend,o=t.priority,i=o===void 0?0:o,a=FNe(r),s=a==="prependQueue",l=document.createElement("style");l.setAttribute(lD,a),s&&i&&l.setAttribute(cD,"".concat(i)),n!=null&&n.nonce&&(l.nonce=n==null?void 0:n.nonce),l.innerHTML=e;var u=mS(t),d=u.firstChild;if(r){if(s){var f=(t.styles||Y4(u)).filter(function(m){if(!["prepend","prependQueue"].includes(m.getAttribute(lD)))return!1;var h=Number(m.getAttribute(cD)||0);return i>=h});if(f.length)return u.insertBefore(l,f[f.length-1].nextSibling),l}u.insertBefore(l,d)}else u.appendChild(l);return l}function bY(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=mS(t);return(t.styles||Y4(n)).find(function(r){return r.getAttribute(vY(t))===e})}function Fg(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=bY(e,t);if(n){var r=mS(t);r.removeChild(n)}}function BNe(e,t){var n=jP.get(e);if(!n||!PP(document,n)){var r=yY("",t),o=r.parentNode;jP.set(e,o),e.removeChild(r)}}function Dl(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=mS(n),o=Y4(r),i=Y(Y({},n),{},{styles:o});BNe(r,i);var a=bY(t,i);if(a){var s,l;if((s=i.csp)!==null&&s!==void 0&&s.nonce&&a.nonce!==((l=i.csp)===null||l===void 0?void 0:l.nonce)){var u;a.nonce=(u=i.csp)===null||u===void 0?void 0:u.nonce}return a.innerHTML!==e&&(a.innerHTML=e),a}var d=yY(e,i);return d.setAttribute(vY(i),t),d}function HNe(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 Ht(e,t){if(e==null)return{};var n,r,o=HNe(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)===-1&&{}.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function ml(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=new Set;function o(i,a){var s=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,l=r.has(i);if(ir(!l,"Warning: There may be circular references"),l)return!1;if(i===a)return!0;if(n&&s>1)return!1;r.add(i);var u=s+1;if(Array.isArray(i)){if(!Array.isArray(a)||i.length!==a.length)return!1;for(var d=0;d<i.length;d++)if(!o(i[d],a[d],u))return!1;return!0}if(i&&a&&_t(i)==="object"&&_t(a)==="object"){var f=Object.keys(i);return f.length!==Object.keys(a).length?!1:f.every(function(m){return o(i[m],a[m],u)})}return!1}return o(e,t)}var VNe="%";function IP(e){return e.join(VNe)}var WNe=function(){function e(t){lr(this,e),K(this,"instanceId",void 0),K(this,"cache",new Map),K(this,"extracted",new Set),this.instanceId=t}return cr(e,[{key:"get",value:function(n){return this.opGet(IP(n))}},{key:"opGet",value:function(n){return this.cache.get(n)||null}},{key:"update",value:function(n,r){return this.opUpdate(IP(n),r)}},{key:"opUpdate",value:function(n,r){var o=this.cache.get(n),i=r(o);i===null?this.cache.delete(n):this.cache.set(n,i)}}]),e}(),Lm="data-token-hash",Ts="data-css-hash",Tc="__cssinjs_instance__";function UNe(){var e=Math.random().toString(12).slice(2);if(typeof document<"u"&&document.head&&document.body){var t=document.body.querySelectorAll("style[".concat(Ts,"]"))||[],n=document.head.firstChild;Array.from(t).forEach(function(o){o[Tc]=o[Tc]||e,o[Tc]===e&&document.head.insertBefore(o,n)});var r={};Array.from(document.querySelectorAll("style[".concat(Ts,"]"))).forEach(function(o){var i=o.getAttribute(Ts);if(r[i]){if(o[Tc]===e){var a;(a=o.parentNode)===null||a===void 0||a.removeChild(o)}}else r[i]=!0})}return new WNe(e)}var Gv=c.createContext({hashPriority:"low",cache:UNe(),defaultCache:!0});function KNe(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 Z4=function(){function e(){lr(this,e),K(this,"cache",void 0),K(this,"keys",void 0),K(this,"cacheCallTimes",void 0),this.cache=new Map,this.keys=[],this.cacheCallTimes=0}return cr(e,[{key:"size",value:function(){return this.keys.length}},{key:"internalGet",value:function(n){var r,o,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,a={map:this.cache};return n.forEach(function(s){if(!a)a=void 0;else{var l;a=(l=a)===null||l===void 0||(l=l.map)===null||l===void 0?void 0:l.get(s)}}),(r=a)!==null&&r!==void 0&&r.value&&i&&(a.value[1]=this.cacheCallTimes++),(o=a)===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 i=this.keys.reduce(function(u,d){var f=ue(u,2),m=f[1];return o.internalGet(d)[1]<m?[d,o.internalGet(d)[1]]:u},[this.keys[0],this.cacheCallTimes]),a=ue(i,1),s=a[0];this.delete(s)}this.keys.push(n)}var l=this.cache;n.forEach(function(u,d){if(d===n.length-1)l.set(u,{value:[r,o.cacheCallTimes++]});else{var f=l.get(u);f?f.map||(f.map=new Map):l.set(u,{map:new Map}),l=l.get(u).map}})}},{key:"deleteByPath",value:function(n,r){var o=n.get(r[0]);if(r.length===1){var i;return o.map?n.set(r[0],{map:o.map}):n.delete(r[0]),(i=o.value)===null||i===void 0?void 0:i[0]}var a=this.deleteByPath(o.map,r.slice(1));return(!o.map||o.map.size===0)&&!o.value&&n.delete(r[0]),a}},{key:"delete",value:function(n){if(this.has(n))return this.keys=this.keys.filter(function(r){return!KNe(r,n)}),this.deleteByPath(this.cache,n)}}]),e}();K(Z4,"MAX_CACHE_SIZE",20);K(Z4,"MAX_CACHE_OFFSET",5);var uD=0,xY=function(){function e(t){lr(this,e),K(this,"derivatives",void 0),K(this,"id",void 0),this.derivatives=Array.isArray(t)?t:[t],this.id=uD,t.length===0&&(t.length>0,void 0),uD+=1}return cr(e,[{key:"getDerivativeToken",value:function(n){return this.derivatives.reduce(function(r,o){return o(n,r)},void 0)}}]),e}(),H$=new Z4;function Yx(e){var t=Array.isArray(e)?e:[e];return H$.has(t)||H$.set(t,new xY(t)),H$.get(t)}var qNe=new WeakMap,V$={};function GNe(e,t){for(var n=qNe,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(V$)||n.set(V$,e()),n.get(V$)}var dD=new WeakMap;function Fp(e){var t=dD.get(e)||"";return t||(Object.keys(e).forEach(function(n){var r=e[n];t+=n,r instanceof xY?t+=r.id:r&&_t(r)==="object"?t+=Fp(r):t+=r}),t=zg(t),dD.set(e,t)),t}function fD(e,t){return zg("".concat(t,"_").concat(Fp(e)))}var _P=Uo();function Z(e){return typeof e=="number"?"".concat(e,"px"):e}function Zx(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 i=Y(Y({},r),{},K(K({},Lm,t),Ts,n)),a=Object.keys(i).map(function(s){var l=i[s];return l?"".concat(s,'="').concat(l,'"'):null}).filter(function(s){return s}).join(" ");return"<style ".concat(a,">").concat(e,"</style>")}var ib=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()},XNe=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 i=ue(o,2),a=i[0],s=i[1];return"".concat(a,":").concat(s,";")}).join(""),"}"):""},wY=function(t,n,r){var o={},i={};return Object.entries(t).forEach(function(a){var s,l,u=ue(a,2),d=u[0],f=u[1];if(r!=null&&(s=r.preserve)!==null&&s!==void 0&&s[d])i[d]=f;else if((typeof f=="string"||typeof f=="number")&&!(r!=null&&(l=r.ignore)!==null&&l!==void 0&&l[d])){var m,h=ib(d,r==null?void 0:r.prefix);o[h]=typeof f=="number"&&!(r!=null&&(m=r.unitless)!==null&&m!==void 0&&m[d])?"".concat(f,"px"):String(f),i[d]="var(".concat(h,")")}}),[i,XNe(o,n,{scope:r==null?void 0:r.scope})]},mD=Uo()?c.useLayoutEffect:c.useEffect,sn=function(t,n){var r=c.useRef(!0);mD(function(){return t(r.current)},n),mD(function(){return r.current=!1,function(){r.current=!0}},[])},od=function(t,n){sn(function(r){if(!r)return t()},n)},YNe=Y({},sv),hD=YNe.useInsertionEffect,ZNe=function(t,n,r){c.useMemo(t,r),sn(function(){return n(!0)},r)},JNe=hD?function(e,t,n){return hD(function(){return e(),t()},n)}:ZNe,QNe=Y({},sv),eRe=QNe.useInsertionEffect,tRe=function(t){var n=[],r=!1;function o(i){r||n.push(i)}return c.useEffect(function(){return r=!1,function(){r=!0,n.length&&n.forEach(function(i){return i()})}},t),o},nRe=function(){return function(t){t()}},rRe=typeof eRe<"u"?tRe:nRe;function J4(e,t,n,r,o){var i=c.useContext(Gv),a=i.cache,s=[e].concat(Ne(t)),l=IP(s),u=rRe([l]),d=function(p){a.opUpdate(l,function(b){var v=b||[void 0,void 0],y=ue(v,2),x=y[0],w=x===void 0?0:x,C=y[1],S=C,$=S||n(),E=[w,$];return p?p(E):E})};c.useMemo(function(){d()},[l]);var f=a.opGet(l),m=f[1];return JNe(function(){o==null||o(m)},function(h){return d(function(p){var b=ue(p,2),v=b[0],y=b[1];return h&&v===0&&(o==null||o(m)),[v+1,y]}),function(){a.opUpdate(l,function(p){var b=p||[],v=ue(b,2),y=v[0],x=y===void 0?0:y,w=v[1],C=x-1;return C===0?(u(function(){(h||!a.opGet(l))&&(r==null||r(w,!1))}),null):[x-1,w]})}},[l]),m}var oRe={},iRe="css",Mu=new Map;function aRe(e){Mu.set(e,(Mu.get(e)||0)+1)}function sRe(e,t){if(typeof document<"u"){var n=document.querySelectorAll("style[".concat(Lm,'="').concat(e,'"]'));n.forEach(function(r){if(r[Tc]===t){var o;(o=r.parentNode)===null||o===void 0||o.removeChild(r)}})}}var lRe=0;function cRe(e,t){Mu.set(e,(Mu.get(e)||0)-1);var n=new Set;Mu.forEach(function(r,o){r<=0&&n.add(o)}),Mu.size-n.size>lRe&&n.forEach(function(r){sRe(r,t),Mu.delete(r)})}var SY=function(t,n,r,o){var i=r.getDerivativeToken(t),a=Y(Y({},i),n);return o&&(a=o(a)),a},CY="token";function uRe(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=c.useContext(Gv),o=r.cache.instanceId,i=r.container,a=n.salt,s=a===void 0?"":a,l=n.override,u=l===void 0?oRe:l,d=n.formatToken,f=n.getComputedToken,m=n.cssVar,h=GNe(function(){return Object.assign.apply(Object,[{}].concat(Ne(t)))},t),p=Fp(h),b=Fp(u),v=m?Fp(m):"",y=J4(CY,[s,e.id,p,b,v],function(){var x,w=f?f(h,u,e):SY(h,u,e,d),C=Y({},w),S="";if(m){var $=wY(w,m.key,{prefix:m.prefix,ignore:m.ignore,unitless:m.unitless,preserve:m.preserve}),E=ue($,2);w=E[0],S=E[1]}var O=fD(w,s);w._tokenKey=O,C._tokenKey=fD(C,s);var P=(x=m==null?void 0:m.key)!==null&&x!==void 0?x:O;w._themeKey=P,aRe(P);var j="".concat(iRe,"-").concat(zg(O));return w._hashId=j,[w,j,C,S,(m==null?void 0:m.key)||""]},function(x){cRe(x[0]._themeKey,o)},function(x){var w=ue(x,4),C=w[0],S=w[3];if(m&&S){var $=Dl(S,zg("css-variables-".concat(C._themeKey)),{mark:Ts,prepend:"queue",attachTo:i,priority:-999});$[Tc]=o,$.setAttribute(Lm,C._themeKey)}});return y}var dRe=function(t,n,r){var o=ue(t,5),i=o[2],a=o[3],s=o[4],l=r||{},u=l.plain;if(!a)return null;var d=i._tokenKey,f=-999,m={"data-rc-order":"prependQueue","data-rc-priority":"".concat(f)},h=Zx(a,s,d,m,u);return[f,d,h]},fRe={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},$Y="comm",EY="rule",OY="decl",mRe="@import",hRe="@namespace",pRe="@keyframes",gRe="@layer",PY=Math.abs,Q4=String.fromCharCode;function jY(e){return e.trim()}function ab(e,t,n){return e.replace(t,n)}function vRe(e,t,n){return e.indexOf(t,n)}function sm(e,t){return e.charCodeAt(t)|0}function zm(e,t,n){return e.slice(t,n)}function el(e){return e.length}function yRe(e){return e.length}function ry(e,t){return t.push(e),e}var hS=1,Fm=1,IY=0,ls=0,lo=0,ph="";function eT(e,t,n,r,o,i,a,s){return{value:e,root:t,parent:n,type:r,props:o,children:i,line:hS,column:Fm,length:a,return:"",siblings:s}}function bRe(){return lo}function xRe(){return lo=ls>0?sm(ph,--ls):0,Fm--,lo===10&&(Fm=1,hS--),lo}function Ms(){return lo=ls<IY?sm(ph,ls++):0,Fm++,lo===10&&(Fm=1,hS++),lo}function Mc(){return sm(ph,ls)}function sb(){return ls}function pS(e,t){return zm(ph,e,t)}function Bg(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 wRe(e){return hS=Fm=1,IY=el(ph=e),ls=0,[]}function SRe(e){return ph="",e}function W$(e){return jY(pS(ls-1,NP(e===91?e+2:e===40?e+1:e)))}function CRe(e){for(;(lo=Mc())&&lo<33;)Ms();return Bg(e)>2||Bg(lo)>3?"":" "}function $Re(e,t){for(;--t&&Ms()&&!(lo<48||lo>102||lo>57&&lo<65||lo>70&&lo<97););return pS(e,sb()+(t<6&&Mc()==32&&Ms()==32))}function NP(e){for(;Ms();)switch(lo){case e:return ls;case 34:case 39:e!==34&&e!==39&&NP(lo);break;case 40:e===41&&NP(e);break;case 92:Ms();break}return ls}function ERe(e,t){for(;Ms()&&e+lo!==57;)if(e+lo===84&&Mc()===47)break;return"/*"+pS(t,ls-1)+"*"+Q4(e===47?e:Ms())}function ORe(e){for(;!Bg(Mc());)Ms();return pS(e,ls)}function PRe(e){return SRe(lb("",null,null,null,[""],e=wRe(e),0,[0],e))}function lb(e,t,n,r,o,i,a,s,l){for(var u=0,d=0,f=a,m=0,h=0,p=0,b=1,v=1,y=1,x=0,w="",C=o,S=i,$=r,E=w;v;)switch(p=x,x=Ms()){case 40:if(p!=108&&sm(E,f-1)==58){vRe(E+=ab(W$(x),"&","&\f"),"&\f",PY(u?s[u-1]:0))!=-1&&(y=-1);break}case 34:case 39:case 91:E+=W$(x);break;case 9:case 10:case 13:case 32:E+=CRe(p);break;case 92:E+=$Re(sb()-1,7);continue;case 47:switch(Mc()){case 42:case 47:ry(jRe(ERe(Ms(),sb()),t,n,l),l),(Bg(p||1)==5||Bg(Mc()||1)==5)&&el(E)&&zm(E,-1,void 0)!==" "&&(E+=" ");break;default:E+="/"}break;case 123*b:s[u++]=el(E)*y;case 125*b:case 59:case 0:switch(x){case 0:case 125:v=0;case 59+d:y==-1&&(E=ab(E,/\f/g,"")),h>0&&(el(E)-f||b===0&&p===47)&&ry(h>32?gD(E+";",r,n,f-1,l):gD(ab(E," ","")+";",r,n,f-2,l),l);break;case 59:E+=";";default:if(ry($=pD(E,t,n,u,d,o,s,w,C=[],S=[],f,i),i),x===123)if(d===0)lb(E,t,$,$,C,i,f,s,S);else{switch(m){case 99:if(sm(E,3)===110)break;case 108:if(sm(E,2)===97)break;default:d=0;case 100:case 109:case 115:}d?lb(e,$,$,r&&ry(pD(e,$,$,0,0,o,s,w,o,C=[],f,S),S),o,S,f,s,r?C:S):lb(E,$,$,$,[""],S,0,s,S)}}u=d=h=0,b=y=1,w=E="",f=a;break;case 58:f=1+el(E),h=p;default:if(b<1){if(x==123)--b;else if(x==125&&b++==0&&xRe()==125)continue}switch(E+=Q4(x),x*b){case 38:y=d>0?1:(E+="\f",-1);break;case 44:s[u++]=(el(E)-1)*y,y=1;break;case 64:Mc()===45&&(E+=W$(Ms())),m=Mc(),d=f=el(w=E+=ORe(sb())),x++;break;case 45:p===45&&el(E)==2&&(b=0)}}return i}function pD(e,t,n,r,o,i,a,s,l,u,d,f){for(var m=o-1,h=o===0?i:[""],p=yRe(h),b=0,v=0,y=0;b<r;++b)for(var x=0,w=zm(e,m+1,m=PY(v=a[b])),C=e;x<p;++x)(C=jY(v>0?h[x]+" "+w:ab(w,/&\f/g,h[x])))&&(l[y++]=C);return eT(e,t,n,o===0?EY:s,l,u,d,f)}function jRe(e,t,n,r){return eT(e,t,n,$Y,Q4(bRe()),zm(e,2,-2),0,r)}function gD(e,t,n,r,o){return eT(e,t,n,OY,zm(e,0,r),zm(e,r+1,-1),r,o)}function RP(e,t){for(var n="",r=0;r<e.length;r++)n+=t(e[r],r,e,t)||"";return n}function IRe(e,t,n,r){switch(e.type){case gRe:if(e.children.length)break;case mRe:case hRe:case OY:return e.return=e.return||e.value;case $Y:return"";case pRe:return e.return=e.value+"{"+RP(e.children,r)+"}";case EY:if(!el(e.value=e.props.join(",")))return""}return el(n=RP(e.children,r))?e.return=e.value+"{"+n+"}":""}var vD="data-ant-cssinjs-cache-path",_Y="_FILE_STYLE__",id,NY=!0;function _Re(){if(!id&&(id={},Uo())){var e=document.createElement("div");e.className=vD,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 i=o.split(":"),a=ue(i,2),s=a[0],l=a[1];id[s]=l});var n=document.querySelector("style[".concat(vD,"]"));if(n){var r;NY=!1,(r=n.parentNode)===null||r===void 0||r.removeChild(n)}document.body.removeChild(e)}}function NRe(e){return _Re(),!!id[e]}function RRe(e){var t=id[e],n=null;if(t&&Uo())if(NY)n=_Y;else{var r=document.querySelector("style[".concat(Ts,'="').concat(id[e],'"]'));r?n=r.innerHTML:delete id[e]}return[n,t]}var TRe="_skip_check_",RY="_multi_value_";function cb(e){var t=RP(PRe(e),IRe);return t.replace(/\{%%%\:[^;];}/g,";")}function MRe(e){return _t(e)==="object"&&e&&(TRe in e||RY in e)}function yD(e,t,n){if(!t)return e;var r=".".concat(t),o=n==="low"?":where(".concat(r,")"):r,i=e.split(",").map(function(a){var s,l=a.trim().split(/\s+/),u=l[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(Ne(l.slice(1))).join(" ")});return i.join(",")}var kRe=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,i=r.injectHash,a=r.parentSelectors,s=n.hashId,l=n.layer;n.path;var u=n.hashPriority,d=n.transformers,f=d===void 0?[]:d;n.linters;var m="",h={};function p(y){var x=y.getName(s);if(!h[x]){var w=e(y.style,n,{root:!1,parentSelectors:a}),C=ue(w,1),S=C[0];h[x]="@keyframes ".concat(y.getName(s)).concat(S)}}function b(y){var x=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return y.forEach(function(w){Array.isArray(w)?b(w,x):w&&x.push(w)}),x}var v=b(Array.isArray(t)?t:[t]);return v.forEach(function(y){var x=typeof y=="string"&&!o?{}:y;if(typeof x=="string")m+="".concat(x,`
`);else if(x._keyframe)p(x);else{var w=f.reduce(function(C,S){var $;return(S==null||($=S.visit)===null||$===void 0?void 0:$.call(S,C))||C},x);Object.keys(w).forEach(function(C){var S=w[C];if(_t(S)==="object"&&S&&(C!=="animationName"||!S._keyframe)&&!MRe(S)){var $=!1,E=C.trim(),O=!1;(o||i)&&s?E.startsWith("@")?$=!0:E==="&"?E=yD("",s,u):E=yD(C,s,u):o&&!s&&(E==="&"||E==="")&&(E="",O=!0);var P=e(S,n,{root:O,injectHash:$,parentSelectors:[].concat(Ne(a),[E])}),j=ue(P,2),I=j[0],_=j[1];h=Y(Y({},h),_),m+="".concat(E).concat(I)}else{let A=function(M,T){var k=M.replace(/[A-Z]/g,function(L){return"-".concat(L.toLowerCase())}),D=T;!fRe[M]&&typeof D=="number"&&D!==0&&(D="".concat(D,"px")),M==="animationName"&&T!==null&&T!==void 0&&T._keyframe&&(p(T),D=T.getName(s)),m+="".concat(k,":").concat(D,";")};var R,N=(R=S==null?void 0:S.value)!==null&&R!==void 0?R:S;_t(S)==="object"&&S!==null&&S!==void 0&&S[RY]&&Array.isArray(N)?N.forEach(function(M){A(C,M)}):A(C,N)}})}}),o?l&&(m&&(m="@layer ".concat(l.name," {").concat(m,"}")),l.dependencies&&(h["@layer ".concat(l.name)]=l.dependencies.map(function(y){return"@layer ".concat(y,", ").concat(l.name,";")}).join(`
`))):m="{".concat(m,"}"),[m,h]};function TY(e,t){return zg("".concat(e.join("%")).concat(t))}function ARe(){return null}var MY="style";function TP(e,t){var n=e.token,r=e.path,o=e.hashId,i=e.layer,a=e.nonce,s=e.clientOnly,l=e.order,u=l===void 0?0:l,d=c.useContext(Gv),f=d.autoClear;d.mock;var m=d.defaultCache,h=d.hashPriority,p=d.container,b=d.ssrInline,v=d.transformers,y=d.linters,x=d.cache,w=d.layer,C=n._tokenKey,S=[C];w&&S.push("layer"),S.push.apply(S,Ne(r));var $=_P,E=J4(MY,S,function(){var _=S.join("|");if(NRe(_)){var R=RRe(_),N=ue(R,2),A=N[0],M=N[1];if(A)return[A,C,M,{},s,u]}var T=t(),k=kRe(T,{hashId:o,hashPriority:h,layer:w?i:void 0,path:r.join("-"),transformers:v,linters:y}),D=ue(k,2),L=D[0],B=D[1],H=cb(L),F=TY(S,H);return[H,C,F,B,s,u]},function(_,R){var N=ue(_,3),A=N[2];(R||f)&&_P&&Fg(A,{mark:Ts,attachTo:p})},function(_){var R=ue(_,4),N=R[0];R[1];var A=R[2],M=R[3];if($&&N!==_Y){var T={mark:Ts,prepend:w?!1:"queue",attachTo:p,priority:u},k=typeof a=="function"?a():a;k&&(T.csp={nonce:k});var D=[],L=[];Object.keys(M).forEach(function(H){H.startsWith("@layer")?D.push(H):L.push(H)}),D.forEach(function(H){Dl(cb(M[H]),"_layer-".concat(H),Y(Y({},T),{},{prepend:!0}))});var B=Dl(N,A,T);B[Tc]=x.instanceId,B.setAttribute(Lm,C),L.forEach(function(H){Dl(cb(M[H]),"_effect-".concat(H),T)})}}),O=ue(E,3),P=O[0],j=O[1],I=O[2];return function(_){var R;return!b||$||!m?R=c.createElement(ARe,null):R=c.createElement("style",Ee({},K(K({},Lm,j),Ts,I),{dangerouslySetInnerHTML:{__html:P}})),c.createElement(c.Fragment,null,R,_)}}var DRe=function(t,n,r){var o=ue(t,6),i=o[0],a=o[1],s=o[2],l=o[3],u=o[4],d=o[5],f=r||{},m=f.plain;if(u)return null;var h=i,p={"data-rc-order":"prependQueue","data-rc-priority":"".concat(d)};return h=Zx(i,a,s,p,m),l&&Object.keys(l).forEach(function(b){if(!n[b]){n[b]=!0;var v=cb(l[b]),y=Zx(v,a,"_effect-".concat(b),p,m);b.startsWith("@layer")?h=y+h:h+=y}}),[d,s,h]},kY="cssVar",LRe=function(t,n){var r=t.key,o=t.prefix,i=t.unitless,a=t.ignore,s=t.token,l=t.scope,u=l===void 0?"":l,d=c.useContext(Gv),f=d.cache.instanceId,m=d.container,h=s._tokenKey,p=[].concat(Ne(t.path),[r,u,h]),b=J4(kY,p,function(){var v=n(),y=wY(v,r,{prefix:o,unitless:i,ignore:a,scope:u}),x=ue(y,2),w=x[0],C=x[1],S=TY(p,C);return[w,C,S,r]},function(v){var y=ue(v,3),x=y[2];_P&&Fg(x,{mark:Ts,attachTo:m})},function(v){var y=ue(v,3),x=y[1],w=y[2];if(x){var C=Dl(x,w,{mark:Ts,prepend:"queue",attachTo:m,priority:-999});C[Tc]=f,C.setAttribute(Lm,r)}});return b},zRe=function(t,n,r){var o=ue(t,4),i=o[1],a=o[2],s=o[3],l=r||{},u=l.plain;if(!i)return null;var d=-999,f={"data-rc-order":"prependQueue","data-rc-priority":"".concat(d)},m=Zx(i,s,a,f,u);return[d,a,m]};K(K(K({},MY,DRe),CY,dRe),kY,zRe);var gn=function(){function e(t,n){lr(this,e),K(this,"name",void 0),K(this,"style",void 0),K(this,"_keyframe",!0),this.name=t,this.style=n}return cr(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 uf(e){return e.notSplit=!0,e}uf(["borderTop","borderBottom"]),uf(["borderTop"]),uf(["borderBottom"]),uf(["borderLeft","borderRight"]),uf(["borderLeft"]),uf(["borderRight"]);var tT=c.createContext({});function AY(e){return pY(e)||dY(e)||G4(e)||gY()}function Ai(e,t){for(var n=e,r=0;r<t.length;r+=1){if(n==null)return;n=n[t[r]]}return n}function DY(e,t,n,r){if(!t.length)return n;var o=AY(t),i=o[0],a=o.slice(1),s;return!e&&typeof i=="number"?s=[]:Array.isArray(e)?s=Ne(e):s=Y({},e),r&&n===void 0&&a.length===1?delete s[i][a[0]]:s[i]=DY(s[i],a,n,r),s}function Ka(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return t.length&&r&&n===void 0&&!Ai(e,t.slice(0,-1))?e:DY(e,t,n,r)}function FRe(e){return _t(e)==="object"&&e!==null&&Object.getPrototypeOf(e)===Object.prototype}function bD(e){return Array.isArray(e)?[]:{}}var BRe=typeof Reflect>"u"?Object.keys:Reflect.ownKeys;function Bf(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];var r=bD(t[0]);return t.forEach(function(o){function i(a,s){var l=new Set(s),u=Ai(o,a),d=Array.isArray(u);if(d||FRe(u)){if(!l.has(u)){l.add(u);var f=Ai(r,a);d?r=Ka(r,a,[]):(!f||_t(f)!=="object")&&(r=Ka(r,a,bD(u))),BRe(u).forEach(function(m){i([].concat(Ne(a),[m]),l)})}}else r=Ka(r,a,u)}i([])}),r}function HRe(){}const VRe=c.createContext({}),pu=()=>{const e=()=>{};return e.deprecated=HRe,e},LY=c.createContext(void 0);var zY={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"},WRe={yearFormat:"YYYY",dayFormat:"D",cellMeridiemFormat:"A",monthBeforeYear:!0},URe=Y(Y({},WRe),{},{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 FY={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},Jx={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"]},URe),timePickerLocale:Object.assign({},FY)},ha="${label} is not a valid ${type}",cs={locale:"en",Pagination:zY,DatePicker:Jx,TimePicker:FY,Calendar:Jx,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:ha,method:ha,array:ha,object:ha,number:ha,date:ha,boolean:ha,integer:ha,float:ha,regexp:ha,email:ha,url:ha,hex:ha},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 ub=Object.assign({},cs.Modal),db=[];const xD=()=>db.reduce((e,t)=>Object.assign(Object.assign({},e),t),cs.Modal);function KRe(e){if(e){const t=Object.assign({},e);return db.push(t),ub=xD(),()=>{db=db.filter(n=>n!==t),ub=xD()}}ub=Object.assign({},cs.Modal)}function BY(){return ub}const nT=c.createContext(void 0),ca=(e,t)=>{const n=c.useContext(nT),r=c.useMemo(()=>{var i;const a=t||cs[e],s=(i=n==null?void 0:n[e])!==null&&i!==void 0?i:{};return Object.assign(Object.assign({},typeof a=="function"?a():a),s||{})},[e,t,n]),o=c.useMemo(()=>{const i=n==null?void 0:n.locale;return n!=null&&n.exist&&!i?cs.locale:i},[n]);return[r,o]},qRe="internalMark",GRe=e=>{const{locale:t={},children:n,_ANT_MARK__:r}=e;c.useEffect(()=>KRe(t==null?void 0:t.Modal),[t]);const o=c.useMemo(()=>Object.assign(Object.assign({},t),{exist:!0}),[t]);return c.createElement(nT.Provider,{value:o},n)},rT={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"},Bm=Object.assign(Object.assign({},rT),{colorPrimary:"#1677ff",colorSuccess:"#52c41a",colorWarning:"#faad14",colorError:"#ff4d4f",colorInfo:"#1677ff",colorLink:"",colorTextBase:"",colorBgBase:"",fontFamily:`-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
'Noto Sans', sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol',
'Noto Color Emoji'`,fontFamilyCode:"'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, Courier, monospace",fontSize:14,lineWidth:1,lineType:"solid",motionUnit:.1,motionBase:0,motionEaseOutCirc:"cubic-bezier(0.08, 0.82, 0.17, 1)",motionEaseInOutCirc:"cubic-bezier(0.78, 0.14, 0.15, 0.86)",motionEaseOut:"cubic-bezier(0.215, 0.61, 0.355, 1)",motionEaseInOut:"cubic-bezier(0.645, 0.045, 0.355, 1)",motionEaseOutBack:"cubic-bezier(0.12, 0.4, 0.29, 1.46)",motionEaseInBack:"cubic-bezier(0.71, -0.46, 0.88, 0.6)",motionEaseInQuint:"cubic-bezier(0.755, 0.05, 0.855, 0.06)",motionEaseOutQuint:"cubic-bezier(0.23, 1, 0.32, 1)",borderRadius:6,sizeUnit:4,sizeStep:4,sizePopupArrow:16,controlHeight:32,zIndexBase:0,zIndexPopupBase:1e3,opacityImage:1,wireframe:!1,motion:!0}),Mo=Math.round;function U$(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 wD=(e,t,n)=>n===0?e:e/100;function rp(e,t){const n=t||255;return e>n?n:e<0?0:e}let On=class HY{constructor(t){K(this,"isValid",!0),K(this,"r",0),K(this,"g",0),K(this,"b",0),K(this,"a",1),K(this,"_h",void 0),K(this,"_s",void 0),K(this,"_l",void 0),K(this,"_v",void 0),K(this,"_max",void 0),K(this,"_min",void 0),K(this,"_brightness",void 0);function n(r){return r[0]in t&&r[1]in t&&r[2]in t}if(t)if(typeof t=="string"){let o=function(i){return r.startsWith(i)};const r=t.trim();/^#?[A-F\d]{3,8}$/i.test(r)?this.fromHexString(r):o("rgb")?this.fromRgbString(r):o("hsl")?this.fromHslString(r):(o("hsv")||o("hsb"))&&this.fromHsvString(r)}else if(t instanceof HY)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=rp(t.r),this.g=rp(t.g),this.b=rp(t.b),this.a=typeof t.a=="number"?rp(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(i){const a=i/255;return a<=.03928?a/12.92:Math.pow((a+.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=Mo(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,i=s=>(r[s]-this[s])*o+this[s],a={r:Mo(i("r")),g:Mo(i("g")),b:Mo(i("b")),a:Mo(i("a")*100)/100};return this._c(a)}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=i=>Mo((this[i]*this.a+n[i]*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 i=Mo(this.a*255).toString(16);t+=i.length===2?i:"0"+i}return t}toHsl(){return{h:this.getHue(),s:this.getSaturation(),l:this.getLightness(),a:this.a}}toHslString(){const t=this.getHue(),n=Mo(this.getSaturation()*100),r=Mo(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]=rp(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,i){return parseInt(n[o]+n[i||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=Mo(r*255);this.r=m,this.g=m,this.b=m}let i=0,a=0,s=0;const l=t/60,u=(1-Math.abs(2*r-1))*n,d=u*(1-Math.abs(l%2-1));l>=0&&l<1?(i=u,a=d):l>=1&&l<2?(i=d,a=u):l>=2&&l<3?(a=u,s=d):l>=3&&l<4?(a=d,s=u):l>=4&&l<5?(i=d,s=u):l>=5&&l<6&&(i=u,s=d);const f=r-u/2;this.r=Mo((i+f)*255),this.g=Mo((a+f)*255),this.b=Mo((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 i=Mo(r*255);if(this.r=i,this.g=i,this.b=i,n<=0)return;const a=t/60,s=Math.floor(a),l=a-s,u=Mo(r*(1-n)*255),d=Mo(r*(1-n*l)*255),f=Mo(r*(1-n*(1-l))*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=U$(t,wD);this.fromHsv({h:n[0],s:n[1],v:n[2],a:n[3]})}fromHslString(t){const n=U$(t,wD);this.fromHsl({h:n[0],s:n[1],l:n[2],a:n[3]})}fromRgbString(t){const n=U$(t,(r,o)=>o.includes("%")?Mo(r/100*255):r);this.r=n[0],this.g=n[1],this.b=n[2],this.a=n[3]}};var oy=2,SD=.16,XRe=.05,YRe=.05,ZRe=.15,VY=5,WY=4,JRe=[{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 CD(e,t,n){var r;return Math.round(e.h)>=60&&Math.round(e.h)<=240?r=n?Math.round(e.h)-oy*t:Math.round(e.h)+oy*t:r=n?Math.round(e.h)+oy*t:Math.round(e.h)-oy*t,r<0?r+=360:r>=360&&(r-=360),r}function $D(e,t,n){if(e.h===0&&e.s===0)return e.s;var r;return n?r=e.s-SD*t:t===WY?r=e.s+SD:r=e.s+XRe*t,r>1&&(r=1),n&&t===VY&&r>.1&&(r=.1),r<.06&&(r=.06),Math.round(r*100)/100}function ED(e,t,n){var r;return n?r=e.v+YRe*t:r=e.v-ZRe*t,r=Math.max(0,Math.min(1,r)),Math.round(r*100)/100}function _d(e){for(var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=[],r=new On(e),o=r.toHsv(),i=VY;i>0;i-=1){var a=new On({h:CD(o,i,!0),s:$D(o,i,!0),v:ED(o,i,!0)});n.push(a)}n.push(r);for(var s=1;s<=WY;s+=1){var l=new On({h:CD(o,s),s:$D(o,s),v:ED(o,s)});n.push(l)}return t.theme==="dark"?JRe.map(function(u){var d=u.index,f=u.amount;return new On(t.backgroundColor||"#141414").mix(n[d],f).toHexString()}):n.map(function(u){return u.toHexString()})}var lm={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"},MP=["#fff1f0","#ffccc7","#ffa39e","#ff7875","#ff4d4f","#f5222d","#cf1322","#a8071a","#820014","#5c0011"];MP.primary=MP[5];var kP=["#fff2e8","#ffd8bf","#ffbb96","#ff9c6e","#ff7a45","#fa541c","#d4380d","#ad2102","#871400","#610b00"];kP.primary=kP[5];var AP=["#fff7e6","#ffe7ba","#ffd591","#ffc069","#ffa940","#fa8c16","#d46b08","#ad4e00","#873800","#612500"];AP.primary=AP[5];var Qx=["#fffbe6","#fff1b8","#ffe58f","#ffd666","#ffc53d","#faad14","#d48806","#ad6800","#874d00","#613400"];Qx.primary=Qx[5];var DP=["#feffe6","#ffffb8","#fffb8f","#fff566","#ffec3d","#fadb14","#d4b106","#ad8b00","#876800","#614700"];DP.primary=DP[5];var LP=["#fcffe6","#f4ffb8","#eaff8f","#d3f261","#bae637","#a0d911","#7cb305","#5b8c00","#3f6600","#254000"];LP.primary=LP[5];var zP=["#f6ffed","#d9f7be","#b7eb8f","#95de64","#73d13d","#52c41a","#389e0d","#237804","#135200","#092b00"];zP.primary=zP[5];var FP=["#e6fffb","#b5f5ec","#87e8de","#5cdbd3","#36cfc9","#13c2c2","#08979c","#006d75","#00474f","#002329"];FP.primary=FP[5];var Hm=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];Hm.primary=Hm[5];var BP=["#f0f5ff","#d6e4ff","#adc6ff","#85a5ff","#597ef7","#2f54eb","#1d39c4","#10239e","#061178","#030852"];BP.primary=BP[5];var HP=["#f9f0ff","#efdbff","#d3adf7","#b37feb","#9254de","#722ed1","#531dab","#391085","#22075e","#120338"];HP.primary=HP[5];var VP=["#fff0f6","#ffd6e7","#ffadd2","#ff85c0","#f759ab","#eb2f96","#c41d7f","#9e1068","#780650","#520339"];VP.primary=VP[5];var WP=["#a6a6a6","#999999","#8c8c8c","#808080","#737373","#666666","#404040","#1a1a1a","#000000","#000000"];WP.primary=WP[5];var K$={red:MP,volcano:kP,orange:AP,gold:Qx,yellow:DP,lime:LP,green:zP,cyan:FP,blue:Hm,geekblue:BP,purple:HP,magenta:VP,grey:WP};function UY(e,{generateColorPalettes:t,generateNeutralColorPalettes:n}){const{colorSuccess:r,colorWarning:o,colorError:i,colorInfo:a,colorPrimary:s,colorBgBase:l,colorTextBase:u}=e,d=t(s),f=t(r),m=t(o),h=t(i),p=t(a),b=n(l,u),v=e.colorLink||e.colorInfo,y=t(v),x=new On(h[1]).mix(new On(h[3]),50).toHexString();return Object.assign(Object.assign({},b),{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:h[1],colorErrorBgHover:h[2],colorErrorBgFilledHover:x,colorErrorBgActive:h[3],colorErrorBorder:h[3],colorErrorBorderHover:h[4],colorErrorHover:h[5],colorError:h[6],colorErrorActive:h[7],colorErrorTextHover:h[8],colorErrorText:h[9],colorErrorTextActive:h[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:p[1],colorInfoBgHover:p[2],colorInfoBorder:p[3],colorInfoBorderHover:p[4],colorInfoHover:p[4],colorInfo:p[6],colorInfoActive:p[7],colorInfoTextHover:p[8],colorInfoText:p[9],colorInfoTextActive:p[10],colorLinkHover:y[4],colorLink:y[6],colorLinkActive:y[7],colorBgMask:new On("#000").setA(.45).toRgbString(),colorWhite:"#fff"})}const QRe=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 e4e(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},QRe(r))}const KY=e=>{const{controlHeight:t}=e;return{controlHeightSM:t*.75,controlHeightXS:t*.5,controlHeightLG:t*1.25}};function fb(e){return(e+8)/e}function t4e(e){const t=Array.from({length:10}).map((n,r)=>{const o=r-1,i=e*Math.pow(Math.E,o/5),a=r>1?Math.floor(i):Math.ceil(i);return Math.floor(a/2)*2});return t[1]=e,t.map(n=>({size:n,lineHeight:fb(n)}))}const qY=e=>{const t=t4e(e),n=t.map(d=>d.size),r=t.map(d=>d.lineHeight),o=n[1],i=n[0],a=n[2],s=r[1],l=r[0],u=r[2];return{fontSizeSM:i,fontSize:o,fontSizeLG:a,fontSizeXL:n[3],fontSizeHeading1:n[6],fontSizeHeading2:n[5],fontSizeHeading3:n[4],fontSizeHeading4:n[3],fontSizeHeading5:n[2],lineHeight:s,lineHeightLG:u,lineHeightSM:l,fontHeight:Math.round(s*o),fontHeightLG:Math.round(u*a),fontHeightSM:Math.round(l*i),lineHeightHeading1:r[6],lineHeightHeading2:r[5],lineHeightHeading3:r[4],lineHeightHeading4:r[3],lineHeightHeading5:r[2]}};function n4e(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 La=(e,t)=>new On(e).setA(t).toRgbString(),op=(e,t)=>new On(e).darken(t).toHexString(),r4e=e=>{const t=_d(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]}},o4e=(e,t)=>{const n=e||"#fff",r=t||"#000";return{colorBgBase:n,colorTextBase:r,colorText:La(r,.88),colorTextSecondary:La(r,.65),colorTextTertiary:La(r,.45),colorTextQuaternary:La(r,.25),colorFill:La(r,.15),colorFillSecondary:La(r,.06),colorFillTertiary:La(r,.04),colorFillQuaternary:La(r,.02),colorBgSolid:La(r,1),colorBgSolidHover:La(r,.75),colorBgSolidActive:La(r,.95),colorBgLayout:op(n,4),colorBgContainer:op(n,0),colorBgElevated:op(n,0),colorBgSpotlight:La(r,.85),colorBgBlur:"transparent",colorBorder:op(n,15),colorBorderSecondary:op(n,6)}};function gS(e){lm.pink=lm.magenta,K$.pink=K$.magenta;const t=Object.keys(rT).map(n=>{const r=e[n]===lm[n]?K$[n]:_d(e[n]);return Array.from({length:10},()=>1).reduce((o,i,a)=>(o[`${n}-${a+1}`]=r[a],o[`${n}${a+1}`]=r[a],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),UY(e,{generateColorPalettes:r4e,generateNeutralColorPalettes:o4e})),qY(e.fontSize)),n4e(e)),KY(e)),e4e(e))}const oT=Yx(gS),Hg={token:Bm,override:{override:Bm},hashed:!0},iT=ce.createContext(Hg),Vg="ant",vS="anticon",i4e=["outlined","borderless","filled","underlined"],a4e=(e,t)=>t||(e?`${Vg}-${e}`:Vg),kt=c.createContext({getPrefixCls:a4e,iconPrefixCls:vS}),{Consumer:Dit}=kt,OD={};function Br(e){const t=c.useContext(kt),{getPrefixCls:n,direction:r,getPopupContainer:o}=t,i=t[e];return Object.assign(Object.assign({classNames:OD,styles:OD},i),{getPrefixCls:n,direction:r,getPopupContainer:o})}const s4e=`-ant-${Date.now()}-${Math.random()}`;function l4e(e,t){const n={},r=(a,s)=>{let l=a.clone();return l=(s==null?void 0:s(l))||l,l.toRgbString()},o=(a,s)=>{const l=new On(a),u=_d(l.toRgbString());n[`${s}-color`]=r(l),n[`${s}-color-disabled`]=u[1],n[`${s}-color-hover`]=u[4],n[`${s}-color-active`]=u[6],n[`${s}-color-outline`]=l.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 a=new On(t.primaryColor),s=_d(a.toRgbString());s.forEach((u,d)=>{n[`primary-${d+1}`]=u}),n["primary-color-deprecated-l-35"]=r(a,u=>u.lighten(35)),n["primary-color-deprecated-l-20"]=r(a,u=>u.lighten(20)),n["primary-color-deprecated-t-20"]=r(a,u=>u.tint(20)),n["primary-color-deprecated-t-50"]=r(a,u=>u.tint(50)),n["primary-color-deprecated-f-12"]=r(a,u=>u.setA(u.a*.12));const l=new On(s[0]);n["primary-color-active-deprecated-f-30"]=r(l,u=>u.setA(u.a*.3)),n["primary-color-active-deprecated-d-02"]=r(l,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"),`
  :root {
    ${Object.keys(n).map(a=>`--${e}-${a}: ${n[a]};`).join(`
`)}
  }
  `.trim()}function c4e(e,t){const n=l4e(e,t);Uo()&&Dl(n,`${s4e}-dynamic-theme`)}const ai=c.createContext(!1),aT=({children:e,disabled:t})=>{const n=c.useContext(ai);return c.createElement(ai.Provider,{value:t??n},e)},Nd=c.createContext(void 0),u4e=({children:e,size:t})=>{const n=c.useContext(Nd);return c.createElement(Nd.Provider,{value:t||n},e)};function d4e(){const e=c.useContext(ai),t=c.useContext(Nd);return{componentDisabled:e,componentSize:t}}var GY=cr(function e(){lr(this,e)}),XY="CALC_UNIT",f4e=new RegExp(XY,"g");function q$(e){return typeof e=="number"?"".concat(e).concat(XY):e}var m4e=function(e){Ta(n,e);var t=gs(n);function n(r,o){var i;lr(this,n),i=t.call(this),K(Ct(i),"result",""),K(Ct(i),"unitlessCssVar",void 0),K(Ct(i),"lowPriority",void 0);var a=_t(r);return i.unitlessCssVar=o,r instanceof n?i.result="(".concat(r.result,")"):a==="number"?i.result=q$(r):a==="string"&&(i.result=r),i}return cr(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(q$(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(q$(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 i=this,a=o||{},s=a.unit,l=!0;return typeof s=="boolean"?l=s:Array.from(this.unitlessCssVar).some(function(u){return i.result.includes(u)})&&(l=!1),this.result=this.result.replace(f4e,l?"px":""),typeof this.lowPriority<"u"?"calc(".concat(this.result,")"):this.result}}]),n}(GY),h4e=function(e){Ta(n,e);var t=gs(n);function n(r){var o;return lr(this,n),o=t.call(this),K(Ct(o),"result",0),r instanceof n?o.result=r.result:typeof r=="number"&&(o.result=r),o}return cr(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}(GY),p4e=function(t,n){var r=t==="css"?m4e:h4e;return function(o){return new r(o,n)}},PD=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 fn(e){var t=c.useRef();t.current=e;var n=c.useCallback(function(){for(var r,o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return(r=t.current)===null||r===void 0?void 0:r.call.apply(r,[t].concat(i))},[]);return n}function Rd(e){var t=c.useRef(!1),n=c.useState(e),r=ue(n,2),o=r[0],i=r[1];c.useEffect(function(){return t.current=!1,function(){t.current=!0}},[]);function a(s,l){l&&t.current||i(s)}return[o,a]}function G$(e){return e!==void 0}function kn(e,t){var n=t||{},r=n.defaultValue,o=n.value,i=n.onChange,a=n.postState,s=Rd(function(){return G$(o)?o:G$(r)?typeof r=="function"?r():r:typeof e=="function"?e():e}),l=ue(s,2),u=l[0],d=l[1],f=o!==void 0?o:u,m=a?a(f):f,h=fn(i),p=Rd([f]),b=ue(p,2),v=b[0],y=b[1];od(function(){var w=v[0];u!==w&&h(u,w)},[v]),od(function(){G$(o)||d(o)},[o]);var x=fn(function(w,C){d(w,C),y([f],C)});return[m,x]}function jD(e,t,n,r){var o=Y({},t[e]);if(r!=null&&r.deprecatedTokens){var i=r.deprecatedTokens;i.forEach(function(s){var l=ue(s,2),u=l[0],d=l[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 a=Y(Y({},n),o);return Object.keys(a).forEach(function(s){a[s]===t[s]&&delete a[s]}),a}var YY=typeof CSSINJS_STATISTIC<"u",UP=!0;function cn(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(!YY)return Object.assign.apply(Object,[{}].concat(t));UP=!1;var r={};return t.forEach(function(o){if(_t(o)==="object"){var i=Object.keys(o);i.forEach(function(a){Object.defineProperty(r,a,{configurable:!0,enumerable:!0,get:function(){return o[a]}})})}}),UP=!0,r}var ID={};function g4e(){}var v4e=function(t){var n,r=t,o=g4e;return YY&&typeof Proxy<"u"&&(n=new Set,r=new Proxy(t,{get:function(a,s){if(UP){var l;(l=n)===null||l===void 0||l.add(s)}return a[s]}}),o=function(a,s){var l;ID[a]={global:Array.from(n),component:Y(Y({},(l=ID[a])===null||l===void 0?void 0:l.component),s)}}),{token:r,keys:n,flush:o}};function _D(e,t,n){if(typeof n=="function"){var r;return n(cn(t,(r=t[e])!==null&&r!==void 0?r:{}))}return n??{}}function y4e(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(i){return Z(i)}).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(i){return Z(i)}).join(","),")")}}}var b4e=1e3*60*10,x4e=function(){function e(){lr(this,e),K(this,"map",new Map),K(this,"objectIDMap",new WeakMap),K(this,"nextID",0),K(this,"lastAccessBeat",new Map),K(this,"accessBeat",0)}return cr(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(i){return i&&_t(i)==="object"?"obj_".concat(r.getObjectID(i)):"".concat(_t(i),"_").concat(i)});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,i){r-o>b4e&&(n.map.delete(i),n.lastAccessBeat.delete(i))}),this.accessBeat=0}}}]),e}(),ND=new x4e;function w4e(e,t){return ce.useMemo(function(){var n=ND.get(t);if(n)return n;var r=e();return ND.set(t,r),r},t)}var S4e=function(){return{}};function C4e(e){var t=e.useCSP,n=t===void 0?S4e:t,r=e.useToken,o=e.usePrefix,i=e.getResetStyles,a=e.getCommonStyle,s=e.getCompUnitless;function l(m,h,p,b){var v=Array.isArray(m)?m[0]:m;function y(O){return"".concat(String(v)).concat(O.slice(0,1).toUpperCase()).concat(O.slice(1))}var x=(b==null?void 0:b.unitless)||{},w=typeof s=="function"?s(m):{},C=Y(Y({},w),{},K({},y("zIndexPopup"),!0));Object.keys(x).forEach(function(O){C[y(O)]=x[O]});var S=Y(Y({},b),{},{unitless:C,prefixToken:y}),$=d(m,h,p,S),E=u(v,p,S);return function(O){var P=arguments.length>1&&arguments[1]!==void 0?arguments[1]:O,j=$(O,P),I=ue(j,2),_=I[1],R=E(P),N=ue(R,2),A=N[0],M=N[1];return[A,_,M]}}function u(m,h,p){var b=p.unitless,v=p.injectStyle,y=v===void 0?!0:v,x=p.prefixToken,w=p.ignore,C=function(E){var O=E.rootCls,P=E.cssVar,j=P===void 0?{}:P,I=r(),_=I.realToken;return LRe({path:[m],prefix:j.prefix,key:j.key,unitless:b,ignore:w,token:_,scope:O},function(){var R=_D(m,_,h),N=jD(m,_,R,{deprecatedTokens:p==null?void 0:p.deprecatedTokens});return Object.keys(R).forEach(function(A){N[x(A)]=N[A],delete N[A]}),N}),null},S=function(E){var O=r(),P=O.cssVar;return[function(j){return y&&P?ce.createElement(ce.Fragment,null,ce.createElement(C,{rootCls:E,cssVar:P,component:m}),j):j},P==null?void 0:P.key]};return S}function d(m,h,p){var b=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},v=Array.isArray(m)?m:[m,m],y=ue(v,1),x=y[0],w=v.join("-"),C=e.layer||{name:"antd"};return function(S){var $=arguments.length>1&&arguments[1]!==void 0?arguments[1]:S,E=r(),O=E.theme,P=E.realToken,j=E.hashId,I=E.token,_=E.cssVar,R=o(),N=R.rootPrefixCls,A=R.iconPrefixCls,M=n(),T=_?"css":"js",k=w4e(function(){var W=new Set;return _&&Object.keys(b.unitless||{}).forEach(function(q){W.add(ib(q,_.prefix)),W.add(ib(q,PD(x,_.prefix)))}),p4e(T,W)},[T,x,_==null?void 0:_.prefix]),D=y4e(T),L=D.max,B=D.min,H={theme:O,token:I,hashId:j,nonce:function(){return M.nonce},clientOnly:b.clientOnly,layer:C,order:b.order||-999};typeof i=="function"&&TP(Y(Y({},H),{},{clientOnly:!1,path:["Shared",N]}),function(){return i(I,{prefix:{rootPrefixCls:N,iconPrefixCls:A},csp:M})});var F=TP(Y(Y({},H),{},{path:[w,S,A]}),function(){if(b.injectStyle===!1)return[];var W=v4e(I),q=W.token,G=W.flush,te=_D(x,P,p),ee=".".concat(S),z=jD(x,P,te,{deprecatedTokens:b.deprecatedTokens});_&&te&&_t(te)==="object"&&Object.keys(te).forEach(function(le){te[le]="var(".concat(ib(le,PD(x,_.prefix)),")")});var ne=cn(q,{componentCls:ee,prefixCls:S,iconCls:".".concat(A),antCls:".".concat(N),calc:k,max:L,min:B},_?te:z),X=h(ne,{hashId:j,prefixCls:S,rootPrefixCls:N,iconPrefixCls:A});G(x,z);var U=typeof a=="function"?a(ne,S,$,b.resetFont):null;return[b.resetStyle===!1?null:U,X]});return[F,j]}}function f(m,h,p){var b=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},v=d(m,h,p,Y({resetStyle:!1,order:-998},b)),y=function(w){var C=w.prefixCls,S=w.rootCls,$=S===void 0?C:S;return v(C,$),null};return y}return{genStyleHooks:l,genSubStyleComponent:f,genComponentStyleHook:d}}const Jc=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"],$4e="5.28.0";function X$(e){return e>=0&&e<=255}function Sp(e,t){const{r:n,g:r,b:o,a:i}=new On(e).toRgb();if(i<1)return e;const{r:a,g:s,b:l}=new On(t).toRgb();for(let u=.01;u<=1;u+=.01){const d=Math.round((n-a*(1-u))/u),f=Math.round((r-s*(1-u))/u),m=Math.round((o-l*(1-u))/u);if(X$(d)&&X$(f)&&X$(m))return new On({r:d,g:f,b:m,a:Math.round(u*100)/100}).toRgbString()}return new On({r:n,g:r,b:o,a:1}).toRgbString()}var E4e=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 sT(e){const{override:t}=e,n=E4e(e,["override"]),r=Object.assign({},t);Object.keys(Bm).forEach(m=>{delete r[m]});const o=Object.assign(Object.assign({},n),r),i=480,a=576,s=768,l=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:Sp(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:Sp(o.colorErrorBg,o.colorBgContainer),colorWarningOutline:Sp(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:Sp(o.colorPrimaryBg,o.colorBgContainer),lineType:o.lineType,borderRadius:o.borderRadius,borderRadiusXS:o.borderRadiusXS,borderRadiusSM:o.borderRadiusSM,borderRadiusLG:o.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:o.sizeXXS,paddingXS:o.sizeXS,paddingSM:o.sizeSM,padding:o.size,paddingMD:o.sizeMD,paddingLG:o.sizeLG,paddingXL:o.sizeXL,paddingContentHorizontalLG:o.sizeLG,paddingContentVerticalLG:o.sizeMS,paddingContentHorizontal:o.sizeMS,paddingContentVertical:o.sizeSM,paddingContentHorizontalSM:o.size,paddingContentVerticalSM:o.sizeXS,marginXXS:o.sizeXXS,marginXS:o.sizeXS,marginSM:o.sizeSM,margin:o.size,marginMD:o.sizeMD,marginLG:o.sizeLG,marginXL:o.sizeXL,marginXXL:o.sizeXXL,boxShadow:`
      0 6px 16px 0 rgba(0, 0, 0, 0.08),
      0 3px 6px -4px rgba(0, 0, 0, 0.12),
      0 9px 28px 8px rgba(0, 0, 0, 0.05)
    `,boxShadowSecondary:`
      0 6px 16px 0 rgba(0, 0, 0, 0.08),
      0 3px 6px -4px rgba(0, 0, 0, 0.12),
      0 9px 28px 8px rgba(0, 0, 0, 0.05)
    `,boxShadowTertiary:`
      0 1px 2px 0 rgba(0, 0, 0, 0.03),
      0 1px 6px -1px rgba(0, 0, 0, 0.02),
      0 2px 4px 0 rgba(0, 0, 0, 0.02)
    `,screenXS:i,screenXSMin:i,screenXSMax:a-1,screenSM:a,screenSMMin:a,screenSMMax:s-1,screenMD:s,screenMDMin:s,screenMDMax:l-1,screenLG:l,screenLGMin:l,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:`
      0 1px 2px -2px ${new On("rgba(0, 0, 0, 0.16)").toRgbString()},
      0 3px 6px 0 ${new On("rgba(0, 0, 0, 0.12)").toRgbString()},
      0 5px 12px 4px ${new On("rgba(0, 0, 0, 0.09)").toRgbString()}
    `,boxShadowDrawerRight:`
      -6px 0 16px 0 rgba(0, 0, 0, 0.08),
      -3px 0 6px -4px rgba(0, 0, 0, 0.12),
      -9px 0 28px 8px rgba(0, 0, 0, 0.05)
    `,boxShadowDrawerLeft:`
      6px 0 16px 0 rgba(0, 0, 0, 0.08),
      3px 0 6px -4px rgba(0, 0, 0, 0.12),
      9px 0 28px 8px rgba(0, 0, 0, 0.05)
    `,boxShadowDrawerUp:`
      0 6px 16px 0 rgba(0, 0, 0, 0.08),
      0 3px 6px -4px rgba(0, 0, 0, 0.12),
      0 9px 28px 8px rgba(0, 0, 0, 0.05)
    `,boxShadowDrawerDown:`
      0 -6px 16px 0 rgba(0, 0, 0, 0.08),
      0 -3px 6px -4px rgba(0, 0, 0, 0.12),
      0 -9px 28px 8px rgba(0, 0, 0, 0.05)
    `,boxShadowTabsOverflowLeft:"inset 10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowRight:"inset -10px 0 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowTop:"inset 0 10px 8px -8px rgba(0, 0, 0, 0.08)",boxShadowTabsOverflowBottom:"inset 0 -10px 8px -8px rgba(0, 0, 0, 0.08)"}),r)}var RD=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 ZY={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},O4e={motionBase:!0,motionUnit:!0},P4e={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},JY=(e,t,n)=>{const r=n.getDerivativeToken(e),{override:o}=t,i=RD(t,["override"]);let a=Object.assign(Object.assign({},r),{override:o});return a=sT(a),i&&Object.entries(i).forEach(([s,l])=>{const{theme:u}=l,d=RD(l,["theme"]);let f=d;u&&(f=JY(Object.assign(Object.assign({},a),d),{override:d},u)),a[s]=f}),a};function Xo(){const{token:e,hashed:t,theme:n,override:r,cssVar:o}=ce.useContext(iT),i=`${$4e}-${t||""}`,a=n||oT,[s,l,u]=uRe(a,[Bm,e],{salt:i,override:r,getComputedToken:JY,formatToken:sT,cssVar:o&&{prefix:o.prefix,key:o.key,unitless:ZY,ignore:O4e,preserve:P4e}});return[a,u,t?l:"",s,o]}const Bs={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},xn=(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}),gh=()=>({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"}}),hl=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),j4e=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"}}}),I4e=(e,t,n,r)=>{const o=`[class^="${t}"], [class*=" ${t}"]`,i=n?`.${n}`:o,a={boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}};let s={};return r!==!1&&(s={fontFamily:e.fontFamily,fontSize:e.fontSize}),{[i]:Object.assign(Object.assign(Object.assign({},s),a),{[o]:a})}},pl=(e,t)=>({outline:`${Z(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`,outlineOffset:t??1,transition:"outline-offset 0s, outline 0s"}),Hs=(e,t)=>({"&:focus-visible":pl(e,t)}),QY=e=>({[`.${e}`]:Object.assign(Object.assign({},gh()),{[`.${e} .${e}-icon`]:{display:"block"}})}),lT=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"},Hs(e)),{"&:hover":{color:e.colorLinkHover,textDecoration:e.linkHoverDecoration},"&:focus":{color:e.colorLinkHover,textDecoration:e.linkFocusDecoration},"&:active":{color:e.colorLinkActive,textDecoration:e.linkHoverDecoration}}),{genStyleHooks:vn,genComponentStyleHook:_4e,genSubStyleComponent:vh}=C4e({usePrefix:()=>{const{getPrefixCls:e,iconPrefixCls:t}=c.useContext(kt);return{rootPrefixCls:e(),iconPrefixCls:t}},useToken:()=>{const[e,t,n,r,o]=Xo();return{theme:e,realToken:t,hashId:n,token:r,cssVar:o}},useCSP:()=>{const{csp:e}=c.useContext(kt);return e??{}},getResetStyles:(e,t)=>{var n;const r=j4e(e);return[r,{"&":r},QY((n=t==null?void 0:t.prefix.iconPrefixCls)!==null&&n!==void 0?n:vS)]},getCommonStyle:I4e,getCompUnitless:()=>ZY});function yS(e,t){return Jc.reduce((n,r)=>{const o=e[`${r}1`],i=e[`${r}3`],a=e[`${r}6`],s=e[`${r}7`];return Object.assign(Object.assign({},n),t(r,{lightColor:o,lightBorderColor:i,darkColor:a,textColor:s}))},{})}const N4e=(e,t)=>{const[n,r]=Xo();return TP({token:r,hashId:"",path:["ant-design-icons",e],nonce:()=>t==null?void 0:t.nonce,layer:{name:"antd"}},()=>QY(e))},R4e=Object.assign({},sv),{useId:TD}=R4e,T4e=()=>"",M4e=typeof TD>"u"?T4e:TD;function k4e(e,t,n){var r;pu();const o=e||{},i=o.inherit===!1||!t?Object.assign(Object.assign({},Hg),{hashed:(r=t==null?void 0:t.hashed)!==null&&r!==void 0?r:Hg.hashed,cssVar:t==null?void 0:t.cssVar}):t,a=M4e();return qd(()=>{var s,l;if(!e)return t;const u=Object.assign({},i.components);Object.keys(e.components||{}).forEach(m=>{u[m]=Object.assign(Object.assign({},u[m]),e.components[m])});const d=`css-var-${a.replace(/:/g,"")}`,f=((s=o.cssVar)!==null&&s!==void 0?s:i.cssVar)&&Object.assign(Object.assign(Object.assign({prefix:n==null?void 0:n.prefixCls},typeof i.cssVar=="object"?i.cssVar:{}),typeof o.cssVar=="object"?o.cssVar:{}),{key:typeof o.cssVar=="object"&&((l=o.cssVar)===null||l===void 0?void 0:l.key)||d});return Object.assign(Object.assign(Object.assign({},i),o),{token:Object.assign(Object.assign({},i.token),o.token),components:u,cssVar:f})},[o,i],(s,l)=>s.some((u,d)=>{const f=l[d];return!ml(u,f,!0)}))}var A4e=["children"],eZ=c.createContext({});function D4e(e){var t=e.children,n=Ht(e,A4e);return c.createElement(eZ.Provider,{value:n},t)}var L4e=function(e){Ta(n,e);var t=gs(n);function n(){return lr(this,n),t.apply(this,arguments)}return cr(n,[{key:"render",value:function(){return this.props.children}}]),n}(c.Component);function z4e(e){var t=c.useReducer(function(s){return s+1},0),n=ue(t,2),r=n[1],o=c.useRef(e),i=fn(function(){return o.current}),a=fn(function(s){o.current=typeof s=="function"?s(o.current):s,r()});return[i,a]}var vc="none",iy="appear",ay="enter",sy="leave",MD="none",$s="prepare",Hf="start",Vf="active",cT="end",tZ="prepared";function kD(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 F4e(e,t){var n={animationend:kD("Animation","AnimationEnd"),transitionend:kD("Transition","TransitionEnd")};return e&&("AnimationEvent"in t||delete n.animationend.animation,"TransitionEvent"in t||delete n.transitionend.transition),n}var B4e=F4e(Uo(),typeof window<"u"?window:{}),nZ={};if(Uo()){var H4e=document.createElement("div");nZ=H4e.style}var ly={};function rZ(e){if(ly[e])return ly[e];var t=B4e[e];if(t)for(var n=Object.keys(t),r=n.length,o=0;o<r;o+=1){var i=n[o];if(Object.prototype.hasOwnProperty.call(t,i)&&i in nZ)return ly[e]=t[i],ly[e]}return""}var oZ=rZ("animationend"),iZ=rZ("transitionend"),aZ=!!(oZ&&iZ),AD=oZ||"animationend",DD=iZ||"transitionend";function LD(e,t){if(!e)return null;if(_t(e)==="object"){var n=t.replace(/-\w/g,function(r){return r[1].toUpperCase()});return e[n]}return"".concat(e,"-").concat(t)}const V4e=function(e){var t=c.useRef();function n(o){o&&(o.removeEventListener(DD,e),o.removeEventListener(AD,e))}function r(o){t.current&&t.current!==o&&n(t.current),o&&o!==t.current&&(o.addEventListener(DD,e),o.addEventListener(AD,e),t.current=o)}return c.useEffect(function(){return function(){n(t.current)}},[]),[r,n]};var sZ=Uo()?c.useLayoutEffect:c.useEffect;const W4e=function(){var e=c.useRef(null);function t(){ln.cancel(e.current)}function n(r){var o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;t();var i=ln(function(){o<=1?r({isCanceled:function(){return i!==e.current}}):n(r,o-1)});e.current=i}return c.useEffect(function(){return function(){t()}},[]),[n,t]};var U4e=[$s,Hf,Vf,cT],K4e=[$s,tZ],lZ=!1,q4e=!0;function cZ(e){return e===Vf||e===cT}const G4e=function(e,t,n){var r=Rd(MD),o=ue(r,2),i=o[0],a=o[1],s=W4e(),l=ue(s,2),u=l[0],d=l[1];function f(){a($s,!0)}var m=t?K4e:U4e;return sZ(function(){if(i!==MD&&i!==cT){var h=m.indexOf(i),p=m[h+1],b=n(i);b===lZ?a(p,!0):p&&u(function(v){function y(){v.isCanceled()||a(p,!0)}b===!0?y():Promise.resolve(b).then(y)})}},[e,i]),c.useEffect(function(){return function(){d()}},[]),[f,i]};function X4e(e,t,n,r){var o=r.motionEnter,i=o===void 0?!0:o,a=r.motionAppear,s=a===void 0?!0:a,l=r.motionLeave,u=l===void 0?!0:l,d=r.motionDeadline,f=r.motionLeaveImmediately,m=r.onAppearPrepare,h=r.onEnterPrepare,p=r.onLeavePrepare,b=r.onAppearStart,v=r.onEnterStart,y=r.onLeaveStart,x=r.onAppearActive,w=r.onEnterActive,C=r.onLeaveActive,S=r.onAppearEnd,$=r.onEnterEnd,E=r.onLeaveEnd,O=r.onVisibleChanged,P=Rd(),j=ue(P,2),I=j[0],_=j[1],R=z4e(vc),N=ue(R,2),A=N[0],M=N[1],T=Rd(null),k=ue(T,2),D=k[0],L=k[1],B=A(),H=c.useRef(!1),F=c.useRef(null);function W(){return n()}var q=c.useRef(!1);function G(){M(vc),L(null,!0)}var te=fn(function(V){var J=A();if(J!==vc){var oe=W();if(!(V&&!V.deadline&&V.target!==oe)){var de=q.current,be;J===iy&&de?be=S==null?void 0:S(oe,V):J===ay&&de?be=$==null?void 0:$(oe,V):J===sy&&de&&(be=E==null?void 0:E(oe,V)),de&&be!==!1&&G()}}}),ee=V4e(te),z=ue(ee,1),ne=z[0],X=function(J){switch(J){case iy:return K(K(K({},$s,m),Hf,b),Vf,x);case ay:return K(K(K({},$s,h),Hf,v),Vf,w);case sy:return K(K(K({},$s,p),Hf,y),Vf,C);default:return{}}},U=c.useMemo(function(){return X(B)},[B]),le=G4e(B,!e,function(V){if(V===$s){var J=U[$s];return J?J(W()):lZ}if(re in U){var oe;L(((oe=U[re])===null||oe===void 0?void 0:oe.call(U,W(),null))||null)}return re===Vf&&B!==vc&&(ne(W()),d>0&&(clearTimeout(F.current),F.current=setTimeout(function(){te({deadline:!0})},d))),re===tZ&&G(),q4e}),se=ue(le,2),ae=se[0],re=se[1],fe=cZ(re);q.current=fe;var ye=c.useRef(null);sZ(function(){if(!(H.current&&ye.current===t)){_(t);var V=H.current;H.current=!0;var J;!V&&t&&s&&(J=iy),V&&t&&i&&(J=ay),(V&&!t&&u||!V&&f&&!t&&u)&&(J=sy);var oe=X(J);J&&(e||oe[$s])?(M(J),ae()):M(vc),ye.current=t}},[t]),c.useEffect(function(){(B===iy&&!s||B===ay&&!i||B===sy&&!u)&&M(vc)},[s,i,u]),c.useEffect(function(){return function(){H.current=!1,clearTimeout(F.current)}},[]);var Pe=c.useRef(!1);c.useEffect(function(){I&&(Pe.current=!0),I!==void 0&&B===vc&&((Pe.current||I)&&(O==null||O(I)),Pe.current=!0)},[I,B]);var Oe=D;return U[$s]&&re===Hf&&(Oe=Y({transition:"none"},Oe)),[B,re,Oe,I??t]}function Y4e(e){var t=e;_t(e)==="object"&&(t=e.transitionSupport);function n(o,i){return!!(o.motionName&&t&&i!==!1)}var r=c.forwardRef(function(o,i){var a=o.visible,s=a===void 0?!0:a,l=o.removeOnLeave,u=l===void 0?!0:l,d=o.forceRender,f=o.children,m=o.motionName,h=o.leavedClassName,p=o.eventProps,b=c.useContext(eZ),v=b.motion,y=n(o,v),x=c.useRef(),w=c.useRef();function C(){try{return x.current instanceof HTMLElement?x.current:ob(w.current)}catch{return null}}var S=X4e(y,s,C,o),$=ue(S,4),E=$[0],O=$[1],P=$[2],j=$[3],I=c.useRef(j);j&&(I.current=!0);var _=c.useCallback(function(k){x.current=k,Dg(i,k)},[i]),R,N=Y(Y({},p),{},{visible:s});if(!f)R=null;else if(E===vc)j?R=f(Y({},N),_):!u&&I.current&&h?R=f(Y(Y({},N),{},{className:h}),_):d||!u&&!h?R=f(Y(Y({},N),{},{style:{display:"none"}}),_):R=null;else{var A;O===$s?A="prepare":cZ(O)?A="active":O===Hf&&(A="start");var M=LD(m,"".concat(E,"-").concat(A));R=f(Y(Y({},N),{},{className:Q(LD(m,E),K(K({},M,M&&A),m,typeof m=="string")),style:P}),_)}if(c.isValidElement(R)&&Fs(R)){var T=hu(R);T||(R=c.cloneElement(R,{ref:_}))}return c.createElement(L4e,{ref:w},R)});return r.displayName="CSSMotion",r}const si=Y4e(aZ);var KP="add",qP="keep",GP="remove",Y$="removed";function Z4e(e){var t;return e&&_t(e)==="object"&&"key"in e?t=e:t={key:e},Y(Y({},t),{},{key:String(t.key)})}function XP(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return e.map(Z4e)}function J4e(){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,i=XP(e),a=XP(t);i.forEach(function(u){for(var d=!1,f=r;f<o;f+=1){var m=a[f];if(m.key===u.key){r<f&&(n=n.concat(a.slice(r,f).map(function(h){return Y(Y({},h),{},{status:KP})})),r=f),n.push(Y(Y({},m),{},{status:qP})),r+=1,d=!0;break}}d||n.push(Y(Y({},u),{},{status:GP}))}),r<o&&(n=n.concat(a.slice(r).map(function(u){return Y(Y({},u),{},{status:KP})})));var s={};n.forEach(function(u){var d=u.key;s[d]=(s[d]||0)+1});var l=Object.keys(s).filter(function(u){return s[u]>1});return l.forEach(function(u){n=n.filter(function(d){var f=d.key,m=d.status;return f!==u||m!==GP}),n.forEach(function(d){d.key===u&&(d.status=qP)})}),n}var Q4e=["component","children","onVisibleChanged","onAllRemoved"],eTe=["status"],tTe=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function nTe(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:si,n=function(r){Ta(i,r);var o=gs(i);function i(){var a;lr(this,i);for(var s=arguments.length,l=new Array(s),u=0;u<s;u++)l[u]=arguments[u];return a=o.call.apply(o,[this].concat(l)),K(Ct(a),"state",{keyEntities:[]}),K(Ct(a),"removeKey",function(d){a.setState(function(f){var m=f.keyEntities.map(function(h){return h.key!==d?h:Y(Y({},h),{},{status:Y$})});return{keyEntities:m}},function(){var f=a.state.keyEntities,m=f.filter(function(h){var p=h.status;return p!==Y$}).length;m===0&&a.props.onAllRemoved&&a.props.onAllRemoved()})}),a}return cr(i,[{key:"render",value:function(){var s=this,l=this.state.keyEntities,u=this.props,d=u.component,f=u.children,m=u.onVisibleChanged;u.onAllRemoved;var h=Ht(u,Q4e),p=d||c.Fragment,b={};return tTe.forEach(function(v){b[v]=h[v],delete h[v]}),delete h.keys,c.createElement(p,h,l.map(function(v,y){var x=v.status,w=Ht(v,eTe),C=x===KP||x===qP;return c.createElement(t,Ee({},b,{key:w.key,visible:C,eventProps:w,onVisibleChanged:function($){m==null||m($,{key:w.key}),$||s.removeKey(w.key)}}),function(S,$){return f(Y(Y({},S),{},{index:y}),$)})}))}}],[{key:"getDerivedStateFromProps",value:function(s,l){var u=s.keys,d=l.keyEntities,f=XP(u),m=J4e(d,f);return{keyEntities:m.filter(function(h){var p=d.find(function(b){var v=b.key;return h.key===v});return!(p&&p.status===Y$&&h.status===GP)})}}}]),i}(c.Component);return K(n,"defaultProps",{component:"div"}),n}const uT=nTe(aZ),zD=c.createContext(!0);function rTe(e){const t=c.useContext(zD),{children:n}=e,[,r]=Xo(),{motion:o}=r,i=c.useRef(!1);return i.current||(i.current=t!==o),i.current?c.createElement(zD.Provider,{value:o},c.createElement(D4e,{motion:o},n)):n}const oTe=()=>null;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 aTe=["getTargetContainer","getPopupContainer","renderEmpty","input","pagination","form","select","button"];let e1,uZ,dZ,fZ;function mb(){return e1||Vg}function sTe(){return uZ||vS}function lTe(e){return Object.keys(e).some(t=>t.endsWith("Color"))}const cTe=e=>{const{prefixCls:t,iconPrefixCls:n,theme:r,holderRender:o}=e;t!==void 0&&(e1=t),n!==void 0&&(uZ=n),"holderRender"in e&&(fZ=o),r&&(lTe(r)?c4e(mb(),r):dZ=r)},mZ=()=>({getPrefixCls:(e,t)=>t||(e?`${mb()}-${e}`:mb()),getIconPrefixCls:sTe,getRootPrefixCls:()=>e1||mb(),getTheme:()=>dZ,holderRender:fZ}),uTe=e=>{const{children:t,csp:n,autoInsertSpaceInButton:r,alert:o,anchor:i,form:a,locale:s,componentSize:l,direction:u,space:d,splitter:f,virtual:m,dropdownMatchSelectWidth:h,popupMatchSelectWidth:p,popupOverflow:b,legacyLocale:v,parentContext:y,iconPrefixCls:x,theme:w,componentDisabled:C,segmented:S,statistic:$,spin:E,calendar:O,carousel:P,cascader:j,collapse:I,typography:_,checkbox:R,descriptions:N,divider:A,drawer:M,skeleton:T,steps:k,image:D,layout:L,list:B,mentions:H,modal:F,progress:W,result:q,slider:G,breadcrumb:te,menu:ee,pagination:z,input:ne,textArea:X,empty:U,badge:le,radio:se,rate:ae,switch:re,transfer:fe,avatar:ye,message:Pe,tag:Oe,table:V,card:J,tabs:oe,timeline:de,timePicker:be,upload:ge,notification:ie,tree:he,colorPicker:xe,datePicker:Re,rangePicker:Ce,flex:pe,wave:_e,dropdown:we,warning:$e,tour:ve,tooltip:me,popover:Se,popconfirm:De,floatButton:et,floatButtonGroup:rt,variant:Me,inputNumber:We,treeSelect:Qe}=e,Ge=c.useCallback((mt,Ot)=>{const{prefixCls:dt}=e;if(Ot)return Ot;const qe=dt||y.getPrefixCls("");return mt?`${qe}-${mt}`:qe},[y.getPrefixCls,e.prefixCls]),tt=x||y.iconPrefixCls||vS,ke=n||y.csp;N4e(tt,ke);const xt=k4e(w,y.theme,{prefixCls:Ge("")}),Ze={csp:ke,autoInsertSpaceInButton:r,alert:o,anchor:i,locale:s||v,direction:u,space:d,splitter:f,virtual:m,popupMatchSelectWidth:p??h,popupOverflow:b,getPrefixCls:Ge,iconPrefixCls:tt,theme:xt,segmented:S,statistic:$,spin:E,calendar:O,carousel:P,cascader:j,collapse:I,typography:_,checkbox:R,descriptions:N,divider:A,drawer:M,skeleton:T,steps:k,image:D,input:ne,textArea:X,layout:L,list:B,mentions:H,modal:F,progress:W,result:q,slider:G,breadcrumb:te,menu:ee,pagination:z,empty:U,badge:le,radio:se,rate:ae,switch:re,transfer:fe,avatar:ye,message:Pe,tag:Oe,table:V,card:J,tabs:oe,timeline:de,timePicker:be,upload:ge,notification:ie,tree:he,colorPicker:xe,datePicker:Re,rangePicker:Ce,flex:pe,wave:_e,dropdown:we,warning:$e,tour:ve,tooltip:me,popover:Se,popconfirm:De,floatButton:et,floatButtonGroup:rt,variant:Me,inputNumber:We,treeSelect:Qe},nt=Object.assign({},y);Object.keys(Ze).forEach(mt=>{Ze[mt]!==void 0&&(nt[mt]=Ze[mt])}),aTe.forEach(mt=>{const Ot=e[mt];Ot&&(nt[mt]=Ot)}),typeof r<"u"&&(nt.button=Object.assign({autoInsertSpace:r},nt.button));const Be=qd(()=>nt,nt,(mt,Ot)=>{const dt=Object.keys(mt),qe=Object.keys(Ot);return dt.length!==qe.length||dt.some(ht=>mt[ht]!==Ot[ht])}),{layer:Le}=c.useContext(Gv),Ie=c.useMemo(()=>({prefixCls:tt,csp:ke,layer:Le?"antd":void 0}),[tt,ke,Le]);let Te=c.createElement(c.Fragment,null,c.createElement(oTe,{dropdownMatchSelectWidth:h}),t);const Xe=c.useMemo(()=>{var mt,Ot,dt,qe;return Bf(((mt=cs.Form)===null||mt===void 0?void 0:mt.defaultValidateMessages)||{},((dt=(Ot=Be.locale)===null||Ot===void 0?void 0:Ot.Form)===null||dt===void 0?void 0:dt.defaultValidateMessages)||{},((qe=Be.form)===null||qe===void 0?void 0:qe.validateMessages)||{},(a==null?void 0:a.validateMessages)||{})},[Be,a==null?void 0:a.validateMessages]);Object.keys(Xe).length>0&&(Te=c.createElement(LY.Provider,{value:Xe},Te)),s&&(Te=c.createElement(GRe,{locale:s,_ANT_MARK__:qRe},Te)),Te=c.createElement(tT.Provider,{value:Ie},Te),l&&(Te=c.createElement(u4e,{size:l},Te)),Te=c.createElement(rTe,null,Te);const lt=c.useMemo(()=>{const mt=xt||{},{algorithm:Ot,token:dt,components:qe,cssVar:ht}=mt,zt=iTe(mt,["algorithm","token","components","cssVar"]),Vt=Ot&&(!Array.isArray(Ot)||Ot.length>0)?Yx(Ot):oT,Nt={};Object.entries(qe||{}).forEach(([ot,Ft])=>{const Ue=Object.assign({},Ft);"algorithm"in Ue&&(Ue.algorithm===!0?Ue.theme=Vt:(Array.isArray(Ue.algorithm)||typeof Ue.algorithm=="function")&&(Ue.theme=Yx(Ue.algorithm)),delete Ue.algorithm),Nt[ot]=Ue});const ft=Object.assign(Object.assign({},Bm),dt);return Object.assign(Object.assign({},zt),{theme:Vt,token:ft,components:Nt,override:Object.assign({override:ft},Nt),cssVar:ht})},[xt]);return w&&(Te=c.createElement(iT.Provider,{value:lt},Te)),Be.warning&&(Te=c.createElement(VRe.Provider,{value:Be.warning},Te)),C!==void 0&&(Te=c.createElement(aT,{disabled:C},Te)),c.createElement(kt.Provider,{value:Be},Te)},Ma=e=>{const t=c.useContext(kt),n=c.useContext(nT);return c.createElement(uTe,Object.assign({parentContext:t,legacyLocale:n},e))};Ma.ConfigContext=kt;Ma.SizeContext=Nd;Ma.config=cTe;Ma.useConfig=d4e;Object.defineProperty(Ma,"SizeContext",{get:()=>Nd});var dTe={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 hZ(e){var t;return e==null||(t=e.getRootNode)===null||t===void 0?void 0:t.call(e)}function fTe(e){return hZ(e)instanceof ShadowRoot}function t1(e){return fTe(e)?hZ(e):null}function mTe(e){return e.replace(/-(.)/g,function(t,n){return n.toUpperCase()})}function hTe(e,t){ir(e,"[@ant-design/icons] ".concat(t))}function FD(e){return _t(e)==="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(_t(e.icon)==="object"||typeof e.icon=="function")}function BD(){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[mTe(n)]=r}return t},{})}function YP(e,t,n){return n?ce.createElement(e.tag,Y(Y({key:t},BD(e.attrs)),n),(e.children||[]).map(function(r,o){return YP(r,"".concat(t,"-").concat(e.tag,"-").concat(o))})):ce.createElement(e.tag,Y({key:t},BD(e.attrs)),(e.children||[]).map(function(r,o){return YP(r,"".concat(t,"-").concat(e.tag,"-").concat(o))}))}function pZ(e){return _d(e)[0]}function gZ(e){return e?Array.isArray(e)?e:[e]:[]}var pTe=`
.anticon {
  display: inline-flex;
  align-items: center;
  color: inherit;
  font-style: normal;
  line-height: 0;
  text-align: center;
  text-transform: none;
  vertical-align: -0.125em;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.anticon > * {
  line-height: 1;
}

.anticon svg {
  display: inline-block;
}

.anticon::before {
  display: none;
}

.anticon .anticon-icon {
  display: block;
}

.anticon[tabindex] {
  cursor: pointer;
}

.anticon-spin::before,
.anticon-spin {
  display: inline-block;
  -webkit-animation: loadingCircle 1s infinite linear;
  animation: loadingCircle 1s infinite linear;
}

@-webkit-keyframes loadingCircle {
  100% {
    -webkit-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}

@keyframes loadingCircle {
  100% {
    -webkit-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}
`,gTe=function(t){var n=c.useContext(tT),r=n.csp,o=n.prefixCls,i=n.layer,a=pTe;o&&(a=a.replace(/anticon/g,o)),i&&(a="@layer ".concat(i,` {
`).concat(a,`
}`)),c.useEffect(function(){var s=t.current,l=t1(s);Dl(a,"@ant-design-icons",{prepend:!i,csp:r,attachTo:l})},[])},vTe=["icon","className","onClick","style","primaryColor","secondaryColor"],Bp={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function yTe(e){var t=e.primaryColor,n=e.secondaryColor;Bp.primaryColor=t,Bp.secondaryColor=n||pZ(t),Bp.calculated=!!n}function bTe(){return Y({},Bp)}var yh=function(t){var n=t.icon,r=t.className,o=t.onClick,i=t.style,a=t.primaryColor,s=t.secondaryColor,l=Ht(t,vTe),u=c.useRef(),d=Bp;if(a&&(d={primaryColor:a,secondaryColor:s||pZ(a)}),gTe(u),hTe(FD(n),"icon should be icon definiton, but got ".concat(n)),!FD(n))return null;var f=n;return f&&typeof f.icon=="function"&&(f=Y(Y({},f),{},{icon:f.icon(d.primaryColor,d.secondaryColor)})),YP(f.icon,"svg-".concat(f.name),Y(Y({className:r,onClick:o,style:i,"data-icon":f.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},l),{},{ref:u}))};yh.displayName="IconReact";yh.getTwoToneColors=bTe;yh.setTwoToneColors=yTe;function vZ(e){var t=gZ(e),n=ue(t,2),r=n[0],o=n[1];return yh.setTwoToneColors({primaryColor:r,secondaryColor:o})}function xTe(){var e=yh.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}var wTe=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];vZ(Hm.primary);var yn=c.forwardRef(function(e,t){var n=e.className,r=e.icon,o=e.spin,i=e.rotate,a=e.tabIndex,s=e.onClick,l=e.twoToneColor,u=Ht(e,wTe),d=c.useContext(tT),f=d.prefixCls,m=f===void 0?"anticon":f,h=d.rootClassName,p=Q(h,m,K(K({},"".concat(m,"-").concat(r.name),!!r.name),"".concat(m,"-spin"),!!o||r.name==="loading"),n),b=a;b===void 0&&s&&(b=-1);var v=i?{msTransform:"rotate(".concat(i,"deg)"),transform:"rotate(".concat(i,"deg)")}:void 0,y=gZ(l),x=ue(y,2),w=x[0],C=x[1];return c.createElement("span",Ee({role:"img","aria-label":r.name},u,{ref:t,tabIndex:b,onClick:s,className:p}),c.createElement(yh,{icon:r,primaryColor:w,secondaryColor:C,style:v}))});yn.displayName="AntdIcon";yn.getTwoToneColor=xTe;yn.setTwoToneColor=vZ;var STe=function(t,n){return c.createElement(yn,Ee({},t,{ref:n,icon:dTe}))},Xv=c.forwardRef(STe),CTe={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"},$Te=function(t,n){return c.createElement(yn,Ee({},t,{ref:n,icon:CTe}))},Gd=c.forwardRef($Te),yZ={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"},ETe=function(t,n){return c.createElement(yn,Ee({},t,{ref:n,icon:yZ}))},gu=c.forwardRef(ETe),OTe={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"},PTe=function(t,n){return c.createElement(yn,Ee({},t,{ref:n,icon:OTe}))},bh=c.forwardRef(PTe),jTe={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"},ITe=function(t,n){return c.createElement(yn,Ee({},t,{ref:n,icon:jTe}))},dT=c.forwardRef(ITe),_Te=`accept acceptCharset accessKey action allowFullScreen allowTransparency
    alt async autoComplete autoFocus autoPlay capture cellPadding cellSpacing challenge
    charSet checked classID className colSpan cols content contentEditable contextMenu
    controls coords crossOrigin data dateTime default defer dir disabled download draggable
    encType form formAction formEncType formMethod formNoValidate formTarget frameBorder
    headers height hidden high href hrefLang htmlFor httpEquiv icon id inputMode integrity
    is keyParams keyType kind label lang list loop low manifest marginHeight marginWidth max maxLength media
    mediaGroup method min minLength multiple muted name noValidate nonce open
    optimum pattern placeholder poster preload radioGroup readOnly rel required
    reversed role rowSpan rows sandbox scope scoped scrolling seamless selected
    shape size sizes span spellCheck src srcDoc srcLang srcSet start step style
    summary tabIndex target title type useMap value width wmode wrap`,NTe=`onCopy onCut onPaste onCompositionEnd onCompositionStart onCompositionUpdate onKeyDown
    onKeyPress onKeyUp onFocus onBlur onChange onInput onSubmit onClick onContextMenu onDoubleClick
    onDrag onDragEnd onDragEnter onDragExit onDragLeave onDragOver onDragStart onDrop onMouseDown
    onMouseEnter onMouseLeave onMouseMove onMouseOut onMouseOver onMouseUp onSelect onTouchCancel
    onTouchEnd onTouchMove onTouchStart onScroll onWheel onAbort onCanPlay onCanPlayThrough
    onDurationChange onEmptied onEncrypted onEnded onError onLoadedData onLoadedMetadata
    onLoadStart onPause onPlay onPlaying onProgress onRateChange onSeeked onSeeking onStalled onSuspend onTimeUpdate onVolumeChange onWaiting onLoad onError`,RTe="".concat(_Te," ").concat(NTe).split(/[\s\n]+/),TTe="aria-",MTe="data-";function HD(e,t){return e.indexOf(t)===0}function Pr(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=Y({},t);var r={};return Object.keys(e).forEach(function(o){(n.aria&&(o==="role"||HD(o,TTe))||n.data&&HD(o,MTe)||n.attr&&RTe.includes(o))&&(r[o]=e[o])}),r}function bZ(e){return e&&ce.isValidElement(e)&&e.type===ce.Fragment}const fT=(e,t,n)=>ce.isValidElement(e)?ce.cloneElement(e,typeof n=="function"?n(e.props||{}):n):t;function qr(e,t){return fT(e,e,t)}const cy=(e,t,n,r,o)=>({background:e,border:`${Z(r.lineWidth)} ${r.lineType} ${t}`,[`${o}-icon`]:{color:n}}),kTe=e=>{const{componentCls:t,motionDurationSlow:n,marginXS:r,marginSM:o,fontSize:i,fontSizeLG:a,lineHeight:s,borderRadiusLG:l,motionEaseInOutCirc:u,withDescriptionIconSize:d,colorText:f,colorTextHeading:m,withDescriptionPadding:h,defaultPadding:p}=e;return{[t]:Object.assign(Object.assign({},xn(e)),{position:"relative",display:"flex",alignItems:"center",padding:p,wordWrap:"break-word",borderRadius:l,[`&${t}-rtl`]:{direction:"rtl"},[`${t}-content`]:{flex:1,minWidth:0},[`${t}-icon`]:{marginInlineEnd:r,lineHeight:0},"&-description":{display:"none",fontSize:i,lineHeight:s},"&-message":{color:m},[`&${t}-motion-leave`]:{overflow:"hidden",opacity:1,transition:`max-height ${n} ${u}, opacity ${n} ${u},
        padding-top ${n} ${u}, padding-bottom ${n} ${u},
        margin-bottom ${n} ${u}`},[`&${t}-motion-leave-active`]:{maxHeight:0,marginBottom:"0 !important",paddingTop:0,paddingBottom:0,opacity:0}}),[`${t}-with-description`]:{alignItems:"flex-start",padding:h,[`${t}-icon`]:{marginInlineEnd:o,fontSize:d,lineHeight:0},[`${t}-message`]:{display:"block",marginBottom:r,color:m,fontSize:a},[`${t}-description`]:{display:"block",color:f}},[`${t}-banner`]:{marginBottom:0,border:"0 !important",borderRadius:0}}},ATe=e=>{const{componentCls:t,colorSuccess:n,colorSuccessBorder:r,colorSuccessBg:o,colorWarning:i,colorWarningBorder:a,colorWarningBg:s,colorError:l,colorErrorBorder:u,colorErrorBg:d,colorInfo:f,colorInfoBorder:m,colorInfoBg:h}=e;return{[t]:{"&-success":cy(o,r,n,e,t),"&-info":cy(h,m,f,e,t),"&-warning":cy(s,a,i,e,t),"&-error":Object.assign(Object.assign({},cy(d,u,l,e,t)),{[`${t}-description > pre`]:{margin:0,padding:0}})}}},DTe=e=>{const{componentCls:t,iconCls:n,motionDurationMid:r,marginXS:o,fontSizeIcon:i,colorIcon:a,colorIconHover:s}=e;return{[t]:{"&-action":{marginInlineStart:o},[`${t}-close-icon`]:{marginInlineStart:o,padding:0,overflow:"hidden",fontSize:i,lineHeight:Z(i),backgroundColor:"transparent",border:"none",outline:"none",cursor:"pointer",[`${n}-close`]:{color:a,transition:`color ${r}`,"&:hover":{color:s}}},"&-close-text":{color:a,transition:`color ${r}`,"&:hover":{color:s}}}}},LTe=e=>({withDescriptionIconSize:e.fontSizeHeading3,defaultPadding:`${e.paddingContentVerticalSM}px 12px`,withDescriptionPadding:`${e.paddingMD}px ${e.paddingContentHorizontalLG}px`}),zTe=vn("Alert",e=>[kTe(e),ATe(e),DTe(e)],LTe);var VD=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 FTe={success:Xv,info:dT,error:Gd,warning:bh},BTe=e=>{const{icon:t,prefixCls:n,type:r}=e,o=FTe[r]||null;return t?fT(t,c.createElement("span",{className:`${n}-icon`},t),()=>({className:Q(`${n}-icon`,t.props.className)})):c.createElement(o,{className:`${n}-icon`})},HTe=e=>{const{isClosable:t,prefixCls:n,closeIcon:r,handleClose:o,ariaProps:i}=e,a=r===!0||r===void 0?c.createElement(gu,null):r;return t?c.createElement("button",Object.assign({type:"button",onClick:o,className:`${n}-close-icon`,tabIndex:0},i),a):null},xZ=c.forwardRef((e,t)=>{const{description:n,prefixCls:r,message:o,banner:i,className:a,rootClassName:s,style:l,onMouseEnter:u,onMouseLeave:d,onClick:f,afterClose:m,showIcon:h,closable:p,closeText:b,closeIcon:v,action:y,id:x}=e,w=VD(e,["description","prefixCls","message","banner","className","rootClassName","style","onMouseEnter","onMouseLeave","onClick","afterClose","showIcon","closable","closeText","closeIcon","action","id"]),[C,S]=c.useState(!1),$=c.useRef(null);c.useImperativeHandle(t,()=>({nativeElement:$.current}));const{getPrefixCls:E,direction:O,closable:P,closeIcon:j,className:I,style:_}=Br("alert"),R=E("alert",r),[N,A,M]=zTe(R),T=q=>{var G;S(!0),(G=e.onClose)===null||G===void 0||G.call(e,q)},k=c.useMemo(()=>e.type!==void 0?e.type:i?"warning":"info",[e.type,i]),D=c.useMemo(()=>typeof p=="object"&&p.closeIcon||b?!0:typeof p=="boolean"?p:v!==!1&&v!==null&&v!==void 0?!0:!!P,[b,v,p,P]),L=i&&h===void 0?!0:h,B=Q(R,`${R}-${k}`,{[`${R}-with-description`]:!!n,[`${R}-no-icon`]:!L,[`${R}-banner`]:!!i,[`${R}-rtl`]:O==="rtl"},I,a,s,M,A),H=Pr(w,{aria:!0,data:!0}),F=c.useMemo(()=>typeof p=="object"&&p.closeIcon?p.closeIcon:b||(v!==void 0?v:typeof P=="object"&&P.closeIcon?P.closeIcon:j),[v,p,P,b,j]),W=c.useMemo(()=>{const q=p??P;if(typeof q=="object"){const{closeIcon:G}=q;return VD(q,["closeIcon"])}return{}},[p,P]);return N(c.createElement(si,{visible:!C,motionName:`${R}-motion`,motionAppear:!1,motionEnter:!1,onLeaveStart:q=>({maxHeight:q.offsetHeight}),onLeaveEnd:m},({className:q,style:G},te)=>c.createElement("div",Object.assign({id:x,ref:po($,te),"data-show":!C,className:Q(B,q),style:Object.assign(Object.assign(Object.assign({},_),l),G),onMouseEnter:u,onMouseLeave:d,onClick:f,role:"alert"},H),L?c.createElement(BTe,{description:n,icon:e.icon,prefixCls:R,type:k}):null,c.createElement("div",{className:`${R}-content`},o?c.createElement("div",{className:`${R}-message`},o):null,n?c.createElement("div",{className:`${R}-description`},n):null),y?c.createElement("div",{className:`${R}-action`},y):null,c.createElement(HTe,{isClosable:D,prefixCls:R,closeIcon:F,handleClose:T,ariaProps:W}))))});function VTe(e,t,n){return t=Id(t),uY(e,fS()?Reflect.construct(t,n||[],Id(e).constructor):t.apply(e,n))}let WTe=function(e){function t(){var n;return lr(this,t),n=VTe(this,t,arguments),n.state={error:void 0,info:{componentStack:""}},n}return Ta(t,e),cr(t,[{key:"componentDidCatch",value:function(r,o){this.setState({error:r,info:o})}},{key:"render",value:function(){const{message:r,description:o,id:i,children:a}=this.props,{error:s,info:l}=this.state,u=(l==null?void 0:l.componentStack)||null,d=typeof r>"u"?(s||"").toString():r,f=typeof o>"u"?u:o;return s?c.createElement(xZ,{id:i,type:"error",message:d,description:c.createElement("pre",{style:{fontSize:"0.9em",overflowX:"auto"}},f)}):a}}])}(c.Component);const mT=xZ;mT.ErrorBoundary=WTe;const WD=e=>typeof e=="object"&&e!=null&&e.nodeType===1,UD=(e,t)=>(!t||e!=="hidden")&&e!=="visible"&&e!=="clip",uy=(e,t)=>{if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){const n=getComputedStyle(e,null);return UD(n.overflowY,t)||UD(n.overflowX,t)||(r=>{const o=(i=>{if(!i.ownerDocument||!i.ownerDocument.defaultView)return null;try{return i.ownerDocument.defaultView.frameElement}catch{return null}})(r);return!!o&&(o.clientHeight<r.scrollHeight||o.clientWidth<r.scrollWidth)})(e)}return!1},dy=(e,t,n,r,o,i,a,s)=>i<e&&a>t||i>e&&a<t?0:i<=e&&s<=n||a>=t&&s>=n?i-e-r:a>t&&s<n||i<e&&s>n?a-t+o:0,UTe=e=>{const t=e.parentElement;return t??(e.getRootNode().host||null)},KD=(e,t)=>{var n,r,o,i;if(typeof document>"u")return[];const{scrollMode:a,block:s,inline:l,boundary:u,skipOverflowHiddenElements:d}=t,f=typeof u=="function"?u:M=>M!==u;if(!WD(e))throw new TypeError("Invalid target");const m=document.scrollingElement||document.documentElement,h=[];let p=e;for(;WD(p)&&f(p);){if(p=UTe(p),p===m){h.push(p);break}p!=null&&p===document.body&&uy(p)&&!uy(document.documentElement)||p!=null&&uy(p,d)&&h.push(p)}const b=(r=(n=window.visualViewport)==null?void 0:n.width)!=null?r:innerWidth,v=(i=(o=window.visualViewport)==null?void 0:o.height)!=null?i:innerHeight,{scrollX:y,scrollY:x}=window,{height:w,width:C,top:S,right:$,bottom:E,left:O}=e.getBoundingClientRect(),{top:P,right:j,bottom:I,left:_}=(M=>{const T=window.getComputedStyle(M);return{top:parseFloat(T.scrollMarginTop)||0,right:parseFloat(T.scrollMarginRight)||0,bottom:parseFloat(T.scrollMarginBottom)||0,left:parseFloat(T.scrollMarginLeft)||0}})(e);let R=s==="start"||s==="nearest"?S-P:s==="end"?E+I:S+w/2-P+I,N=l==="center"?O+C/2-_+j:l==="end"?$+j:O-_;const A=[];for(let M=0;M<h.length;M++){const T=h[M],{height:k,width:D,top:L,right:B,bottom:H,left:F}=T.getBoundingClientRect();if(a==="if-needed"&&S>=0&&O>=0&&E<=v&&$<=b&&(T===m&&!uy(T)||S>=L&&E<=H&&O>=F&&$<=B))return A;const W=getComputedStyle(T),q=parseInt(W.borderLeftWidth,10),G=parseInt(W.borderTopWidth,10),te=parseInt(W.borderRightWidth,10),ee=parseInt(W.borderBottomWidth,10);let z=0,ne=0;const X="offsetWidth"in T?T.offsetWidth-T.clientWidth-q-te:0,U="offsetHeight"in T?T.offsetHeight-T.clientHeight-G-ee:0,le="offsetWidth"in T?T.offsetWidth===0?0:D/T.offsetWidth:0,se="offsetHeight"in T?T.offsetHeight===0?0:k/T.offsetHeight:0;if(m===T)z=s==="start"?R:s==="end"?R-v:s==="nearest"?dy(x,x+v,v,G,ee,x+R,x+R+w,w):R-v/2,ne=l==="start"?N:l==="center"?N-b/2:l==="end"?N-b:dy(y,y+b,b,q,te,y+N,y+N+C,C),z=Math.max(0,z+x),ne=Math.max(0,ne+y);else{z=s==="start"?R-L-G:s==="end"?R-H+ee+U:s==="nearest"?dy(L,H,k,G,ee+U,R,R+w,w):R-(L+k/2)+U/2,ne=l==="start"?N-F-q:l==="center"?N-(F+D/2)+X/2:l==="end"?N-B+te+X:dy(F,B,D,q,te+X,N,N+C,C);const{scrollLeft:ae,scrollTop:re}=T;z=se===0?0:Math.max(0,Math.min(re+z/se,T.scrollHeight-k/se+U)),ne=le===0?0:Math.max(0,Math.min(ae+ne/le,T.scrollWidth-D/le+X)),R+=re-z,N+=ae-ne}A.push({el:T,top:z,left:ne})}return A},KTe=e=>e===!1?{block:"end",inline:"nearest"}:(t=>t===Object(t)&&Object.keys(t).length!==0)(e)?e:{block:"start",inline:"nearest"};function qTe(e,t){if(!e.isConnected||!(o=>{let i=o;for(;i&&i.parentNode;){if(i.parentNode===document)return!0;i=i.parentNode instanceof ShadowRoot?i.parentNode.host:i.parentNode}return!1})(e))return;const n=(o=>{const i=window.getComputedStyle(o);return{top:parseFloat(i.scrollMarginTop)||0,right:parseFloat(i.scrollMarginRight)||0,bottom:parseFloat(i.scrollMarginBottom)||0,left:parseFloat(i.scrollMarginLeft)||0}})(e);if((o=>typeof o=="object"&&typeof o.behavior=="function")(t))return t.behavior(KD(e,t));const r=typeof t=="boolean"||t==null?void 0:t.behavior;for(const{el:o,top:i,left:a}of KD(e,KTe(t))){const s=i-n.top+n.bottom,l=a-n.left+n.right;o.scroll({top:s,left:l,behavior:r})}}function ZP(e){return e!=null&&e===e.window}const GTe=e=>{var t,n;if(typeof window>"u")return 0;let r=0;return ZP(e)?r=e.pageYOffset:e instanceof Document?r=e.documentElement.scrollTop:(e instanceof HTMLElement||e)&&(r=e.scrollTop),e&&!ZP(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 XTe(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 YTe(e,t={}){const{getContainer:n=()=>window,callback:r,duration:o=450}=t,i=n(),a=GTe(i),s=Date.now(),l=()=>{const d=Date.now()-s,f=XTe(d>o?o:d,a,e,o);ZP(i)?i.scrollTo(window.pageXOffset,f):i instanceof Document||i.constructor.name==="HTMLDocument"?i.documentElement.scrollTop=f:i.scrollTop=f,d<o?ln(l):typeof r=="function"&&r()};ln(l)}const Hr=e=>{const[,,,,t]=Xo();return t?`${e}-css-var`:""};var jt={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},wZ=c.forwardRef(function(e,t){var n=e.prefixCls,r=e.style,o=e.className,i=e.duration,a=i===void 0?4.5:i,s=e.showProgress,l=e.pauseOnHover,u=l===void 0?!0:l,d=e.eventKey,f=e.content,m=e.closable,h=e.closeIcon,p=h===void 0?"x":h,b=e.props,v=e.onClick,y=e.onNoticeClose,x=e.times,w=e.hovering,C=c.useState(!1),S=ue(C,2),$=S[0],E=S[1],O=c.useState(0),P=ue(O,2),j=P[0],I=P[1],_=c.useState(0),R=ue(_,2),N=R[0],A=R[1],M=w||$,T=a>0&&s,k=function(){y(d)},D=function(q){(q.key==="Enter"||q.code==="Enter"||q.keyCode===jt.ENTER)&&k()};c.useEffect(function(){if(!M&&a>0){var W=Date.now()-N,q=setTimeout(function(){k()},a*1e3-N);return function(){u&&clearTimeout(q),A(Date.now()-W)}}},[a,M,x]),c.useEffect(function(){if(!M&&T&&(u||N===0)){var W=performance.now(),q,G=function te(){cancelAnimationFrame(q),q=requestAnimationFrame(function(ee){var z=ee+N-W,ne=Math.min(z/(a*1e3),1);I(ne*100),ne<1&&te()})};return G(),function(){u&&cancelAnimationFrame(q)}}},[a,N,M,T,x]);var L=c.useMemo(function(){return _t(m)==="object"&&m!==null?m:m?{closeIcon:p}:{}},[m,p]),B=Pr(L,!0),H=100-(!j||j<0?0:j>100?100:j),F="".concat(n,"-notice");return c.createElement("div",Ee({},b,{ref:t,className:Q(F,o,K({},"".concat(F,"-closable"),m)),style:r,onMouseEnter:function(q){var G;E(!0),b==null||(G=b.onMouseEnter)===null||G===void 0||G.call(b,q)},onMouseLeave:function(q){var G;E(!1),b==null||(G=b.onMouseLeave)===null||G===void 0||G.call(b,q)},onClick:v}),c.createElement("div",{className:"".concat(F,"-content")},f),m&&c.createElement("a",Ee({tabIndex:0,className:"".concat(F,"-close"),onKeyDown:D,"aria-label":"Close"},B,{onClick:function(q){q.preventDefault(),q.stopPropagation(),k()}}),L.closeIcon),T&&c.createElement("progress",{className:"".concat(F,"-progress"),max:"100",value:H},H+"%"))}),SZ=ce.createContext({}),ZTe=function(t){var n=t.children,r=t.classNames;return ce.createElement(SZ.Provider,{value:{classNames:r}},n)},qD=8,GD=3,XD=16,JTe=function(t){var n={offset:qD,threshold:GD,gap:XD};if(t&&_t(t)==="object"){var r,o,i;n.offset=(r=t.offset)!==null&&r!==void 0?r:qD,n.threshold=(o=t.threshold)!==null&&o!==void 0?o:GD,n.gap=(i=t.gap)!==null&&i!==void 0?i:XD}return[!!t,n]},QTe=["className","style","classNames","styles"],e3e=function(t){var n=t.configList,r=t.placement,o=t.prefixCls,i=t.className,a=t.style,s=t.motion,l=t.onAllNoticeRemoved,u=t.onNoticeClose,d=t.stack,f=c.useContext(SZ),m=f.classNames,h=c.useRef({}),p=c.useState(null),b=ue(p,2),v=b[0],y=b[1],x=c.useState([]),w=ue(x,2),C=w[0],S=w[1],$=n.map(function(M){return{config:M,key:String(M.key)}}),E=JTe(d),O=ue(E,2),P=O[0],j=O[1],I=j.offset,_=j.threshold,R=j.gap,N=P&&(C.length>0||$.length<=_),A=typeof s=="function"?s(r):s;return c.useEffect(function(){P&&C.length>1&&S(function(M){return M.filter(function(T){return $.some(function(k){var D=k.key;return T===D})})})},[C,$,P]),c.useEffect(function(){var M;if(P&&h.current[(M=$[$.length-1])===null||M===void 0?void 0:M.key]){var T;y(h.current[(T=$[$.length-1])===null||T===void 0?void 0:T.key])}},[$,P]),ce.createElement(uT,Ee({key:r,className:Q(o,"".concat(o,"-").concat(r),m==null?void 0:m.list,i,K(K({},"".concat(o,"-stack"),!!P),"".concat(o,"-stack-expanded"),N)),style:a,keys:$,motionAppear:!0},A,{onAllRemoved:function(){l(r)}}),function(M,T){var k=M.config,D=M.className,L=M.style,B=M.index,H=k,F=H.key,W=H.times,q=String(F),G=k,te=G.className,ee=G.style,z=G.classNames,ne=G.styles,X=Ht(G,QTe),U=$.findIndex(function(de){return de.key===q}),le={};if(P){var se=$.length-1-(U>-1?U:B-1),ae=r==="top"||r==="bottom"?"-50%":"0";if(se>0){var re,fe,ye;le.height=N?(re=h.current[q])===null||re===void 0?void 0:re.offsetHeight:v==null?void 0:v.offsetHeight;for(var Pe=0,Oe=0;Oe<se;Oe++){var V;Pe+=((V=h.current[$[$.length-1-Oe].key])===null||V===void 0?void 0:V.offsetHeight)+R}var J=(N?Pe:se*I)*(r.startsWith("top")?1:-1),oe=!N&&v!==null&&v!==void 0&&v.offsetWidth&&(fe=h.current[q])!==null&&fe!==void 0&&fe.offsetWidth?((v==null?void 0:v.offsetWidth)-I*2*(se<3?se:3))/((ye=h.current[q])===null||ye===void 0?void 0:ye.offsetWidth):1;le.transform="translate3d(".concat(ae,", ").concat(J,"px, 0) scaleX(").concat(oe,")")}else le.transform="translate3d(".concat(ae,", 0, 0)")}return ce.createElement("div",{ref:T,className:Q("".concat(o,"-notice-wrapper"),D,z==null?void 0:z.wrapper),style:Y(Y(Y({},L),le),ne==null?void 0:ne.wrapper),onMouseEnter:function(){return S(function(be){return be.includes(q)?be:[].concat(Ne(be),[q])})},onMouseLeave:function(){return S(function(be){return be.filter(function(ge){return ge!==q})})}},ce.createElement(wZ,Ee({},X,{ref:function(be){U>-1?h.current[q]=be:delete h.current[q]},prefixCls:o,classNames:z,styles:ne,className:Q(te,m==null?void 0:m.notice),style:ee,times:W,key:F,eventKey:F,onNoticeClose:u,hovering:P&&C.length>0})))})},t3e=c.forwardRef(function(e,t){var n=e.prefixCls,r=n===void 0?"rc-notification":n,o=e.container,i=e.motion,a=e.maxCount,s=e.className,l=e.style,u=e.onAllRemoved,d=e.stack,f=e.renderNotifications,m=c.useState([]),h=ue(m,2),p=h[0],b=h[1],v=function(P){var j,I=p.find(function(_){return _.key===P});I==null||(j=I.onClose)===null||j===void 0||j.call(I),b(function(_){return _.filter(function(R){return R.key!==P})})};c.useImperativeHandle(t,function(){return{open:function(P){b(function(j){var I=Ne(j),_=I.findIndex(function(A){return A.key===P.key}),R=Y({},P);if(_>=0){var N;R.times=(((N=j[_])===null||N===void 0?void 0:N.times)||0)+1,I[_]=R}else R.times=0,I.push(R);return a>0&&I.length>a&&(I=I.slice(-a)),I})},close:function(P){v(P)},destroy:function(){b([])}}});var y=c.useState({}),x=ue(y,2),w=x[0],C=x[1];c.useEffect(function(){var O={};p.forEach(function(P){var j=P.placement,I=j===void 0?"topRight":j;I&&(O[I]=O[I]||[],O[I].push(P))}),Object.keys(w).forEach(function(P){O[P]=O[P]||[]}),C(O)},[p]);var S=function(P){C(function(j){var I=Y({},j),_=I[P]||[];return _.length||delete I[P],I})},$=c.useRef(!1);if(c.useEffect(function(){Object.keys(w).length>0?$.current=!0:$.current&&(u==null||u(),$.current=!1)},[w]),!o)return null;var E=Object.keys(w);return Fi.createPortal(c.createElement(c.Fragment,null,E.map(function(O){var P=w[O],j=c.createElement(e3e,{key:O,configList:P,placement:O,prefixCls:r,className:s==null?void 0:s(O),style:l==null?void 0:l(O),motion:i,onNoticeClose:v,onAllNoticeRemoved:S,stack:d});return f?f(j,{prefixCls:r,key:O}):j})),o)}),n3e=["getContainer","motion","prefixCls","maxCount","className","style","onAllRemoved","stack","renderNotifications"],r3e=function(){return document.body},YD=0;function o3e(){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(i){var a=o[i];a!==void 0&&(e[i]=a)})}),e}function i3e(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.getContainer,n=t===void 0?r3e:t,r=e.motion,o=e.prefixCls,i=e.maxCount,a=e.className,s=e.style,l=e.onAllRemoved,u=e.stack,d=e.renderNotifications,f=Ht(e,n3e),m=c.useState(),h=ue(m,2),p=h[0],b=h[1],v=c.useRef(),y=c.createElement(t3e,{container:p,ref:v,prefixCls:o,motion:r,maxCount:i,className:a,style:s,onAllRemoved:l,stack:u,renderNotifications:d}),x=c.useState([]),w=ue(x,2),C=w[0],S=w[1],$=fn(function(O){var P=o3e(f,O);(P.key===null||P.key===void 0)&&(P.key="rc-notification-".concat(YD),YD+=1),S(function(j){return[].concat(Ne(j),[{type:"open",config:P}])})}),E=c.useMemo(function(){return{open:$,close:function(P){S(function(j){return[].concat(Ne(j),[{type:"close",key:P}])})},destroy:function(){S(function(P){return[].concat(Ne(P),[{type:"destroy"}])})}}},[]);return c.useEffect(function(){b(n())}),c.useEffect(function(){if(v.current&&C.length){C.forEach(function(j){switch(j.type){case"open":v.current.open(j.config);break;case"close":v.current.close(j.key);break;case"destroy":v.current.destroy();break}});var O,P;S(function(j){return(O!==j||!P)&&(O=j,P=j.filter(function(I){return!C.includes(I)})),P})}},[C]),[E,y]}var CZ={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"},a3e=function(t,n){return c.createElement(yn,Ee({},t,{ref:n,icon:CZ}))},Zl=c.forwardRef(a3e);function Wg(...e){const t={};return e.forEach(n=>{n&&Object.keys(n).forEach(r=>{n[r]!==void 0&&(t[r]=n[r])})}),t}function Vm(e){if(!e)return;const{closable:t,closeIcon:n}=e;return{closable:t,closeIcon:n}}function ZD(e){const{closable:t,closeIcon:n}=e||{};return ce.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 s3e={},hT=(e,t,n=s3e)=>{const r=ZD(e),o=ZD(t),[i]=ca("global",cs.global),a=typeof r!="boolean"?!!(r!=null&&r.disabled):!1,s=ce.useMemo(()=>Object.assign({closeIcon:ce.createElement(gu,null)},n),[n]),l=ce.useMemo(()=>r===!1?!1:r?Wg(s,o,r):o===!1?!1:o?Wg(s,o):s.closable?s:!1,[r,o,s]);return ce.useMemo(()=>{var u,d;if(l===!1)return[!1,null,a,{}];const{closeIconRender:f}=s,{closeIcon:m}=l;let h=m;const p=Pr(l,!0);return h!=null&&(f&&(h=f(m)),h=ce.isValidElement(h)?ce.cloneElement(h,Object.assign(Object.assign(Object.assign({},h.props),{"aria-label":(d=(u=h.props)===null||u===void 0?void 0:u["aria-label"])!==null&&d!==void 0?d:i.close}),p)):ce.createElement("span",Object.assign({"aria-label":i.close},p),h)),[!0,h,a,p]},[a,i.close,l,s])},pT=()=>ce.useReducer(e=>e+1,0);function $Z(e,...t){const n=e||{};return t.reduce((r,o)=>(Object.keys(o||{}).forEach(i=>{const a=n[i],s=o[i];if(a&&typeof a=="object")if(s&&typeof s=="object")r[i]=$Z(a,r[i],s);else{const{_default:l}=a;l&&(r[i]=r[i]||{},r[i][l]=Q(r[i][l],s))}else r[i]=Q(r[i],s)}),r),{})}function l3e(e,...t){return c.useMemo(()=>$Z.apply(void 0,[e].concat(t)),[t,e])}function c3e(...e){return c.useMemo(()=>e.reduce((t,n={})=>(Object.keys(n).forEach(r=>{t[r]=Object.assign(Object.assign({},t[r]),n[r])}),t),{}),[e])}function JP(e,t){const n=Object.assign({},e);return Object.keys(t).forEach(r=>{if(r!=="_default"){const o=t[r],i=n[r]||{};n[r]=o?JP(i,o):i}}),n}const u3e=(e,t,n)=>{const r=l3e.apply(void 0,[n].concat(Ne(e))),o=c3e.apply(void 0,Ne(t));return c.useMemo(()=>[JP(r,n),JP(o,n)],[r,o,n])},d3e=e=>{const[t,n]=c.useState(null);return[c.useCallback((o,i,a)=>{const s=t??o,l=Math.min(s||0,o),u=Math.max(s||0,o),d=i.slice(l,u+1).map(e),f=d.some(h=>!a.has(h)),m=[];return d.forEach(h=>{f?(a.has(h)||m.push(h),a.add(h)):(a.delete(h),m.push(h))}),n(f?u:null),m},[t]),n]},f3e=()=>{const[e,t]=c.useState([]),n=c.useCallback(r=>(t(o=>[].concat(Ne(o),[r])),()=>{t(o=>o.filter(i=>i!==r))}),[]);return[e,n]};function m3e(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 h3e=(e,t)=>c.useImperativeHandle(e,()=>{const n=t(),{nativeElement:r}=n;return typeof Proxy<"u"?new Proxy(r,{get(o,i){return n[i]?n[i]:Reflect.get(o,i)}}):m3e(r,n)}),p3e=e=>{const t=c.useRef(e),[,n]=pT();return[()=>t.current,r=>{t.current=r,n()}]},Yv=ce.createContext(void 0),yc=100,g3e=10,EZ=yc*g3e,OZ={Modal:yc,Drawer:yc,Popover:yc,Popconfirm:yc,Tooltip:yc,Tour:yc,FloatButton:yc},v3e={SelectLike:50,Dropdown:50,DatePicker:50,Menu:50,ImagePreview:1};function y3e(e){return e in OZ}const vu=(e,t)=>{const[,n]=Xo(),r=ce.useContext(Yv),o=y3e(e);let i;if(t!==void 0)i=[t,t];else{let a=r??0;o?a+=(r?0:n.zIndexPopupBase)+OZ[e]:a+=v3e[e],i=[r===void 0?t:a,a]}return i},b3e=e=>{const{componentCls:t,iconCls:n,boxShadow:r,colorText:o,colorSuccess:i,colorError:a,colorWarning:s,colorInfo:l,fontSizeLG:u,motionEaseInOutCirc:d,motionDurationSlow:f,marginXS:m,paddingXS:h,borderRadiusLG:p,zIndexPopup:b,contentPadding:v,contentBg:y}=e,x=`${t}-notice`,w=new gn("MessageMoveIn",{"0%":{padding:0,transform:"translateY(-100%)",opacity:0},"100%":{padding:h,transform:"translateY(0)",opacity:1}}),C=new gn("MessageMoveOut",{"0%":{maxHeight:e.height,padding:h,opacity:1},"100%":{maxHeight:0,padding:0,opacity:0}}),S={padding:h,textAlign:"center",[`${t}-custom-content`]:{display:"flex",alignItems:"center"},[`${t}-custom-content > ${n}`]:{marginInlineEnd:m,fontSize:u},[`${x}-content`]:{display:"inline-block",padding:v,background:y,borderRadius:p,boxShadow:r,pointerEvents:"all"},[`${t}-success > ${n}`]:{color:i},[`${t}-error > ${n}`]:{color:a},[`${t}-warning > ${n}`]:{color:s},[`${t}-info > ${n},
      ${t}-loading > ${n}`]:{color:l}};return[{[t]:Object.assign(Object.assign({},xn(e)),{color:o,position:"fixed",top:m,width:"100%",pointerEvents:"none",zIndex:b,[`${t}-move-up`]:{animationFillMode:"forwards"},[`
        ${t}-move-up-appear,
        ${t}-move-up-enter
      `]:{animationName:w,animationDuration:f,animationPlayState:"paused",animationTimingFunction:d},[`
        ${t}-move-up-appear${t}-move-up-appear-active,
        ${t}-move-up-enter${t}-move-up-enter-active
      `]:{animationPlayState:"running"},[`${t}-move-up-leave`]:{animationName:C,animationDuration:f,animationPlayState:"paused",animationTimingFunction:d},[`${t}-move-up-leave${t}-move-up-leave-active`]:{animationPlayState:"running"},"&-rtl":{direction:"rtl",span:{direction:"rtl"}}})},{[t]:{[`${x}-wrapper`]:Object.assign({},S)}},{[`${t}-notice-pure-panel`]:Object.assign(Object.assign({},S),{padding:0,textAlign:"start"})}]},x3e=e=>({zIndexPopup:e.zIndexPopupBase+EZ+10,contentBg:e.colorBgElevated,contentPadding:`${(e.controlHeightLG-e.fontSize*e.lineHeight)/2}px ${e.paddingSM}px`}),PZ=vn("Message",e=>{const t=cn(e,{height:150});return b3e(t)},x3e);var w3e=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 S3e={info:c.createElement(dT,null),success:c.createElement(Xv,null),error:c.createElement(Gd,null),warning:c.createElement(bh,null),loading:c.createElement(Zl,null)},jZ=({prefixCls:e,type:t,icon:n,children:r})=>c.createElement("div",{className:Q(`${e}-custom-content`,`${e}-${t}`)},n||S3e[t],c.createElement("span",null,r)),C3e=e=>{const{prefixCls:t,className:n,type:r,icon:o,content:i}=e,a=w3e(e,["prefixCls","className","type","icon","content"]),{getPrefixCls:s}=c.useContext(kt),l=t||s("message"),u=Hr(l),[d,f,m]=PZ(l,u);return d(c.createElement(wZ,Object.assign({},a,{prefixCls:l,className:Q(n,f,`${l}-notice-pure-panel`,m,u),eventKey:"pure",duration:null,content:c.createElement(jZ,{prefixCls:l,type:r,icon:o},i)})))};function $3e(e,t){return{motionName:t??`${e}-move-up`}}function gT(e){let t;const n=new Promise(o=>{t=e(()=>{o(!0)})}),r=()=>{t==null||t()};return r.then=(o,i)=>n.then(o,i),r.promise=n,r}var E3e=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 O3e=8,P3e=3,j3e=({children:e,prefixCls:t})=>{const n=Hr(t),[r,o,i]=PZ(t,n);return r(c.createElement(ZTe,{classNames:{list:Q(o,i,n)}},e))},I3e=(e,{prefixCls:t,key:n})=>c.createElement(j3e,{prefixCls:t,key:n},e),_3e=c.forwardRef((e,t)=>{const{top:n,prefixCls:r,getContainer:o,maxCount:i,duration:a=P3e,rtl:s,transitionName:l,onAllRemoved:u}=e,{getPrefixCls:d,getPopupContainer:f,message:m,direction:h}=c.useContext(kt),p=r||d("message"),b=()=>({left:"50%",transform:"translateX(-50%)",top:n??O3e}),v=()=>Q({[`${p}-rtl`]:s??h==="rtl"}),y=()=>$3e(p,l),x=c.createElement("span",{className:`${p}-close-x`},c.createElement(gu,{className:`${p}-close-icon`})),[w,C]=i3e({prefixCls:p,style:b,className:v,motion:y,closable:!1,closeIcon:x,duration:a,getContainer:()=>(o==null?void 0:o())||(f==null?void 0:f())||document.body,maxCount:i,onAllRemoved:u,renderNotifications:I3e});return c.useImperativeHandle(t,()=>Object.assign(Object.assign({},w),{prefixCls:p,message:m})),C});let JD=0;function IZ(e){const t=c.useRef(null);return pu(),[c.useMemo(()=>{const r=l=>{var u;(u=t.current)===null||u===void 0||u.close(l)},o=l=>{if(!t.current){const $=()=>{};return $.then=()=>{},$}const{open:u,prefixCls:d,message:f}=t.current,m=`${d}-notice`,{content:h,icon:p,type:b,key:v,className:y,style:x,onClose:w}=l,C=E3e(l,["content","icon","type","key","className","style","onClose"]);let S=v;return S==null&&(JD+=1,S=`antd-message-${JD}`),gT($=>(u(Object.assign(Object.assign({},C),{key:S,content:c.createElement(jZ,{prefixCls:d,type:b,icon:p},h),placement:"top",className:Q(b&&`${m}-${b}`,y,f==null?void 0:f.className),style:Object.assign(Object.assign({},f==null?void 0:f.style),x),onClose:()=>{w==null||w(),$()}})),()=>{r(S)}))},a={open:o,destroy:l=>{var u;l!==void 0?r(l):(u=t.current)===null||u===void 0||u.destroy()}};return["info","success","warning","error","loading"].forEach(l=>{const u=(d,f,m)=>{let h;d&&typeof d=="object"&&"content"in d?h=d:h={content:d};let p,b;typeof f=="function"?b=f:(p=f,b=m);const v=Object.assign(Object.assign({onClose:b,duration:p},h),{type:l});return o(v)};a[l]=u}),a},[]),c.createElement(_3e,Object.assign({key:"message-holder"},e,{ref:t}))]}function N3e(e){return IZ(e)}function _Z(e,t){this.v=e,this.k=t}function mi(e,t,n,r){var o=Object.defineProperty;try{o({},"",{})}catch{o=0}mi=function(a,s,l,u){function d(f,m){mi(a,f,function(h){return this._invoke(f,m,h)})}s?o?o(a,s,{value:l,enumerable:!u,configurable:!u,writable:!u}):a[s]=l:(d("next",0),d("throw",1),d("return",2))},mi(e,t,n,r)}function vT(){/*! 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 i(h,p,b,v){var y=p&&p.prototype instanceof s?p:s,x=Object.create(y.prototype);return mi(x,"_invoke",function(w,C,S){var $,E,O,P=0,j=S||[],I=!1,_={p:0,n:0,v:e,a:R,f:R.bind(e,4),d:function(A,M){return $=A,E=0,O=e,_.n=M,a}};function R(N,A){for(E=N,O=A,t=0;!I&&P&&!M&&t<j.length;t++){var M,T=j[t],k=_.p,D=T[2];N>3?(M=D===A)&&(O=T[(E=T[4])?5:(E=3,3)],T[4]=T[5]=e):T[0]<=k&&((M=N<2&&k<T[1])?(E=0,_.v=A,_.n=T[1]):k<D&&(M=N<3||T[0]>A||A>D)&&(T[4]=N,T[5]=A,_.n=D,E=0))}if(M||N>1)return a;throw I=!0,A}return function(N,A,M){if(P>1)throw TypeError("Generator is already running");for(I&&A===1&&R(A,M),E=A,O=M;(t=E<2?e:O)||!I;){$||(E?E<3?(E>1&&(_.n=-1),R(E,O)):_.n=O:_.v=O);try{if(P=2,$){if(E||(N="next"),t=$[N]){if(!(t=t.call($,O)))throw TypeError("iterator result is not an object");if(!t.done)return t;O=t.value,E<2&&(E=0)}else E===1&&(t=$.return)&&t.call($),E<2&&(O=TypeError("The iterator does not provide a '"+N+"' method"),E=1);$=e}else if((t=(I=_.n<0)?O:w.call(C,_))!==a)break}catch(T){$=e,E=1,O=T}finally{P=1}}return{value:t,done:I}}}(h,b,v),!0),x}var a={};function s(){}function l(){}function u(){}t=Object.getPrototypeOf;var d=[][r]?t(t([][r]())):(mi(t={},r,function(){return this}),t),f=u.prototype=s.prototype=Object.create(d);function m(h){return Object.setPrototypeOf?Object.setPrototypeOf(h,u):(h.__proto__=u,mi(h,o,"GeneratorFunction")),h.prototype=Object.create(f),h}return l.prototype=u,mi(f,"constructor",u),mi(u,"constructor",l),l.displayName="GeneratorFunction",mi(u,o,"GeneratorFunction"),mi(f),mi(f,o,"Generator"),mi(f,r,function(){return this}),mi(f,"toString",function(){return"[object Generator]"}),(vT=function(){return{w:i,m}})()}function n1(e,t){function n(o,i,a,s){try{var l=e[o](i),u=l.value;return u instanceof _Z?t.resolve(u.v).then(function(d){n("next",d,a,s)},function(d){n("throw",d,a,s)}):t.resolve(u).then(function(d){l.value=d,a(l)},function(d){return n("throw",d,a,s)})}catch(d){s(d)}}var r;this.next||(mi(n1.prototype),mi(n1.prototype,typeof Symbol=="function"&&Symbol.asyncIterator||"@asyncIterator",function(){return this})),mi(this,"_invoke",function(o,i,a){function s(){return new t(function(l,u){n(o,a,l,u)})}return r=r?r.then(s,s):s()},!0)}function NZ(e,t,n,r,o){return new n1(vT().w(e,t,n,r),o||Promise)}function R3e(e,t,n,r,o){var i=NZ(e,t,n,r,o);return i.next().then(function(a){return a.done?a.value:i.next()})}function T3e(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 QD(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(_t(e)+" is not iterable")}function Vn(){var e=vT(),t=e.m(Vn),n=(Object.getPrototypeOf?Object.getPrototypeOf(t):t.__proto__).constructor;function r(a){var s=typeof a=="function"&&a.constructor;return!!s&&(s===n||(s.displayName||s.name)==="GeneratorFunction")}var o={throw:1,return:2,break:3,continue:3};function i(a){var s,l;return function(u){s||(s={stop:function(){return l(u.a,2)},catch:function(){return u.v},abrupt:function(f,m){return l(u.a,o[f],m)},delegateYield:function(f,m,h){return s.resultName=m,l(u.d,QD(f),h)},finish:function(f){return l(u.f,f)}},l=function(f,m,h){u.p=s.prev,u.n=s.next;try{return f(m,h)}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 a.call(this,s)}finally{u.p=s.prev,u.n=s.next}}}return(Vn=function(){return{wrap:function(l,u,d,f){return e.w(i(l),u,d,f&&f.reverse())},isGeneratorFunction:r,mark:e.m,awrap:function(l,u){return new _Z(l,u)},AsyncIterator:n1,async:function(l,u,d,f,m){return(r(u)?NZ:R3e)(i(l),u,d,f,m)},keys:T3e,values:QD}})()}function eL(e,t,n,r,o,i,a){try{var s=e[i](a),l=s.value}catch(u){return void n(u)}s.done?t(l):Promise.resolve(l).then(r,o)}function Di(e){return function(){var t=this,n=arguments;return new Promise(function(r,o){var i=e.apply(t,n);function a(l){eL(i,r,o,a,s,"next",l)}function s(l){eL(i,r,o,a,s,"throw",l)}a(void 0)})}}var Zv=Y({},Uae),M3e=Zv.version,Z$=Zv.render,k3e=Zv.unmountComponentAtNode,bS;try{var A3e=Number((M3e||"").split(".")[0]);A3e>=18&&(bS=Zv.createRoot)}catch{}function tL(e){var t=Zv.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;t&&_t(t)==="object"&&(t.usingClientEntryPoint=e)}var r1="__rc_react_root__";function D3e(e,t){tL(!0);var n=t[r1]||bS(t);tL(!1),n.render(e),t[r1]=n}function L3e(e,t){Z$==null||Z$(e,t)}function z3e(e,t){if(bS){D3e(e,t);return}L3e(e,t)}function F3e(e){return QP.apply(this,arguments)}function QP(){return QP=Di(Vn().mark(function e(t){return Vn().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",Promise.resolve().then(function(){var o;(o=t[r1])===null||o===void 0||o.unmount(),delete t[r1]}));case 1:case"end":return r.stop()}},e)})),QP.apply(this,arguments)}function B3e(e){k3e(e)}function H3e(e){return ej.apply(this,arguments)}function ej(){return ej=Di(Vn().mark(function e(t){return Vn().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:if(bS===void 0){r.next=2;break}return r.abrupt("return",F3e(t));case 2:B3e(t);case 3:case"end":return r.stop()}},e)})),ej.apply(this,arguments)}const V3e=(e,t)=>(z3e(e,t),()=>H3e(t));let W3e=V3e;function yT(e){return W3e}const J$=()=>({height:0,opacity:0}),nL=e=>{const{scrollHeight:t}=e;return{height:t,opacity:1}},U3e=e=>({height:e?e.offsetHeight:0}),Q$=(e,t)=>(t==null?void 0:t.deadline)===!0||t.propertyName==="height",Ug=(e=Vg)=>({motionName:`${e}-motion-collapse`,onAppearStart:J$,onEnterStart:J$,onAppearActive:nL,onEnterActive:nL,onLeaveStart:U3e,onLeaveActive:J$,onAppearEnd:Q$,onEnterEnd:Q$,onLeaveEnd:Q$,motionDeadline:500}),gl=(e,t,n)=>n!==void 0?n:`${e}-${t}`;function Xn(e,t){var n=Object.assign({},e);return Array.isArray(t)&&t.forEach(function(r){delete n[r]}),n}const xh=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(),i=o.width,a=o.height;if(i||a)return!0}}return!1},K3e=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(",")}}}}},q3e=_4e("Wave",K3e),xS=`${Vg}-wave-target`;function G3e(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 X3e(e){var t;const{borderTopColor:n,borderColor:r,backgroundColor:o}=getComputedStyle(e);return(t=[n,r,o].find(G3e))!==null&&t!==void 0?t:null}function e2(e){return Number.isNaN(e)?0:e}const Y3e=e=>{const{className:t,target:n,component:r,registerUnmount:o}=e,i=c.useRef(null),a=c.useRef(null);c.useEffect(()=>{a.current=o()},[]);const[s,l]=c.useState(null),[u,d]=c.useState([]),[f,m]=c.useState(0),[h,p]=c.useState(0),[b,v]=c.useState(0),[y,x]=c.useState(0),[w,C]=c.useState(!1),S={left:f,top:h,width:b,height:y,borderRadius:u.map(O=>`${O}px`).join(" ")};s&&(S["--wave-color"]=s);function $(){const O=getComputedStyle(n);l(X3e(n));const P=O.position==="static",{borderLeftWidth:j,borderTopWidth:I}=O;m(P?n.offsetLeft:e2(-Number.parseFloat(j))),p(P?n.offsetTop:e2(-Number.parseFloat(I))),v(n.offsetWidth),x(n.offsetHeight);const{borderTopLeftRadius:_,borderTopRightRadius:R,borderBottomLeftRadius:N,borderBottomRightRadius:A}=O;d([_,R,A,N].map(M=>e2(Number.parseFloat(M))))}if(c.useEffect(()=>{if(n){const O=ln(()=>{$(),C(!0)});let P;return typeof ResizeObserver<"u"&&(P=new ResizeObserver($),P.observe(n)),()=>{ln.cancel(O),P==null||P.disconnect()}}},[n]),!w)return null;const E=(r==="Checkbox"||r==="Radio")&&(n==null?void 0:n.classList.contains(xS));return c.createElement(si,{visible:!0,motionAppear:!0,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:(O,P)=>{var j,I;if(P.deadline||P.propertyName==="opacity"){const _=(j=i.current)===null||j===void 0?void 0:j.parentElement;(I=a.current)===null||I===void 0||I.call(a).then(()=>{_==null||_.remove()})}return!1}},({className:O},P)=>c.createElement("div",{ref:po(i,P),className:Q(t,O,{"wave-quick":E}),style:S}))},Z3e=(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 i=yT();let a=null;function s(){return a}a=i(c.createElement(Y3e,Object.assign({},t,{target:e,registerUnmount:s})),o)},J3e=(e,t,n)=>{const{wave:r}=c.useContext(kt),[,o,i]=Xo(),a=fn(u=>{const d=e.current;if(r!=null&&r.disabled||!d)return;const f=d.querySelector(`.${xS}`)||d,{showEffect:m}=r||{};(m||Z3e)(f,{className:t,token:o,component:n,event:u,hashId:i})}),s=c.useRef(null);return u=>{ln.cancel(s.current),s.current=ln(()=>{a(u)})}},Jv=e=>{const{children:t,disabled:n,component:r}=e,{getPrefixCls:o}=c.useContext(kt),i=c.useRef(null),a=o("wave"),[,s]=q3e(a),l=J3e(i,Q(a,s),r);if(ce.useEffect(()=>{const d=i.current;if(!d||d.nodeType!==window.Node.ELEMENT_NODE||n)return;const f=m=>{!xh(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")||l(m)};return d.addEventListener("click",f,!0),()=>{d.removeEventListener("click",f,!0)}},[n]),!ce.isValidElement(t))return t??null;const u=Fs(t)?po(hu(t),i):i;return qr(t,{ref:u})},go=e=>{const t=ce.useContext(Nd);return ce.useMemo(()=>e?typeof e=="string"?e??t:typeof e=="function"?e(t):t:t,[e,t])},Q3e=e=>{const{componentCls:t}=e;return{[t]:{"&-block":{display:"flex",width:"100%"},"&-vertical":{flexDirection:"column"}}}},eMe=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"}}}},tMe=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}}}},RZ=vn("Space",e=>{const t=cn(e,{spaceGapSmallSize:e.paddingXS,spaceGapMiddleSize:e.padding,spaceGapLargeSize:e.paddingLG});return[eMe(t),tMe(t),Q3e(t)]},()=>({}),{resetStyle:!1});var TZ=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 wS=c.createContext(null),uc=(e,t)=>{const n=c.useContext(wS),r=c.useMemo(()=>{if(!n)return"";const{compactDirection:o,isFirstItem:i,isLastItem:a}=n,s=o==="vertical"?"-vertical-":"-";return Q(`${e}-compact${s}item`,{[`${e}-compact${s}first-item`]:i,[`${e}-compact${s}last-item`]:a,[`${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}},nMe=e=>{const{children:t}=e;return c.createElement(wS.Provider,{value:null},t)},rMe=e=>{const{children:t}=e,n=TZ(e,["children"]);return c.createElement(wS.Provider,{value:c.useMemo(()=>n,[n])},t)},oMe=e=>{const{getPrefixCls:t,direction:n}=c.useContext(kt),{size:r,direction:o,block:i,prefixCls:a,className:s,rootClassName:l,children:u}=e,d=TZ(e,["size","direction","block","prefixCls","className","rootClassName","children"]),f=go(w=>r??w),m=t("space-compact",a),[h,p]=RZ(m),b=Q(m,p,{[`${m}-rtl`]:n==="rtl",[`${m}-block`]:i,[`${m}-vertical`]:o==="vertical"},s,l),v=c.useContext(wS),y=ii(u),x=c.useMemo(()=>y.map((w,C)=>{const S=(w==null?void 0:w.key)||`${m}-item-${C}`;return c.createElement(rMe,{key:S,compactSize:f,compactDirection:o,isFirstItem:C===0&&(!v||(v==null?void 0:v.isFirstItem)),isLastItem:C===y.length-1&&(!v||(v==null?void 0:v.isLastItem))},w)}),[y,v,o,f,m]);return y.length===0?null:h(c.createElement("div",Object.assign({className:b},d),x))};var iMe=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 MZ=c.createContext(void 0),aMe=e=>{const{getPrefixCls:t,direction:n}=c.useContext(kt),{prefixCls:r,size:o,className:i}=e,a=iMe(e,["prefixCls","size","className"]),s=t("btn-group",r),[,,l]=Xo(),u=c.useMemo(()=>{switch(o){case"large":return"lg";case"small":return"sm";default:return""}},[o]),d=Q(s,{[`${s}-${u}`]:u,[`${s}-rtl`]:n==="rtl"},i,l);return c.createElement(MZ.Provider,{value:o},c.createElement("div",Object.assign({},a,{className:d})))},rL=/^[\u4E00-\u9FA5]{2}$/,tj=rL.test.bind(rL);function bT(e){return e==="danger"?{danger:!0}:{type:e}}function oL(e){return typeof e=="string"}function t2(e){return e==="text"||e==="link"}function sMe(e,t){if(e==null)return;const n=t?" ":"";return typeof e!="string"&&typeof e!="number"&&oL(e.type)&&tj(e.props.children)?qr(e,{children:e.props.children.split("").join(n)}):oL(e)?tj(e)?ce.createElement("span",null,e.split("").join(n)):ce.createElement("span",null,e):bZ(e)?ce.createElement("span",null,e):e}function lMe(e,t){let n=!1;const r=[];return ce.Children.forEach(e,o=>{const i=typeof o,a=i==="string"||i==="number";if(n&&a){const s=r.length-1,l=r[s];r[s]=`${l}${o}`}else r.push(o);n=a}),ce.Children.map(r,o=>sMe(o,t))}["default","primary","danger"].concat(Ne(Jc));const nj=c.forwardRef((e,t)=>{const{className:n,style:r,children:o,prefixCls:i}=e,a=Q(`${i}-icon`,n);return ce.createElement("span",{ref:t,className:a,style:r},o)}),iL=c.forwardRef((e,t)=>{const{prefixCls:n,className:r,style:o,iconClassName:i}=e,a=Q(`${n}-loading-icon`,r);return ce.createElement(nj,{prefixCls:n,className:a,style:o,ref:t},ce.createElement(Zl,{className:i}))}),n2=()=>({width:0,opacity:0,transform:"scale(0)"}),r2=e=>({width:e.scrollWidth,opacity:1,transform:"scale(1)"}),cMe=e=>{const{prefixCls:t,loading:n,existIcon:r,className:o,style:i,mount:a}=e,s=!!n;return r?ce.createElement(iL,{prefixCls:t,className:o,style:i}):ce.createElement(si,{visible:s,motionName:`${t}-loading-icon-motion`,motionAppear:!a,motionEnter:!a,motionLeave:!a,removeOnLeave:!0,onAppearStart:n2,onAppearActive:r2,onEnterStart:n2,onEnterActive:r2,onLeaveStart:r2,onLeaveActive:n2},({className:l,style:u},d)=>{const f=Object.assign(Object.assign({},i),u);return ce.createElement(iL,{prefixCls:t,className:Q(o,l),style:f,ref:d})})},aL=(e,t)=>({[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineEndColor:t}}},"&:not(:first-child)":{[`&, & > ${e}`]:{"&:not(:disabled)":{borderInlineStartColor:t}}}}}),uMe=e=>{const{componentCls:t,fontSize:n,lineWidth:r,groupBorderColor:o,colorErrorHover:i}=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}},aL(`${t}-primary`,o),aL(`${t}-danger`,i)]}},ko=Math.round;function o2(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 sL=(e,t,n)=>n===0?e:e/100;function ip(e,t){const n=t||255;return e>n?n:e<0?0:e}let kZ=class AZ{constructor(t){K(this,"isValid",!0),K(this,"r",0),K(this,"g",0),K(this,"b",0),K(this,"a",1),K(this,"_h",void 0),K(this,"_s",void 0),K(this,"_l",void 0),K(this,"_v",void 0),K(this,"_max",void 0),K(this,"_min",void 0),K(this,"_brightness",void 0);function n(r){return r[0]in t&&r[1]in t&&r[2]in t}if(t)if(typeof t=="string"){let o=function(i){return r.startsWith(i)};const r=t.trim();/^#?[A-F\d]{3,8}$/i.test(r)?this.fromHexString(r):o("rgb")?this.fromRgbString(r):o("hsl")?this.fromHslString(r):(o("hsv")||o("hsb"))&&this.fromHsvString(r)}else if(t instanceof AZ)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=ip(t.r),this.g=ip(t.g),this.b=ip(t.b),this.a=typeof t.a=="number"?ip(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(i){const a=i/255;return a<=.03928?a/12.92:Math.pow((a+.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=ko(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,i=s=>(r[s]-this[s])*o+this[s],a={r:ko(i("r")),g:ko(i("g")),b:ko(i("b")),a:ko(i("a")*100)/100};return this._c(a)}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=i=>ko((this[i]*this.a+n[i]*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 i=ko(this.a*255).toString(16);t+=i.length===2?i:"0"+i}return t}toHsl(){return{h:this.getHue(),s:this.getSaturation(),l:this.getLightness(),a:this.a}}toHslString(){const t=this.getHue(),n=ko(this.getSaturation()*100),r=ko(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]=ip(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,i){return parseInt(n[o]+n[i||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=ko(r*255);this.r=m,this.g=m,this.b=m}let i=0,a=0,s=0;const l=t/60,u=(1-Math.abs(2*r-1))*n,d=u*(1-Math.abs(l%2-1));l>=0&&l<1?(i=u,a=d):l>=1&&l<2?(i=d,a=u):l>=2&&l<3?(a=u,s=d):l>=3&&l<4?(a=d,s=u):l>=4&&l<5?(i=d,s=u):l>=5&&l<6&&(i=u,s=d);const f=r-u/2;this.r=ko((i+f)*255),this.g=ko((a+f)*255),this.b=ko((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 i=ko(r*255);if(this.r=i,this.g=i,this.b=i,n<=0)return;const a=t/60,s=Math.floor(a),l=a-s,u=ko(r*(1-n)*255),d=ko(r*(1-n*l)*255),f=ko(r*(1-n*(1-l))*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=o2(t,sL);this.fromHsv({h:n[0],s:n[1],v:n[2],a:n[3]})}fromHslString(t){const n=o2(t,sL);this.fromHsl({h:n[0],s:n[1],l:n[2],a:n[3]})}fromRgbString(t){const n=o2(t,(r,o)=>o.includes("%")?ko(r/100*255):r);this.r=n[0],this.g=n[1],this.b=n[2],this.a=n[3]}};var dMe=["b"],fMe=["v"],i2=function(t){return Math.round(Number(t||0))},mMe=function(t){if(t instanceof kZ)return t;if(t&&_t(t)==="object"&&"h"in t&&"b"in t){var n=t,r=n.b,o=Ht(n,dMe);return Y(Y({},o),{},{v:r})}return typeof t=="string"&&/hsb/.test(t)?t.replace(/hsb/,"hsv"):t},Kg=function(e){Ta(n,e);var t=gs(n);function n(r){return lr(this,n),t.call(this,mMe(r))}return cr(n,[{key:"toHsbString",value:function(){var o=this.toHsb(),i=i2(o.s*100),a=i2(o.b*100),s=i2(o.h),l=o.a,u="hsb(".concat(s,", ").concat(i,"%, ").concat(a,"%)"),d="hsba(".concat(s,", ").concat(i,"%, ").concat(a,"%, ").concat(l.toFixed(l===0?0:2),")");return l===1?u:d}},{key:"toHsb",value:function(){var o=this.toHsv(),i=o.v,a=Ht(o,fMe);return Y(Y({},a),{},{b:i,a:this.a})}}]),n}(kZ),hMe=function(t){return t instanceof Kg?t:new Kg(t)};hMe("#1677ff");const pMe=(e,t)=>(e==null?void 0:e.replace(/[^\w/]/g,"").slice(0,t?8:6))||"",gMe=(e,t)=>e?pMe(e,t):"";let rj=function(){function e(t){lr(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:i})=>({color:new e(o),percent:i})),this.metaColor=new Kg(this.colors[0].color.metaColor)):this.metaColor=new Kg(r?"":t),(!t||r&&!this.colors)&&(this.metaColor=this.metaColor.setA(0),this.cleared=!0)}return cr(e,[{key:"toHsb",value:function(){return this.metaColor.toHsb()}},{key:"toHsbString",value:function(){return this.metaColor.toHsbString()}},{key:"toHex",value:function(){return gMe(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 i=n.colors[o];return r.percent===i.percent&&r.color.equals(i.color)}):this.toHexString()===n.toHexString()}}])}();var vMe={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"},yMe=function(t,n){return c.createElement(yn,Ee({},t,{ref:n,icon:vMe}))},qg=c.forwardRef(yMe);const SS=e=>({[e.componentCls]:{[`${e.antCls}-motion-collapse-legacy`]:{overflow:"hidden","&-active":{transition:`height ${e.motionDurationMid} ${e.motionEaseInOut},
        opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}},[`${e.antCls}-motion-collapse`]:{overflow:"hidden",transition:`height ${e.motionDurationMid} ${e.motionEaseInOut},
        opacity ${e.motionDurationMid} ${e.motionEaseInOut} !important`}}}),bMe=e=>({animationDuration:e,animationFillMode:"both"}),xMe=e=>({animationDuration:e,animationFillMode:"both"}),CS=(e,t,n,r,o=!1)=>{const i=o?"&":"";return{[`
      ${i}${e}-enter,
      ${i}${e}-appear
    `]:Object.assign(Object.assign({},bMe(r)),{animationPlayState:"paused"}),[`${i}${e}-leave`]:Object.assign(Object.assign({},xMe(r)),{animationPlayState:"paused"}),[`
      ${i}${e}-enter${e}-enter-active,
      ${i}${e}-appear${e}-appear-active
    `]:{animationName:t,animationPlayState:"running"},[`${i}${e}-leave${e}-leave-active`]:{animationName:n,animationPlayState:"running",pointerEvents:"none"}}},wMe=new gn("antFadeIn",{"0%":{opacity:0},"100%":{opacity:1}}),SMe=new gn("antFadeOut",{"0%":{opacity:1},"100%":{opacity:0}}),DZ=(e,t=!1)=>{const{antCls:n}=e,r=`${n}-fade`,o=t?"&":"";return[CS(r,wMe,SMe,e.motionDurationMid,t),{[`
        ${o}${r}-enter,
        ${o}${r}-appear
      `]:{opacity:0,animationTimingFunction:"linear"},[`${o}${r}-leave`]:{animationTimingFunction:"linear"}}]},CMe=new gn("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),$Me=new gn("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),EMe=new gn("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),OMe=new gn("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),PMe=new gn("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),jMe=new gn("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),IMe=new gn("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),_Me=new gn("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}}),NMe={"move-up":{inKeyframes:IMe,outKeyframes:_Me},"move-down":{inKeyframes:CMe,outKeyframes:$Me},"move-left":{inKeyframes:EMe,outKeyframes:OMe},"move-right":{inKeyframes:PMe,outKeyframes:jMe}},Wm=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:i}=NMe[t];return[CS(r,o,i,e.motionDurationMid),{[`
        ${r}-enter,
        ${r}-appear
      `]:{opacity:0,animationTimingFunction:e.motionEaseOutCirc},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},$S=new gn("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),ES=new gn("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),OS=new gn("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),PS=new gn("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),RMe=new gn("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),TMe=new gn("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),MMe=new gn("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),kMe=new gn("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),AMe={"slide-up":{inKeyframes:$S,outKeyframes:ES},"slide-down":{inKeyframes:OS,outKeyframes:PS},"slide-left":{inKeyframes:RMe,outKeyframes:TMe},"slide-right":{inKeyframes:MMe,outKeyframes:kMe}},vl=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:i}=AMe[t];return[CS(r,o,i,e.motionDurationMid),{[`
      ${r}-enter,
      ${r}-appear
    `]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:e.motionEaseOutQuint,"&-prepare":{transform:"scale(1)"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInQuint}}]},xT=new gn("antZoomIn",{"0%":{transform:"scale(0.2)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),DMe=new gn("antZoomOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.2)",opacity:0}}),lL=new gn("antZoomBigIn",{"0%":{transform:"scale(0.8)",opacity:0},"100%":{transform:"scale(1)",opacity:1}}),cL=new gn("antZoomBigOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0.8)",opacity:0}}),LMe=new gn("antZoomUpIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 0%"}}),zMe=new gn("antZoomUpOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 0%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 0%",opacity:0}}),FMe=new gn("antZoomLeftIn",{"0%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"0% 50%"}}),BMe=new gn("antZoomLeftOut",{"0%":{transform:"scale(1)",transformOrigin:"0% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"0% 50%",opacity:0}}),HMe=new gn("antZoomRightIn",{"0%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"100% 50%"}}),VMe=new gn("antZoomRightOut",{"0%":{transform:"scale(1)",transformOrigin:"100% 50%"},"100%":{transform:"scale(0.8)",transformOrigin:"100% 50%",opacity:0}}),WMe=new gn("antZoomDownIn",{"0%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0},"100%":{transform:"scale(1)",transformOrigin:"50% 100%"}}),UMe=new gn("antZoomDownOut",{"0%":{transform:"scale(1)",transformOrigin:"50% 100%"},"100%":{transform:"scale(0.8)",transformOrigin:"50% 100%",opacity:0}}),KMe={zoom:{inKeyframes:xT,outKeyframes:DMe},"zoom-big":{inKeyframes:lL,outKeyframes:cL},"zoom-big-fast":{inKeyframes:lL,outKeyframes:cL},"zoom-left":{inKeyframes:FMe,outKeyframes:BMe},"zoom-right":{inKeyframes:HMe,outKeyframes:VMe},"zoom-up":{inKeyframes:LMe,outKeyframes:zMe},"zoom-down":{inKeyframes:WMe,outKeyframes:UMe}},Qv=(e,t)=>{const{antCls:n}=e,r=`${n}-${t}`,{inKeyframes:o,outKeyframes:i}=KMe[t];return[CS(r,o,i,t==="zoom-big-fast"?e.motionDurationFast:e.motionDurationMid),{[`
        ${r}-enter,
        ${r}-appear
      `]:{transform:"scale(0)",opacity:0,animationTimingFunction:e.motionEaseOutCirc,"&-prepare":{transform:"none"}},[`${r}-leave`]:{animationTimingFunction:e.motionEaseInOutCirc}}]},qMe=e=>e instanceof rj?e:new rj(e),GMe=(e,t)=>{const{r:n,g:r,b:o,a:i}=e.toRgb(),a=new Kg(e.toRgbString()).onBackground(t).toHsv();return i<=.5?a.v>.5:n*.299+r*.587+o*.114>192},LZ=e=>{const{paddingInline:t,onlyIconSize:n}=e;return cn(e,{buttonPaddingHorizontal:t,buttonPaddingVertical:0,buttonIconOnlyFontSize:n})},zZ=e=>{var t,n,r,o,i,a;const s=(t=e.contentFontSize)!==null&&t!==void 0?t:e.fontSize,l=(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:fb(s),f=(i=e.contentLineHeightSM)!==null&&i!==void 0?i:fb(l),m=(a=e.contentLineHeightLG)!==null&&a!==void 0?a:fb(u),h=GMe(new rj(e.colorBgSolid),"#fff")?"#000":"#fff",p=Jc.reduce((b,v)=>Object.assign(Object.assign({},b),{[`${v}ShadowColor`]:`0 ${Z(e.controlOutlineWidth)} 0 ${Sp(e[`${v}1`],e.colorBgContainer)}`}),{});return Object.assign(Object.assign({},p),{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:h,contentFontSize:s,contentFontSizeSM:l,contentFontSizeLG:u,contentLineHeight:d,contentLineHeightSM:f,contentLineHeightLG:m,paddingBlock:Math.max((e.controlHeight-s*d)/2-e.lineWidth,0),paddingBlockSM:Math.max((e.controlHeightSM-l*f)/2-e.lineWidth,0),paddingBlockLG:Math.max((e.controlHeightLG-u*m)/2-e.lineWidth,0)})},XMe=e=>{const{componentCls:t,iconCls:n,fontWeight:r,opacityLoading:o,motionDurationSlow:i,motionEaseInOut:a,iconGap:s,calc:l}=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:`${Z(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`]:gh(),"> a":{color:"currentColor"},"&:not(:disabled)":Hs(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} ${i} ${a}`).join(",")},[`&:not(${t}-icon-end)`]:{[`${t}-loading-icon-motion`]:{"&-appear-start, &-enter-start":{marginInlineEnd:l(s).mul(-1).equal()},"&-appear-active, &-enter-active":{marginInlineEnd:0},"&-leave-start":{marginInlineEnd:0},"&-leave-active":{marginInlineEnd:l(s).mul(-1).equal()}}},"&-icon-end":{flexDirection:"row-reverse",[`${t}-loading-icon-motion`]:{"&-appear-start, &-enter-start":{marginInlineStart:l(s).mul(-1).equal()},"&-appear-active, &-enter-active":{marginInlineStart:0},"&-leave-start":{marginInlineStart:0},"&-leave-active":{marginInlineStart:l(s).mul(-1).equal()}}}}}},FZ=(e,t,n)=>({[`&:not(:disabled):not(${e}-disabled)`]:{"&:hover":t,"&:active":n}}),YMe=e=>({minWidth:e.controlHeight,paddingInline:0,borderRadius:"50%"}),ZMe=e=>({cursor:"not-allowed",borderColor:e.borderColorDisabled,color:e.colorTextDisabled,background:e.colorBgContainerDisabled,boxShadow:"none"}),jS=(e,t,n,r,o,i,a,s)=>({[`&${e}-background-ghost`]:Object.assign(Object.assign({color:n||void 0,background:t,borderColor:r||void 0,boxShadow:"none"},FZ(e,Object.assign({background:t},a),Object.assign({background:t},s))),{"&:disabled":{cursor:"not-allowed",color:o||void 0,borderColor:i||void 0}})}),JMe=e=>({[`&:disabled, &${e.componentCls}-disabled`]:Object.assign({},ZMe(e))}),QMe=e=>({[`&:disabled, &${e.componentCls}-disabled`]:{cursor:"not-allowed",color:e.colorTextDisabled}}),IS=(e,t,n,r)=>{const i=r&&["link","text"].includes(r)?QMe:JMe;return Object.assign(Object.assign({},i(e)),FZ(e.componentCls,t,n))},_S=(e,t,n,r,o)=>({[`&${e.componentCls}-variant-solid`]:Object.assign({color:t,background:n},IS(e,r,o))}),NS=(e,t,n,r,o)=>({[`&${e.componentCls}-variant-outlined, &${e.componentCls}-variant-dashed`]:Object.assign({borderColor:t,background:n},IS(e,r,o))}),RS=e=>({[`&${e.componentCls}-variant-dashed`]:{borderStyle:"dashed"}}),TS=(e,t,n,r)=>({[`&${e.componentCls}-variant-filled`]:Object.assign({boxShadow:"none",background:t},IS(e,n,r))}),yl=(e,t,n,r,o)=>({[`&${e.componentCls}-variant-${n}`]:Object.assign({color:t,boxShadow:"none"},IS(e,r,o,n))}),eke=e=>{const{componentCls:t}=e;return Jc.reduce((n,r)=>{const o=e[`${r}6`],i=e[`${r}1`],a=e[`${r}5`],s=e[`${r}2`],l=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`]},_S(e,e.colorTextLightSolid,o,{background:a},{background:u})),NS(e,o,e.colorBgContainer,{color:a,borderColor:a,background:e.colorBgContainer},{color:u,borderColor:u,background:e.colorBgContainer})),RS(e)),TS(e,i,{color:o,background:s},{color:o,background:l})),yl(e,o,"link",{color:a},{color:u})),yl(e,o,"text",{color:a,background:i},{color:u,background:l}))})},{})},tke=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.defaultColor,boxShadow:e.defaultShadow},_S(e,e.solidTextColor,e.colorBgSolid,{color:e.solidTextColor,background:e.colorBgSolidHover},{color:e.solidTextColor,background:e.colorBgSolidActive})),RS(e)),TS(e,e.colorFillTertiary,{color:e.defaultColor,background:e.colorFillSecondary},{color:e.defaultColor,background:e.colorFill})),jS(e.componentCls,e.ghostBg,e.defaultGhostColor,e.defaultGhostBorderColor,e.colorTextDisabled,e.colorBorder)),yl(e,e.textTextColor,"link",{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),nke=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorPrimary,boxShadow:e.primaryShadow},NS(e,e.colorPrimary,e.colorBgContainer,{color:e.colorPrimaryTextHover,borderColor:e.colorPrimaryHover,background:e.colorBgContainer},{color:e.colorPrimaryTextActive,borderColor:e.colorPrimaryActive,background:e.colorBgContainer})),RS(e)),TS(e,e.colorPrimaryBg,{color:e.colorPrimary,background:e.colorPrimaryBgHover},{color:e.colorPrimary,background:e.colorPrimaryBorder})),yl(e,e.colorPrimaryText,"text",{color:e.colorPrimaryTextHover,background:e.colorPrimaryBg},{color:e.colorPrimaryTextActive,background:e.colorPrimaryBorder})),yl(e,e.colorPrimaryText,"link",{color:e.colorPrimaryTextHover,background:e.linkHoverBg},{color:e.colorPrimaryTextActive})),jS(e.componentCls,e.ghostBg,e.colorPrimary,e.colorPrimary,e.colorTextDisabled,e.colorBorder,{color:e.colorPrimaryHover,borderColor:e.colorPrimaryHover},{color:e.colorPrimaryActive,borderColor:e.colorPrimaryActive})),rke=e=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:e.colorError,boxShadow:e.dangerShadow},_S(e,e.dangerColor,e.colorError,{background:e.colorErrorHover},{background:e.colorErrorActive})),NS(e,e.colorError,e.colorBgContainer,{color:e.colorErrorHover,borderColor:e.colorErrorBorderHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),RS(e)),TS(e,e.colorErrorBg,{color:e.colorError,background:e.colorErrorBgFilledHover},{color:e.colorError,background:e.colorErrorBgActive})),yl(e,e.colorError,"text",{color:e.colorErrorHover,background:e.colorErrorBg},{color:e.colorErrorHover,background:e.colorErrorBgActive})),yl(e,e.colorError,"link",{color:e.colorErrorHover},{color:e.colorErrorActive})),jS(e.componentCls,e.ghostBg,e.colorError,e.colorError,e.colorTextDisabled,e.colorBorder,{color:e.colorErrorHover,borderColor:e.colorErrorHover},{color:e.colorErrorActive,borderColor:e.colorErrorActive})),oke=e=>Object.assign(Object.assign({},yl(e,e.colorLink,"link",{color:e.colorLinkHover},{color:e.colorLinkActive})),jS(e.componentCls,e.ghostBg,e.colorInfo,e.colorInfo,e.colorTextDisabled,e.colorBorder,{color:e.colorInfoHover,borderColor:e.colorInfoHover},{color:e.colorInfoActive,borderColor:e.colorInfoActive})),ike=e=>{const{componentCls:t}=e;return Object.assign({[`${t}-color-default`]:tke(e),[`${t}-color-primary`]:nke(e),[`${t}-color-dangerous`]:rke(e),[`${t}-color-link`]:oke(e)},eke(e))},ake=e=>Object.assign(Object.assign(Object.assign(Object.assign({},NS(e,e.defaultBorderColor,e.defaultBg,{color:e.defaultHoverColor,borderColor:e.defaultHoverBorderColor,background:e.defaultHoverBg},{color:e.defaultActiveColor,borderColor:e.defaultActiveBorderColor,background:e.defaultActiveBg})),yl(e,e.textTextColor,"text",{color:e.textTextHoverColor,background:e.textHoverBg},{color:e.textTextActiveColor,background:e.colorBgTextActive})),_S(e,e.primaryColor,e.colorPrimary,{background:e.colorPrimaryHover,color:e.primaryColor},{background:e.colorPrimaryActive,color:e.primaryColor})),yl(e,e.colorLink,"link",{color:e.colorLinkHover,background:e.linkHoverBg},{color:e.colorLinkActive})),wT=(e,t="")=>{const{componentCls:n,controlHeight:r,fontSize:o,borderRadius:i,buttonPaddingHorizontal:a,iconCls:s,buttonPaddingVertical:l,buttonIconOnlyFontSize:u}=e;return[{[t]:{fontSize:o,height:r,padding:`${Z(l)} ${Z(a)}`,borderRadius:i,[`&${n}-icon-only`]:{width:r,[s]:{fontSize:u}}}},{[`${n}${n}-circle${t}`]:YMe(e)},{[`${n}${n}-round${t}`]:{borderRadius:e.controlHeight,[`&:not(${n}-icon-only)`]:{paddingInline:e.buttonPaddingHorizontal}}}]},ske=e=>{const t=cn(e,{fontSize:e.contentFontSize});return wT(t,e.componentCls)},lke=e=>{const t=cn(e,{controlHeight:e.controlHeightSM,fontSize:e.contentFontSizeSM,padding:e.paddingXS,buttonPaddingHorizontal:e.paddingInlineSM,buttonPaddingVertical:0,borderRadius:e.borderRadiusSM,buttonIconOnlyFontSize:e.onlyIconSizeSM});return wT(t,`${e.componentCls}-sm`)},cke=e=>{const t=cn(e,{controlHeight:e.controlHeightLG,fontSize:e.contentFontSizeLG,buttonPaddingHorizontal:e.paddingInlineLG,buttonPaddingVertical:0,borderRadius:e.borderRadiusLG,buttonIconOnlyFontSize:e.onlyIconSizeLG});return wT(t,`${e.componentCls}-lg`)},uke=e=>{const{componentCls:t}=e;return{[t]:{[`&${t}-block`]:{width:"100%"}}}},dke=vn("Button",e=>{const t=LZ(e);return[XMe(t),ske(t),lke(t),cke(t),uke(t),ike(t),ake(t),uMe(t)]},zZ,{unitless:{fontWeight:!0,contentLineHeight:!0,contentLineHeightSM:!0,contentLineHeightLG:!0}});function fke(e,t,n,r){const{focusElCls:o,focus:i,borderElCls:a}=n,s=a?"> *":"",l=["hover",i?"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({[l]:{zIndex:3}},o?{[`&${o}`]:{zIndex:3}}:{}),{[`&[disabled] ${s}`]:{zIndex:0}})}}function mke(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 e0(e,t={focus:!0}){const{componentCls:n}=e,r=`${n}-compact`;return{[r]:Object.assign(Object.assign({},fke(e,r,t,n)),mke(n,r,t))}}function hke(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 pke(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 gke(e){const t=`${e.componentCls}-compact-vertical`;return{[t]:Object.assign(Object.assign({},hke(e,t,e.componentCls)),pke(e.componentCls,t))}}const vke=e=>{const{componentCls:t,colorPrimaryHover:n,lineWidth:r,calc:o}=e,i=o(r).mul(-1).equal(),a=s=>{const l=`${t}-compact${s?"-vertical":""}-item${t}-primary:not([disabled])`;return{[`${l} + ${l}::before`]:{position:"absolute",top:s?i:0,insetInlineStart:s?0:i,backgroundColor:n,content:'""',width:s?"100%":r,height:s?r:"100%"}}};return Object.assign(Object.assign({},a()),a(!0))},yke=vh(["Button","compact"],e=>{const t=LZ(e);return[e0(t),gke(t),vke(t)]},zZ);var bke=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 xke(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 wke={default:["default","outlined"],primary:["primary","solid"],dashed:["default","dashed"],link:["link","link"],text:["default","text"]},Ske=ce.forwardRef((e,t)=>{var n,r;const{loading:o=!1,prefixCls:i,color:a,variant:s,type:l,danger:u=!1,shape:d,size:f,styles:m,disabled:h,className:p,rootClassName:b,children:v,icon:y,iconPosition:x="start",ghost:w=!1,block:C=!1,htmlType:S="button",classNames:$,style:E={},autoInsertSpace:O,autoFocus:P}=e,j=bke(e,["loading","prefixCls","color","variant","type","danger","shape","size","styles","disabled","className","rootClassName","children","icon","iconPosition","ghost","block","htmlType","classNames","style","autoInsertSpace","autoFocus"]),I=l||"default",{button:_}=ce.useContext(kt),R=d||(_==null?void 0:_.shape)||"default",[N,A]=c.useMemo(()=>{if(a&&s)return[a,s];if(l||u){const me=wke[I]||[];return u?["danger",me[1]]:me}return _!=null&&_.color&&(_!=null&&_.variant)?[_.color,_.variant]:["default","outlined"]},[a,s,l,u,_==null?void 0:_.color,_==null?void 0:_.variant,I]),T=N==="danger"?"dangerous":N,{getPrefixCls:k,direction:D,autoInsertSpace:L,className:B,style:H,classNames:F,styles:W}=Br("button"),q=(n=O??L)!==null&&n!==void 0?n:!0,G=k("btn",i),[te,ee,z]=dke(G),ne=c.useContext(ai),X=h??ne,U=c.useContext(MZ),le=c.useMemo(()=>xke(o),[o]),[se,ae]=c.useState(le.loading),[re,fe]=c.useState(!1),ye=c.useRef(null),Pe=xl(t,ye),Oe=c.Children.count(v)===1&&!y&&!t2(A),V=c.useRef(!0);ce.useEffect(()=>(V.current=!1,()=>{V.current=!0}),[]),sn(()=>{let me=null;le.delay>0?me=setTimeout(()=>{me=null,ae(!0)},le.delay):ae(le.loading);function Se(){me&&(clearTimeout(me),me=null)}return Se},[le.delay,le.loading]),c.useEffect(()=>{if(!ye.current||!q)return;const me=ye.current.textContent||"";Oe&&tj(me)?re||fe(!0):re&&fe(!1)}),c.useEffect(()=>{P&&ye.current&&ye.current.focus()},[]);const J=ce.useCallback(me=>{var Se;if(se||X){me.preventDefault();return}(Se=e.onClick)===null||Se===void 0||Se.call(e,("href"in e,me))},[e.onClick,se,X]),{compactSize:oe,compactItemClassnames:de}=uc(G,D),be={large:"lg",small:"sm",middle:void 0},ge=go(me=>{var Se,De;return(De=(Se=f??oe)!==null&&Se!==void 0?Se:U)!==null&&De!==void 0?De:me}),ie=ge&&(r=be[ge])!==null&&r!==void 0?r:"",he=se?"loading":y,xe=Xn(j,["navigate"]),Re=Q(G,ee,z,{[`${G}-${R}`]:R!=="default"&&R,[`${G}-${I}`]:I,[`${G}-dangerous`]:u,[`${G}-color-${T}`]:T,[`${G}-variant-${A}`]:A,[`${G}-${ie}`]:ie,[`${G}-icon-only`]:!v&&v!==0&&!!he,[`${G}-background-ghost`]:w&&!t2(A),[`${G}-loading`]:se,[`${G}-two-chinese-chars`]:re&&q&&!se,[`${G}-block`]:C,[`${G}-rtl`]:D==="rtl",[`${G}-icon-end`]:x==="end"},de,p,b,B),Ce=Object.assign(Object.assign({},H),E),pe=Q($==null?void 0:$.icon,F.icon),_e=Object.assign(Object.assign({},(m==null?void 0:m.icon)||{}),W.icon||{}),we=y&&!se?ce.createElement(nj,{prefixCls:G,className:pe,style:_e},y):o&&typeof o=="object"&&o.icon?ce.createElement(nj,{prefixCls:G,className:pe,style:_e},o.icon):ce.createElement(cMe,{existIcon:!!y,prefixCls:G,loading:se,mount:V.current}),$e=v||v===0?lMe(v,Oe&&q):null;if(xe.href!==void 0)return te(ce.createElement("a",Object.assign({},xe,{className:Q(Re,{[`${G}-disabled`]:X}),href:X?void 0:xe.href,style:Ce,onClick:J,ref:Pe,tabIndex:X?-1:0,"aria-disabled":X}),we,$e));let ve=ce.createElement("button",Object.assign({},j,{type:S,className:Re,style:Ce,onClick:J,disabled:X,ref:Pe}),we,$e,de&&ce.createElement(yke,{prefixCls:G}));return t2(A)||(ve=ce.createElement(Jv,{component:"Button",disabled:se},ve)),te(ve)}),gt=Ske;gt.Group=aMe;gt.__ANT_BUTTON=!0;const a2=e=>typeof(e==null?void 0:e.then)=="function",ST=e=>{const{type:t,children:n,prefixCls:r,buttonProps:o,close:i,autoFocus:a,emitEvent:s,isSilent:l,quitOnNullishReturnValue:u,actionFn:d}=e,f=c.useRef(!1),m=c.useRef(null),[h,p]=Rd(!1),b=(...x)=>{i==null||i.apply(void 0,x)};c.useEffect(()=>{let x=null;return a&&(x=setTimeout(()=>{var w;(w=m.current)===null||w===void 0||w.focus({preventScroll:!0})})),()=>{x&&clearTimeout(x)}},[a]);const v=x=>{a2(x)&&(p(!0),x.then((...w)=>{p(!1,!0),b.apply(void 0,w),f.current=!1},w=>{if(p(!1,!0),f.current=!1,!(l!=null&&l()))return Promise.reject(w)}))},y=x=>{if(f.current)return;if(f.current=!0,!d){b();return}let w;if(s){if(w=d(x),u&&!a2(w)){f.current=!1,b(x);return}}else if(d.length)w=d(i),f.current=!1;else if(w=d(),!a2(w)){b();return}v(w)};return c.createElement(gt,Object.assign({},bT(t),{onClick:y,loading:h,prefixCls:r},o,{ref:m}),n)},t0=ce.createContext({}),{Provider:BZ}=t0,uL=()=>{const{autoFocusButton:e,cancelButtonProps:t,cancelTextLocale:n,isSilent:r,mergedOkCancel:o,rootPrefixCls:i,close:a,onCancel:s,onConfirm:l}=c.useContext(t0);return o?ce.createElement(ST,{isSilent:r,actionFn:s,close:(...u)=>{a==null||a.apply(void 0,u),l==null||l(!1)},autoFocus:e==="cancel",buttonProps:t,prefixCls:`${i}-btn`},n):null},dL=()=>{const{autoFocusButton:e,close:t,isSilent:n,okButtonProps:r,rootPrefixCls:o,okTextLocale:i,okType:a,onConfirm:s,onOk:l}=c.useContext(t0);return ce.createElement(ST,{isSilent:n,type:a||"primary",actionFn:l,close:(...u)=>{t==null||t.apply(void 0,u),s==null||s(!0)},autoFocus:e==="ok",buttonProps:r,prefixCls:`${o}-btn`},i)};var HZ=c.createContext(null),fL=[];function Cke(e,t){var n=c.useState(function(){if(!Uo())return null;var p=document.createElement("div");return p}),r=ue(n,1),o=r[0],i=c.useRef(!1),a=c.useContext(HZ),s=c.useState(fL),l=ue(s,2),u=l[0],d=l[1],f=a||(i.current?void 0:function(p){d(function(b){var v=[p].concat(Ne(b));return v})});function m(){o.parentElement||document.body.appendChild(o),i.current=!0}function h(){var p;(p=o.parentElement)===null||p===void 0||p.removeChild(o),i.current=!1}return sn(function(){return e?a?a(m):m():h(),h},[e]),sn(function(){u.length&&(u.forEach(function(p){return p()}),d(fL))},[u]),[o,f]}var s2;function VZ(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,i;if(e){var a=getComputedStyle(e);r.scrollbarColor=a.scrollbarColor,r.scrollbarWidth=a.scrollbarWidth;var s=getComputedStyle(e,"::-webkit-scrollbar"),l=parseInt(s.width,10),u=parseInt(s.height,10);try{var d=l?"width: ".concat(s.width,";"):"",f=u?"height: ".concat(s.height,";"):"";Dl(`
#`.concat(t,`::-webkit-scrollbar {
`).concat(d,`
`).concat(f,`
}`),t)}catch(p){console.error(p),o=l,i=u}}document.body.appendChild(n);var m=e&&o&&!isNaN(o)?o:n.offsetWidth-n.clientWidth,h=e&&i&&!isNaN(i)?i:n.offsetHeight-n.clientHeight;return document.body.removeChild(n),Fg(t),{width:m,height:h}}function mL(e){return typeof document>"u"?0:(s2===void 0&&(s2=VZ()),s2.width)}function oj(e){return typeof document>"u"||!e||!(e instanceof Element)?{width:0,height:0}:VZ(e)}function $ke(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}var Eke="rc-util-locker-".concat(Date.now()),hL=0;function Oke(e){var t=!!e,n=c.useState(function(){return hL+=1,"".concat(Eke,"_").concat(hL)}),r=ue(n,1),o=r[0];sn(function(){if(t){var i=oj(document.body).width,a=$ke();Dl(`
html body {
  overflow-y: hidden;
  `.concat(a?"width: calc(100% - ".concat(i,"px);"):"",`
}`),o)}else Fg(o);return function(){Fg(o)}},[t,o])}var Pke=!1;function jke(e){return Pke}var pL=function(t){return t===!1?!1:!Uo()||!t?null:typeof t=="string"?document.querySelector(t):typeof t=="function"?t():t},MS=c.forwardRef(function(e,t){var n=e.open,r=e.autoLock,o=e.getContainer;e.debug;var i=e.autoDestroy,a=i===void 0?!0:i,s=e.children,l=c.useState(n),u=ue(l,2),d=u[0],f=u[1],m=d||n;c.useEffect(function(){(a||n)&&f(n)},[n,a]);var h=c.useState(function(){return pL(o)}),p=ue(h,2),b=p[0],v=p[1];c.useEffect(function(){var I=pL(o);v(I??null)});var y=Cke(m&&!b),x=ue(y,2),w=x[0],C=x[1],S=b??w;Oke(r&&n&&Uo()&&(S===w||S===document.body));var $=null;if(s&&Fs(s)&&t){var E=s;$=E.ref}var O=xl($,t);if(!m||!Uo()||b===void 0)return null;var P=S===!1||jke(),j=s;return t&&(j=c.cloneElement(s,{ref:O})),c.createElement(HZ.Provider,{value:C},P?j:Fi.createPortal(j,S))}),WZ=c.createContext({});function Ike(){var e=Y({},sv);return e.useId}var gL=0,vL=Ike();const kS=vL?function(t){var n=vL();return t||n}:function(t){var n=c.useState("ssr-id"),r=ue(n,2),o=r[0],i=r[1];return c.useEffect(function(){var a=gL;gL+=1,i("rc_unique_".concat(a))},[]),t||o};function yL(e,t,n){var r=t;return!r&&n&&(r="".concat(e,"-").concat(n)),r}function bL(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 _ke(e){var t=e.getBoundingClientRect(),n={left:t.left,top:t.top},r=e.ownerDocument,o=r.defaultView||r.parentWindow;return n.left+=bL(o),n.top+=bL(o,!0),n}const Nke=c.memo(function(e){var t=e.children;return t},function(e,t){var n=t.shouldUpdate;return!n});var Rke={width:0,height:0,overflow:"hidden",outline:"none"},Tke={outline:"none"},UZ=ce.forwardRef(function(e,t){var n=e.prefixCls,r=e.className,o=e.style,i=e.title,a=e.ariaId,s=e.footer,l=e.closable,u=e.closeIcon,d=e.onClose,f=e.children,m=e.bodyStyle,h=e.bodyProps,p=e.modalRender,b=e.onMouseDown,v=e.onMouseUp,y=e.holderRef,x=e.visible,w=e.forceRender,C=e.width,S=e.height,$=e.classNames,E=e.styles,O=ce.useContext(WZ),P=O.panel,j=xl(y,P),I=c.useRef(),_=c.useRef();ce.useImperativeHandle(t,function(){return{focus:function(){var H;(H=I.current)===null||H===void 0||H.focus({preventScroll:!0})},changeActive:function(H){var F=document,W=F.activeElement;H&&W===_.current?I.current.focus({preventScroll:!0}):!H&&W===I.current&&_.current.focus({preventScroll:!0})}}});var R={};C!==void 0&&(R.width=C),S!==void 0&&(R.height=S);var N=s?ce.createElement("div",{className:Q("".concat(n,"-footer"),$==null?void 0:$.footer),style:Y({},E==null?void 0:E.footer)},s):null,A=i?ce.createElement("div",{className:Q("".concat(n,"-header"),$==null?void 0:$.header),style:Y({},E==null?void 0:E.header)},ce.createElement("div",{className:"".concat(n,"-title"),id:a},i)):null,M=c.useMemo(function(){return _t(l)==="object"&&l!==null?l:l?{closeIcon:u??ce.createElement("span",{className:"".concat(n,"-close-x")})}:{}},[l,u,n]),T=Pr(M,!0),k=_t(l)==="object"&&l.disabled,D=l?ce.createElement("button",Ee({type:"button",onClick:d,"aria-label":"Close"},T,{className:"".concat(n,"-close"),disabled:k}),M.closeIcon):null,L=ce.createElement("div",{className:Q("".concat(n,"-content"),$==null?void 0:$.content),style:E==null?void 0:E.content},D,A,ce.createElement("div",Ee({className:Q("".concat(n,"-body"),$==null?void 0:$.body),style:Y(Y({},m),E==null?void 0:E.body)},h),f),N);return ce.createElement("div",{key:"dialog-element",role:"dialog","aria-labelledby":i?a:null,"aria-modal":"true",ref:j,style:Y(Y({},o),R),className:Q(n,r),onMouseDown:b,onMouseUp:v},ce.createElement("div",{ref:I,tabIndex:0,style:Tke},ce.createElement(Nke,{shouldUpdate:x||w},p?p(L):L)),ce.createElement("div",{tabIndex:0,ref:_,style:Rke}))}),KZ=c.forwardRef(function(e,t){var n=e.prefixCls,r=e.title,o=e.style,i=e.className,a=e.visible,s=e.forceRender,l=e.destroyOnClose,u=e.motionName,d=e.ariaId,f=e.onVisibleChanged,m=e.mousePosition,h=c.useRef(),p=c.useState(),b=ue(p,2),v=b[0],y=b[1],x={};v&&(x.transformOrigin=v);function w(){var C=_ke(h.current);y(m&&(m.x||m.y)?"".concat(m.x-C.left,"px ").concat(m.y-C.top,"px"):"")}return c.createElement(si,{visible:a,onVisibleChanged:f,onAppearPrepare:w,onEnterPrepare:w,forceRender:s,motionName:u,removeOnLeave:l,ref:h},function(C,S){var $=C.className,E=C.style;return c.createElement(UZ,Ee({},e,{ref:t,title:r,ariaId:d,prefixCls:n,holderRef:S,style:Y(Y(Y({},E),o),x),className:Q(i,$)}))})});KZ.displayName="Content";var Mke=function(t){var n=t.prefixCls,r=t.style,o=t.visible,i=t.maskProps,a=t.motionName,s=t.className;return c.createElement(si,{key:"mask",visible:o,motionName:a,leavedClassName:"".concat(n,"-mask-hidden")},function(l,u){var d=l.className,f=l.style;return c.createElement("div",Ee({ref:u,style:Y(Y({},f),r),className:Q("".concat(n,"-mask"),d,s)},i))})},kke=function(t){var n=t.prefixCls,r=n===void 0?"rc-dialog":n,o=t.zIndex,i=t.visible,a=i===void 0?!1:i,s=t.keyboard,l=s===void 0?!0:s,u=t.focusTriggerAfterClose,d=u===void 0?!0:u,f=t.wrapStyle,m=t.wrapClassName,h=t.wrapProps,p=t.onClose,b=t.afterOpenChange,v=t.afterClose,y=t.transitionName,x=t.animation,w=t.closable,C=w===void 0?!0:w,S=t.mask,$=S===void 0?!0:S,E=t.maskTransitionName,O=t.maskAnimation,P=t.maskClosable,j=P===void 0?!0:P,I=t.maskStyle,_=t.maskProps,R=t.rootClassName,N=t.classNames,A=t.styles,M=c.useRef(),T=c.useRef(),k=c.useRef(),D=c.useState(a),L=ue(D,2),B=L[0],H=L[1],F=kS();function W(){PP(T.current,document.activeElement)||(M.current=document.activeElement)}function q(){if(!PP(T.current,document.activeElement)){var ae;(ae=k.current)===null||ae===void 0||ae.focus()}}function G(ae){if(ae)q();else{if(H(!1),$&&M.current&&d){try{M.current.focus({preventScroll:!0})}catch{}M.current=null}B&&(v==null||v())}b==null||b(ae)}function te(ae){p==null||p(ae)}var ee=c.useRef(!1),z=c.useRef(),ne=function(){clearTimeout(z.current),ee.current=!0},X=function(){z.current=setTimeout(function(){ee.current=!1})},U=null;j&&(U=function(re){ee.current?ee.current=!1:T.current===re.target&&te(re)});function le(ae){if(l&&ae.keyCode===jt.ESC){ae.stopPropagation(),te(ae);return}a&&ae.keyCode===jt.TAB&&k.current.changeActive(!ae.shiftKey)}c.useEffect(function(){a&&(H(!0),W())},[a]),c.useEffect(function(){return function(){clearTimeout(z.current)}},[]);var se=Y(Y(Y({zIndex:o},f),A==null?void 0:A.wrapper),{},{display:B?null:"none"});return c.createElement("div",Ee({className:Q("".concat(r,"-root"),R)},Pr(t,{data:!0})),c.createElement(Mke,{prefixCls:r,visible:$&&a,motionName:yL(r,E,O),style:Y(Y({zIndex:o},I),A==null?void 0:A.mask),maskProps:_,className:N==null?void 0:N.mask}),c.createElement("div",Ee({tabIndex:-1,onKeyDown:le,className:Q("".concat(r,"-wrap"),m,N==null?void 0:N.wrapper),ref:T,onClick:U,style:se},h),c.createElement(KZ,Ee({},t,{onMouseDown:ne,onMouseUp:X,ref:k,closable:C,ariaId:F,prefixCls:r,visible:a&&B,onClose:te,onVisibleChanged:G,motionName:yL(r,y,x)}))))},qZ=function(t){var n=t.visible,r=t.getContainer,o=t.forceRender,i=t.destroyOnClose,a=i===void 0?!1:i,s=t.afterClose,l=t.panelRef,u=c.useState(n),d=ue(u,2),f=d[0],m=d[1],h=c.useMemo(function(){return{panel:l}},[l]);return c.useEffect(function(){n&&m(!0)},[n]),!o&&a&&!f?null:c.createElement(WZ.Provider,{value:h},c.createElement(MS,{open:n||o||f,autoDestroy:!1,getContainer:r,autoLock:n||f},c.createElement(kke,Ee({},t,{destroyOnClose:a,afterClose:function(){s==null||s(),m(!1)}}))))};qZ.displayName="Dialog";var Ku="RC_FORM_INTERNAL_HOOKS",rr=function(){ir(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")},Td=c.createContext({getFieldValue:rr,getFieldsValue:rr,getFieldError:rr,getFieldWarning:rr,getFieldsError:rr,isFieldsTouched:rr,isFieldTouched:rr,isFieldValidating:rr,isFieldsValidating:rr,resetFields:rr,setFields:rr,setFieldValue:rr,setFieldsValue:rr,validateFields:rr,submit:rr,getInternalHooks:function(){return rr(),{dispatch:rr,initEntityValue:rr,registerField:rr,useSubscribe:rr,setInitialValues:rr,destroyForm:rr,setCallbacks:rr,registerWatch:rr,getFields:rr,setValidateMessages:rr,setPreserve:rr,getInitialValue:rr}}}),Gg=c.createContext(null);function ij(e){return e==null?[]:Array.isArray(e)?e:[e]}function Ake(e){return e&&!!e._init}function aj(){return{default:"Validation error on field %s",required:"%s is required",enum:"%s must be one of %s",whitespace:"%s cannot be empty",date:{format:"%s date %s is invalid for format %s",parse:"%s date could not be parsed, %s is invalid ",invalid:"%s date %s is invalid"},types:{string:"%s is not a %s",method:"%s is not a %s (function)",array:"%s is not an %s",object:"%s is not an %s",number:"%s is not a %s",date:"%s is not a %s",boolean:"%s is not a %s",integer:"%s is not an %s",float:"%s is not a %s",regexp:"%s is not a valid %s",email:"%s is not a valid %s",url:"%s is not a valid %s",hex:"%s is not a valid %s"},string:{len:"%s must be exactly %s characters",min:"%s must be at least %s characters",max:"%s cannot be longer than %s characters",range:"%s must be between %s and %s characters"},number:{len:"%s must equal %s",min:"%s cannot be less than %s",max:"%s cannot be greater than %s",range:"%s must be between %s and %s"},array:{len:"%s must be exactly %s in length",min:"%s cannot be less than %s in length",max:"%s cannot be greater than %s in length",range:"%s must be between %s and %s in length"},pattern:{mismatch:"%s value %s does not match pattern %s"},clone:function(){var t=JSON.parse(JSON.stringify(this));return t.clone=this.clone,t}}}var sj=aj();function Dke(e){try{return Function.toString.call(e).indexOf("[native code]")!==-1}catch{return typeof e=="function"}}function Lke(e,t,n){if(fS())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,t);var o=new(e.bind.apply(e,r));return n&&Lg(o,n.prototype),o}function lj(e){var t=typeof Map=="function"?new Map:void 0;return lj=function(r){if(r===null||!Dke(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 Lke(r,arguments,Id(this).constructor)}return o.prototype=Object.create(r.prototype,{constructor:{value:o,enumerable:!1,writable:!0,configurable:!0}}),Lg(o,r)},lj(e)}var zke=/%[sdj%]/g,Fke=function(){};function cj(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 Ea(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,i=n.length;if(typeof e=="function")return e.apply(null,n);if(typeof e=="string"){var a=e.replace(zke,function(s){if(s==="%%")return"%";if(o>=i)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 a}return e}function Bke(e){return e==="string"||e==="url"||e==="hex"||e==="email"||e==="date"||e==="pattern"}function Eo(e,t){return!!(e==null||t==="array"&&Array.isArray(e)&&!e.length||Bke(t)&&typeof e=="string"&&!e)}function Hke(e,t,n){var r=[],o=0,i=e.length;function a(s){r.push.apply(r,Ne(s||[])),o++,o===i&&n(r)}e.forEach(function(s){t(s,a)})}function xL(e,t,n){var r=0,o=e.length;function i(a){if(a&&a.length){n(a);return}var s=r;r=r+1,s<o?t(e[s],i):n([])}i([])}function Vke(e){var t=[];return Object.keys(e).forEach(function(n){t.push.apply(t,Ne(e[n]||[]))}),t}var wL=function(e){Ta(n,e);var t=gs(n);function n(r,o){var i;return lr(this,n),i=t.call(this,"Async Validation Error"),K(Ct(i),"errors",void 0),K(Ct(i),"fields",void 0),i.errors=r,i.fields=o,i}return cr(n)}(lj(Error));function Wke(e,t,n,r,o){if(t.first){var i=new Promise(function(m,h){var p=function(y){return r(y),y.length?h(new wL(y,cj(y))):m(o)},b=Vke(e);xL(b,n,p)});return i.catch(function(m){return m}),i}var a=t.firstFields===!0?Object.keys(e):t.firstFields||[],s=Object.keys(e),l=s.length,u=0,d=[],f=new Promise(function(m,h){var p=function(v){if(d.push.apply(d,v),u++,u===l)return r(d),d.length?h(new wL(d,cj(d))):m(o)};s.length||(r(d),m(o)),s.forEach(function(b){var v=e[b];a.indexOf(b)!==-1?xL(v,n,p):Hke(v,n,p)})});return f.catch(function(m){return m}),f}function Uke(e){return!!(e&&e.message!==void 0)}function Kke(e,t){for(var n=e,r=0;r<t.length;r++){if(n==null)return n;n=n[t[r]]}return n}function SL(e,t){return function(n){var r;return e.fullFields?r=Kke(t,e.fullFields):r=t[n.field||e.fullField],Uke(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 CL(e,t){if(t){for(var n in t)if(t.hasOwnProperty(n)){var r=t[n];_t(r)==="object"&&_t(e[n])==="object"?e[n]=Y(Y({},e[n]),r):e[n]=r}}return e}var df="enum",qke=function(t,n,r,o,i){t[df]=Array.isArray(t[df])?t[df]:[],t[df].indexOf(n)===-1&&o.push(Ea(i.messages[df],t.fullField,t[df].join(", ")))},Gke=function(t,n,r,o,i){if(t.pattern){if(t.pattern instanceof RegExp)t.pattern.lastIndex=0,t.pattern.test(n)||o.push(Ea(i.messages.pattern.mismatch,t.fullField,n,t.pattern));else if(typeof t.pattern=="string"){var a=new RegExp(t.pattern);a.test(n)||o.push(Ea(i.messages.pattern.mismatch,t.fullField,n,t.pattern))}}},Xke=function(t,n,r,o,i){var a=typeof t.len=="number",s=typeof t.min=="number",l=typeof t.max=="number",u=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,d=n,f=null,m=typeof n=="number",h=typeof n=="string",p=Array.isArray(n);if(m?f="number":h?f="string":p&&(f="array"),!f)return!1;p&&(d=n.length),h&&(d=n.replace(u,"_").length),a?d!==t.len&&o.push(Ea(i.messages[f].len,t.fullField,t.len)):s&&!l&&d<t.min?o.push(Ea(i.messages[f].min,t.fullField,t.min)):l&&!s&&d>t.max?o.push(Ea(i.messages[f].max,t.fullField,t.max)):s&&l&&(d<t.min||d>t.max)&&o.push(Ea(i.messages[f].range,t.fullField,t.min,t.max))},GZ=function(t,n,r,o,i,a){t.required&&(!r.hasOwnProperty(t.field)||Eo(n,a||t.type))&&o.push(Ea(i.messages.required,t.fullField))},fy;const Yke=function(){if(fy)return fy;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}|:))")],i="(?:%[0-9a-zA-Z]{1,})?",a="(?:".concat(o.join("|"),")").concat(i),s=new RegExp("(?:^".concat(n,"$)|(?:^").concat(a,"$)")),l=new RegExp("^".concat(n,"$")),u=new RegExp("^".concat(a,"$")),d=function($){return $&&$.exact?s:new RegExp("(?:".concat(t($)).concat(n).concat(t($),")|(?:").concat(t($)).concat(a).concat(t($),")"),"g")};d.v4=function(S){return S&&S.exact?l:new RegExp("".concat(t(S)).concat(n).concat(t(S)),"g")},d.v6=function(S){return S&&S.exact?u:new RegExp("".concat(t(S)).concat(a).concat(t(S)),"g")};var f="(?:(?:[a-z]+:)?//)",m="(?:\\S+(?::\\S*)?@)?",h=d.v4().source,p=d.v6().source,b="(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)",v="(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*",y="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",x="(?::\\d{2,5})?",w='(?:[/?#][^\\s"]*)?',C="(?:".concat(f,"|www\\.)").concat(m,"(?:localhost|").concat(h,"|").concat(p,"|").concat(b).concat(v).concat(y,")").concat(x).concat(w);return fy=new RegExp("(?:^".concat(C,"$)"),"i"),fy};var $L={email:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}])|(([a-zA-Z\-0-9\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+\.)+[a-zA-Z\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}))$/,hex:/^#?([a-f0-9]{6}|[a-f0-9]{3})$/i},Cp={integer:function(t){return Cp.number(t)&&parseInt(t,10)===t},float:function(t){return Cp.number(t)&&!Cp.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 _t(t)==="object"&&!Cp.array(t)},method:function(t){return typeof t=="function"},email:function(t){return typeof t=="string"&&t.length<=320&&!!t.match($L.email)},url:function(t){return typeof t=="string"&&t.length<=2048&&!!t.match(Yke())},hex:function(t){return typeof t=="string"&&!!t.match($L.hex)}},Zke=function(t,n,r,o,i){if(t.required&&n===void 0){GZ(t,n,r,o,i);return}var a=["integer","float","array","regexp","object","method","email","number","date","url","hex"],s=t.type;a.indexOf(s)>-1?Cp[s](n)||o.push(Ea(i.messages.types[s],t.fullField,t.type)):s&&_t(n)!==t.type&&o.push(Ea(i.messages.types[s],t.fullField,t.type))},Jke=function(t,n,r,o,i){(/^\s+$/.test(n)||n==="")&&o.push(Ea(i.messages.whitespace,t.fullField))};const Mn={required:GZ,whitespace:Jke,type:Zke,range:Xke,enum:qke,pattern:Gke};var Qke=function(t,n,r,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(Eo(n)&&!t.required)return r();Mn.required(t,n,o,a,i)}r(a)},e6e=function(t,n,r,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(n==null&&!t.required)return r();Mn.required(t,n,o,a,i,"array"),n!=null&&(Mn.type(t,n,o,a,i),Mn.range(t,n,o,a,i))}r(a)},t6e=function(t,n,r,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(Eo(n)&&!t.required)return r();Mn.required(t,n,o,a,i),n!==void 0&&Mn.type(t,n,o,a,i)}r(a)},n6e=function(t,n,r,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(Eo(n,"date")&&!t.required)return r();if(Mn.required(t,n,o,a,i),!Eo(n,"date")){var l;n instanceof Date?l=n:l=new Date(n),Mn.type(t,l,o,a,i),l&&Mn.range(t,l.getTime(),o,a,i)}}r(a)},r6e="enum",o6e=function(t,n,r,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(Eo(n)&&!t.required)return r();Mn.required(t,n,o,a,i),n!==void 0&&Mn[r6e](t,n,o,a,i)}r(a)},i6e=function(t,n,r,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(Eo(n)&&!t.required)return r();Mn.required(t,n,o,a,i),n!==void 0&&(Mn.type(t,n,o,a,i),Mn.range(t,n,o,a,i))}r(a)},a6e=function(t,n,r,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(Eo(n)&&!t.required)return r();Mn.required(t,n,o,a,i),n!==void 0&&(Mn.type(t,n,o,a,i),Mn.range(t,n,o,a,i))}r(a)},s6e=function(t,n,r,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(Eo(n)&&!t.required)return r();Mn.required(t,n,o,a,i),n!==void 0&&Mn.type(t,n,o,a,i)}r(a)},l6e=function(t,n,r,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(n===""&&(n=void 0),Eo(n)&&!t.required)return r();Mn.required(t,n,o,a,i),n!==void 0&&(Mn.type(t,n,o,a,i),Mn.range(t,n,o,a,i))}r(a)},c6e=function(t,n,r,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(Eo(n)&&!t.required)return r();Mn.required(t,n,o,a,i),n!==void 0&&Mn.type(t,n,o,a,i)}r(a)},u6e=function(t,n,r,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(Eo(n,"string")&&!t.required)return r();Mn.required(t,n,o,a,i),Eo(n,"string")||Mn.pattern(t,n,o,a,i)}r(a)},d6e=function(t,n,r,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(Eo(n)&&!t.required)return r();Mn.required(t,n,o,a,i),Eo(n)||Mn.type(t,n,o,a,i)}r(a)},f6e=function(t,n,r,o,i){var a=[],s=Array.isArray(n)?"array":_t(n);Mn.required(t,n,o,a,i,s),r(a)},m6e=function(t,n,r,o,i){var a=[],s=t.required||!t.required&&o.hasOwnProperty(t.field);if(s){if(Eo(n,"string")&&!t.required)return r();Mn.required(t,n,o,a,i,"string"),Eo(n,"string")||(Mn.type(t,n,o,a,i),Mn.range(t,n,o,a,i),Mn.pattern(t,n,o,a,i),t.whitespace===!0&&Mn.whitespace(t,n,o,a,i))}r(a)},l2=function(t,n,r,o,i){var a=t.type,s=[],l=t.required||!t.required&&o.hasOwnProperty(t.field);if(l){if(Eo(n,a)&&!t.required)return r();Mn.required(t,n,o,s,i,a),Eo(n,a)||Mn.type(t,n,o,s,i)}r(s)};const Hp={string:m6e,method:s6e,number:l6e,boolean:t6e,regexp:d6e,integer:a6e,float:i6e,array:e6e,object:c6e,enum:o6e,pattern:u6e,date:n6e,url:l2,hex:l2,email:l2,required:f6e,any:Qke};var n0=function(){function e(t){lr(this,e),K(this,"rules",null),K(this,"_messages",sj),this.define(t)}return cr(e,[{key:"define",value:function(n){var r=this;if(!n)throw new Error("Cannot configure a schema with no rules");if(_t(n)!=="object"||Array.isArray(n))throw new Error("Rules must be an object");this.rules={},Object.keys(n).forEach(function(o){var i=n[o];r.rules[o]=Array.isArray(i)?i:[i]})}},{key:"messages",value:function(n){return n&&(this._messages=CL(aj(),n)),this._messages}},{key:"validate",value:function(n){var r=this,o=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(){},a=n,s=o,l=i;if(typeof s=="function"&&(l=s,s={}),!this.rules||Object.keys(this.rules).length===0)return l&&l(null,a),Promise.resolve(a);function u(p){var b=[],v={};function y(w){if(Array.isArray(w)){var C;b=(C=b).concat.apply(C,Ne(w))}else b.push(w)}for(var x=0;x<p.length;x++)y(p[x]);b.length?(v=cj(b),l(b,v)):l(null,a)}if(s.messages){var d=this.messages();d===sj&&(d=aj()),CL(d,s.messages),s.messages=d}else s.messages=this.messages();var f={},m=s.keys||Object.keys(this.rules);m.forEach(function(p){var b=r.rules[p],v=a[p];b.forEach(function(y){var x=y;typeof x.transform=="function"&&(a===n&&(a=Y({},a)),v=a[p]=x.transform(v),v!=null&&(x.type=x.type||(Array.isArray(v)?"array":_t(v)))),typeof x=="function"?x={validator:x}:x=Y({},x),x.validator=r.getValidationMethod(x),x.validator&&(x.field=p,x.fullField=x.fullField||p,x.type=r.getType(x),f[p]=f[p]||[],f[p].push({rule:x,value:v,source:a,field:p}))})});var h={};return Wke(f,s,function(p,b){var v=p.rule,y=(v.type==="object"||v.type==="array")&&(_t(v.fields)==="object"||_t(v.defaultField)==="object");y=y&&(v.required||!v.required&&p.value),v.field=p.field;function x(E,O){return Y(Y({},O),{},{fullField:"".concat(v.fullField,".").concat(E),fullFields:v.fullFields?[].concat(Ne(v.fullFields),[E]):[E]})}function w(){var E=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],O=Array.isArray(E)?E:[E];!s.suppressWarning&&O.length&&e.warning("async-validator:",O),O.length&&v.message!==void 0&&(O=[].concat(v.message));var P=O.map(SL(v,a));if(s.first&&P.length)return h[v.field]=1,b(P);if(!y)b(P);else{if(v.required&&!p.value)return v.message!==void 0?P=[].concat(v.message).map(SL(v,a)):s.error&&(P=[s.error(v,Ea(s.messages.required,v.field))]),b(P);var j={};v.defaultField&&Object.keys(p.value).map(function(R){j[R]=v.defaultField}),j=Y(Y({},j),p.rule.fields);var I={};Object.keys(j).forEach(function(R){var N=j[R],A=Array.isArray(N)?N:[N];I[R]=A.map(x.bind(null,R))});var _=new e(I);_.messages(s.messages),p.rule.options&&(p.rule.options.messages=s.messages,p.rule.options.error=s.error),_.validate(p.value,p.rule.options||s,function(R){var N=[];P&&P.length&&N.push.apply(N,Ne(P)),R&&R.length&&N.push.apply(N,Ne(R)),b(N.length?N:null)})}}var C;if(v.asyncValidator)C=v.asyncValidator(v,p.value,w,p.source,s);else if(v.validator){try{C=v.validator(v,p.value,w,p.source,s)}catch(E){var S,$;(S=($=console).error)===null||S===void 0||S.call($,E),s.suppressValidatorError||setTimeout(function(){throw E},0),w(E.message)}C===!0?w():C===!1?w(typeof v.message=="function"?v.message(v.fullField||v.field):v.message||"".concat(v.fullField||v.field," fails")):C instanceof Array?w(C):C instanceof Error&&w(C.message)}C&&C.then&&C.then(function(){return w()},function(E){return w(E)})},function(p){u(p)},a)}},{key:"getType",value:function(n){if(n.type===void 0&&n.pattern instanceof RegExp&&(n.type="pattern"),typeof n.validator!="function"&&n.type&&!Hp.hasOwnProperty(n.type))throw new Error(Ea("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"?Hp.required:Hp[this.getType(n)]||void 0}}]),e}();K(n0,"register",function(t,n){if(typeof n!="function")throw new Error("Cannot register a validator by type, validator is not a function");Hp[t]=n});K(n0,"warning",Fke);K(n0,"messages",sj);K(n0,"validators",Hp);var pa="'${name}' is not a valid ${type}",XZ={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:pa,method:pa,array:pa,object:pa,number:pa,date:pa,boolean:pa,integer:pa,float:pa,regexp:pa,email:pa,url:pa,hex:pa},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}"}},EL=n0;function h6e(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 OL="CODE_LOGIC_ERROR";function uj(e,t,n,r,o){return dj.apply(this,arguments)}function dj(){return dj=Di(Vn().mark(function e(t,n,r,o,i){var a,s,l,u,d,f,m,h,p;return Vn().wrap(function(v){for(;;)switch(v.prev=v.next){case 0:return a=Y({},r),delete a.ruleIndex,EL.warning=function(){},a.validator&&(s=a.validator,a.validator=function(){try{return s.apply(void 0,arguments)}catch(y){return console.error(y),Promise.reject(OL)}}),l=null,a&&a.type==="array"&&a.defaultField&&(l=a.defaultField,delete a.defaultField),u=new EL(K({},t,[a])),d=Bf(XZ,o.validateMessages),u.messages(d),f=[],v.prev=10,v.next=13,Promise.resolve(u.validate(K({},t,n),Y({},o)));case 13:v.next=18;break;case 15:v.prev=15,v.t0=v.catch(10),v.t0.errors&&(f=v.t0.errors.map(function(y,x){var w=y.message,C=w===OL?d.default:w;return c.isValidElement(C)?c.cloneElement(C,{key:"error_".concat(x)}):C}));case 18:if(!(!f.length&&l&&Array.isArray(n)&&n.length>0)){v.next=23;break}return v.next=21,Promise.all(n.map(function(y,x){return uj("".concat(t,".").concat(x),y,l,o,i)}));case 21:return m=v.sent,v.abrupt("return",m.reduce(function(y,x){return[].concat(Ne(y),Ne(x))},[]));case 23:return h=Y(Y({},r),{},{name:t,enum:(r.enum||[]).join(", ")},i),p=f.map(function(y){return typeof y=="string"?h6e(y,h):y}),v.abrupt("return",p);case 26:case"end":return v.stop()}},e,null,[[10,15]])})),dj.apply(this,arguments)}function p6e(e,t,n,r,o,i){var a=e.join("."),s=n.map(function(d,f){var m=d.validator,h=Y(Y({},d),{},{ruleIndex:f});return m&&(h.validator=function(p,b,v){var y=!1,x=function(){for(var S=arguments.length,$=new Array(S),E=0;E<S;E++)$[E]=arguments[E];Promise.resolve().then(function(){ir(!y,"Your validator function has already return a promise. `callback` will be ignored."),y||v.apply(void 0,$)})},w=m(p,b,x);y=w&&typeof w.then=="function"&&typeof w.catch=="function",ir(y,"`callback` is deprecated. Please return a promise instead."),y&&w.then(function(){v()}).catch(function(C){v(C||" ")})}),h}).sort(function(d,f){var m=d.warningOnly,h=d.ruleIndex,p=f.warningOnly,b=f.ruleIndex;return!!m==!!p?h-b:m?1:-1}),l;if(o===!0)l=new Promise(function(){var d=Di(Vn().mark(function f(m,h){var p,b,v;return Vn().wrap(function(x){for(;;)switch(x.prev=x.next){case 0:p=0;case 1:if(!(p<s.length)){x.next=12;break}return b=s[p],x.next=5,uj(a,t,b,r,i);case 5:if(v=x.sent,!v.length){x.next=9;break}return h([{errors:v,rule:b}]),x.abrupt("return");case 9:p+=1,x.next=1;break;case 12:m([]);case 13:case"end":return x.stop()}},f)}));return function(f,m){return d.apply(this,arguments)}}());else{var u=s.map(function(d){return uj(a,t,d,r,i).then(function(f){return{errors:f,rule:d}})});l=(o?v6e(u):g6e(u)).then(function(d){return Promise.reject(d)})}return l.catch(function(d){return d}),l}function g6e(e){return fj.apply(this,arguments)}function fj(){return fj=Di(Vn().mark(function e(t){return Vn().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",Promise.all(t).then(function(o){var i,a=(i=[]).concat.apply(i,Ne(o));return a}));case 1:case"end":return r.stop()}},e)})),fj.apply(this,arguments)}function v6e(e){return mj.apply(this,arguments)}function mj(){return mj=Di(Vn().mark(function e(t){var n;return Vn().wrap(function(o){for(;;)switch(o.prev=o.next){case 0:return n=0,o.abrupt("return",new Promise(function(i){t.forEach(function(a){a.then(function(s){s.errors.length&&i([s]),n+=1,n===t.length&&i([])})})}));case 2:case"end":return o.stop()}},e)})),mj.apply(this,arguments)}function Jr(e){return ij(e)}function PL(e,t){var n={};return t.forEach(function(r){var o=Ai(e,r);n=Ka(n,r,o)}),n}function cm(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return e&&e.some(function(r){return YZ(t,r,n)})}function YZ(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 y6e(e,t){if(e===t)return!0;if(!e&&t||e&&!t||!e||!t||_t(e)!=="object"||_t(t)!=="object")return!1;var n=Object.keys(e),r=Object.keys(t),o=new Set([].concat(n,r));return Ne(o).every(function(i){var a=e[i],s=t[i];return typeof a=="function"&&typeof s=="function"?!0:a===s})}function b6e(e){var t=arguments.length<=1?void 0:arguments[1];return t&&t.target&&_t(t.target)==="object"&&e in t.target?t.target[e]:t}function jL(e,t,n){var r=e.length;if(t<0||t>=r||n<0||n>=r)return e;var o=e[t],i=t-n;return i>0?[].concat(Ne(e.slice(0,n)),[o],Ne(e.slice(n,t)),Ne(e.slice(t+1,r))):i<0?[].concat(Ne(e.slice(0,t)),Ne(e.slice(t+1,n+1)),[o],Ne(e.slice(n+1,r))):e}var x6e=["name"],za=[];function c2(e,t,n,r,o,i){return typeof e=="function"?e(t,n,"source"in i?{source:i.source}:{}):r!==o}var CT=function(e){Ta(n,e);var t=gs(n);function n(r){var o;if(lr(this,n),o=t.call(this,r),K(Ct(o),"state",{resetCount:0}),K(Ct(o),"cancelRegisterFunc",null),K(Ct(o),"mounted",!1),K(Ct(o),"touched",!1),K(Ct(o),"dirty",!1),K(Ct(o),"validatePromise",void 0),K(Ct(o),"prevValidating",void 0),K(Ct(o),"errors",za),K(Ct(o),"warnings",za),K(Ct(o),"cancelRegister",function(){var l=o.props,u=l.preserve,d=l.isListField,f=l.name;o.cancelRegisterFunc&&o.cancelRegisterFunc(d,u,Jr(f)),o.cancelRegisterFunc=null}),K(Ct(o),"getNamePath",function(){var l=o.props,u=l.name,d=l.fieldContext,f=d.prefixName,m=f===void 0?[]:f;return u!==void 0?[].concat(Ne(m),Ne(u)):[]}),K(Ct(o),"getRules",function(){var l=o.props,u=l.rules,d=u===void 0?[]:u,f=l.fieldContext;return d.map(function(m){return typeof m=="function"?m(f):m})}),K(Ct(o),"refresh",function(){o.mounted&&o.setState(function(l){var u=l.resetCount;return{resetCount:u+1}})}),K(Ct(o),"metaCache",null),K(Ct(o),"triggerMetaEvent",function(l){var u=o.props.onMetaChange;if(u){var d=Y(Y({},o.getMeta()),{},{destroy:l});ml(o.metaCache,d)||u(d),o.metaCache=d}else o.metaCache=null}),K(Ct(o),"onStoreChange",function(l,u,d){var f=o.props,m=f.shouldUpdate,h=f.dependencies,p=h===void 0?[]:h,b=f.onReset,v=d.store,y=o.getNamePath(),x=o.getValue(l),w=o.getValue(v),C=u&&cm(u,y);switch(d.type==="valueUpdate"&&d.source==="external"&&!ml(x,w)&&(o.touched=!0,o.dirty=!0,o.validatePromise=null,o.errors=za,o.warnings=za,o.triggerMetaEvent()),d.type){case"reset":if(!u||C){o.touched=!1,o.dirty=!1,o.validatePromise=void 0,o.errors=za,o.warnings=za,o.triggerMetaEvent(),b==null||b(),o.refresh();return}break;case"remove":{if(m&&c2(m,l,v,x,w,d)){o.reRender();return}break}case"setField":{var S=d.data;if(C){"touched"in S&&(o.touched=S.touched),"validating"in S&&!("originRCField"in S)&&(o.validatePromise=S.validating?Promise.resolve([]):null),"errors"in S&&(o.errors=S.errors||za),"warnings"in S&&(o.warnings=S.warnings||za),o.dirty=!0,o.triggerMetaEvent(),o.reRender();return}else if("value"in S&&cm(u,y,!0)){o.reRender();return}if(m&&!y.length&&c2(m,l,v,x,w,d)){o.reRender();return}break}case"dependenciesUpdate":{var $=p.map(Jr);if($.some(function(E){return cm(d.relatedFields,E)})){o.reRender();return}break}default:if(C||(!p.length||y.length||m)&&c2(m,l,v,x,w,d)){o.reRender();return}break}m===!0&&o.reRender()}),K(Ct(o),"validateRules",function(l){var u=o.getNamePath(),d=o.getValue(),f=l||{},m=f.triggerName,h=f.validateOnly,p=h===void 0?!1:h,b=Promise.resolve().then(Di(Vn().mark(function v(){var y,x,w,C,S,$,E;return Vn().wrap(function(P){for(;;)switch(P.prev=P.next){case 0:if(o.mounted){P.next=2;break}return P.abrupt("return",[]);case 2:if(y=o.props,x=y.validateFirst,w=x===void 0?!1:x,C=y.messageVariables,S=y.validateDebounce,$=o.getRules(),m&&($=$.filter(function(j){return j}).filter(function(j){var I=j.validateTrigger;if(!I)return!0;var _=ij(I);return _.includes(m)})),!(S&&m)){P.next=10;break}return P.next=8,new Promise(function(j){setTimeout(j,S)});case 8:if(o.validatePromise===b){P.next=10;break}return P.abrupt("return",[]);case 10:return E=p6e(u,d,$,l,w,C),E.catch(function(j){return j}).then(function(){var j=arguments.length>0&&arguments[0]!==void 0?arguments[0]:za;if(o.validatePromise===b){var I;o.validatePromise=null;var _=[],R=[];(I=j.forEach)===null||I===void 0||I.call(j,function(N){var A=N.rule.warningOnly,M=N.errors,T=M===void 0?za:M;A?R.push.apply(R,Ne(T)):_.push.apply(_,Ne(T))}),o.errors=_,o.warnings=R,o.triggerMetaEvent(),o.reRender()}}),P.abrupt("return",E);case 13:case"end":return P.stop()}},v)})));return p||(o.validatePromise=b,o.dirty=!0,o.errors=za,o.warnings=za,o.triggerMetaEvent(),o.reRender()),b}),K(Ct(o),"isFieldValidating",function(){return!!o.validatePromise}),K(Ct(o),"isFieldTouched",function(){return o.touched}),K(Ct(o),"isFieldDirty",function(){if(o.dirty||o.props.initialValue!==void 0)return!0;var l=o.props.fieldContext,u=l.getInternalHooks(Ku),d=u.getInitialValue;return d(o.getNamePath())!==void 0}),K(Ct(o),"getErrors",function(){return o.errors}),K(Ct(o),"getWarnings",function(){return o.warnings}),K(Ct(o),"isListField",function(){return o.props.isListField}),K(Ct(o),"isList",function(){return o.props.isList}),K(Ct(o),"isPreserve",function(){return o.props.preserve}),K(Ct(o),"getMeta",function(){o.prevValidating=o.isFieldValidating();var l={touched:o.isFieldTouched(),validating:o.prevValidating,errors:o.errors,warnings:o.warnings,name:o.getNamePath(),validated:o.validatePromise===null};return l}),K(Ct(o),"getOnlyChild",function(l){if(typeof l=="function"){var u=o.getMeta();return Y(Y({},o.getOnlyChild(l(o.getControlled(),u,o.props.fieldContext))),{},{isFunction:!0})}var d=ii(l);return d.length!==1||!c.isValidElement(d[0])?{child:d,isFunction:!1}:{child:d[0],isFunction:!1}}),K(Ct(o),"getValue",function(l){var u=o.props.fieldContext.getFieldsValue,d=o.getNamePath();return Ai(l||u(!0),d)}),K(Ct(o),"getControlled",function(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},u=o.props,d=u.name,f=u.trigger,m=u.validateTrigger,h=u.getValueFromEvent,p=u.normalize,b=u.valuePropName,v=u.getValueProps,y=u.fieldContext,x=m!==void 0?m:y.validateTrigger,w=o.getNamePath(),C=y.getInternalHooks,S=y.getFieldsValue,$=C(Ku),E=$.dispatch,O=o.getValue(),P=v||function(N){return K({},b,N)},j=l[f],I=d!==void 0?P(O):{},_=Y(Y({},l),I);_[f]=function(){o.touched=!0,o.dirty=!0,o.triggerMetaEvent();for(var N,A=arguments.length,M=new Array(A),T=0;T<A;T++)M[T]=arguments[T];h?N=h.apply(void 0,M):N=b6e.apply(void 0,[b].concat(M)),p&&(N=p(N,O,S(!0))),N!==O&&E({type:"updateValue",namePath:w,value:N}),j&&j.apply(void 0,M)};var R=ij(x||[]);return R.forEach(function(N){var A=_[N];_[N]=function(){A&&A.apply(void 0,arguments);var M=o.props.rules;M&&M.length&&E({type:"validateField",namePath:w,triggerName:N})}}),_}),r.fieldContext){var i=r.fieldContext.getInternalHooks,a=i(Ku),s=a.initEntityValue;s(Ct(o))}return o}return cr(n,[{key:"componentDidMount",value:function(){var o=this.props,i=o.shouldUpdate,a=o.fieldContext;if(this.mounted=!0,a){var s=a.getInternalHooks,l=s(Ku),u=l.registerField;this.cancelRegisterFunc=u(this)}i===!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,i=this.props.children,a=this.getOnlyChild(i),s=a.child,l=a.isFunction,u;return l?u=s:c.isValidElement(s)?u=c.cloneElement(s,this.getControlled(s.props)):(ir(!s,"`children` of Field is not validate ReactElement."),u=s),c.createElement(c.Fragment,{key:o},u)}}]),n}(c.Component);K(CT,"contextType",Td);K(CT,"defaultProps",{trigger:"onChange",valuePropName:"value"});function $T(e){var t,n=e.name,r=Ht(e,x6e),o=c.useContext(Td),i=c.useContext(Gg),a=n!==void 0?Jr(n):void 0,s=(t=r.isListField)!==null&&t!==void 0?t:!!i,l="keep";return s||(l="_".concat((a||[]).join("_"))),c.createElement(CT,Ee({key:l,name:a,isListField:s},r,{fieldContext:o}))}function ZZ(e){var t=e.name,n=e.initialValue,r=e.children,o=e.rules,i=e.validateTrigger,a=e.isListField,s=c.useContext(Td),l=c.useContext(Gg),u=c.useRef({keys:[],id:0}),d=u.current,f=c.useMemo(function(){var b=Jr(s.prefixName)||[];return[].concat(Ne(b),Ne(Jr(t)))},[s.prefixName,t]),m=c.useMemo(function(){return Y(Y({},s),{},{prefixName:f})},[s,f]),h=c.useMemo(function(){return{getKey:function(v){var y=f.length,x=v[y];return[d.keys[x],v.slice(y+1)]}}},[f]);if(typeof r!="function")return ir(!1,"Form.List only accepts function as children."),null;var p=function(v,y,x){var w=x.source;return w==="internal"?!1:v!==y};return c.createElement(Gg.Provider,{value:h},c.createElement(Td.Provider,{value:m},c.createElement($T,{name:[],shouldUpdate:p,rules:o,validateTrigger:i,initialValue:n,isList:!0,isListField:a??!!l},function(b,v){var y=b.value,x=y===void 0?[]:y,w=b.onChange,C=s.getFieldValue,S=function(){var P=C(f||[]);return P||[]},$={add:function(P,j){var I=S();j>=0&&j<=I.length?(d.keys=[].concat(Ne(d.keys.slice(0,j)),[d.id],Ne(d.keys.slice(j))),w([].concat(Ne(I.slice(0,j)),[P],Ne(I.slice(j))))):(d.keys=[].concat(Ne(d.keys),[d.id]),w([].concat(Ne(I),[P]))),d.id+=1},remove:function(P){var j=S(),I=new Set(Array.isArray(P)?P:[P]);I.size<=0||(d.keys=d.keys.filter(function(_,R){return!I.has(R)}),w(j.filter(function(_,R){return!I.has(R)})))},move:function(P,j){if(P!==j){var I=S();P<0||P>=I.length||j<0||j>=I.length||(d.keys=jL(d.keys,P,j),w(jL(I,P,j)))}}},E=x||[];return Array.isArray(E)||(E=[]),r(E.map(function(O,P){var j=d.keys[P];return j===void 0&&(d.keys[P]=d.id,j=d.keys[P],d.id+=1),{name:P,key:j,isListField:!0}}),$,v)})))}function w6e(e){var t=!1,n=e.length,r=[];return e.length?new Promise(function(o,i){e.forEach(function(a,s){a.catch(function(l){return t=!0,l}).then(function(l){n-=1,r[s]=l,!(n>0)&&(t&&i(r),o(r))})})}):Promise.resolve([])}var JZ="__@field_split__";function u2(e){return e.map(function(t){return"".concat(_t(t),":").concat(t)}).join(JZ)}var ff=function(){function e(){lr(this,e),K(this,"kvs",new Map)}return cr(e,[{key:"set",value:function(n,r){this.kvs.set(u2(n),r)}},{key:"get",value:function(n){return this.kvs.get(u2(n))}},{key:"update",value:function(n,r){var o=this.get(n),i=r(o);i?this.set(n,i):this.delete(n)}},{key:"delete",value:function(n){this.kvs.delete(u2(n))}},{key:"map",value:function(n){return Ne(this.kvs.entries()).map(function(r){var o=ue(r,2),i=o[0],a=o[1],s=i.split(JZ);return n({key:s.map(function(l){var u=l.match(/^([^:]*):(.*)$/),d=ue(u,3),f=d[1],m=d[2];return f==="number"?Number(m):m}),value:a})})}},{key:"toJSON",value:function(){var n={};return this.map(function(r){var o=r.key,i=r.value;return n[o.join(".")]=i,null}),n}}]),e}(),S6e=["name"],C6e=cr(function e(t){var n=this;lr(this,e),K(this,"formHooked",!1),K(this,"forceRootUpdate",void 0),K(this,"subscribable",!0),K(this,"store",{}),K(this,"fieldEntities",[]),K(this,"initialValues",{}),K(this,"callbacks",{}),K(this,"validateMessages",null),K(this,"preserve",null),K(this,"lastValidatePromise",null),K(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}}),K(this,"getInternalHooks",function(r){return r===Ku?(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}):(ir(!1,"`getInternalHooks` is internal usage. Should not call directly."),null)}),K(this,"useSubscribe",function(r){n.subscribable=r}),K(this,"prevWithoutPreserves",null),K(this,"setInitialValues",function(r,o){if(n.initialValues=r||{},o){var i,a=Bf(r,n.store);(i=n.prevWithoutPreserves)===null||i===void 0||i.map(function(s){var l=s.key;a=Ka(a,l,Ai(r,l))}),n.prevWithoutPreserves=null,n.updateStore(a)}}),K(this,"destroyForm",function(r){if(r)n.updateStore({});else{var o=new ff;n.getFieldEntities(!0).forEach(function(i){n.isMergedPreserve(i.isPreserve())||o.set(i.getNamePath(),!0)}),n.prevWithoutPreserves=o}}),K(this,"getInitialValue",function(r){var o=Ai(n.initialValues,r);return r.length?Bf(o):o}),K(this,"setCallbacks",function(r){n.callbacks=r}),K(this,"setValidateMessages",function(r){n.validateMessages=r}),K(this,"setPreserve",function(r){n.preserve=r}),K(this,"watchList",[]),K(this,"registerWatch",function(r){return n.watchList.push(r),function(){n.watchList=n.watchList.filter(function(o){return o!==r})}}),K(this,"notifyWatch",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];if(n.watchList.length){var o=n.getFieldsValue(),i=n.getFieldsValue(!0);n.watchList.forEach(function(a){a(o,i,r)})}}),K(this,"timeoutId",null),K(this,"warningUnhooked",function(){}),K(this,"updateStore",function(r){n.store=r}),K(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}),K(this,"getFieldsMap",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,o=new ff;return n.getFieldEntities(r).forEach(function(i){var a=i.getNamePath();o.set(a,i)}),o}),K(this,"getFieldEntitiesForNamePathList",function(r){if(!r)return n.getFieldEntities(!0);var o=n.getFieldsMap(!0);return r.map(function(i){var a=Jr(i);return o.get(a)||{INVALIDATE_NAME_PATH:Jr(i)}})}),K(this,"getFieldsValue",function(r,o){n.warningUnhooked();var i,a,s;if(r===!0||Array.isArray(r)?(i=r,a=o):r&&_t(r)==="object"&&(s=r.strict,a=r.filter),i===!0&&!a)return n.store;var l=n.getFieldEntitiesForNamePathList(Array.isArray(i)?i:null),u=[];return l.forEach(function(d){var f,m,h="INVALIDATE_NAME_PATH"in d?d.INVALIDATE_NAME_PATH:d.getNamePath();if(s){var p,b;if((p=(b=d).isList)!==null&&p!==void 0&&p.call(b))return}else if(!i&&(f=(m=d).isListField)!==null&&f!==void 0&&f.call(m))return;if(!a)u.push(h);else{var v="getMeta"in d?d.getMeta():null;a(v)&&u.push(h)}}),PL(n.store,u.map(Jr))}),K(this,"getFieldValue",function(r){n.warningUnhooked();var o=Jr(r);return Ai(n.store,o)}),K(this,"getFieldsError",function(r){n.warningUnhooked();var o=n.getFieldEntitiesForNamePathList(r);return o.map(function(i,a){return i&&!("INVALIDATE_NAME_PATH"in i)?{name:i.getNamePath(),errors:i.getErrors(),warnings:i.getWarnings()}:{name:Jr(r[a]),errors:[],warnings:[]}})}),K(this,"getFieldError",function(r){n.warningUnhooked();var o=Jr(r),i=n.getFieldsError([o])[0];return i.errors}),K(this,"getFieldWarning",function(r){n.warningUnhooked();var o=Jr(r),i=n.getFieldsError([o])[0];return i.warnings}),K(this,"isFieldsTouched",function(){n.warningUnhooked();for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];var a=o[0],s=o[1],l,u=!1;o.length===0?l=null:o.length===1?Array.isArray(a)?(l=a.map(Jr),u=!1):(l=null,u=a):(l=a.map(Jr),u=s);var d=n.getFieldEntities(!0),f=function(v){return v.isFieldTouched()};if(!l)return u?d.every(function(b){return f(b)||b.isList()}):d.some(f);var m=new ff;l.forEach(function(b){m.set(b,[])}),d.forEach(function(b){var v=b.getNamePath();l.forEach(function(y){y.every(function(x,w){return v[w]===x})&&m.update(y,function(x){return[].concat(Ne(x),[b])})})});var h=function(v){return v.some(f)},p=m.map(function(b){var v=b.value;return v});return u?p.every(h):p.some(h)}),K(this,"isFieldTouched",function(r){return n.warningUnhooked(),n.isFieldsTouched([r])}),K(this,"isFieldsValidating",function(r){n.warningUnhooked();var o=n.getFieldEntities();if(!r)return o.some(function(a){return a.isFieldValidating()});var i=r.map(Jr);return o.some(function(a){var s=a.getNamePath();return cm(i,s)&&a.isFieldValidating()})}),K(this,"isFieldValidating",function(r){return n.warningUnhooked(),n.isFieldsValidating([r])}),K(this,"resetWithFieldInitialValue",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},o=new ff,i=n.getFieldEntities(!0);i.forEach(function(l){var u=l.props.initialValue,d=l.getNamePath();if(u!==void 0){var f=o.get(d)||new Set;f.add({entity:l,value:u}),o.set(d,f)}});var a=function(u){u.forEach(function(d){var f=d.props.initialValue;if(f!==void 0){var m=d.getNamePath(),h=n.getInitialValue(m);if(h!==void 0)ir(!1,"Form already set 'initialValues' with path '".concat(m.join("."),"'. Field can not overwrite it."));else{var p=o.get(m);if(p&&p.size>1)ir(!1,"Multiple Field with path '".concat(m.join("."),"' set 'initialValue'. Can not decide which one to pick."));else if(p){var b=n.getFieldValue(m),v=d.isListField();!v&&(!r.skipExist||b===void 0)&&n.updateStore(Ka(n.store,m,Ne(p)[0].value))}}}})},s;r.entities?s=r.entities:r.namePathList?(s=[],r.namePathList.forEach(function(l){var u=o.get(l);if(u){var d;(d=s).push.apply(d,Ne(Ne(u).map(function(f){return f.entity})))}})):s=i,a(s)}),K(this,"resetFields",function(r){n.warningUnhooked();var o=n.store;if(!r){n.updateStore(Bf(n.initialValues)),n.resetWithFieldInitialValue(),n.notifyObservers(o,null,{type:"reset"}),n.notifyWatch();return}var i=r.map(Jr);i.forEach(function(a){var s=n.getInitialValue(a);n.updateStore(Ka(n.store,a,s))}),n.resetWithFieldInitialValue({namePathList:i}),n.notifyObservers(o,i,{type:"reset"}),n.notifyWatch(i)}),K(this,"setFields",function(r){n.warningUnhooked();var o=n.store,i=[];r.forEach(function(a){var s=a.name,l=Ht(a,S6e),u=Jr(s);i.push(u),"value"in l&&n.updateStore(Ka(n.store,u,l.value)),n.notifyObservers(o,[u],{type:"setField",data:a})}),n.notifyWatch(i)}),K(this,"getFields",function(){var r=n.getFieldEntities(!0),o=r.map(function(i){var a=i.getNamePath(),s=i.getMeta(),l=Y(Y({},s),{},{name:a,value:n.getFieldValue(a)});return Object.defineProperty(l,"originRCField",{value:!0}),l});return o}),K(this,"initEntityValue",function(r){var o=r.props.initialValue;if(o!==void 0){var i=r.getNamePath(),a=Ai(n.store,i);a===void 0&&n.updateStore(Ka(n.store,i,o))}}),K(this,"isMergedPreserve",function(r){var o=r!==void 0?r:n.preserve;return o??!0}),K(this,"registerField",function(r){n.fieldEntities.push(r);var o=r.getNamePath();if(n.notifyWatch([o]),r.props.initialValue!==void 0){var i=n.store;n.resetWithFieldInitialValue({entities:[r],skipExist:!0}),n.notifyObservers(i,[r.getNamePath()],{type:"valueUpdate",source:"internal"})}return function(a,s){var l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];if(n.fieldEntities=n.fieldEntities.filter(function(f){return f!==r}),!n.isMergedPreserve(s)&&(!a||l.length>1)){var u=a?void 0:n.getInitialValue(o);if(o.length&&n.getFieldValue(o)!==u&&n.fieldEntities.every(function(f){return!YZ(f.getNamePath(),o)})){var d=n.store;n.updateStore(Ka(d,o,u,!0)),n.notifyObservers(d,[o],{type:"remove"}),n.triggerDependenciesUpdate(d,o)}}n.notifyWatch([o])}}),K(this,"dispatch",function(r){switch(r.type){case"updateValue":{var o=r.namePath,i=r.value;n.updateValue(o,i);break}case"validateField":{var a=r.namePath,s=r.triggerName;n.validateFields([a],{triggerName:s});break}}}),K(this,"notifyObservers",function(r,o,i){if(n.subscribable){var a=Y(Y({},i),{},{store:n.getFieldsValue(!0)});n.getFieldEntities().forEach(function(s){var l=s.onStoreChange;l(r,o,a)})}else n.forceRootUpdate()}),K(this,"triggerDependenciesUpdate",function(r,o){var i=n.getDependencyChildrenFields(o);return i.length&&n.validateFields(i),n.notifyObservers(r,i,{type:"dependenciesUpdate",relatedFields:[o].concat(Ne(i))}),i}),K(this,"updateValue",function(r,o){var i=Jr(r),a=n.store;n.updateStore(Ka(n.store,i,o)),n.notifyObservers(a,[i],{type:"valueUpdate",source:"internal"}),n.notifyWatch([i]);var s=n.triggerDependenciesUpdate(a,i),l=n.callbacks.onValuesChange;if(l){var u=PL(n.store,[i]);l(u,n.getFieldsValue())}n.triggerOnFieldsChange([i].concat(Ne(s)))}),K(this,"setFieldsValue",function(r){n.warningUnhooked();var o=n.store;if(r){var i=Bf(n.store,r);n.updateStore(i)}n.notifyObservers(o,null,{type:"valueUpdate",source:"external"}),n.notifyWatch()}),K(this,"setFieldValue",function(r,o){n.setFields([{name:r,value:o,errors:[],warnings:[]}])}),K(this,"getDependencyChildrenFields",function(r){var o=new Set,i=[],a=new ff;n.getFieldEntities().forEach(function(l){var u=l.props.dependencies;(u||[]).forEach(function(d){var f=Jr(d);a.update(f,function(){var m=arguments.length>0&&arguments[0]!==void 0?arguments[0]:new Set;return m.add(l),m})})});var s=function l(u){var d=a.get(u)||new Set;d.forEach(function(f){if(!o.has(f)){o.add(f);var m=f.getNamePath();f.isFieldDirty()&&m.length&&(i.push(m),l(m))}})};return s(r),i}),K(this,"triggerOnFieldsChange",function(r,o){var i=n.callbacks.onFieldsChange;if(i){var a=n.getFields();if(o){var s=new ff;o.forEach(function(u){var d=u.name,f=u.errors;s.set(d,f)}),a.forEach(function(u){u.errors=s.get(u.name)||u.errors})}var l=a.filter(function(u){var d=u.name;return cm(r,d)});l.length&&i(l,a)}}),K(this,"validateFields",function(r,o){n.warningUnhooked();var i,a;Array.isArray(r)||typeof r=="string"||typeof o=="string"?(i=r,a=o):a=r;var s=!!i,l=s?i.map(Jr):[],u=[],d=String(Date.now()),f=new Set,m=a||{},h=m.recursive,p=m.dirty;n.getFieldEntities(!0).forEach(function(x){if(s||l.push(x.getNamePath()),!(!x.props.rules||!x.props.rules.length)&&!(p&&!x.isFieldDirty())){var w=x.getNamePath();if(f.add(w.join(d)),!s||cm(l,w,h)){var C=x.validateRules(Y({validateMessages:Y(Y({},XZ),n.validateMessages)},a));u.push(C.then(function(){return{name:w,errors:[],warnings:[]}}).catch(function(S){var $,E=[],O=[];return($=S.forEach)===null||$===void 0||$.call(S,function(P){var j=P.rule.warningOnly,I=P.errors;j?O.push.apply(O,Ne(I)):E.push.apply(E,Ne(I))}),E.length?Promise.reject({name:w,errors:E,warnings:O}):{name:w,errors:E,warnings:O}}))}}});var b=w6e(u);n.lastValidatePromise=b,b.catch(function(x){return x}).then(function(x){var w=x.map(function(C){var S=C.name;return S});n.notifyObservers(n.store,w,{type:"validateFinish"}),n.triggerOnFieldsChange(w,x)});var v=b.then(function(){return n.lastValidatePromise===b?Promise.resolve(n.getFieldsValue(l)):Promise.reject([])}).catch(function(x){var w=x.filter(function(C){return C&&C.errors.length});return Promise.reject({values:n.getFieldsValue(l),errorFields:w,outOfDate:n.lastValidatePromise!==b})});v.catch(function(x){return x});var y=l.filter(function(x){return f.has(x.join(d))});return n.triggerOnFieldsChange(y),v}),K(this,"submit",function(){n.warningUnhooked(),n.validateFields().then(function(r){var o=n.callbacks.onFinish;if(o)try{o(r)}catch(i){console.error(i)}}).catch(function(r){var o=n.callbacks.onFinishFailed;o&&o(r)})}),this.forceRootUpdate=t});function ET(e){var t=c.useRef(),n=c.useState({}),r=ue(n,2),o=r[1];if(!t.current)if(e)t.current=e;else{var i=function(){o({})},a=new C6e(i);t.current=a.getForm()}return[t.current]}var hj=c.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),QZ=function(t){var n=t.validateMessages,r=t.onFormChange,o=t.onFormFinish,i=t.children,a=c.useContext(hj),s=c.useRef({});return c.createElement(hj.Provider,{value:Y(Y({},a),{},{validateMessages:Y(Y({},a.validateMessages),n),triggerFormChange:function(u,d){r&&r(u,{changedFields:d,forms:s.current}),a.triggerFormChange(u,d)},triggerFormFinish:function(u,d){o&&o(u,{values:d,forms:s.current}),a.triggerFormFinish(u,d)},registerForm:function(u,d){u&&(s.current=Y(Y({},s.current),{},K({},u,d))),a.registerForm(u,d)},unregisterForm:function(u){var d=Y({},s.current);delete d[u],s.current=d,a.unregisterForm(u)}})},i)},$6e=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed","clearOnDestroy"],E6e=function(t,n){var r=t.name,o=t.initialValues,i=t.fields,a=t.form,s=t.preserve,l=t.children,u=t.component,d=u===void 0?"form":u,f=t.validateMessages,m=t.validateTrigger,h=m===void 0?"onChange":m,p=t.onValuesChange,b=t.onFieldsChange,v=t.onFinish,y=t.onFinishFailed,x=t.clearOnDestroy,w=Ht(t,$6e),C=c.useRef(null),S=c.useContext(hj),$=ET(a),E=ue($,1),O=E[0],P=O.getInternalHooks(Ku),j=P.useSubscribe,I=P.setInitialValues,_=P.setCallbacks,R=P.setValidateMessages,N=P.setPreserve,A=P.destroyForm;c.useImperativeHandle(n,function(){return Y(Y({},O),{},{nativeElement:C.current})}),c.useEffect(function(){return S.registerForm(r,O),function(){S.unregisterForm(r)}},[S,O,r]),R(Y(Y({},S.validateMessages),f)),_({onValuesChange:p,onFieldsChange:function(W){if(S.triggerFormChange(r,W),b){for(var q=arguments.length,G=new Array(q>1?q-1:0),te=1;te<q;te++)G[te-1]=arguments[te];b.apply(void 0,[W].concat(G))}},onFinish:function(W){S.triggerFormFinish(r,W),v&&v(W)},onFinishFailed:y}),N(s);var M=c.useRef(null);I(o,!M.current),M.current||(M.current=!0),c.useEffect(function(){return function(){return A(x)}},[]);var T,k=typeof l=="function";if(k){var D=O.getFieldsValue(!0);T=l(D,O)}else T=l;j(!k);var L=c.useRef();c.useEffect(function(){y6e(L.current||[],i||[])||O.setFields(i||[]),L.current=i},[i,O]);var B=c.useMemo(function(){return Y(Y({},O),{},{validateTrigger:h})},[O,h]),H=c.createElement(Gg.Provider,{value:null},c.createElement(Td.Provider,{value:B},T));return d===!1?H:c.createElement(d,Ee({},w,{ref:C,onSubmit:function(W){W.preventDefault(),W.stopPropagation(),O.submit()},onReset:function(W){var q;W.preventDefault(),O.resetFields(),(q=w.onReset)===null||q===void 0||q.call(w,W)}}),H)};function IL(e){try{return JSON.stringify(e)}catch{return Math.random()}}function eJ(){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],i=o===void 0?{}:o,a=Ake(i)?{form:i}:i,s=a.form,l=c.useState(),u=ue(l,2),d=u[0],f=u[1],m=c.useMemo(function(){return IL(d)},[d]),h=c.useRef(m);h.current=m;var p=c.useContext(Td),b=s||p,v=b&&b._init,y=Jr(r),x=c.useRef(y);return x.current=y,c.useEffect(function(){if(v){var w=b.getFieldsValue,C=b.getInternalHooks,S=C(Ku),$=S.registerWatch,E=function(I,_){var R=a.preserve?_:I;return typeof r=="function"?r(R):Ai(R,x.current)},O=$(function(j,I){var _=E(j,I),R=IL(_);h.current!==R&&(h.current=R,f(_))}),P=E(w(),w(!0));return d!==P&&f(P),O}},[v]),d}var O6e=c.forwardRef(E6e),wh=O6e;wh.FormProvider=QZ;wh.Field=$T;wh.List=ZZ;wh.useForm=ET;wh.useWatch=eJ;const Jl=c.createContext({labelAlign:"right",layout:"horizontal",itemRef:()=>{}}),tJ=c.createContext(null),nJ=e=>{const t=Xn(e,["prefixCls"]);return c.createElement(QZ,Object.assign({},t))},OT=c.createContext({prefixCls:""}),Oo=c.createContext({}),rJ=({children:e,status:t,override:n})=>{const r=c.useContext(Oo),o=c.useMemo(()=>{const i=Object.assign({},r);return n&&delete i.isFormItemInput,t&&(delete i.status,delete i.hasFeedback,delete i.feedbackIcon),i},[t,n,r]);return c.createElement(Oo.Provider,{value:o},e)},oJ=c.createContext(void 0),Vs=e=>{const{space:t,form:n,children:r}=e;if(r==null)return null;let o=r;return n&&(o=ce.createElement(rJ,{override:!0,status:!0},o)),t&&(o=ce.createElement(nMe,null,o)),o};var iJ=function(t){if(Uo()&&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},P6e=function(t,n){if(!iJ(t))return!1;var r=document.createElement("div"),o=r.style[t];return r.style[t]=n,r.style[t]!==o};function pj(e,t){return!Array.isArray(e)&&t!==void 0?P6e(e,t):iJ(e)}const j6e=()=>Uo()&&window.document.documentElement,AS=e=>{const{prefixCls:t,className:n,style:r,size:o,shape:i}=e,a=Q({[`${t}-lg`]:o==="large",[`${t}-sm`]:o==="small"}),s=Q({[`${t}-circle`]:i==="circle",[`${t}-square`]:i==="square",[`${t}-round`]:i==="round"}),l=c.useMemo(()=>typeof o=="number"?{width:o,height:o,lineHeight:`${o}px`}:{},[o]);return c.createElement("span",{className:Q(t,a,s,n),style:Object.assign(Object.assign({},l),r)})},I6e=new gn("ant-skeleton-loading",{"0%":{backgroundPosition:"100% 50%"},"100%":{backgroundPosition:"0 50%"}}),DS=e=>({height:e,lineHeight:Z(e)}),um=e=>Object.assign({width:e},DS(e)),_6e=e=>({background:e.skeletonLoadingBackground,backgroundSize:"400% 100%",animationName:I6e,animationDuration:e.skeletonLoadingMotionDuration,animationTimingFunction:"ease",animationIterationCount:"infinite"}),d2=(e,t)=>Object.assign({width:t(e).mul(5).equal(),minWidth:t(e).mul(5).equal()},DS(e)),N6e=e=>{const{skeletonAvatarCls:t,gradientFromColor:n,controlHeight:r,controlHeightLG:o,controlHeightSM:i}=e;return{[t]:Object.assign({display:"inline-block",verticalAlign:"top",background:n},um(r)),[`${t}${t}-circle`]:{borderRadius:"50%"},[`${t}${t}-lg`]:Object.assign({},um(o)),[`${t}${t}-sm`]:Object.assign({},um(i))}},R6e=e=>{const{controlHeight:t,borderRadiusSM:n,skeletonInputCls:r,controlHeightLG:o,controlHeightSM:i,gradientFromColor:a,calc:s}=e;return{[r]:Object.assign({display:"inline-block",verticalAlign:"top",background:a,borderRadius:n},d2(t,s)),[`${r}-lg`]:Object.assign({},d2(o,s)),[`${r}-sm`]:Object.assign({},d2(i,s))}},_L=e=>Object.assign({width:e},DS(e)),T6e=e=>{const{skeletonImageCls:t,imageSizeBase:n,gradientFromColor:r,borderRadiusSM:o,calc:i}=e;return{[t]:Object.assign(Object.assign({display:"inline-flex",alignItems:"center",justifyContent:"center",verticalAlign:"middle",background:r,borderRadius:o},_L(i(n).mul(2).equal())),{[`${t}-path`]:{fill:"#bfbfbf"},[`${t}-svg`]:Object.assign(Object.assign({},_L(n)),{maxWidth:i(n).mul(4).equal(),maxHeight:i(n).mul(4).equal()}),[`${t}-svg${t}-svg-circle`]:{borderRadius:"50%"}}),[`${t}${t}-circle`]:{borderRadius:"50%"}}},f2=(e,t,n)=>{const{skeletonButtonCls:r}=e;return{[`${n}${r}-circle`]:{width:t,minWidth:t,borderRadius:"50%"},[`${n}${r}-round`]:{borderRadius:t}}},m2=(e,t)=>Object.assign({width:t(e).mul(2).equal(),minWidth:t(e).mul(2).equal()},DS(e)),M6e=e=>{const{borderRadiusSM:t,skeletonButtonCls:n,controlHeight:r,controlHeightLG:o,controlHeightSM:i,gradientFromColor:a,calc:s}=e;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({[n]:Object.assign({display:"inline-block",verticalAlign:"top",background:a,borderRadius:t,width:s(r).mul(2).equal(),minWidth:s(r).mul(2).equal()},m2(r,s))},f2(e,r,n)),{[`${n}-lg`]:Object.assign({},m2(o,s))}),f2(e,o,`${n}-lg`)),{[`${n}-sm`]:Object.assign({},m2(i,s))}),f2(e,i,`${n}-sm`))},k6e=e=>{const{componentCls:t,skeletonAvatarCls:n,skeletonTitleCls:r,skeletonParagraphCls:o,skeletonButtonCls:i,skeletonInputCls:a,skeletonImageCls:s,controlHeight:l,controlHeightLG:u,controlHeightSM:d,gradientFromColor:f,padding:m,marginSM:h,borderRadius:p,titleHeight:b,blockRadius:v,paragraphLiHeight:y,controlHeightXS:x,paragraphMarginTop:w}=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},um(l)),[`${n}-circle`]:{borderRadius:"50%"},[`${n}-lg`]:Object.assign({},um(u)),[`${n}-sm`]:Object.assign({},um(d))},[`${t}-content`]:{display:"table-cell",width:"100%",verticalAlign:"top",[r]:{width:"100%",height:b,background:f,borderRadius:v,[`+ ${o}`]:{marginBlockStart:d}},[o]:{padding:0,"> li":{width:"100%",height:y,listStyle:"none",background:f,borderRadius:v,"+ li":{marginBlockStart:x}}},[`${o}> li:last-child:not(:first-child):not(:nth-child(2))`]:{width:"61%"}},[`&-round ${t}-content`]:{[`${r}, ${o} > li`]:{borderRadius:p}}},[`${t}-with-avatar ${t}-content`]:{[r]:{marginBlockStart:h,[`+ ${o}`]:{marginBlockStart:w}}},[`${t}${t}-element`]:Object.assign(Object.assign(Object.assign(Object.assign({display:"inline-block",width:"auto"},M6e(e)),N6e(e)),R6e(e)),T6e(e)),[`${t}${t}-block`]:{width:"100%",[i]:{width:"100%"},[a]:{width:"100%"}},[`${t}${t}-active`]:{[`
        ${r},
        ${o} > li,
        ${n},
        ${i},
        ${a},
        ${s}
      `]:Object.assign({},_6e(e))}}},A6e=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}},Sh=vn("Skeleton",e=>{const{componentCls:t,calc:n}=e,r=cn(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 k6e(r)},A6e,{deprecatedTokens:[["color","gradientFromColor"],["colorGradientEnd","gradientToColor"]]}),D6e=e=>{const{prefixCls:t,className:n,rootClassName:r,active:o,shape:i="circle",size:a="default"}=e,{getPrefixCls:s}=c.useContext(kt),l=s("skeleton",t),[u,d,f]=Sh(l),m=Xn(e,["prefixCls","className"]),h=Q(l,`${l}-element`,{[`${l}-active`]:o},n,r,d,f);return u(c.createElement("div",{className:h},c.createElement(AS,Object.assign({prefixCls:`${l}-avatar`,shape:i,size:a},m))))},L6e=e=>{const{prefixCls:t,className:n,rootClassName:r,active:o,block:i=!1,size:a="default"}=e,{getPrefixCls:s}=c.useContext(kt),l=s("skeleton",t),[u,d,f]=Sh(l),m=Xn(e,["prefixCls"]),h=Q(l,`${l}-element`,{[`${l}-active`]:o,[`${l}-block`]:i},n,r,d,f);return u(c.createElement("div",{className:h},c.createElement(AS,Object.assign({prefixCls:`${l}-button`,size:a},m))))},z6e="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",F6e=e=>{const{prefixCls:t,className:n,rootClassName:r,style:o,active:i}=e,{getPrefixCls:a}=c.useContext(kt),s=a("skeleton",t),[l,u,d]=Sh(s),f=Q(s,`${s}-element`,{[`${s}-active`]:i},n,r,u,d);return l(c.createElement("div",{className:f},c.createElement("div",{className:Q(`${s}-image`,n),style:o},c.createElement("svg",{viewBox:"0 0 1098 1024",xmlns:"http://www.w3.org/2000/svg",className:`${s}-image-svg`},c.createElement("title",null,"Image placeholder"),c.createElement("path",{d:z6e,className:`${s}-image-path`})))))},B6e=e=>{const{prefixCls:t,className:n,rootClassName:r,active:o,block:i,size:a="default"}=e,{getPrefixCls:s}=c.useContext(kt),l=s("skeleton",t),[u,d,f]=Sh(l),m=Xn(e,["prefixCls"]),h=Q(l,`${l}-element`,{[`${l}-active`]:o,[`${l}-block`]:i},n,r,d,f);return u(c.createElement("div",{className:h},c.createElement(AS,Object.assign({prefixCls:`${l}-input`,size:a},m))))},H6e=e=>{const{prefixCls:t,className:n,rootClassName:r,style:o,active:i,children:a}=e,{getPrefixCls:s}=c.useContext(kt),l=s("skeleton",t),[u,d,f]=Sh(l),m=Q(l,`${l}-element`,{[`${l}-active`]:i},d,n,r,f);return u(c.createElement("div",{className:m},c.createElement("div",{className:Q(`${l}-image`,n),style:o},a)))},V6e=(e,t)=>{const{width:n,rows:r=2}=t;if(Array.isArray(n))return n[e];if(r-1===e)return n},W6e=e=>{const{prefixCls:t,className:n,style:r,rows:o=0}=e,i=Array.from({length:o}).map((a,s)=>c.createElement("li",{key:s,style:{width:V6e(s,e)}}));return c.createElement("ul",{className:Q(t,n),style:r},i)},U6e=({prefixCls:e,className:t,width:n,style:r})=>c.createElement("h3",{className:Q(e,t),style:Object.assign({width:n},r)});function h2(e){return e&&typeof e=="object"?e:{}}function K6e(e,t){return e&&!t?{size:"large",shape:"square"}:{size:"large",shape:"circle"}}function q6e(e,t){return!e&&t?{width:"38%"}:e&&t?{width:"50%"}:{}}function G6e(e,t){const n={};return(!e||!t)&&(n.width="61%"),!e&&t?n.rows=3:n.rows=2,n}const ka=e=>{const{prefixCls:t,loading:n,className:r,rootClassName:o,style:i,children:a,avatar:s=!1,title:l=!0,paragraph:u=!0,active:d,round:f}=e,{getPrefixCls:m,direction:h,className:p,style:b}=Br("skeleton"),v=m("skeleton",t),[y,x,w]=Sh(v);if(n||!("loading"in e)){const C=!!s,S=!!l,$=!!u;let E;if(C){const j=Object.assign(Object.assign({prefixCls:`${v}-avatar`},K6e(S,$)),h2(s));E=c.createElement("div",{className:`${v}-header`},c.createElement(AS,Object.assign({},j)))}let O;if(S||$){let j;if(S){const _=Object.assign(Object.assign({prefixCls:`${v}-title`},q6e(C,$)),h2(l));j=c.createElement(U6e,Object.assign({},_))}let I;if($){const _=Object.assign(Object.assign({prefixCls:`${v}-paragraph`},G6e(C,S)),h2(u));I=c.createElement(W6e,Object.assign({},_))}O=c.createElement("div",{className:`${v}-content`},j,I)}const P=Q(v,{[`${v}-with-avatar`]:C,[`${v}-active`]:d,[`${v}-rtl`]:h==="rtl",[`${v}-round`]:f},p,r,o,x,w);return y(c.createElement("div",{className:P,style:Object.assign(Object.assign({},b),i)},E,O))}return a??null};ka.Button=L6e;ka.Avatar=D6e;ka.Input=B6e;ka.Image=F6e;ka.Node=H6e;function NL(){}const X6e=c.createContext({add:NL,remove:NL});function aJ(e){const t=c.useContext(X6e),n=c.useRef(null);return fn(o=>{if(o){const i=e?o.querySelector(e):o;i&&(t.add(i),n.current=i)}else t.remove(n.current)})}const RL=()=>{const{cancelButtonProps:e,cancelTextLocale:t,onCancel:n}=c.useContext(t0);return ce.createElement(gt,Object.assign({onClick:n},e),t)},TL=()=>{const{confirmLoading:e,okButtonProps:t,okType:n,okTextLocale:r,onOk:o}=c.useContext(t0);return ce.createElement(gt,Object.assign({},bT(n),{loading:e,onClick:o},t),r)};function sJ(e,t){return ce.createElement("span",{className:`${e}-close-x`},t||ce.createElement(gu,{className:`${e}-close-icon`}))}const lJ=e=>{const{okText:t,okType:n="primary",cancelText:r,confirmLoading:o,onOk:i,onCancel:a,okButtonProps:s,cancelButtonProps:l,footer:u}=e,[d]=ca("Modal",BY()),f=t||(d==null?void 0:d.okText),m=r||(d==null?void 0:d.cancelText),h=ce.useMemo(()=>({confirmLoading:o,okButtonProps:s,cancelButtonProps:l,okTextLocale:f,cancelTextLocale:m,okType:n,onOk:i,onCancel:a}),[o,s,l,f,m,n,i,a]);let p;return typeof u=="function"||typeof u>"u"?(p=ce.createElement(ce.Fragment,null,ce.createElement(RL,null),ce.createElement(TL,null)),typeof u=="function"&&(p=u(p,{OkBtn:TL,CancelBtn:RL})),p=ce.createElement(BZ,{value:h},p)):p=u,ce.createElement(aT,{disabled:!1},p)},Y6e=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"}}}},Z6e=e=>{const{componentCls:t}=e;return{[t]:{position:"relative",maxWidth:"100%",minHeight:1}}},J6e=(e,t)=>{const{prefixCls:n,componentCls:r,gridColumns:o}=e,i={};for(let a=o;a>=0;a--)a===0?(i[`${r}${t}-${a}`]={display:"none"},i[`${r}-push-${a}`]={insetInlineStart:"auto"},i[`${r}-pull-${a}`]={insetInlineEnd:"auto"},i[`${r}${t}-push-${a}`]={insetInlineStart:"auto"},i[`${r}${t}-pull-${a}`]={insetInlineEnd:"auto"},i[`${r}${t}-offset-${a}`]={marginInlineStart:0},i[`${r}${t}-order-${a}`]={order:0}):(i[`${r}${t}-${a}`]=[{"--ant-display":"block",display:"block"},{display:"var(--ant-display)",flex:`0 0 ${a/o*100}%`,maxWidth:`${a/o*100}%`}],i[`${r}${t}-push-${a}`]={insetInlineStart:`${a/o*100}%`},i[`${r}${t}-pull-${a}`]={insetInlineEnd:`${a/o*100}%`},i[`${r}${t}-offset-${a}`]={marginInlineStart:`${a/o*100}%`},i[`${r}${t}-order-${a}`]={order:a});return i[`${r}${t}-flex`]={flex:`var(--${n}${t}-flex)`},i},gj=(e,t)=>J6e(e,t),Q6e=(e,t,n)=>({[`@media (min-width: ${Z(t)})`]:Object.assign({},gj(e,n))}),eAe=()=>({}),tAe=()=>({}),nAe=vn("Grid",Y6e,eAe),cJ=e=>({xs:e.screenXSMin,sm:e.screenSMMin,md:e.screenMDMin,lg:e.screenLGMin,xl:e.screenXLMin,xxl:e.screenXXLMin}),rAe=vn("Grid",e=>{const t=cn(e,{gridColumns:24}),n=cJ(t);return delete n.xs,[Z6e(t),gj(t,""),gj(t,"-xs"),Object.keys(n).map(r=>Q6e(t,n[r],`-${r}`)).reduce((r,o)=>Object.assign(Object.assign({},r),o),{})]},tAe);function ML(e){return{position:e,inset:0}}const oAe=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({},ML("fixed")),{zIndex:e.zIndexPopupBase,height:"100%",backgroundColor:e.colorBgMask,pointerEvents:"none",[`${t}-hidden`]:{display:"none"}}),[`${t}-wrap`]:Object.assign(Object.assign({},ML("fixed")),{zIndex:e.zIndexPopupBase,overflow:"auto",outline:0,WebkitOverflowScrolling:"touch"})}},{[`${t}-root`]:DZ(e)}]},iAe=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:`${Z(e.marginXS)} auto`},[`${t}-centered`]:{[t]:{flex:1}}}}},{[t]:Object.assign(Object.assign({},xn(e)),{pointerEvents:"none",position:"relative",top:100,width:"auto",maxWidth:`calc(100vw - ${Z(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:Z(e.modalCloseBtnSize),justifyContent:"center",textTransform:"none",textRendering:"auto"},"&:disabled":{pointerEvents:"none"},"&:hover":{color:e.modalCloseIconHoverColor,backgroundColor:e.colorBgTextHover,textDecoration:"none"},"&:active":{backgroundColor:e.colorBgTextActive}},Hs(e)),[`${t}-header`]:{color:e.colorText,background:e.headerBg,borderRadius:`${Z(e.borderRadiusLG)} ${Z(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:`${Z(e.margin)} auto`}},[`${t}-footer`]:{textAlign:"end",background:e.footerBg,marginTop:e.footerMarginTop,padding:e.footerPadding,borderTop:e.footerBorderTop,borderRadius:e.footerBorderRadius,[`> ${e.antCls}-btn + ${e.antCls}-btn`]:{marginInlineStart:e.marginXS}},[`${t}-open`]:{overflow:"hidden"}})},{[`${t}-pure-panel`]:{top:"auto",padding:0,display:"flex",flexDirection:"column",[`${t}-content,
          ${t}-body,
          ${t}-confirm-body-wrapper`]:{display:"flex",flexDirection:"column",flex:"auto"},[`${t}-confirm-body`]:{marginBottom:"auto"}}}]},aAe=e=>{const{componentCls:t}=e;return{[`${t}-root`]:{[`${t}-wrap-rtl`]:{direction:"rtl",[`${t}-confirm-body`]:{direction:"rtl"}}}}},sAe=e=>{const{componentCls:t}=e,n=cJ(e),r=Object.assign({},n);delete r.xs;const o=`--${t.replace(".","")}-`,i=Object.keys(r).map(a=>({[`@media (min-width: ${Z(r[a])})`]:{width:`var(${o}${a}-width)`}}));return{[`${t}-root`]:{[t]:[].concat(Ne(Object.keys(n).map((a,s)=>{const l=Object.keys(n)[s-1];return l?{[`${o}${a}-width`]:`var(${o}${l}-width)`}:null})),[{width:`var(${o}xs-width)`}],Ne(i))}}},uJ=e=>{const t=e.padding,n=e.fontSizeHeading5,r=e.lineHeightHeading5;return cn(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()})},dJ=e=>({footerBg:"transparent",headerBg:e.colorBgElevated,titleLineHeight:e.lineHeightHeading5,titleFontSize:e.fontSizeHeading5,contentBg:e.colorBgElevated,titleColor:e.colorTextHeading,contentPadding:e.wireframe?0:`${Z(e.paddingMD)} ${Z(e.paddingContentHorizontalLG)}`,headerPadding:e.wireframe?`${Z(e.padding)} ${Z(e.paddingLG)}`:0,headerBorderBottom:e.wireframe?`${Z(e.lineWidth)} ${e.lineType} ${e.colorSplit}`:"none",headerMarginBottom:e.wireframe?0:e.marginXS,bodyPadding:e.wireframe?e.paddingLG:0,footerPadding:e.wireframe?`${Z(e.paddingXS)} ${Z(e.padding)}`:0,footerBorderTop:e.wireframe?`${Z(e.lineWidth)} ${e.lineType} ${e.colorSplit}`:"none",footerBorderRadius:e.wireframe?`0 0 ${Z(e.borderRadiusLG)} ${Z(e.borderRadiusLG)}`:0,footerMarginTop:e.wireframe?0:e.marginSM,confirmBodyPadding:e.wireframe?`${Z(e.padding*2)} ${Z(e.padding*2)} ${Z(e.paddingLG)}`:0,confirmIconMarginInlineEnd:e.wireframe?e.margin:e.marginSM,confirmBtnsMarginTop:e.wireframe?e.marginLG:e.marginSM}),fJ=vn("Modal",e=>{const t=uJ(e);return[iAe(t),aAe(t),oAe(t),Qv(t,"zoom"),sAe(t)]},dJ,{unitless:{titleLineHeight:!0}});var lAe=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 vj;const cAe=e=>{vj={x:e.pageX,y:e.pageY},setTimeout(()=>{vj=null},100)};j6e()&&document.documentElement.addEventListener("click",cAe,!0);const mJ=e=>{const{prefixCls:t,className:n,rootClassName:r,open:o,wrapClassName:i,centered:a,getContainer:s,focusTriggerAfterClose:l=!0,style:u,visible:d,width:f=520,footer:m,classNames:h,styles:p,children:b,loading:v,confirmLoading:y,zIndex:x,mousePosition:w,onOk:C,onCancel:S,destroyOnHidden:$,destroyOnClose:E,panelRef:O=null,modalRender:P}=e,j=lAe(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:I,getPrefixCls:_,direction:R,modal:N}=c.useContext(kt),A=ye=>{y||S==null||S(ye)},M=ye=>{C==null||C(ye)},T=_("modal",t),k=_(),D=Hr(T),[L,B,H]=fJ(T,D),F=Q(i,{[`${T}-centered`]:a??(N==null?void 0:N.centered),[`${T}-wrap-rtl`]:R==="rtl"}),W=m!==null&&!v?c.createElement(lJ,Object.assign({},e,{onOk:M,onCancel:A})):null,[q,G,te,ee]=hT(Vm(e),Vm(N),{closable:!0,closeIcon:c.createElement(gu,{className:`${T}-close-icon`}),closeIconRender:ye=>sJ(T,ye)}),z=P?ye=>c.createElement("div",{className:`${T}-render`},P(ye)):void 0,ne=`.${T}-${P?"render":"content"}`,X=aJ(ne),U=po(O,X),[le,se]=vu("Modal",x),[ae,re]=c.useMemo(()=>f&&typeof f=="object"?[void 0,f]:[f,void 0],[f]),fe=c.useMemo(()=>{const ye={};return re&&Object.keys(re).forEach(Pe=>{const Oe=re[Pe];Oe!==void 0&&(ye[`--${T}-${Pe}-width`]=typeof Oe=="number"?`${Oe}px`:Oe)}),ye},[T,re]);return L(c.createElement(Vs,{form:!0,space:!0},c.createElement(Yv.Provider,{value:se},c.createElement(qZ,Object.assign({width:ae},j,{zIndex:le,getContainer:s===void 0?I:s,prefixCls:T,rootClassName:Q(B,r,H,D),footer:W,visible:o??d,mousePosition:w??vj,onClose:A,closable:q&&Object.assign({disabled:te,closeIcon:G},ee),closeIcon:G,focusTriggerAfterClose:l,transitionName:gl(k,"zoom",e.transitionName),maskTransitionName:gl(k,"fade",e.maskTransitionName),className:Q(B,n,N==null?void 0:N.className),style:Object.assign(Object.assign(Object.assign({},N==null?void 0:N.style),u),fe),classNames:Object.assign(Object.assign(Object.assign({},N==null?void 0:N.classNames),h),{wrapper:Q(F,h==null?void 0:h.wrapper)}),styles:Object.assign(Object.assign({},N==null?void 0:N.styles),p),panelRef:U,destroyOnClose:$??E,modalRender:z}),v?c.createElement(ka,{active:!0,title:!1,paragraph:{rows:4},className:`${T}-body-skeleton`}):b))))},uAe=e=>{const{componentCls:t,titleFontSize:n,titleLineHeight:r,modalConfirmIconSize:o,fontSize:i,lineHeight:a,modalTitleHeight:s,fontHeight:l,confirmBodyPadding:u}=e,d=`${t}-confirm`;return{[d]:{"&-rtl":{direction:"rtl"},[`${e.antCls}-modal-header`]:{display:"none"},[`${d}-body-wrapper`]:Object.assign({},hl()),[`&${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(l).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% - ${Z(e.marginSM)})`},[`${e.iconCls} + ${d}-paragraph`]:{maxWidth:`calc(100% - ${Z(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:i,lineHeight:a},[`${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},
        ${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}}},dAe=vh(["Modal","confirm"],e=>{const t=uJ(e);return uAe(t)},dJ,{order:-1e3});var fAe=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 hJ=e=>{const{prefixCls:t,icon:n,okText:r,cancelText:o,confirmPrefixCls:i,type:a,okCancel:s,footer:l,locale:u}=e,d=fAe(e,["prefixCls","icon","okText","cancelText","confirmPrefixCls","type","okCancel","footer","locale"]);let f=n;if(!n&&n!==null)switch(a){case"info":f=c.createElement(dT,null);break;case"success":f=c.createElement(Xv,null);break;case"error":f=c.createElement(Gd,null);break;default:f=c.createElement(bh,null)}const m=s??a==="confirm",h=e.autoFocusButton===null?!1:e.autoFocusButton||"ok",[p]=ca("Modal"),b=u||p,v=r||(m?b==null?void 0:b.okText:b==null?void 0:b.justOkText),y=o||(b==null?void 0:b.cancelText),x=c.useMemo(()=>Object.assign({autoFocusButton:h,cancelTextLocale:y,okTextLocale:v,mergedOkCancel:m},d),[h,y,v,m,d]),w=c.createElement(c.Fragment,null,c.createElement(uL,null),c.createElement(dL,null)),C=e.title!==void 0&&e.title!==null,S=`${i}-body`;return c.createElement("div",{className:`${i}-body-wrapper`},c.createElement("div",{className:Q(S,{[`${S}-has-title`]:C})},f,c.createElement("div",{className:`${i}-paragraph`},C&&c.createElement("span",{className:`${i}-title`},e.title),c.createElement("div",{className:`${i}-content`},e.content))),l===void 0||typeof l=="function"?c.createElement(BZ,{value:x},c.createElement("div",{className:`${i}-btns`},typeof l=="function"?l(w,{OkBtn:dL,CancelBtn:uL}):w)):l,c.createElement(dAe,{prefixCls:t}))},mAe=e=>{const{close:t,zIndex:n,maskStyle:r,direction:o,prefixCls:i,wrapClassName:a,rootPrefixCls:s,bodyStyle:l,closable:u=!1,onConfirm:d,styles:f,title:m}=e,h=`${i}-confirm`,p=e.width||416,b=e.style||{},v=e.mask===void 0?!0:e.mask,y=e.maskClosable===void 0?!1:e.maskClosable,x=Q(h,`${h}-${e.type}`,{[`${h}-rtl`]:o==="rtl"},e.className),[,w]=Xo(),C=c.useMemo(()=>n!==void 0?n:w.zIndexPopupBase+EZ,[n,w]);return c.createElement(mJ,Object.assign({},e,{className:x,wrapClassName:Q({[`${h}-centered`]:!!e.centered},a),onCancel:()=>{t==null||t({triggerCancel:!0}),d==null||d(!1)},title:m,footer:null,transitionName:gl(s||"","zoom",e.transitionName),maskTransitionName:gl(s||"","fade",e.maskTransitionName),mask:v,maskClosable:y,style:b,styles:Object.assign({body:l,mask:r},f),width:p,zIndex:C,closable:u}),c.createElement(hJ,Object.assign({},e,{confirmPrefixCls:h})))},pJ=e=>{const{rootPrefixCls:t,iconPrefixCls:n,direction:r,theme:o}=e;return c.createElement(Ma,{prefixCls:t,iconPrefixCls:n,direction:r,theme:o},c.createElement(mAe,Object.assign({},e)))},qu=[];let gJ="";function vJ(){return gJ}const hAe=e=>{var t,n;const{prefixCls:r,getContainer:o,direction:i}=e,a=BY(),s=c.useContext(kt),l=vJ()||s.getPrefixCls(),u=r||`${l}-modal`;let d=o;return d===!1&&(d=void 0),ce.createElement(pJ,Object.assign({},e,{rootPrefixCls:l,prefixCls:u,iconPrefixCls:s.iconPrefixCls,theme:s.theme,direction:i??s.direction,locale:(n=(t=s.locale)===null||t===void 0?void 0:t.Modal)!==null&&n!==void 0?n:a,getContainer:d}))};function r0(e){const t=mZ(),n=document.createDocumentFragment();let r=Object.assign(Object.assign({},e),{close:l,open:!0}),o,i;function a(...d){var f;if(d.some(p=>p==null?void 0:p.triggerCancel)){var h;(f=e.onCancel)===null||f===void 0||(h=f).call.apply(h,[e,()=>{}].concat(Ne(d.slice(1))))}for(let p=0;p<qu.length;p++)if(qu[p]===l){qu.splice(p,1);break}i()}const s=d=>{clearTimeout(o),o=setTimeout(()=>{const f=t.getPrefixCls(void 0,vJ()),m=t.getIconPrefixCls(),h=t.getTheme(),p=ce.createElement(hAe,Object.assign({},d));i=yT()(ce.createElement(Ma,{prefixCls:f,iconPrefixCls:m,theme:h},typeof t.holderRender=="function"?t.holderRender(p):p),n)})};function l(...d){r=Object.assign(Object.assign({},r),{open:!1,afterClose:()=>{typeof e.afterClose=="function"&&e.afterClose(),a.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),qu.push(l),{destroy:l,update:u}}function yJ(e){return Object.assign(Object.assign({},e),{type:"warning"})}function bJ(e){return Object.assign(Object.assign({},e),{type:"info"})}function xJ(e){return Object.assign(Object.assign({},e),{type:"success"})}function wJ(e){return Object.assign(Object.assign({},e),{type:"error"})}function SJ(e){return Object.assign(Object.assign({},e),{type:"confirm"})}function pAe({rootPrefixCls:e}){gJ=e}var gAe=function(e,t){var n={};for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var 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 vAe=(e,t)=>{var n,{afterClose:r,config:o}=e,i=gAe(e,["afterClose","config"]);const[a,s]=c.useState(!0),[l,u]=c.useState(o),{direction:d,getPrefixCls:f}=c.useContext(kt),m=f("modal"),h=f(),p=()=>{var x;r(),(x=l.afterClose)===null||x===void 0||x.call(l)},b=(...x)=>{var w;if(s(!1),x.some($=>$==null?void 0:$.triggerCancel)){var S;(w=l.onCancel)===null||w===void 0||(S=w).call.apply(S,[l,()=>{}].concat(Ne(x.slice(1))))}};c.useImperativeHandle(t,()=>({destroy:b,update:x=>{u(w=>{const C=typeof x=="function"?x(w):x;return Object.assign(Object.assign({},w),C)})}}));const v=(n=l.okCancel)!==null&&n!==void 0?n:l.type==="confirm",[y]=ca("Modal",cs.Modal);return c.createElement(pJ,Object.assign({prefixCls:m,rootPrefixCls:h},l,{close:b,open:a,afterClose:p,okText:l.okText||(v?y==null?void 0:y.okText:y==null?void 0:y.justOkText),direction:l.direction||d,cancelText:l.cancelText||(y==null?void 0:y.cancelText)},i))},yAe=c.forwardRef(vAe);let kL=0;const bAe=c.memo(c.forwardRef((e,t)=>{const[n,r]=f3e();return c.useImperativeHandle(t,()=>({patchElement:r}),[r]),c.createElement(c.Fragment,null,n)}));function xAe(){const e=c.useRef(null),[t,n]=c.useState([]);c.useEffect(()=>{t.length&&(Ne(t).forEach(a=>{a()}),n([]))},[t]);const r=c.useCallback(i=>function(s){var l;kL+=1;const u=c.createRef();let d;const f=new Promise(v=>{d=v});let m=!1,h;const p=c.createElement(yAe,{key:`modal-${kL}`,config:i(s),ref:u,afterClose:()=>{h==null||h()},isSilent:()=>m,onConfirm:v=>{d(v)}});return h=(l=e.current)===null||l===void 0?void 0:l.patchElement(p),h&&qu.push(h),{destroy:()=>{function v(){var y;(y=u.current)===null||y===void 0||y.destroy()}u.current?v():n(y=>[].concat(Ne(y),[v]))},update:v=>{function y(){var x;(x=u.current)===null||x===void 0||x.update(v)}u.current?y():n(x=>[].concat(Ne(x),[y]))},then:v=>(m=!0,f.then(v))}},[]);return[c.useMemo(()=>({info:r(bJ),success:r(xJ),error:r(wJ),warning:r(yJ),confirm:r(SJ)}),[r]),c.createElement(bAe,{key:"modal-holder",ref:e})]}const wAe=ce.createContext({});function CJ(e){return t=>c.createElement(Ma,{theme:{token:{motion:!1,zIndexPopupBase:0}}},c.createElement(e,Object.assign({},t)))}const LS=(e,t,n,r,o)=>CJ(a=>{const{prefixCls:s,style:l}=a,u=c.useRef(null),[d,f]=c.useState(0),[m,h]=c.useState(0),[p,b]=kn(!1,{value:a.open}),{getPrefixCls:v}=c.useContext(kt),y=v(r||"select",s);c.useEffect(()=>{if(b(!0),typeof ResizeObserver<"u"){const C=new ResizeObserver($=>{const E=$[0].target;f(E.offsetHeight+8),h(E.offsetWidth)}),S=setInterval(()=>{var $;const E=o?`.${o(y)}`:`.${y}-dropdown`,O=($=u.current)===null||$===void 0?void 0:$.querySelector(E);O&&(clearInterval(S),C.observe(O))},10);return()=>{clearInterval(S),C.disconnect()}}},[y]);let x=Object.assign(Object.assign({},a),{style:Object.assign(Object.assign({},l),{margin:0}),open:p,visible:p,getPopupContainer:()=>u.current});t&&Object.assign(x,{[t]:{overflow:{adjustX:!1,adjustY:!1}}});const w={paddingBottom:d,position:"relative",minWidth:m};return c.createElement("div",{ref:u,style:w},c.createElement(e,Object.assign({},x)))}),zS=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 FS=function(t){var n=t.className,r=t.customizeIcon,o=t.customizeIconProps,i=t.children,a=t.onMouseDown,s=t.onClick,l=typeof r=="function"?r(o):r;return c.createElement("span",{className:n,onMouseDown:function(d){d.preventDefault(),a==null||a(d)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:s,"aria-hidden":!0},l!==void 0?l:c.createElement("span",{className:Q(n.split(/\s+/).map(function(u){return"".concat(u,"-icon")}))},i))},SAe=function(t,n,r,o,i){var a=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,s=arguments.length>6?arguments[6]:void 0,l=arguments.length>7?arguments[7]:void 0,u=ce.useMemo(function(){if(_t(o)==="object")return o.clearIcon;if(i)return i},[o,i]),d=ce.useMemo(function(){return!!(!a&&o&&(r.length||s)&&!(l==="combobox"&&s===""))},[o,a,r.length,s,l]);return{allowClear:d,clearIcon:ce.createElement(FS,{className:"".concat(t,"-clear"),onMouseDown:n,customizeIcon:u},"×")}},$J=c.createContext(null);function CAe(){return c.useContext($J)}function $Ae(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,t=c.useState(!1),n=ue(t,2),r=n[0],o=n[1],i=c.useRef(null),a=function(){window.clearTimeout(i.current)};c.useEffect(function(){return a},[]);var s=function(u,d){a(),i.current=window.setTimeout(function(){o(u),d&&d()},e)};return[r,s,a]}function EJ(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,t=c.useRef(null),n=c.useRef(null);c.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 EAe(e,t,n,r){var o=c.useRef(null);o.current={open:t,triggerOpen:n,customizedTrigger:r},c.useEffect(function(){function i(a){var s;if(!((s=o.current)!==null&&s!==void 0&&s.customizedTrigger)){var l=a.target;l.shadowRoot&&a.composed&&(l=a.composedPath()[0]||l),o.current.open&&e().filter(function(u){return u}).every(function(u){return!u.contains(l)&&u!==l})&&o.current.triggerOpen(!1)}}return window.addEventListener("mousedown",i),function(){return window.removeEventListener("mousedown",i)}},[])}function OAe(e){return e&&![jt.ESC,jt.SHIFT,jt.BACKSPACE,jt.TAB,jt.WIN_KEY,jt.ALT,jt.META,jt.WIN_KEY_RIGHT,jt.CTRL,jt.SEMICOLON,jt.EQUALS,jt.CAPS_LOCK,jt.CONTEXT_MENU,jt.F1,jt.F2,jt.F3,jt.F4,jt.F5,jt.F6,jt.F7,jt.F8,jt.F9,jt.F10,jt.F11,jt.F12].includes(e)}var PAe=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],mf=void 0;function jAe(e,t){var n=e.prefixCls,r=e.invalidate,o=e.item,i=e.renderItem,a=e.responsive,s=e.responsiveDisabled,l=e.registerSize,u=e.itemKey,d=e.className,f=e.style,m=e.children,h=e.display,p=e.order,b=e.component,v=b===void 0?"div":b,y=Ht(e,PAe),x=a&&!h;function w(O){l(u,O)}c.useEffect(function(){return function(){w(null)}},[]);var C=i&&o!==mf?i(o,{index:p}):m,S;r||(S={opacity:x?0:1,height:x?0:mf,overflowY:x?"hidden":mf,order:a?p:mf,pointerEvents:x?"none":mf,position:x?"absolute":mf});var $={};x&&($["aria-hidden"]=!0);var E=c.createElement(v,Ee({className:Q(!r&&n,d),style:Y(Y({},S),f)},$,y,{ref:t}),C);return a&&(E=c.createElement(Wo,{onResize:function(P){var j=P.offsetWidth;w(j)},disabled:s},E)),E}var Wf=c.forwardRef(jAe);Wf.displayName="Item";function IAe(e){if(typeof MessageChannel>"u")ln(e);else{var t=new MessageChannel;t.port1.onmessage=function(){return e()},t.port2.postMessage(void 0)}}function _Ae(){var e=c.useRef(null),t=function(r){e.current||(e.current=[],IAe(function(){Fi.unstable_batchedUpdates(function(){e.current.forEach(function(o){o()}),e.current=null})})),e.current.push(r)};return t}function hf(e,t){var n=c.useState(t),r=ue(n,2),o=r[0],i=r[1],a=fn(function(s){e(function(){i(s)})});return[o,a]}var o1=ce.createContext(null),NAe=["component"],RAe=["className"],TAe=["className"],MAe=function(t,n){var r=c.useContext(o1);if(!r){var o=t.component,i=o===void 0?"div":o,a=Ht(t,NAe);return c.createElement(i,Ee({},a,{ref:n}))}var s=r.className,l=Ht(r,RAe),u=t.className,d=Ht(t,TAe);return c.createElement(o1.Provider,{value:null},c.createElement(Wf,Ee({ref:n,className:Q(s,u)},l,d)))},OJ=c.forwardRef(MAe);OJ.displayName="RawItem";var kAe=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","prefix","suffix","component","itemComponent","onVisibleChange"],PJ="responsive",jJ="invalidate";function AAe(e){return"+ ".concat(e.length," ...")}function DAe(e,t){var n=e.prefixCls,r=n===void 0?"rc-overflow":n,o=e.data,i=o===void 0?[]:o,a=e.renderItem,s=e.renderRawItem,l=e.itemKey,u=e.itemWidth,d=u===void 0?10:u,f=e.ssr,m=e.style,h=e.className,p=e.maxCount,b=e.renderRest,v=e.renderRawRest,y=e.prefix,x=e.suffix,w=e.component,C=w===void 0?"div":w,S=e.itemComponent,$=e.onVisibleChange,E=Ht(e,kAe),O=f==="full",P=_Ae(),j=hf(P,null),I=ue(j,2),_=I[0],R=I[1],N=_||0,A=hf(P,new Map),M=ue(A,2),T=M[0],k=M[1],D=hf(P,0),L=ue(D,2),B=L[0],H=L[1],F=hf(P,0),W=ue(F,2),q=W[0],G=W[1],te=hf(P,0),ee=ue(te,2),z=ee[0],ne=ee[1],X=hf(P,0),U=ue(X,2),le=U[0],se=U[1],ae=c.useState(null),re=ue(ae,2),fe=re[0],ye=re[1],Pe=c.useState(null),Oe=ue(Pe,2),V=Oe[0],J=Oe[1],oe=c.useMemo(function(){return V===null&&O?Number.MAX_SAFE_INTEGER:V||0},[V,_]),de=c.useState(!1),be=ue(de,2),ge=be[0],ie=be[1],he="".concat(r,"-item"),xe=Math.max(B,q),Re=p===PJ,Ce=i.length&&Re,pe=p===jJ,_e=Ce||typeof p=="number"&&i.length>p,we=c.useMemo(function(){var Ie=i;return Ce?_===null&&O?Ie=i:Ie=i.slice(0,Math.min(i.length,N/d)):typeof p=="number"&&(Ie=i.slice(0,p)),Ie},[i,d,_,p,Ce]),$e=c.useMemo(function(){return Ce?i.slice(oe+1):i.slice(we.length)},[i,we,Ce,oe]),ve=c.useCallback(function(Ie,Te){var Xe;return typeof l=="function"?l(Ie):(Xe=l&&(Ie==null?void 0:Ie[l]))!==null&&Xe!==void 0?Xe:Te},[l]),me=c.useCallback(a||function(Ie){return Ie},[a]);function Se(Ie,Te,Xe){V===Ie&&(Te===void 0||Te===fe)||(J(Ie),Xe||(ie(Ie<i.length-1),$==null||$(Ie)),Te!==void 0&&ye(Te))}function De(Ie,Te){R(Te.clientWidth)}function et(Ie,Te){k(function(Xe){var lt=new Map(Xe);return Te===null?lt.delete(Ie):lt.set(Ie,Te),lt})}function rt(Ie,Te){G(Te),H(q)}function Me(Ie,Te){ne(Te)}function We(Ie,Te){se(Te)}function Qe(Ie){return T.get(ve(we[Ie],Ie))}sn(function(){if(N&&typeof xe=="number"&&we){var Ie=z+le,Te=we.length,Xe=Te-1;if(!Te){Se(0,null);return}for(var lt=0;lt<Te;lt+=1){var mt=Qe(lt);if(O&&(mt=mt||0),mt===void 0){Se(lt-1,void 0,!0);break}if(Ie+=mt,Xe===0&&Ie<=N||lt===Xe-1&&Ie+Qe(Xe)<=N){Se(Xe,null);break}else if(Ie+xe>N){Se(lt-1,Ie-mt-le+q);break}}x&&Qe(0)+le>N&&ye(null)}},[N,T,q,z,le,ve,we]);var Ge=ge&&!!$e.length,tt={};fe!==null&&Ce&&(tt={position:"absolute",left:fe,top:0});var ke={prefixCls:he,responsive:Ce,component:S,invalidate:pe},xt=s?function(Ie,Te){var Xe=ve(Ie,Te);return c.createElement(o1.Provider,{key:Xe,value:Y(Y({},ke),{},{order:Te,item:Ie,itemKey:Xe,registerSize:et,display:Te<=oe})},s(Ie,Te))}:function(Ie,Te){var Xe=ve(Ie,Te);return c.createElement(Wf,Ee({},ke,{order:Te,key:Xe,item:Ie,renderItem:me,itemKey:Xe,registerSize:et,display:Te<=oe}))},Ze={order:Ge?oe:Number.MAX_SAFE_INTEGER,className:"".concat(he,"-rest"),registerSize:rt,display:Ge},nt=b||AAe,Be=v?c.createElement(o1.Provider,{value:Y(Y({},ke),Ze)},v($e)):c.createElement(Wf,Ee({},ke,Ze),typeof nt=="function"?nt($e):nt),Le=c.createElement(C,Ee({className:Q(!pe&&r,h),style:m,ref:t},E),y&&c.createElement(Wf,Ee({},ke,{responsive:Re,responsiveDisabled:!Ce,order:-1,className:"".concat(he,"-prefix"),registerSize:Me,display:!0}),y),we.map(xt),_e?Be:null,x&&c.createElement(Wf,Ee({},ke,{responsive:Re,responsiveDisabled:!Ce,order:oe,className:"".concat(he,"-suffix"),registerSize:We,display:!0,style:tt}),x));return Re?c.createElement(Wo,{onResize:De,disabled:!Ce},Le):Le}var ks=c.forwardRef(DAe);ks.displayName="Overflow";ks.Item=OJ;ks.RESPONSIVE=PJ;ks.INVALIDATE=jJ;function LAe(e,t,n){var r=Y(Y({},e),t);return Object.keys(t).forEach(function(o){var i=t[o];typeof i=="function"&&(r[o]=function(){for(var a,s=arguments.length,l=new Array(s),u=0;u<s;u++)l[u]=arguments[u];return i.apply(void 0,l),(a=e[o])===null||a===void 0?void 0:a.call.apply(a,[e].concat(l))})}),r}var zAe=["prefixCls","id","inputElement","autoFocus","autoComplete","editable","activeDescendantId","value","open","attrs"],FAe=function(t,n){var r=t.prefixCls,o=t.id,i=t.inputElement,a=t.autoFocus,s=t.autoComplete,l=t.editable,u=t.activeDescendantId,d=t.value,f=t.open,m=t.attrs,h=Ht(t,zAe),p=i||c.createElement("input",null),b=p,v=b.ref,y=b.props;return"maxLength"in p.props,p=c.cloneElement(p,Y(Y(Y({type:"search"},LAe(h,y)),{},{id:o,ref:po(n,v),autoComplete:s||"off",autoFocus:a,className:Q("".concat(r,"-selection-search-input"),y==null?void 0:y.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:l?d:"",readOnly:!l,unselectable:l?null:"on",style:Y(Y({},y.style),{},{opacity:l?null:0})})),p},IJ=c.forwardRef(FAe);function _J(e){return Array.isArray(e)?e:e!==void 0?[e]:[]}var BAe=typeof window<"u"&&window.document&&window.document.documentElement,HAe=BAe;function VAe(e){return e!=null}function WAe(e){return!e&&e!==0}function AL(e){return["string","number"].includes(_t(e))}function NJ(e){var t=void 0;return e&&(AL(e.title)?t=e.title.toString():AL(e.label)&&(t=e.label.toString())),t}function UAe(e,t){HAe?c.useLayoutEffect(e,t):c.useEffect(e,t)}function KAe(e){var t;return(t=e.key)!==null&&t!==void 0?t:e.value}var DL=function(t){t.preventDefault(),t.stopPropagation()},qAe=function(t){var n=t.id,r=t.prefixCls,o=t.values,i=t.open,a=t.searchValue,s=t.autoClearSearchValue,l=t.inputRef,u=t.placeholder,d=t.disabled,f=t.mode,m=t.showSearch,h=t.autoFocus,p=t.autoComplete,b=t.activeDescendantId,v=t.tabIndex,y=t.removeIcon,x=t.maxTagCount,w=t.maxTagTextLength,C=t.maxTagPlaceholder,S=C===void 0?function(se){return"+ ".concat(se.length," ...")}:C,$=t.tagRender,E=t.onToggleOpen,O=t.onRemove,P=t.onInputChange,j=t.onInputPaste,I=t.onInputKeyDown,_=t.onInputMouseDown,R=t.onInputCompositionStart,N=t.onInputCompositionEnd,A=t.onInputBlur,M=c.useRef(null),T=c.useState(0),k=ue(T,2),D=k[0],L=k[1],B=c.useState(!1),H=ue(B,2),F=H[0],W=H[1],q="".concat(r,"-selection"),G=i||f==="multiple"&&s===!1||f==="tags"?a:"",te=f==="tags"||f==="multiple"&&s===!1||m&&(i||F);UAe(function(){L(M.current.scrollWidth)},[G]);var ee=function(ae,re,fe,ye,Pe){return c.createElement("span",{title:NJ(ae),className:Q("".concat(q,"-item"),K({},"".concat(q,"-item-disabled"),fe))},c.createElement("span",{className:"".concat(q,"-item-content")},re),ye&&c.createElement(FS,{className:"".concat(q,"-item-remove"),onMouseDown:DL,onClick:Pe,customizeIcon:y},"×"))},z=function(ae,re,fe,ye,Pe,Oe){var V=function(oe){DL(oe),E(!i)};return c.createElement("span",{onMouseDown:V},$({label:re,value:ae,disabled:fe,closable:ye,onClose:Pe,isMaxTag:!!Oe}))},ne=function(ae){var re=ae.disabled,fe=ae.label,ye=ae.value,Pe=!d&&!re,Oe=fe;if(typeof w=="number"&&(typeof fe=="string"||typeof fe=="number")){var V=String(Oe);V.length>w&&(Oe="".concat(V.slice(0,w),"..."))}var J=function(de){de&&de.stopPropagation(),O(ae)};return typeof $=="function"?z(ye,Oe,re,Pe,J):ee(ae,Oe,re,Pe,J)},X=function(ae){if(!o.length)return null;var re=typeof S=="function"?S(ae):S;return typeof $=="function"?z(void 0,re,!1,!1,void 0,!0):ee({title:re},re,!1)},U=c.createElement("div",{className:"".concat(q,"-search"),style:{width:D},onFocus:function(){W(!0)},onBlur:function(){W(!1)}},c.createElement(IJ,{ref:l,open:i,prefixCls:r,id:n,inputElement:null,disabled:d,autoFocus:h,autoComplete:p,editable:te,activeDescendantId:b,value:G,onKeyDown:I,onMouseDown:_,onChange:P,onPaste:j,onCompositionStart:R,onCompositionEnd:N,onBlur:A,tabIndex:v,attrs:Pr(t,!0)}),c.createElement("span",{ref:M,className:"".concat(q,"-search-mirror"),"aria-hidden":!0},G," ")),le=c.createElement(ks,{prefixCls:"".concat(q,"-overflow"),data:o,renderItem:ne,renderRest:X,suffix:U,itemKey:KAe,maxCount:x});return c.createElement("span",{className:"".concat(q,"-wrap")},le,!o.length&&!G&&c.createElement("span",{className:"".concat(q,"-placeholder")},u))},GAe=function(t){var n=t.inputElement,r=t.prefixCls,o=t.id,i=t.inputRef,a=t.disabled,s=t.autoFocus,l=t.autoComplete,u=t.activeDescendantId,d=t.mode,f=t.open,m=t.values,h=t.placeholder,p=t.tabIndex,b=t.showSearch,v=t.searchValue,y=t.activeValue,x=t.maxLength,w=t.onInputKeyDown,C=t.onInputMouseDown,S=t.onInputChange,$=t.onInputPaste,E=t.onInputCompositionStart,O=t.onInputCompositionEnd,P=t.onInputBlur,j=t.title,I=c.useState(!1),_=ue(I,2),R=_[0],N=_[1],A=d==="combobox",M=A||b,T=m[0],k=v||"";A&&y&&!R&&(k=y),c.useEffect(function(){A&&N(!1)},[A,y]);var D=d!=="combobox"&&!f&&!b?!1:!!k,L=j===void 0?NJ(T):j,B=c.useMemo(function(){return T?null:c.createElement("span",{className:"".concat(r,"-selection-placeholder"),style:D?{visibility:"hidden"}:void 0},h)},[T,D,h,r]);return c.createElement("span",{className:"".concat(r,"-selection-wrap")},c.createElement("span",{className:"".concat(r,"-selection-search")},c.createElement(IJ,{ref:i,prefixCls:r,id:o,open:f,inputElement:n,disabled:a,autoFocus:s,autoComplete:l,editable:M,activeDescendantId:u,value:k,onKeyDown:w,onMouseDown:C,onChange:function(F){N(!0),S(F)},onPaste:$,onCompositionStart:E,onCompositionEnd:O,onBlur:P,tabIndex:p,attrs:Pr(t,!0),maxLength:A?x:void 0})),!A&&T?c.createElement("span",{className:"".concat(r,"-selection-item"),title:L,style:D?{visibility:"hidden"}:void 0},T.label):null,B)},XAe=function(t,n){var r=c.useRef(null),o=c.useRef(!1),i=t.prefixCls,a=t.open,s=t.mode,l=t.showSearch,u=t.tokenWithEnter,d=t.disabled,f=t.prefix,m=t.autoClearSearchValue,h=t.onSearch,p=t.onSearchSubmit,b=t.onToggleOpen,v=t.onInputKeyDown,y=t.onInputBlur,x=t.domRef;c.useImperativeHandle(n,function(){return{focus:function(L){r.current.focus(L)},blur:function(){r.current.blur()}}});var w=EJ(0),C=ue(w,2),S=C[0],$=C[1],E=function(L){var B=L.which,H=r.current instanceof HTMLTextAreaElement;!H&&a&&(B===jt.UP||B===jt.DOWN)&&L.preventDefault(),v&&v(L),B===jt.ENTER&&s==="tags"&&!o.current&&!a&&(p==null||p(L.target.value)),!(H&&!a&&~[jt.UP,jt.DOWN,jt.LEFT,jt.RIGHT].indexOf(B))&&OAe(B)&&b(!0)},O=function(){$(!0)},P=c.useRef(null),j=function(L){h(L,!0,o.current)!==!1&&b(!0)},I=function(){o.current=!0},_=function(L){o.current=!1,s!=="combobox"&&j(L.target.value)},R=function(L){var B=L.target.value;if(u&&P.current&&/[\r\n]/.test(P.current)){var H=P.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");B=B.replace(H,P.current)}P.current=null,j(B)},N=function(L){var B=L.clipboardData,H=B==null?void 0:B.getData("text");P.current=H||""},A=function(L){var B=L.target;if(B!==r.current){var H=document.body.style.msTouchAction!==void 0;H?setTimeout(function(){r.current.focus()}):r.current.focus()}},M=function(L){var B=S();L.target!==r.current&&!B&&!(s==="combobox"&&d)&&L.preventDefault(),(s!=="combobox"&&(!l||!B)||!a)&&(a&&m!==!1&&h("",!0,!1),b())},T={inputRef:r,onInputKeyDown:E,onInputMouseDown:O,onInputChange:R,onInputPaste:N,onInputCompositionStart:I,onInputCompositionEnd:_,onInputBlur:y},k=s==="multiple"||s==="tags"?c.createElement(qAe,Ee({},t,T)):c.createElement(GAe,Ee({},t,T));return c.createElement("div",{ref:x,className:"".concat(i,"-selector"),onClick:A,onMouseDown:M},f&&c.createElement("div",{className:"".concat(i,"-prefix")},f),k)},YAe=c.forwardRef(XAe);function ZAe(e){var t=e.prefixCls,n=e.align,r=e.arrow,o=e.arrowPos,i=r||{},a=i.className,s=i.content,l=o.x,u=l===void 0?0:l,d=o.y,f=d===void 0?0:d,m=c.useRef();if(!n||!n.points)return null;var h={position:"absolute"};if(n.autoArrow!==!1){var p=n.points[0],b=n.points[1],v=p[0],y=p[1],x=b[0],w=b[1];v===x||!["t","b"].includes(v)?h.top=f:v==="t"?h.top=0:h.bottom=0,y===w||!["l","r"].includes(y)?h.left=u:y==="l"?h.left=0:h.right=0}return c.createElement("div",{ref:m,className:Q("".concat(t,"-arrow"),a),style:h},s)}function JAe(e){var t=e.prefixCls,n=e.open,r=e.zIndex,o=e.mask,i=e.motion;return o?c.createElement(si,Ee({},i,{motionAppear:!0,visible:n,removeOnLeave:!0}),function(a){var s=a.className;return c.createElement("div",{style:{zIndex:r},className:Q("".concat(t,"-mask"),s)})}):null}var QAe=c.memo(function(e){var t=e.children;return t},function(e,t){return t.cache}),e8e=c.forwardRef(function(e,t){var n=e.popup,r=e.className,o=e.prefixCls,i=e.style,a=e.target,s=e.onVisibleChanged,l=e.open,u=e.keepDom,d=e.fresh,f=e.onClick,m=e.mask,h=e.arrow,p=e.arrowPos,b=e.align,v=e.motion,y=e.maskMotion,x=e.forceRender,w=e.getPopupContainer,C=e.autoDestroy,S=e.portal,$=e.zIndex,E=e.onMouseEnter,O=e.onMouseLeave,P=e.onPointerEnter,j=e.onPointerDownCapture,I=e.ready,_=e.offsetX,R=e.offsetY,N=e.offsetR,A=e.offsetB,M=e.onAlign,T=e.onPrepare,k=e.stretch,D=e.targetWidth,L=e.targetHeight,B=typeof n=="function"?n():n,H=l||u,F=(w==null?void 0:w.length)>0,W=c.useState(!w||!F),q=ue(W,2),G=q[0],te=q[1];if(sn(function(){!G&&F&&a&&te(!0)},[G,F,a]),!G)return null;var ee="auto",z={left:"-1000vw",top:"-1000vh",right:ee,bottom:ee};if(I||!l){var ne,X=b.points,U=b.dynamicInset||((ne=b._experimental)===null||ne===void 0?void 0:ne.dynamicInset),le=U&&X[0][1]==="r",se=U&&X[0][0]==="b";le?(z.right=N,z.left=ee):(z.left=_,z.right=ee),se?(z.bottom=A,z.top=ee):(z.top=R,z.bottom=ee)}var ae={};return k&&(k.includes("height")&&L?ae.height=L:k.includes("minHeight")&&L&&(ae.minHeight=L),k.includes("width")&&D?ae.width=D:k.includes("minWidth")&&D&&(ae.minWidth=D)),l||(ae.pointerEvents="none"),c.createElement(S,{open:x||H,getContainer:w&&function(){return w(a)},autoDestroy:C},c.createElement(JAe,{prefixCls:o,open:l,zIndex:$,mask:m,motion:y}),c.createElement(Wo,{onResize:M,disabled:!l},function(re){return c.createElement(si,Ee({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:x,leavedClassName:"".concat(o,"-hidden")},v,{onAppearPrepare:T,onEnterPrepare:T,visible:l,onVisibleChanged:function(ye){var Pe;v==null||(Pe=v.onVisibleChanged)===null||Pe===void 0||Pe.call(v,ye),s(ye)}}),function(fe,ye){var Pe=fe.className,Oe=fe.style,V=Q(o,Pe,r);return c.createElement("div",{ref:po(re,t,ye),className:V,style:Y(Y(Y(Y({"--arrow-x":"".concat(p.x||0,"px"),"--arrow-y":"".concat(p.y||0,"px")},z),ae),Oe),{},{boxSizing:"border-box",zIndex:$},i),onMouseEnter:E,onMouseLeave:O,onPointerEnter:P,onClick:f,onPointerDownCapture:j},h&&c.createElement(ZAe,{prefixCls:o,arrow:h,arrowPos:p,align:b}),c.createElement(QAe,{cache:!l&&!d},B))})}))}),t8e=c.forwardRef(function(e,t){var n=e.children,r=e.getTriggerDOMNode,o=Fs(n),i=c.useCallback(function(s){Dg(t,r?r(s):s)},[r]),a=xl(i,hu(n));return o?c.cloneElement(n,{ref:a}):n}),LL=c.createContext(null);function zL(e){return e?Array.isArray(e)?e:[e]:[]}function n8e(e,t,n,r){return c.useMemo(function(){var o=zL(n??t),i=zL(r??t),a=new Set(o),s=new Set(i);return e&&(a.has("hover")&&(a.delete("hover"),a.add("click")),s.has("hover")&&(s.delete("hover"),s.add("click"))),[a,s]},[e,t,n,r])}function r8e(){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 o8e(e,t,n,r){for(var o=n.points,i=Object.keys(e),a=0;a<i.length;a+=1){var s,l=i[a];if(r8e((s=e[l])===null||s===void 0?void 0:s.points,o,r))return"".concat(t,"-placement-").concat(l)}return""}function FL(e,t,n,r){return t||(n?{motionName:"".concat(e,"-").concat(n)}:r?{motionName:r}:null)}function o0(e){return e.ownerDocument.defaultView}function yj(e){for(var t=[],n=e==null?void 0:e.parentElement,r=["hidden","scroll","clip","auto"];n;){var o=o0(n).getComputedStyle(n),i=o.overflowX,a=o.overflowY,s=o.overflow;[i,a,s].some(function(l){return r.includes(l)})&&t.push(n),n=n.parentElement}return t}function Xg(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;return Number.isNaN(e)?t:e}function ap(e){return Xg(parseFloat(e),0)}function BL(e,t){var n=Y({},e);return(t||[]).forEach(function(r){if(!(r instanceof HTMLBodyElement||r instanceof HTMLHtmlElement)){var o=o0(r).getComputedStyle(r),i=o.overflow,a=o.overflowClipMargin,s=o.borderTopWidth,l=o.borderBottomWidth,u=o.borderLeftWidth,d=o.borderRightWidth,f=r.getBoundingClientRect(),m=r.offsetHeight,h=r.clientHeight,p=r.offsetWidth,b=r.clientWidth,v=ap(s),y=ap(l),x=ap(u),w=ap(d),C=Xg(Math.round(f.width/p*1e3)/1e3),S=Xg(Math.round(f.height/m*1e3)/1e3),$=(p-b-x-w)*C,E=(m-h-v-y)*S,O=v*S,P=y*S,j=x*C,I=w*C,_=0,R=0;if(i==="clip"){var N=ap(a);_=N*C,R=N*S}var A=f.x+j-_,M=f.y+O-R,T=A+f.width+2*_-j-I-$,k=M+f.height+2*R-O-P-E;n.left=Math.max(n.left,A),n.top=Math.max(n.top,M),n.right=Math.min(n.right,T),n.bottom=Math.min(n.bottom,k)}}),n}function HL(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 VL(e,t){var n=t||[],r=ue(n,2),o=r[0],i=r[1];return[HL(e.width,o),HL(e.height,i)]}function WL(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return[e[0],e[1]]}function pf(e,t){var n=t[0],r=t[1],o,i;return n==="t"?i=e.y:n==="b"?i=e.y+e.height:i=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:i}}function hc(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 i8e(e,t,n,r,o,i,a){var s=c.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:o[r]||{}}),l=ue(s,2),u=l[0],d=l[1],f=c.useRef(0),m=c.useMemo(function(){return t?yj(t):[]},[t]),h=c.useRef({}),p=function(){h.current={}};e||p();var b=fn(function(){if(t&&n&&e){let Ae=function(bn,Pn){var En=arguments.length>2&&arguments[2]!==void 0?arguments[2]:be,qn=H.x+bn,Fn=H.y+Pn,ar=qn+se,$i=Fn+le,Ro=Math.max(qn,En.left),At=Math.max(Fn,En.top),nn=Math.min(ar,En.right),Tn=Math.min($i,En.bottom);return Math.max(0,(nn-Ro)*(Tn-At))},Bt=function(){Vt=H.y+nt,Nt=Vt+le,ft=H.x+Ze,ot=ft+se};var x,w,C,S,$=t,E=$.ownerDocument,O=o0($),P=O.getComputedStyle($),j=P.position,I=$.style.left,_=$.style.top,R=$.style.right,N=$.style.bottom,A=$.style.overflow,M=Y(Y({},o[r]),i),T=E.createElement("div");(x=$.parentElement)===null||x===void 0||x.appendChild(T),T.style.left="".concat($.offsetLeft,"px"),T.style.top="".concat($.offsetTop,"px"),T.style.position=j,T.style.height="".concat($.offsetHeight,"px"),T.style.width="".concat($.offsetWidth,"px"),$.style.left="0",$.style.top="0",$.style.right="auto",$.style.bottom="auto",$.style.overflow="hidden";var k;if(Array.isArray(n))k={x:n[0],y:n[1],width:0,height:0};else{var D,L,B=n.getBoundingClientRect();B.x=(D=B.x)!==null&&D!==void 0?D:B.left,B.y=(L=B.y)!==null&&L!==void 0?L:B.top,k={x:B.x,y:B.y,width:B.width,height:B.height}}var H=$.getBoundingClientRect(),F=O.getComputedStyle($),W=F.height,q=F.width;H.x=(w=H.x)!==null&&w!==void 0?w:H.left,H.y=(C=H.y)!==null&&C!==void 0?C:H.top;var G=E.documentElement,te=G.clientWidth,ee=G.clientHeight,z=G.scrollWidth,ne=G.scrollHeight,X=G.scrollTop,U=G.scrollLeft,le=H.height,se=H.width,ae=k.height,re=k.width,fe={left:0,top:0,right:te,bottom:ee},ye={left:-U,top:-X,right:z-U,bottom:ne-X},Pe=M.htmlRegion,Oe="visible",V="visibleFirst";Pe!=="scroll"&&Pe!==V&&(Pe=Oe);var J=Pe===V,oe=BL(ye,m),de=BL(fe,m),be=Pe===Oe?de:oe,ge=J?de:be;$.style.left="auto",$.style.top="auto",$.style.right="0",$.style.bottom="0";var ie=$.getBoundingClientRect();$.style.left=I,$.style.top=_,$.style.right=R,$.style.bottom=N,$.style.overflow=A,(S=$.parentElement)===null||S===void 0||S.removeChild(T);var he=Xg(Math.round(se/parseFloat(q)*1e3)/1e3),xe=Xg(Math.round(le/parseFloat(W)*1e3)/1e3);if(he===0||xe===0||Ag(n)&&!xh(n))return;var Re=M.offset,Ce=M.targetOffset,pe=VL(H,Re),_e=ue(pe,2),we=_e[0],$e=_e[1],ve=VL(k,Ce),me=ue(ve,2),Se=me[0],De=me[1];k.x-=Se,k.y-=De;var et=M.points||[],rt=ue(et,2),Me=rt[0],We=rt[1],Qe=WL(We),Ge=WL(Me),tt=pf(k,Qe),ke=pf(H,Ge),xt=Y({},M),Ze=tt.x-ke.x+we,nt=tt.y-ke.y+$e,Be=Ae(Ze,nt),Le=Ae(Ze,nt,de),Ie=pf(k,["t","l"]),Te=pf(H,["t","l"]),Xe=pf(k,["b","r"]),lt=pf(H,["b","r"]),mt=M.overflow||{},Ot=mt.adjustX,dt=mt.adjustY,qe=mt.shiftX,ht=mt.shiftY,zt=function(Pn){return typeof Pn=="boolean"?Pn:Pn>=0},Vt,Nt,ft,ot;Bt();var Ft=zt(dt),Ue=Ge[0]===Qe[0];if(Ft&&Ge[0]==="t"&&(Nt>ge.bottom||h.current.bt)){var Je=nt;Ue?Je-=le-ae:Je=Ie.y-lt.y-$e;var vt=Ae(Ze,Je),yt=Ae(Ze,Je,de);vt>Be||vt===Be&&(!J||yt>=Le)?(h.current.bt=!0,nt=Je,$e=-$e,xt.points=[hc(Ge,0),hc(Qe,0)]):h.current.bt=!1}if(Ft&&Ge[0]==="b"&&(Vt<ge.top||h.current.tb)){var Ye=nt;Ue?Ye+=le-ae:Ye=Xe.y-Te.y-$e;var st=Ae(Ze,Ye),wt=Ae(Ze,Ye,de);st>Be||st===Be&&(!J||wt>=Le)?(h.current.tb=!0,nt=Ye,$e=-$e,xt.points=[hc(Ge,0),hc(Qe,0)]):h.current.tb=!1}var Kt=zt(Ot),bt=Ge[1]===Qe[1];if(Kt&&Ge[1]==="l"&&(ot>ge.right||h.current.rl)){var It=Ze;bt?It-=se-re:It=Ie.x-lt.x-we;var qt=Ae(It,nt),In=Ae(It,nt,de);qt>Be||qt===Be&&(!J||In>=Le)?(h.current.rl=!0,Ze=It,we=-we,xt.points=[hc(Ge,1),hc(Qe,1)]):h.current.rl=!1}if(Kt&&Ge[1]==="r"&&(ft<ge.left||h.current.lr)){var An=Ze;bt?An+=se-re:An=Xe.x-Te.x-we;var Nn=Ae(An,nt),Rn=Ae(An,nt,de);Nn>Be||Nn===Be&&(!J||Rn>=Le)?(h.current.lr=!0,Ze=An,we=-we,xt.points=[hc(Ge,1),hc(Qe,1)]):h.current.lr=!1}Bt();var $n=qe===!0?0:qe;typeof $n=="number"&&(ft<de.left&&(Ze-=ft-de.left-we,k.x+re<de.left+$n&&(Ze+=k.x-de.left+re-$n)),ot>de.right&&(Ze-=ot-de.right-we,k.x>de.right-$n&&(Ze+=k.x-de.right+$n)));var Dn=ht===!0?0:ht;typeof Dn=="number"&&(Vt<de.top&&(nt-=Vt-de.top-$e,k.y+ae<de.top+Dn&&(nt+=k.y-de.top+ae-Dn)),Nt>de.bottom&&(nt-=Nt-de.bottom-$e,k.y>de.bottom-Dn&&(nt+=k.y-de.bottom+Dn)));var wn=H.x+Ze,St=wn+se,an=H.y+nt,Zt=an+le,ct=k.x,je=ct+re,pt=k.y,it=pt+ae,Ke=Math.max(wn,ct),Et=Math.min(St,je),at=(Ke+Et)/2,Wt=at-wn,tn=Math.max(an,pt),Ut=Math.min(Zt,it),en=(tn+Ut)/2,Rt=en-an;a==null||a(t,xt);var ze=ie.right-H.x-(Ze+H.width),He=ie.bottom-H.y-(nt+H.height);he===1&&(Ze=Math.round(Ze),ze=Math.round(ze)),xe===1&&(nt=Math.round(nt),He=Math.round(He));var Tt={ready:!0,offsetX:Ze/he,offsetY:nt/xe,offsetR:ze/he,offsetB:He/xe,arrowX:Wt/he,arrowY:Rt/xe,scaleX:he,scaleY:xe,align:xt};d(Tt)}}),v=function(){f.current+=1;var w=f.current;Promise.resolve().then(function(){f.current===w&&b()})},y=function(){d(function(w){return Y(Y({},w),{},{ready:!1})})};return sn(y,[r]),sn(function(){e||y()},[e]),[u.ready,u.offsetX,u.offsetY,u.offsetR,u.offsetB,u.arrowX,u.arrowY,u.scaleX,u.scaleY,u.align,v]}function a8e(e,t,n,r,o){sn(function(){if(e&&t&&n){let f=function(){r(),o()};var i=t,a=n,s=yj(i),l=yj(a),u=o0(a),d=new Set([u].concat(Ne(s),Ne(l)));return d.forEach(function(m){m.addEventListener("scroll",f,{passive:!0})}),u.addEventListener("resize",f,{passive:!0}),r(),function(){d.forEach(function(m){m.removeEventListener("scroll",f),u.removeEventListener("resize",f)})}}},[e,t,n])}function s8e(e,t,n,r,o,i,a,s){var l=c.useRef(e);l.current=e;var u=c.useRef(!1);c.useEffect(function(){if(t&&r&&(!o||i)){var f=function(){u.current=!1},m=function(v){var y;l.current&&!a(((y=v.composedPath)===null||y===void 0||(y=y.call(v))===null||y===void 0?void 0:y[0])||v.target)&&!u.current&&s(!1)},h=o0(r);h.addEventListener("pointerdown",f,!0),h.addEventListener("mousedown",m,!0),h.addEventListener("contextmenu",m,!0);var p=t1(n);return p&&(p.addEventListener("mousedown",m,!0),p.addEventListener("contextmenu",m,!0)),function(){h.removeEventListener("pointerdown",f,!0),h.removeEventListener("mousedown",m,!0),h.removeEventListener("contextmenu",m,!0),p&&(p.removeEventListener("mousedown",m,!0),p.removeEventListener("contextmenu",m,!0))}}},[t,n,r,o,i]);function d(){u.current=!0}return d}var l8e=["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 c8e(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:MS,t=c.forwardRef(function(n,r){var o=n.prefixCls,i=o===void 0?"rc-trigger-popup":o,a=n.children,s=n.action,l=s===void 0?"hover":s,u=n.showAction,d=n.hideAction,f=n.popupVisible,m=n.defaultPopupVisible,h=n.onPopupVisibleChange,p=n.afterPopupVisibleChange,b=n.mouseEnterDelay,v=n.mouseLeaveDelay,y=v===void 0?.1:v,x=n.focusDelay,w=n.blurDelay,C=n.mask,S=n.maskClosable,$=S===void 0?!0:S,E=n.getPopupContainer,O=n.forceRender,P=n.autoDestroy,j=n.destroyPopupOnHide,I=n.popup,_=n.popupClassName,R=n.popupStyle,N=n.popupPlacement,A=n.builtinPlacements,M=A===void 0?{}:A,T=n.popupAlign,k=n.zIndex,D=n.stretch,L=n.getPopupClassNameFromAlign,B=n.fresh,H=n.alignPoint,F=n.onPopupClick,W=n.onPopupAlign,q=n.arrow,G=n.popupMotion,te=n.maskMotion,ee=n.popupTransitionName,z=n.popupAnimation,ne=n.maskTransitionName,X=n.maskAnimation,U=n.className,le=n.getTriggerDOMNode,se=Ht(n,l8e),ae=P||j||!1,re=c.useState(!1),fe=ue(re,2),ye=fe[0],Pe=fe[1];sn(function(){Pe(zS())},[]);var Oe=c.useRef({}),V=c.useContext(LL),J=c.useMemo(function(){return{registerSubPopup:function(nn,Tn){Oe.current[nn]=Tn,V==null||V.registerSubPopup(nn,Tn)}}},[V]),oe=kS(),de=c.useState(null),be=ue(de,2),ge=be[0],ie=be[1],he=c.useRef(null),xe=fn(function(At){he.current=At,Ag(At)&&ge!==At&&ie(At),V==null||V.registerSubPopup(oe,At)}),Re=c.useState(null),Ce=ue(Re,2),pe=Ce[0],_e=Ce[1],we=c.useRef(null),$e=fn(function(At){Ag(At)&&pe!==At&&(_e(At),we.current=At)}),ve=c.Children.only(a),me=(ve==null?void 0:ve.props)||{},Se={},De=fn(function(At){var nn,Tn,Ln=pe;return(Ln==null?void 0:Ln.contains(At))||((nn=t1(Ln))===null||nn===void 0?void 0:nn.host)===At||At===Ln||(ge==null?void 0:ge.contains(At))||((Tn=t1(ge))===null||Tn===void 0?void 0:Tn.host)===At||At===ge||Object.values(Oe.current).some(function(jn){return(jn==null?void 0:jn.contains(At))||At===jn})}),et=FL(i,G,z,ee),rt=FL(i,te,X,ne),Me=c.useState(m||!1),We=ue(Me,2),Qe=We[0],Ge=We[1],tt=f??Qe,ke=fn(function(At){f===void 0&&Ge(At)});sn(function(){Ge(f||!1)},[f]);var xt=c.useRef(tt);xt.current=tt;var Ze=c.useRef([]);Ze.current=[];var nt=fn(function(At){var nn;ke(At),((nn=Ze.current[Ze.current.length-1])!==null&&nn!==void 0?nn:tt)!==At&&(Ze.current.push(At),h==null||h(At))}),Be=c.useRef(),Le=function(){clearTimeout(Be.current)},Ie=function(nn){var Tn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;Le(),Tn===0?nt(nn):Be.current=setTimeout(function(){nt(nn)},Tn*1e3)};c.useEffect(function(){return Le},[]);var Te=c.useState(!1),Xe=ue(Te,2),lt=Xe[0],mt=Xe[1];sn(function(At){(!At||tt)&&mt(!0)},[tt]);var Ot=c.useState(null),dt=ue(Ot,2),qe=dt[0],ht=dt[1],zt=c.useState(null),Vt=ue(zt,2),Nt=Vt[0],ft=Vt[1],ot=function(nn){ft([nn.clientX,nn.clientY])},Ft=i8e(tt,ge,H&&Nt!==null?Nt:pe,N,M,T,W),Ue=ue(Ft,11),Je=Ue[0],vt=Ue[1],yt=Ue[2],Ye=Ue[3],st=Ue[4],wt=Ue[5],Kt=Ue[6],bt=Ue[7],It=Ue[8],qt=Ue[9],In=Ue[10],An=n8e(ye,l,u,d),Nn=ue(An,2),Rn=Nn[0],$n=Nn[1],Dn=Rn.has("click"),wn=$n.has("click")||$n.has("contextMenu"),St=fn(function(){lt||In()}),an=function(){xt.current&&H&&wn&&Ie(!1)};a8e(tt,pe,ge,St,an),sn(function(){St()},[Nt,N]),sn(function(){tt&&!(M!=null&&M[N])&&St()},[JSON.stringify(T)]);var Zt=c.useMemo(function(){var At=o8e(M,i,qt,H);return Q(At,L==null?void 0:L(qt))},[qt,L,M,i,H]);c.useImperativeHandle(r,function(){return{nativeElement:we.current,popupElement:he.current,forceAlign:St}});var ct=c.useState(0),je=ue(ct,2),pt=je[0],it=je[1],Ke=c.useState(0),Et=ue(Ke,2),at=Et[0],Wt=Et[1],tn=function(){if(D&&pe){var nn=pe.getBoundingClientRect();it(nn.width),Wt(nn.height)}},Ut=function(){tn(),St()},en=function(nn){mt(!1),In(),p==null||p(nn)},Rt=function(){return new Promise(function(nn){tn(),ht(function(){return nn})})};sn(function(){qe&&(In(),qe(),ht(null))},[qe]);function ze(At,nn,Tn,Ln){Se[At]=function(jn){var Yo;Ln==null||Ln(jn),Ie(nn,Tn);for(var Ei=arguments.length,To=new Array(Ei>1?Ei-1:0),Oi=1;Oi<Ei;Oi++)To[Oi-1]=arguments[Oi];(Yo=me[At])===null||Yo===void 0||Yo.call.apply(Yo,[me,jn].concat(To))}}(Dn||wn)&&(Se.onClick=function(At){var nn;xt.current&&wn?Ie(!1):!xt.current&&Dn&&(ot(At),Ie(!0));for(var Tn=arguments.length,Ln=new Array(Tn>1?Tn-1:0),jn=1;jn<Tn;jn++)Ln[jn-1]=arguments[jn];(nn=me.onClick)===null||nn===void 0||nn.call.apply(nn,[me,At].concat(Ln))});var He=s8e(tt,wn,pe,ge,C,$,De,Ie),Tt=Rn.has("hover"),Ae=$n.has("hover"),Bt,bn;Tt&&(ze("onMouseEnter",!0,b,function(At){ot(At)}),ze("onPointerEnter",!0,b,function(At){ot(At)}),Bt=function(nn){(tt||lt)&&ge!==null&&ge!==void 0&&ge.contains(nn.target)&&Ie(!0,b)},H&&(Se.onMouseMove=function(At){var nn;(nn=me.onMouseMove)===null||nn===void 0||nn.call(me,At)})),Ae&&(ze("onMouseLeave",!1,y),ze("onPointerLeave",!1,y),bn=function(){Ie(!1,y)}),Rn.has("focus")&&ze("onFocus",!0,x),$n.has("focus")&&ze("onBlur",!1,w),Rn.has("contextMenu")&&(Se.onContextMenu=function(At){var nn;xt.current&&$n.has("contextMenu")?Ie(!1):(ot(At),Ie(!0)),At.preventDefault();for(var Tn=arguments.length,Ln=new Array(Tn>1?Tn-1:0),jn=1;jn<Tn;jn++)Ln[jn-1]=arguments[jn];(nn=me.onContextMenu)===null||nn===void 0||nn.call.apply(nn,[me,At].concat(Ln))}),U&&(Se.className=Q(me.className,U));var Pn=c.useRef(!1);Pn.current||(Pn.current=O||tt||lt);var En=Y(Y({},me),Se),qn={},Fn=["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"];Fn.forEach(function(At){se[At]&&(qn[At]=function(){for(var nn,Tn=arguments.length,Ln=new Array(Tn),jn=0;jn<Tn;jn++)Ln[jn]=arguments[jn];(nn=En[At])===null||nn===void 0||nn.call.apply(nn,[En].concat(Ln)),se[At].apply(se,Ln)})});var ar=c.cloneElement(ve,Y(Y({},En),qn)),$i={x:wt,y:Kt},Ro=q?Y({},q!==!0?q:{}):null;return c.createElement(c.Fragment,null,c.createElement(Wo,{disabled:!tt,ref:$e,onResize:Ut},c.createElement(t8e,{getTriggerDOMNode:le},ar)),Pn.current&&c.createElement(LL.Provider,{value:J},c.createElement(e8e,{portal:e,ref:xe,prefixCls:i,popup:I,className:Q(_,Zt),style:R,target:pe,onMouseEnter:Bt,onMouseLeave:bn,onPointerEnter:Bt,zIndex:k,open:tt,keepDom:lt,fresh:B,onClick:F,onPointerDownCapture:He,mask:C,motion:et,maskMotion:rt,onVisibleChanged:en,onPrepare:Rt,forceRender:O,autoDestroy:ae,getPopupContainer:E,align:qt,arrow:Ro,arrowPos:$i,ready:Je,offsetX:vt,offsetY:yt,offsetR:Ye,offsetB:st,onAlign:St,stretch:D,targetWidth:pt/bt,targetHeight:at/It})))});return t}const i0=c8e(MS);var u8e=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],d8e=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"}}},f8e=function(t,n){var r=t.prefixCls;t.disabled;var o=t.visible,i=t.children,a=t.popupElement,s=t.animation,l=t.transitionName,u=t.dropdownStyle,d=t.dropdownClassName,f=t.direction,m=f===void 0?"ltr":f,h=t.placement,p=t.builtinPlacements,b=t.dropdownMatchSelectWidth,v=t.dropdownRender,y=t.dropdownAlign,x=t.getPopupContainer,w=t.empty,C=t.getTriggerDOMNode,S=t.onPopupVisibleChange,$=t.onPopupMouseEnter,E=Ht(t,u8e),O="".concat(r,"-dropdown"),P=a;v&&(P=v(a));var j=c.useMemo(function(){return p||d8e(b)},[p,b]),I=s?"".concat(O,"-").concat(s):l,_=typeof b=="number",R=c.useMemo(function(){return _?null:b===!1?"minWidth":"width"},[b,_]),N=u;_&&(N=Y(Y({},N),{},{width:b}));var A=c.useRef(null);return c.useImperativeHandle(n,function(){return{getPopupElement:function(){var T;return(T=A.current)===null||T===void 0?void 0:T.popupElement}}}),c.createElement(i0,Ee({},E,{showAction:S?["click"]:[],hideAction:S?["click"]:[],popupPlacement:h||(m==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:j,prefixCls:O,popupTransitionName:I,popup:c.createElement("div",{onMouseEnter:$},P),ref:A,stretch:R,popupAlign:y,popupVisible:o,getPopupContainer:x,popupClassName:Q(d,K({},"".concat(O,"-empty"),w)),popupStyle:N,getTriggerDOMNode:C,onPopupVisibleChange:S}),i)},m8e=c.forwardRef(f8e);function UL(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 bj(e){return typeof e<"u"&&!Number.isNaN(e)}function RJ(e,t){var n=e||{},r=n.label,o=n.value,i=n.options,a=n.groupLabel,s=r||(t?"children":"label");return{label:s,value:o||"value",options:i||"options",groupLabel:a||s}}function h8e(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.fieldNames,r=t.childrenAsData,o=[],i=RJ(n,!1),a=i.label,s=i.value,l=i.options,u=i.groupLabel;function d(f,m){Array.isArray(f)&&f.forEach(function(h){if(m||!(l in h)){var p=h[s];o.push({key:UL(h,o.length),groupOption:m,data:h,label:h[a],value:p})}else{var b=h[u];b===void 0&&r&&(b=h.label),o.push({key:UL(h,o.length),group:!0,data:h,label:b}),d(h[l],!0)}})}return d(e,!1),o}function xj(e){var t=Y({},e);return"props"in t||Object.defineProperty(t,"props",{get:function(){return ir(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),t}}),t}var p8e=function(t,n,r){if(!n||!n.length)return null;var o=!1,i=function s(l,u){var d=AY(u),f=d[0],m=d.slice(1);if(!f)return[l];var h=l.split(f);return o=o||h.length>1,h.reduce(function(p,b){return[].concat(Ne(p),Ne(s(b,m)))},[]).filter(Boolean)},a=i(t,n);return o?typeof r<"u"?a.slice(0,r):a:null},PT=c.createContext(null);function g8e(e){var t=e.visible,n=e.values;if(!t)return null;var r=50;return c.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 i=o.label,a=o.value;return["number","string"].includes(_t(i))?i:a}).join(", ")),n.length>r?", ...":null)}var v8e=["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"],y8e=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"],wj=function(t){return t==="tags"||t==="multiple"},b8e=c.forwardRef(function(e,t){var n,r=e.id,o=e.prefixCls,i=e.className,a=e.showSearch,s=e.tagRender,l=e.direction,u=e.omitDomProps,d=e.displayValues,f=e.onDisplayValuesChange,m=e.emptyOptions,h=e.notFoundContent,p=h===void 0?"Not Found":h,b=e.onClear,v=e.mode,y=e.disabled,x=e.loading,w=e.getInputElement,C=e.getRawInputElement,S=e.open,$=e.defaultOpen,E=e.onDropdownVisibleChange,O=e.activeValue,P=e.onActiveValueChange,j=e.activeDescendantId,I=e.searchValue,_=e.autoClearSearchValue,R=e.onSearch,N=e.onSearchSplit,A=e.tokenSeparators,M=e.allowClear,T=e.prefix,k=e.suffixIcon,D=e.clearIcon,L=e.OptionList,B=e.animation,H=e.transitionName,F=e.dropdownStyle,W=e.dropdownClassName,q=e.dropdownMatchSelectWidth,G=e.dropdownRender,te=e.dropdownAlign,ee=e.placement,z=e.builtinPlacements,ne=e.getPopupContainer,X=e.showAction,U=X===void 0?[]:X,le=e.onFocus,se=e.onBlur,ae=e.onKeyUp,re=e.onKeyDown,fe=e.onMouseDown,ye=Ht(e,v8e),Pe=wj(v),Oe=(a!==void 0?a:Pe)||v==="combobox",V=Y({},ye);y8e.forEach(function(ct){delete V[ct]}),u==null||u.forEach(function(ct){delete V[ct]});var J=c.useState(!1),oe=ue(J,2),de=oe[0],be=oe[1];c.useEffect(function(){be(zS())},[]);var ge=c.useRef(null),ie=c.useRef(null),he=c.useRef(null),xe=c.useRef(null),Re=c.useRef(null),Ce=c.useRef(!1),pe=$Ae(),_e=ue(pe,3),we=_e[0],$e=_e[1],ve=_e[2];c.useImperativeHandle(t,function(){var ct,je;return{focus:(ct=xe.current)===null||ct===void 0?void 0:ct.focus,blur:(je=xe.current)===null||je===void 0?void 0:je.blur,scrollTo:function(it){var Ke;return(Ke=Re.current)===null||Ke===void 0?void 0:Ke.scrollTo(it)},nativeElement:ge.current||ie.current}});var me=c.useMemo(function(){var ct;if(v!=="combobox")return I;var je=(ct=d[0])===null||ct===void 0?void 0:ct.value;return typeof je=="string"||typeof je=="number"?String(je):""},[I,v,d]),Se=v==="combobox"&&typeof w=="function"&&w()||null,De=typeof C=="function"&&C(),et=xl(ie,De==null||(n=De.props)===null||n===void 0?void 0:n.ref),rt=c.useState(!1),Me=ue(rt,2),We=Me[0],Qe=Me[1];sn(function(){Qe(!0)},[]);var Ge=kn(!1,{defaultValue:$,value:S}),tt=ue(Ge,2),ke=tt[0],xt=tt[1],Ze=We?ke:!1,nt=!p&&m;(y||nt&&Ze&&v==="combobox")&&(Ze=!1);var Be=nt?!1:Ze,Le=c.useCallback(function(ct){var je=ct!==void 0?ct:!Ze;y||(xt(je),Ze!==je&&(E==null||E(je)))},[y,Ze,xt,E]),Ie=c.useMemo(function(){return(A||[]).some(function(ct){return[`
`,`\r
`].includes(ct)})},[A]),Te=c.useContext(PT)||{},Xe=Te.maxCount,lt=Te.rawValues,mt=function(je,pt,it){if(!(Pe&&bj(Xe)&&(lt==null?void 0:lt.size)>=Xe)){var Ke=!0,Et=je;P==null||P(null);var at=p8e(je,A,bj(Xe)?Xe-lt.size:void 0),Wt=it?null:at;return v!=="combobox"&&Wt&&(Et="",N==null||N(Wt),Le(!1),Ke=!1),R&&me!==Et&&R(Et,{source:pt?"typing":"effect"}),Ke}},Ot=function(je){!je||!je.trim()||R(je,{source:"submit"})};c.useEffect(function(){!Ze&&!Pe&&v!=="combobox"&&mt("",!1,!1)},[Ze]),c.useEffect(function(){ke&&y&&xt(!1),y&&!Ce.current&&$e(!1)},[y]);var dt=EJ(),qe=ue(dt,2),ht=qe[0],zt=qe[1],Vt=c.useRef(!1),Nt=function(je){var pt=ht(),it=je.key,Ke=it==="Enter";if(Ke&&(v!=="combobox"&&je.preventDefault(),Ze||Le(!0)),zt(!!me),it==="Backspace"&&!pt&&Pe&&!me&&d.length){for(var Et=Ne(d),at=null,Wt=Et.length-1;Wt>=0;Wt-=1){var tn=Et[Wt];if(!tn.disabled){Et.splice(Wt,1),at=tn;break}}at&&f(Et,{type:"remove",values:[at]})}for(var Ut=arguments.length,en=new Array(Ut>1?Ut-1:0),Rt=1;Rt<Ut;Rt++)en[Rt-1]=arguments[Rt];if(Ze&&(!Ke||!Vt.current)){var ze;Ke&&(Vt.current=!0),(ze=Re.current)===null||ze===void 0||ze.onKeyDown.apply(ze,[je].concat(en))}re==null||re.apply(void 0,[je].concat(en))},ft=function(je){for(var pt=arguments.length,it=new Array(pt>1?pt-1:0),Ke=1;Ke<pt;Ke++)it[Ke-1]=arguments[Ke];if(Ze){var Et;(Et=Re.current)===null||Et===void 0||Et.onKeyUp.apply(Et,[je].concat(it))}je.key==="Enter"&&(Vt.current=!1),ae==null||ae.apply(void 0,[je].concat(it))},ot=function(je){var pt=d.filter(function(it){return it!==je});f(pt,{type:"remove",values:[je]})},Ft=function(){Vt.current=!1},Ue=c.useRef(!1),Je=function(){$e(!0),y||(le&&!Ue.current&&le.apply(void 0,arguments),U.includes("focus")&&Le(!0)),Ue.current=!0},vt=function(){Ce.current=!0,$e(!1,function(){Ue.current=!1,Ce.current=!1,Le(!1)}),!y&&(me&&(v==="tags"?R(me,{source:"submit"}):v==="multiple"&&R("",{source:"blur"})),se&&se.apply(void 0,arguments))},yt=[];c.useEffect(function(){return function(){yt.forEach(function(ct){return clearTimeout(ct)}),yt.splice(0,yt.length)}},[]);var Ye=function(je){var pt,it=je.target,Ke=(pt=he.current)===null||pt===void 0?void 0:pt.getPopupElement();if(Ke&&Ke.contains(it)){var Et=setTimeout(function(){var Ut=yt.indexOf(Et);if(Ut!==-1&&yt.splice(Ut,1),ve(),!de&&!Ke.contains(document.activeElement)){var en;(en=xe.current)===null||en===void 0||en.focus()}});yt.push(Et)}for(var at=arguments.length,Wt=new Array(at>1?at-1:0),tn=1;tn<at;tn++)Wt[tn-1]=arguments[tn];fe==null||fe.apply(void 0,[je].concat(Wt))},st=c.useState({}),wt=ue(st,2),Kt=wt[1];function bt(){Kt({})}var It;De&&(It=function(je){Le(je)}),EAe(function(){var ct;return[ge.current,(ct=he.current)===null||ct===void 0?void 0:ct.getPopupElement()]},Be,Le,!!De);var qt=c.useMemo(function(){return Y(Y({},e),{},{notFoundContent:p,open:Ze,triggerOpen:Be,id:r,showSearch:Oe,multiple:Pe,toggleOpen:Le})},[e,p,Be,Ze,r,Oe,Pe,Le]),In=!!k||x,An;In&&(An=c.createElement(FS,{className:Q("".concat(o,"-arrow"),K({},"".concat(o,"-arrow-loading"),x)),customizeIcon:k,customizeIconProps:{loading:x,searchValue:me,open:Ze,focused:we,showSearch:Oe}}));var Nn=function(){var je;b==null||b(),(je=xe.current)===null||je===void 0||je.focus(),f([],{type:"clear",values:d}),mt("",!1,!1)},Rn=SAe(o,Nn,d,M,D,y,me,v),$n=Rn.allowClear,Dn=Rn.clearIcon,wn=c.createElement(L,{ref:Re}),St=Q(o,i,K(K(K(K(K(K(K(K(K(K({},"".concat(o,"-focused"),we),"".concat(o,"-multiple"),Pe),"".concat(o,"-single"),!Pe),"".concat(o,"-allow-clear"),M),"".concat(o,"-show-arrow"),In),"".concat(o,"-disabled"),y),"".concat(o,"-loading"),x),"".concat(o,"-open"),Ze),"".concat(o,"-customize-input"),Se),"".concat(o,"-show-search"),Oe)),an=c.createElement(m8e,{ref:he,disabled:y,prefixCls:o,visible:Be,popupElement:wn,animation:B,transitionName:H,dropdownStyle:F,dropdownClassName:W,direction:l,dropdownMatchSelectWidth:q,dropdownRender:G,dropdownAlign:te,placement:ee,builtinPlacements:z,getPopupContainer:ne,empty:m,getTriggerDOMNode:function(je){return ie.current||je},onPopupVisibleChange:It,onPopupMouseEnter:bt},De?c.cloneElement(De,{ref:et}):c.createElement(YAe,Ee({},e,{domRef:ie,prefixCls:o,inputElement:Se,ref:xe,id:r,prefix:T,showSearch:Oe,autoClearSearchValue:_,mode:v,activeDescendantId:j,tagRender:s,values:d,open:Ze,onToggleOpen:Le,activeValue:O,searchValue:me,onSearch:mt,onSearchSubmit:Ot,onRemove:ot,tokenWithEnter:Ie,onInputBlur:Ft}))),Zt;return De?Zt=an:Zt=c.createElement("div",Ee({className:St},V,{ref:ge,onMouseDown:Ye,onKeyDown:Nt,onKeyUp:ft,onFocus:Je,onBlur:vt}),c.createElement(g8e,{visible:we&&!Ze,values:d}),an,An,$n&&Dn),c.createElement($J.Provider,{value:qt},Zt)}),jT=function(){return null};jT.isSelectOptGroup=!0;var IT=function(){return null};IT.isSelectOption=!0;var TJ=c.forwardRef(function(e,t){var n=e.height,r=e.offsetY,o=e.offsetX,i=e.children,a=e.prefixCls,s=e.onInnerResize,l=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=Y(Y({},m),{},K(K(K(K(K({transform:"translateY(".concat(r,"px)")},u?"marginRight":"marginLeft",-o),"position","absolute"),"left",0),"right",0),"top",0))),c.createElement("div",{style:f},c.createElement(Wo,{onResize:function(p){var b=p.offsetHeight;b&&s&&s()}},c.createElement("div",Ee({style:m,className:Q(K({},"".concat(a,"-holder-inner"),a)),ref:t},l),i,d)))});TJ.displayName="Filler";function x8e(e){var t=e.children,n=e.setRef,r=c.useCallback(function(o){n(o)},[]);return c.cloneElement(t,{ref:r})}function w8e(e,t,n,r,o,i,a,s){var l=s.getKey;return e.slice(t,n+1).map(function(u,d){var f=t+d,m=a(u,f,{style:{width:r},offsetX:o}),h=l(u);return c.createElement(x8e,{key:h,setRef:function(b){return i(u,b)}},m)})}function S8e(e,t,n){var r=e.length,o=t.length,i,a;if(r===0&&o===0)return null;r<o?(i=e,a=t):(i=t,a=e);var s={__EMPTY_ITEM__:!0};function l(p){return p!==void 0?n(p):s}for(var u=null,d=Math.abs(r-o)!==1,f=0;f<a.length;f+=1){var m=l(i[f]),h=l(a[f]);if(m!==h){u=f,d=d||m!==l(a[f+1]);break}}return u===null?null:{index:u,multiple:d}}function C8e(e,t,n){var r=c.useState(e),o=ue(r,2),i=o[0],a=o[1],s=c.useState(null),l=ue(s,2),u=l[0],d=l[1];return c.useEffect(function(){var f=S8e(i||[],e||[],t);(f==null?void 0:f.index)!==void 0&&d(e[f.index]),a(e)},[e]),[u]}var KL=(typeof navigator>"u"?"undefined":_t(navigator))==="object"&&/Firefox/i.test(navigator.userAgent);const MJ=function(e,t,n,r){var o=c.useRef(!1),i=c.useRef(null);function a(){clearTimeout(i.current),o.current=!0,i.current=setTimeout(function(){o.current=!1},50)}var s=c.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(l,u){var d=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,f=l?u<0&&s.current.left||u>0&&s.current.right:u<0&&s.current.top||u>0&&s.current.bottom;return d&&f?(clearTimeout(i.current),o.current=!1):(!f||o.current)&&a(),!o.current&&f}};function $8e(e,t,n,r,o,i,a){var s=c.useRef(0),l=c.useRef(null),u=c.useRef(null),d=c.useRef(!1),f=MJ(t,n,r,o);function m(x,w){if(ln.cancel(l.current),!f(!1,w)){var C=x;if(!C._virtualHandled)C._virtualHandled=!0;else return;s.current+=w,u.current=w,KL||C.preventDefault(),l.current=ln(function(){var S=d.current?10:1;a(s.current*S,!1),s.current=0})}}function h(x,w){a(w,!0),KL||x.preventDefault()}var p=c.useRef(null),b=c.useRef(null);function v(x){if(e){ln.cancel(b.current),b.current=ln(function(){p.current=null},2);var w=x.deltaX,C=x.deltaY,S=x.shiftKey,$=w,E=C;(p.current==="sx"||!p.current&&S&&C&&!w)&&($=C,E=0,p.current="sx");var O=Math.abs($),P=Math.abs(E);p.current===null&&(p.current=i&&O>P?"x":"y"),p.current==="y"?m(x,E):h(x,$)}}function y(x){e&&(d.current=x.detail===u.current)}return[v,y]}function E8e(e,t,n,r){var o=c.useMemo(function(){return[new Map,[]]},[e,n.id,r]),i=ue(o,2),a=i[0],s=i[1],l=function(d){var f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:d,m=a.get(d),h=a.get(f);if(m===void 0||h===void 0)for(var p=e.length,b=s.length;b<p;b+=1){var v,y=e[b],x=t(y);a.set(x,b);var w=(v=n.get(x))!==null&&v!==void 0?v:r;if(s[b]=(s[b-1]||0)+w,x===d&&(m=b),x===f&&(h=b),m!==void 0&&h!==void 0)break}return{top:s[m-1]||0,bottom:s[h]}};return l}var O8e=function(){function e(){lr(this,e),K(this,"maps",void 0),K(this,"id",0),K(this,"diffRecords",new Map),this.maps=Object.create(null)}return cr(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 qL(e){var t=parseFloat(e);return isNaN(t)?0:t}function P8e(e,t,n){var r=c.useState(0),o=ue(r,2),i=o[0],a=o[1],s=c.useRef(new Map),l=c.useRef(new O8e),u=c.useRef(0);function d(){u.current+=1}function f(){var h=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;d();var p=function(){var y=!1;s.current.forEach(function(x,w){if(x&&x.offsetParent){var C=x.offsetHeight,S=getComputedStyle(x),$=S.marginTop,E=S.marginBottom,O=qL($),P=qL(E),j=C+O+P;l.current.get(w)!==j&&(l.current.set(w,j),y=!0)}}),y&&a(function(x){return x+1})};if(h)p();else{u.current+=1;var b=u.current;Promise.resolve().then(function(){b===u.current&&p()})}}function m(h,p){var b=e(h);s.current.get(b),p?(s.current.set(b,p),f()):s.current.delete(b)}return c.useEffect(function(){return d},[]),[m,f,l.current,i]}var GL=14/15;function j8e(e,t,n){var r=c.useRef(!1),o=c.useRef(0),i=c.useRef(0),a=c.useRef(null),s=c.useRef(null),l,u=function(h){if(r.current){var p=Math.ceil(h.touches[0].pageX),b=Math.ceil(h.touches[0].pageY),v=o.current-p,y=i.current-b,x=Math.abs(v)>Math.abs(y);x?o.current=p:i.current=b;var w=n(x,x?v:y,!1,h);w&&h.preventDefault(),clearInterval(s.current),w&&(s.current=setInterval(function(){x?v*=GL:y*=GL;var C=Math.floor(x?v:y);(!n(x,C,!0)||Math.abs(C)<=.1)&&clearInterval(s.current)},16))}},d=function(){r.current=!1,l()},f=function(h){l(),h.touches.length===1&&!r.current&&(r.current=!0,o.current=Math.ceil(h.touches[0].pageX),i.current=Math.ceil(h.touches[0].pageY),a.current=h.target,a.current.addEventListener("touchmove",u,{passive:!1}),a.current.addEventListener("touchend",d,{passive:!0}))};l=function(){a.current&&(a.current.removeEventListener("touchmove",u),a.current.removeEventListener("touchend",d))},sn(function(){return e&&t.current.addEventListener("touchstart",f,{passive:!0}),function(){var m;(m=t.current)===null||m===void 0||m.removeEventListener("touchstart",f),l(),clearInterval(s.current)}},[e])}function XL(e){return Math.floor(Math.pow(e,.5))}function Sj(e,t){var n="touches"in e?e.touches[0]:e;return n[t?"pageX":"pageY"]-window[t?"scrollX":"scrollY"]}function I8e(e,t,n){c.useEffect(function(){var r=t.current;if(e&&r){var o=!1,i,a,s=function(){ln.cancel(i)},l=function m(){s(),i=ln(function(){n(a),m()})},u=function(){o=!1,s()},d=function(h){if(!(h.target.draggable||h.button!==0)){var p=h;p._virtualHandled||(p._virtualHandled=!0,o=!0)}},f=function(h){if(o){var p=Sj(h,!1),b=r.getBoundingClientRect(),v=b.top,y=b.bottom;if(p<=v){var x=v-p;a=-XL(x),l()}else if(p>=y){var w=p-y;a=XL(w),l()}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 _8e=10;function N8e(e,t,n,r,o,i,a,s){var l=c.useRef(),u=c.useState(null),d=ue(u,2),f=d[0],m=d[1];return sn(function(){if(f&&f.times<_8e){if(!e.current){m(function(D){return Y({},D)});return}i();var h=f.targetAlign,p=f.originAlign,b=f.index,v=f.offset,y=e.current.clientHeight,x=!1,w=h,C=null;if(y){for(var S=h||p,$=0,E=0,O=0,P=Math.min(t.length-1,b),j=0;j<=P;j+=1){var I=o(t[j]);E=$;var _=n.get(I);O=E+(_===void 0?r:_),$=O}for(var R=S==="top"?v:y-v,N=P;N>=0;N-=1){var A=o(t[N]),M=n.get(A);if(M===void 0){x=!0;break}if(R-=M,R<=0)break}switch(S){case"top":C=E-v;break;case"bottom":C=O-y+v;break;default:{var T=e.current.scrollTop,k=T+y;E<T?w="top":O>k&&(w="bottom")}}C!==null&&a(C),C!==f.lastTop&&(x=!0)}x&&m(Y(Y({},f),{},{times:f.times+1,targetAlign:w,lastTop:C}))}},[f,e.current]),function(h){if(h==null){s();return}if(ln.cancel(l.current),typeof h=="number")a(h);else if(h&&_t(h)==="object"){var p,b=h.align;"index"in h?p=h.index:p=t.findIndex(function(x){return o(x)===h.key});var v=h.offset,y=v===void 0?0:v;m({times:0,index:p,offset:y,originAlign:b})}}}var YL=c.forwardRef(function(e,t){var n=e.prefixCls,r=e.rtl,o=e.scrollOffset,i=e.scrollRange,a=e.onStartMove,s=e.onStopMove,l=e.onScroll,u=e.horizontal,d=e.spinSize,f=e.containerSize,m=e.style,h=e.thumbStyle,p=e.showScrollBar,b=c.useState(!1),v=ue(b,2),y=v[0],x=v[1],w=c.useState(null),C=ue(w,2),S=C[0],$=C[1],E=c.useState(null),O=ue(E,2),P=O[0],j=O[1],I=!r,_=c.useRef(),R=c.useRef(),N=c.useState(p),A=ue(N,2),M=A[0],T=A[1],k=c.useRef(),D=function(){p===!0||p===!1||(clearTimeout(k.current),T(!0),k.current=setTimeout(function(){T(!1)},3e3))},L=i-f||0,B=f-d||0,H=c.useMemo(function(){if(o===0||L===0)return 0;var X=o/L;return X*B},[o,L,B]),F=function(U){U.stopPropagation(),U.preventDefault()},W=c.useRef({top:H,dragging:y,pageY:S,startTop:P});W.current={top:H,dragging:y,pageY:S,startTop:P};var q=function(U){x(!0),$(Sj(U,u)),j(W.current.top),a(),U.stopPropagation(),U.preventDefault()};c.useEffect(function(){var X=function(ae){ae.preventDefault()},U=_.current,le=R.current;return U.addEventListener("touchstart",X,{passive:!1}),le.addEventListener("touchstart",q,{passive:!1}),function(){U.removeEventListener("touchstart",X),le.removeEventListener("touchstart",q)}},[]);var G=c.useRef();G.current=L;var te=c.useRef();te.current=B,c.useEffect(function(){if(y){var X,U=function(ae){var re=W.current,fe=re.dragging,ye=re.pageY,Pe=re.startTop;ln.cancel(X);var Oe=_.current.getBoundingClientRect(),V=f/(u?Oe.width:Oe.height);if(fe){var J=(Sj(ae,u)-ye)*V,oe=Pe;!I&&u?oe-=J:oe+=J;var de=G.current,be=te.current,ge=be?oe/be:0,ie=Math.ceil(ge*de);ie=Math.max(ie,0),ie=Math.min(ie,de),X=ln(function(){l(ie,u)})}},le=function(){x(!1),s()};return window.addEventListener("mousemove",U,{passive:!0}),window.addEventListener("touchmove",U,{passive:!0}),window.addEventListener("mouseup",le,{passive:!0}),window.addEventListener("touchend",le,{passive:!0}),function(){window.removeEventListener("mousemove",U),window.removeEventListener("touchmove",U),window.removeEventListener("mouseup",le),window.removeEventListener("touchend",le),ln.cancel(X)}}},[y]),c.useEffect(function(){return D(),function(){clearTimeout(k.current)}},[o]),c.useImperativeHandle(t,function(){return{delayHidden:D}});var ee="".concat(n,"-scrollbar"),z={position:"absolute",visibility:M?null:"hidden"},ne={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(z,{height:8,left:0,right:0,bottom:0}),Object.assign(ne,K({height:"100%",width:d},I?"left":"right",H))):(Object.assign(z,K({width:8,top:0,bottom:0},I?"right":"left",0)),Object.assign(ne,{width:"100%",height:d,top:H})),c.createElement("div",{ref:_,className:Q(ee,K(K(K({},"".concat(ee,"-horizontal"),u),"".concat(ee,"-vertical"),!u),"".concat(ee,"-visible"),M)),style:Y(Y({},z),m),onMouseDown:F,onMouseMove:D},c.createElement("div",{ref:R,className:Q("".concat(ee,"-thumb"),K({},"".concat(ee,"-thumb-moving"),y)),style:Y(Y({},ne),h),onMouseDown:q}))}),R8e=20;function ZL(){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,R8e),Math.floor(n)}var T8e=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles","showScrollBar"],M8e=[],k8e={overflowY:"auto",overflowAnchor:"none"};function A8e(e,t){var n=e.prefixCls,r=n===void 0?"rc-virtual-list":n,o=e.className,i=e.height,a=e.itemHeight,s=e.fullHeight,l=s===void 0?!0:s,u=e.style,d=e.data,f=e.children,m=e.itemKey,h=e.virtual,p=e.direction,b=e.scrollWidth,v=e.component,y=v===void 0?"div":v,x=e.onScroll,w=e.onVirtualScroll,C=e.onVisibleChange,S=e.innerProps,$=e.extraRender,E=e.styles,O=e.showScrollBar,P=O===void 0?"optional":O,j=Ht(e,T8e),I=c.useCallback(function(Ue){return typeof m=="function"?m(Ue):Ue==null?void 0:Ue[m]},[m]),_=P8e(I),R=ue(_,4),N=R[0],A=R[1],M=R[2],T=R[3],k=!!(h!==!1&&i&&a),D=c.useMemo(function(){return Object.values(M.maps).reduce(function(Ue,Je){return Ue+Je},0)},[M.id,M.maps]),L=k&&d&&(Math.max(a*d.length,D)>i||!!b),B=p==="rtl",H=Q(r,K({},"".concat(r,"-rtl"),B),o),F=d||M8e,W=c.useRef(),q=c.useRef(),G=c.useRef(),te=c.useState(0),ee=ue(te,2),z=ee[0],ne=ee[1],X=c.useState(0),U=ue(X,2),le=U[0],se=U[1],ae=c.useState(!1),re=ue(ae,2),fe=re[0],ye=re[1],Pe=function(){ye(!0)},Oe=function(){ye(!1)},V={getKey:I};function J(Ue){ne(function(Je){var vt;typeof Ue=="function"?vt=Ue(Je):vt=Ue;var yt=Qe(vt);return W.current.scrollTop=yt,yt})}var oe=c.useRef({start:0,end:F.length}),de=c.useRef(),be=C8e(F,I),ge=ue(be,1),ie=ge[0];de.current=ie;var he=c.useMemo(function(){if(!k)return{scrollHeight:void 0,start:0,end:F.length-1,offset:void 0};if(!L){var Ue;return{scrollHeight:((Ue=q.current)===null||Ue===void 0?void 0:Ue.offsetHeight)||0,start:0,end:F.length-1,offset:void 0}}for(var Je=0,vt,yt,Ye,st=F.length,wt=0;wt<st;wt+=1){var Kt=F[wt],bt=I(Kt),It=M.get(bt),qt=Je+(It===void 0?a:It);qt>=z&&vt===void 0&&(vt=wt,yt=Je),qt>z+i&&Ye===void 0&&(Ye=wt),Je=qt}return vt===void 0&&(vt=0,yt=0,Ye=Math.ceil(i/a)),Ye===void 0&&(Ye=F.length-1),Ye=Math.min(Ye+1,F.length-1),{scrollHeight:Je,start:vt,end:Ye,offset:yt}},[L,k,z,F,T,i]),xe=he.scrollHeight,Re=he.start,Ce=he.end,pe=he.offset;oe.current.start=Re,oe.current.end=Ce,c.useLayoutEffect(function(){var Ue=M.getRecord();if(Ue.size===1){var Je=Array.from(Ue.keys())[0],vt=Ue.get(Je),yt=F[Re];if(yt&&vt===void 0){var Ye=I(yt);if(Ye===Je){var st=M.get(Je),wt=st-a;J(function(Kt){return Kt+wt})}}}M.resetRecord()},[xe]);var _e=c.useState({width:0,height:i}),we=ue(_e,2),$e=we[0],ve=we[1],me=function(Je){ve({width:Je.offsetWidth,height:Je.offsetHeight})},Se=c.useRef(),De=c.useRef(),et=c.useMemo(function(){return ZL($e.width,b)},[$e.width,b]),rt=c.useMemo(function(){return ZL($e.height,xe)},[$e.height,xe]),Me=xe-i,We=c.useRef(Me);We.current=Me;function Qe(Ue){var Je=Ue;return Number.isNaN(We.current)||(Je=Math.min(Je,We.current)),Je=Math.max(Je,0),Je}var Ge=z<=0,tt=z>=Me,ke=le<=0,xt=le>=b,Ze=MJ(Ge,tt,ke,xt),nt=function(){return{x:B?-le:le,y:z}},Be=c.useRef(nt()),Le=fn(function(Ue){if(w){var Je=Y(Y({},nt()),Ue);(Be.current.x!==Je.x||Be.current.y!==Je.y)&&(w(Je),Be.current=Je)}});function Ie(Ue,Je){var vt=Ue;Je?(Fi.flushSync(function(){se(vt)}),Le()):J(vt)}function Te(Ue){var Je=Ue.currentTarget.scrollTop;Je!==z&&J(Je),x==null||x(Ue),Le()}var Xe=function(Je){var vt=Je,yt=b?b-$e.width:0;return vt=Math.max(vt,0),vt=Math.min(vt,yt),vt},lt=fn(function(Ue,Je){Je?(Fi.flushSync(function(){se(function(vt){var yt=vt+(B?-Ue:Ue);return Xe(yt)})}),Le()):J(function(vt){var yt=vt+Ue;return yt})}),mt=$8e(k,Ge,tt,ke,xt,!!b,lt),Ot=ue(mt,2),dt=Ot[0],qe=Ot[1];j8e(k,W,function(Ue,Je,vt,yt){var Ye=yt;return Ze(Ue,Je,vt)?!1:!Ye||!Ye._virtualHandled?(Ye&&(Ye._virtualHandled=!0),dt({preventDefault:function(){},deltaX:Ue?Je:0,deltaY:Ue?0:Je}),!0):!1}),I8e(L,W,function(Ue){J(function(Je){return Je+Ue})}),sn(function(){function Ue(vt){var yt=Ge&&vt.detail<0,Ye=tt&&vt.detail>0;k&&!yt&&!Ye&&vt.preventDefault()}var Je=W.current;return Je.addEventListener("wheel",dt,{passive:!1}),Je.addEventListener("DOMMouseScroll",qe,{passive:!0}),Je.addEventListener("MozMousePixelScroll",Ue,{passive:!1}),function(){Je.removeEventListener("wheel",dt),Je.removeEventListener("DOMMouseScroll",qe),Je.removeEventListener("MozMousePixelScroll",Ue)}},[k,Ge,tt]),sn(function(){if(b){var Ue=Xe(le);se(Ue),Le({x:Ue})}},[$e.width,b]);var ht=function(){var Je,vt;(Je=Se.current)===null||Je===void 0||Je.delayHidden(),(vt=De.current)===null||vt===void 0||vt.delayHidden()},zt=N8e(W,F,M,a,I,function(){return A(!0)},J,ht);c.useImperativeHandle(t,function(){return{nativeElement:G.current,getScrollInfo:nt,scrollTo:function(Je){function vt(yt){return yt&&_t(yt)==="object"&&("left"in yt||"top"in yt)}vt(Je)?(Je.left!==void 0&&se(Xe(Je.left)),zt(Je.top)):zt(Je)}}}),sn(function(){if(C){var Ue=F.slice(Re,Ce+1);C(Ue,F)}},[Re,Ce,F]);var Vt=E8e(F,I,M,a),Nt=$==null?void 0:$({start:Re,end:Ce,virtual:L,offsetX:le,offsetY:pe,rtl:B,getSize:Vt}),ft=w8e(F,Re,Ce,b,le,N,f,V),ot=null;i&&(ot=Y(K({},l?"height":"maxHeight",i),k8e),k&&(ot.overflowY="hidden",b&&(ot.overflowX="hidden"),fe&&(ot.pointerEvents="none")));var Ft={};return B&&(Ft.dir="rtl"),c.createElement("div",Ee({ref:G,style:Y(Y({},u),{},{position:"relative"}),className:H},Ft,j),c.createElement(Wo,{onResize:me},c.createElement(y,{className:"".concat(r,"-holder"),style:ot,ref:W,onScroll:Te,onMouseEnter:ht},c.createElement(TJ,{prefixCls:r,height:xe,offsetX:le,offsetY:pe,scrollWidth:b,onInnerResize:A,ref:q,innerProps:S,rtl:B,extra:Nt},ft))),L&&xe>i&&c.createElement(YL,{ref:Se,prefixCls:r,scrollOffset:z,scrollRange:xe,rtl:B,onScroll:Ie,onStartMove:Pe,onStopMove:Oe,spinSize:rt,containerSize:$e.height,style:E==null?void 0:E.verticalScrollBar,thumbStyle:E==null?void 0:E.verticalScrollBarThumb,showScrollBar:P}),L&&b>$e.width&&c.createElement(YL,{ref:De,prefixCls:r,scrollOffset:le,scrollRange:b,rtl:B,onScroll:Ie,onStartMove:Pe,onStopMove:Oe,spinSize:et,containerSize:$e.width,horizontal:!0,style:E==null?void 0:E.horizontalScrollBar,thumbStyle:E==null?void 0:E.horizontalScrollBarThumb,showScrollBar:P}))}var BS=c.forwardRef(A8e);BS.displayName="List";function D8e(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var L8e=["disabled","title","children","style","className"];function JL(e){return typeof e=="string"||typeof e=="number"}var z8e=function(t,n){var r=CAe(),o=r.prefixCls,i=r.id,a=r.open,s=r.multiple,l=r.mode,u=r.searchValue,d=r.toggleOpen,f=r.notFoundContent,m=r.onPopupScroll,h=c.useContext(PT),p=h.maxCount,b=h.flattenOptions,v=h.onActiveValue,y=h.defaultActiveFirstOption,x=h.onSelect,w=h.menuItemSelectedIcon,C=h.rawValues,S=h.fieldNames,$=h.virtual,E=h.direction,O=h.listHeight,P=h.listItemHeight,j=h.optionRender,I="".concat(o,"-item"),_=qd(function(){return b},[a,b],function(X,U){return U[0]&&X[1]!==U[1]}),R=c.useRef(null),N=c.useMemo(function(){return s&&bj(p)&&(C==null?void 0:C.size)>=p},[s,p,C==null?void 0:C.size]),A=function(U){U.preventDefault()},M=function(U){var le;(le=R.current)===null||le===void 0||le.scrollTo(typeof U=="number"?{index:U}:U)},T=c.useCallback(function(X){return l==="combobox"?!1:C.has(X)},[l,Ne(C).toString(),C.size]),k=function(U){for(var le=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,se=_.length,ae=0;ae<se;ae+=1){var re=(U+ae*le+se)%se,fe=_[re]||{},ye=fe.group,Pe=fe.data;if(!ye&&!(Pe!=null&&Pe.disabled)&&(T(Pe.value)||!N))return re}return-1},D=c.useState(function(){return k(0)}),L=ue(D,2),B=L[0],H=L[1],F=function(U){var le=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;H(U);var se={source:le?"keyboard":"mouse"},ae=_[U];if(!ae){v(null,-1,se);return}v(ae.value,U,se)};c.useEffect(function(){F(y!==!1?k(0):-1)},[_.length,u]);var W=c.useCallback(function(X){return l==="combobox"?String(X).toLowerCase()===u.toLowerCase():C.has(X)},[l,u,Ne(C).toString(),C.size]);c.useEffect(function(){var X=setTimeout(function(){if(!s&&a&&C.size===1){var le=Array.from(C)[0],se=_.findIndex(function(ae){var re=ae.data;return u?String(re.value).startsWith(u):re.value===le});se!==-1&&(F(se),M(se))}});if(a){var U;(U=R.current)===null||U===void 0||U.scrollTo(void 0)}return function(){return clearTimeout(X)}},[a,u]);var q=function(U){U!==void 0&&x(U,{selected:!C.has(U)}),s||d(!1)};if(c.useImperativeHandle(n,function(){return{onKeyDown:function(U){var le=U.which,se=U.ctrlKey;switch(le){case jt.N:case jt.P:case jt.UP:case jt.DOWN:{var ae=0;if(le===jt.UP?ae=-1:le===jt.DOWN?ae=1:D8e()&&se&&(le===jt.N?ae=1:le===jt.P&&(ae=-1)),ae!==0){var re=k(B+ae,ae);M(re),F(re,!0)}break}case jt.TAB:case jt.ENTER:{var fe,ye=_[B];ye&&!(ye!=null&&(fe=ye.data)!==null&&fe!==void 0&&fe.disabled)&&!N?q(ye.value):q(void 0),a&&U.preventDefault();break}case jt.ESC:d(!1),a&&U.stopPropagation()}},onKeyUp:function(){},scrollTo:function(U){M(U)}}}),_.length===0)return c.createElement("div",{role:"listbox",id:"".concat(i,"_list"),className:"".concat(I,"-empty"),onMouseDown:A},f);var G=Object.keys(S).map(function(X){return S[X]}),te=function(U){return U.label};function ee(X,U){var le=X.group;return{role:le?"presentation":"option",id:"".concat(i,"_list_").concat(U)}}var z=function(U){var le=_[U];if(!le)return null;var se=le.data||{},ae=se.value,re=le.group,fe=Pr(se,!0),ye=te(le);return le?c.createElement("div",Ee({"aria-label":typeof ye=="string"&&!re?ye:null},fe,{key:U},ee(le,U),{"aria-selected":W(ae)}),ae):null},ne={role:"listbox",id:"".concat(i,"_list")};return c.createElement(c.Fragment,null,$&&c.createElement("div",Ee({},ne,{style:{height:0,width:0,overflow:"hidden"}}),z(B-1),z(B),z(B+1)),c.createElement(BS,{itemKey:"key",ref:R,data:_,height:O,itemHeight:P,fullHeight:!1,onMouseDown:A,onScroll:m,virtual:$,direction:E,innerProps:$?null:ne},function(X,U){var le=X.group,se=X.groupOption,ae=X.data,re=X.label,fe=X.value,ye=ae.key;if(le){var Pe,Oe=(Pe=ae.title)!==null&&Pe!==void 0?Pe:JL(re)?re.toString():void 0;return c.createElement("div",{className:Q(I,"".concat(I,"-group"),ae.className),title:Oe},re!==void 0?re:ye)}var V=ae.disabled,J=ae.title;ae.children;var oe=ae.style,de=ae.className,be=Ht(ae,L8e),ge=Xn(be,G),ie=T(fe),he=V||!ie&&N,xe="".concat(I,"-option"),Re=Q(I,xe,de,K(K(K(K({},"".concat(xe,"-grouped"),se),"".concat(xe,"-active"),B===U&&!he),"".concat(xe,"-disabled"),he),"".concat(xe,"-selected"),ie)),Ce=te(X),pe=!w||typeof w=="function"||ie,_e=typeof Ce=="number"?Ce:Ce||fe,we=JL(_e)?_e.toString():void 0;return J!==void 0&&(we=J),c.createElement("div",Ee({},Pr(ge),$?{}:ee(X,U),{"aria-selected":W(fe),className:Re,title:we,onMouseMove:function(){B===U||he||F(U)},onClick:function(){he||q(fe)},style:oe}),c.createElement("div",{className:"".concat(xe,"-content")},typeof j=="function"?j(X,{index:U}):_e),c.isValidElement(w)||ie,pe&&c.createElement(FS,{className:"".concat(I,"-option-state"),customizeIcon:w,customizeIconProps:{value:fe,disabled:he,isSelected:ie}},ie?"✓":null))}))},F8e=c.forwardRef(z8e);const B8e=function(e,t){var n=c.useRef({values:new Map,options:new Map}),r=c.useMemo(function(){var i=n.current,a=i.values,s=i.options,l=e.map(function(f){if(f.label===void 0){var m;return Y(Y({},f),{},{label:(m=a.get(f.value))===null||m===void 0?void 0:m.label})}return f}),u=new Map,d=new Map;return l.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,l},[e,t]),o=c.useCallback(function(i){return t.get(i)||n.current.options.get(i)},[t]);return[r,o]};function p2(e,t){return _J(e).join("").toUpperCase().includes(t)}const H8e=function(e,t,n,r,o){return c.useMemo(function(){if(!n||r===!1)return e;var i=t.options,a=t.label,s=t.value,l=[],u=typeof r=="function",d=n.toUpperCase(),f=u?r:function(h,p){return o?p2(p[o],d):p[i]?p2(p[a!=="children"?a:"label"],d):p2(p[s],d)},m=u?function(h){return xj(h)}:function(h){return h};return e.forEach(function(h){if(h[i]){var p=f(n,m(h));if(p)l.push(h);else{var b=h[i].filter(function(v){return f(n,m(v))});b.length&&l.push(Y(Y({},h),{},K({},i,b)))}return}f(n,m(h))&&l.push(h)}),l},[e,r,o,n,t])};var QL=0,V8e=Uo();function W8e(){var e;return V8e?(e=QL,QL+=1):e="TEST_OR_SSR",e}function U8e(e){var t=c.useState(),n=ue(t,2),r=n[0],o=n[1];return c.useEffect(function(){o("rc_select_".concat(W8e()))},[]),e||r}var K8e=["children","value"],q8e=["children"];function G8e(e){var t=e,n=t.key,r=t.props,o=r.children,i=r.value,a=Ht(r,K8e);return Y({key:n,value:i!==void 0?i:n,children:o},a)}function kJ(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return ii(e).map(function(n,r){if(!c.isValidElement(n)||!n.type)return null;var o=n,i=o.type.isSelectOptGroup,a=o.key,s=o.props,l=s.children,u=Ht(s,q8e);return t||!i?G8e(n):Y(Y({key:"__RC_SELECT_GRP__".concat(a===null?r:a,"__"),label:a},u),{},{options:kJ(l)})}).filter(function(n){return n})}var X8e=function(t,n,r,o,i){return c.useMemo(function(){var a=t,s=!t;s&&(a=kJ(n));var l=new Map,u=new Map,d=function(h,p,b){b&&typeof b=="string"&&h.set(p[b],p)},f=function m(h){for(var p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,b=0;b<h.length;b+=1){var v=h[b];!v[r.options]||p?(l.set(v[r.value],v),d(u,v,r.label),d(u,v,o),d(u,v,i)):m(v[r.options],!0)}};return f(a),{options:a,valueOptions:l,labelOptions:u}},[t,n,r,o,i])};function ez(e){var t=c.useRef();t.current=e;var n=c.useCallback(function(){return t.current.apply(t,arguments)},[]);return n}var Y8e=["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"],Z8e=["inputValue"];function J8e(e){return!e||_t(e)!=="object"}var Q8e=c.forwardRef(function(e,t){var n=e.id,r=e.mode,o=e.prefixCls,i=o===void 0?"rc-select":o,a=e.backfill,s=e.fieldNames,l=e.inputValue,u=e.searchValue,d=e.onSearch,f=e.autoClearSearchValue,m=f===void 0?!0:f,h=e.onSelect,p=e.onDeselect,b=e.dropdownMatchSelectWidth,v=b===void 0?!0:b,y=e.filterOption,x=e.filterSort,w=e.optionFilterProp,C=e.optionLabelProp,S=e.options,$=e.optionRender,E=e.children,O=e.defaultActiveFirstOption,P=e.menuItemSelectedIcon,j=e.virtual,I=e.direction,_=e.listHeight,R=_===void 0?200:_,N=e.listItemHeight,A=N===void 0?20:N,M=e.labelRender,T=e.value,k=e.defaultValue,D=e.labelInValue,L=e.onChange,B=e.maxCount,H=Ht(e,Y8e),F=U8e(n),W=wj(r),q=!!(!S&&E),G=c.useMemo(function(){return y===void 0&&r==="combobox"?!1:y},[y,r]),te=c.useMemo(function(){return RJ(s,q)},[JSON.stringify(s),q]),ee=kn("",{value:u!==void 0?u:l,postState:function(Ie){return Ie||""}}),z=ue(ee,2),ne=z[0],X=z[1],U=X8e(S,E,te,w,C),le=U.valueOptions,se=U.labelOptions,ae=U.options,re=c.useCallback(function(Le){var Ie=_J(Le);return Ie.map(function(Te){var Xe,lt,mt,Ot,dt;if(J8e(Te))Xe=Te;else{var qe;mt=Te.key,lt=Te.label,Xe=(qe=Te.value)!==null&&qe!==void 0?qe:mt}var ht=le.get(Xe);if(ht){var zt;lt===void 0&&(lt=ht==null?void 0:ht[C||te.label]),mt===void 0&&(mt=(zt=ht==null?void 0:ht.key)!==null&&zt!==void 0?zt:Xe),Ot=ht==null?void 0:ht.disabled,dt=ht==null?void 0:ht.title}return{label:lt,value:Xe,key:mt,disabled:Ot,title:dt}})},[te,C,le]),fe=kn(k,{value:T}),ye=ue(fe,2),Pe=ye[0],Oe=ye[1],V=c.useMemo(function(){var Le,Ie=W&&Pe===null?[]:Pe,Te=re(Ie);return r==="combobox"&&WAe((Le=Te[0])===null||Le===void 0?void 0:Le.value)?[]:Te},[Pe,re,r,W]),J=B8e(V,le),oe=ue(J,2),de=oe[0],be=oe[1],ge=c.useMemo(function(){if(!r&&de.length===1){var Le=de[0];if(Le.value===null&&(Le.label===null||Le.label===void 0))return[]}return de.map(function(Ie){var Te;return Y(Y({},Ie),{},{label:(Te=typeof M=="function"?M(Ie):Ie.label)!==null&&Te!==void 0?Te:Ie.value})})},[r,de,M]),ie=c.useMemo(function(){return new Set(de.map(function(Le){return Le.value}))},[de]);c.useEffect(function(){if(r==="combobox"){var Le,Ie=(Le=de[0])===null||Le===void 0?void 0:Le.value;X(VAe(Ie)?String(Ie):"")}},[de]);var he=ez(function(Le,Ie){var Te=Ie??Le;return K(K({},te.value,Le),te.label,Te)}),xe=c.useMemo(function(){if(r!=="tags")return ae;var Le=Ne(ae),Ie=function(Xe){return le.has(Xe)};return Ne(de).sort(function(Te,Xe){return Te.value<Xe.value?-1:1}).forEach(function(Te){var Xe=Te.value;Ie(Xe)||Le.push(he(Xe,Te.label))}),Le},[he,ae,le,de,r]),Re=H8e(xe,te,ne,G,w),Ce=c.useMemo(function(){return r!=="tags"||!ne||Re.some(function(Le){return Le[w||"value"]===ne})||Re.some(function(Le){return Le[te.value]===ne})?Re:[he(ne)].concat(Ne(Re))},[he,w,r,Re,ne,te]),pe=function Le(Ie){var Te=Ne(Ie).sort(function(Xe,lt){return x(Xe,lt,{searchValue:ne})});return Te.map(function(Xe){return Array.isArray(Xe.options)?Y(Y({},Xe),{},{options:Xe.options.length>0?Le(Xe.options):Xe.options}):Xe})},_e=c.useMemo(function(){return x?pe(Ce):Ce},[Ce,x,ne]),we=c.useMemo(function(){return h8e(_e,{fieldNames:te,childrenAsData:q})},[_e,te,q]),$e=function(Ie){var Te=re(Ie);if(Oe(Te),L&&(Te.length!==de.length||Te.some(function(mt,Ot){var dt;return((dt=de[Ot])===null||dt===void 0?void 0:dt.value)!==(mt==null?void 0:mt.value)}))){var Xe=D?Te:Te.map(function(mt){return mt.value}),lt=Te.map(function(mt){return xj(be(mt.value))});L(W?Xe:Xe[0],W?lt:lt[0])}},ve=c.useState(null),me=ue(ve,2),Se=me[0],De=me[1],et=c.useState(0),rt=ue(et,2),Me=rt[0],We=rt[1],Qe=O!==void 0?O:r!=="combobox",Ge=c.useCallback(function(Le,Ie){var Te=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},Xe=Te.source,lt=Xe===void 0?"keyboard":Xe;We(Ie),a&&r==="combobox"&&Le!==null&&lt==="keyboard"&&De(String(Le))},[a,r]),tt=function(Ie,Te,Xe){var lt=function(){var ot,Ft=be(Ie);return[D?{label:Ft==null?void 0:Ft[te.label],value:Ie,key:(ot=Ft==null?void 0:Ft.key)!==null&&ot!==void 0?ot:Ie}:Ie,xj(Ft)]};if(Te&&h){var mt=lt(),Ot=ue(mt,2),dt=Ot[0],qe=Ot[1];h(dt,qe)}else if(!Te&&p&&Xe!=="clear"){var ht=lt(),zt=ue(ht,2),Vt=zt[0],Nt=zt[1];p(Vt,Nt)}},ke=ez(function(Le,Ie){var Te,Xe=W?Ie.selected:!0;Xe?Te=W?[].concat(Ne(de),[Le]):[Le]:Te=de.filter(function(lt){return lt.value!==Le}),$e(Te),tt(Le,Xe),r==="combobox"?De(""):(!wj||m)&&(X(""),De(""))}),xt=function(Ie,Te){$e(Ie);var Xe=Te.type,lt=Te.values;(Xe==="remove"||Xe==="clear")&&lt.forEach(function(mt){tt(mt.value,!1,Xe)})},Ze=function(Ie,Te){if(X(Ie),De(null),Te.source==="submit"){var Xe=(Ie||"").trim();if(Xe){var lt=Array.from(new Set([].concat(Ne(ie),[Xe])));$e(lt),tt(Xe,!0),X("")}return}Te.source!=="blur"&&(r==="combobox"&&$e(Ie),d==null||d(Ie))},nt=function(Ie){var Te=Ie;r!=="tags"&&(Te=Ie.map(function(lt){var mt=se.get(lt);return mt==null?void 0:mt.value}).filter(function(lt){return lt!==void 0}));var Xe=Array.from(new Set([].concat(Ne(ie),Ne(Te))));$e(Xe),Xe.forEach(function(lt){tt(lt,!0)})},Be=c.useMemo(function(){var Le=j!==!1&&v!==!1;return Y(Y({},U),{},{flattenOptions:we,onActiveValue:Ge,defaultActiveFirstOption:Qe,onSelect:ke,menuItemSelectedIcon:P,rawValues:ie,fieldNames:te,virtual:Le,direction:I,listHeight:R,listItemHeight:A,childrenAsData:q,maxCount:B,optionRender:$})},[B,U,we,Ge,Qe,ke,P,ie,te,j,v,I,R,A,q,$]);return c.createElement(PT.Provider,{value:Be},c.createElement(b8e,Ee({},H,{id:F,prefixCls:i,ref:t,omitDomProps:Z8e,mode:r,displayValues:ge,onDisplayValuesChange:xt,direction:I,searchValue:ne,onSearch:Ze,autoClearSearchValue:m,onSearchSplit:nt,dropdownMatchSelectWidth:v,OptionList:F8e,emptyOptions:!we.length,activeValue:Se,activeDescendantId:"".concat(F,"_list_").concat(Me)})))}),_T=Q8e;_T.Option=IT;_T.OptGroup=jT;function Qc(e,t,n){return Q({[`${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 Xd=(e,t)=>t||e,e5e=()=>{const[,e]=Xo(),[t]=ca("Empty"),r=new On(e.colorBgBase).toHsl().l<.5?{opacity:.65}:{};return c.createElement("svg",{style:r,width:"184",height:"152",viewBox:"0 0 184 152",xmlns:"http://www.w3.org/2000/svg"},c.createElement("title",null,(t==null?void 0:t.description)||"Empty"),c.createElement("g",{fill:"none",fillRule:"evenodd"},c.createElement("g",{transform:"translate(24 31.67)"},c.createElement("ellipse",{fillOpacity:".8",fill:"#F5F5F7",cx:"67.797",cy:"106.89",rx:"67.797",ry:"12.668"}),c.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"}),c.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)"}),c.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"}),c.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"})),c.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"}),c.createElement("g",{transform:"translate(149.65 15.383)",fill:"#FFF"},c.createElement("ellipse",{cx:"20.654",cy:"3.167",rx:"2.849",ry:"2.815"}),c.createElement("path",{d:"M5.698 5.63H0L2.898.704zM9.259.704h4.985V5.63H9.259z"}))))},t5e=()=>{const[,e]=Xo(),[t]=ca("Empty"),{colorFill:n,colorFillTertiary:r,colorFillQuaternary:o,colorBgContainer:i}=e,{borderColor:a,shadowColor:s,contentColor:l}=c.useMemo(()=>({borderColor:new On(n).onBackground(i).toHexString(),shadowColor:new On(r).onBackground(i).toHexString(),contentColor:new On(o).onBackground(i).toHexString()}),[n,r,o,i]);return c.createElement("svg",{width:"64",height:"41",viewBox:"0 0 64 41",xmlns:"http://www.w3.org/2000/svg"},c.createElement("title",null,(t==null?void 0:t.description)||"Empty"),c.createElement("g",{transform:"translate(0 1)",fill:"none",fillRule:"evenodd"},c.createElement("ellipse",{fill:s,cx:"32",cy:"33",rx:"32",ry:"7"}),c.createElement("g",{fillRule:"nonzero",stroke:a},c.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"}),c.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:l}))))},n5e=e=>{const{componentCls:t,margin:n,marginXS:r,marginXL:o,fontSize:i,lineHeight:a}=e;return{[t]:{marginInline:r,fontSize:i,lineHeight:a,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}}}}},r5e=vn("Empty",e=>{const{componentCls:t,controlHeightLG:n,calc:r}=e,o=cn(e,{emptyImgCls:`${t}-img`,emptyImgHeight:r(n).mul(2.5).equal(),emptyImgHeightMD:n,emptyImgHeightSM:r(n).mul(.875).equal()});return n5e(o)});var o5e=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 AJ=c.createElement(e5e,null),DJ=c.createElement(t5e,null),Mi=e=>{var t;const{className:n,rootClassName:r,prefixCls:o,image:i,description:a,children:s,imageStyle:l,style:u,classNames:d,styles:f}=e,m=o5e(e,["className","rootClassName","prefixCls","image","description","children","imageStyle","style","classNames","styles"]),{getPrefixCls:h,direction:p,className:b,style:v,classNames:y,styles:x,image:w}=Br("empty"),C=h("empty",o),[S,$,E]=r5e(C),[O]=ca("Empty"),P=typeof a<"u"?a:O==null?void 0:O.description,j=typeof P=="string"?P:"empty",I=(t=i??w)!==null&&t!==void 0?t:AJ;let _=null;return typeof I=="string"?_=c.createElement("img",{draggable:!1,alt:j,src:I}):_=I,S(c.createElement("div",Object.assign({className:Q($,E,C,b,{[`${C}-normal`]:I===DJ,[`${C}-rtl`]:p==="rtl"},n,r,y.root,d==null?void 0:d.root),style:Object.assign(Object.assign(Object.assign(Object.assign({},x.root),v),f==null?void 0:f.root),u)},m),c.createElement("div",{className:Q(`${C}-image`,y.image,d==null?void 0:d.image),style:Object.assign(Object.assign(Object.assign({},l),x.image),f==null?void 0:f.image)},_),P&&c.createElement("div",{className:Q(`${C}-description`,y.description,d==null?void 0:d.description),style:Object.assign(Object.assign({},x.description),f==null?void 0:f.description)},P),s&&c.createElement("div",{className:Q(`${C}-footer`,y.footer,d==null?void 0:d.footer),style:Object.assign(Object.assign({},x.footer),f==null?void 0:f.footer)},s)))};Mi.PRESENTED_IMAGE_DEFAULT=AJ;Mi.PRESENTED_IMAGE_SIMPLE=DJ;const NT=e=>{const{componentName:t}=e,{getPrefixCls:n}=c.useContext(kt),r=n("empty");switch(t){case"Table":case"List":return ce.createElement(Mi,{image:Mi.PRESENTED_IMAGE_SIMPLE});case"Select":case"TreeSelect":case"Cascader":case"Transfer":case"Mentions":return ce.createElement(Mi,{image:Mi.PRESENTED_IMAGE_SIMPLE,className:`${r}-small`});case"Table.filter":return null;default:return ce.createElement(Mi,null)}},Yd=(e,t,n)=>{var r,o;const{variant:i,[e]:a}=c.useContext(kt),s=c.useContext(oJ),l=a==null?void 0:a.variant;let u;typeof t<"u"?u=t:n===!1?u="borderless":u=(o=(r=s??l)!==null&&r!==void 0?r:i)!==null&&o!==void 0?o:"outlined";const d=i4e.includes(u);return[u,d]},i5e=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 a5e(e,t){return e||i5e(t)}const tz=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"}},s5e=e=>{const{antCls:t,componentCls:n}=e,r=`${n}-item`,o=`&${t}-slide-up-enter${t}-slide-up-enter-active`,i=`&${t}-slide-up-appear${t}-slide-up-appear-active`,a=`&${t}-slide-up-leave${t}-slide-up-leave-active`,s=`${n}-dropdown-placement-`,l=`${r}-option-selected`;return[{[`${n}-dropdown`]:Object.assign(Object.assign({},xn(e)),{position:"absolute",top:-9999,zIndex:e.zIndexPopup,boxSizing:"border-box",padding:e.paddingXXS,overflow:"hidden",fontSize:e.fontSize,fontVariant:"initial",backgroundColor:e.colorBgElevated,borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary,[`
          ${o}${s}bottomLeft,
          ${i}${s}bottomLeft
        `]:{animationName:$S},[`
          ${o}${s}topLeft,
          ${i}${s}topLeft,
          ${o}${s}topRight,
          ${i}${s}topRight
        `]:{animationName:OS},[`${a}${s}bottomLeft`]:{animationName:ES},[`
          ${a}${s}topLeft,
          ${a}${s}topRight
        `]:{animationName:PS},"&-hidden":{display:"none"},[r]:Object.assign(Object.assign({},tz(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"},Bs),"&-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({},tz(e)),{color:e.colorTextDisabled})}),[`${l}:has(+ ${l})`]:{borderEndStartRadius:0,borderEndEndRadius:0,[`& + ${l}`]:{borderStartStartRadius:0,borderStartEndRadius:0}},"&-rtl":{direction:"rtl"}})},vl(e,"slide-up"),vl(e,"slide-down"),Wm(e,"move-up"),Wm(e,"move-down")]},LJ=e=>{const{multipleSelectItemHeight:t,paddingXXS:n,lineWidth:r,INTERNAL_FIXED_ITEM_MARGIN:o}=e,i=e.max(e.calc(n).sub(r).equal(),0),a=e.max(e.calc(i).sub(o).equal(),0);return{basePadding:i,containerPadding:a,itemHeight:Z(t),itemLineHeight:Z(e.calc(t).sub(e.calc(e.lineWidth).mul(2)).equal())}},l5e=e=>{const{multipleSelectItemHeight:t,selectHeight:n,lineWidth:r}=e;return e.calc(n).sub(t).div(2).sub(r).equal()},zJ=e=>{const{componentCls:t,iconCls:n,borderRadiusSM:r,motionDurationSlow:o,paddingXS:i,multipleItemColorDisabled:a,multipleItemBorderColorDisabled:s,colorIcon:l,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:i,paddingInlineEnd:e.calc(i).div(2).equal(),[`${t}-disabled&`]:{color:a,borderColor:s,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:e.calc(i).div(2).equal(),overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":Object.assign(Object.assign({},gh()),{display:"inline-flex",alignItems:"center",color:l,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${n}`]:{verticalAlign:"-0.2em"},"&:hover":{color:u}})}}}},c5e=(e,t)=>{const{componentCls:n,INTERNAL_FIXED_ITEM_MARGIN:r}=e,o=`${n}-selection-overflow`,i=e.multipleSelectItemHeight,a=l5e(e),s=t?`${n}-${t}`:"",l=LJ(e);return{[`${n}-multiple${s}`]:Object.assign(Object.assign({},zJ(e)),{[`${n}-selector`]:{display:"flex",alignItems:"center",width:"100%",height:"100%",paddingInline:l.basePadding,paddingBlock:l.containerPadding,borderRadius:e.borderRadius,[`${n}-disabled&`]:{background:e.multipleSelectorBgDisabled,cursor:"not-allowed"},"&:after":{display:"inline-block",width:0,margin:`${Z(r)} 0`,lineHeight:Z(i),visibility:"hidden",content:'"\\a0"'}},[`${n}-selection-item`]:{height:l.itemHeight,lineHeight:Z(l.itemLineHeight)},[`${n}-selection-wrap`]:{alignSelf:"flex-start","&:after":{lineHeight:Z(i),marginBlock:r}},[`${n}-prefix`]:{marginInlineStart:e.calc(e.inputPaddingHorizontalBase).sub(l.basePadding).equal()},[`${o}-item + ${o}-item,
        ${n}-prefix + ${n}-selection-wrap
      `]:{[`${n}-selection-search`]:{marginInlineStart:0},[`${n}-selection-placeholder`]:{insetInlineStart:0}},[`${o}-item-suffix`]:{minHeight:l.itemHeight,marginBlock:r},[`${n}-selection-search`]:{display:"inline-flex",position:"relative",maxWidth:"100%",marginInlineStart:e.calc(e.inputPaddingHorizontalBase).sub(a).equal(),"\n          &-input,\n          &-mirror\n        ":{height:i,fontFamily:e.fontFamily,lineHeight:Z(i),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(l.basePadding).equal(),insetInlineEnd:e.inputPaddingHorizontalBase,transform:"translateY(-50%)",transition:`all ${e.motionDurationSlow}`}})}};function g2(e,t){const{componentCls:n}=e,r=t?`${n}-${t}`:"",o={[`${n}-multiple${r}`]:{fontSize:e.fontSize,[`${n}-selector`]:{[`${n}-show-search&`]:{cursor:"text"}},[`
        &${n}-show-arrow ${n}-selector,
        &${n}-allow-clear ${n}-selector
      `]:{paddingInlineEnd:e.calc(e.fontSizeIcon).add(e.controlPaddingHorizontal).equal()}}};return[c5e(e,t),o]}const u5e=e=>{const{componentCls:t}=e,n=cn(e,{selectHeight:e.controlHeightSM,multipleSelectItemHeight:e.multipleItemHeightSM,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS}),r=cn(e,{fontSize:e.fontSizeLG,selectHeight:e.controlHeightLG,multipleSelectItemHeight:e.multipleItemHeightLG,borderRadius:e.borderRadiusLG,borderRadiusSM:e.borderRadius});return[g2(e),g2(n,"sm"),{[`${t}-multiple${t}-sm`]:{[`${t}-selection-placeholder`]:{insetInline:e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal()},[`${t}-selection-search`]:{marginInlineStart:2}}},g2(r,"lg")]};function v2(e,t){const{componentCls:n,inputPaddingHorizontalBase:r,borderRadius:o}=e,i=e.calc(e.controlHeight).sub(e.calc(e.lineWidth).mul(2)).equal(),a=t?`${n}-${t}`:"";return{[`${n}-single${a}`]:{fontSize:e.fontSize,height:e.controlHeight,[`${n}-selector`]:Object.assign(Object.assign({},xn(e,!0)),{display:"flex",borderRadius:o,flex:"1 1 auto",[`${n}-selection-wrap:after`]:{lineHeight:Z(i)},[`${n}-selection-search`]:{position:"absolute",inset:0,width:"100%","&-input":{width:"100%",WebkitAppearance:"textfield"}},[`
          ${n}-selection-item,
          ${n}-selection-placeholder
        `]:{display:"block",padding:0,lineHeight:Z(i),transition:`all ${e.motionDurationSlow}, visibility 0s`,alignSelf:"center"},[`${n}-selection-placeholder`]:{transition:"none",pointerEvents:"none"},[["&:after",`${n}-selection-item:empty:after`,`${n}-selection-placeholder:empty:after`].join(",")]:{display:"inline-block",width:0,visibility:"hidden",content:'"\\a0"'}}),[`
        &${n}-show-arrow ${n}-selection-item,
        &${n}-show-arrow ${n}-selection-search,
        &${n}-show-arrow ${n}-selection-placeholder
      `]:{paddingInlineEnd:e.showArrowPaddingInlineEnd},[`&${n}-open ${n}-selection-item`]:{color:e.colorTextPlaceholder},[`&:not(${n}-customize-input)`]:{[`${n}-selector`]:{width:"100%",height:"100%",alignItems:"center",padding:`0 ${Z(r)}`,[`${n}-selection-search-input`]:{height:i,fontSize:e.fontSize},"&:after":{lineHeight:Z(i)}}},[`&${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 ${Z(r)}`,"&:after":{display:"none"}}}}}}}function d5e(e){const{componentCls:t}=e,n=e.calc(e.controlPaddingHorizontalSM).sub(e.lineWidth).equal();return[v2(e),v2(cn(e,{controlHeight:e.controlHeightSM,borderRadius:e.borderRadiusSM}),"sm"),{[`${t}-single${t}-sm`]:{[`&:not(${t}-customize-input)`]:{[`${t}-selector`]:{padding:`0 ${Z(n)}`},[`&${t}-show-arrow ${t}-selection-search`]:{insetInlineEnd:e.calc(n).add(e.calc(e.fontSize).mul(1.5)).equal()},[`
            &${t}-show-arrow ${t}-selection-item,
            &${t}-show-arrow ${t}-selection-placeholder
          `]:{paddingInlineEnd:e.calc(e.fontSize).mul(1.5).equal()}}}},v2(cn(e,{controlHeight:e.singleItemHeightLG,fontSize:e.fontSizeLG,borderRadius:e.borderRadiusLG}),"lg")]}const f5e=e=>{const{fontSize:t,lineHeight:n,lineWidth:r,controlHeight:o,controlHeightSM:i,controlHeightLG:a,paddingXXS:s,controlPaddingHorizontal:l,zIndexPopupBase:u,colorText:d,fontWeightStrong:f,controlItemBgActive:m,controlItemBgHover:h,colorBgContainer:p,colorFillSecondary:b,colorBgContainerDisabled:v,colorTextDisabled:y,colorPrimaryHover:x,colorPrimary:w,controlOutline:C}=e,S=s*2,$=r*2,E=Math.min(o-S,o-$),O=Math.min(i-S,i-$),P=Math.min(a-S,a-$);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(s/2),zIndexPopup:u+50,optionSelectedColor:d,optionSelectedFontWeight:f,optionSelectedBg:m,optionActiveBg:h,optionPadding:`${(o-t*n)/2}px ${l}px`,optionFontSize:t,optionLineHeight:n,optionHeight:o,selectorBg:p,clearBg:p,singleItemHeightLG:a,multipleItemBg:b,multipleItemBorderColor:"transparent",multipleItemHeight:E,multipleItemHeightSM:O,multipleItemHeightLG:P,multipleSelectorBgDisabled:v,multipleItemColorDisabled:y,multipleItemBorderColorDisabled:"transparent",showArrowPaddingInlineEnd:Math.ceil(e.fontSize*1.25),hoverBorderColor:x,activeBorderColor:w,activeOutlineColor:C,selectAffixPadding:s}},FJ=(e,t)=>{const{componentCls:n,antCls:r,controlOutlineWidth:o}=e;return{[`&:not(${n}-customize-input) ${n}-selector`]:{border:`${Z(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 ${Z(o)} ${t.activeOutlineColor}`,outline:0},[`${n}-prefix`]:{color:t.color}}}},nz=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},FJ(e,t))}),m5e=e=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign({},FJ(e,{borderColor:e.colorBorder,hoverBorderHover:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeOutlineColor:e.activeOutlineColor,color:e.colorText})),nz(e,{status:"error",borderColor:e.colorError,hoverBorderHover:e.colorErrorHover,activeBorderColor:e.colorError,activeOutlineColor:e.colorErrorOutline,color:e.colorError})),nz(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:`${Z(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}})}),BJ=(e,t)=>{const{componentCls:n,antCls:r}=e;return{[`&:not(${n}-customize-input) ${n}-selector`]:{background:t.bg,border:`${Z(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}}}},rz=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},BJ(e,t))}),h5e=e=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign({},BJ(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor,color:e.colorText})),rz(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,color:e.colorError})),rz(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:`${Z(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}})}),p5e=e=>({"&-borderless":{[`${e.componentCls}-selector`]:{background:"transparent",border:`${Z(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:`${Z(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}}}}),HJ=(e,t)=>{const{componentCls:n,antCls:r}=e;return{[`&:not(${n}-customize-input) ${n}-selector`]:{borderWidth:`0 0 ${Z(e.lineWidth)} 0`,borderStyle:`none none ${e.lineType} none`,borderColor:t.borderColor,background:e.selectorBg,borderRadius:0},[`&:not(${n}-disabled):not(${n}-customize-input):not(${r}-pagination-size-changer)`]:{[`&:hover ${n}-selector`]:{borderColor:t.hoverBorderHover},[`${n}-focused& ${n}-selector`]:{borderColor:t.activeBorderColor,outline:0},[`${n}-prefix`]:{color:t.color}}}},oz=(e,t)=>({[`&${e.componentCls}-status-${t.status}`]:Object.assign({},HJ(e,t))}),g5e=e=>({"&-underlined":Object.assign(Object.assign(Object.assign(Object.assign({},HJ(e,{borderColor:e.colorBorder,hoverBorderHover:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeOutlineColor:e.activeOutlineColor,color:e.colorText})),oz(e,{status:"error",borderColor:e.colorError,hoverBorderHover:e.colorErrorHover,activeBorderColor:e.colorError,activeOutlineColor:e.colorErrorOutline,color:e.colorError})),oz(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:`${Z(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}})}),v5e=e=>({[e.componentCls]:Object.assign(Object.assign(Object.assign(Object.assign({},m5e(e)),h5e(e)),p5e(e)),g5e(e))}),y5e=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"}}}},b5e=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"}}}},x5e=e=>{const{antCls:t,componentCls:n,inputPaddingHorizontalBase:r,iconCls:o}=e,i={[`${n}-clear`]:{opacity:1,background:e.colorBgBase,borderRadius:"50%"}};return{[n]:Object.assign(Object.assign({},xn(e)),{position:"relative",display:"inline-flex",cursor:"pointer",[`&:not(${n}-customize-input) ${n}-selector`]:Object.assign(Object.assign({},y5e(e)),b5e(e)),[`${n}-selection-item`]:Object.assign(Object.assign({flex:1,fontWeight:"normal",position:"relative",userSelect:"none"},Bs),{[`> ${t}-typography`]:{display:"inline"}}),[`${n}-selection-placeholder`]:Object.assign(Object.assign({},Bs),{flex:1,color:e.colorTextPlaceholder,pointerEvents:"none"}),[`${n}-arrow`]:Object.assign(Object.assign({},gh()),{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)":i,"&:hover":i}),[`${n}-status`]:{"&-error, &-warning, &-success, &-validating":{[`&${n}-has-feedback`]:{[`${n}-clear`]:{insetInlineEnd:e.calc(r).add(e.fontSize).add(e.paddingXS).equal()}}}}}},w5e=e=>{const{componentCls:t}=e;return[{[t]:{[`&${t}-in-form-item`]:{width:"100%"}}},x5e(e),d5e(e),u5e(e),s5e(e),{[`${t}-rtl`]:{direction:"rtl"}},e0(e,{borderElCls:`${t}-selector`,focusElCls:`${t}-focused`})]},S5e=vn("Select",(e,{rootPrefixCls:t})=>{const n=cn(e,{rootPrefixCls:t,inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(1).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return[w5e(n),v5e(n)]},f5e,{unitless:{optionLineHeight:!0,optionSelectedFontWeight:!0}});var VJ={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"},C5e=function(t,n){return c.createElement(yn,Ee({},t,{ref:n,icon:VJ}))},RT=c.forwardRef(C5e),$5e={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"},E5e=function(t,n){return c.createElement(yn,Ee({},t,{ref:n,icon:$5e}))},TT=c.forwardRef(E5e),WJ={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"},O5e=function(t,n){return c.createElement(yn,Ee({},t,{ref:n,icon:WJ}))},MT=c.forwardRef(O5e);function UJ({suffixIcon:e,clearIcon:t,menuItemSelectedIcon:n,removeIcon:r,loading:o,multiple:i,hasFeedback:a,prefixCls:s,showSuffixIcon:l,feedbackIcon:u,showArrow:d,componentName:f}){const m=t??c.createElement(Gd,null),h=y=>e===null&&!a&&!d?null:c.createElement(c.Fragment,null,l!==!1&&y,a&&u);let p=null;if(e!==void 0)p=h(e);else if(o)p=h(c.createElement(Zl,{spin:!0}));else{const y=`${s}-suffix`;p=({open:x,showSearch:w})=>h(x&&w?c.createElement(MT,{className:y}):c.createElement(TT,{className:y}))}let b=null;n!==void 0?b=n:i?b=c.createElement(RT,null):b=null;let v=null;return r!==void 0?v=r:v=c.createElement(gu,null),{clearIcon:m,suffixIcon:p,itemIcon:b,removeIcon:v}}function P5e(e){return ce.useMemo(()=>{if(e)return(...t)=>ce.createElement(Vs,{space:!0},e.apply(void 0,t))},[e])}function j5e(e,t){return t!==void 0?t:e!==null}var I5e=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 KJ="SECRET_COMBOBOX_MODE_DO_NOT_USE",_5e=(e,t)=>{var n,r,o,i,a;const{prefixCls:s,bordered:l,className:u,rootClassName:d,getPopupContainer:f,popupClassName:m,dropdownClassName:h,listHeight:p=256,placement:b,listItemHeight:v,size:y,disabled:x,notFoundContent:w,status:C,builtinPlacements:S,dropdownMatchSelectWidth:$,popupMatchSelectWidth:E,direction:O,style:P,allowClear:j,variant:I,dropdownStyle:_,transitionName:R,tagRender:N,maxCount:A,prefix:M,dropdownRender:T,popupRender:k,onDropdownVisibleChange:D,onOpenChange:L,styles:B,classNames:H}=e,F=I5e(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:W,getPrefixCls:q,renderEmpty:G,direction:te,virtual:ee,popupMatchSelectWidth:z,popupOverflow:ne}=c.useContext(kt),{showSearch:X,style:U,styles:le,className:se,classNames:ae}=Br("select"),[,re]=Xo(),fe=v??(re==null?void 0:re.controlHeight),ye=q("select",s),Pe=q(),Oe=O??te,{compactSize:V,compactItemClassnames:J}=uc(ye,Oe),[oe,de]=Yd("select",I,l),be=Hr(ye),[ge,ie,he]=S5e(ye,be),xe=c.useMemo(()=>{const{mode:Xe}=e;if(Xe!=="combobox")return Xe===KJ?"combobox":Xe},[e.mode]),Re=xe==="multiple"||xe==="tags",Ce=j5e(e.suffixIcon,e.showArrow),pe=(n=E??$)!==null&&n!==void 0?n:z,_e=((r=B==null?void 0:B.popup)===null||r===void 0?void 0:r.root)||((o=le.popup)===null||o===void 0?void 0:o.root)||_,we=P5e(k||T),$e=L||D,{status:ve,hasFeedback:me,isFormItemInput:Se,feedbackIcon:De}=c.useContext(Oo),et=Xd(ve,C);let rt;w!==void 0?rt=w:xe==="combobox"?rt=null:rt=(G==null?void 0:G("Select"))||c.createElement(NT,{componentName:"Select"});const{suffixIcon:Me,itemIcon:We,removeIcon:Qe,clearIcon:Ge}=UJ(Object.assign(Object.assign({},F),{multiple:Re,hasFeedback:me,feedbackIcon:De,showSuffixIcon:Ce,prefixCls:ye,componentName:"Select"})),tt=j===!0?{clearIcon:Ge}:j,ke=Xn(F,["suffixIcon","itemIcon"]),xt=Q(((i=H==null?void 0:H.popup)===null||i===void 0?void 0:i.root)||((a=ae==null?void 0:ae.popup)===null||a===void 0?void 0:a.root)||m||h,{[`${ye}-dropdown-${Oe}`]:Oe==="rtl"},d,ae.root,H==null?void 0:H.root,he,be,ie),Ze=go(Xe=>{var lt;return(lt=y??V)!==null&&lt!==void 0?lt:Xe}),nt=c.useContext(ai),Be=x??nt,Le=Q({[`${ye}-lg`]:Ze==="large",[`${ye}-sm`]:Ze==="small",[`${ye}-rtl`]:Oe==="rtl",[`${ye}-${oe}`]:de,[`${ye}-in-form-item`]:Se},Qc(ye,et,me),J,se,u,ae.root,H==null?void 0:H.root,d,he,be,ie),Ie=c.useMemo(()=>b!==void 0?b:Oe==="rtl"?"bottomRight":"bottomLeft",[b,Oe]),[Te]=vu("SelectLike",_e==null?void 0:_e.zIndex);return ge(c.createElement(_T,Object.assign({ref:t,virtual:ee,showSearch:X},ke,{style:Object.assign(Object.assign(Object.assign(Object.assign({},le.root),B==null?void 0:B.root),U),P),dropdownMatchSelectWidth:pe,transitionName:gl(Pe,"slide-up",R),builtinPlacements:a5e(S,ne),listHeight:p,listItemHeight:fe,mode:xe,prefixCls:ye,placement:Ie,direction:Oe,prefix:M,suffixIcon:Me,menuItemSelectedIcon:We,removeIcon:Qe,allowClear:tt,notFoundContent:rt,className:Le,getPopupContainer:f||W,dropdownClassName:xt,disabled:Be,dropdownStyle:Object.assign(Object.assign({},_e),{zIndex:Te}),maxCount:Re?A:void 0,tagRender:Re?N:void 0,dropdownRender:we,onDropdownVisibleChange:$e})))},pr=c.forwardRef(_5e),N5e=LS(pr,"dropdownAlign");pr.SECRET_COMBOBOX_MODE_DO_NOT_USE=KJ;pr.Option=IT;pr.OptGroup=jT;pr._InternalPanelDoNotUseOrYouWillBeFired=N5e;const qJ=(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)},GJ=(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)},eu=["xxl","xl","lg","md","sm","xs"],R5e=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)`}),T5e=e=>{const t=e,n=[].concat(eu).reverse();return n.forEach((r,o)=>{const i=r.toUpperCase(),a=`screen${i}Min`,s=`screen${i}`;if(!(t[a]<=t[s]))throw new Error(`${a}<=${s} fails : !(${t[a]}<=${t[s]})`);if(o<n.length-1){const l=`screen${i}Max`;if(!(t[s]<=t[l]))throw new Error(`${s}<=${l} fails : !(${t[s]}<=${t[l]})`);const d=`screen${n[o+1].toUpperCase()}Min`;if(!(t[l]<=t[d]))throw new Error(`${l}<=${d} fails : !(${t[l]}<=${t[d]})`)}}),e},M5e=()=>{const[,e]=Xo(),t=R5e(T5e(e));return ce.useMemo(()=>{const n=new Map;let r=-1,o={};return{responsiveMap:t,matchHandlers:{},dispatch(i){return o=i,n.forEach(a=>a(o)),n.size>=1},subscribe(i){return n.size||this.register(),r+=1,n.set(r,i),i(o),r},unsubscribe(i){n.delete(i),n.size||this.unregister()},register(){Object.entries(t).forEach(([i,a])=>{const s=({matches:u})=>{this.dispatch(Object.assign(Object.assign({},o),{[i]:u}))},l=window.matchMedia(a);qJ(l,s),this.matchHandlers[a]={mql:l,listener:s},s(l)})},unregister(){Object.values(t).forEach(i=>{const a=this.matchHandlers[i];GJ(a==null?void 0:a.mql,a==null?void 0:a.listener)}),n.clear()}}},[t])};function Ch(e=!0,t={}){const n=c.useRef(t),[,r]=pT(),o=M5e();return sn(()=>{const i=o.subscribe(a=>{n.current=a,e&&r()});return()=>o.unsubscribe(i)},[]),n.current}const Cj=c.createContext({}),k5e=e=>{const{antCls:t,componentCls:n,iconCls:r,avatarBg:o,avatarColor:i,containerSize:a,containerSizeLG:s,containerSizeSM:l,textFontSize:u,textFontSizeLG:d,textFontSizeSM:f,iconFontSize:m,iconFontSizeLG:h,iconFontSizeSM:p,borderRadius:b,borderRadiusLG:v,borderRadiusSM:y,lineWidth:x,lineType:w}=e,C=(S,$,E,O)=>({width:S,height:S,borderRadius:"50%",fontSize:$,[`&${n}-square`]:{borderRadius:O},[`&${n}-icon`]:{fontSize:E,[`> ${r}`]:{margin:0}}});return{[n]:Object.assign(Object.assign(Object.assign(Object.assign({},xn(e)),{position:"relative",display:"inline-flex",justifyContent:"center",alignItems:"center",overflow:"hidden",color:i,whiteSpace:"nowrap",textAlign:"center",verticalAlign:"middle",background:o,border:`${Z(x)} ${w} transparent`,"&-image":{background:"transparent"},[`${t}-image-img`]:{display:"block"}}),C(a,u,m,b)),{"&-lg":Object.assign({},C(s,d,h,v)),"&-sm":Object.assign({},C(l,f,p,y)),"> img":{display:"block",width:"100%",height:"100%",objectFit:"cover"}})}},A5e=e=>{const{componentCls:t,groupBorderColor:n,groupOverlapping:r,groupSpace:o}=e;return{[`${t}-group`]:{display:"inline-flex",[t]:{borderColor:n},"> *:not(:first-child)":{marginInlineStart:r}},[`${t}-group-popover`]:{[`${t} + ${t}`]:{marginInlineStart:o}}}},D5e=e=>{const{controlHeight:t,controlHeightLG:n,controlHeightSM:r,fontSize:o,fontSizeLG:i,fontSizeXL:a,fontSizeHeading3:s,marginXS:l,marginXXS:u,colorBorderBg:d}=e;return{containerSize:t,containerSizeLG:n,containerSizeSM:r,textFontSize:o,textFontSizeLG:o,textFontSizeSM:o,iconFontSize:Math.round((i+a)/2),iconFontSizeLG:s,iconFontSizeSM:o,groupSpace:u,groupOverlapping:-l,groupBorderColor:d}},XJ=vn("Avatar",e=>{const{colorTextLightSolid:t,colorTextPlaceholder:n}=e,r=cn(e,{avatarBg:n,avatarColor:t});return[k5e(r),A5e(r)]},D5e);var L5e=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 YJ=c.forwardRef((e,t)=>{const{prefixCls:n,shape:r,size:o,src:i,srcSet:a,icon:s,className:l,rootClassName:u,style:d,alt:f,draggable:m,children:h,crossOrigin:p,gap:b=4,onError:v}=e,y=L5e(e,["prefixCls","shape","size","src","srcSet","icon","className","rootClassName","style","alt","draggable","children","crossOrigin","gap","onError"]),[x,w]=c.useState(1),[C,S]=c.useState(!1),[$,E]=c.useState(!0),O=c.useRef(null),P=c.useRef(null),j=po(t,O),{getPrefixCls:I,avatar:_}=c.useContext(kt),R=c.useContext(Cj),N=()=>{if(!P.current||!O.current)return;const X=P.current.offsetWidth,U=O.current.offsetWidth;X!==0&&U!==0&&b*2<U&&w(U-b*2<X?(U-b*2)/X:1)};c.useEffect(()=>{S(!0)},[]),c.useEffect(()=>{E(!0),w(1)},[i]),c.useEffect(N,[b]);const A=()=>{(v==null?void 0:v())!==!1&&E(!1)},M=go(X=>{var U,le;return(le=(U=o??(R==null?void 0:R.size))!==null&&U!==void 0?U:X)!==null&&le!==void 0?le:"default"}),T=Object.keys(typeof M=="object"?M||{}:{}).some(X=>["xs","sm","md","lg","xl","xxl"].includes(X)),k=Ch(T),D=c.useMemo(()=>{if(typeof M!="object")return{};const X=eu.find(le=>k[le]),U=M[X];return U?{width:U,height:U,fontSize:U&&(s||h)?U/2:18}:{}},[k,M,s,h]),L=I("avatar",n),B=Hr(L),[H,F,W]=XJ(L,B),q=Q({[`${L}-lg`]:M==="large",[`${L}-sm`]:M==="small"}),G=c.isValidElement(i),te=r||(R==null?void 0:R.shape)||"circle",ee=Q(L,q,_==null?void 0:_.className,`${L}-${te}`,{[`${L}-image`]:G||i&&$,[`${L}-icon`]:!!s},W,B,l,u,F),z=typeof M=="number"?{width:M,height:M,fontSize:s?M/2:18}:{};let ne;if(typeof i=="string"&&$)ne=c.createElement("img",{src:i,draggable:m,srcSet:a,onError:A,alt:f,crossOrigin:p});else if(G)ne=i;else if(s)ne=s;else if(C||x!==1){const X=`scale(${x})`,U={msTransform:X,WebkitTransform:X,transform:X};ne=c.createElement(Wo,{onResize:N},c.createElement("span",{className:`${L}-string`,ref:P,style:U},h))}else ne=c.createElement("span",{className:`${L}-string`,style:{opacity:0},ref:P},h);return H(c.createElement("span",Object.assign({},y,{style:Object.assign(Object.assign(Object.assign(Object.assign({},z),D),_==null?void 0:_.style),d),className:ee,ref:j}),ne))}),Um=e=>e?typeof e=="function"?e():e:null;function kT(e){var t=e.children,n=e.prefixCls,r=e.id,o=e.overlayInnerStyle,i=e.bodyClassName,a=e.className,s=e.style;return c.createElement("div",{className:Q("".concat(n,"-content"),a),style:s},c.createElement("div",{className:Q("".concat(n,"-inner"),i),id:r,role:"tooltip",style:o},typeof t=="function"?t():t))}var gf={shiftX:64,adjustY:1},vf={adjustX:1,shiftY:!0},Fa=[0,0],z5e={left:{points:["cr","cl"],overflow:vf,offset:[-4,0],targetOffset:Fa},right:{points:["cl","cr"],overflow:vf,offset:[4,0],targetOffset:Fa},top:{points:["bc","tc"],overflow:gf,offset:[0,-4],targetOffset:Fa},bottom:{points:["tc","bc"],overflow:gf,offset:[0,4],targetOffset:Fa},topLeft:{points:["bl","tl"],overflow:gf,offset:[0,-4],targetOffset:Fa},leftTop:{points:["tr","tl"],overflow:vf,offset:[-4,0],targetOffset:Fa},topRight:{points:["br","tr"],overflow:gf,offset:[0,-4],targetOffset:Fa},rightTop:{points:["tl","tr"],overflow:vf,offset:[4,0],targetOffset:Fa},bottomRight:{points:["tr","br"],overflow:gf,offset:[0,4],targetOffset:Fa},rightBottom:{points:["bl","br"],overflow:vf,offset:[4,0],targetOffset:Fa},bottomLeft:{points:["tl","bl"],overflow:gf,offset:[0,4],targetOffset:Fa},leftBottom:{points:["br","bl"],overflow:vf,offset:[-4,0],targetOffset:Fa}},F5e=["overlayClassName","trigger","mouseEnterDelay","mouseLeaveDelay","overlayStyle","prefixCls","children","onVisibleChange","afterVisibleChange","transitionName","animation","motion","placement","align","destroyTooltipOnHide","defaultVisible","getTooltipContainer","overlayInnerStyle","arrowContent","overlay","id","showArrow","classNames","styles"],B5e=function(t,n){var r=t.overlayClassName,o=t.trigger,i=o===void 0?["hover"]:o,a=t.mouseEnterDelay,s=a===void 0?0:a,l=t.mouseLeaveDelay,u=l===void 0?.1:l,d=t.overlayStyle,f=t.prefixCls,m=f===void 0?"rc-tooltip":f,h=t.children,p=t.onVisibleChange,b=t.afterVisibleChange,v=t.transitionName,y=t.animation,x=t.motion,w=t.placement,C=w===void 0?"right":w,S=t.align,$=S===void 0?{}:S,E=t.destroyTooltipOnHide,O=E===void 0?!1:E,P=t.defaultVisible,j=t.getTooltipContainer,I=t.overlayInnerStyle;t.arrowContent;var _=t.overlay,R=t.id,N=t.showArrow,A=N===void 0?!0:N,M=t.classNames,T=t.styles,k=Ht(t,F5e),D=kS(R),L=c.useRef(null);c.useImperativeHandle(n,function(){return L.current});var B=Y({},k);"visible"in t&&(B.popupVisible=t.visible);var H=function(){return c.createElement(kT,{key:"content",prefixCls:m,id:D,bodyClassName:M==null?void 0:M.body,overlayInnerStyle:Y(Y({},I),T==null?void 0:T.body)},_)},F=function(){var q=c.Children.only(h),G=(q==null?void 0:q.props)||{},te=Y(Y({},G),{},{"aria-describedby":_?D:null});return c.cloneElement(h,te)};return c.createElement(i0,Ee({popupClassName:Q(r,M==null?void 0:M.root),prefixCls:m,popup:H,action:i,builtinPlacements:z5e,popupPlacement:C,ref:L,popupAlign:$,getPopupContainer:j,onPopupVisibleChange:p,afterPopupVisibleChange:b,popupTransitionName:v,popupAnimation:y,popupMotion:x,defaultPopupVisible:P,autoDestroy:O,mouseLeaveDelay:u,popupStyle:Y(Y({},d),T==null?void 0:T.root),mouseEnterDelay:s,arrow:A},B),F())};const H5e=c.forwardRef(B5e);function HS(e){const{sizePopupArrow:t,borderRadiusXS:n,borderRadiusOuter:r}=e,o=t/2,i=0,a=o,s=r*1/Math.sqrt(2),l=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,h=2*o-s,p=l,b=2*o-i,v=a,y=o*Math.sqrt(2)+r*(Math.sqrt(2)-2),x=r*(Math.sqrt(2)-1),w=`polygon(${x}px 100%, 50% ${x}px, ${2*o-x}px 100%, ${x}px 100%)`,C=`path('M ${i} ${a} A ${r} ${r} 0 0 0 ${s} ${l} L ${u} ${d} A ${n} ${n} 0 0 1 ${f} ${m} L ${h} ${p} A ${r} ${r} 0 0 0 ${b} ${v} Z')`;return{arrowShadowWidth:y,arrowPath:C,arrowPolygon:w}}const ZJ=(e,t,n)=>{const{sizePopupArrow:r,arrowPolygon:o,arrowPath:i,arrowShadowWidth:a,borderRadiusXS:s,calc:l}=e;return{pointerEvents:"none",width:r,height:r,overflow:"hidden","&::before":{position:"absolute",bottom:0,insetInlineStart:0,width:r,height:l(r).div(2).equal(),background:t,clipPath:{_multi_value_:!0,value:[o,i]},content:'""'},"&::after":{content:'""',position:"absolute",width:a,height:a,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${Z(s)} 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:n,zIndex:0,background:"transparent"}}},JJ=8;function VS(e){const{contentRadius:t,limitVerticalRadius:n}=e,r=t>12?t+2:12;return{arrowOffsetHorizontal:r,arrowOffsetVertical:n?JJ:r}}function my(e,t){return e?t:{}}function AT(e,t,n){const{componentCls:r,boxShadowPopoverArrow:o,arrowOffsetVertical:i,arrowOffsetHorizontal:a}=e,{arrowDistance:s=0,arrowPlacement:l={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"},ZJ(e,t,o)),{"&:before":{background:t}})]},my(!!l.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":a,[`> ${r}-arrow`]:{left:{_skip_check_:!0,value:a}}},"&-placement-topRight":{"--arrow-offset-horizontal":`calc(100% - ${Z(a)})`,[`> ${r}-arrow`]:{right:{_skip_check_:!0,value:a}}}})),my(!!l.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":a,[`> ${r}-arrow`]:{left:{_skip_check_:!0,value:a}}},"&-placement-bottomRight":{"--arrow-offset-horizontal":`calc(100% - ${Z(a)})`,[`> ${r}-arrow`]:{right:{_skip_check_:!0,value:a}}}})),my(!!l.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:i},[`&-placement-leftBottom > ${r}-arrow`]:{bottom:i}})),my(!!l.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:i},[`&-placement-rightBottom > ${r}-arrow`]:{bottom:i}}))}}function V5e(e,t,n,r){if(r===!1)return{adjustX:!1,adjustY:!1};const o=r&&typeof r=="object"?r:{},i={};switch(e){case"top":case"bottom":i.shiftX=t.arrowOffsetHorizontal*2+n,i.shiftY=!0,i.adjustY=!0;break;case"left":case"right":i.shiftY=t.arrowOffsetVertical*2+n,i.shiftX=!0,i.adjustX=!0;break}const a=Object.assign(Object.assign({},i),o);return a.shiftX||(a.adjustX=!0),a.shiftY||(a.adjustY=!0),a}const iz={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"]}},W5e={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"]}},U5e=new Set(["topLeft","topRight","bottomLeft","bottomRight","leftTop","leftBottom","rightTop","rightBottom"]);function QJ(e){const{arrowWidth:t,autoAdjustOverflow:n,arrowPointAtCenter:r,offset:o,borderRadius:i,visibleFirst:a}=e,s=t/2,l={},u=VS({contentRadius:i,limitVerticalRadius:!0});return Object.keys(iz).forEach(d=>{const f=r&&W5e[d]||iz[d],m=Object.assign(Object.assign({},f),{offset:[0,0],dynamicInset:!0});switch(l[d]=m,U5e.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=V5e(d,u,t,n),a&&(m.htmlRegion="visibleFirst")}),l}const K5e=e=>{const{calc:t,componentCls:n,tooltipMaxWidth:r,tooltipColor:o,tooltipBg:i,tooltipBorderRadius:a,zIndexPopup:s,controlHeight:l,boxShadowSecondary:u,paddingSM:d,paddingXS:f,arrowOffsetHorizontal:m,sizePopupArrow:h}=e,p=t(a).add(h).add(m).equal(),b=t(a).mul(2).add(h).equal();return[{[n]:Object.assign(Object.assign(Object.assign(Object.assign({},xn(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":i,[`${n}-inner`]:{minWidth:b,minHeight:l,padding:`${Z(e.calc(d).div(2).equal())} ${Z(f)}`,color:`var(--ant-tooltip-color, ${o})`,textAlign:"start",textDecoration:"none",wordWrap:"break-word",backgroundColor:i,borderRadius:a,boxShadow:u,boxSizing:"border-box"},[["&-placement-topLeft","&-placement-topRight","&-placement-bottomLeft","&-placement-bottomRight"].join(",")]:{minWidth:p},[["&-placement-left","&-placement-leftTop","&-placement-leftBottom","&-placement-right","&-placement-rightTop","&-placement-rightBottom"].join(",")]:{[`${n}-inner`]:{borderRadius:e.min(a,JJ)}},[`${n}-content`]:{position:"relative"}}),yS(e,(v,{darkColor:y})=>({[`&${n}-${v}`]:{[`${n}-inner`]:{backgroundColor:y},[`${n}-arrow`]:{"--antd-arrow-background-color":y}}}))),{"&-rtl":{direction:"rtl"}})},AT(e,"var(--antd-arrow-background-color)"),{[`${n}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow}}]},q5e=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+70},VS({contentRadius:e.borderRadius,limitVerticalRadius:!0})),HS(cn(e,{borderRadiusOuter:Math.min(e.borderRadiusOuter,4)}))),eQ=(e,t=!0)=>vn("Tooltip",r=>{const{borderRadius:o,colorTextLightSolid:i,colorBgSpotlight:a}=r,s=cn(r,{tooltipMaxWidth:250,tooltipColor:i,tooltipBorderRadius:o,tooltipBg:a});return[K5e(s),Qv(r,"zoom-big-fast")]},q5e,{resetStyle:!1,injectStyle:t})(e),G5e=Jc.map(e=>`${e}-inverse`),X5e=["success","processing","error","default","warning"];function WS(e,t=!0){return t?[].concat(Ne(G5e),Ne(Jc)).includes(e):Jc.includes(e)}function Y5e(e){return X5e.includes(e)}function tQ(e,t){const n=WS(t),r=Q({[`${e}-${t}`]:t&&n}),o={},i={},a=qMe(t).toRgb(),l=(.299*a.r+.587*a.g+.114*a.b)/255<.5?"#FFF":"#000";return t&&!n&&(o.background=t,o["--ant-tooltip-color"]=l,i["--antd-arrow-background-color"]=t),{className:r,overlayStyle:o,arrowStyle:i}}const Z5e=e=>{const{prefixCls:t,className:n,placement:r="top",title:o,color:i,overlayInnerStyle:a}=e,{getPrefixCls:s}=c.useContext(kt),l=s("tooltip",t),[u,d,f]=eQ(l),m=tQ(l,i),h=m.arrowStyle,p=Object.assign(Object.assign({},a),m.overlayStyle),b=Q(d,f,l,`${l}-pure`,`${l}-placement-${r}`,n,m.className);return u(c.createElement("div",{className:b,style:h},c.createElement("div",{className:`${l}-arrow`}),c.createElement(kT,Object.assign({},e,{className:d,prefixCls:l,overlayInnerStyle:p}),o)))};var J5e=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 Q5e=c.forwardRef((e,t)=>{var n,r;const{prefixCls:o,openClassName:i,getTooltipContainer:a,color:s,overlayInnerStyle:l,children:u,afterOpenChange:d,afterVisibleChange:f,destroyTooltipOnHide:m,destroyOnHidden:h,arrow:p=!0,title:b,overlay:v,builtinPlacements:y,arrowPointAtCenter:x=!1,autoAdjustOverflow:w=!0,motion:C,getPopupContainer:S,placement:$="top",mouseEnterDelay:E=.1,mouseLeaveDelay:O=.1,overlayStyle:P,rootClassName:j,overlayClassName:I,styles:_,classNames:R}=e,N=J5e(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"]),A=!!p,[,M]=Xo(),{getPopupContainer:T,getPrefixCls:k,direction:D,className:L,style:B,classNames:H,styles:F}=Br("tooltip"),W=pu(),q=c.useRef(null),G=()=>{var Ce;(Ce=q.current)===null||Ce===void 0||Ce.forceAlign()};c.useImperativeHandle(t,()=>{var Ce,pe;return{forceAlign:G,forcePopupAlign:()=>{W.deprecated(!1,"forcePopupAlign","forceAlign"),G()},nativeElement:(Ce=q.current)===null||Ce===void 0?void 0:Ce.nativeElement,popupElement:(pe=q.current)===null||pe===void 0?void 0:pe.popupElement}});const[te,ee]=kn(!1,{value:(n=e.open)!==null&&n!==void 0?n:e.visible,defaultValue:(r=e.defaultOpen)!==null&&r!==void 0?r:e.defaultVisible}),z=!b&&!v&&b!==0,ne=Ce=>{var pe,_e;ee(z?!1:Ce),z||((pe=e.onOpenChange)===null||pe===void 0||pe.call(e,Ce),(_e=e.onVisibleChange)===null||_e===void 0||_e.call(e,Ce))},X=c.useMemo(()=>{var Ce,pe;let _e=x;return typeof p=="object"&&(_e=(pe=(Ce=p.pointAtCenter)!==null&&Ce!==void 0?Ce:p.arrowPointAtCenter)!==null&&pe!==void 0?pe:x),y||QJ({arrowPointAtCenter:_e,autoAdjustOverflow:w,arrowWidth:A?M.sizePopupArrow:0,borderRadius:M.borderRadius,offset:M.marginXXS,visibleFirst:!0})},[x,p,y,M]),U=c.useMemo(()=>b===0?b:v||b||"",[v,b]),le=c.createElement(Vs,{space:!0},typeof U=="function"?U():U),se=k("tooltip",o),ae=k(),re=e["data-popover-inject"];let fe=te;!("open"in e)&&!("visible"in e)&&z&&(fe=!1);const ye=c.isValidElement(u)&&!bZ(u)?u:c.createElement("span",null,u),Pe=ye.props,Oe=!Pe.className||typeof Pe.className=="string"?Q(Pe.className,i||`${se}-open`):Pe.className,[V,J,oe]=eQ(se,!re),de=tQ(se,s),be=de.arrowStyle,ge=Q(I,{[`${se}-rtl`]:D==="rtl"},de.className,j,J,oe,L,H.root,R==null?void 0:R.root),ie=Q(H.body,R==null?void 0:R.body),[he,xe]=vu("Tooltip",N.zIndex),Re=c.createElement(H5e,Object.assign({},N,{zIndex:he,showArrow:A,placement:$,mouseEnterDelay:E,mouseLeaveDelay:O,prefixCls:se,classNames:{root:ge,body:ie},styles:{root:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},be),F.root),B),P),_==null?void 0:_.root),body:Object.assign(Object.assign(Object.assign(Object.assign({},F.body),l),_==null?void 0:_.body),de.overlayStyle)},getTooltipContainer:S||a||T,ref:q,builtinPlacements:X,overlay:le,visible:fe,onVisibleChange:ne,afterVisibleChange:d??f,arrowContent:c.createElement("span",{className:`${se}-arrow-content`}),motion:{motionName:gl(ae,"zoom-big-fast",e.transitionName),motionDeadline:1e3},destroyTooltipOnHide:h??!!m}),fe?qr(ye,{className:Oe}):ye);return V(c.createElement(Yv.Provider,{value:xe},Re))}),us=Q5e;us._InternalPanelDoNotUseOrYouWillBeFired=Z5e;const eDe=e=>{const{componentCls:t,popoverColor:n,titleMinWidth:r,fontWeightStrong:o,innerPadding:i,boxShadowSecondary:a,colorTextHeading:s,borderRadiusLG:l,zIndexPopup:u,titleMarginBottom:d,colorBgElevated:f,popoverBg:m,titleBorderBottom:h,innerContentPadding:p,titlePadding:b}=e;return[{[t]:Object.assign(Object.assign({},xn(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:l,boxShadow:a,padding:i},[`${t}-title`]:{minWidth:r,marginBottom:d,color:s,fontWeight:o,borderBottom:h,padding:b},[`${t}-inner-content`]:{color:n,padding:p}})},AT(e,"var(--antd-arrow-background-color)"),{[`${t}-pure`]:{position:"relative",maxWidth:"none",margin:e.sizePopupArrow,display:"inline-block",[`${t}-content`]:{display:"inline-block"}}}]},tDe=e=>{const{componentCls:t}=e;return{[t]:Jc.map(n=>{const r=e[`${n}6`];return{[`&${t}-${n}`]:{"--antd-arrow-background-color":r,[`${t}-inner`]:{backgroundColor:r},[`${t}-arrow`]:{background:"transparent"}}}})}},nDe=e=>{const{lineWidth:t,controlHeight:n,fontHeight:r,padding:o,wireframe:i,zIndexPopupBase:a,borderRadiusLG:s,marginXS:l,lineType:u,colorSplit:d,paddingSM:f}=e,m=n-r,h=m/2,p=m/2-t,b=o;return Object.assign(Object.assign(Object.assign({titleMinWidth:177,zIndexPopup:a+30},HS(e)),VS({contentRadius:s,limitVerticalRadius:!0})),{innerPadding:i?0:12,titleMarginBottom:i?0:l,titlePadding:i?`${h}px ${b}px ${p}px`:0,titleBorderBottom:i?`${t}px ${u} ${d}`:"none",innerContentPadding:i?`${f}px ${b}px`:0})},nQ=vn("Popover",e=>{const{colorBgElevated:t,colorText:n}=e,r=cn(e,{popoverBg:t,popoverColor:n});return[eDe(r),tDe(r),Qv(r,"zoom-big")]},nDe,{resetStyle:!1,deprecatedTokens:[["width","titleMinWidth"],["minWidth","titleMinWidth"]]});var rDe=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=({title:e,content:t,prefixCls:n})=>!e&&!t?null:c.createElement(c.Fragment,null,e&&c.createElement("div",{className:`${n}-title`},e),t&&c.createElement("div",{className:`${n}-inner-content`},t)),oDe=e=>{const{hashId:t,prefixCls:n,className:r,style:o,placement:i="top",title:a,content:s,children:l}=e,u=Um(a),d=Um(s),f=Q(t,n,`${n}-pure`,`${n}-placement-${i}`,r);return c.createElement("div",{className:f,style:o},c.createElement("div",{className:`${n}-arrow`}),c.createElement(kT,Object.assign({},e,{className:t,prefixCls:n}),l||c.createElement(rQ,{prefixCls:n,title:u,content:d})))},oQ=e=>{const{prefixCls:t,className:n}=e,r=rDe(e,["prefixCls","className"]),{getPrefixCls:o}=c.useContext(kt),i=o("popover",t),[a,s,l]=nQ(i);return a(c.createElement(oDe,Object.assign({},r,{prefixCls:i,hashId:s,className:Q(n,l)})))};var iDe=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 aDe=c.forwardRef((e,t)=>{var n,r;const{prefixCls:o,title:i,content:a,overlayClassName:s,placement:l="top",trigger:u="hover",children:d,mouseEnterDelay:f=.1,mouseLeaveDelay:m=.1,onOpenChange:h,overlayStyle:p={},styles:b,classNames:v}=e,y=iDe(e,["prefixCls","title","content","overlayClassName","placement","trigger","children","mouseEnterDelay","mouseLeaveDelay","onOpenChange","overlayStyle","styles","classNames"]),{getPrefixCls:x,className:w,style:C,classNames:S,styles:$}=Br("popover"),E=x("popover",o),[O,P,j]=nQ(E),I=x(),_=Q(s,P,j,w,S.root,v==null?void 0:v.root),R=Q(S.body,v==null?void 0:v.body),[N,A]=kn(!1,{value:(n=e.open)!==null&&n!==void 0?n:e.visible,defaultValue:(r=e.defaultOpen)!==null&&r!==void 0?r:e.defaultVisible}),M=(B,H)=>{A(B,!0),h==null||h(B,H)},T=B=>{B.keyCode===jt.ESC&&M(!1,B)},k=B=>{M(B)},D=Um(i),L=Um(a);return O(c.createElement(us,Object.assign({placement:l,trigger:u,mouseEnterDelay:f,mouseLeaveDelay:m},y,{prefixCls:E,classNames:{root:_,body:R},styles:{root:Object.assign(Object.assign(Object.assign(Object.assign({},$.root),C),p),b==null?void 0:b.root),body:Object.assign(Object.assign({},$.body),b==null?void 0:b.body)},ref:t,open:N,onOpenChange:k,overlay:D||L?c.createElement(rQ,{prefixCls:E,title:D,content:L}):null,transitionName:gl(I,"zoom-big",y.transitionName),"data-popover-inject":!0}),qr(d,{onKeyDown:B=>{var H,F;c.isValidElement(d)&&((F=d==null?void 0:(H=d.props).onKeyDown)===null||F===void 0||F.call(H,B)),T(B)}})))}),US=aDe;US._InternalPanelDoNotUseOrYouWillBeFired=oQ;const az=e=>{const{size:t,shape:n}=c.useContext(Cj),r=c.useMemo(()=>({size:e.size||t,shape:e.shape||n}),[e.size,e.shape,t,n]);return c.createElement(Cj.Provider,{value:r},e.children)},sDe=e=>{var t,n,r,o;const{getPrefixCls:i,direction:a}=c.useContext(kt),{prefixCls:s,className:l,rootClassName:u,style:d,maxCount:f,maxStyle:m,size:h,shape:p,maxPopoverPlacement:b,maxPopoverTrigger:v,children:y,max:x}=e,w=i("avatar",s),C=`${w}-group`,S=Hr(w),[$,E,O]=XJ(w,S),P=Q(C,{[`${C}-rtl`]:a==="rtl"},O,S,l,u,E),j=ii(y).map((R,N)=>qr(R,{key:`avatar-key-${N}`})),I=(x==null?void 0:x.count)||f,_=j.length;if(I&&I<_){const R=j.slice(0,I),N=j.slice(I,_),A=(x==null?void 0:x.style)||m,M=((t=x==null?void 0:x.popover)===null||t===void 0?void 0:t.trigger)||v||"hover",T=((n=x==null?void 0:x.popover)===null||n===void 0?void 0:n.placement)||b||"top",k=Object.assign(Object.assign({content:N},x==null?void 0:x.popover),{classNames:{root:Q(`${C}-popover`,(o=(r=x==null?void 0:x.popover)===null||r===void 0?void 0:r.classNames)===null||o===void 0?void 0:o.root)},placement:T,trigger:M});return R.push(c.createElement(US,Object.assign({key:"avatar-popover-key",destroyOnHidden:!0},k),c.createElement(YJ,{style:A},`+${_-I}`))),$(c.createElement(az,{shape:p,size:h},c.createElement("div",{className:P,style:d},R)))}return $(c.createElement(az,{shape:p,size:h},c.createElement("div",{className:P,style:d},j)))},Ja=YJ;Ja.Group=sDe;const lDe=new gn("antStatusProcessing",{"0%":{transform:"scale(0.8)",opacity:.5},"100%":{transform:"scale(2.4)",opacity:0}}),cDe=new gn("antZoomBadgeIn",{"0%":{transform:"scale(0) translate(50%, -50%)",opacity:0},"100%":{transform:"scale(1) translate(50%, -50%)"}}),uDe=new gn("antZoomBadgeOut",{"0%":{transform:"scale(1) translate(50%, -50%)"},"100%":{transform:"scale(0) translate(50%, -50%)",opacity:0}}),dDe=new gn("antNoWrapperZoomBadgeIn",{"0%":{transform:"scale(0)",opacity:0},"100%":{transform:"scale(1)"}}),fDe=new gn("antNoWrapperZoomBadgeOut",{"0%":{transform:"scale(1)"},"100%":{transform:"scale(0)",opacity:0}}),mDe=new gn("antBadgeLoadingCircle",{"0%":{transformOrigin:"50%"},"100%":{transform:"translate(50%, -50%) rotate(360deg)",transformOrigin:"50%"}}),hDe=e=>{const{componentCls:t,iconCls:n,antCls:r,badgeShadowSize:o,textFontSize:i,textFontSizeSM:a,statusSize:s,dotSize:l,textFontWeight:u,indicatorHeight:d,indicatorHeightSM:f,marginXS:m,calc:h}=e,p=`${r}-scroll-number`,b=yS(e,(v,{darkColor:y})=>({[`&${t} ${t}-color-${v}`]:{background:y,[`&:not(${t}-count)`]:{color:y},"a:hover &":{background:y}}}));return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},xn(e)),{position:"relative",display:"inline-block",width:"fit-content",lineHeight:1,[`${t}-count`]:{display:"inline-flex",justifyContent:"center",zIndex:e.indicatorZIndex,minWidth:d,height:d,color:e.badgeTextColor,fontWeight:u,fontSize:i,lineHeight:Z(d),whiteSpace:"nowrap",textAlign:"center",background:e.badgeColor,borderRadius:h(d).div(2).equal(),boxShadow:`0 0 0 ${Z(o)} ${e.badgeShadowColor}`,transition:`background ${e.motionDurationMid}`,a:{color:e.badgeTextColor},"a:hover":{color:e.badgeTextColor},"a:hover &":{background:e.badgeColorHover}},[`${t}-count-sm`]:{minWidth:f,height:f,fontSize:a,lineHeight:Z(f),borderRadius:h(f).div(2).equal()},[`${t}-multiple-words`]:{padding:`0 ${Z(e.paddingXS)}`,bdi:{unicodeBidi:"plaintext"}},[`${t}-dot`]:{zIndex:e.indicatorZIndex,width:l,minWidth:l,height:l,background:e.badgeColor,borderRadius:"100%",boxShadow:`0 0 0 ${Z(o)} ${e.badgeShadowColor}`},[`${t}-count, ${t}-dot, ${p}-custom-component`]:{position:"absolute",top:0,insetInlineEnd:0,transform:"translate(50%, -50%)",transformOrigin:"100% 0%",[`&${n}-spin`]:{animationName:mDe,animationDuration:"1s",animationIterationCount:"infinite",animationTimingFunction:"linear"}},[`&${t}-status`]:{lineHeight:"inherit",verticalAlign:"baseline",[`${t}-status-dot`]:{position:"relative",top:-1,display:"inline-block",width:s,height:s,verticalAlign:"middle",borderRadius:"50%"},[`${t}-status-success`]:{backgroundColor:e.colorSuccess},[`${t}-status-processing`]:{overflow:"visible",color:e.colorInfo,backgroundColor:e.colorInfo,borderColor:"currentcolor","&::after":{position:"absolute",top:0,insetInlineStart:0,width:"100%",height:"100%",borderWidth:o,borderStyle:"solid",borderColor:"inherit",borderRadius:"50%",animationName:lDe,animationDuration:e.badgeProcessingDuration,animationIterationCount:"infinite",animationTimingFunction:"ease-in-out",content:'""'}},[`${t}-status-default`]:{backgroundColor:e.colorTextPlaceholder},[`${t}-status-error`]:{backgroundColor:e.colorError},[`${t}-status-warning`]:{backgroundColor:e.colorWarning},[`${t}-status-text`]:{marginInlineStart:m,color:e.colorText,fontSize:e.fontSize}}}),b),{[`${t}-zoom-appear, ${t}-zoom-enter`]:{animationName:cDe,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack,animationFillMode:"both"},[`${t}-zoom-leave`]:{animationName:uDe,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack,animationFillMode:"both"},[`&${t}-not-a-wrapper`]:{[`${t}-zoom-appear, ${t}-zoom-enter`]:{animationName:dDe,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack},[`${t}-zoom-leave`]:{animationName:fDe,animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseOutBack},[`&:not(${t}-status)`]:{verticalAlign:"middle"},[`${p}-custom-component, ${t}-count`]:{transform:"none"},[`${p}-custom-component, ${p}`]:{position:"relative",top:"auto",display:"block",transformOrigin:"50% 50%"}},[p]:{overflow:"hidden",transition:`all ${e.motionDurationMid} ${e.motionEaseOutBack}`,[`${p}-only`]:{position:"relative",display:"inline-block",height:d,transition:`all ${e.motionDurationSlow} ${e.motionEaseOutBack}`,WebkitTransformStyle:"preserve-3d",WebkitBackfaceVisibility:"hidden",[`> p${p}-only-unit`]:{height:d,margin:0,WebkitTransformStyle:"preserve-3d",WebkitBackfaceVisibility:"hidden"}},[`${p}-symbol`]:{verticalAlign:"top"}},"&-rtl":{direction:"rtl",[`${t}-count, ${t}-dot, ${p}-custom-component`]:{transform:"translate(-50%, -50%)"}}})}},iQ=e=>{const{fontHeight:t,lineWidth:n,marginXS:r,colorBorderBg:o}=e,i=t,a=n,s=e.colorTextLightSolid,l=e.colorError,u=e.colorErrorHover;return cn(e,{badgeFontHeight:i,badgeShadowSize:a,badgeTextColor:s,badgeColor:l,badgeColorHover:u,badgeShadowColor:o,badgeProcessingDuration:"1.2s",badgeRibbonOffset:r,badgeRibbonCornerTransform:"scaleY(0.75)",badgeRibbonCornerFilter:"brightness(75%)"})},aQ=e=>{const{fontSize:t,lineHeight:n,fontSizeSM:r,lineWidth:o}=e;return{indicatorZIndex:"auto",indicatorHeight:Math.round(t*n)-2*o,indicatorHeightSM:t,dotSize:r/2,textFontSize:r,textFontSizeSM:r,textFontWeight:"normal",statusSize:r/2}},pDe=vn("Badge",e=>{const t=iQ(e);return hDe(t)},aQ),gDe=e=>{const{antCls:t,badgeFontHeight:n,marginXS:r,badgeRibbonOffset:o,calc:i}=e,a=`${t}-ribbon`,s=`${t}-ribbon-wrapper`,l=yS(e,(u,{darkColor:d})=>({[`&${a}-color-${u}`]:{background:d,color:d}}));return{[s]:{position:"relative"},[a]:Object.assign(Object.assign(Object.assign(Object.assign({},xn(e)),{position:"absolute",top:r,padding:`0 ${Z(e.paddingXS)}`,color:e.colorPrimary,lineHeight:Z(n),whiteSpace:"nowrap",backgroundColor:e.colorPrimary,borderRadius:e.borderRadiusSM,[`${a}-text`]:{color:e.badgeTextColor},[`${a}-corner`]:{position:"absolute",top:"100%",width:o,height:o,color:"currentcolor",border:`${Z(i(o).div(2).equal())} solid`,transform:e.badgeRibbonCornerTransform,transformOrigin:"top",filter:e.badgeRibbonCornerFilter}}),l),{[`&${a}-placement-end`]:{insetInlineEnd:i(o).mul(-1).equal(),borderEndEndRadius:0,[`${a}-corner`]:{insetInlineEnd:0,borderInlineEndColor:"transparent",borderBlockEndColor:"transparent"}},[`&${a}-placement-start`]:{insetInlineStart:i(o).mul(-1).equal(),borderEndStartRadius:0,[`${a}-corner`]:{insetInlineStart:0,borderBlockEndColor:"transparent",borderInlineStartColor:"transparent"}},"&-rtl":{direction:"rtl"}})}},vDe=vn(["Badge","Ribbon"],e=>{const t=iQ(e);return gDe(t)},aQ),yDe=e=>{const{className:t,prefixCls:n,style:r,color:o,children:i,text:a,placement:s="end",rootClassName:l}=e,{getPrefixCls:u,direction:d}=c.useContext(kt),f=u("ribbon",n),m=`${f}-wrapper`,[h,p,b]=vDe(f,m),v=WS(o,!1),y=Q(f,`${f}-placement-${s}`,{[`${f}-rtl`]:d==="rtl",[`${f}-color-${o}`]:v},t),x={},w={};return o&&!v&&(x.background=o,w.color=o),h(c.createElement("div",{className:Q(m,l,p,b)},i,c.createElement("div",{className:Q(y,p),style:Object.assign(Object.assign({},x),r)},c.createElement("span",{className:`${f}-text`},a),c.createElement("div",{className:`${f}-corner`,style:w}))))},sz=e=>{const{prefixCls:t,value:n,current:r,offset:o=0}=e;let i;return o&&(i={position:"absolute",top:`${o}00%`,left:0}),c.createElement("span",{style:i,className:Q(`${t}-only-unit`,{current:r})},n)};function bDe(e,t,n){let r=e,o=0;for(;(r+10)%10!==t;)r+=n,o+=n;return o}const xDe=e=>{const{prefixCls:t,count:n,value:r}=e,o=Number(r),i=Math.abs(n),[a,s]=c.useState(o),[l,u]=c.useState(i),d=()=>{s(o),u(i)};c.useEffect(()=>{const h=setTimeout(d,1e3);return()=>clearTimeout(h)},[o]);let f,m;if(a===o||Number.isNaN(o)||Number.isNaN(a))f=[c.createElement(sz,Object.assign({},e,{key:o,current:!0}))],m={transition:"none"};else{f=[];const h=o+10,p=[];for(let x=o;x<=h;x+=1)p.push(x);const b=l<i?1:-1,v=p.findIndex(x=>x%10===a);f=(b<0?p.slice(0,v+1):p.slice(v)).map((x,w)=>{const C=x%10;return c.createElement(sz,Object.assign({},e,{key:x,value:C,offset:b<0?w-v:w,current:w===v}))}),m={transform:`translateY(${-bDe(a,o,b)}00%)`}}return c.createElement("span",{className:`${t}-only`,style:m,onTransitionEnd:d},f)};var wDe=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 SDe=c.forwardRef((e,t)=>{const{prefixCls:n,count:r,className:o,motionClassName:i,style:a,title:s,show:l,component:u="sup",children:d}=e,f=wDe(e,["prefixCls","count","className","motionClassName","style","title","show","component","children"]),{getPrefixCls:m}=c.useContext(kt),h=m("scroll-number",n),p=Object.assign(Object.assign({},f),{"data-show":l,style:a,className:Q(h,o,i),title:s});let b=r;if(r&&Number(r)%1===0){const v=String(r).split("");b=c.createElement("bdi",null,v.map((y,x)=>c.createElement(xDe,{prefixCls:h,count:Number(r),value:y,key:v.length-x})))}return a!=null&&a.borderColor&&(p.style=Object.assign(Object.assign({},a),{boxShadow:`0 0 0 1px ${a.borderColor} inset`})),d?qr(d,v=>({className:Q(`${h}-custom-component`,v==null?void 0:v.className,i)})):c.createElement(u,Object.assign({},p,{ref:t}),b)});var CDe=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 $De=c.forwardRef((e,t)=>{var n,r,o,i,a;const{prefixCls:s,scrollNumberPrefixCls:l,children:u,status:d,text:f,color:m,count:h=null,overflowCount:p=99,dot:b=!1,size:v="default",title:y,offset:x,style:w,className:C,rootClassName:S,classNames:$,styles:E,showZero:O=!1}=e,P=CDe(e,["prefixCls","scrollNumberPrefixCls","children","status","text","color","count","overflowCount","dot","size","title","offset","style","className","rootClassName","classNames","styles","showZero"]),{getPrefixCls:j,direction:I,badge:_}=c.useContext(kt),R=j("badge",s),[N,A,M]=pDe(R),T=h>p?`${p}+`:h,k=T==="0"||T===0||f==="0"||f===0,D=h===null||k&&!O,L=(d!=null||m!=null)&&D,B=d!=null||!k,H=b&&!k,F=H?"":T,W=c.useMemo(()=>((F==null||F==="")&&(f==null||f==="")||k&&!O)&&!H,[F,k,O,H,f]),q=c.useRef(h);W||(q.current=h);const G=q.current,te=c.useRef(F);W||(te.current=F);const ee=te.current,z=c.useRef(H);W||(z.current=H);const ne=c.useMemo(()=>{if(!x)return Object.assign(Object.assign({},_==null?void 0:_.style),w);const Pe={marginTop:x[1]};return I==="rtl"?Pe.left=Number.parseInt(x[0],10):Pe.right=-Number.parseInt(x[0],10),Object.assign(Object.assign(Object.assign({},Pe),_==null?void 0:_.style),w)},[I,x,w,_==null?void 0:_.style]),X=y??(typeof G=="string"||typeof G=="number"?G:void 0),U=!W&&(f===0?O:!!f&&f!==!0),le=U?c.createElement("span",{className:`${R}-status-text`},f):null,se=!G||typeof G!="object"?void 0:qr(G,Pe=>({style:Object.assign(Object.assign({},ne),Pe.style)})),ae=WS(m,!1),re=Q($==null?void 0:$.indicator,(n=_==null?void 0:_.classNames)===null||n===void 0?void 0:n.indicator,{[`${R}-status-dot`]:L,[`${R}-status-${d}`]:!!d,[`${R}-color-${m}`]:ae}),fe={};m&&!ae&&(fe.color=m,fe.background=m);const ye=Q(R,{[`${R}-status`]:L,[`${R}-not-a-wrapper`]:!u,[`${R}-rtl`]:I==="rtl"},C,S,_==null?void 0:_.className,(r=_==null?void 0:_.classNames)===null||r===void 0?void 0:r.root,$==null?void 0:$.root,A,M);if(!u&&L&&(f||B||!D)){const Pe=ne.color;return N(c.createElement("span",Object.assign({},P,{className:ye,style:Object.assign(Object.assign(Object.assign({},E==null?void 0:E.root),(o=_==null?void 0:_.styles)===null||o===void 0?void 0:o.root),ne)}),c.createElement("span",{className:re,style:Object.assign(Object.assign(Object.assign({},E==null?void 0:E.indicator),(i=_==null?void 0:_.styles)===null||i===void 0?void 0:i.indicator),fe)}),U&&c.createElement("span",{style:{color:Pe},className:`${R}-status-text`},f)))}return N(c.createElement("span",Object.assign({ref:t},P,{className:ye,style:Object.assign(Object.assign({},(a=_==null?void 0:_.styles)===null||a===void 0?void 0:a.root),E==null?void 0:E.root)}),u,c.createElement(si,{visible:!W,motionName:`${R}-zoom`,motionAppear:!1,motionDeadline:1e3},({className:Pe})=>{var Oe,V;const J=j("scroll-number",l),oe=z.current,de=Q($==null?void 0:$.indicator,(Oe=_==null?void 0:_.classNames)===null||Oe===void 0?void 0:Oe.indicator,{[`${R}-dot`]:oe,[`${R}-count`]:!oe,[`${R}-count-sm`]:v==="small",[`${R}-multiple-words`]:!oe&&ee&&ee.toString().length>1,[`${R}-status-${d}`]:!!d,[`${R}-color-${m}`]:ae});let be=Object.assign(Object.assign(Object.assign({},E==null?void 0:E.indicator),(V=_==null?void 0:_.styles)===null||V===void 0?void 0:V.indicator),ne);return m&&!ae&&(be=be||{},be.background=m),c.createElement(SDe,{prefixCls:J,show:!W,motionClassName:Pe,className:de,count:ee,title:X,style:be,key:"scrollNumber"},se)}),le))}),Km=$De;Km.Ribbon=yDe;var EDe={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"},ODe=function(t,n){return c.createElement(yn,Ee({},t,{ref:n,icon:EDe}))},Yg=c.forwardRef(ODe),PDe=jt.ESC,jDe=jt.TAB;function IDe(e){var t=e.visible,n=e.triggerRef,r=e.onVisibleChange,o=e.autoFocus,i=e.overlayRef,a=c.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)}},l=function(){var f;return(f=i.current)!==null&&f!==void 0&&f.focus?(i.current.focus(),a.current=!0,!0):!1},u=function(f){switch(f.keyCode){case PDe:s();break;case jDe:{var m=!1;a.current||(m=l()),m?f.preventDefault():s();break}}};c.useEffect(function(){return t?(window.addEventListener("keydown",u),o&&ln(l,3),function(){window.removeEventListener("keydown",u),a.current=!1}):function(){a.current=!1}},[t])}var _De=c.forwardRef(function(e,t){var n=e.overlay,r=e.arrow,o=e.prefixCls,i=c.useMemo(function(){var s;return typeof n=="function"?s=n():s=n,s},[n]),a=po(t,hu(i));return ce.createElement(ce.Fragment,null,r&&ce.createElement("div",{className:"".concat(o,"-arrow")}),ce.cloneElement(i,{ref:Fs(i)?a:void 0}))}),yf={adjustX:1,adjustY:1},bf=[0,0],NDe={topLeft:{points:["bl","tl"],overflow:yf,offset:[0,-4],targetOffset:bf},top:{points:["bc","tc"],overflow:yf,offset:[0,-4],targetOffset:bf},topRight:{points:["br","tr"],overflow:yf,offset:[0,-4],targetOffset:bf},bottomLeft:{points:["tl","bl"],overflow:yf,offset:[0,4],targetOffset:bf},bottom:{points:["tc","bc"],overflow:yf,offset:[0,4],targetOffset:bf},bottomRight:{points:["tr","br"],overflow:yf,offset:[0,4],targetOffset:bf}},RDe=["arrow","prefixCls","transitionName","animation","align","placement","placements","getPopupContainer","showAction","hideAction","overlayClassName","overlayStyle","visible","trigger","autoFocus","overlay","children","onVisibleChange"];function TDe(e,t){var n,r=e.arrow,o=r===void 0?!1:r,i=e.prefixCls,a=i===void 0?"rc-dropdown":i,s=e.transitionName,l=e.animation,u=e.align,d=e.placement,f=d===void 0?"bottomLeft":d,m=e.placements,h=m===void 0?NDe:m,p=e.getPopupContainer,b=e.showAction,v=e.hideAction,y=e.overlayClassName,x=e.overlayStyle,w=e.visible,C=e.trigger,S=C===void 0?["hover"]:C,$=e.autoFocus,E=e.overlay,O=e.children,P=e.onVisibleChange,j=Ht(e,RDe),I=ce.useState(),_=ue(I,2),R=_[0],N=_[1],A="visible"in e?w:R,M=ce.useRef(null),T=ce.useRef(null),k=ce.useRef(null);ce.useImperativeHandle(t,function(){return M.current});var D=function(ee){N(ee),P==null||P(ee)};IDe({visible:A,triggerRef:k,onVisibleChange:D,autoFocus:$,overlayRef:T});var L=function(ee){var z=e.onOverlayClick;N(!1),z&&z(ee)},B=function(){return ce.createElement(_De,{ref:T,overlay:E,prefixCls:a,arrow:o})},H=function(){return typeof E=="function"?B:B()},F=function(){var ee=e.minOverlayWidthMatchTrigger,z=e.alignPoint;return"minOverlayWidthMatchTrigger"in e?ee:!z},W=function(){var ee=e.openClassName;return ee!==void 0?ee:"".concat(a,"-open")},q=ce.cloneElement(O,{className:Q((n=O.props)===null||n===void 0?void 0:n.className,A&&W()),ref:Fs(O)?po(k,hu(O)):void 0}),G=v;return!G&&S.indexOf("contextMenu")!==-1&&(G=["click"]),ce.createElement(i0,Ee({builtinPlacements:h},j,{prefixCls:a,ref:M,popupClassName:Q(y,K({},"".concat(a,"-show-arrow"),o)),popupStyle:x,action:S,showAction:b,hideAction:G,popupPlacement:f,popupAlign:u,popupTransitionName:s,popupAnimation:l,popupVisible:A,stretch:F()?"minWidth":"",popup:H(),onPopupVisibleChange:D,onPopupClick:L,getPopupContainer:p}),q)}const sQ=ce.forwardRef(TDe),MDe=e=>typeof e!="object"&&typeof e!="function"||e===null;var lQ=c.createContext(null);function cQ(e,t){return e===void 0?null:"".concat(e,"-").concat(t)}function uQ(e){var t=c.useContext(lQ);return cQ(t,e)}var kDe=["children","locked"],Ws=c.createContext(null);function ADe(e,t){var n=Y({},e);return Object.keys(t).forEach(function(r){var o=t[r];o!==void 0&&(n[r]=o)}),n}function Zg(e){var t=e.children,n=e.locked,r=Ht(e,kDe),o=c.useContext(Ws),i=qd(function(){return ADe(o,r)},[o,r],function(a,s){return!n&&(a[0]!==s[0]||!ml(a[1],s[1],!0))});return c.createElement(Ws.Provider,{value:i},t)}var DDe=[],dQ=c.createContext(null);function KS(){return c.useContext(dQ)}var fQ=c.createContext(DDe);function $h(e){var t=c.useContext(fQ);return c.useMemo(function(){return e!==void 0?[].concat(Ne(t),[e]):t},[t,e])}var mQ=c.createContext(null),DT=c.createContext({});function lz(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;if(xh(e)){var n=e.nodeName.toLowerCase(),r=["input","select","textarea","button"].includes(n)||e.isContentEditable||n==="a"&&!!e.getAttribute("href"),o=e.getAttribute("tabindex"),i=Number(o),a=null;return o&&!Number.isNaN(i)?a=i:r&&a===null&&(a=0),r&&e.disabled&&(a=null),a!==null&&(a>=0||t&&a<0)}return!1}function LDe(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=Ne(e.querySelectorAll("*")).filter(function(r){return lz(r,t)});return lz(e,t)&&n.unshift(e),n}var $j=jt.LEFT,Ej=jt.RIGHT,Oj=jt.UP,hb=jt.DOWN,pb=jt.ENTER,hQ=jt.ESC,sp=jt.HOME,lp=jt.END,cz=[Oj,hb,$j,Ej];function zDe(e,t,n,r){var o,i="prev",a="next",s="children",l="parent";if(e==="inline"&&r===pb)return{inlineTrigger:!0};var u=K(K({},Oj,i),hb,a),d=K(K(K(K({},$j,n?a:i),Ej,n?i:a),hb,s),pb,s),f=K(K(K(K(K(K({},Oj,i),hb,a),pb,s),hQ,l),$j,n?s:l),Ej,n?l:s),m={inline:u,horizontal:d,vertical:f,inlineSub:u,horizontalSub:f,verticalSub:f},h=(o=m["".concat(e).concat(t?"":"Sub")])===null||o===void 0?void 0:o[r];switch(h){case i:return{offset:-1,sibling:!0};case a:return{offset:1,sibling:!0};case l:return{offset:-1,sibling:!1};case s:return{offset:1,sibling:!1};default:return null}}function FDe(e){for(var t=e;t;){if(t.getAttribute("data-menu-list"))return t;t=t.parentElement}return null}function BDe(e,t){for(var n=e||document.activeElement;n;){if(t.has(n))return n;n=n.parentElement}return null}function LT(e,t){var n=LDe(e,!0);return n.filter(function(r){return t.has(r)})}function uz(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:1;if(!e)return null;var o=LT(e,t),i=o.length,a=o.findIndex(function(s){return n===s});return r<0?a===-1?a=i-1:a-=1:r>0&&(a+=1),a=(a+i)%i,o[a]}var Pj=function(t,n){var r=new Set,o=new Map,i=new Map;return t.forEach(function(a){var s=document.querySelector("[data-menu-id='".concat(cQ(n,a),"']"));s&&(r.add(s),i.set(s,a),o.set(a,s))}),{elements:r,key2element:o,element2key:i}};function HDe(e,t,n,r,o,i,a,s,l,u){var d=c.useRef(),f=c.useRef();f.current=t;var m=function(){ln.cancel(d.current)};return c.useEffect(function(){return function(){m()}},[]),function(h){var p=h.which;if([].concat(cz,[pb,hQ,sp,lp]).includes(p)){var b=i(),v=Pj(b,r),y=v,x=y.elements,w=y.key2element,C=y.element2key,S=w.get(t),$=BDe(S,x),E=C.get($),O=zDe(e,a(E,!0).length===1,n,p);if(!O&&p!==sp&&p!==lp)return;(cz.includes(p)||[sp,lp].includes(p))&&h.preventDefault();var P=function(T){if(T){var k=T,D=T.querySelector("a");D!=null&&D.getAttribute("href")&&(k=D);var L=C.get(T);s(L),m(),d.current=ln(function(){f.current===L&&k.focus()})}};if([sp,lp].includes(p)||O.sibling||!$){var j;!$||e==="inline"?j=o.current:j=FDe($);var I,_=LT(j,x);p===sp?I=_[0]:p===lp?I=_[_.length-1]:I=uz(j,x,$,O.offset),P(I)}else if(O.inlineTrigger)l(E);else if(O.offset>0)l(E,!0),m(),d.current=ln(function(){v=Pj(b,r);var M=$.getAttribute("aria-controls"),T=document.getElementById(M),k=uz(T,v.elements);P(k)},5);else if(O.offset<0){var R=a(E,!0),N=R[R.length-2],A=w.get(N);l(N,!1),P(A)}}u==null||u(h)}}function VDe(e){Promise.resolve().then(e)}var zT="__RC_UTIL_PATH_SPLIT__",dz=function(t){return t.join(zT)},WDe=function(t){return t.split(zT)},jj="rc-menu-more";function UDe(){var e=c.useState({}),t=ue(e,2),n=t[1],r=c.useRef(new Map),o=c.useRef(new Map),i=c.useState([]),a=ue(i,2),s=a[0],l=a[1],u=c.useRef(0),d=c.useRef(!1),f=function(){d.current||n({})},m=c.useCallback(function(w,C){var S=dz(C);o.current.set(S,w),r.current.set(w,S),u.current+=1;var $=u.current;VDe(function(){$===u.current&&f()})},[]),h=c.useCallback(function(w,C){var S=dz(C);o.current.delete(S),r.current.delete(w)},[]),p=c.useCallback(function(w){l(w)},[]),b=c.useCallback(function(w,C){var S=r.current.get(w)||"",$=WDe(S);return C&&s.includes($[0])&&$.unshift(jj),$},[s]),v=c.useCallback(function(w,C){return w.filter(function(S){return S!==void 0}).some(function(S){var $=b(S,!0);return $.includes(C)})},[b]),y=function(){var C=Ne(r.current.keys());return s.length&&C.push(jj),C},x=c.useCallback(function(w){var C="".concat(r.current.get(w)).concat(zT),S=new Set;return Ne(o.current.keys()).forEach(function($){$.startsWith(C)&&S.add(o.current.get($))}),S},[]);return c.useEffect(function(){return function(){d.current=!0}},[]),{registerPath:m,unregisterPath:h,refreshOverflowKeys:p,isSubPathKey:v,getKeyPath:b,getKeys:y,getSubPathKeys:x}}function $p(e){var t=c.useRef(e);t.current=e;var n=c.useCallback(function(){for(var r,o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return(r=t.current)===null||r===void 0?void 0:r.call.apply(r,[t].concat(i))},[]);return e?n:void 0}var KDe=Math.random().toFixed(5).toString().slice(2),fz=0;function qDe(e){var t=kn(e,{value:e}),n=ue(t,2),r=n[0],o=n[1];return c.useEffect(function(){fz+=1;var i="".concat(KDe,"-").concat(fz);o("rc-menu-uuid-".concat(i))},[]),r}function pQ(e,t,n,r){var o=c.useContext(Ws),i=o.activeKey,a=o.onActive,s=o.onInactive,l={active:i===e};return t||(l.onMouseEnter=function(u){n==null||n({key:e,domEvent:u}),a(e)},l.onMouseLeave=function(u){r==null||r({key:e,domEvent:u}),s(e)}),l}function gQ(e){var t=c.useContext(Ws),n=t.mode,r=t.rtl,o=t.inlineIndent;if(n!=="inline")return null;var i=e;return r?{paddingRight:i*o}:{paddingLeft:i*o}}function vQ(e){var t=e.icon,n=e.props,r=e.children,o;return t===null||t===!1?null:(typeof t=="function"?o=c.createElement(t,Y({},n)):typeof t!="boolean"&&(o=t),o||r||null)}var GDe=["item"];function i1(e){var t=e.item,n=Ht(e,GDe);return Object.defineProperty(n,"item",{get:function(){return ir(!1,"`info.item` is deprecated since we will move to function component that not provides React Node instance in future."),t}}),n}var XDe=["title","attribute","elementRef"],YDe=["style","className","eventKey","warnKey","disabled","itemIcon","children","role","onMouseEnter","onMouseLeave","onClick","onKeyDown","onFocus"],ZDe=["active"],JDe=function(e){Ta(n,e);var t=gs(n);function n(){return lr(this,n),t.apply(this,arguments)}return cr(n,[{key:"render",value:function(){var o=this.props,i=o.title,a=o.attribute,s=o.elementRef,l=Ht(o,XDe),u=Xn(l,["eventKey","popupClassName","popupOffset","onTitleClick"]);return ir(!a,"`attribute` of Menu.Item is deprecated. Please pass attribute directly."),c.createElement(ks.Item,Ee({},a,{title:typeof i=="string"?i:void 0},u,{ref:s}))}}]),n}(c.Component),QDe=c.forwardRef(function(e,t){var n=e.style,r=e.className,o=e.eventKey;e.warnKey;var i=e.disabled,a=e.itemIcon,s=e.children,l=e.role,u=e.onMouseEnter,d=e.onMouseLeave,f=e.onClick,m=e.onKeyDown,h=e.onFocus,p=Ht(e,YDe),b=uQ(o),v=c.useContext(Ws),y=v.prefixCls,x=v.onItemClick,w=v.disabled,C=v.overflowDisabled,S=v.itemIcon,$=v.selectedKeys,E=v.onActive,O=c.useContext(DT),P=O._internalRenderMenuItem,j="".concat(y,"-item"),I=c.useRef(),_=c.useRef(),R=w||i,N=xl(t,_),A=$h(o),M=function(z){return{key:o,keyPath:Ne(A).reverse(),item:I.current,domEvent:z}},T=a||S,k=pQ(o,R,u,d),D=k.active,L=Ht(k,ZDe),B=$.includes(o),H=gQ(A.length),F=function(z){if(!R){var ne=M(z);f==null||f(i1(ne)),x(ne)}},W=function(z){if(m==null||m(z),z.which===jt.ENTER){var ne=M(z);f==null||f(i1(ne)),x(ne)}},q=function(z){E(o),h==null||h(z)},G={};e.role==="option"&&(G["aria-selected"]=B);var te=c.createElement(JDe,Ee({ref:I,elementRef:N,role:l===null?"none":l||"menuitem",tabIndex:i?null:-1,"data-menu-id":C&&b?null:b},Xn(p,["extra"]),L,G,{component:"li","aria-disabled":i,style:Y(Y({},H),n),className:Q(j,K(K(K({},"".concat(j,"-active"),D),"".concat(j,"-selected"),B),"".concat(j,"-disabled"),R),r),onClick:F,onKeyDown:W,onFocus:q}),s,c.createElement(vQ,{props:Y(Y({},e),{},{isSelected:B}),icon:T}));return P&&(te=P(te,e,{selected:B})),te});function eLe(e,t){var n=e.eventKey,r=KS(),o=$h(n);return c.useEffect(function(){if(r)return r.registerPath(n,o),function(){r.unregisterPath(n,o)}},[o]),r?null:c.createElement(QDe,Ee({},e,{ref:t}))}const a0=c.forwardRef(eLe);var tLe=["className","children"],nLe=function(t,n){var r=t.className,o=t.children,i=Ht(t,tLe),a=c.useContext(Ws),s=a.prefixCls,l=a.mode,u=a.rtl;return c.createElement("ul",Ee({className:Q(s,u&&"".concat(s,"-rtl"),"".concat(s,"-sub"),"".concat(s,"-").concat(l==="inline"?"inline":"vertical"),r),role:"menu"},i,{"data-menu-list":!0,ref:n}),o)},FT=c.forwardRef(nLe);FT.displayName="SubMenuList";function BT(e,t){return ii(e).map(function(n,r){if(c.isValidElement(n)){var o,i,a=n.key,s=(o=(i=n.props)===null||i===void 0?void 0:i.eventKey)!==null&&o!==void 0?o:a,l=s==null;l&&(s="tmp_key-".concat([].concat(Ne(t),[r]).join("-")));var u={key:s,eventKey:s};return c.cloneElement(n,u)}return n})}var hi={adjustX:1,adjustY:1},rLe={topLeft:{points:["bl","tl"],overflow:hi},topRight:{points:["br","tr"],overflow:hi},bottomLeft:{points:["tl","bl"],overflow:hi},bottomRight:{points:["tr","br"],overflow:hi},leftTop:{points:["tr","tl"],overflow:hi},leftBottom:{points:["br","bl"],overflow:hi},rightTop:{points:["tl","tr"],overflow:hi},rightBottom:{points:["bl","br"],overflow:hi}},oLe={topLeft:{points:["bl","tl"],overflow:hi},topRight:{points:["br","tr"],overflow:hi},bottomLeft:{points:["tl","bl"],overflow:hi},bottomRight:{points:["tr","br"],overflow:hi},rightTop:{points:["tr","tl"],overflow:hi},rightBottom:{points:["br","bl"],overflow:hi},leftTop:{points:["tl","tr"],overflow:hi},leftBottom:{points:["bl","br"],overflow:hi}};function yQ(e,t,n){if(t)return t;if(n)return n[e]||n.other}var iLe={horizontal:"bottomLeft",vertical:"rightTop","vertical-left":"rightTop","vertical-right":"leftTop"};function aLe(e){var t=e.prefixCls,n=e.visible,r=e.children,o=e.popup,i=e.popupStyle,a=e.popupClassName,s=e.popupOffset,l=e.disabled,u=e.mode,d=e.onVisibleChange,f=c.useContext(Ws),m=f.getPopupContainer,h=f.rtl,p=f.subMenuOpenDelay,b=f.subMenuCloseDelay,v=f.builtinPlacements,y=f.triggerSubMenuAction,x=f.forceSubMenuRender,w=f.rootClassName,C=f.motion,S=f.defaultMotions,$=c.useState(!1),E=ue($,2),O=E[0],P=E[1],j=Y(h?Y({},oLe):Y({},rLe),v),I=iLe[u],_=yQ(u,C,S),R=c.useRef(_);u!=="inline"&&(R.current=_);var N=Y(Y({},R.current),{},{leavedClassName:"".concat(t,"-hidden"),removeOnLeave:!1,motionAppear:!0}),A=c.useRef();return c.useEffect(function(){return A.current=ln(function(){P(n)}),function(){ln.cancel(A.current)}},[n]),c.createElement(i0,{prefixCls:t,popupClassName:Q("".concat(t,"-popup"),K({},"".concat(t,"-rtl"),h),a,w),stretch:u==="horizontal"?"minWidth":null,getPopupContainer:m,builtinPlacements:j,popupPlacement:I,popupVisible:O,popup:o,popupStyle:i,popupAlign:s&&{offset:s},action:l?[]:[y],mouseEnterDelay:p,mouseLeaveDelay:b,onPopupVisibleChange:d,forceRender:x,popupMotion:N,fresh:!0},r)}function sLe(e){var t=e.id,n=e.open,r=e.keyPath,o=e.children,i="inline",a=c.useContext(Ws),s=a.prefixCls,l=a.forceSubMenuRender,u=a.motion,d=a.defaultMotions,f=a.mode,m=c.useRef(!1);m.current=f===i;var h=c.useState(!m.current),p=ue(h,2),b=p[0],v=p[1],y=m.current?n:!1;c.useEffect(function(){m.current&&v(!1)},[f]);var x=Y({},yQ(i,u,d));r.length>1&&(x.motionAppear=!1);var w=x.onVisibleChanged;return x.onVisibleChanged=function(C){return!m.current&&!C&&v(!0),w==null?void 0:w(C)},b?null:c.createElement(Zg,{mode:i,locked:!m.current},c.createElement(si,Ee({visible:y},x,{forceRender:l,removeOnLeave:!1,leavedClassName:"".concat(s,"-hidden")}),function(C){var S=C.className,$=C.style;return c.createElement(FT,{id:t,className:S,style:$},o)}))}var lLe=["style","className","title","eventKey","warnKey","disabled","internalPopupClose","children","itemIcon","expandIcon","popupClassName","popupOffset","popupStyle","onClick","onMouseEnter","onMouseLeave","onTitleClick","onTitleMouseEnter","onTitleMouseLeave"],cLe=["active"],uLe=c.forwardRef(function(e,t){var n=e.style,r=e.className,o=e.title,i=e.eventKey;e.warnKey;var a=e.disabled,s=e.internalPopupClose,l=e.children,u=e.itemIcon,d=e.expandIcon,f=e.popupClassName,m=e.popupOffset,h=e.popupStyle,p=e.onClick,b=e.onMouseEnter,v=e.onMouseLeave,y=e.onTitleClick,x=e.onTitleMouseEnter,w=e.onTitleMouseLeave,C=Ht(e,lLe),S=uQ(i),$=c.useContext(Ws),E=$.prefixCls,O=$.mode,P=$.openKeys,j=$.disabled,I=$.overflowDisabled,_=$.activeKey,R=$.selectedKeys,N=$.itemIcon,A=$.expandIcon,M=$.onItemClick,T=$.onOpenChange,k=$.onActive,D=c.useContext(DT),L=D._internalRenderSubMenuItem,B=c.useContext(mQ),H=B.isSubPathKey,F=$h(),W="".concat(E,"-submenu"),q=j||a,G=c.useRef(),te=c.useRef(),ee=u??N,z=d??A,ne=P.includes(i),X=!I&&ne,U=H(R,i),le=pQ(i,q,x,w),se=le.active,ae=Ht(le,cLe),re=c.useState(!1),fe=ue(re,2),ye=fe[0],Pe=fe[1],Oe=function(ve){q||Pe(ve)},V=function(ve){Oe(!0),b==null||b({key:i,domEvent:ve})},J=function(ve){Oe(!1),v==null||v({key:i,domEvent:ve})},oe=c.useMemo(function(){return se||(O!=="inline"?ye||H([_],i):!1)},[O,se,_,ye,i,H]),de=gQ(F.length),be=function(ve){q||(y==null||y({key:i,domEvent:ve}),O==="inline"&&T(i,!ne))},ge=$p(function($e){p==null||p(i1($e)),M($e)}),ie=function(ve){O!=="inline"&&T(i,ve)},he=function(){k(i)},xe=S&&"".concat(S,"-popup"),Re=c.useMemo(function(){return c.createElement(vQ,{icon:O!=="horizontal"?z:void 0,props:Y(Y({},e),{},{isOpen:X,isSubMenu:!0})},c.createElement("i",{className:"".concat(W,"-arrow")}))},[O,z,e,X,W]),Ce=c.createElement("div",Ee({role:"menuitem",style:de,className:"".concat(W,"-title"),tabIndex:q?null:-1,ref:G,title:typeof o=="string"?o:null,"data-menu-id":I&&S?null:S,"aria-expanded":X,"aria-haspopup":!0,"aria-controls":xe,"aria-disabled":q,onClick:be,onFocus:he},ae),o,Re),pe=c.useRef(O);if(O!=="inline"&&F.length>1?pe.current="vertical":pe.current=O,!I){var _e=pe.current;Ce=c.createElement(aLe,{mode:_e,prefixCls:W,visible:!s&&X&&O!=="inline",popupClassName:f,popupOffset:m,popupStyle:h,popup:c.createElement(Zg,{mode:_e==="horizontal"?"vertical":_e},c.createElement(FT,{id:xe,ref:te},l)),disabled:q,onVisibleChange:ie},Ce)}var we=c.createElement(ks.Item,Ee({ref:t,role:"none"},C,{component:"li",style:n,className:Q(W,"".concat(W,"-").concat(O),r,K(K(K(K({},"".concat(W,"-open"),X),"".concat(W,"-active"),oe),"".concat(W,"-selected"),U),"".concat(W,"-disabled"),q)),onMouseEnter:V,onMouseLeave:J}),Ce,!I&&c.createElement(sLe,{id:xe,open:X,keyPath:F},l));return L&&(we=L(we,e,{selected:U,active:oe,open:X,disabled:q})),c.createElement(Zg,{onItemClick:ge,mode:O==="horizontal"?"vertical":O,itemIcon:ee,expandIcon:z},we)}),qS=c.forwardRef(function(e,t){var n=e.eventKey,r=e.children,o=$h(n),i=BT(r,o),a=KS();c.useEffect(function(){if(a)return a.registerPath(n,o),function(){a.unregisterPath(n,o)}},[o]);var s;return a?s=i:s=c.createElement(uLe,Ee({ref:t},e),i),c.createElement(fQ.Provider,{value:o},s)});function HT(e){var t=e.className,n=e.style,r=c.useContext(Ws),o=r.prefixCls,i=KS();return i?null:c.createElement("li",{role:"separator",className:Q("".concat(o,"-item-divider"),t),style:n})}var dLe=["className","title","eventKey","children"],fLe=c.forwardRef(function(e,t){var n=e.className,r=e.title;e.eventKey;var o=e.children,i=Ht(e,dLe),a=c.useContext(Ws),s=a.prefixCls,l="".concat(s,"-item-group");return c.createElement("li",Ee({ref:t,role:"presentation"},i,{onClick:function(d){return d.stopPropagation()},className:Q(l,n)}),c.createElement("div",{role:"presentation",className:"".concat(l,"-title"),title:typeof r=="string"?r:void 0},r),c.createElement("ul",{role:"group",className:"".concat(l,"-list")},o))}),VT=c.forwardRef(function(e,t){var n=e.eventKey,r=e.children,o=$h(n),i=BT(r,o),a=KS();return a?i:c.createElement(fLe,Ee({ref:t},Xn(e,["warnKey"])),i)}),mLe=["label","children","key","type","extra"];function Ij(e,t,n){var r=t.item,o=t.group,i=t.submenu,a=t.divider;return(e||[]).map(function(s,l){if(s&&_t(s)==="object"){var u=s,d=u.label,f=u.children,m=u.key,h=u.type,p=u.extra,b=Ht(u,mLe),v=m??"tmp-".concat(l);return f||h==="group"?h==="group"?c.createElement(o,Ee({key:v},b,{title:d}),Ij(f,t,n)):c.createElement(i,Ee({key:v},b,{title:d}),Ij(f,t,n)):h==="divider"?c.createElement(a,Ee({key:v},b)):c.createElement(r,Ee({key:v},b,{extra:p}),d,(!!p||p===0)&&c.createElement("span",{className:"".concat(n,"-item-extra")},p))}return null}).filter(function(s){return s})}function mz(e,t,n,r,o){var i=e,a=Y({divider:HT,item:a0,group:VT,submenu:qS},r);return t&&(i=Ij(t,a,o)),BT(i,n)}var hLe=["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"],$u=[],pLe=c.forwardRef(function(e,t){var n,r=e,o=r.prefixCls,i=o===void 0?"rc-menu":o,a=r.rootClassName,s=r.style,l=r.className,u=r.tabIndex,d=u===void 0?0:u,f=r.items,m=r.children,h=r.direction,p=r.id,b=r.mode,v=b===void 0?"vertical":b,y=r.inlineCollapsed,x=r.disabled,w=r.disabledOverflow,C=r.subMenuOpenDelay,S=C===void 0?.1:C,$=r.subMenuCloseDelay,E=$===void 0?.1:$,O=r.forceSubMenuRender,P=r.defaultOpenKeys,j=r.openKeys,I=r.activeKey,_=r.defaultActiveFirst,R=r.selectable,N=R===void 0?!0:R,A=r.multiple,M=A===void 0?!1:A,T=r.defaultSelectedKeys,k=r.selectedKeys,D=r.onSelect,L=r.onDeselect,B=r.inlineIndent,H=B===void 0?24:B,F=r.motion,W=r.defaultMotions,q=r.triggerSubMenuAction,G=q===void 0?"hover":q,te=r.builtinPlacements,ee=r.itemIcon,z=r.expandIcon,ne=r.overflowedIndicator,X=ne===void 0?"...":ne,U=r.overflowedIndicatorPopupClassName,le=r.getPopupContainer,se=r.onClick,ae=r.onOpenChange,re=r.onKeyDown;r.openAnimation,r.openTransitionName;var fe=r._internalRenderMenuItem,ye=r._internalRenderSubMenuItem,Pe=r._internalComponents,Oe=Ht(r,hLe),V=c.useMemo(function(){return[mz(m,f,$u,Pe,i),mz(m,f,$u,{},i)]},[m,f,Pe]),J=ue(V,2),oe=J[0],de=J[1],be=c.useState(!1),ge=ue(be,2),ie=ge[0],he=ge[1],xe=c.useRef(),Re=qDe(p),Ce=h==="rtl",pe=kn(P,{value:j,postState:function(ct){return ct||$u}}),_e=ue(pe,2),we=_e[0],$e=_e[1],ve=function(ct){var je=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;function pt(){$e(ct),ae==null||ae(ct)}je?Fi.flushSync(pt):pt()},me=c.useState(we),Se=ue(me,2),De=Se[0],et=Se[1],rt=c.useRef(!1),Me=c.useMemo(function(){return(v==="inline"||v==="vertical")&&y?["vertical",y]:[v,!1]},[v,y]),We=ue(Me,2),Qe=We[0],Ge=We[1],tt=Qe==="inline",ke=c.useState(Qe),xt=ue(ke,2),Ze=xt[0],nt=xt[1],Be=c.useState(Ge),Le=ue(Be,2),Ie=Le[0],Te=Le[1];c.useEffect(function(){nt(Qe),Te(Ge),rt.current&&(tt?$e(De):ve($u))},[Qe,Ge]);var Xe=c.useState(0),lt=ue(Xe,2),mt=lt[0],Ot=lt[1],dt=mt>=oe.length-1||Ze!=="horizontal"||w;c.useEffect(function(){tt&&et(we)},[we]),c.useEffect(function(){return rt.current=!0,function(){rt.current=!1}},[]);var qe=UDe(),ht=qe.registerPath,zt=qe.unregisterPath,Vt=qe.refreshOverflowKeys,Nt=qe.isSubPathKey,ft=qe.getKeyPath,ot=qe.getKeys,Ft=qe.getSubPathKeys,Ue=c.useMemo(function(){return{registerPath:ht,unregisterPath:zt}},[ht,zt]),Je=c.useMemo(function(){return{isSubPathKey:Nt}},[Nt]);c.useEffect(function(){Vt(dt?$u:oe.slice(mt+1).map(function(Zt){return Zt.key}))},[mt,dt]);var vt=kn(I||_&&((n=oe[0])===null||n===void 0?void 0:n.key),{value:I}),yt=ue(vt,2),Ye=yt[0],st=yt[1],wt=$p(function(Zt){st(Zt)}),Kt=$p(function(){st(void 0)});c.useImperativeHandle(t,function(){return{list:xe.current,focus:function(ct){var je,pt=ot(),it=Pj(pt,Re),Ke=it.elements,Et=it.key2element,at=it.element2key,Wt=LT(xe.current,Ke),tn=Ye??(Wt[0]?at.get(Wt[0]):(je=oe.find(function(Rt){return!Rt.props.disabled}))===null||je===void 0?void 0:je.key),Ut=Et.get(tn);if(tn&&Ut){var en;Ut==null||(en=Ut.focus)===null||en===void 0||en.call(Ut,ct)}}}});var bt=kn(T||[],{value:k,postState:function(ct){return Array.isArray(ct)?ct:ct==null?$u:[ct]}}),It=ue(bt,2),qt=It[0],In=It[1],An=function(ct){if(N){var je=ct.key,pt=qt.includes(je),it;M?pt?it=qt.filter(function(Et){return Et!==je}):it=[].concat(Ne(qt),[je]):it=[je],In(it);var Ke=Y(Y({},ct),{},{selectedKeys:it});pt?L==null||L(Ke):D==null||D(Ke)}!M&&we.length&&Ze!=="inline"&&ve($u)},Nn=$p(function(Zt){se==null||se(i1(Zt)),An(Zt)}),Rn=$p(function(Zt,ct){var je=we.filter(function(it){return it!==Zt});if(ct)je.push(Zt);else if(Ze!=="inline"){var pt=Ft(Zt);je=je.filter(function(it){return!pt.has(it)})}ml(we,je,!0)||ve(je,!0)}),$n=function(ct,je){var pt=je??!we.includes(ct);Rn(ct,pt)},Dn=HDe(Ze,Ye,Ce,Re,xe,ot,ft,st,$n,re);c.useEffect(function(){he(!0)},[]);var wn=c.useMemo(function(){return{_internalRenderMenuItem:fe,_internalRenderSubMenuItem:ye}},[fe,ye]),St=Ze!=="horizontal"||w?oe:oe.map(function(Zt,ct){return c.createElement(Zg,{key:Zt.key,overflowDisabled:ct>mt},Zt)}),an=c.createElement(ks,Ee({id:p,ref:xe,prefixCls:"".concat(i,"-overflow"),component:"ul",itemComponent:a0,className:Q(i,"".concat(i,"-root"),"".concat(i,"-").concat(Ze),l,K(K({},"".concat(i,"-inline-collapsed"),Ie),"".concat(i,"-rtl"),Ce),a),dir:h,style:s,role:"menu",tabIndex:d,data:St,renderRawItem:function(ct){return ct},renderRawRest:function(ct){var je=ct.length,pt=je?oe.slice(-je):null;return c.createElement(qS,{eventKey:jj,title:X,disabled:dt,internalPopupClose:je===0,popupClassName:U},pt)},maxCount:Ze!=="horizontal"||w?ks.INVALIDATE:ks.RESPONSIVE,ssr:"full","data-menu-list":!0,onVisibleChange:function(ct){Ot(ct)},onKeyDown:Dn},Oe));return c.createElement(DT.Provider,{value:wn},c.createElement(lQ.Provider,{value:Re},c.createElement(Zg,{prefixCls:i,rootClassName:a,mode:Ze,openKeys:we,rtl:Ce,disabled:x,motion:ie?F:null,defaultMotions:ie?W:null,activeKey:Ye,onActive:wt,onInactive:Kt,selectedKeys:qt,inlineIndent:H,subMenuOpenDelay:S,subMenuCloseDelay:E,forceSubMenuRender:O,builtinPlacements:te,triggerSubMenuAction:G,getPopupContainer:le,itemIcon:ee,expandIcon:z,onItemClick:Nn,onOpenChange:Rn},c.createElement(mQ.Provider,{value:Je},an),c.createElement("div",{style:{display:"none"},"aria-hidden":!0},c.createElement(dQ.Provider,{value:Ue},de)))))}),Eh=pLe;Eh.Item=a0;Eh.SubMenu=qS;Eh.ItemGroup=VT;Eh.Divider=HT;var gLe={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"},vLe=function(t,n){return c.createElement(yn,Ee({},t,{ref:n,icon:gLe}))},yLe=c.forwardRef(vLe);const bQ=c.createContext({siderHook:{addSider:()=>null,removeSider:()=>null}}),bLe=e=>{const{antCls:t,componentCls:n,colorText:r,footerBg:o,headerHeight:i,headerPadding:a,headerColor:s,footerPadding:l,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:i,padding:a,color:s,lineHeight:Z(i),background:f,[`${t}-menu`]:{lineHeight:"inherit"}},[`${n}-footer`]:{padding:l,color:r,fontSize:u,background:o},[`${n}-content`]:{flex:"auto",color:r,minHeight:0}}},xQ=e=>{const{colorBgLayout:t,controlHeight:n,controlHeightLG:r,colorText:o,controlHeightSM:i,marginXXS:a,colorTextLightSolid:s,colorBgContainer:l}=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:`${i}px ${u}px`,footerBg:t,siderBg:"#001529",triggerHeight:r+a*2,triggerBg:"#002140",triggerColor:s,zeroTriggerWidth:r,zeroTriggerHeight:r,lightSiderBg:l,lightTriggerBg:l,lightTriggerColor:o}},wQ=[["colorBgBody","bodyBg"],["colorBgHeader","headerBg"],["colorBgTrigger","triggerBg"]],SQ=vn("Layout",bLe,xQ,{deprecatedTokens:wQ}),xLe=e=>{const{componentCls:t,siderBg:n,motionDurationMid:r,motionDurationSlow:o,antCls:i,triggerHeight:a,triggerColor:s,triggerBg:l,headerHeight:u,zeroTriggerWidth:d,zeroTriggerHeight:f,borderRadiusLG:m,lightSiderBg:h,lightTriggerColor:p,lightTriggerBg:b,bodyBg:v}=e;return{[t]:{position:"relative",minWidth:0,background:n,transition:`all ${r}, background 0s`,"&-has-trigger":{paddingBottom:a},"&-right":{order:1},[`${t}-children`]:{height:"100%",marginTop:-.1,paddingTop:.1,[`${i}-menu${i}-menu-inline-collapsed`]:{width:"auto"}},[`&-zero-width ${t}-children`]:{overflow:"hidden"},[`${t}-trigger`]:{position:"fixed",bottom:0,zIndex:1,height:a,color:s,lineHeight:Z(a),textAlign:"center",background:l,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 ${Z(m)} ${Z(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:`${Z(m)} 0 0 ${Z(m)}`}},"&-light":{background:h,[`${t}-trigger`]:{color:p,background:b},[`${t}-zero-width-trigger`]:{color:p,background:b,border:`1px solid ${v}`,borderInlineStart:0}}}}},wLe=vn(["Layout","Sider"],xLe,xQ,{deprecatedTokens:wQ});var SLe=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 hz={xs:"479.98px",sm:"575.98px",md:"767.98px",lg:"991.98px",xl:"1199.98px",xxl:"1599.98px"},CLe=e=>!Number.isNaN(Number.parseFloat(e))&&Number.isFinite(Number(e)),GS=c.createContext({}),$Le=(()=>{let e=0;return(t="")=>(e+=1,`${t}${e}`)})(),CQ=c.forwardRef((e,t)=>{const{prefixCls:n,className:r,trigger:o,children:i,defaultCollapsed:a=!1,theme:s="dark",style:l={},collapsible:u=!1,reverseArrow:d=!1,width:f=200,collapsedWidth:m=80,zeroWidthTriggerStyle:h,breakpoint:p,onCollapse:b,onBreakpoint:v}=e,y=SLe(e,["prefixCls","className","trigger","children","defaultCollapsed","theme","style","collapsible","reverseArrow","width","collapsedWidth","zeroWidthTriggerStyle","breakpoint","onCollapse","onBreakpoint"]),{siderHook:x}=c.useContext(bQ),[w,C]=c.useState("collapsed"in e?e.collapsed:a),[S,$]=c.useState(!1);c.useEffect(()=>{"collapsed"in e&&C(e.collapsed)},[e.collapsed]);const E=(ee,z)=>{"collapsed"in e||C(ee),b==null||b(ee,z)},{getPrefixCls:O,direction:P}=c.useContext(kt),j=O("layout-sider",n),[I,_,R]=wLe(j),N=c.useRef(null);N.current=ee=>{$(ee.matches),v==null||v(ee.matches),w!==ee.matches&&E(ee.matches,"responsive")},c.useEffect(()=>{function ee(ne){var X;return(X=N.current)===null||X===void 0?void 0:X.call(N,ne)}let z;return typeof(window==null?void 0:window.matchMedia)<"u"&&p&&p in hz&&(z=window.matchMedia(`screen and (max-width: ${hz[p]})`),qJ(z,ee),ee(z)),()=>{GJ(z,ee)}},[p]),c.useEffect(()=>{const ee=$Le("ant-sider-");return x.addSider(ee),()=>x.removeSider(ee)},[]);const A=()=>{E(!w,"clickTrigger")},M=Xn(y,["collapsed"]),T=w?m:f,k=CLe(T)?`${T}px`:String(T),D=Number.parseFloat(String(m||0))===0?c.createElement("span",{onClick:A,className:Q(`${j}-zero-width-trigger`,`${j}-zero-width-trigger-${d?"right":"left"}`),style:h},o||c.createElement(yLe,null)):null,L=P==="rtl"==!d,F={expanded:L?c.createElement(qg,null):c.createElement(Yg,null),collapsed:L?c.createElement(Yg,null):c.createElement(qg,null)}[w?"collapsed":"expanded"],W=o!==null?D||c.createElement("div",{className:`${j}-trigger`,onClick:A,style:{width:k}},o||F):null,q=Object.assign(Object.assign({},l),{flex:`0 0 ${k}`,maxWidth:k,minWidth:k,width:k}),G=Q(j,`${j}-${s}`,{[`${j}-collapsed`]:!!w,[`${j}-has-trigger`]:u&&o!==null&&!D,[`${j}-below`]:!!S,[`${j}-zero-width`]:Number.parseFloat(k)===0},r,_,R),te=c.useMemo(()=>({siderCollapsed:w}),[w]);return I(c.createElement(GS.Provider,{value:te},c.createElement("aside",Object.assign({className:G},M,{style:q,ref:t}),c.createElement("div",{className:`${j}-children`},i),u||S&&D?W:null)))});var ELe={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"},OLe=function(t,n){return c.createElement(yn,Ee({},t,{ref:n,icon:ELe}))},WT=c.forwardRef(OLe);const a1=c.createContext({prefixCls:"",firstLevel:!0,inlineCollapsed:!1});var PLe=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 $Q=e=>{const{prefixCls:t,className:n,dashed:r}=e,o=PLe(e,["prefixCls","className","dashed"]),{getPrefixCls:i}=c.useContext(kt),a=i("menu",t),s=Q({[`${a}-item-divider-dashed`]:!!r},n);return c.createElement(HT,Object.assign({className:s},o))},EQ=e=>{var t;const{className:n,children:r,icon:o,title:i,danger:a,extra:s}=e,{prefixCls:l,firstLevel:u,direction:d,disableMenuItemTitleTooltip:f,inlineCollapsed:m}=c.useContext(a1),h=w=>{const C=r==null?void 0:r[0],S=c.createElement("span",{className:Q(`${l}-title-content`,{[`${l}-title-content-with-extra`]:!!s||s===0})},r);return(!o||c.isValidElement(r)&&r.type==="span")&&r&&w&&u&&typeof C=="string"?c.createElement("div",{className:`${l}-inline-collapsed-noicon`},C.charAt(0)):S},{siderCollapsed:p}=c.useContext(GS);let b=i;typeof i>"u"?b=u?r:"":i===!1&&(b="");const v={title:b};!p&&!m&&(v.title=null,v.open=!1);const y=ii(r).length;let x=c.createElement(a0,Object.assign({},Xn(e,["title","icon","danger"]),{className:Q({[`${l}-item-danger`]:a,[`${l}-item-only-child`]:(o?y+1:y)===1},n),title:typeof i=="string"?i:void 0}),qr(o,{className:Q(c.isValidElement(o)?(t=o.props)===null||t===void 0?void 0:t.className:void 0,`${l}-item-icon`)}),h(m));return f||(x=c.createElement(us,Object.assign({},v,{placement:d==="rtl"?"left":"right",classNames:{root:`${l}-inline-collapsed-tooltip`}}),x)),x};var jLe=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 s1=c.createContext(null),OQ=c.forwardRef((e,t)=>{const{children:n}=e,r=jLe(e,["children"]),o=c.useContext(s1),i=c.useMemo(()=>Object.assign(Object.assign({},o),r),[o,r.prefixCls,r.mode,r.selectable,r.rootClassName]),a=lNe(n),s=xl(t,a?hu(n):null);return c.createElement(s1.Provider,{value:i},c.createElement(Vs,{space:!0},a?c.cloneElement(n,{ref:s}):n))}),ILe=e=>{const{componentCls:t,motionDurationSlow:n,horizontalLineHeight:r,colorSplit:o,lineWidth:i,lineType:a,itemPaddingInline:s}=e;return{[`${t}-horizontal`]:{lineHeight:r,border:0,borderBottom:`${Z(i)} ${a} ${o}`,boxShadow:"none","&::after":{display:"block",clear:"both",height:0,content:'"\\20"'},[`${t}-item, ${t}-submenu`]:{position:"relative",display:"inline-block",verticalAlign:"bottom",paddingInline:s},[`> ${t}-item:hover,
        > ${t}-item-active,
        > ${t}-submenu ${t}-submenu-title:hover`]:{backgroundColor:"transparent"},[`${t}-item, ${t}-submenu-title`]:{transition:[`border-color ${n}`,`background ${n}`].join(",")},[`${t}-submenu-arrow`]:{display:"none"}}}},_Le=({componentCls:e,menuArrowOffset:t,calc:n})=>({[`${e}-rtl`]:{direction:"rtl"},[`${e}-submenu-rtl`]:{transformOrigin:"100% 0"},[`${e}-rtl${e}-vertical,
    ${e}-submenu-rtl ${e}-vertical`]:{[`${e}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateY(${Z(n(t).mul(-1).equal())})`},"&::after":{transform:`rotate(45deg) translateY(${Z(t)})`}}}}),pz=e=>pl(e),gz=(e,t)=>{const{componentCls:n,itemColor:r,itemSelectedColor:o,subMenuItemSelectedColor:i,groupTitleColor:a,itemBg:s,subMenuItemBg:l,itemSelectedBg:u,activeBarHeight:d,activeBarWidth:f,activeBarBorderWidth:m,motionDurationSlow:h,motionEaseInOut:p,motionEaseOut:b,itemPaddingInline:v,motionDurationMid:y,itemHoverColor:x,lineType:w,colorSplit:C,itemDisabledColor:S,dangerItemColor:$,dangerItemHoverColor:E,dangerItemSelectedColor:O,dangerItemActiveBg:P,dangerItemSelectedBg:j,popupBg:I,itemHoverBg:_,itemActiveBg:R,menuSubMenuBg:N,horizontalItemSelectedColor:A,horizontalItemSelectedBg:M,horizontalItemBorderRadius:T,horizontalItemHoverBg:k}=e;return{[`${n}-${t}, ${n}-${t} > ${n}`]:{color:r,background:s,[`&${n}-root:focus-visible`]:Object.assign({},pz(e)),[`${n}-item`]:{"&-group-title, &-extra":{color:a}},[`${n}-submenu-selected > ${n}-submenu-title`]:{color:i},[`${n}-item, ${n}-submenu-title`]:{color:r,[`&:not(${n}-item-disabled):focus-visible`]:Object.assign({},pz(e))},[`${n}-item-disabled, ${n}-submenu-disabled`]:{color:`${S} !important`},[`${n}-item:not(${n}-item-selected):not(${n}-submenu-selected)`]:{[`&:hover, > ${n}-submenu-title:hover`]:{color:x}},[`&:not(${n}-horizontal)`]:{[`${n}-item:not(${n}-item-selected)`]:{"&:hover":{backgroundColor:_},"&:active":{backgroundColor:R}},[`${n}-submenu-title`]:{"&:hover":{backgroundColor:_},"&:active":{backgroundColor:R}}},[`${n}-item-danger`]:{color:$,[`&${n}-item:hover`]:{[`&:not(${n}-item-selected):not(${n}-submenu-selected)`]:{color:E}},[`&${n}-item:active`]:{background:P}},[`${n}-item a`]:{"&, &:hover":{color:"inherit"}},[`${n}-item-selected`]:{color:o,[`&${n}-item-danger`]:{color:O},"a, a:hover":{color:"inherit"}},[`& ${n}-item-selected`]:{backgroundColor:u,[`&${n}-item-danger`]:{backgroundColor:j}},[`&${n}-submenu > ${n}`]:{backgroundColor:N},[`&${n}-popup > ${n}`]:{backgroundColor:I},[`&${n}-submenu-popup > ${n}`]:{backgroundColor:I},[`&${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:T,"&::after":{position:"absolute",insetInline:v,bottom:0,borderBottom:`${Z(d)} solid transparent`,transition:`border-color ${h} ${p}`,content:'""'},"&:hover, &-active, &-open":{background:k,"&::after":{borderBottomWidth:d,borderBottomColor:A}},"&-selected":{color:A,backgroundColor:M,"&:hover":{backgroundColor:M},"&::after":{borderBottomWidth:d,borderBottomColor:A}}}}),[`&${n}-root`]:{[`&${n}-inline, &${n}-vertical`]:{borderInlineEnd:`${Z(m)} ${w} ${C}`}},[`&${n}-inline`]:{[`${n}-sub${n}-inline`]:{background:l},[`${n}-item`]:{position:"relative","&::after":{position:"absolute",insetBlock:0,insetInlineEnd:0,borderInlineEnd:`${Z(f)} solid ${o}`,transform:"scaleY(0.0001)",opacity:0,transition:[`transform ${y} ${b}`,`opacity ${y} ${b}`].join(","),content:'""'},[`&${n}-item-danger`]:{"&::after":{borderInlineEndColor:O}}},[`${n}-selected, ${n}-item-selected`]:{"&::after":{transform:"scaleY(1)",opacity:1,transition:[`transform ${y} ${p}`,`opacity ${y} ${p}`].join(",")}}}}}},vz=e=>{const{componentCls:t,itemHeight:n,itemMarginInline:r,padding:o,menuArrowSize:i,marginXS:a,itemMarginBlock:s,itemWidth:l,itemPaddingInline:u}=e,d=e.calc(i).add(o).add(a).equal();return{[`${t}-item`]:{position:"relative",overflow:"hidden"},[`${t}-item, ${t}-submenu-title`]:{height:n,lineHeight:Z(n),paddingInline:u,overflow:"hidden",textOverflow:"ellipsis",marginInline:r,marginBlock:s,width:l},[`> ${t}-item,
            > ${t}-submenu > ${t}-submenu-title`]:{height:n,lineHeight:Z(n)},[`${t}-item-group-list ${t}-submenu-title,
            ${t}-submenu-title`]:{paddingInlineEnd:d}}},NLe=e=>{const{componentCls:t,iconCls:n,itemHeight:r,colorTextLightSolid:o,dropdownWidth:i,controlHeightLG:a,motionEaseOut:s,paddingXL:l,itemMarginInline:u,fontSizeLG:d,motionDurationFast:f,motionDurationSlow:m,paddingXS:h,boxShadowSecondary:p,collapsedWidth:b,collapsedIconSize:v}=e,y={height:r,lineHeight:Z(r),listStylePosition:"inside",listStyleType:"disc"};return[{[t]:{"&-inline, &-vertical":Object.assign({[`&${t}-root`]:{boxShadow:"none"}},vz(e))},[`${t}-submenu-popup`]:{[`${t}-vertical`]:Object.assign(Object.assign({},vz(e)),{boxShadow:p})}},{[`${t}-submenu-popup ${t}-vertical${t}-sub`]:{minWidth:i,maxHeight:`calc(100vh - ${Z(e.calc(a).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`]:y,[`& ${t}-item-group-title`]:{paddingInlineStart:l}},[`${t}-item`]:y}},{[`${t}-inline-collapsed`]:{width:b,[`&${t}-root`]:{[`${t}-item, ${t}-submenu ${t}-submenu-title`]:{[`> ${t}-inline-collapsed-noicon`]:{fontSize:d,textAlign:"center"}}},[`> ${t}-item,
          > ${t}-item-group > ${t}-item-group-list > ${t}-item,
          > ${t}-item-group > ${t}-item-group-list > ${t}-submenu > ${t}-submenu-title,
          > ${t}-submenu > ${t}-submenu-title`]:{insetInlineStart:0,paddingInline:`calc(50% - ${Z(e.calc(v).div(2).equal())} - ${Z(u)})`,textOverflow:"clip",[`
            ${t}-submenu-arrow,
            ${t}-submenu-expand-icon
          `]:{opacity:0},[`${t}-item-icon, ${n}`]:{margin:0,fontSize:v,lineHeight:Z(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({},Bs),{paddingInline:h})}}]},yz=e=>{const{componentCls:t,motionDurationSlow:n,motionDurationMid:r,motionEaseInOut:o,motionEaseOut:i,iconCls:a,iconSize:s,iconMarginInlineEnd:l}=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, ${a}`]:{minWidth:s,fontSize:s,transition:[`font-size ${r} ${i}`,`margin ${n} ${o}`,`color ${n}`].join(","),"+ span":{marginInlineStart:l,opacity:1,transition:[`opacity ${n} ${o}`,`margin ${n}`,`color ${n}`].join(",")}},[`${t}-item-icon`]:Object.assign({},gh()),[`&${t}-item-only-child`]:{[`> ${a}, > ${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"}}}},bz=e=>{const{componentCls:t,motionDurationSlow:n,motionEaseInOut:r,borderRadius:o,menuArrowSize:i,menuArrowOffset:a}=e;return{[`${t}-submenu`]:{"&-expand-icon, &-arrow":{position:"absolute",top:"50%",insetInlineEnd:e.margin,width:i,color:"currentcolor",transform:"translateY(-50%)",transition:`transform ${n} ${r}, opacity ${n}`},"&-arrow":{"&::before, &::after":{position:"absolute",width:e.calc(i).mul(.6).equal(),height:e.calc(i).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(${Z(e.calc(a).mul(-1).equal())})`},"&::after":{transform:`rotate(-45deg) translateY(${Z(a)})`}}}}},RLe=e=>{const{antCls:t,componentCls:n,fontSize:r,motionDurationSlow:o,motionDurationMid:i,motionEaseInOut:a,paddingXS:s,padding:l,colorSplit:u,lineWidth:d,zIndexPopup:f,borderRadiusLG:m,subMenuItemBorderRadius:h,menuArrowSize:p,menuArrowOffset:b,lineType:v,groupTitleLineHeight:y,groupTitleFontSize:x}=e;return[{"":{[n]:Object.assign(Object.assign({},hl()),{"&-hidden":{display:"none"}})},[`${n}-submenu-hidden`]:{display:"none"}},{[n]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},xn(e)),hl()),{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:`${Z(s)} ${Z(l)}`,fontSize:x,lineHeight:y,transition:`all ${o}`},[`&-horizontal ${n}-submenu`]:{transition:[`border-color ${o} ${a}`,`background ${o} ${a}`].join(",")},[`${n}-submenu, ${n}-submenu-inline`]:{transition:[`border-color ${o} ${a}`,`background ${o} ${a}`,`padding ${i} ${a}`].join(",")},[`${n}-submenu ${n}-sub`]:{cursor:"initial",transition:[`background ${o} ${a}`,`padding ${o} ${a}`].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:v,borderWidth:0,borderTopWidth:d,marginBlock:d,padding:0,"&-dashed":{borderStyle:"dashed"}}}),yz(e)),{[`${n}-item-group`]:{[`${n}-item-group-list`]:{margin:0,padding:0,[`${n}-item, ${n}-submenu-title`]:{paddingInline:`${Z(e.calc(r).mul(2).equal())} ${Z(l)}`}}},"&-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},yz(e)),bz(e)),{[`${n}-item, ${n}-submenu > ${n}-submenu-title`]:{borderRadius:h},[`${n}-submenu-title::after`]:{transition:`transform ${o} ${a}`}})},"\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}}}),bz(e)),{[`&-inline-collapsed ${n}-submenu-arrow,
        &-inline ${n}-submenu-arrow`]:{"&::before":{transform:`rotate(-45deg) translateX(${Z(b)})`},"&::after":{transform:`rotate(45deg) translateX(${Z(e.calc(b).mul(-1).equal())})`}},[`${n}-submenu-open${n}-submenu-inline > ${n}-submenu-title > ${n}-submenu-arrow`]:{transform:`translateY(${Z(e.calc(p).mul(.2).mul(-1).equal())})`,"&::after":{transform:`rotate(-45deg) translateX(${Z(e.calc(b).mul(-1).equal())})`},"&::before":{transform:`rotate(45deg) translateX(${Z(b)})`}}})},{[`${t}-layout-header`]:{[n]:{lineHeight:"inherit"}}}]},TLe=e=>{var t,n,r;const{colorPrimary:o,colorError:i,colorTextDisabled:a,colorErrorBg:s,colorText:l,colorTextDescription:u,colorBgContainer:d,colorFillAlter:f,colorFillContent:m,lineWidth:h,lineWidthBold:p,controlItemBgActive:b,colorBgTextHover:v,controlHeightLG:y,lineHeight:x,colorBgElevated:w,marginXXS:C,padding:S,fontSize:$,controlHeightSM:E,fontSizeLG:O,colorTextLightSolid:P,colorErrorHover:j}=e,I=(t=e.activeBarWidth)!==null&&t!==void 0?t:0,_=(n=e.activeBarBorderWidth)!==null&&n!==void 0?n:h,R=(r=e.itemMarginInline)!==null&&r!==void 0?r:e.marginXXS,N=new On(P).setA(.65).toRgbString();return{dropdownWidth:160,zIndexPopup:e.zIndexPopupBase+50,radiusItem:e.borderRadiusLG,itemBorderRadius:e.borderRadiusLG,radiusSubMenuItem:e.borderRadiusSM,subMenuItemBorderRadius:e.borderRadiusSM,colorItemText:l,itemColor:l,colorItemTextHover:l,itemHoverColor:l,colorItemTextHoverHorizontal:o,horizontalItemHoverColor:o,colorGroupTitle:u,groupTitleColor:u,colorItemTextSelected:o,itemSelectedColor:o,subMenuItemSelectedColor:o,colorItemTextSelectedHorizontal:o,horizontalItemSelectedColor:o,colorItemBg:d,itemBg:d,colorItemBgHover:v,itemHoverBg:v,colorItemBgActive:m,itemActiveBg:b,colorSubItemBg:f,subMenuItemBg:f,colorItemBgSelected:b,itemSelectedBg:b,colorItemBgSelectedHorizontal:"transparent",horizontalItemSelectedBg:"transparent",colorActiveBarWidth:0,activeBarWidth:I,colorActiveBarHeight:p,activeBarHeight:p,colorActiveBarBorderSize:h,activeBarBorderWidth:_,colorItemTextDisabled:a,itemDisabledColor:a,colorDangerItemText:i,dangerItemColor:i,colorDangerItemTextHover:i,dangerItemHoverColor:i,colorDangerItemTextSelected:i,dangerItemSelectedColor:i,colorDangerItemBgActive:s,dangerItemActiveBg:s,colorDangerItemBgSelected:s,dangerItemSelectedBg:s,itemMarginInline:R,horizontalItemBorderRadius:0,horizontalItemHoverBg:"transparent",itemHeight:y,groupTitleLineHeight:x,collapsedWidth:y*2,popupBg:w,itemMarginBlock:C,itemPaddingInline:S,horizontalLineHeight:`${y*1.15}px`,iconSize:$,iconMarginInlineEnd:E-$,collapsedIconSize:O,groupTitleFontSize:$,darkItemDisabledColor:new On(P).setA(.25).toRgbString(),darkItemColor:N,darkDangerItemColor:i,darkItemBg:"#001529",darkPopupBg:"#001529",darkSubMenuItemBg:"#000c17",darkItemSelectedColor:P,darkItemSelectedBg:o,darkDangerItemSelectedBg:i,darkItemHoverBg:"transparent",darkGroupTitleColor:N,darkItemHoverColor:P,darkDangerItemHoverColor:j,darkDangerItemSelectedColor:P,darkDangerItemActiveBg:i,itemWidth:I?`calc(100% + ${_}px)`:`calc(100% - ${R*2}px)`}},MLe=(e,t=e,n=!0)=>vn("Menu",o=>{const{colorBgElevated:i,controlHeightLG:a,fontSize:s,darkItemColor:l,darkDangerItemColor:u,darkItemBg:d,darkSubMenuItemBg:f,darkItemSelectedColor:m,darkItemSelectedBg:h,darkDangerItemSelectedBg:p,darkItemHoverBg:b,darkGroupTitleColor:v,darkItemHoverColor:y,darkItemDisabledColor:x,darkDangerItemHoverColor:w,darkDangerItemSelectedColor:C,darkDangerItemActiveBg:S,popupBg:$,darkPopupBg:E}=o,O=o.calc(s).div(7).mul(5).equal(),P=cn(o,{menuArrowSize:O,menuHorizontalHeight:o.calc(a).mul(1.15).equal(),menuArrowOffset:o.calc(O).mul(.25).equal(),menuSubMenuBg:i,calc:o.calc,popupBg:$}),j=cn(P,{itemColor:l,itemHoverColor:y,groupTitleColor:v,itemSelectedColor:m,subMenuItemSelectedColor:m,itemBg:d,popupBg:E,subMenuItemBg:f,itemActiveBg:"transparent",itemSelectedBg:h,activeBarHeight:0,activeBarBorderWidth:0,itemHoverBg:b,itemDisabledColor:x,dangerItemColor:u,dangerItemHoverColor:w,dangerItemSelectedColor:C,dangerItemActiveBg:S,dangerItemSelectedBg:p,menuSubMenuBg:f,horizontalItemSelectedColor:m,horizontalItemSelectedBg:h});return[RLe(P),ILe(P),NLe(P),gz(P,"light"),gz(j,"dark"),_Le(P),SS(P),vl(P,"slide-up"),vl(P,"slide-down"),Qv(P,"zoom-big")]},TLe,{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),PQ=e=>{var t;const{popupClassName:n,icon:r,title:o,theme:i}=e,a=c.useContext(a1),{prefixCls:s,inlineCollapsed:l,theme:u}=a,d=$h();let f;if(!r)f=l&&!d.length&&o&&typeof o=="string"?c.createElement("div",{className:`${s}-inline-collapsed-noicon`},o.charAt(0)):c.createElement("span",{className:`${s}-title-content`},o);else{const p=c.isValidElement(o)&&o.type==="span";f=c.createElement(c.Fragment,null,qr(r,{className:Q(c.isValidElement(r)?(t=r.props)===null||t===void 0?void 0:t.className:void 0,`${s}-item-icon`)}),p?o:c.createElement("span",{className:`${s}-title-content`},o))}const m=c.useMemo(()=>Object.assign(Object.assign({},a),{firstLevel:!1}),[a]),[h]=vu("Menu");return c.createElement(a1.Provider,{value:m},c.createElement(qS,Object.assign({},Xn(e,["icon"]),{title:f,popupClassName:Q(s,n,`${s}-${i||u}`),popupStyle:Object.assign({zIndex:h},e.popupStyle)})))};var kLe=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 y2(e){return e===null||e===!1}const ALe={item:EQ,submenu:PQ,divider:$Q},DLe=c.forwardRef((e,t)=>{var n;const r=c.useContext(s1),o=r||{},{getPrefixCls:i,getPopupContainer:a,direction:s,menu:l}=c.useContext(kt),u=i(),{prefixCls:d,className:f,style:m,theme:h="light",expandIcon:p,_internalDisableMenuItemTitleTooltip:b,inlineCollapsed:v,siderCollapsed:y,rootClassName:x,mode:w,selectable:C,onClick:S,overflowedIndicatorPopupClassName:$}=e,E=kLe(e,["prefixCls","className","style","theme","expandIcon","_internalDisableMenuItemTitleTooltip","inlineCollapsed","siderCollapsed","rootClassName","mode","selectable","onClick","overflowedIndicatorPopupClassName"]),O=Xn(E,["collapsedWidth"]);(n=o.validator)===null||n===void 0||n.call(o,{mode:w});const P=fn((...H)=>{var F;S==null||S.apply(void 0,H),(F=o.onClick)===null||F===void 0||F.call(o)}),j=o.mode||w,I=C??o.selectable,_=v??y,R={horizontal:{motionName:`${u}-slide-up`},inline:Ug(u),other:{motionName:`${u}-zoom-big`}},N=i("menu",d||o.prefixCls),A=Hr(N),[M,T,k]=MLe(N,A,!r),D=Q(`${N}-${h}`,l==null?void 0:l.className,f),L=c.useMemo(()=>{var H,F;if(typeof p=="function"||y2(p))return p||null;if(typeof o.expandIcon=="function"||y2(o.expandIcon))return o.expandIcon||null;if(typeof(l==null?void 0:l.expandIcon)=="function"||y2(l==null?void 0:l.expandIcon))return(l==null?void 0:l.expandIcon)||null;const W=(H=p??(o==null?void 0:o.expandIcon))!==null&&H!==void 0?H:l==null?void 0:l.expandIcon;return qr(W,{className:Q(`${N}-submenu-expand-icon`,c.isValidElement(W)?(F=W.props)===null||F===void 0?void 0:F.className:void 0)})},[p,o==null?void 0:o.expandIcon,l==null?void 0:l.expandIcon,N]),B=c.useMemo(()=>({prefixCls:N,inlineCollapsed:_||!1,direction:s,firstLevel:!0,theme:h,mode:j,disableMenuItemTitleTooltip:b}),[N,_,s,b,h]);return M(c.createElement(s1.Provider,{value:null},c.createElement(a1.Provider,{value:B},c.createElement(Eh,Object.assign({getPopupContainer:a,overflowedIndicator:c.createElement(WT,null),overflowedIndicatorPopupClassName:Q(N,`${N}-${h}`,$),mode:j,selectable:I,onClick:P},O,{inlineCollapsed:_,style:Object.assign(Object.assign({},l==null?void 0:l.style),m),className:D,prefixCls:N,direction:s,defaultMotions:R,expandIcon:L,ref:t,rootClassName:Q(x,T,o.rootClassName,k,A),_internalComponents:ALe})))))}),yu=c.forwardRef((e,t)=>{const n=c.useRef(null),r=c.useContext(GS);return c.useImperativeHandle(t,()=>({menu:n.current,focus:o=>{var i;(i=n.current)===null||i===void 0||i.focus(o)}})),c.createElement(DLe,Object.assign({ref:n},e,r))});yu.Item=EQ;yu.SubMenu=PQ;yu.Divider=$Q;yu.ItemGroup=VT;const LLe=e=>{const{componentCls:t,menuCls:n,colorError:r,colorTextLightSolid:o}=e,i=`${n}-item`;return{[`${t}, ${t}-menu-submenu`]:{[`${n} ${i}`]:{[`&${i}-danger:not(${i}-disabled)`]:{color:r,"&:hover":{color:o,backgroundColor:r}}}}}},zLe=e=>{const{componentCls:t,menuCls:n,zIndexPopup:r,dropdownArrowDistance:o,sizePopupArrow:i,antCls:a,iconCls:s,motionDurationMid:l,paddingBlock:u,fontSize:d,dropdownEdgeChildPadding:f,colorTextDisabled:m,fontSizeIcon:h,controlPaddingHorizontal:p,colorBgElevated:b}=e;return[{[t]:{position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:r,display:"block","&::before":{position:"absolute",insetBlock:e.calc(i).div(2).sub(o).equal(),zIndex:-9999,opacity:1e-4,content:'""'},"&-menu-vertical":{maxHeight:"100vh",overflowY:"auto"},[`&-trigger${a}-btn`]:{[`& > ${s}-down, & > ${a}-btn-icon > ${s}-down`]:{fontSize:h}},[`${t}-wrap`]:{position:"relative",[`${a}-btn > ${s}-down`]:{fontSize:h},[`${s}-down::before`]:{transition:`transform ${l}`}},[`${t}-wrap-open`]:{[`${s}-down::before`]:{transform:"rotate(180deg)"}},"\n        &-hidden,\n        &-menu-hidden,\n        &-menu-submenu-hidden\n      ":{display:"none"},[`&${a}-slide-down-enter${a}-slide-down-enter-active${t}-placement-bottomLeft,
          &${a}-slide-down-appear${a}-slide-down-appear-active${t}-placement-bottomLeft,
          &${a}-slide-down-enter${a}-slide-down-enter-active${t}-placement-bottom,
          &${a}-slide-down-appear${a}-slide-down-appear-active${t}-placement-bottom,
          &${a}-slide-down-enter${a}-slide-down-enter-active${t}-placement-bottomRight,
          &${a}-slide-down-appear${a}-slide-down-appear-active${t}-placement-bottomRight`]:{animationName:$S},[`&${a}-slide-up-enter${a}-slide-up-enter-active${t}-placement-topLeft,
          &${a}-slide-up-appear${a}-slide-up-appear-active${t}-placement-topLeft,
          &${a}-slide-up-enter${a}-slide-up-enter-active${t}-placement-top,
          &${a}-slide-up-appear${a}-slide-up-appear-active${t}-placement-top,
          &${a}-slide-up-enter${a}-slide-up-enter-active${t}-placement-topRight,
          &${a}-slide-up-appear${a}-slide-up-appear-active${t}-placement-topRight`]:{animationName:OS},[`&${a}-slide-down-leave${a}-slide-down-leave-active${t}-placement-bottomLeft,
          &${a}-slide-down-leave${a}-slide-down-leave-active${t}-placement-bottom,
          &${a}-slide-down-leave${a}-slide-down-leave-active${t}-placement-bottomRight`]:{animationName:ES},[`&${a}-slide-up-leave${a}-slide-up-leave-active${t}-placement-topLeft,
          &${a}-slide-up-leave${a}-slide-up-leave-active${t}-placement-top,
          &${a}-slide-up-leave${a}-slide-up-leave-active${t}-placement-topRight`]:{animationName:PS}}},AT(e,b,{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({},xn(e)),{[n]:Object.assign(Object.assign({padding:f,listStyleType:"none",backgroundColor:b,backgroundClip:"padding-box",borderRadius:e.borderRadiusLG,outline:"none",boxShadow:e.boxShadowSecondary},Hs(e)),{"&:empty":{padding:0,boxShadow:"none"},[`${n}-item-group-title`]:{padding:`${Z(u)} ${Z(p)}`,color:e.colorTextDescription,transition:`all ${l}`},[`${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 ${l}`,"&: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:`${Z(u)} ${Z(p)}`,color:e.colorText,fontWeight:"normal",fontSize:d,lineHeight:e.lineHeight,cursor:"pointer",transition:`all ${l}`,borderRadius:e.borderRadiusSM,"&:hover, &-active":{backgroundColor:e.controlItemBgHover}},Hs(e)),{"&-selected":{color:e.colorPrimary,backgroundColor:e.controlItemBgActive,"&:hover, &-active":{backgroundColor:e.controlItemBgActiveHover}},"&-disabled":{color:m,cursor:"not-allowed","&:hover":{color:m,backgroundColor:b,cursor:"not-allowed"},a:{pointerEvents:"none"}},"&-divider":{height:1,margin:`${Z(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:h,fontStyle:"normal"}}}),[`${n}-item-group-list`]:{margin:`0 ${Z(e.marginXS)}`,padding:0,listStyle:"none"},[`${n}-submenu-title`]:{paddingInlineEnd:e.calc(p).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:b,cursor:"not-allowed"}},[`${n}-submenu-selected ${t}-menu-submenu-title`]:{color:e.colorPrimary}})})},[vl(e,"slide-up"),vl(e,"slide-down"),Wm(e,"move-up"),Wm(e,"move-down"),Qv(e,"zoom-big")]]},FLe=e=>Object.assign(Object.assign({zIndexPopup:e.zIndexPopupBase+50,paddingBlock:(e.controlHeight-e.fontSize*e.lineHeight)/2},VS({contentRadius:e.borderRadiusLG,limitVerticalRadius:!0})),HS(e)),BLe=vn("Dropdown",e=>{const{marginXXS:t,sizePopupArrow:n,paddingXXS:r,componentCls:o}=e,i=cn(e,{menuCls:`${o}-menu`,dropdownArrowDistance:e.calc(n).div(2).add(t).equal(),dropdownEdgeChildPadding:r});return[zLe(i),LLe(i)]},FLe,{resetStyle:!1}),XS=e=>{var t;const{menu:n,arrow:r,prefixCls:o,children:i,trigger:a,disabled:s,dropdownRender:l,popupRender:u,getPopupContainer:d,overlayClassName:f,rootClassName:m,overlayStyle:h,open:p,onOpenChange:b,visible:v,onVisibleChange:y,mouseEnterDelay:x=.15,mouseLeaveDelay:w=.1,autoAdjustOverflow:C=!0,placement:S="",overlay:$,transitionName:E,destroyOnHidden:O,destroyPopupOnHide:P}=e,{getPopupContainer:j,getPrefixCls:I,direction:_,dropdown:R}=c.useContext(kt),N=u||l;pu();const A=c.useMemo(()=>{const fe=I();return E!==void 0?E:S.includes("top")?`${fe}-slide-down`:`${fe}-slide-up`},[I,S,E]),M=c.useMemo(()=>S?S.includes("Center")?S.slice(0,S.indexOf("Center")):S:_==="rtl"?"bottomRight":"bottomLeft",[S,_]),T=I("dropdown",o),k=Hr(T),[D,L,B]=BLe(T,k),[,H]=Xo(),F=c.Children.only(MDe(i)?c.createElement("span",null,i):i),W=qr(F,{className:Q(`${T}-trigger`,{[`${T}-rtl`]:_==="rtl"},F.props.className),disabled:(t=F.props.disabled)!==null&&t!==void 0?t:s}),q=s?[]:a,G=!!(q!=null&&q.includes("contextMenu")),[te,ee]=kn(!1,{value:p??v}),z=fn(fe=>{b==null||b(fe,{source:"trigger"}),y==null||y(fe),ee(fe)}),ne=Q(f,m,L,B,k,R==null?void 0:R.className,{[`${T}-rtl`]:_==="rtl"}),X=QJ({arrowPointAtCenter:typeof r=="object"&&r.pointAtCenter,autoAdjustOverflow:C,offset:H.marginXXS,arrowWidth:r?H.sizePopupArrow:0,borderRadius:H.borderRadius}),U=fn(()=>{n!=null&&n.selectable&&(n!=null&&n.multiple)||(b==null||b(!1,{source:"menu"}),ee(!1))}),le=()=>{let fe;return n!=null&&n.items?fe=c.createElement(yu,Object.assign({},n)):typeof $=="function"?fe=$():fe=$,N&&(fe=N(fe)),fe=c.Children.only(typeof fe=="string"?c.createElement("span",null,fe):fe),c.createElement(OQ,{prefixCls:`${T}-menu`,rootClassName:Q(B,k),expandIcon:c.createElement("span",{className:`${T}-menu-submenu-arrow`},_==="rtl"?c.createElement(Yg,{className:`${T}-menu-submenu-arrow-icon`}):c.createElement(qg,{className:`${T}-menu-submenu-arrow-icon`})),mode:"vertical",selectable:!1,onClick:U,validator:({mode:ye})=>{}},fe)},[se,ae]=vu("Dropdown",h==null?void 0:h.zIndex);let re=c.createElement(sQ,Object.assign({alignPoint:G},Xn(e,["rootClassName"]),{mouseEnterDelay:x,mouseLeaveDelay:w,visible:te,builtinPlacements:X,arrow:!!r,overlayClassName:ne,prefixCls:T,getPopupContainer:d||j,transitionName:A,trigger:q,overlay:le,placement:M,onVisibleChange:z,overlayStyle:Object.assign(Object.assign(Object.assign({},R==null?void 0:R.style),h),{zIndex:se}),autoDestroy:O??P}),W);return se&&(re=c.createElement(Yv.Provider,{value:ae},re)),D(re)},HLe=LS(XS,"align",void 0,"dropdown",e=>e),VLe=e=>c.createElement(HLe,Object.assign({},e),c.createElement("span",null));XS._InternalPanelDoNotUseOrYouWillBeFired=VLe;var jQ={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(iu,function(){var n=1e3,r=6e4,o=36e5,i="millisecond",a="second",s="minute",l="hour",u="day",d="week",f="month",m="quarter",h="year",p="date",b="Invalid Date",v=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,y=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,x={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(N){var A=["th","st","nd","rd"],M=N%100;return"["+N+(A[(M-20)%10]||A[M]||A[0])+"]"}},w=function(N,A,M){var T=String(N);return!T||T.length>=A?N:""+Array(A+1-T.length).join(M)+N},C={s:w,z:function(N){var A=-N.utcOffset(),M=Math.abs(A),T=Math.floor(M/60),k=M%60;return(A<=0?"+":"-")+w(T,2,"0")+":"+w(k,2,"0")},m:function N(A,M){if(A.date()<M.date())return-N(M,A);var T=12*(M.year()-A.year())+(M.month()-A.month()),k=A.clone().add(T,f),D=M-k<0,L=A.clone().add(T+(D?-1:1),f);return+(-(T+(M-k)/(D?k-L:L-k))||0)},a:function(N){return N<0?Math.ceil(N)||0:Math.floor(N)},p:function(N){return{M:f,y:h,w:d,d:u,D:p,h:l,m:s,s:a,ms:i,Q:m}[N]||String(N||"").toLowerCase().replace(/s$/,"")},u:function(N){return N===void 0}},S="en",$={};$[S]=x;var E="$isDayjsObject",O=function(N){return N instanceof _||!(!N||!N[E])},P=function N(A,M,T){var k;if(!A)return S;if(typeof A=="string"){var D=A.toLowerCase();$[D]&&(k=D),M&&($[D]=M,k=D);var L=A.split("-");if(!k&&L.length>1)return N(L[0])}else{var B=A.name;$[B]=A,k=B}return!T&&k&&(S=k),k||!T&&S},j=function(N,A){if(O(N))return N.clone();var M=typeof A=="object"?A:{};return M.date=N,M.args=arguments,new _(M)},I=C;I.l=P,I.i=O,I.w=function(N,A){return j(N,{locale:A.$L,utc:A.$u,x:A.$x,$offset:A.$offset})};var _=function(){function N(M){this.$L=P(M.locale,null,!0),this.parse(M),this.$x=this.$x||M.x||{},this[E]=!0}var A=N.prototype;return A.parse=function(M){this.$d=function(T){var k=T.date,D=T.utc;if(k===null)return new Date(NaN);if(I.u(k))return new Date;if(k instanceof Date)return new Date(k);if(typeof k=="string"&&!/Z$/i.test(k)){var L=k.match(v);if(L){var B=L[2]-1||0,H=(L[7]||"0").substring(0,3);return D?new Date(Date.UTC(L[1],B,L[3]||1,L[4]||0,L[5]||0,L[6]||0,H)):new Date(L[1],B,L[3]||1,L[4]||0,L[5]||0,L[6]||0,H)}}return new Date(k)}(M),this.init()},A.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()},A.$utils=function(){return I},A.isValid=function(){return this.$d.toString()!==b},A.isSame=function(M,T){var k=j(M);return this.startOf(T)<=k&&k<=this.endOf(T)},A.isAfter=function(M,T){return j(M)<this.startOf(T)},A.isBefore=function(M,T){return this.endOf(T)<j(M)},A.$g=function(M,T,k){return I.u(M)?this[T]:this.set(k,M)},A.unix=function(){return Math.floor(this.valueOf()/1e3)},A.valueOf=function(){return this.$d.getTime()},A.startOf=function(M,T){var k=this,D=!!I.u(T)||T,L=I.p(M),B=function(z,ne){var X=I.w(k.$u?Date.UTC(k.$y,ne,z):new Date(k.$y,ne,z),k);return D?X:X.endOf(u)},H=function(z,ne){return I.w(k.toDate()[z].apply(k.toDate("s"),(D?[0,0,0,0]:[23,59,59,999]).slice(ne)),k)},F=this.$W,W=this.$M,q=this.$D,G="set"+(this.$u?"UTC":"");switch(L){case h:return D?B(1,0):B(31,11);case f:return D?B(1,W):B(0,W+1);case d:var te=this.$locale().weekStart||0,ee=(F<te?F+7:F)-te;return B(D?q-ee:q+(6-ee),W);case u:case p:return H(G+"Hours",0);case l:return H(G+"Minutes",1);case s:return H(G+"Seconds",2);case a:return H(G+"Milliseconds",3);default:return this.clone()}},A.endOf=function(M){return this.startOf(M,!1)},A.$set=function(M,T){var k,D=I.p(M),L="set"+(this.$u?"UTC":""),B=(k={},k[u]=L+"Date",k[p]=L+"Date",k[f]=L+"Month",k[h]=L+"FullYear",k[l]=L+"Hours",k[s]=L+"Minutes",k[a]=L+"Seconds",k[i]=L+"Milliseconds",k)[D],H=D===u?this.$D+(T-this.$W):T;if(D===f||D===h){var F=this.clone().set(p,1);F.$d[B](H),F.init(),this.$d=F.set(p,Math.min(this.$D,F.daysInMonth())).$d}else B&&this.$d[B](H);return this.init(),this},A.set=function(M,T){return this.clone().$set(M,T)},A.get=function(M){return this[I.p(M)]()},A.add=function(M,T){var k,D=this;M=Number(M);var L=I.p(T),B=function(W){var q=j(D);return I.w(q.date(q.date()+Math.round(W*M)),D)};if(L===f)return this.set(f,this.$M+M);if(L===h)return this.set(h,this.$y+M);if(L===u)return B(1);if(L===d)return B(7);var H=(k={},k[s]=r,k[l]=o,k[a]=n,k)[L]||1,F=this.$d.getTime()+M*H;return I.w(F,this)},A.subtract=function(M,T){return this.add(-1*M,T)},A.format=function(M){var T=this,k=this.$locale();if(!this.isValid())return k.invalidDate||b;var D=M||"YYYY-MM-DDTHH:mm:ssZ",L=I.z(this),B=this.$H,H=this.$m,F=this.$M,W=k.weekdays,q=k.months,G=k.meridiem,te=function(ne,X,U,le){return ne&&(ne[X]||ne(T,D))||U[X].slice(0,le)},ee=function(ne){return I.s(B%12||12,ne,"0")},z=G||function(ne,X,U){var le=ne<12?"AM":"PM";return U?le.toLowerCase():le};return D.replace(y,function(ne,X){return X||function(U){switch(U){case"YY":return String(T.$y).slice(-2);case"YYYY":return I.s(T.$y,4,"0");case"M":return F+1;case"MM":return I.s(F+1,2,"0");case"MMM":return te(k.monthsShort,F,q,3);case"MMMM":return te(q,F);case"D":return T.$D;case"DD":return I.s(T.$D,2,"0");case"d":return String(T.$W);case"dd":return te(k.weekdaysMin,T.$W,W,2);case"ddd":return te(k.weekdaysShort,T.$W,W,3);case"dddd":return W[T.$W];case"H":return String(B);case"HH":return I.s(B,2,"0");case"h":return ee(1);case"hh":return ee(2);case"a":return z(B,H,!0);case"A":return z(B,H,!1);case"m":return String(H);case"mm":return I.s(H,2,"0");case"s":return String(T.$s);case"ss":return I.s(T.$s,2,"0");case"SSS":return I.s(T.$ms,3,"0");case"Z":return L}return null}(ne)||L.replace(":","")})},A.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},A.diff=function(M,T,k){var D,L=this,B=I.p(T),H=j(M),F=(H.utcOffset()-this.utcOffset())*r,W=this-H,q=function(){return I.m(L,H)};switch(B){case h:D=q()/12;break;case f:D=q();break;case m:D=q()/3;break;case d:D=(W-F)/6048e5;break;case u:D=(W-F)/864e5;break;case l:D=W/o;break;case s:D=W/r;break;case a:D=W/n;break;default:D=W}return k?D:I.a(D)},A.daysInMonth=function(){return this.endOf(f).$D},A.$locale=function(){return $[this.$L]},A.locale=function(M,T){if(!M)return this.$L;var k=this.clone(),D=P(M,T,!0);return D&&(k.$L=D),k},A.clone=function(){return I.w(this.$d,this)},A.toDate=function(){return new Date(this.valueOf())},A.toJSON=function(){return this.isValid()?this.toISOString():null},A.toISOString=function(){return this.$d.toISOString()},A.toString=function(){return this.$d.toUTCString()},N}(),R=_.prototype;return j.prototype=R,[["$ms",i],["$s",a],["$m",s],["$H",l],["$W",u],["$M",f],["$y",h],["$D",p]].forEach(function(N){R[N[1]]=function(A){return this.$g(A,N[0],N[1])}}),j.extend=function(N,A){return N.$i||(N(A,_,j),N.$i=!0),j},j.locale=P,j.isDayjs=O,j.unix=function(N){return j(1e3*N)},j.en=$[S],j.Ls=$,j.p={},j})})(jQ);var IQ=jQ.exports;const ti=ho(IQ);var _Q={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(iu,function(){return function(n,r){r.prototype.weekday=function(o){var i=this.$locale().weekStart||0,a=this.$W,s=(a<i?a+7:a)-i;return this.$utils().u(o)?s:this.subtract(s,"day").add(o,"day")}}})})(_Q);var WLe=_Q.exports;const ULe=ho(WLe);var NQ={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(iu,function(){return function(n,r,o){var i=r.prototype,a=function(f){return f&&(f.indexOf?f:f.s)},s=function(f,m,h,p,b){var v=f.name?f:f.$locale(),y=a(v[m]),x=a(v[h]),w=y||x.map(function(S){return S.slice(0,p)});if(!b)return w;var C=v.weekStart;return w.map(function(S,$){return w[($+(C||0))%7]})},l=function(){return o.Ls[o.locale()]},u=function(f,m){return f.formats[m]||function(h){return h.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(p,b,v){return b||v.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}};i.localeData=function(){return d.bind(this)()},o.localeData=function(){var f=l();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(l(),"months")},o.monthsShort=function(){return s(l(),"monthsShort","months",3)},o.weekdays=function(f){return s(l(),"weekdays",null,null,f)},o.weekdaysShort=function(f){return s(l(),"weekdaysShort","weekdays",3,f)},o.weekdaysMin=function(f){return s(l(),"weekdaysMin","weekdays",2,f)}}})})(NQ);var KLe=NQ.exports;const qLe=ho(KLe);var RQ={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(iu,function(){var n="week",r="year";return function(o,i,a){var s=i.prototype;s.week=function(l){if(l===void 0&&(l=null),l!==null)return this.add(7*(l-this.week()),"day");var u=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var d=a(this).startOf(r).add(1,r).date(u),f=a(this).endOf(n);if(d.isBefore(f))return 1}var m=a(this).startOf(r).date(u).startOf(n).subtract(1,"millisecond"),h=this.diff(m,n,!0);return h<0?a(this).startOf("week").week():Math.ceil(h)},s.weeks=function(l){return l===void 0&&(l=null),this.week(l)}}})})(RQ);var GLe=RQ.exports;const XLe=ho(GLe);var TQ={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(iu,function(){return function(n,r){r.prototype.weekYear=function(){var o=this.month(),i=this.week(),a=this.year();return i===1&&o===11?a+1:o===0&&i>=52?a-1:a}}})})(TQ);var YLe=TQ.exports;const ZLe=ho(YLe);var MQ={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(iu,function(){return function(n,r){var o=r.prototype,i=o.format;o.format=function(a){var s=this,l=this.$locale();if(!this.isValid())return i.bind(this)(a);var u=this.$utils(),d=(a||"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 l.ordinal(s.$D);case"gggg":return s.weekYear();case"GGGG":return s.isoWeekYear();case"wo":return l.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 i.bind(this)(d)}}})})(MQ);var JLe=MQ.exports;const QLe=ho(JLe);var kQ={exports:{}};(function(e,t){(function(n,r){e.exports=r()})(iu,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/,i=/\d\d/,a=/\d\d?/,s=/\d*[^-_:/,()\s\d]+/,l={},u=function(v){return(v=+v)+(v>68?1900:2e3)},d=function(v){return function(y){this[v]=+y}},f=[/[+-]\d\d:?(\d\d)?|Z/,function(v){(this.zone||(this.zone={})).offset=function(y){if(!y||y==="Z")return 0;var x=y.match(/([+-]|\d\d)/g),w=60*x[1]+(+x[2]||0);return w===0?0:x[0]==="+"?-w:w}(v)}],m=function(v){var y=l[v];return y&&(y.indexOf?y:y.s.concat(y.f))},h=function(v,y){var x,w=l.meridiem;if(w){for(var C=1;C<=24;C+=1)if(v.indexOf(w(C,0,y))>-1){x=C>12;break}}else x=v===(y?"pm":"PM");return x},p={A:[s,function(v){this.afternoon=h(v,!1)}],a:[s,function(v){this.afternoon=h(v,!0)}],Q:[o,function(v){this.month=3*(v-1)+1}],S:[o,function(v){this.milliseconds=100*+v}],SS:[i,function(v){this.milliseconds=10*+v}],SSS:[/\d{3}/,function(v){this.milliseconds=+v}],s:[a,d("seconds")],ss:[a,d("seconds")],m:[a,d("minutes")],mm:[a,d("minutes")],H:[a,d("hours")],h:[a,d("hours")],HH:[a,d("hours")],hh:[a,d("hours")],D:[a,d("day")],DD:[i,d("day")],Do:[s,function(v){var y=l.ordinal,x=v.match(/\d+/);if(this.day=x[0],y)for(var w=1;w<=31;w+=1)y(w).replace(/\[|\]/g,"")===v&&(this.day=w)}],w:[a,d("week")],ww:[i,d("week")],M:[a,d("month")],MM:[i,d("month")],MMM:[s,function(v){var y=m("months"),x=(m("monthsShort")||y.map(function(w){return w.slice(0,3)})).indexOf(v)+1;if(x<1)throw new Error;this.month=x%12||x}],MMMM:[s,function(v){var y=m("months").indexOf(v)+1;if(y<1)throw new Error;this.month=y%12||y}],Y:[/[+-]?\d+/,d("year")],YY:[i,function(v){this.year=u(v)}],YYYY:[/\d{4}/,d("year")],Z:f,ZZ:f};function b(v){var y,x;y=v,x=l&&l.formats;for(var w=(v=y.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(j,I,_){var R=_&&_.toUpperCase();return I||x[_]||n[_]||x[R].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(N,A,M){return A||M.slice(1)})})).match(r),C=w.length,S=0;S<C;S+=1){var $=w[S],E=p[$],O=E&&E[0],P=E&&E[1];w[S]=P?{regex:O,parser:P}:$.replace(/^\[|\]$/g,"")}return function(j){for(var I={},_=0,R=0;_<C;_+=1){var N=w[_];if(typeof N=="string")R+=N.length;else{var A=N.regex,M=N.parser,T=j.slice(R),k=A.exec(T)[0];M.call(I,k),j=j.replace(k,"")}}return function(D){var L=D.afternoon;if(L!==void 0){var B=D.hours;L?B<12&&(D.hours+=12):B===12&&(D.hours=0),delete D.afternoon}}(I),I}}return function(v,y,x){x.p.customParseFormat=!0,v&&v.parseTwoDigitYear&&(u=v.parseTwoDigitYear);var w=y.prototype,C=w.parse;w.parse=function(S){var $=S.date,E=S.utc,O=S.args;this.$u=E;var P=O[1];if(typeof P=="string"){var j=O[2]===!0,I=O[3]===!0,_=j||I,R=O[2];I&&(R=O[2]),l=this.$locale(),!j&&R&&(l=x.Ls[R]),this.$d=function(T,k,D,L){try{if(["x","X"].indexOf(k)>-1)return new Date((k==="X"?1e3:1)*T);var B=b(k)(T),H=B.year,F=B.month,W=B.day,q=B.hours,G=B.minutes,te=B.seconds,ee=B.milliseconds,z=B.zone,ne=B.week,X=new Date,U=W||(H||F?1:X.getDate()),le=H||X.getFullYear(),se=0;H&&!F||(se=F>0?F-1:X.getMonth());var ae,re=q||0,fe=G||0,ye=te||0,Pe=ee||0;return z?new Date(Date.UTC(le,se,U,re,fe,ye,Pe+60*z.offset*1e3)):D?new Date(Date.UTC(le,se,U,re,fe,ye,Pe)):(ae=new Date(le,se,U,re,fe,ye,Pe),ne&&(ae=L(ae).week(ne).toDate()),ae)}catch{return new Date("")}}($,P,E,x),this.init(),R&&R!==!0&&(this.$L=this.locale(R).$L),_&&$!=this.format(P)&&(this.$d=new Date("")),l={}}else if(P instanceof Array)for(var N=P.length,A=1;A<=N;A+=1){O[1]=P[A-1];var M=x.apply(this,O);if(M.isValid()){this.$d=M.$d,this.$L=M.$L,this.init();break}A===N&&(this.$d=new Date(""))}else C.call(this,S)}}})})(kQ);var eze=kQ.exports;const tze=ho(eze);ti.extend(tze);ti.extend(QLe);ti.extend(ULe);ti.extend(qLe);ti.extend(XLe);ti.extend(ZLe);ti.extend(function(e,t){var n=t.prototype,r=n.format;n.format=function(i){var a=(i||"").replace("Wo","wo");return r.bind(this)(a)}});var nze={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"},Eu=function(t){var n=nze[t];return n||t.split("_")[0]},rze={getNow:function(){var t=ti();return typeof t.tz=="function"?t.tz():t},getFixedDate:function(t){return ti(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 ti().locale(Eu(t)).localeData().firstDayOfWeek()},getWeekFirstDate:function(t,n){return n.locale(Eu(t)).weekday(0)},getWeek:function(t,n){return n.locale(Eu(t)).week()},getShortWeekDays:function(t){return ti().locale(Eu(t)).localeData().weekdaysMin()},getShortMonths:function(t){return ti().locale(Eu(t)).localeData().monthsShort()},format:function(t,n,r){return n.locale(Eu(t)).format(r)},parse:function(t,n,r){for(var o=Eu(t),i=0;i<r.length;i+=1){var a=r[i],s=n;if(a.includes("wo")||a.includes("Wo")){for(var l=s.split("-")[0],u=s.split("-")[1],d=ti(l,"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 h=ti(s,a,!0).locale(o);if(h.isValid())return h}return null}}};function oze(e,t){return e!==void 0?e:t?"bottomRight":"bottomLeft"}var Gs=c.createContext(null),ize={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 AQ(e){var t=e.popupElement,n=e.popupStyle,r=e.popupClassName,o=e.popupAlign,i=e.transitionName,a=e.getPopupContainer,s=e.children,l=e.range,u=e.placement,d=e.builtinPlacements,f=d===void 0?ize:d,m=e.direction,h=e.visible,p=e.onClose,b=c.useContext(Gs),v=b.prefixCls,y="".concat(v,"-dropdown"),x=oze(u,m==="rtl");return c.createElement(i0,{showAction:[],hideAction:["click"],popupPlacement:x,builtinPlacements:f,prefixCls:y,popupTransitionName:i,popup:t,popupAlign:o,popupVisible:h,popupClassName:Q(r,K(K({},"".concat(y,"-range"),l),"".concat(y,"-rtl"),m==="rtl")),popupStyle:n,stretch:"minWidth",getPopupContainer:a,onPopupVisibleChange:function(C){C||p()}},s)}function UT(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 Zd(e){return e==null?[]:Array.isArray(e)?e:[e]}function Vp(e,t,n){var r=Ne(e);return r[t]=n,r}function YS(e,t){var n={},r=t||Object.keys(e);return r.forEach(function(o){e[o]!==void 0&&(n[o]=e[o])}),n}function DQ(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 LQ(e,t,n){var r=n!==void 0?n:t[t.length-1],o=t.find(function(i){return e[i]});return r!==o?e[o]:void 0}function zQ(e){return YS(e,["placement","builtinPlacements","popupAlign","getPopupContainer","transitionName","direction"])}function KT(e,t,n,r){var o=c.useMemo(function(){return e||function(a,s){var l=a;return t&&s.type==="date"?t(l,s.today):n&&s.type==="month"?n(l,s.locale):s.originNode}},[e,n,t]),i=c.useCallback(function(a,s){return o(a,Y(Y({},s),{},{range:r}))},[o,r]);return i}function FQ(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],r=c.useState([!1,!1]),o=ue(r,2),i=o[0],a=o[1],s=function(d,f){a(function(m){return Vp(m,f,d)})},l=c.useMemo(function(){return i.map(function(u,d){if(u)return!0;var f=e[d];return f?!!(!n[d]&&!f||f&&t(f,{activeIndex:d})):!1})},[e,i,t,n]);return[l,s]}function BQ(e,t,n,r,o){var i="",a=[];return e&&a.push(o?"hh":"HH"),t&&a.push("mm"),n&&a.push("ss"),i=a.join(":"),r&&(i+=".SSS"),o&&(i+=" A"),i}function aze(e,t,n,r,o,i){var a=e.fieldDateTimeFormat,s=e.fieldDateFormat,l=e.fieldTimeFormat,u=e.fieldMonthFormat,d=e.fieldYearFormat,f=e.fieldWeekFormat,m=e.fieldQuarterFormat,h=e.yearFormat,p=e.cellYearFormat,b=e.cellQuarterFormat,v=e.dayFormat,y=e.cellDateFormat,x=BQ(t,n,r,o,i);return Y(Y({},e),{},{fieldDateTimeFormat:a||"YYYY-MM-DD ".concat(x),fieldDateFormat:s||"YYYY-MM-DD",fieldTimeFormat:l||x,fieldMonthFormat:u||"YYYY-MM",fieldYearFormat:d||"YYYY",fieldWeekFormat:f||"gggg-wo",fieldQuarterFormat:m||"YYYY-[Q]Q",yearFormat:h||"YYYY",cellYearFormat:p||"YYYY",cellQuarterFormat:b||"[Q]Q",cellDateFormat:y||v||"D"})}function HQ(e,t){var n=t.showHour,r=t.showMinute,o=t.showSecond,i=t.showMillisecond,a=t.use12Hours;return ce.useMemo(function(){return aze(e,n,r,o,i,a)},[e,n,r,o,i,a])}function cp(e,t,n){return n??t.some(function(r){return e.includes(r)})}var sze=["showNow","showHour","showMinute","showSecond","showMillisecond","use12Hours","hourStep","minuteStep","secondStep","millisecondStep","hideDisabledOptions","defaultValue","disabledHours","disabledMinutes","disabledSeconds","disabledMilliseconds","disabledTime","changeOnScroll","defaultOpenValue"];function lze(e){var t=YS(e,sze),n=e.format,r=e.picker,o=null;return n&&(o=n,Array.isArray(o)&&(o=o[0]),o=_t(o)==="object"?o.format:o),r==="time"&&(t.format=o),[t,o]}function cze(e){return e&&typeof e=="string"}function VQ(e,t,n,r){return[e,t,n,r].some(function(o){return o!==void 0})}function WQ(e,t,n,r,o){var i=t,a=n,s=r;if(!e&&!i&&!a&&!s&&!o)i=!0,a=!0,s=!0;else if(e){var l,u,d,f=[i,a,s].some(function(p){return p===!1}),m=[i,a,s].some(function(p){return p===!0}),h=f?!0:!m;i=(l=i)!==null&&l!==void 0?l:h,a=(u=a)!==null&&u!==void 0?u:h,s=(d=s)!==null&&d!==void 0?d:h}return[i,a,s,o]}function UQ(e){var t=e.showTime,n=lze(e),r=ue(n,2),o=r[0],i=r[1],a=t&&_t(t)==="object"?t:{},s=Y(Y({defaultOpenValue:a.defaultOpenValue||a.defaultValue},o),a),l=s.showMillisecond,u=s.showHour,d=s.showMinute,f=s.showSecond,m=VQ(u,d,f,l),h=WQ(m,u,d,f,l),p=ue(h,3);return u=p[0],d=p[1],f=p[2],[s,Y(Y({},s),{},{showHour:u,showMinute:d,showSecond:f,showMillisecond:l}),s.format,i]}function KQ(e,t,n,r,o){var i=e==="time";if(e==="datetime"||i){for(var a=r,s=DQ(e,o,null),l=s,u=[t,n],d=0;d<u.length;d+=1){var f=Zd(u[d])[0];if(cze(f)){l=f;break}}var m=a.showHour,h=a.showMinute,p=a.showSecond,b=a.showMillisecond,v=a.use12Hours,y=cp(l,["a","A","LT","LLL","LTS"],v),x=VQ(m,h,p,b);x||(m=cp(l,["H","h","k","LT","LLL"]),h=cp(l,["m","LT","LLL"]),p=cp(l,["s","LTS"]),b=cp(l,["SSS"]));var w=WQ(x,m,h,p,b),C=ue(w,3);m=C[0],h=C[1],p=C[2];var S=t||BQ(m,h,p,b,y);return Y(Y({},a),{},{format:S,showHour:m,showMinute:h,showSecond:p,showMillisecond:b,use12Hours:y})}return null}function uze(e,t,n){if(t===!1)return null;var r=t&&_t(t)==="object"?t:{};return r.clearIcon||n||c.createElement("span",{className:"".concat(e,"-clear-btn")})}var b2=7;function bu(e,t,n){return!e&&!t||e===t?!0:!e||!t?!1:n()}function _j(e,t,n){return bu(t,n,function(){var r=Math.floor(e.getYear(t)/10),o=Math.floor(e.getYear(n)/10);return r===o})}function Md(e,t,n){return bu(t,n,function(){return e.getYear(t)===e.getYear(n)})}function xz(e,t){var n=Math.floor(e.getMonth(t)/3);return n+1}function dze(e,t,n){return bu(t,n,function(){return Md(e,t,n)&&xz(e,t)===xz(e,n)})}function qT(e,t,n){return bu(t,n,function(){return Md(e,t,n)&&e.getMonth(t)===e.getMonth(n)})}function GT(e,t,n){return bu(t,n,function(){return Md(e,t,n)&&qT(e,t,n)&&e.getDate(t)===e.getDate(n)})}function qQ(e,t,n){return bu(t,n,function(){return e.getHour(t)===e.getHour(n)&&e.getMinute(t)===e.getMinute(n)&&e.getSecond(t)===e.getSecond(n)})}function GQ(e,t,n){return bu(t,n,function(){return GT(e,t,n)&&qQ(e,t,n)&&e.getMillisecond(t)===e.getMillisecond(n)})}function Ep(e,t,n,r){return bu(n,r,function(){var o=e.locale.getWeekFirstDate(t,n),i=e.locale.getWeekFirstDate(t,r);return Md(e,o,i)&&e.locale.getWeek(t,n)===e.locale.getWeek(t,r)})}function yi(e,t,n,r,o){switch(o){case"date":return GT(e,n,r);case"week":return Ep(e,t.locale,n,r);case"month":return qT(e,n,r);case"quarter":return dze(e,n,r);case"year":return Md(e,n,r);case"decade":return _j(e,n,r);case"time":return qQ(e,n,r);default:return GQ(e,n,r)}}function ZS(e,t,n,r){return!t||!n||!r?!1:e.isAfter(r,t)&&e.isAfter(n,r)}function hy(e,t,n,r,o){return yi(e,t,n,r,o)?!0:e.isAfter(n,r)}function fze(e,t,n){var r=t.locale.getWeekFirstDay(e),o=t.setDate(n,1),i=t.getWeekDay(o),a=t.addDate(o,r-i);return t.getMonth(a)===t.getMonth(n)&&t.getDate(a)>1&&(a=t.addDate(a,-7)),a}function $o(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 l1(e,t,n){var r=t,o=["getHour","getMinute","getSecond","getMillisecond"],i=["setHour","setMinute","setSecond","setMillisecond"];return i.forEach(function(a,s){n?r=e[a](r,e[o[s]](n)):r=e[a](r,0)}),r}function mze(e,t,n,r,o){var i=fn(function(a,s){return!!(n&&n(a,s)||r&&e.isAfter(r,a)&&!yi(e,t,r,a,s.type)||o&&e.isAfter(a,o)&&!yi(e,t,o,a,s.type))});return i}function hze(e,t,n){return c.useMemo(function(){var r=DQ(e,t,n),o=Zd(r),i=o[0],a=_t(i)==="object"&&i.type==="mask"?i.format:null;return[o.map(function(s){return typeof s=="string"||typeof s=="function"?s:s.format}),a]},[e,t,n])}function pze(e,t,n){return typeof e[0]=="function"||n?!0:t}function gze(e,t,n,r){var o=fn(function(i,a){var s=Y({type:t},a);if(delete s.activeIndex,!e.isValidate(i)||n&&n(i,s))return!0;if((t==="date"||t==="time")&&r){var l,u=a&&a.activeIndex===1?"end":"start",d=((l=r.disabledTime)===null||l===void 0?void 0:l.call(r,i,u,{from:s.from}))||{},f=d.disabledHours,m=d.disabledMinutes,h=d.disabledSeconds,p=d.disabledMilliseconds,b=r.disabledHours,v=r.disabledMinutes,y=r.disabledSeconds,x=f||b,w=m||v,C=h||y,S=e.getHour(i),$=e.getMinute(i),E=e.getSecond(i),O=e.getMillisecond(i);if(x&&x().includes(S)||w&&w(S).includes($)||C&&C(S,$).includes(E)||p&&p(S,$,E).includes(O))return!0}return!1});return o}function py(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,n=c.useMemo(function(){var r=e&&Zd(e);return t&&r&&(r[1]=r[1]||r[0]),r},[e,t]);return n}function XQ(e,t){var n=e.generateConfig,r=e.locale,o=e.picker,i=o===void 0?"date":o,a=e.prefixCls,s=a===void 0?"rc-picker":a,l=e.styles,u=l===void 0?{}:l,d=e.classNames,f=d===void 0?{}:d,m=e.order,h=m===void 0?!0:m,p=e.components,b=p===void 0?{}:p,v=e.inputRender,y=e.allowClear,x=e.clearIcon,w=e.needConfirm,C=e.multiple,S=e.format,$=e.inputReadOnly,E=e.disabledDate,O=e.minDate,P=e.maxDate,j=e.showTime,I=e.value,_=e.defaultValue,R=e.pickerValue,N=e.defaultPickerValue,A=py(I),M=py(_),T=py(R),k=py(N),D=i==="date"&&j?"datetime":i,L=D==="time"||D==="datetime",B=L||C,H=w??L,F=UQ(e),W=ue(F,4),q=W[0],G=W[1],te=W[2],ee=W[3],z=HQ(r,G),ne=c.useMemo(function(){return KQ(D,te,ee,q,z)},[D,te,ee,q,z]),X=c.useMemo(function(){return Y(Y({},e),{},{prefixCls:s,locale:z,picker:i,styles:u,classNames:f,order:h,components:Y({input:v},b),clearIcon:uze(s,y,x),showTime:ne,value:A,defaultValue:M,pickerValue:T,defaultPickerValue:k},t==null?void 0:t())},[e]),U=hze(D,z,S),le=ue(U,2),se=le[0],ae=le[1],re=pze(se,$,C),fe=mze(n,r,E,O,P),ye=gze(n,i,fe,ne),Pe=c.useMemo(function(){return Y(Y({},X),{},{needConfirm:H,inputReadOnly:re,disabledDate:fe})},[X,H,re,fe]);return[Pe,D,B,se,ae,ye]}function vze(e,t,n){var r=kn(t,{value:e}),o=ue(r,2),i=o[0],a=o[1],s=ce.useRef(e),l=ce.useRef(),u=function(){ln.cancel(l.current)},d=fn(function(){a(s.current),n&&i!==s.current&&n(s.current)}),f=fn(function(m,h){u(),s.current=m,m||h?d():l.current=ln(d)});return ce.useEffect(function(){return u},[]),[i,f]}function YQ(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,i=vze(o,t||!1,r),a=ue(i,2),s=a[0],l=a[1];function u(d){var f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};(!f.inherit||s)&&l(d,f.force)}return[s,u]}function ZQ(e){var t=c.useRef();return c.useImperativeHandle(e,function(){var n;return{nativeElement:(n=t.current)===null||n===void 0?void 0:n.nativeElement,focus:function(o){var i;(i=t.current)===null||i===void 0||i.focus(o)},blur:function(){var o;(o=t.current)===null||o===void 0||o.blur()}}}),t}function JQ(e,t){return c.useMemo(function(){return e||(t?(ir(!1,"`ranges` is deprecated. Please use `presets` instead."),Object.entries(t).map(function(n){var r=ue(n,2),o=r[0],i=r[1];return{label:o,value:i}})):[])},[e,t])}function XT(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,r=c.useRef(t);r.current=t,od(function(){if(e)r.current(e);else{var o=ln(function(){r.current(e)},n);return function(){ln.cancel(o)}}},[e])}function QQ(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=c.useState(0),o=ue(r,2),i=o[0],a=o[1],s=c.useState(!1),l=ue(s,2),u=l[0],d=l[1],f=c.useRef([]),m=c.useRef(null),h=c.useRef(null),p=function(C){m.current=C},b=function(C){return m.current===C},v=function(C){d(C)},y=function(C){return C&&(h.current=C),h.current},x=function(C){var S=f.current,$=new Set(S.filter(function(O){return C[O]||t[O]})),E=S[S.length-1]===0?1:0;return $.size>=2||e[E]?null:E};return XT(u||n,function(){u||(f.current=[],p(null))}),c.useEffect(function(){u&&f.current.push(i)},[u,i]),[u,v,y,i,a,x,f.current,p,b]}function yze(e,t,n,r,o,i){var a=n[n.length-1],s=function(u,d){var f=ue(e,2),m=f[0],h=f[1],p=Y(Y({},d),{},{from:LQ(e,n)});return a===1&&t[0]&&m&&!yi(r,o,m,u,p.type)&&r.isAfter(m,u)||a===0&&t[1]&&h&&!yi(r,o,h,u,p.type)&&r.isAfter(u,h)?!0:i==null?void 0:i(u,p)};return s}function Op(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 x2=[];function eee(e,t,n,r,o,i,a,s){var l=arguments.length>8&&arguments[8]!==void 0?arguments[8]:x2,u=arguments.length>9&&arguments[9]!==void 0?arguments[9]:x2,d=arguments.length>10&&arguments[10]!==void 0?arguments[10]:x2,f=arguments.length>11?arguments[11]:void 0,m=arguments.length>12?arguments[12]:void 0,h=arguments.length>13?arguments[13]:void 0,p=a==="time",b=i||0,v=function(T){var k=e.getNow();return p&&(k=l1(e,k)),l[T]||n[T]||k},y=ue(u,2),x=y[0],w=y[1],C=kn(function(){return v(0)},{value:x}),S=ue(C,2),$=S[0],E=S[1],O=kn(function(){return v(1)},{value:w}),P=ue(O,2),j=P[0],I=P[1],_=c.useMemo(function(){var M=[$,j][b];return p?M:l1(e,M,d[b])},[p,$,j,b,e,d]),R=function(T){var k=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"panel",D=[E,I][b];D(T);var L=[$,j];L[b]=T,f&&(!yi(e,t,$,L[0],a)||!yi(e,t,j,L[1],a))&&f(L,{source:k,range:b===1?"end":"start",mode:r})},N=function(T,k){if(s){var D={date:"month",week:"month",month:"year",quarter:"year"},L=D[a];if(L&&!yi(e,t,T,k,L))return Op(e,a,k,-1);if(a==="year"&&T){var B=Math.floor(e.getYear(T)/10),H=Math.floor(e.getYear(k)/10);if(B!==H)return Op(e,a,k,-1)}}return k},A=c.useRef(null);return sn(function(){if(o&&!l[b]){var M=p?null:e.getNow();if(A.current!==null&&A.current!==b?M=[$,j][b^1]:n[b]?M=b===0?n[0]:N(n[0],n[1]):n[b^1]&&(M=n[b^1]),M){m&&e.isAfter(m,M)&&(M=m);var T=s?Op(e,a,M,1):M;h&&e.isAfter(T,h)&&(M=s?Op(e,a,h,-1):h),R(M,"reset")}}},[o,b,n[b]]),c.useEffect(function(){o?A.current=b:A.current=null},[o,b]),sn(function(){o&&l&&l[b]&&R(l[b],"reset")},[o,b]),[_,R]}function tee(e,t){var n=c.useRef(e),r=c.useState({}),o=ue(r,2),i=o[1],a=function(u){return u&&t!==void 0?t:n.current},s=function(u){n.current=u,i({})};return[a,s,a(!0)]}var bze=[];function nee(e,t,n){var r=function(a){return a.map(function(s){return $o(s,{generateConfig:e,locale:t,format:n[0]})})},o=function(a,s){for(var l=Math.max(a.length,s.length),u=-1,d=0;d<l;d+=1){var f=a[d]||null,m=s[d]||null;if(f!==m&&!GQ(e,f,m)){u=d;break}}return[u<0,u!==0]};return[r,o]}function ree(e,t){return Ne(e).sort(function(n,r){return t.isAfter(n,r)?1:-1})}function xze(e){var t=tee(e),n=ue(t,2),r=n[0],o=n[1],i=fn(function(){o(e)});return c.useEffect(function(){i()},[e]),[r,o]}function oee(e,t,n,r,o,i,a,s,l){var u=kn(i,{value:a}),d=ue(u,2),f=d[0],m=d[1],h=f||bze,p=xze(h),b=ue(p,2),v=b[0],y=b[1],x=nee(e,t,n),w=ue(x,2),C=w[0],S=w[1],$=fn(function(O){var P=Ne(O);if(r)for(var j=0;j<2;j+=1)P[j]=P[j]||null;else o&&(P=ree(P.filter(function(M){return M}),e));var I=S(v(),P),_=ue(I,2),R=_[0],N=_[1];if(!R&&(y(P),s)){var A=C(P);s(P,A,{range:N?"end":"start"})}}),E=function(){l&&l(v())};return[h,m,v,$,E]}function iee(e,t,n,r,o,i,a,s,l,u){var d=e.generateConfig,f=e.locale,m=e.picker,h=e.onChange,p=e.allowEmpty,b=e.order,v=i.some(function(R){return R})?!1:b,y=nee(d,f,a),x=ue(y,2),w=x[0],C=x[1],S=tee(t),$=ue(S,2),E=$[0],O=$[1],P=fn(function(){O(t)});c.useEffect(function(){P()},[t]);var j=fn(function(R){var N=R===null,A=Ne(R||E());if(N)for(var M=Math.max(i.length,A.length),T=0;T<M;T+=1)i[T]||(A[T]=null);v&&A[0]&&A[1]&&(A=ree(A,d)),o(A);var k=A,D=ue(k,2),L=D[0],B=D[1],H=!L,F=!B,W=p?(!H||p[0])&&(!F||p[1]):!0,q=!b||H||F||yi(d,f,L,B,m)||d.isAfter(B,L),G=(i[0]||!L||!u(L,{activeIndex:0}))&&(i[1]||!B||!u(B,{from:L,activeIndex:1})),te=N||W&&q&&G;if(te){n(A);var ee=C(A,t),z=ue(ee,1),ne=z[0];h&&!ne&&h(N&&A.every(function(X){return!X})?null:A,w(A))}return te}),I=fn(function(R,N){var A=Vp(E(),R,r()[R]);O(A),N&&j()}),_=!s&&!l;return XT(!_,function(){_&&(j(),o(t),P())},2),[I,j]}function aee(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 wze(e,t,n,r,o,i){var a=e;function s(f,m,h){var p=i[f](a),b=h.find(function(w){return w.value===p});if(!b||b.disabled){var v=h.filter(function(w){return!w.disabled}),y=Ne(v).reverse(),x=y.find(function(w){return w.value<=p})||v[0];x&&(p=x.value,a=i[m](a,p))}return p}var l=s("getHour","setHour",t()),u=s("getMinute","setMinute",n(l)),d=s("getSecond","setSecond",r(l,u));return s("getMillisecond","setMillisecond",o(l,u,d)),a}function gy(){return[]}function vy(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]:[],i=arguments.length>5&&arguments[5]!==void 0?arguments[5]:2,a=[],s=n>=1?n|0:1,l=e;l<=t;l+=s){var u=o.includes(l);(!u||!r)&&a.push({label:UT(l,i),value:l,disabled:u})}return a}function YT(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,i=r.hourStep,a=i===void 0?1:i,s=r.minuteStep,l=s===void 0?1:s,u=r.secondStep,d=u===void 0?1:u,f=r.millisecondStep,m=f===void 0?100:f,h=r.hideDisabledOptions,p=r.disabledTime,b=r.disabledHours,v=r.disabledMinutes,y=r.disabledSeconds,x=c.useMemo(function(){return n||e.getNow()},[n,e]),w=c.useCallback(function(k){var D=(p==null?void 0:p(k))||{};return[D.disabledHours||b||gy,D.disabledMinutes||v||gy,D.disabledSeconds||y||gy,D.disabledMilliseconds||gy]},[p,b,v,y]),C=c.useMemo(function(){return w(x)},[x,w]),S=ue(C,4),$=S[0],E=S[1],O=S[2],P=S[3],j=c.useCallback(function(k,D,L,B){var H=vy(0,23,a,h,k()),F=o?H.map(function(te){return Y(Y({},te),{},{label:UT(te.value%12||12,2)})}):H,W=function(ee){return vy(0,59,l,h,D(ee))},q=function(ee,z){return vy(0,59,d,h,L(ee,z))},G=function(ee,z,ne){return vy(0,999,m,h,B(ee,z,ne),3)};return[F,W,q,G]},[h,a,o,m,l,d]),I=c.useMemo(function(){return j($,E,O,P)},[j,$,E,O,P]),_=ue(I,4),R=_[0],N=_[1],A=_[2],M=_[3],T=function(D,L){var B=function(){return R},H=N,F=A,W=M;if(L){var q=w(L),G=ue(q,4),te=G[0],ee=G[1],z=G[2],ne=G[3],X=j(te,ee,z,ne),U=ue(X,4),le=U[0],se=U[1],ae=U[2],re=U[3];B=function(){return le},H=se,F=ae,W=re}var fe=wze(D,B,H,F,W,e);return fe};return[T,R,N,A,M]}function Sze(e){var t=e.mode,n=e.internalMode,r=e.renderExtraFooter,o=e.showNow,i=e.showTime,a=e.onSubmit,s=e.onNow,l=e.invalid,u=e.needConfirm,d=e.generateConfig,f=e.disabledDate,m=c.useContext(Gs),h=m.prefixCls,p=m.locale,b=m.button,v=b===void 0?"button":b,y=d.getNow(),x=YT(d,i,y),w=ue(x,1),C=w[0],S=r==null?void 0:r(t),$=f(y,{type:t}),E=function(){if(!$){var N=C(y);s(N)}},O="".concat(h,"-now"),P="".concat(O,"-btn"),j=o&&c.createElement("li",{className:O},c.createElement("a",{className:Q(P,$&&"".concat(P,"-disabled")),"aria-disabled":$,onClick:E},n==="date"?p.today:p.now)),I=u&&c.createElement("li",{className:"".concat(h,"-ok")},c.createElement(v,{disabled:l,onClick:a},p.ok)),_=(j||I)&&c.createElement("ul",{className:"".concat(h,"-ranges")},j,I);return!S&&!_?null:c.createElement("div",{className:"".concat(h,"-footer")},S&&c.createElement("div",{className:"".concat(h,"-footer-extra")},S),_)}function see(e,t,n){function r(o,i){var a=o.findIndex(function(l){return yi(e,t,l,i,n)});if(a===-1)return[].concat(Ne(o),[i]);var s=Ne(o);return s.splice(a,1),s}return r}var Jd=c.createContext(null);function JS(){return c.useContext(Jd)}function Oh(e,t){var n=e.prefixCls,r=e.generateConfig,o=e.locale,i=e.disabledDate,a=e.minDate,s=e.maxDate,l=e.cellRender,u=e.hoverValue,d=e.hoverRangeValue,f=e.onHover,m=e.values,h=e.pickerValue,p=e.onSelect,b=e.prevIcon,v=e.nextIcon,y=e.superPrevIcon,x=e.superNextIcon,w=r.getNow(),C={now:w,values:m,pickerValue:h,prefixCls:n,disabledDate:i,minDate:a,maxDate:s,cellRender:l,hoverValue:u,hoverRangeValue:d,onHover:f,locale:o,generateConfig:r,onSelect:p,panelType:t,prevIcon:b,nextIcon:v,superPrevIcon:y,superNextIcon:x};return[C,w]}var Uc=c.createContext({});function s0(e){for(var t=e.rowNum,n=e.colNum,r=e.baseDate,o=e.getCellDate,i=e.prefixColumn,a=e.rowClassName,s=e.titleFormat,l=e.getCellText,u=e.getCellClassName,d=e.headerCells,f=e.cellSelection,m=f===void 0?!0:f,h=e.disabledDate,p=JS(),b=p.prefixCls,v=p.panelType,y=p.now,x=p.disabledDate,w=p.cellRender,C=p.onHover,S=p.hoverValue,$=p.hoverRangeValue,E=p.generateConfig,O=p.values,P=p.locale,j=p.onSelect,I=h||x,_="".concat(b,"-cell"),R=c.useContext(Uc),N=R.onCellDblClick,A=function(F){return O.some(function(W){return W&&yi(E,P,F,W,v)})},M=[],T=0;T<t;T+=1){for(var k=[],D=void 0,L=function(){var F=T*n+B,W=o(r,F),q=I==null?void 0:I(W,{type:v});B===0&&(D=W,i&&k.push(i(D)));var G=!1,te=!1,ee=!1;if(m&&$){var z=ue($,2),ne=z[0],X=z[1];G=ZS(E,ne,X,W),te=yi(E,P,W,ne,v),ee=yi(E,P,W,X,v)}var U=s?$o(W,{locale:P,format:s,generateConfig:E}):void 0,le=c.createElement("div",{className:"".concat(_,"-inner")},l(W));k.push(c.createElement("td",{key:B,title:U,className:Q(_,Y(K(K(K(K(K(K({},"".concat(_,"-disabled"),q),"".concat(_,"-hover"),(S||[]).some(function(se){return yi(E,P,W,se,v)})),"".concat(_,"-in-range"),G&&!te&&!ee),"".concat(_,"-range-start"),te),"".concat(_,"-range-end"),ee),"".concat(b,"-cell-selected"),!$&&v!=="week"&&A(W)),u(W))),onClick:function(){q||j(W)},onDoubleClick:function(){!q&&N&&N()},onMouseEnter:function(){q||C==null||C(W)},onMouseLeave:function(){q||C==null||C(null)}},w?w(W,{prefixCls:b,originNode:le,today:y,type:v,locale:P}):le))},B=0;B<n;B+=1)L();M.push(c.createElement("tr",{key:T,className:a==null?void 0:a(D)},k))}return c.createElement("div",{className:"".concat(b,"-body")},c.createElement("table",{className:"".concat(b,"-content")},d&&c.createElement("thead",null,c.createElement("tr",null,d)),c.createElement("tbody",null,M)))}var yy={visibility:"hidden"};function Ph(e){var t=e.offset,n=e.superOffset,r=e.onChange,o=e.getStart,i=e.getEnd,a=e.children,s=JS(),l=s.prefixCls,u=s.prevIcon,d=u===void 0?"‹":u,f=s.nextIcon,m=f===void 0?"›":f,h=s.superPrevIcon,p=h===void 0?"«":h,b=s.superNextIcon,v=b===void 0?"»":b,y=s.minDate,x=s.maxDate,w=s.generateConfig,C=s.locale,S=s.pickerValue,$=s.panelType,E="".concat(l,"-header"),O=c.useContext(Uc),P=O.hidePrev,j=O.hideNext,I=O.hideHeader,_=c.useMemo(function(){if(!y||!t||!i)return!1;var H=i(t(-1,S));return!hy(w,C,H,y,$)},[y,t,S,i,w,C,$]),R=c.useMemo(function(){if(!y||!n||!i)return!1;var H=i(n(-1,S));return!hy(w,C,H,y,$)},[y,n,S,i,w,C,$]),N=c.useMemo(function(){if(!x||!t||!o)return!1;var H=o(t(1,S));return!hy(w,C,x,H,$)},[x,t,S,o,w,C,$]),A=c.useMemo(function(){if(!x||!n||!o)return!1;var H=o(n(1,S));return!hy(w,C,x,H,$)},[x,n,S,o,w,C,$]),M=function(F){t&&r(t(F,S))},T=function(F){n&&r(n(F,S))};if(I)return null;var k="".concat(E,"-prev-btn"),D="".concat(E,"-next-btn"),L="".concat(E,"-super-prev-btn"),B="".concat(E,"-super-next-btn");return c.createElement("div",{className:E},n&&c.createElement("button",{type:"button","aria-label":C.previousYear,onClick:function(){return T(-1)},tabIndex:-1,className:Q(L,R&&"".concat(L,"-disabled")),disabled:R,style:P?yy:{}},p),t&&c.createElement("button",{type:"button","aria-label":C.previousMonth,onClick:function(){return M(-1)},tabIndex:-1,className:Q(k,_&&"".concat(k,"-disabled")),disabled:_,style:P?yy:{}},d),c.createElement("div",{className:"".concat(E,"-view")},a),t&&c.createElement("button",{type:"button","aria-label":C.nextMonth,onClick:function(){return M(1)},tabIndex:-1,className:Q(D,N&&"".concat(D,"-disabled")),disabled:N,style:j?yy:{}},m),n&&c.createElement("button",{type:"button","aria-label":C.nextYear,onClick:function(){return T(1)},tabIndex:-1,className:Q(B,A&&"".concat(B,"-disabled")),disabled:A,style:j?yy:{}},v))}function QS(e){var t=e.prefixCls,n=e.panelName,r=n===void 0?"date":n,o=e.locale,i=e.generateConfig,a=e.pickerValue,s=e.onPickerValueChange,l=e.onModeChange,u=e.mode,d=u===void 0?"date":u,f=e.disabledDate,m=e.onSelect,h=e.onHover,p=e.showWeek,b="".concat(t,"-").concat(r,"-panel"),v="".concat(t,"-cell"),y=d==="week",x=Oh(e,d),w=ue(x,2),C=w[0],S=w[1],$=i.locale.getWeekFirstDay(o.locale),E=i.setDate(a,1),O=fze(o.locale,i,E),P=i.getMonth(a),j=p===void 0?y:p,I=j?function(H){var F=f==null?void 0:f(H,{type:"week"});return c.createElement("td",{key:"week",className:Q(v,"".concat(v,"-week"),K({},"".concat(v,"-disabled"),F)),onClick:function(){F||m(H)},onMouseEnter:function(){F||h==null||h(H)},onMouseLeave:function(){F||h==null||h(null)}},c.createElement("div",{className:"".concat(v,"-inner")},i.locale.getWeek(o.locale,H)))}:null,_=[],R=o.shortWeekDays||(i.locale.getShortWeekDays?i.locale.getShortWeekDays(o.locale):[]);I&&_.push(c.createElement("th",{key:"empty"},c.createElement("span",{style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},o.week)));for(var N=0;N<b2;N+=1)_.push(c.createElement("th",{key:N},R[(N+$)%b2]));var A=function(F,W){return i.addDate(F,W)},M=function(F){return $o(F,{locale:o,format:o.cellDateFormat,generateConfig:i})},T=function(F){var W=K(K({},"".concat(t,"-cell-in-view"),qT(i,F,a)),"".concat(t,"-cell-today"),GT(i,F,S));return W},k=o.shortMonths||(i.locale.getShortMonths?i.locale.getShortMonths(o.locale):[]),D=c.createElement("button",{type:"button","aria-label":o.yearSelect,key:"year",onClick:function(){l("year",a)},tabIndex:-1,className:"".concat(t,"-year-btn")},$o(a,{locale:o,format:o.yearFormat,generateConfig:i})),L=c.createElement("button",{type:"button","aria-label":o.monthSelect,key:"month",onClick:function(){l("month",a)},tabIndex:-1,className:"".concat(t,"-month-btn")},o.monthFormat?$o(a,{locale:o,format:o.monthFormat,generateConfig:i}):k[P]),B=o.monthBeforeYear?[L,D]:[D,L];return c.createElement(Jd.Provider,{value:C},c.createElement("div",{className:Q(b,p&&"".concat(b,"-show-week"))},c.createElement(Ph,{offset:function(F){return i.addMonth(a,F)},superOffset:function(F){return i.addYear(a,F)},onChange:s,getStart:function(F){return i.setDate(F,1)},getEnd:function(F){var W=i.setDate(F,1);return W=i.addMonth(W,1),i.addDate(W,-1)}},B),c.createElement(s0,Ee({titleFormat:o.fieldDateFormat},e,{colNum:b2,rowNum:6,baseDate:O,headerCells:_,getCellDate:A,getCellText:M,getCellClassName:T,prefixColumn:I,cellSelection:!y}))))}var Cze=1/3;function $ze(e,t){var n=c.useRef(!1),r=c.useRef(null),o=c.useRef(null),i=function(){return n.current},a=function(){ln.cancel(r.current),n.current=!1},s=c.useRef(),l=function(){var f=e.current;if(o.current=null,s.current=0,f){var m=f.querySelector('[data-value="'.concat(t,'"]')),h=f.querySelector("li"),p=function b(){a(),n.current=!0,s.current+=1;var v=f.scrollTop,y=h.offsetTop,x=m.offsetTop,w=x-y;if(x===0&&m!==h||!xh(f)){s.current<=5&&(r.current=ln(b));return}var C=v+(w-v)*Cze,S=Math.abs(w-C);if(o.current!==null&&o.current<S){a();return}if(o.current=S,S<=1){f.scrollTop=w,a();return}f.scrollTop=C,r.current=ln(b)};m&&h&&p()}},u=fn(l);return[u,a,i]}var Eze=300;function Oze(e){return e.map(function(t){var n=t.value,r=t.label,o=t.disabled;return[n,r,o].join(",")}).join(";")}function up(e){var t=e.units,n=e.value,r=e.optionalValue,o=e.type,i=e.onChange,a=e.onHover,s=e.onDblClick,l=e.changeOnScroll,u=JS(),d=u.prefixCls,f=u.cellRender,m=u.now,h=u.locale,p="".concat(d,"-time-panel"),b="".concat(d,"-time-panel-cell"),v=c.useRef(null),y=c.useRef(),x=function(){clearTimeout(y.current)},w=$ze(v,n??r),C=ue(w,3),S=C[0],$=C[1],E=C[2];sn(function(){return S(),x(),function(){$(),x()}},[n,r,Oze(t)]);var O=function(I){x();var _=I.target;!E()&&l&&(y.current=setTimeout(function(){var R=v.current,N=R.querySelector("li").offsetTop,A=Array.from(R.querySelectorAll("li")),M=A.map(function(B){return B.offsetTop-N}),T=M.map(function(B,H){return t[H].disabled?Number.MAX_SAFE_INTEGER:Math.abs(B-_.scrollTop)}),k=Math.min.apply(Math,Ne(T)),D=T.findIndex(function(B){return B===k}),L=t[D];L&&!L.disabled&&i(L.value)},Eze))},P="".concat(p,"-column");return c.createElement("ul",{className:P,ref:v,"data-type":o,onScroll:O},t.map(function(j){var I=j.label,_=j.value,R=j.disabled,N=c.createElement("div",{className:"".concat(b,"-inner")},I);return c.createElement("li",{key:_,className:Q(b,K(K({},"".concat(b,"-selected"),n===_),"".concat(b,"-disabled"),R)),onClick:function(){R||i(_)},onDoubleClick:function(){!R&&s&&s()},onMouseEnter:function(){a(_)},onMouseLeave:function(){a(null)},"data-value":_},f?f(_,{prefixCls:d,originNode:N,today:m,type:"time",subType:o,locale:h}):N)}))}function pc(e){return e<12}function Pze(e){var t=e.showHour,n=e.showMinute,r=e.showSecond,o=e.showMillisecond,i=e.use12Hours,a=e.changeOnScroll,s=JS(),l=s.prefixCls,u=s.values,d=s.generateConfig,f=s.locale,m=s.onSelect,h=s.onHover,p=h===void 0?function(){}:h,b=s.pickerValue,v=(u==null?void 0:u[0])||null,y=c.useContext(Uc),x=y.onCellDblClick,w=YT(d,e,v),C=ue(w,5),S=C[0],$=C[1],E=C[2],O=C[3],P=C[4],j=function(Se){var De=v&&d[Se](v),et=b&&d[Se](b);return[De,et]},I=j("getHour"),_=ue(I,2),R=_[0],N=_[1],A=j("getMinute"),M=ue(A,2),T=M[0],k=M[1],D=j("getSecond"),L=ue(D,2),B=L[0],H=L[1],F=j("getMillisecond"),W=ue(F,2),q=W[0],G=W[1],te=R===null?null:pc(R)?"am":"pm",ee=c.useMemo(function(){return i?pc(R)?$.filter(function(me){return pc(me.value)}):$.filter(function(me){return!pc(me.value)}):$},[R,$,i]),z=function(Se,De){var et,rt=Se.filter(function(Me){return!Me.disabled});return De??(rt==null||(et=rt[0])===null||et===void 0?void 0:et.value)},ne=z($,R),X=c.useMemo(function(){return E(ne)},[E,ne]),U=z(X,T),le=c.useMemo(function(){return O(ne,U)},[O,ne,U]),se=z(le,B),ae=c.useMemo(function(){return P(ne,U,se)},[P,ne,U,se]),re=z(ae,q),fe=c.useMemo(function(){if(!i)return[];var me=d.getNow(),Se=d.setHour(me,6),De=d.setHour(me,18),et=function(Me,We){var Qe=f.cellMeridiemFormat;return Qe?$o(Me,{generateConfig:d,locale:f,format:Qe}):We};return[{label:et(Se,"AM"),value:"am",disabled:$.every(function(rt){return rt.disabled||!pc(rt.value)})},{label:et(De,"PM"),value:"pm",disabled:$.every(function(rt){return rt.disabled||pc(rt.value)})}]},[$,i,d,f]),ye=function(Se){var De=S(Se);m(De)},Pe=c.useMemo(function(){var me=v||b||d.getNow(),Se=function(et){return et!=null};return Se(R)?(me=d.setHour(me,R),me=d.setMinute(me,T),me=d.setSecond(me,B),me=d.setMillisecond(me,q)):Se(N)?(me=d.setHour(me,N),me=d.setMinute(me,k),me=d.setSecond(me,H),me=d.setMillisecond(me,G)):Se(ne)&&(me=d.setHour(me,ne),me=d.setMinute(me,U),me=d.setSecond(me,se),me=d.setMillisecond(me,re)),me},[v,b,R,T,B,q,ne,U,se,re,N,k,H,G,d]),Oe=function(Se,De){return Se===null?null:d[De](Pe,Se)},V=function(Se){return Oe(Se,"setHour")},J=function(Se){return Oe(Se,"setMinute")},oe=function(Se){return Oe(Se,"setSecond")},de=function(Se){return Oe(Se,"setMillisecond")},be=function(Se){return Se===null?null:Se==="am"&&!pc(R)?d.setHour(Pe,R-12):Se==="pm"&&pc(R)?d.setHour(Pe,R+12):Pe},ge=function(Se){ye(V(Se))},ie=function(Se){ye(J(Se))},he=function(Se){ye(oe(Se))},xe=function(Se){ye(de(Se))},Re=function(Se){ye(be(Se))},Ce=function(Se){p(V(Se))},pe=function(Se){p(J(Se))},_e=function(Se){p(oe(Se))},we=function(Se){p(de(Se))},$e=function(Se){p(be(Se))},ve={onDblClick:x,changeOnScroll:a};return c.createElement("div",{className:"".concat(l,"-content")},t&&c.createElement(up,Ee({units:ee,value:R,optionalValue:N,type:"hour",onChange:ge,onHover:Ce},ve)),n&&c.createElement(up,Ee({units:X,value:T,optionalValue:k,type:"minute",onChange:ie,onHover:pe},ve)),r&&c.createElement(up,Ee({units:le,value:B,optionalValue:H,type:"second",onChange:he,onHover:_e},ve)),o&&c.createElement(up,Ee({units:ae,value:q,optionalValue:G,type:"millisecond",onChange:xe,onHover:we},ve)),i&&c.createElement(up,Ee({units:fe,value:te,type:"meridiem",onChange:Re,onHover:$e},ve)))}function lee(e){var t=e.prefixCls,n=e.value,r=e.locale,o=e.generateConfig,i=e.showTime,a=i||{},s=a.format,l="".concat(t,"-time-panel"),u=Oh(e,"time"),d=ue(u,1),f=d[0];return c.createElement(Jd.Provider,{value:f},c.createElement("div",{className:Q(l)},c.createElement(Ph,null,n?$o(n,{locale:r,format:s,generateConfig:o}):" "),c.createElement(Pze,i)))}function jze(e){var t=e.prefixCls,n=e.generateConfig,r=e.showTime,o=e.onSelect,i=e.value,a=e.pickerValue,s=e.onHover,l="".concat(t,"-datetime-panel"),u=YT(n,r),d=ue(u,1),f=d[0],m=function(v){return i?l1(n,v,i):l1(n,v,a)},h=function(v){s==null||s(v&&m(v))},p=function(v){var y=m(v);o(f(y,y))};return c.createElement("div",{className:l},c.createElement(QS,Ee({},e,{onSelect:p,onHover:h})),c.createElement(lee,e))}function Ize(e){var t=e.prefixCls,n=e.locale,r=e.generateConfig,o=e.pickerValue,i=e.disabledDate,a=e.onPickerValueChange,s="".concat(t,"-decade-panel"),l=Oh(e,"decade"),u=ue(l,1),d=u[0],f=function($){var E=Math.floor(r.getYear($)/100)*100;return r.setYear($,E)},m=function($){var E=f($);return r.addYear(E,99)},h=f(o),p=m(o),b=r.addYear(h,-10),v=function($,E){return r.addYear($,E*10)},y=function($){var E=n.cellYearFormat,O=$o($,{locale:n,format:E,generateConfig:r}),P=$o(r.addYear($,9),{locale:n,format:E,generateConfig:r});return"".concat(O,"-").concat(P)},x=function($){return K({},"".concat(t,"-cell-in-view"),_j(r,$,h)||_j(r,$,p)||ZS(r,h,p,$))},w=i?function(S,$){var E=r.setDate(S,1),O=r.setMonth(E,0),P=r.setYear(O,Math.floor(r.getYear(O)/10)*10),j=r.addYear(P,10),I=r.addDate(j,-1);return i(P,$)&&i(I,$)}:null,C="".concat($o(h,{locale:n,format:n.yearFormat,generateConfig:r}),"-").concat($o(p,{locale:n,format:n.yearFormat,generateConfig:r}));return c.createElement(Jd.Provider,{value:d},c.createElement("div",{className:s},c.createElement(Ph,{superOffset:function($){return r.addYear(o,$*100)},onChange:a,getStart:f,getEnd:m},C),c.createElement(s0,Ee({},e,{disabledDate:w,colNum:3,rowNum:4,baseDate:b,getCellDate:v,getCellText:y,getCellClassName:x}))))}function _ze(e){var t=e.prefixCls,n=e.locale,r=e.generateConfig,o=e.pickerValue,i=e.disabledDate,a=e.onPickerValueChange,s=e.onModeChange,l="".concat(t,"-month-panel"),u=Oh(e,"month"),d=ue(u,1),f=d[0],m=r.setMonth(o,0),h=n.shortMonths||(r.locale.getShortMonths?r.locale.getShortMonths(n.locale):[]),p=function(C,S){return r.addMonth(C,S)},b=function(C){var S=r.getMonth(C);return n.monthFormat?$o(C,{locale:n,format:n.monthFormat,generateConfig:r}):h[S]},v=function(){return K({},"".concat(t,"-cell-in-view"),!0)},y=i?function(w,C){var S=r.setDate(w,1),$=r.setMonth(S,r.getMonth(S)+1),E=r.addDate($,-1);return i(S,C)&&i(E,C)}:null,x=c.createElement("button",{type:"button",key:"year","aria-label":n.yearSelect,onClick:function(){s("year")},tabIndex:-1,className:"".concat(t,"-year-btn")},$o(o,{locale:n,format:n.yearFormat,generateConfig:r}));return c.createElement(Jd.Provider,{value:f},c.createElement("div",{className:l},c.createElement(Ph,{superOffset:function(C){return r.addYear(o,C)},onChange:a,getStart:function(C){return r.setMonth(C,0)},getEnd:function(C){return r.setMonth(C,11)}},x),c.createElement(s0,Ee({},e,{disabledDate:y,titleFormat:n.fieldMonthFormat,colNum:3,rowNum:4,baseDate:m,getCellDate:p,getCellText:b,getCellClassName:v}))))}function Nze(e){var t=e.prefixCls,n=e.locale,r=e.generateConfig,o=e.pickerValue,i=e.onPickerValueChange,a=e.onModeChange,s="".concat(t,"-quarter-panel"),l=Oh(e,"quarter"),u=ue(l,1),d=u[0],f=r.setMonth(o,0),m=function(y,x){return r.addMonth(y,x*3)},h=function(y){return $o(y,{locale:n,format:n.cellQuarterFormat,generateConfig:r})},p=function(){return K({},"".concat(t,"-cell-in-view"),!0)},b=c.createElement("button",{type:"button",key:"year","aria-label":n.yearSelect,onClick:function(){a("year")},tabIndex:-1,className:"".concat(t,"-year-btn")},$o(o,{locale:n,format:n.yearFormat,generateConfig:r}));return c.createElement(Jd.Provider,{value:d},c.createElement("div",{className:s},c.createElement(Ph,{superOffset:function(y){return r.addYear(o,y)},onChange:i,getStart:function(y){return r.setMonth(y,0)},getEnd:function(y){return r.setMonth(y,11)}},b),c.createElement(s0,Ee({},e,{titleFormat:n.fieldQuarterFormat,colNum:4,rowNum:1,baseDate:f,getCellDate:m,getCellText:h,getCellClassName:p}))))}function Rze(e){var t=e.prefixCls,n=e.generateConfig,r=e.locale,o=e.value,i=e.hoverValue,a=e.hoverRangeValue,s=r.locale,l="".concat(t,"-week-panel-row"),u=function(f){var m={};if(a){var h=ue(a,2),p=h[0],b=h[1],v=Ep(n,s,p,f),y=Ep(n,s,b,f);m["".concat(l,"-range-start")]=v,m["".concat(l,"-range-end")]=y,m["".concat(l,"-range-hover")]=!v&&!y&&ZS(n,p,b,f)}return i&&(m["".concat(l,"-hover")]=i.some(function(x){return Ep(n,s,f,x)})),Q(l,K({},"".concat(l,"-selected"),!a&&Ep(n,s,o,f)),m)};return c.createElement(QS,Ee({},e,{mode:"week",panelName:"week",rowClassName:u}))}function Tze(e){var t=e.prefixCls,n=e.locale,r=e.generateConfig,o=e.pickerValue,i=e.disabledDate,a=e.onPickerValueChange,s=e.onModeChange,l="".concat(t,"-year-panel"),u=Oh(e,"year"),d=ue(u,1),f=d[0],m=function(E){var O=Math.floor(r.getYear(E)/10)*10;return r.setYear(E,O)},h=function(E){var O=m(E);return r.addYear(O,9)},p=m(o),b=h(o),v=r.addYear(p,-1),y=function(E,O){return r.addYear(E,O)},x=function(E){return $o(E,{locale:n,format:n.cellYearFormat,generateConfig:r})},w=function(E){return K({},"".concat(t,"-cell-in-view"),Md(r,E,p)||Md(r,E,b)||ZS(r,p,b,E))},C=i?function($,E){var O=r.setMonth($,0),P=r.setDate(O,1),j=r.addYear(P,1),I=r.addDate(j,-1);return i(P,E)&&i(I,E)}:null,S=c.createElement("button",{type:"button",key:"decade","aria-label":n.decadeSelect,onClick:function(){s("decade")},tabIndex:-1,className:"".concat(t,"-decade-btn")},$o(p,{locale:n,format:n.yearFormat,generateConfig:r}),"-",$o(b,{locale:n,format:n.yearFormat,generateConfig:r}));return c.createElement(Jd.Provider,{value:f},c.createElement("div",{className:l},c.createElement(Ph,{superOffset:function(E){return r.addYear(o,E*10)},onChange:a,getStart:m,getEnd:h},S),c.createElement(s0,Ee({},e,{disabledDate:C,titleFormat:n.fieldYearFormat,colNum:3,rowNum:4,baseDate:v,getCellDate:y,getCellText:x,getCellClassName:w}))))}var Mze={date:QS,datetime:jze,week:Rze,month:_ze,quarter:Nze,year:Tze,decade:Ize,time:lee};function kze(e,t){var n,r=e.locale,o=e.generateConfig,i=e.direction,a=e.prefixCls,s=e.tabIndex,l=s===void 0?0:s,u=e.multiple,d=e.defaultValue,f=e.value,m=e.onChange,h=e.onSelect,p=e.defaultPickerValue,b=e.pickerValue,v=e.onPickerValueChange,y=e.mode,x=e.onPanelChange,w=e.picker,C=w===void 0?"date":w,S=e.showTime,$=e.hoverValue,E=e.hoverRangeValue,O=e.cellRender,P=e.dateRender,j=e.monthCellRender,I=e.components,_=I===void 0?{}:I,R=e.hideHeader,N=((n=c.useContext(Gs))===null||n===void 0?void 0:n.prefixCls)||a||"rc-picker",A=c.useRef();c.useImperativeHandle(t,function(){return{nativeElement:A.current}});var M=UQ(e),T=ue(M,4),k=T[0],D=T[1],L=T[2],B=T[3],H=HQ(r,D),F=C==="date"&&S?"datetime":C,W=c.useMemo(function(){return KQ(F,L,B,k,H)},[F,L,B,k,H]),q=o.getNow(),G=kn(C,{value:y,postState:function($e){return $e||"date"}}),te=ue(G,2),ee=te[0],z=te[1],ne=ee==="date"&&W?"datetime":ee,X=see(o,r,F),U=kn(d,{value:f}),le=ue(U,2),se=le[0],ae=le[1],re=c.useMemo(function(){var we=Zd(se).filter(function($e){return $e});return u?we:we.slice(0,1)},[se,u]),fe=fn(function(we){ae(we),m&&(we===null||re.length!==we.length||re.some(function($e,ve){return!yi(o,r,$e,we[ve],F)}))&&(m==null||m(u?we:we[0]))}),ye=fn(function(we){if(h==null||h(we),ee===C){var $e=u?X(re,we):[we];fe($e)}}),Pe=kn(p||re[0]||q,{value:b}),Oe=ue(Pe,2),V=Oe[0],J=Oe[1];c.useEffect(function(){re[0]&&!b&&J(re[0])},[re[0]]);var oe=function($e,ve){x==null||x($e||b,ve||ee)},de=function($e){var ve=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;J($e),v==null||v($e),ve&&oe($e)},be=function($e,ve){z($e),ve&&de(ve),oe(ve,$e)},ge=function($e){if(ye($e),de($e),ee!==C){var ve=["decade","year"],me=[].concat(ve,["month"]),Se={quarter:[].concat(ve,["quarter"]),week:[].concat(Ne(me),["week"]),date:[].concat(Ne(me),["date"])},De=Se[C]||me,et=De.indexOf(ee),rt=De[et+1];rt&&be(rt,$e)}},ie=c.useMemo(function(){var we,$e;if(Array.isArray(E)){var ve=ue(E,2);we=ve[0],$e=ve[1]}else we=E;return!we&&!$e?null:(we=we||$e,$e=$e||we,o.isAfter(we,$e)?[$e,we]:[we,$e])},[E,o]),he=KT(O,P,j),xe=_[ne]||Mze[ne]||QS,Re=c.useContext(Uc),Ce=c.useMemo(function(){return Y(Y({},Re),{},{hideHeader:R})},[Re,R]),pe="".concat(N,"-panel"),_e=YS(e,["showWeek","prevIcon","nextIcon","superPrevIcon","superNextIcon","disabledDate","minDate","maxDate","onHover"]);return c.createElement(Uc.Provider,{value:Ce},c.createElement("div",{ref:A,tabIndex:l,className:Q(pe,K({},"".concat(pe,"-rtl"),i==="rtl"))},c.createElement(xe,Ee({},_e,{showTime:W,prefixCls:N,locale:H,generateConfig:o,onModeChange:be,pickerValue:V,onPickerValueChange:function($e){de($e,!0)},value:re[0],onSelect:ge,values:re,cellRender:he,hoverRangeValue:ie,hoverValue:$}))))}var w2=c.memo(c.forwardRef(kze));function Aze(e){var t=e.picker,n=e.multiplePanel,r=e.pickerValue,o=e.onPickerValueChange,i=e.needConfirm,a=e.onSubmit,s=e.range,l=e.hoverValue,u=c.useContext(Gs),d=u.prefixCls,f=u.generateConfig,m=c.useCallback(function(x,w){return Op(f,t,x,w)},[f,t]),h=c.useMemo(function(){return m(r,1)},[r,m]),p=function(w){o(m(w,-1))},b={onCellDblClick:function(){i&&a()}},v=t==="time",y=Y(Y({},e),{},{hoverValue:null,hoverRangeValue:null,hideHeader:v});return s?y.hoverRangeValue=l:y.hoverValue=l,n?c.createElement("div",{className:"".concat(d,"-panels")},c.createElement(Uc.Provider,{value:Y(Y({},b),{},{hideNext:!0})},c.createElement(w2,y)),c.createElement(Uc.Provider,{value:Y(Y({},b),{},{hidePrev:!0})},c.createElement(w2,Ee({},y,{pickerValue:h,onPickerValueChange:p})))):c.createElement(Uc.Provider,{value:Y({},b)},c.createElement(w2,y))}function wz(e){return typeof e=="function"?e():e}function Dze(e){var t=e.prefixCls,n=e.presets,r=e.onClick,o=e.onHover;return n.length?c.createElement("div",{className:"".concat(t,"-presets")},c.createElement("ul",null,n.map(function(i,a){var s=i.label,l=i.value;return c.createElement("li",{key:a,onClick:function(){r(wz(l))},onMouseEnter:function(){o(wz(l))},onMouseLeave:function(){o(null)}},s)}))):null}function cee(e){var t=e.panelRender,n=e.internalMode,r=e.picker,o=e.showNow,i=e.range,a=e.multiple,s=e.activeInfo,l=s===void 0?[0,0,0]:s,u=e.presets,d=e.onPresetHover,f=e.onPresetSubmit,m=e.onFocus,h=e.onBlur,p=e.onPanelMouseDown,b=e.direction,v=e.value,y=e.onSelect,x=e.isInvalid,w=e.defaultOpenValue,C=e.onOk,S=e.onSubmit,$=c.useContext(Gs),E=$.prefixCls,O="".concat(E,"-panel"),P=b==="rtl",j=c.useRef(null),I=c.useRef(null),_=c.useState(0),R=ue(_,2),N=R[0],A=R[1],M=c.useState(0),T=ue(M,2),k=T[0],D=T[1],L=c.useState(0),B=ue(L,2),H=B[0],F=B[1],W=function(ge){ge.width&&A(ge.width)},q=ue(l,3),G=q[0],te=q[1],ee=q[2],z=c.useState(0),ne=ue(z,2),X=ne[0],U=ne[1];c.useEffect(function(){U(10)},[G]),c.useEffect(function(){if(i&&I.current){var be,ge=((be=j.current)===null||be===void 0?void 0:be.offsetWidth)||0,ie=I.current.getBoundingClientRect();if(!ie.height||ie.right<0){U(function(Ce){return Math.max(0,Ce-1)});return}var he=(P?te-ge:G)-ie.left;if(F(he),N&&N<ee){var xe=P?ie.right-(te-ge+N):G+ge-ie.left-N,Re=Math.max(0,xe);D(Re)}else D(0)}},[X,P,N,G,te,ee,i]);function le(be){return be.filter(function(ge){return ge})}var se=c.useMemo(function(){return le(Zd(v))},[v]),ae=r==="time"&&!se.length,re=c.useMemo(function(){return ae?le([w]):se},[ae,se,w]),fe=ae?w:se,ye=c.useMemo(function(){return re.length?re.some(function(be){return x(be)}):!0},[re,x]),Pe=function(){ae&&y(w),C(),S()},Oe=c.createElement("div",{className:"".concat(E,"-panel-layout")},c.createElement(Dze,{prefixCls:E,presets:u,onClick:f,onHover:d}),c.createElement("div",null,c.createElement(Aze,Ee({},e,{value:fe})),c.createElement(Sze,Ee({},e,{showNow:a?!1:o,invalid:ye,onSubmit:Pe}))));t&&(Oe=t(Oe));var V="".concat(O,"-container"),J="marginLeft",oe="marginRight",de=c.createElement("div",{onMouseDown:p,tabIndex:-1,className:Q(V,"".concat(E,"-").concat(n,"-panel-container")),style:K(K({},P?oe:J,k),P?J:oe,"auto"),onFocus:m,onBlur:h},Oe);return i&&(de=c.createElement("div",{onMouseDown:p,ref:I,className:Q("".concat(E,"-range-wrapper"),"".concat(E,"-").concat(r,"-range-wrapper"))},c.createElement("div",{ref:j,className:"".concat(E,"-range-arrow"),style:{left:H}}),c.createElement(Wo,{onResize:W},de))),de}function uee(e,t){var n=e.format,r=e.maskFormat,o=e.generateConfig,i=e.locale,a=e.preserveInvalidOnBlur,s=e.inputReadOnly,l=e.required,u=e["aria-required"],d=e.onSubmit,f=e.onFocus,m=e.onBlur,h=e.onInputChange,p=e.onInvalid,b=e.open,v=e.onOpenChange,y=e.onKeyDown,x=e.onChange,w=e.activeHelp,C=e.name,S=e.autoComplete,$=e.id,E=e.value,O=e.invalid,P=e.placeholder,j=e.disabled,I=e.activeIndex,_=e.allHelp,R=e.picker,N=function(H,F){var W=o.locale.parse(i.locale,H,[F]);return W&&o.isValidate(W)?W:null},A=n[0],M=c.useCallback(function(B){return $o(B,{locale:i,format:A,generateConfig:o})},[i,o,A]),T=c.useMemo(function(){return E.map(M)},[E,M]),k=c.useMemo(function(){var B=R==="time"?8:10,H=typeof A=="function"?A(o.getNow()).length:A.length;return Math.max(B,H)+2},[A,R,o]),D=function(H){for(var F=0;F<n.length;F+=1){var W=n[F];if(typeof W=="string"){var q=N(H,W);if(q)return q}}return!1},L=function(H){function F(G){return H!==void 0?G[H]:G}var W=Pr(e,{aria:!0,data:!0}),q=Y(Y({},W),{},{format:r,validateFormat:function(te){return!!D(te)},preserveInvalidOnBlur:a,readOnly:s,required:l,"aria-required":u,name:C,autoComplete:S,size:k,id:F($),value:F(T)||"",invalid:F(O),placeholder:F(P),active:I===H,helped:_||w&&I===H,disabled:F(j),onFocus:function(te){f(te,H)},onBlur:function(te){m(te,H)},onSubmit:d,onChange:function(te){h();var ee=D(te);if(ee){p(!1,H),x(ee,H);return}p(!!te,H)},onHelp:function(){v(!0,{index:H})},onKeyDown:function(te){var ee=!1;if(y==null||y(te,function(){ee=!0}),!te.defaultPrevented&&!ee)switch(te.key){case"Escape":v(!1,{index:H});break;case"Enter":b||v(!0);break}}},t==null?void 0:t({valueTexts:T}));return Object.keys(q).forEach(function(G){q[G]===void 0&&delete q[G]}),q};return[L,M]}var Lze=["onMouseEnter","onMouseLeave"];function dee(e){return c.useMemo(function(){return YS(e,Lze)},[e])}var zze=["icon","type"],Fze=["onClear"];function eC(e){var t=e.icon,n=e.type,r=Ht(e,zze),o=c.useContext(Gs),i=o.prefixCls;return t?c.createElement("span",Ee({className:"".concat(i,"-").concat(n)},r),t):null}function Nj(e){var t=e.onClear,n=Ht(e,Fze);return c.createElement(eC,Ee({},n,{type:"clear",role:"button",onMouseDown:function(o){o.preventDefault()},onClick:function(o){o.stopPropagation(),t()}}))}var S2=["YYYY","MM","DD","HH","mm","ss","SSS"],Sz="顧",Bze=function(){function e(t){lr(this,e),K(this,"format",void 0),K(this,"maskFormat",void 0),K(this,"cells",void 0),K(this,"maskCells",void 0),this.format=t;var n=S2.map(function(s){return"(".concat(s,")")}).join("|"),r=new RegExp(n,"g");this.maskFormat=t.replace(r,function(s){return Sz.repeat(s.length)});var o=new RegExp("(".concat(S2.join("|"),")")),i=(t.split(o)||[]).filter(function(s){return s}),a=0;this.cells=i.map(function(s){var l=S2.includes(s),u=a,d=a+s.length;return a=d,{text:s,mask:l,start:u,end:d}}),this.maskCells=this.cells.filter(function(s){return s.mask})}return cr(e,[{key:"getSelection",value:function(n){var r=this.maskCells[n]||{},o=r.start,i=r.end;return[o||0,i||0]}},{key:"match",value:function(n){for(var r=0;r<this.maskFormat.length;r+=1){var o=this.maskFormat[r],i=n[r];if(!i||o!==Sz&&o!==i)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,i=0;i<this.maskCells.length;i+=1){var a=this.maskCells[i],s=a.start,l=a.end;if(n>=s&&n<=l)return i;var u=Math.min(Math.abs(n-s),Math.abs(n-l));u<r&&(r=u,o=i)}return o}}]),e}();function Hze(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 Vze=["active","showActiveCls","suffixIcon","format","validateFormat","onChange","onInput","helped","onHelp","onSubmit","onKeyDown","preserveInvalidOnBlur","invalid","clearIcon"],Rj=c.forwardRef(function(e,t){var n=e.active,r=e.showActiveCls,o=r===void 0?!0:r,i=e.suffixIcon,a=e.format,s=e.validateFormat,l=e.onChange;e.onInput;var u=e.helped,d=e.onHelp,f=e.onSubmit,m=e.onKeyDown,h=e.preserveInvalidOnBlur,p=h===void 0?!1:h,b=e.invalid,v=e.clearIcon,y=Ht(e,Vze),x=e.value,w=e.onFocus,C=e.onBlur,S=e.onMouseUp,$=c.useContext(Gs),E=$.prefixCls,O=$.input,P=O===void 0?"input":O,j="".concat(E,"-input"),I=c.useState(!1),_=ue(I,2),R=_[0],N=_[1],A=c.useState(x),M=ue(A,2),T=M[0],k=M[1],D=c.useState(""),L=ue(D,2),B=L[0],H=L[1],F=c.useState(null),W=ue(F,2),q=W[0],G=W[1],te=c.useState(null),ee=ue(te,2),z=ee[0],ne=ee[1],X=T||"";c.useEffect(function(){k(x)},[x]);var U=c.useRef(),le=c.useRef();c.useImperativeHandle(t,function(){return{nativeElement:U.current,inputElement:le.current,focus:function(we){le.current.focus(we)},blur:function(){le.current.blur()}}});var se=c.useMemo(function(){return new Bze(a||"")},[a]),ae=c.useMemo(function(){return u?[0,0]:se.getSelection(q)},[se,q,u]),re=ue(ae,2),fe=re[0],ye=re[1],Pe=function(we){we&&we!==a&&we!==x&&d()},Oe=fn(function(_e){s(_e)&&l(_e),k(_e),Pe(_e)}),V=function(we){if(!a){var $e=we.target.value;Pe($e),k($e),l($e)}},J=function(we){var $e=we.clipboardData.getData("text");s($e)&&Oe($e)},oe=c.useRef(!1),de=function(){oe.current=!0},be=function(we){var $e=we.target,ve=$e.selectionStart,me=se.getMaskCellIndex(ve);G(me),ne({}),S==null||S(we),oe.current=!1},ge=function(we){N(!0),G(0),H(""),w(we)},ie=function(we){C(we)},he=function(we){N(!1),ie(we)};XT(n,function(){!n&&!p&&k(x)});var xe=function(we){we.key==="Enter"&&s(X)&&f(),m==null||m(we)},Re=function(we){xe(we);var $e=we.key,ve=null,me=null,Se=ye-fe,De=a.slice(fe,ye),et=function(Qe){G(function(Ge){var tt=Ge+Qe;return tt=Math.max(tt,0),tt=Math.min(tt,se.size()-1),tt})},rt=function(Qe){var Ge=Hze(De),tt=ue(Ge,3),ke=tt[0],xt=tt[1],Ze=tt[2],nt=X.slice(fe,ye),Be=Number(nt);if(isNaN(Be))return String(Ze||(Qe>0?ke:xt));var Le=Be+Qe,Ie=xt-ke+1;return String(ke+(Ie+Le-ke)%Ie)};switch($e){case"Backspace":case"Delete":ve="",me=De;break;case"ArrowLeft":ve="",et(-1);break;case"ArrowRight":ve="",et(1);break;case"ArrowUp":ve="",me=rt(1);break;case"ArrowDown":ve="",me=rt(-1);break;default:isNaN(Number($e))||(ve=B+$e,me=ve);break}if(ve!==null&&(H(ve),ve.length>=Se&&(et(1),H(""))),me!==null){var Me=X.slice(0,fe)+UT(me,Se)+X.slice(ye);Oe(Me.slice(0,a.length))}ne({})},Ce=c.useRef();sn(function(){if(!(!R||!a||oe.current)){if(!se.match(X)){Oe(a);return}return le.current.setSelectionRange(fe,ye),Ce.current=ln(function(){le.current.setSelectionRange(fe,ye)}),function(){ln.cancel(Ce.current)}}},[se,a,R,X,q,fe,ye,z,Oe]);var pe=a?{onFocus:ge,onBlur:he,onKeyDown:Re,onMouseDown:de,onMouseUp:be,onPaste:J}:{};return c.createElement("div",{ref:U,className:Q(j,K(K({},"".concat(j,"-active"),n&&o),"".concat(j,"-placeholder"),u))},c.createElement(P,Ee({ref:le,"aria-invalid":b,autoComplete:"off"},y,{onKeyDown:xe,onBlur:ie},pe,{value:X,onChange:V})),c.createElement(eC,{type:"suffix",icon:i}),v)}),Wze=["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"],Uze=["index"];function Kze(e,t){var n=e.id,r=e.prefix,o=e.clearIcon,i=e.suffixIcon,a=e.separator,s=a===void 0?"~":a,l=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,h=e.onClick,p=e.onClear,b=e.value;e.onChange,e.onSubmit,e.onInputChange,e.format,e.maskFormat,e.preserveInvalidOnBlur,e.onInvalid;var v=e.disabled,y=e.invalid;e.inputReadOnly;var x=e.direction;e.onOpenChange;var w=e.onActiveInfo;e.placement;var C=e.onMouseDown;e.required,e["aria-required"];var S=e.autoFocus,$=e.tabIndex,E=Ht(e,Wze),O=x==="rtl",P=c.useContext(Gs),j=P.prefixCls,I=c.useMemo(function(){if(typeof n=="string")return[n];var z=n||{};return[z.start,z.end]},[n]),_=c.useRef(),R=c.useRef(),N=c.useRef(),A=function(ne){var X;return(X=[R,N][ne])===null||X===void 0?void 0:X.current};c.useImperativeHandle(t,function(){return{nativeElement:_.current,focus:function(ne){if(_t(ne)==="object"){var X,U=ne||{},le=U.index,se=le===void 0?0:le,ae=Ht(U,Uze);(X=A(se))===null||X===void 0||X.focus(ae)}else{var re;(re=A(ne??0))===null||re===void 0||re.focus()}},blur:function(){var ne,X;(ne=A(0))===null||ne===void 0||ne.blur(),(X=A(1))===null||X===void 0||X.blur()}}});var M=dee(E),T=c.useMemo(function(){return Array.isArray(d)?d:[d,d]},[d]),k=uee(Y(Y({},e),{},{id:I,placeholder:T})),D=ue(k,1),L=D[0],B=c.useState({position:"absolute",width:0}),H=ue(B,2),F=H[0],W=H[1],q=fn(function(){var z=A(l);if(z){var ne=z.nativeElement.getBoundingClientRect(),X=_.current.getBoundingClientRect(),U=ne.left-X.left;W(function(le){return Y(Y({},le),{},{width:ne.width,left:U})}),w([ne.left,ne.right,X.width])}});c.useEffect(function(){q()},[l]);var G=o&&(b[0]&&!v[0]||b[1]&&!v[1]),te=S&&!v[0],ee=S&&!te&&!v[1];return c.createElement(Wo,{onResize:q},c.createElement("div",Ee({},M,{className:Q(j,"".concat(j,"-range"),K(K(K(K({},"".concat(j,"-focused"),u),"".concat(j,"-disabled"),v.every(function(z){return z})),"".concat(j,"-invalid"),y.some(function(z){return z})),"".concat(j,"-rtl"),O),f),style:m,ref:_,onClick:h,onMouseDown:function(ne){var X=ne.target;X!==R.current.inputElement&&X!==N.current.inputElement&&ne.preventDefault(),C==null||C(ne)}}),r&&c.createElement("div",{className:"".concat(j,"-prefix")},r),c.createElement(Rj,Ee({ref:R},L(0),{autoFocus:te,tabIndex:$,"date-range":"start"})),c.createElement("div",{className:"".concat(j,"-range-separator")},s),c.createElement(Rj,Ee({ref:N},L(1),{autoFocus:ee,tabIndex:$,"date-range":"end"})),c.createElement("div",{className:"".concat(j,"-active-bar"),style:F}),c.createElement(eC,{type:"suffix",icon:i}),G&&c.createElement(Nj,{icon:o,onClear:p})))}var qze=c.forwardRef(Kze);function Cz(e,t){var n=e??t;return Array.isArray(n)?n:[n,n]}function by(e){return e===1?"end":"start"}function Gze(e,t){var n=XQ(e,function(){var Rt=e.disabled,ze=e.allowEmpty,He=Cz(Rt,!1),Tt=Cz(ze,!1);return{disabled:He,allowEmpty:Tt}}),r=ue(n,6),o=r[0],i=r[1],a=r[2],s=r[3],l=r[4],u=r[5],d=o.prefixCls,f=o.styles,m=o.classNames,h=o.defaultValue,p=o.value,b=o.needConfirm,v=o.onKeyDown,y=o.disabled,x=o.allowEmpty,w=o.disabledDate,C=o.minDate,S=o.maxDate,$=o.defaultOpen,E=o.open,O=o.onOpenChange,P=o.locale,j=o.generateConfig,I=o.picker,_=o.showNow,R=o.showToday,N=o.showTime,A=o.mode,M=o.onPanelChange,T=o.onCalendarChange,k=o.onOk,D=o.defaultPickerValue,L=o.pickerValue,B=o.onPickerValueChange,H=o.inputReadOnly,F=o.suffixIcon,W=o.onFocus,q=o.onBlur,G=o.presets,te=o.ranges,ee=o.components,z=o.cellRender,ne=o.dateRender,X=o.monthCellRender,U=o.onClick,le=ZQ(t),se=YQ(E,$,y,O),ae=ue(se,2),re=ae[0],fe=ae[1],ye=function(ze,He){(y.some(function(Tt){return!Tt})||!ze)&&fe(ze,He)},Pe=oee(j,P,s,!0,!1,h,p,T,k),Oe=ue(Pe,5),V=Oe[0],J=Oe[1],oe=Oe[2],de=Oe[3],be=Oe[4],ge=oe(),ie=QQ(y,x,re),he=ue(ie,9),xe=he[0],Re=he[1],Ce=he[2],pe=he[3],_e=he[4],we=he[5],$e=he[6],ve=he[7],me=he[8],Se=function(ze,He){Re(!0),W==null||W(ze,{range:by(He??pe)})},De=function(ze,He){Re(!1),q==null||q(ze,{range:by(He??pe)})},et=c.useMemo(function(){if(!N)return null;var Rt=N.disabledTime,ze=Rt?function(He){var Tt=by(pe),Ae=LQ(ge,$e,pe);return Rt(He,Tt,{from:Ae})}:void 0;return Y(Y({},N),{},{disabledTime:ze})},[N,pe,ge,$e]),rt=kn([I,I],{value:A}),Me=ue(rt,2),We=Me[0],Qe=Me[1],Ge=We[pe]||I,tt=Ge==="date"&&et?"datetime":Ge,ke=tt===I&&tt!=="time",xt=aee(I,Ge,_,R,!0),Ze=iee(o,V,J,oe,de,y,s,xe,re,u),nt=ue(Ze,2),Be=nt[0],Le=nt[1],Ie=yze(ge,y,$e,j,P,w),Te=FQ(ge,u,x),Xe=ue(Te,2),lt=Xe[0],mt=Xe[1],Ot=eee(j,P,ge,We,re,pe,i,ke,D,L,et==null?void 0:et.defaultOpenValue,B,C,S),dt=ue(Ot,2),qe=dt[0],ht=dt[1],zt=fn(function(Rt,ze,He){var Tt=Vp(We,pe,ze);if((Tt[0]!==We[0]||Tt[1]!==We[1])&&Qe(Tt),M&&He!==!1){var Ae=Ne(ge);Rt&&(Ae[pe]=Rt),M(Ae,Tt)}}),Vt=function(ze,He){return Vp(ge,He,ze)},Nt=function(ze,He){var Tt=ge;ze&&(Tt=Vt(ze,pe)),ve(pe);var Ae=we(Tt);de(Tt),Be(pe,Ae===null),Ae===null?ye(!1,{force:!0}):He||le.current.focus({index:Ae})},ft=function(ze){var He,Tt=ze.target.getRootNode();if(!le.current.nativeElement.contains((He=Tt.activeElement)!==null&&He!==void 0?He:document.activeElement)){var Ae=y.findIndex(function(Bt){return!Bt});Ae>=0&&le.current.focus({index:Ae})}ye(!0),U==null||U(ze)},ot=function(){Le(null),ye(!1,{force:!0})},Ft=c.useState(null),Ue=ue(Ft,2),Je=Ue[0],vt=Ue[1],yt=c.useState(null),Ye=ue(yt,2),st=Ye[0],wt=Ye[1],Kt=c.useMemo(function(){return st||ge},[ge,st]);c.useEffect(function(){re||wt(null)},[re]);var bt=c.useState([0,0,0]),It=ue(bt,2),qt=It[0],In=It[1],An=JQ(G,te),Nn=function(ze){wt(ze),vt("preset")},Rn=function(ze){var He=Le(ze);He&&ye(!1,{force:!0})},$n=function(ze){Nt(ze)},Dn=function(ze){wt(ze?Vt(ze,pe):null),vt("cell")},wn=function(ze){ye(!0),Se(ze)},St=function(){Ce("panel")},an=function(ze){var He=Vp(ge,pe,ze);de(He),!b&&!a&&i===tt&&Nt(ze)},Zt=function(){ye(!1)},ct=KT(z,ne,X,by(pe)),je=ge[pe]||null,pt=fn(function(Rt){return u(Rt,{activeIndex:pe})}),it=c.useMemo(function(){var Rt=Pr(o,!1),ze=Xn(o,[].concat(Ne(Object.keys(Rt)),["onChange","onCalendarChange","style","className","onPanelChange","disabledTime"]));return ze},[o]),Ke=c.createElement(cee,Ee({},it,{showNow:xt,showTime:et,range:!0,multiplePanel:ke,activeInfo:qt,disabledDate:Ie,onFocus:wn,onBlur:De,onPanelMouseDown:St,picker:I,mode:Ge,internalMode:tt,onPanelChange:zt,format:l,value:je,isInvalid:pt,onChange:null,onSelect:an,pickerValue:qe,defaultOpenValue:Zd(N==null?void 0:N.defaultOpenValue)[pe],onPickerValueChange:ht,hoverValue:Kt,onHover:Dn,needConfirm:b,onSubmit:Nt,onOk:be,presets:An,onPresetHover:Nn,onPresetSubmit:Rn,onNow:$n,cellRender:ct})),Et=function(ze,He){var Tt=Vt(ze,He);de(Tt)},at=function(){Ce("input")},Wt=function(ze,He){var Tt=$e.length,Ae=$e[Tt-1];if(Tt&&Ae!==He&&b&&!x[Ae]&&!me(Ae)&&ge[Ae]){le.current.focus({index:Ae});return}Ce("input"),ye(!0,{inherit:!0}),pe!==He&&re&&!b&&a&&Nt(null,!0),_e(He),Se(ze,He)},tn=function(ze,He){if(ye(!1),!b&&Ce()==="input"){var Tt=we(ge);Be(pe,Tt===null)}De(ze,He)},Ut=function(ze,He){ze.key==="Tab"&&Nt(null,!0),v==null||v(ze,He)},en=c.useMemo(function(){return{prefixCls:d,locale:P,generateConfig:j,button:ee.button,input:ee.input}},[d,P,j,ee.button,ee.input]);return sn(function(){re&&pe!==void 0&&zt(null,I,!1)},[re,pe,I]),sn(function(){var Rt=Ce();!re&&Rt==="input"&&(ye(!1),Nt(null,!0)),!re&&a&&!b&&Rt==="panel"&&(ye(!0),Nt())},[re]),c.createElement(Gs.Provider,{value:en},c.createElement(AQ,Ee({},zQ(o),{popupElement:Ke,popupStyle:f.popup,popupClassName:m.popup,visible:re,onClose:Zt,range:!0}),c.createElement(qze,Ee({},o,{ref:le,suffixIcon:F,activeIndex:xe||re?pe:null,activeHelp:!!st,allHelp:!!st&&Je==="preset",focused:xe,onFocus:Wt,onBlur:tn,onKeyDown:Ut,onSubmit:Nt,value:Kt,maskFormat:l,onChange:Et,onInputChange:at,format:s,inputReadOnly:H,disabled:y,open:re,onOpenChange:ye,onClick:ft,onClear:ot,invalid:lt,onInvalid:mt,onActiveInfo:In}))))}var Xze=c.forwardRef(Gze);function Yze(e){var t=e.prefixCls,n=e.value,r=e.onRemove,o=e.removeIcon,i=o===void 0?"×":o,a=e.formatDate,s=e.disabled,l=e.maxTagCount,u=e.placeholder,d="".concat(t,"-selector"),f="".concat(t,"-selection"),m="".concat(f,"-overflow");function h(v,y){return c.createElement("span",{className:Q("".concat(f,"-item")),title:typeof v=="string"?v:null},c.createElement("span",{className:"".concat(f,"-item-content")},v),!s&&y&&c.createElement("span",{onMouseDown:function(w){w.preventDefault()},onClick:y,className:"".concat(f,"-item-remove")},i))}function p(v){var y=a(v),x=function(C){C&&C.stopPropagation(),r(v)};return h(y,x)}function b(v){var y="+ ".concat(v.length," ...");return h(y)}return c.createElement("div",{className:d},c.createElement(ks,{prefixCls:m,data:n,renderItem:p,renderRest:b,itemKey:function(y){return a(y)},maxCount:l}),!n.length&&c.createElement("span",{className:"".concat(t,"-selection-placeholder")},u))}var Zze=["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 Jze(e,t){e.id;var n=e.open,r=e.prefix,o=e.clearIcon,i=e.suffixIcon;e.activeHelp,e.allHelp;var a=e.focused;e.onFocus,e.onBlur,e.onKeyDown;var s=e.locale,l=e.generateConfig,u=e.placeholder,d=e.className,f=e.style,m=e.onClick,h=e.onClear,p=e.internalPicker,b=e.value,v=e.onChange,y=e.onSubmit;e.onInputChange;var x=e.multiple,w=e.maxTagCount;e.format,e.maskFormat,e.preserveInvalidOnBlur,e.onInvalid;var C=e.disabled,S=e.invalid;e.inputReadOnly;var $=e.direction;e.onOpenChange;var E=e.onMouseDown;e.required,e["aria-required"];var O=e.autoFocus,P=e.tabIndex,j=e.removeIcon,I=Ht(e,Zze),_=$==="rtl",R=c.useContext(Gs),N=R.prefixCls,A=c.useRef(),M=c.useRef();c.useImperativeHandle(t,function(){return{nativeElement:A.current,focus:function(te){var ee;(ee=M.current)===null||ee===void 0||ee.focus(te)},blur:function(){var te;(te=M.current)===null||te===void 0||te.blur()}}});var T=dee(I),k=function(te){v([te])},D=function(te){var ee=b.filter(function(z){return z&&!yi(l,s,z,te,p)});v(ee),n||y()},L=uee(Y(Y({},e),{},{onChange:k}),function(G){var te=G.valueTexts;return{value:te[0]||"",active:a}}),B=ue(L,2),H=B[0],F=B[1],W=!!(o&&b.length&&!C),q=x?c.createElement(c.Fragment,null,c.createElement(Yze,{prefixCls:N,value:b,onRemove:D,formatDate:F,maxTagCount:w,disabled:C,removeIcon:j,placeholder:u}),c.createElement("input",{className:"".concat(N,"-multiple-input"),value:b.map(F).join(","),ref:M,readOnly:!0,autoFocus:O,tabIndex:P}),c.createElement(eC,{type:"suffix",icon:i}),W&&c.createElement(Nj,{icon:o,onClear:h})):c.createElement(Rj,Ee({ref:M},H(),{autoFocus:O,tabIndex:P,suffixIcon:i,clearIcon:W&&c.createElement(Nj,{icon:o,onClear:h}),showActiveCls:!1}));return c.createElement("div",Ee({},T,{className:Q(N,K(K(K(K(K({},"".concat(N,"-multiple"),x),"".concat(N,"-focused"),a),"".concat(N,"-disabled"),C),"".concat(N,"-invalid"),S),"".concat(N,"-rtl"),_),d),style:f,ref:A,onClick:m,onMouseDown:function(te){var ee,z=te.target;z!==((ee=M.current)===null||ee===void 0?void 0:ee.inputElement)&&te.preventDefault(),E==null||E(te)}}),r&&c.createElement("div",{className:"".concat(N,"-prefix")},r),q)}var Qze=c.forwardRef(Jze);function eFe(e,t){var n=XQ(e),r=ue(n,6),o=r[0],i=r[1],a=r[2],s=r[3],l=r[4],u=r[5],d=o,f=d.prefixCls,m=d.styles,h=d.classNames,p=d.order,b=d.defaultValue,v=d.value,y=d.needConfirm,x=d.onChange,w=d.onKeyDown,C=d.disabled,S=d.disabledDate,$=d.minDate,E=d.maxDate,O=d.defaultOpen,P=d.open,j=d.onOpenChange,I=d.locale,_=d.generateConfig,R=d.picker,N=d.showNow,A=d.showToday,M=d.showTime,T=d.mode,k=d.onPanelChange,D=d.onCalendarChange,L=d.onOk,B=d.multiple,H=d.defaultPickerValue,F=d.pickerValue,W=d.onPickerValueChange,q=d.inputReadOnly,G=d.suffixIcon,te=d.removeIcon,ee=d.onFocus,z=d.onBlur,ne=d.presets,X=d.components,U=d.cellRender,le=d.dateRender,se=d.monthCellRender,ae=d.onClick,re=ZQ(t);function fe(it){return it===null?null:B?it:it[0]}var ye=see(_,I,i),Pe=YQ(P,O,[C],j),Oe=ue(Pe,2),V=Oe[0],J=Oe[1],oe=function(Ke,Et,at){if(D){var Wt=Y({},at);delete Wt.range,D(fe(Ke),fe(Et),Wt)}},de=function(Ke){L==null||L(fe(Ke))},be=oee(_,I,s,!1,p,b,v,oe,de),ge=ue(be,5),ie=ge[0],he=ge[1],xe=ge[2],Re=ge[3],Ce=ge[4],pe=xe(),_e=QQ([C]),we=ue(_e,4),$e=we[0],ve=we[1],me=we[2],Se=we[3],De=function(Ke){ve(!0),ee==null||ee(Ke,{})},et=function(Ke){ve(!1),z==null||z(Ke,{})},rt=kn(R,{value:T}),Me=ue(rt,2),We=Me[0],Qe=Me[1],Ge=We==="date"&&M?"datetime":We,tt=aee(R,We,N,A),ke=x&&function(it,Ke){x(fe(it),fe(Ke))},xt=iee(Y(Y({},o),{},{onChange:ke}),ie,he,xe,Re,[],s,$e,V,u),Ze=ue(xt,2),nt=Ze[1],Be=FQ(pe,u),Le=ue(Be,2),Ie=Le[0],Te=Le[1],Xe=c.useMemo(function(){return Ie.some(function(it){return it})},[Ie]),lt=function(Ke,Et){if(W){var at=Y(Y({},Et),{},{mode:Et.mode[0]});delete at.range,W(Ke[0],at)}},mt=eee(_,I,pe,[We],V,Se,i,!1,H,F,Zd(M==null?void 0:M.defaultOpenValue),lt,$,E),Ot=ue(mt,2),dt=Ot[0],qe=Ot[1],ht=fn(function(it,Ke,Et){if(Qe(Ke),k&&Et!==!1){var at=it||pe[pe.length-1];k(at,Ke)}}),zt=function(){nt(xe()),J(!1,{force:!0})},Vt=function(Ke){!C&&!re.current.nativeElement.contains(document.activeElement)&&re.current.focus(),J(!0),ae==null||ae(Ke)},Nt=function(){nt(null),J(!1,{force:!0})},ft=c.useState(null),ot=ue(ft,2),Ft=ot[0],Ue=ot[1],Je=c.useState(null),vt=ue(Je,2),yt=vt[0],Ye=vt[1],st=c.useMemo(function(){var it=[yt].concat(Ne(pe)).filter(function(Ke){return Ke});return B?it:it.slice(0,1)},[pe,yt,B]),wt=c.useMemo(function(){return!B&&yt?[yt]:pe.filter(function(it){return it})},[pe,yt,B]);c.useEffect(function(){V||Ye(null)},[V]);var Kt=JQ(ne),bt=function(Ke){Ye(Ke),Ue("preset")},It=function(Ke){var Et=B?ye(xe(),Ke):[Ke],at=nt(Et);at&&!B&&J(!1,{force:!0})},qt=function(Ke){It(Ke)},In=function(Ke){Ye(Ke),Ue("cell")},An=function(Ke){J(!0),De(Ke)},Nn=function(Ke){if(me("panel"),!(B&&Ge!==R)){var Et=B?ye(xe(),Ke):[Ke];Re(Et),!y&&!a&&i===Ge&&zt()}},Rn=function(){J(!1)},$n=KT(U,le,se),Dn=c.useMemo(function(){var it=Pr(o,!1),Ke=Xn(o,[].concat(Ne(Object.keys(it)),["onChange","onCalendarChange","style","className","onPanelChange"]));return Y(Y({},Ke),{},{multiple:o.multiple})},[o]),wn=c.createElement(cee,Ee({},Dn,{showNow:tt,showTime:M,disabledDate:S,onFocus:An,onBlur:et,picker:R,mode:We,internalMode:Ge,onPanelChange:ht,format:l,value:pe,isInvalid:u,onChange:null,onSelect:Nn,pickerValue:dt,defaultOpenValue:M==null?void 0:M.defaultOpenValue,onPickerValueChange:qe,hoverValue:st,onHover:In,needConfirm:y,onSubmit:zt,onOk:Ce,presets:Kt,onPresetHover:bt,onPresetSubmit:It,onNow:qt,cellRender:$n})),St=function(Ke){Re(Ke)},an=function(){me("input")},Zt=function(Ke){me("input"),J(!0,{inherit:!0}),De(Ke)},ct=function(Ke){J(!1),et(Ke)},je=function(Ke,Et){Ke.key==="Tab"&&zt(),w==null||w(Ke,Et)},pt=c.useMemo(function(){return{prefixCls:f,locale:I,generateConfig:_,button:X.button,input:X.input}},[f,I,_,X.button,X.input]);return sn(function(){V&&Se!==void 0&&ht(null,R,!1)},[V,Se,R]),sn(function(){var it=me();!V&&it==="input"&&(J(!1),zt()),!V&&a&&!y&&it==="panel"&&zt()},[V]),c.createElement(Gs.Provider,{value:pt},c.createElement(AQ,Ee({},zQ(o),{popupElement:wn,popupStyle:m.popup,popupClassName:h.popup,visible:V,onClose:Rn}),c.createElement(Qze,Ee({},o,{ref:re,suffixIcon:G,removeIcon:te,activeHelp:!!yt,allHelp:!!yt&&Ft==="preset",focused:$e,onFocus:Zt,onBlur:ct,onKeyDown:je,onSubmit:zt,value:wt,maskFormat:l,onChange:St,onInputChange:an,internalPicker:i,format:s,inputReadOnly:q,disabled:C,open:V,onOpenChange:J,onClick:Vt,onClear:Nt,invalid:Xe,onInvalid:function(Ke){Te(Ke,0)}}))))}var tFe=c.forwardRef(eFe);const fee=c.createContext(null),nFe=fee.Provider,mee=c.createContext(null),rFe=mee.Provider;var oFe=["prefixCls","className","style","checked","disabled","defaultChecked","type","title","onChange"],hee=c.forwardRef(function(e,t){var n=e.prefixCls,r=n===void 0?"rc-checkbox":n,o=e.className,i=e.style,a=e.checked,s=e.disabled,l=e.defaultChecked,u=l===void 0?!1:l,d=e.type,f=d===void 0?"checkbox":d,m=e.title,h=e.onChange,p=Ht(e,oFe),b=c.useRef(null),v=c.useRef(null),y=kn(u,{value:a}),x=ue(y,2),w=x[0],C=x[1];c.useImperativeHandle(t,function(){return{focus:function(O){var P;(P=b.current)===null||P===void 0||P.focus(O)},blur:function(){var O;(O=b.current)===null||O===void 0||O.blur()},input:b.current,nativeElement:v.current}});var S=Q(r,o,K(K({},"".concat(r,"-checked"),w),"".concat(r,"-disabled"),s)),$=function(O){s||("checked"in e||C(O.target.checked),h==null||h({target:Y(Y({},e),{},{type:f,checked:O.target.checked}),stopPropagation:function(){O.stopPropagation()},preventDefault:function(){O.preventDefault()},nativeEvent:O.nativeEvent}))};return c.createElement("span",{className:S,title:m,style:i,ref:v},c.createElement("input",Ee({},p,{className:"".concat(r,"-input"),ref:b,onChange:$,disabled:s,checked:!!w,type:f})),c.createElement("span",{className:"".concat(r,"-inner")}))});function pee(e){const t=ce.useRef(null),n=()=>{ln.cancel(t.current),t.current=null};return[()=>{n(),t.current=ln(()=>{t.current=null})},i=>{t.current&&(i.stopPropagation(),n()),e==null||e(i)}]}const iFe=e=>{const{componentCls:t,antCls:n}=e,r=`${t}-group`;return{[r]:Object.assign(Object.assign({},xn(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"}})}},aFe=e=>{const{componentCls:t,wrapperMarginInlineEnd:n,colorPrimary:r,radioSize:o,motionDurationSlow:i,motionDurationMid:a,motionEaseInOutCirc:s,colorBgContainer:l,colorBorder:u,lineWidth:d,colorBgContainerDisabled:f,colorTextDisabled:m,paddingXS:h,dotColorDisabled:p,lineType:b,radioColor:v,radioBgColor:y,calc:x}=e,w=`${t}-inner`,S=x(o).sub(x(4).mul(2)),$=x(1).mul(o).equal({unit:!0});return{[`${t}-wrapper`]:Object.assign(Object.assign({},xn(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:`${Z(d)} ${b} ${r}`,borderRadius:"50%",visibility:"hidden",opacity:0,content:'""'},[t]:Object.assign(Object.assign({},xn(e)),{position:"relative",display:"inline-block",outline:"none",cursor:"pointer",alignSelf:"center",borderRadius:"50%"}),[`${t}-wrapper:hover &,
        &:hover ${w}`]:{borderColor:r},[`${t}-input:focus-visible + ${w}`]:pl(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:x(1).mul(o).div(-2).equal({unit:!0}),marginInlineStart:x(1).mul(o).div(-2).equal({unit:!0}),backgroundColor:v,borderBlockStart:0,borderInlineStart:0,borderRadius:$,transform:"scale(0)",opacity:0,transition:`all ${i} ${s}`,content:'""'},boxSizing:"border-box",position:"relative",insetBlockStart:0,insetInlineStart:0,display:"block",width:$,height:$,backgroundColor:l,borderColor:u,borderStyle:"solid",borderWidth:d,borderRadius:"50%",transition:`all ${a}`},[`${t}-input`]:{position:"absolute",inset:0,zIndex:1,cursor:"pointer",opacity:0},[`${t}-checked`]:{[w]:{borderColor:r,backgroundColor:y,"&::after":{transform:`scale(${e.calc(e.dotSize).div(o).equal()})`,opacity:1,transition:`all ${i} ${s}`}}},[`${t}-disabled`]:{cursor:"not-allowed",[w]:{backgroundColor:f,borderColor:u,cursor:"not-allowed","&::after":{backgroundColor:p}},[`${t}-input`]:{cursor:"not-allowed"},[`${t}-disabled + span`]:{color:m,cursor:"not-allowed"},[`&${t}-checked`]:{[w]:{"&::after":{transform:`scale(${x(S).div(o).equal()})`}}}},[`span${t} + *`]:{paddingInlineStart:h,paddingInlineEnd:h}})}},sFe=e=>{const{buttonColor:t,controlHeight:n,componentCls:r,lineWidth:o,lineType:i,colorBorder:a,motionDurationMid:s,buttonPaddingInline:l,fontSize:u,buttonBg:d,fontSizeLG:f,controlHeightLG:m,controlHeightSM:h,paddingXS:p,borderRadius:b,borderRadiusSM:v,borderRadiusLG:y,buttonCheckedBg:x,buttonSolidCheckedColor:w,colorTextDisabled:C,colorBgContainerDisabled:S,buttonCheckedBgDisabled:$,buttonCheckedColorDisabled:E,colorPrimary:O,colorPrimaryHover:P,colorPrimaryActive:j,buttonSolidCheckedBg:I,buttonSolidCheckedHoverBg:_,buttonSolidCheckedActiveBg:R,calc:N}=e;return{[`${r}-button-wrapper`]:{position:"relative",display:"inline-block",height:n,margin:0,paddingInline:l,paddingBlock:0,color:t,fontSize:u,lineHeight:Z(N(n).sub(N(o).mul(2)).equal()),background:d,border:`${Z(o)} ${i} ${a}`,borderBlockStartWidth:N(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:N(o).mul(-1).equal()},"&:first-child":{borderInlineStart:`${Z(o)} ${i} ${a}`,borderStartStartRadius:b,borderEndStartRadius:b},"&:last-child":{borderStartEndRadius:b,borderEndEndRadius:b},"&:first-child:last-child":{borderRadius:b},[`${r}-group-large &`]:{height:m,fontSize:f,lineHeight:Z(N(m).sub(N(o).mul(2)).equal()),"&:first-child":{borderStartStartRadius:y,borderEndStartRadius:y},"&:last-child":{borderStartEndRadius:y,borderEndEndRadius:y}},[`${r}-group-small &`]:{height:h,paddingInline:N(p).sub(o).equal(),paddingBlock:0,lineHeight:Z(N(h).sub(N(o).mul(2)).equal()),"&:first-child":{borderStartStartRadius:v,borderEndStartRadius:v},"&:last-child":{borderStartEndRadius:v,borderEndEndRadius:v}},"&:hover":{position:"relative",color:O},"&:has(:focus-visible)":pl(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:O,background:x,borderColor:O,"&::before":{backgroundColor:O},"&:first-child":{borderColor:O},"&:hover":{color:P,borderColor:P,"&::before":{backgroundColor:P}},"&:active":{color:j,borderColor:j,"&::before":{backgroundColor:j}}},[`${r}-group-solid &-checked:not(${r}-button-wrapper-disabled)`]:{color:w,background:I,borderColor:I,"&:hover":{color:w,background:_,borderColor:_},"&:active":{color:w,background:R,borderColor:R}},"&-disabled":{color:C,backgroundColor:S,borderColor:a,cursor:"not-allowed","&:first-child, &:hover":{color:C,backgroundColor:S,borderColor:a}},[`&-disabled${r}-button-wrapper-checked`]:{color:E,backgroundColor:$,borderColor:a,boxShadow:"none"},"&-block":{flex:1,textAlign:"center"}}}},lFe=e=>{const{wireframe:t,padding:n,marginXS:r,lineWidth:o,fontSizeLG:i,colorText:a,colorBgContainer:s,colorTextDisabled:l,controlItemBgActiveDisabled:u,colorTextLightSolid:d,colorPrimary:f,colorPrimaryHover:m,colorPrimaryActive:h,colorWhite:p}=e,b=4,v=i,y=t?v-b*2:v-(b+o)*2;return{radioSize:v,dotSize:y,dotColorDisabled:l,buttonSolidCheckedColor:d,buttonSolidCheckedBg:f,buttonSolidCheckedHoverBg:m,buttonSolidCheckedActiveBg:h,buttonBg:s,buttonCheckedBg:s,buttonColor:a,buttonCheckedBgDisabled:u,buttonCheckedColorDisabled:l,buttonPaddingInline:n-o,wrapperMarginInlineEnd:r,radioColor:t?f:p,radioBgColor:t?s:f}},gee=vn("Radio",e=>{const{controlOutline:t,controlOutlineWidth:n}=e,r=`0 0 0 ${Z(n)} ${t}`,i=cn(e,{radioFocusShadow:r,radioButtonFocusShadow:r});return[iFe(i),aFe(i),sFe(i)]},lFe,{unitless:{radioSize:!0,dotSize:!0}});var cFe=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 uFe=(e,t)=>{var n,r;const o=c.useContext(fee),i=c.useContext(mee),{getPrefixCls:a,direction:s,radio:l}=c.useContext(kt),u=c.useRef(null),d=po(t,u),{isFormItemInput:f}=c.useContext(Oo),m=M=>{var T,k;(T=e.onChange)===null||T===void 0||T.call(e,M),(k=o==null?void 0:o.onChange)===null||k===void 0||k.call(o,M)},{prefixCls:h,className:p,rootClassName:b,children:v,style:y,title:x}=e,w=cFe(e,["prefixCls","className","rootClassName","children","style","title"]),C=a("radio",h),S=((o==null?void 0:o.optionType)||i)==="button",$=S?`${C}-button`:C,E=Hr(C),[O,P,j]=gee(C,E),I=Object.assign({},w),_=c.useContext(ai);o&&(I.name=o.name,I.onChange=m,I.checked=e.value===o.value,I.disabled=(n=I.disabled)!==null&&n!==void 0?n:o.disabled),I.disabled=(r=I.disabled)!==null&&r!==void 0?r:_;const R=Q(`${$}-wrapper`,{[`${$}-wrapper-checked`]:I.checked,[`${$}-wrapper-disabled`]:I.disabled,[`${$}-wrapper-rtl`]:s==="rtl",[`${$}-wrapper-in-form-item`]:f,[`${$}-wrapper-block`]:!!(o!=null&&o.block)},l==null?void 0:l.className,p,b,P,j,E),[N,A]=pee(I.onClick);return O(c.createElement(Jv,{component:"Radio",disabled:I.disabled},c.createElement("label",{className:R,style:Object.assign(Object.assign({},l==null?void 0:l.style),y),onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,title:x,onClick:N},c.createElement(hee,Object.assign({},I,{className:Q(I.className,{[xS]:!S}),type:"radio",prefixCls:$,ref:d,onClick:A})),v!==void 0?c.createElement("span",{className:`${$}-label`},v):null)))},c1=c.forwardRef(uFe),dFe=["parentNode"],fFe="form_item";function Wp(e){return e===void 0||e===!1?[]:Array.isArray(e)?e:[e]}function vee(e,t){if(!e.length)return;const n=e.join("_");return t?`${t}_${n}`:dFe.includes(n)?`${fFe}_${n}`:n}function yee(e,t,n,r,o,i){let a=r;return i!==void 0?a=i:n.validating?a="validating":e.length?a="error":t.length?a="warning":(n.touched||o&&n.validated)&&(a="success"),a}var mFe=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 Tj(e){return Wp(e).join("_")}function $z(e,t){const n=t.getFieldInstance(e),r=qv(n);if(r)return r;const o=vee(Wp(e),t.__INTERNAL__.name);if(o)return document.getElementById(o)}function bee(e){const[t]=ET(),n=c.useRef({}),r=c.useMemo(()=>e??Object.assign(Object.assign({},t),{__INTERNAL__:{itemRef:o=>i=>{const a=Tj(o);i?n.current[a]=i:delete n.current[a]}},scrollToField:(o,i={})=>{const{focus:a}=i,s=mFe(i,["focus"]),l=$z(o,r);l&&(qTe(l,Object.assign({scrollMode:"if-needed",block:"nearest"},s)),a&&r.focusField(o))},focusField:o=>{var i,a;const s=r.getFieldInstance(o);typeof(s==null?void 0:s.focus)=="function"?s.focus():(a=(i=$z(o,r))===null||i===void 0?void 0:i.focus)===null||a===void 0||a.call(i)},getFieldInstance:o=>{const i=Tj(o);return n.current[i]}}),[e,t]);return[r]}const hFe=c.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r}=c.useContext(kt),{name:o}=c.useContext(Oo),i=kS(Tj(o)),{prefixCls:a,className:s,rootClassName:l,options:u,buttonStyle:d="outline",disabled:f,children:m,size:h,style:p,id:b,optionType:v,name:y=i,defaultValue:x,value:w,block:C=!1,onChange:S,onMouseEnter:$,onMouseLeave:E,onFocus:O,onBlur:P}=e,[j,I]=kn(x,{value:w}),_=c.useCallback(F=>{const W=j,q=F.target.value;"value"in e||I(q),q!==W&&(S==null||S(F))},[j,I,S]),R=n("radio",a),N=`${R}-group`,A=Hr(R),[M,T,k]=gee(R,A);let D=m;u&&u.length>0&&(D=u.map(F=>typeof F=="string"||typeof F=="number"?c.createElement(c1,{key:F.toString(),prefixCls:R,disabled:f,value:F,checked:j===F},F):c.createElement(c1,{key:`radio-group-value-options-${F.value}`,prefixCls:R,disabled:F.disabled||f,value:F.value,checked:j===F.value,title:F.title,style:F.style,className:F.className,id:F.id,required:F.required},F.label)));const L=go(h),B=Q(N,`${N}-${d}`,{[`${N}-${L}`]:L,[`${N}-rtl`]:r==="rtl",[`${N}-block`]:C},s,l,T,k,A),H=c.useMemo(()=>({onChange:_,value:j,disabled:f,name:y,optionType:v,block:C}),[_,j,f,y,v,C]);return M(c.createElement("div",Object.assign({},Pr(e,{aria:!0,data:!0}),{className:B,style:p,onMouseEnter:$,onMouseLeave:E,onFocus:O,onBlur:P,id:b,ref:t}),c.createElement(nFe,{value:H},D)))}),pFe=c.memo(hFe);var gFe=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 vFe=(e,t)=>{const{getPrefixCls:n}=c.useContext(kt),{prefixCls:r}=e,o=gFe(e,["prefixCls"]),i=n("radio",r);return c.createElement(rFe,{value:"button"},c.createElement(c1,Object.assign({prefixCls:i},o,{type:"radio",ref:t})))},yFe=c.forwardRef(vFe),Kc=c1;Kc.Button=yFe;Kc.Group=pFe;Kc.__ANT_RADIO=!0;function Qd(e){return cn(e,{inputAffixPadding:e.paddingXXS})}const ef=e=>{const{controlHeight:t,fontSize:n,lineHeight:r,lineWidth:o,controlHeightSM:i,controlHeightLG:a,fontSizeLG:s,lineHeightLG:l,paddingSM:u,controlPaddingHorizontalSM:d,controlPaddingHorizontal:f,colorFillAlter:m,colorPrimaryHover:h,colorPrimary:p,controlOutlineWidth:b,controlOutline:v,colorErrorOutline:y,colorWarningOutline:x,colorBgContainer:w,inputFontSize:C,inputFontSizeLG:S,inputFontSizeSM:$}=e,E=C||n,O=$||E,P=S||s,j=Math.round((t-E*r)/2*10)/10-o,I=Math.round((i-O*r)/2*10)/10-o,_=Math.ceil((a-P*l)/2*10)/10-o;return{paddingBlock:Math.max(j,0),paddingBlockSM:Math.max(I,0),paddingBlockLG:Math.max(_,0),paddingInline:u-o,paddingInlineSM:d-o,paddingInlineLG:f-o,addonBg:m,activeBorderColor:p,hoverBorderColor:h,activeShadow:`0 0 0 ${b}px ${v}`,errorActiveShadow:`0 0 0 ${b}px ${y}`,warningActiveShadow:`0 0 0 ${b}px ${x}`,hoverBg:w,activeBg:w,inputFontSize:E,inputFontSizeLG:P,inputFontSizeSM:O}},bFe=e=>({borderColor:e.hoverBorderColor,backgroundColor:e.hoverBg}),tC=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({},bFe(cn(e,{hoverBorderColor:e.colorBorder,hoverBg:e.colorBgContainerDisabled})))}),ZT=(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}}),Ez=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},ZT(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}}),[`&${e.componentCls}-status-${t.status}${e.componentCls}-disabled`]:{borderColor:t.borderColor}}),JT=(e,t)=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},ZT(e,{borderColor:e.colorBorder,hoverBorderColor:e.hoverBorderColor,activeBorderColor:e.activeBorderColor,activeShadow:e.activeShadow})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},tC(e))}),Ez(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError})),Ez(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning})),t)}),Oz=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{borderColor:t.addonBorderColor,color:t.addonColor}}}),xee=e=>({"&-outlined":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group`]:{"&-addon":{background:e.addonBg,border:`${Z(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}}},Oz(e,{status:"error",addonBorderColor:e.colorError,addonColor:e.colorErrorText})),Oz(e,{status:"warning",addonBorderColor:e.colorWarning,addonColor:e.colorWarningText})),{[`&${e.componentCls}-group-wrapper-disabled`]:{[`${e.componentCls}-group-addon`]:Object.assign({},tC(e))}})}),QT=(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)}},wee=(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}}},Pz=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},wee(e,t)),{[`${e.componentCls}-prefix, ${e.componentCls}-suffix`]:{color:t.affixColor}})}),e3=(e,t)=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},wee(e,{bg:e.colorFillTertiary,hoverBg:e.colorFillSecondary,activeBorderColor:e.activeBorderColor})),{[`&${e.componentCls}-disabled, &[disabled]`]:Object.assign({},tC(e))}),Pz(e,{status:"error",bg:e.colorErrorBg,hoverBg:e.colorErrorBgHover,activeBorderColor:e.colorError,inputColor:e.colorErrorText,affixColor:e.colorError})),Pz(e,{status:"warning",bg:e.colorWarningBg,hoverBg:e.colorWarningBgHover,activeBorderColor:e.colorWarning,inputColor:e.colorWarningText,affixColor:e.colorWarning})),t)}),jz=(e,t)=>({[`&${e.componentCls}-group-wrapper-status-${t.status}`]:{[`${e.componentCls}-group-addon`]:{background:t.addonBg,color:t.addonColor}}}),See=e=>({"&-filled":Object.assign(Object.assign(Object.assign({[`${e.componentCls}-group-addon`]:{background:e.colorFillTertiary,"&:last-child":{position:"static"}}},jz(e,{status:"error",addonBg:e.colorErrorBg,addonColor:e.colorErrorText})),jz(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:`${Z(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${Z(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${Z(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},"&-addon:last-child":{borderInlineEnd:`${Z(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderTop:`${Z(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderBottom:`${Z(e.lineWidth)} ${e.lineType} ${e.colorBorder}`}}}})}),Cee=(e,t)=>({background:e.colorBgContainer,borderWidth:`${Z(e.lineWidth)} 0`,borderStyle:`${e.lineType} none`,borderColor:`transparent transparent ${t.borderColor} transparent`,borderRadius:0,"&:hover":{borderColor:`transparent transparent ${t.borderColor} transparent`,backgroundColor:e.hoverBg},"&:focus, &:focus-within":{borderColor:`transparent transparent ${t.activeBorderColor} transparent`,outline:0,backgroundColor:e.activeBg}}),Iz=(e,t)=>({[`&${e.componentCls}-status-${t.status}:not(${e.componentCls}-disabled)`]:Object.assign(Object.assign({},Cee(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`}}),t3=(e,t)=>({"&-underlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Cee(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"}}),Iz(e,{status:"error",borderColor:e.colorError,hoverBorderColor:e.colorErrorBorderHover,activeBorderColor:e.colorError,activeShadow:e.errorActiveShadow,affixColor:e.colorError})),Iz(e,{status:"warning",borderColor:e.colorWarning,hoverBorderColor:e.colorWarningBorderHover,activeBorderColor:e.colorWarning,activeShadow:e.warningActiveShadow,affixColor:e.colorWarning})),t)}),n3=e=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:e,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),$ee=e=>{const{paddingBlockLG:t,lineHeightLG:n,borderRadiusLG:r,paddingInlineLG:o}=e;return{padding:`${Z(t)} ${Z(o)}`,fontSize:e.inputFontSizeLG,lineHeight:n,borderRadius:r}},r3=e=>({padding:`${Z(e.paddingBlockSM)} ${Z(e.paddingInlineSM)}`,fontSize:e.inputFontSizeSM,borderRadius:e.borderRadiusSM}),l0=e=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${Z(e.paddingBlock)} ${Z(e.paddingInline)}`,color:e.colorText,fontSize:e.inputFontSize,lineHeight:e.lineHeight,borderRadius:e.borderRadius,transition:`all ${e.motionDurationMid}`},n3(e.colorTextPlaceholder)),{"&-lg":Object.assign({},$ee(e)),"&-sm":Object.assign({},r3(e)),"&-rtl, &-textarea-rtl":{direction:"rtl"}}),Eee=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({},$ee(e)),[`&-sm ${t}, &-sm > ${t}-group-addon`]:Object.assign({},r3(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 ${Z(e.paddingInline)}`,color:e.colorText,fontWeight:"normal",fontSize:e.inputFontSize,textAlign:"center",borderRadius:e.borderRadius,transition:`all ${e.motionDurationSlow}`,lineHeight:1,[`${n}-select`]:{margin:`${Z(e.calc(e.paddingBlock).add(1).mul(-1).equal())} ${Z(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:`${Z(e.lineWidth)} ${e.lineType} transparent`,boxShadow:"none"}}},[`${n}-cascader-picker`]:{margin:`-9px ${Z(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"},hl()),{[`${t}-group-addon, ${t}-group-wrap, > ${t}`]:{"&:not(:first-child):not(:last-child)":{borderInlineEndWidth:e.lineWidth,"&:hover, &:focus":{zIndex:1}}},"& > *":{display:"inline-flex",float:"none",verticalAlign:"top",borderRadius:0},[`
        & > ${t}-affix-wrapper,
        & > ${t}-number-affix-wrapper,
        & > ${n}-picker-range
      `]:{display:"inline-flex"},"& > *:not(:last-child)":{marginInlineEnd:e.calc(e.lineWidth).mul(-1).equal(),borderInlineEndWidth:e.lineWidth},[t]:{float:"none"},[`& > ${n}-select > ${n}-select-selector,
      & > ${n}-select-auto-complete ${t},
      & > ${n}-cascader-picker ${t},
      & > ${t}-group-wrapper ${t}`]:{borderInlineEndWidth:e.lineWidth,borderRadius:0,"&:hover, &:focus":{zIndex:1}},[`& > ${n}-select-focused`]:{zIndex:1},[`& > ${n}-select > ${n}-select-arrow`]:{zIndex:1},[`& > *:first-child,
      & > ${n}-select:first-child > ${n}-select-selector,
      & > ${n}-select-auto-complete:first-child ${t},
      & > ${n}-cascader-picker:first-child ${t}`]:{borderStartStartRadius:e.borderRadius,borderEndStartRadius:e.borderRadius},[`& > *:last-child,
      & > ${n}-select:last-child > ${n}-select-selector,
      & > ${n}-cascader-picker:last-child ${t},
      & > ${n}-cascader-picker-focused:last-child ${t}`]:{borderInlineEndWidth:e.lineWidth,borderStartEndRadius:e.borderRadius,borderEndEndRadius:e.borderRadius},[`& > ${n}-select-auto-complete ${t}`]:{verticalAlign:"top"},[`${t}-group-wrapper + ${t}-group-wrapper`]:{marginInlineStart:e.calc(e.lineWidth).mul(-1).equal(),[`${t}-affix-wrapper`]:{borderRadius:0}},[`${t}-group-wrapper:not(:last-child)`]:{[`&${t}-search > ${t}-group`]:{[`& > ${t}-group-addon > ${t}-search-button`]:{borderRadius:0},[`& > ${t}`]:{borderStartStartRadius:e.borderRadius,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:e.borderRadius}}}})}},xFe=e=>{const{componentCls:t,controlHeightSM:n,lineWidth:r,calc:o}=e,a=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({},xn(e)),l0(e)),JT(e)),e3(e)),QT(e)),t3(e)),{'&[type="color"]':{height:e.controlHeight,[`&${t}-lg`]:{height:e.controlHeightLG},[`&${t}-sm`]:{height:n,paddingTop:a,paddingBottom:a}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{appearance:"none"}})}},wFe=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 ${Z(e.inputAffixPadding)}`}}}},SFe=e=>{const{componentCls:t,inputAffixPadding:n,colorTextDescription:r,motionDurationSlow:o,colorIcon:i,colorIconHover:a,iconCls:s}=e,l=`${t}-affix-wrapper`,u=`${t}-affix-wrapper-disabled`;return{[l]:Object.assign(Object.assign(Object.assign(Object.assign({},l0(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}}}),wFe(e)),{[`${s}${t}-password-icon`]:{color:i,cursor:"pointer",transition:`all ${o}`,"&:hover":{color:a}}}),[`${t}-underlined`]:{borderRadius:0},[u]:{[`${s}${t}-password-icon`]:{color:i,cursor:"not-allowed","&:hover":{color:i}}}}},CFe=e=>{const{componentCls:t,borderRadiusLG:n,borderRadiusSM:r}=e;return{[`${t}-group`]:Object.assign(Object.assign(Object.assign({},xn(e)),Eee(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}}},xee(e)),See(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}}})})}},$Fe=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,
        > ${t},
        ${t}-affix-wrapper`]:{"&:hover, &:focus, &:active":{zIndex:2}},[`> ${t}-affix-wrapper-focused`]:{zIndex:2}}}}},EFe=e=>{const{componentCls:t}=e;return{[`${t}-out-of-range`]:{[`&, & input, & textarea, ${t}-show-count-suffix, ${t}-data-count`]:{color:e.colorError}}}},Oee=vn(["Input","Shared"],e=>{const t=cn(e,Qd(e));return[xFe(t),SFe(t)]},ef,{resetFont:!1}),Pee=vn(["Input","Component"],e=>{const t=cn(e,Qd(e));return[CFe(t),$Fe(t),EFe(t),e0(t)]},ef,{resetFont:!1}),C2=(e,t)=>{const{componentCls:n,controlHeight:r}=e,o=t?`${n}-${t}`:"",i=LJ(e);return[{[`${n}-multiple${o}`]:{paddingBlock:i.containerPadding,paddingInlineStart:i.basePadding,minHeight:r,[`${n}-selection-item`]:{height:i.itemHeight,lineHeight:Z(i.itemLineHeight)}}}]},OFe=e=>{const{componentCls:t,calc:n,lineWidth:r}=e,o=cn(e,{fontHeight:e.fontSize,selectHeight:e.controlHeightSM,multipleSelectItemHeight:e.multipleItemHeightSM,borderRadius:e.borderRadiusSM,borderRadiusSM:e.borderRadiusXS,controlHeight:e.controlHeightSM}),i=cn(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[C2(o,"small"),C2(e),C2(i,"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"}}},zJ(e)),{[`${t}-multiple-input`]:{width:0,height:0,border:0,visibility:"hidden",position:"absolute",zIndex:-1}})}]},PFe=e=>{const{pickerCellCls:t,pickerCellInnerCls:n,cellHeight:r,borderRadiusSM:o,motionDurationMid:i,cellHoverBg:a,lineWidth:s,lineType:l,colorPrimary:u,cellActiveWithRangeBg:d,colorTextLightSolid:f,colorTextDisabled:m,cellBgDisabled:h,colorFillSecondary:p}=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:Z(r),borderRadius:o,transition:`background ${i}`},[`&:hover:not(${t}-in-view):not(${t}-disabled),
    &:hover:not(${t}-selected):not(${t}-range-start):not(${t}-range-end):not(${t}-disabled)`]:{[n]:{background:a}},[`&-in-view${t}-today ${n}`]:{"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:1,border:`${Z(s)} ${l} ${u}`,borderRadius:o,content:'""'}},[`&-in-view${t}-in-range,
      &-in-view${t}-range-start,
      &-in-view${t}-range-end`]:{position:"relative",[`&:not(${t}-disabled):before`]:{background:d}},[`&-in-view${t}-selected,
      &-in-view${t}-range-start,
      &-in-view${t}-range-end`]:{[`&:not(${t}-disabled) ${n}`]:{color:f,background:u},[`&${t}-disabled ${n}`]:{background:p}},[`&-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:h}},[`&-disabled${t}-today ${n}::before`]:{borderColor:m}}},jFe=e=>{const{componentCls:t,pickerCellCls:n,pickerCellInnerCls:r,pickerYearMonthCellWidth:o,pickerControlIconSize:i,cellWidth:a,paddingSM:s,paddingXS:l,paddingXXS:u,colorBgContainer:d,lineWidth:f,lineType:m,borderRadiusLG:h,colorPrimary:p,colorTextHeading:b,colorSplit:v,pickerControlIconBorderWidth:y,colorIcon:x,textHeight:w,motionDurationMid:C,colorIconHover:S,fontWeightStrong:$,cellHeight:E,pickerCellPaddingVertical:O,colorTextDisabled:P,colorText:j,fontSize:I,motionDurationSlow:_,withoutTimeCellHeight:R,pickerQuarterPanelContentHeight:N,borderRadiusSM:A,colorTextLightSolid:M,cellHoverBg:T,timeColumnHeight:k,timeColumnWidth:D,timeCellHeight:L,controlItemBgActive:B,marginXXS:H,pickerDatePanelPaddingHorizontal:F,pickerControlIconMargin:W}=e,q=e.calc(a).mul(7).add(e.calc(F).mul(2)).equal();return{[t]:{"&-panel":{display:"inline-flex",flexDirection:"column",textAlign:"center",background:d,borderRadius:h,outline:"none","&-focused":{borderColor:p},"&-rtl":{[`${t}-prev-icon,
              ${t}-super-prev-icon`]:{transform:"rotate(45deg)"},[`${t}-next-icon,
              ${t}-super-next-icon`]:{transform:"rotate(-135deg)"},[`${t}-time-panel`]:{[`${t}-content`]:{direction:"ltr","> *":{direction:"rtl"}}}}},"&-decade-panel,\n        &-year-panel,\n        &-quarter-panel,\n        &-month-panel,\n        &-week-panel,\n        &-date-panel,\n        &-time-panel":{display:"flex",flexDirection:"column",width:q},"&-header":{display:"flex",padding:`0 ${Z(l)}`,color:b,borderBottom:`${Z(f)} ${m} ${v}`,"> *":{flex:"none"},button:{padding:0,color:x,lineHeight:Z(w),background:"transparent",border:0,cursor:"pointer",transition:`color ${C}`,fontSize:"inherit",display:"inline-flex",alignItems:"center",justifyContent:"center","&:empty":{display:"none"}},"> button":{minWidth:"1.6em",fontSize:I,"&:hover":{color:S},"&:disabled":{opacity:.25,pointerEvents:"none"}},"&-view":{flex:"auto",fontWeight:$,lineHeight:Z(w),"> button":{color:"inherit",fontWeight:"inherit",verticalAlign:"top","&:not(:first-child)":{marginInlineStart:l},"&:hover":{color:p}}}},"&-prev-icon,\n        &-next-icon,\n        &-super-prev-icon,\n        &-super-next-icon":{position:"relative",width:i,height:i,"&::before":{position:"absolute",top:0,insetInlineStart:0,width:i,height:i,border:"0 solid currentcolor",borderBlockStartWidth:y,borderInlineStartWidth:y,content:'""'}},"&-super-prev-icon,\n        &-super-next-icon":{"&::after":{position:"absolute",top:W,insetInlineStart:W,display:"inline-block",width:i,height:i,border:"0 solid currentcolor",borderBlockStartWidth:y,borderInlineStartWidth:y,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:E,fontWeight:"normal"},th:{height:e.calc(E).add(e.calc(O).mul(2)).equal(),color:j,verticalAlign:"middle"}},"&-cell":Object.assign({padding:`${Z(O)} 0`,color:P,cursor:"pointer","&-in-view":{color:j}},PFe(e)),"&-decade-panel,\n        &-year-panel,\n        &-quarter-panel,\n        &-month-panel":{[`${t}-content`]:{height:e.calc(R).mul(4).equal()},[r]:{padding:`0 ${Z(l)}`}},"&-quarter-panel":{[`${t}-content`]:{height:N}},"&-decade-panel":{[r]:{padding:`0 ${Z(e.calc(l).div(2).equal())}`},[`${t}-cell::before`]:{display:"none"}},"&-year-panel,\n        &-quarter-panel,\n        &-month-panel":{[`${t}-body`]:{padding:`0 ${Z(l)}`},[r]:{width:o}},"&-date-panel":{[`${t}-body`]:{padding:`${Z(l)} ${Z(F)}`},[`${t}-content th`]:{boxSizing:"border-box",padding:0}},"&-week-panel-row":{td:{"&:before":{transition:`background ${C}`},"&:first-child:before":{borderStartStartRadius:A,borderEndStartRadius:A},"&:last-child:before":{borderStartEndRadius:A,borderEndEndRadius:A}},"&:hover td:before":{background:T},"&-range-start td, &-range-end td, &-selected td, &-hover td":{[`&${n}`]:{"&:before":{background:p},[`&${t}-cell-week`]:{color:new On(M).setA(.5).toHexString()},[r]:{color:M}}},"&-range-hover td:before":{background:B}},"&-week-panel, &-date-panel-show-week":{[`${t}-body`]:{padding:`${Z(l)} ${Z(s)}`},[`${t}-content th`]:{width:"auto"}},"&-datetime-panel":{display:"flex",[`${t}-time-panel`]:{borderInlineStart:`${Z(f)} ${m} ${v}`},[`${t}-date-panel,
          ${t}-time-panel`]:{transition:`opacity ${_}`},"&-active":{[`${t}-date-panel,
            ${t}-time-panel`]:{opacity:.3,"&-active":{opacity:1}}}},"&-time-panel":{width:"auto",minWidth:"auto",[`${t}-content`]:{display:"flex",flex:"auto",height:k},"&-column":{flex:"1 0 auto",width:D,margin:`${Z(u)} 0`,padding:0,overflowY:"hidden",textAlign:"start",listStyle:"none",transition:`background ${C}`,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% - ${Z(L)})`,content:'""'},"&:not(:first-child)":{borderInlineStart:`${Z(f)} ${m} ${v}`},"&-active":{background:new On(B).setA(.2).toHexString()},"&:hover":{overflowY:"auto"},"> li":{margin:0,padding:0,[`&${t}-time-panel-cell`]:{marginInline:H,[`${t}-time-panel-cell-inner`]:{display:"block",width:e.calc(D).sub(e.calc(H).mul(2)).equal(),height:L,margin:0,paddingBlock:0,paddingInlineEnd:0,paddingInlineStart:e.calc(D).sub(L).div(2).equal(),color:j,lineHeight:Z(L),borderRadius:A,cursor:"pointer",transition:`background ${C}`,"&:hover":{background:T}},"&-selected":{[`${t}-time-panel-cell-inner`]:{background:B}},"&-disabled":{[`${t}-time-panel-cell-inner`]:{color:P,background:"transparent",cursor:"not-allowed"}}}}}}}}},IFe=e=>{const{componentCls:t,textHeight:n,lineWidth:r,paddingSM:o,antCls:i,colorPrimary:a,cellActiveWithRangeBg:s,colorPrimaryBorder:l,lineType:u,colorSplit:d}=e;return{[`${t}-dropdown`]:{[`${t}-footer`]:{borderTop:`${Z(r)} ${u} ${d}`,"&-extra":{padding:`0 ${Z(o)}`,lineHeight:Z(e.calc(n).sub(e.calc(r).mul(2)).equal()),textAlign:"start","&:not(:last-child)":{borderBottom:`${Z(r)} ${u} ${d}`}}},[`${t}-panels + ${t}-footer ${t}-ranges`]:{justifyContent:"space-between"},[`${t}-ranges`]:{marginBlock:0,paddingInline:Z(o),overflow:"hidden",textAlign:"start",listStyle:"none",display:"flex",justifyContent:"center",alignItems:"center","> li":{lineHeight:Z(e.calc(n).sub(e.calc(r).mul(2)).equal()),display:"inline-block"},[`${t}-now-btn-disabled`]:{pointerEvents:"none",color:e.colorTextDisabled},[`${t}-preset > ${i}-tag-blue`]:{color:a,background:s,borderColor:l,cursor:"pointer"},[`${t}-ok`]:{paddingBlock:e.calc(r).mul(2).equal(),marginInlineStart:"auto"}}}}},_Fe=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()}},NFe=e=>{const{colorBgContainerDisabled:t,controlHeight:n,controlHeightSM:r,controlHeightLG:o,paddingXXS:i,lineWidth:a}=e,s=i*2,l=a*2,u=Math.min(n-s,n-l),d=Math.min(r-s,r-l),f=Math.min(o-s,o-l);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(i/2),cellHoverBg:e.controlItemBgHover,cellActiveWithRangeBg:e.controlItemBgActive,cellHoverWithRangeBg:new On(e.colorPrimary).lighten(35).toHexString(),cellRangeBorderColor:new On(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"}},RFe=e=>Object.assign(Object.assign(Object.assign(Object.assign({},ef(e)),NFe(e)),HS(e)),{presetsWidth:120,presetsMaxWidth:200,zIndexPopup:e.zIndexPopupBase+50}),TFe=e=>{const{componentCls:t}=e;return{[t]:[Object.assign(Object.assign(Object.assign(Object.assign({},JT(e)),t3(e)),e3(e)),QT(e)),{"&-outlined":{[`&${t}-multiple ${t}-selection-item`]:{background:e.multipleItemBg,border:`${Z(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}},"&-filled":{[`&${t}-multiple ${t}-selection-item`]:{background:e.colorBgContainer,border:`${Z(e.lineWidth)} ${e.lineType} ${e.colorSplit}`}},"&-borderless":{[`&${t}-multiple ${t}-selection-item`]:{background:e.multipleItemBg,border:`${Z(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}},"&-underlined":{[`&${t}-multiple ${t}-selection-item`]:{background:e.multipleItemBg,border:`${Z(e.lineWidth)} ${e.lineType} ${e.multipleItemBorderColor}`}}}]}},$2=(e,t)=>({padding:`${Z(e)} ${Z(t)}`}),MFe=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}}}}},kFe=e=>{var t;const{componentCls:n,antCls:r,paddingInline:o,lineWidth:i,lineType:a,colorBorder:s,borderRadius:l,motionDurationMid:u,colorTextDisabled:d,colorTextPlaceholder:f,colorTextQuaternary:m,fontSizeLG:h,inputFontSizeLG:p,fontSizeSM:b,inputFontSizeSM:v,controlHeightSM:y,paddingInlineSM:x,paddingXS:w,marginXS:C,colorIcon:S,lineWidthBold:$,colorPrimary:E,motionDurationSlow:O,zIndexPopup:P,paddingXXS:j,sizePopupArrow:I,colorBgElevated:_,borderRadiusLG:R,boxShadowSecondary:N,borderRadiusSM:A,colorSplit:M,cellHoverBg:T,presetsWidth:k,presetsMaxWidth:D,boxShadowPopoverArrow:L,fontHeight:B,lineHeightLG:H}=e;return[{[n]:Object.assign(Object.assign(Object.assign({},xn(e)),$2(e.paddingBlock,e.paddingInline)),{position:"relative",display:"inline-flex",alignItems:"center",lineHeight:1,borderRadius:l,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}`},n3(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({},$2(e.paddingBlockLG,e.paddingInlineLG)),{[`${n}-input > input`]:{fontSize:p??h,lineHeight:H}}),"&-small":Object.assign(Object.assign({},$2(e.paddingBlockSM,e.paddingInlineSM)),{[`${n}-input > input`]:{fontSize:v??b}}),[`${n}-suffix`]:{display:"flex",flex:"none",alignSelf:"center",marginInlineStart:e.calc(w).div(2).equal(),color:m,lineHeight:1,pointerEvents:"none",transition:`opacity ${u}, color ${u}`,"> *":{verticalAlign:"top","&:not(:last-child)":{marginInlineEnd:C}}},[`${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:S}},"&:hover":{[`${n}-clear`]:{opacity:1},[`${n}-suffix:not(:last-child)`]:{opacity:0}},[`${n}-separator`]:{position:"relative",display:"inline-block",width:"1em",height:h,color:m,fontSize:h,verticalAlign:"top",cursor:"default",[`${n}-focused &`]:{color:S},[`${n}-range-separator &`]:{[`${n}-disabled &`]:{cursor:"not-allowed"}}},"&-range":{position:"relative",display:"inline-flex",[`${n}-active-bar`]:{bottom:e.calc(i).mul(-1).equal(),height:$,background:E,opacity:0,transition:`all ${O} ease-out`,pointerEvents:"none"},[`&${n}-focused`]:{[`${n}-active-bar`]:{opacity:1}},[`${n}-range-separator`]:{alignItems:"center",padding:`0 ${Z(w)}`,lineHeight:1}},"&-range, &-multiple":{[`${n}-clear`]:{insetInlineEnd:o},[`&${n}-small`]:{[`${n}-clear`]:{insetInlineEnd:x}}},"&-dropdown":Object.assign(Object.assign(Object.assign({},xn(e)),jFe(e)),{pointerEvents:"none",position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:P,[`&${n}-dropdown-hidden`]:{display:"none"},"&-rtl":{direction:"rtl"},[`&${n}-dropdown-placement-bottomLeft,
            &${n}-dropdown-placement-bottomRight`]:{[`${n}-range-arrow`]:{top:0,display:"block",transform:"translateY(-100%)"}},[`&${n}-dropdown-placement-topLeft,
            &${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,
          &${r}-slide-up-enter${r}-slide-up-enter-active${n}-dropdown-placement-topRight,
          &${r}-slide-up-appear${r}-slide-up-appear-active${n}-dropdown-placement-topLeft,
          &${r}-slide-up-appear${r}-slide-up-appear-active${n}-dropdown-placement-topRight`]:{animationName:OS},[`&${r}-slide-up-enter${r}-slide-up-enter-active${n}-dropdown-placement-bottomLeft,
          &${r}-slide-up-enter${r}-slide-up-enter-active${n}-dropdown-placement-bottomRight,
          &${r}-slide-up-appear${r}-slide-up-appear-active${n}-dropdown-placement-bottomLeft,
          &${r}-slide-up-appear${r}-slide-up-appear-active${n}-dropdown-placement-bottomRight`]:{animationName:$S},[`&${r}-slide-up-leave ${n}-panel-container`]:{pointerEvents:"none"},[`&${r}-slide-up-leave${r}-slide-up-leave-active${n}-dropdown-placement-topLeft,
          &${r}-slide-up-leave${r}-slide-up-leave-active${n}-dropdown-placement-topRight`]:{animationName:PS},[`&${r}-slide-up-leave${r}-slide-up-leave-active${n}-dropdown-placement-bottomLeft,
          &${r}-slide-up-leave${r}-slide-up-leave-active${n}-dropdown-placement-bottomRight`]:{animationName:ES},[`${n}-panel > ${n}-time-panel`]:{paddingTop:j},[`${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 ${O} ease-out`},ZJ(e,_,L)),{"&:before":{insetInlineStart:e.calc(o).mul(1.5).equal()}}),[`${n}-panel-container`]:{overflow:"hidden",verticalAlign:"top",background:_,borderRadius:R,boxShadow:N,transition:`margin ${O}`,display:"inline-block",pointerEvents:"auto",[`${n}-panel-layout`]:{display:"flex",flexWrap:"nowrap",alignItems:"stretch"},[`${n}-presets`]:{display:"flex",flexDirection:"column",minWidth:k,maxWidth:D,ul:{height:0,flex:"auto",listStyle:"none",overflow:"auto",margin:0,padding:w,borderInlineEnd:`${Z(i)} ${a} ${M}`,li:Object.assign(Object.assign({},Bs),{borderRadius:A,paddingInline:w,paddingBlock:e.calc(y).sub(B).div(2).equal(),cursor:"pointer",transition:`all ${O}`,"+ li":{marginTop:C},"&:hover":{background:T}})}},[`${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:`${Z(e.calc(I).mul(2).div(3).equal())} 0`,"&-hidden":{display:"none"}},"&-rtl":{direction:"rtl",[`${n}-separator`]:{transform:"scale(-1, 1)"},[`${n}-footer`]:{"&-extra":{direction:"rtl"}}}})},vl(e,"slide-up"),vl(e,"slide-down"),Wm(e,"move-up"),Wm(e,"move-down")]},jee=vn("DatePicker",e=>{const t=cn(Qd(e),_Fe(e),{inputPaddingHorizontalBase:e.calc(e.paddingSM).sub(1).equal(),multipleSelectItemHeight:e.multipleItemHeight,selectHeight:e.controlHeight});return[IFe(t),kFe(t),TFe(t),MFe(t),OFe(t),e0(e,{focusElCls:`${e.componentCls}-focused`})]},RFe);var Iee={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"},AFe=function(t,n){return c.createElement(yn,Ee({},t,{ref:n,icon:Iee}))},DFe=c.forwardRef(AFe);const nC=c.createContext(null);var LFe=function(t){var n=t.activeTabOffset,r=t.horizontal,o=t.rtl,i=t.indicator,a=i===void 0?{}:i,s=a.size,l=a.align,u=l===void 0?"center":l,d=c.useState(),f=ue(d,2),m=f[0],h=f[1],p=c.useRef(),b=ce.useCallback(function(y){return typeof s=="function"?s(y):typeof s=="number"?s:y},[s]);function v(){ln.cancel(p.current)}return c.useEffect(function(){var y={};if(n)if(r){y.width=b(n.width);var x=o?"right":"left";u==="start"&&(y[x]=n[x]),u==="center"&&(y[x]=n[x]+n.width/2,y.transform=o?"translateX(50%)":"translateX(-50%)"),u==="end"&&(y[x]=n[x]+n.width,y.transform="translateX(-100%)")}else y.height=b(n.height),u==="start"&&(y.top=n.top),u==="center"&&(y.top=n.top+n.height/2,y.transform="translateY(-50%)"),u==="end"&&(y.top=n.top+n.height,y.transform="translateY(-100%)");return v(),p.current=ln(function(){var w=m&&y&&Object.keys(y).every(function(C){var S=y[C],$=m[C];return typeof S=="number"&&typeof $=="number"?Math.round(S)===Math.round($):S===$});w||h(y)}),v},[JSON.stringify(n),r,o,u,b]),{style:m}},_z={width:0,height:0,left:0,top:0};function zFe(e,t,n){return c.useMemo(function(){for(var r,o=new Map,i=t.get((r=e[0])===null||r===void 0?void 0:r.key)||_z,a=i.left+i.width,s=0;s<e.length;s+=1){var l=e[s].key,u=t.get(l);if(!u){var d;u=t.get((d=e[s-1])===null||d===void 0?void 0:d.key)||_z}var f=o.get(l)||Y({},u);f.right=a-f.left-f.width,o.set(l,f)}return o},[e.map(function(r){return r.key}).join("_"),t,n])}function Nz(e,t){var n=c.useRef(e),r=c.useState({}),o=ue(r,2),i=o[1];function a(s){var l=typeof s=="function"?s(n.current):s;l!==n.current&&t(l,n.current),n.current=l,i({})}return[n.current,a]}var FFe=.1,Rz=.01,gb=20,Tz=Math.pow(.995,gb);function BFe(e,t){var n=c.useState(),r=ue(n,2),o=r[0],i=r[1],a=c.useState(0),s=ue(a,2),l=s[0],u=s[1],d=c.useState(0),f=ue(d,2),m=f[0],h=f[1],p=c.useState(),b=ue(p,2),v=b[0],y=b[1],x=c.useRef();function w(P){var j=P.touches[0],I=j.screenX,_=j.screenY;i({x:I,y:_}),window.clearInterval(x.current)}function C(P){if(o){var j=P.touches[0],I=j.screenX,_=j.screenY;i({x:I,y:_});var R=I-o.x,N=_-o.y;t(R,N);var A=Date.now();u(A),h(A-l),y({x:R,y:N})}}function S(){if(o&&(i(null),y(null),v)){var P=v.x/m,j=v.y/m,I=Math.abs(P),_=Math.abs(j);if(Math.max(I,_)<FFe)return;var R=P,N=j;x.current=window.setInterval(function(){if(Math.abs(R)<Rz&&Math.abs(N)<Rz){window.clearInterval(x.current);return}R*=Tz,N*=Tz,t(R*gb,N*gb)},gb)}}var $=c.useRef();function E(P){var j=P.deltaX,I=P.deltaY,_=0,R=Math.abs(j),N=Math.abs(I);R===N?_=$.current==="x"?j:I:R>N?(_=j,$.current="x"):(_=I,$.current="y"),t(-_,-_)&&P.preventDefault()}var O=c.useRef(null);O.current={onTouchStart:w,onTouchMove:C,onTouchEnd:S,onWheel:E},c.useEffect(function(){function P(R){O.current.onTouchStart(R)}function j(R){O.current.onTouchMove(R)}function I(R){O.current.onTouchEnd(R)}function _(R){O.current.onWheel(R)}return document.addEventListener("touchmove",j,{passive:!1}),document.addEventListener("touchend",I,{passive:!0}),e.current.addEventListener("touchstart",P,{passive:!0}),e.current.addEventListener("wheel",_,{passive:!1}),function(){document.removeEventListener("touchmove",j),document.removeEventListener("touchend",I)}},[])}function _ee(e){var t=c.useState(0),n=ue(t,2),r=n[0],o=n[1],i=c.useRef(0),a=c.useRef();return a.current=e,od(function(){var s;(s=a.current)===null||s===void 0||s.call(a)},[r]),function(){i.current===r&&(i.current+=1,o(i.current))}}function HFe(e){var t=c.useRef([]),n=c.useState({}),r=ue(n,2),o=r[1],i=c.useRef(typeof e=="function"?e():e),a=_ee(function(){var l=i.current;t.current.forEach(function(u){l=u(l)}),t.current=[],i.current=l,o({})});function s(l){t.current.push(l),a()}return[i.current,s]}var Mz={width:0,height:0,left:0,top:0,right:0};function VFe(e,t,n,r,o,i,a){var s=a.tabs,l=a.tabPosition,u=a.rtl,d,f,m;return["top","bottom"].includes(l)?(d="width",f=u?"right":"left",m=Math.abs(n)):(d="height",f="top",m=-n),c.useMemo(function(){if(!s.length)return[0,0];for(var h=s.length,p=h,b=0;b<h;b+=1){var v=e.get(s[b].key)||Mz;if(Math.floor(v[f]+v[d])>Math.floor(m+t)){p=b-1;break}}for(var y=0,x=h-1;x>=0;x-=1){var w=e.get(s[x].key)||Mz;if(w[f]<m){y=x+1;break}}return y>p?[0,-1]:[y,p]},[e,t,r,o,i,m,l,s.map(function(h){return h.key}).join("_"),u])}function kz(e){var t;return e instanceof Map?(t={},e.forEach(function(n,r){t[r]=n})):t=e,JSON.stringify(t)}var WFe="TABS_DQ";function Nee(e){return String(e).replace(/"/g,WFe)}function o3(e,t,n,r){return!(!n||r||e===!1||e===void 0&&(t===!1||t===null))}var Ree=c.forwardRef(function(e,t){var n=e.prefixCls,r=e.editable,o=e.locale,i=e.style;return!r||r.showAdd===!1?null:c.createElement("button",{ref:t,type:"button",className:"".concat(n,"-nav-add"),style:i,"aria-label":(o==null?void 0:o.addAriaLabel)||"Add tab",onClick:function(s){r.onEdit("add",{event:s})}},r.addIcon||"+")}),Az=c.forwardRef(function(e,t){var n=e.position,r=e.prefixCls,o=e.extra;if(!o)return null;var i,a={};return _t(o)==="object"&&!c.isValidElement(o)?a=o:a.right=o,n==="right"&&(i=a.right),n==="left"&&(i=a.left),i?c.createElement("div",{className:"".concat(r,"-extra-content"),ref:t},i):null}),UFe=c.forwardRef(function(e,t){var n=e.prefixCls,r=e.id,o=e.tabs,i=e.locale,a=e.mobile,s=e.more,l=s===void 0?{}:s,u=e.style,d=e.className,f=e.editable,m=e.tabBarGutter,h=e.rtl,p=e.removeAriaLabel,b=e.onTabClick,v=e.getPopupContainer,y=e.popupClassName,x=c.useState(!1),w=ue(x,2),C=w[0],S=w[1],$=c.useState(null),E=ue($,2),O=E[0],P=E[1],j=l.icon,I=j===void 0?"More":j,_="".concat(r,"-more-popup"),R="".concat(n,"-dropdown"),N=O!==null?"".concat(_,"-").concat(O):null,A=i==null?void 0:i.dropdownAriaLabel;function M(F,W){F.preventDefault(),F.stopPropagation(),f.onEdit("remove",{key:W,event:F})}var T=c.createElement(Eh,{onClick:function(W){var q=W.key,G=W.domEvent;b(q,G),S(!1)},prefixCls:"".concat(R,"-menu"),id:_,tabIndex:-1,role:"listbox","aria-activedescendant":N,selectedKeys:[O],"aria-label":A!==void 0?A:"expanded dropdown"},o.map(function(F){var W=F.closable,q=F.disabled,G=F.closeIcon,te=F.key,ee=F.label,z=o3(W,G,f,q);return c.createElement(a0,{key:te,id:"".concat(_,"-").concat(te),role:"option","aria-controls":r&&"".concat(r,"-panel-").concat(te),disabled:q},c.createElement("span",null,ee),z&&c.createElement("button",{type:"button","aria-label":p||"remove",tabIndex:0,className:"".concat(R,"-menu-item-remove"),onClick:function(X){X.stopPropagation(),M(X,te)}},G||f.removeIcon||"×"))}));function k(F){for(var W=o.filter(function(z){return!z.disabled}),q=W.findIndex(function(z){return z.key===O})||0,G=W.length,te=0;te<G;te+=1){q=(q+F+G)%G;var ee=W[q];if(!ee.disabled){P(ee.key);return}}}function D(F){var W=F.which;if(!C){[jt.DOWN,jt.SPACE,jt.ENTER].includes(W)&&(S(!0),F.preventDefault());return}switch(W){case jt.UP:k(-1),F.preventDefault();break;case jt.DOWN:k(1),F.preventDefault();break;case jt.ESC:S(!1);break;case jt.SPACE:case jt.ENTER:O!==null&&b(O,F);break}}c.useEffect(function(){var F=document.getElementById(N);F&&F.scrollIntoView&&F.scrollIntoView(!1)},[O]),c.useEffect(function(){C||P(null)},[C]);var L=K({},h?"marginRight":"marginLeft",m);o.length||(L.visibility="hidden",L.order=1);var B=Q(K({},"".concat(R,"-rtl"),h)),H=a?null:c.createElement(sQ,Ee({prefixCls:R,overlay:T,visible:o.length?C:!1,onVisibleChange:S,overlayClassName:Q(B,y),mouseEnterDelay:.1,mouseLeaveDelay:.1,getPopupContainer:v},l),c.createElement("button",{type:"button",className:"".concat(n,"-nav-more"),style:L,"aria-haspopup":"listbox","aria-controls":_,id:"".concat(r,"-more"),"aria-expanded":C,onKeyDown:D},I));return c.createElement("div",{className:Q("".concat(n,"-nav-operations"),d),style:u,ref:t},H,c.createElement(Ree,{prefixCls:n,locale:i,editable:f}))});const KFe=c.memo(UFe,function(e,t){return t.tabMoving});var qFe=function(t){var n=t.prefixCls,r=t.id,o=t.active,i=t.focus,a=t.tab,s=a.key,l=a.label,u=a.disabled,d=a.closeIcon,f=a.icon,m=t.closable,h=t.renderWrapper,p=t.removeAriaLabel,b=t.editable,v=t.onClick,y=t.onFocus,x=t.onBlur,w=t.onKeyDown,C=t.onMouseDown,S=t.onMouseUp,$=t.style,E=t.tabCount,O=t.currentPosition,P="".concat(n,"-tab"),j=o3(m,d,b,u);function I(M){u||v(M)}function _(M){M.preventDefault(),M.stopPropagation(),b.onEdit("remove",{key:s,event:M})}var R=c.useMemo(function(){return f&&typeof l=="string"?c.createElement("span",null,l):l},[l,f]),N=c.useRef(null);c.useEffect(function(){i&&N.current&&N.current.focus()},[i]);var A=c.createElement("div",{key:s,"data-node-key":Nee(s),className:Q(P,K(K(K(K({},"".concat(P,"-with-remove"),j),"".concat(P,"-active"),o),"".concat(P,"-disabled"),u),"".concat(P,"-focus"),i)),style:$,onClick:I},c.createElement("div",{ref:N,role:"tab","aria-selected":o,id:r&&"".concat(r,"-tab-").concat(s),className:"".concat(P,"-btn"),"aria-controls":r&&"".concat(r,"-panel-").concat(s),"aria-disabled":u,tabIndex:u?null:o?0:-1,onClick:function(T){T.stopPropagation(),I(T)},onKeyDown:w,onMouseDown:C,onMouseUp:S,onFocus:y,onBlur:x},i&&c.createElement("div",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},"Tab ".concat(O," of ").concat(E)),f&&c.createElement("span",{className:"".concat(P,"-icon")},f),l&&R),j&&c.createElement("button",{type:"button",role:"tab","aria-label":p||"remove",tabIndex:o?0:-1,className:"".concat(P,"-remove"),onClick:function(T){T.stopPropagation(),_(T)}},d||b.removeIcon||"×"));return h?h(A):A},GFe=function(t,n){var r=t.offsetWidth,o=t.offsetHeight,i=t.offsetTop,a=t.offsetLeft,s=t.getBoundingClientRect(),l=s.width,u=s.height,d=s.left,f=s.top;return Math.abs(l-r)<1?[l,u,d-n.left,f-n.top]:[r,o,a,i]},xf=function(t){var n=t.current||{},r=n.offsetWidth,o=r===void 0?0:r,i=n.offsetHeight,a=i===void 0?0:i;if(t.current){var s=t.current.getBoundingClientRect(),l=s.width,u=s.height;if(Math.abs(l-o)<1)return[l,u]}return[o,a]},xy=function(t,n){return t[n?0:1]},Dz=c.forwardRef(function(e,t){var n=e.className,r=e.style,o=e.id,i=e.animated,a=e.activeKey,s=e.rtl,l=e.extra,u=e.editable,d=e.locale,f=e.tabPosition,m=e.tabBarGutter,h=e.children,p=e.onTabClick,b=e.onTabScroll,v=e.indicator,y=c.useContext(nC),x=y.prefixCls,w=y.tabs,C=c.useRef(null),S=c.useRef(null),$=c.useRef(null),E=c.useRef(null),O=c.useRef(null),P=c.useRef(null),j=c.useRef(null),I=f==="top"||f==="bottom",_=Nz(0,function(Ye,st){I&&b&&b({direction:Ye>st?"left":"right"})}),R=ue(_,2),N=R[0],A=R[1],M=Nz(0,function(Ye,st){!I&&b&&b({direction:Ye>st?"top":"bottom"})}),T=ue(M,2),k=T[0],D=T[1],L=c.useState([0,0]),B=ue(L,2),H=B[0],F=B[1],W=c.useState([0,0]),q=ue(W,2),G=q[0],te=q[1],ee=c.useState([0,0]),z=ue(ee,2),ne=z[0],X=z[1],U=c.useState([0,0]),le=ue(U,2),se=le[0],ae=le[1],re=HFe(new Map),fe=ue(re,2),ye=fe[0],Pe=fe[1],Oe=zFe(w,ye,G[0]),V=xy(H,I),J=xy(G,I),oe=xy(ne,I),de=xy(se,I),be=Math.floor(V)<Math.floor(J+oe),ge=be?V-de:V-oe,ie="".concat(x,"-nav-operations-hidden"),he=0,xe=0;I&&s?(he=0,xe=Math.max(0,J-ge)):(he=Math.min(0,ge-J),xe=0);function Re(Ye){return Ye<he?he:Ye>xe?xe:Ye}var Ce=c.useRef(null),pe=c.useState(),_e=ue(pe,2),we=_e[0],$e=_e[1];function ve(){$e(Date.now())}function me(){Ce.current&&clearTimeout(Ce.current)}BFe(E,function(Ye,st){function wt(Kt,bt){Kt(function(It){var qt=Re(It+bt);return qt})}return be?(I?wt(A,Ye):wt(D,st),me(),ve(),!0):!1}),c.useEffect(function(){return me(),we&&(Ce.current=setTimeout(function(){$e(0)},100)),me},[we]);var Se=VFe(Oe,ge,I?N:k,J,oe,de,Y(Y({},e),{},{tabs:w})),De=ue(Se,2),et=De[0],rt=De[1],Me=fn(function(){var Ye=arguments.length>0&&arguments[0]!==void 0?arguments[0]:a,st=Oe.get(Ye)||{width:0,height:0,left:0,right:0,top:0};if(I){var wt=N;s?st.right<N?wt=st.right:st.right+st.width>N+ge&&(wt=st.right+st.width-ge):st.left<-N?wt=-st.left:st.left+st.width>-N+ge&&(wt=-(st.left+st.width-ge)),D(0),A(Re(wt))}else{var Kt=k;st.top<-k?Kt=-st.top:st.top+st.height>-k+ge&&(Kt=-(st.top+st.height-ge)),A(0),D(Re(Kt))}}),We=c.useState(),Qe=ue(We,2),Ge=Qe[0],tt=Qe[1],ke=c.useState(!1),xt=ue(ke,2),Ze=xt[0],nt=xt[1],Be=w.filter(function(Ye){return!Ye.disabled}).map(function(Ye){return Ye.key}),Le=function(st){var wt=Be.indexOf(Ge||a),Kt=Be.length,bt=(wt+st+Kt)%Kt,It=Be[bt];tt(It)},Ie=function(st,wt){var Kt=Be.indexOf(st),bt=w.find(function(qt){return qt.key===st}),It=o3(bt==null?void 0:bt.closable,bt==null?void 0:bt.closeIcon,u,bt==null?void 0:bt.disabled);It&&(wt.preventDefault(),wt.stopPropagation(),u.onEdit("remove",{key:st,event:wt}),Kt===Be.length-1?Le(-1):Le(1))},Te=function(st,wt){nt(!0),wt.button===1&&Ie(st,wt)},Xe=function(st){var wt=st.code,Kt=s&&I,bt=Be[0],It=Be[Be.length-1];switch(wt){case"ArrowLeft":{I&&Le(Kt?1:-1);break}case"ArrowRight":{I&&Le(Kt?-1:1);break}case"ArrowUp":{st.preventDefault(),I||Le(-1);break}case"ArrowDown":{st.preventDefault(),I||Le(1);break}case"Home":{st.preventDefault(),tt(bt);break}case"End":{st.preventDefault(),tt(It);break}case"Enter":case"Space":{st.preventDefault(),p(Ge??a,st);break}case"Backspace":case"Delete":{Ie(Ge,st);break}}},lt={};I?lt[s?"marginRight":"marginLeft"]=m:lt.marginTop=m;var mt=w.map(function(Ye,st){var wt=Ye.key;return c.createElement(qFe,{id:o,prefixCls:x,key:wt,tab:Ye,style:st===0?void 0:lt,closable:Ye.closable,editable:u,active:wt===a,focus:wt===Ge,renderWrapper:h,removeAriaLabel:d==null?void 0:d.removeAriaLabel,tabCount:Be.length,currentPosition:st+1,onClick:function(bt){p(wt,bt)},onKeyDown:Xe,onFocus:function(){Ze||tt(wt),Me(wt),ve(),E.current&&(s||(E.current.scrollLeft=0),E.current.scrollTop=0)},onBlur:function(){tt(void 0)},onMouseDown:function(bt){return Te(wt,bt)},onMouseUp:function(){nt(!1)}})}),Ot=function(){return Pe(function(){var st,wt=new Map,Kt=(st=O.current)===null||st===void 0?void 0:st.getBoundingClientRect();return w.forEach(function(bt){var It,qt=bt.key,In=(It=O.current)===null||It===void 0?void 0:It.querySelector('[data-node-key="'.concat(Nee(qt),'"]'));if(In){var An=GFe(In,Kt),Nn=ue(An,4),Rn=Nn[0],$n=Nn[1],Dn=Nn[2],wn=Nn[3];wt.set(qt,{width:Rn,height:$n,left:Dn,top:wn})}}),wt})};c.useEffect(function(){Ot()},[w.map(function(Ye){return Ye.key}).join("_")]);var dt=_ee(function(){var Ye=xf(C),st=xf(S),wt=xf($);F([Ye[0]-st[0]-wt[0],Ye[1]-st[1]-wt[1]]);var Kt=xf(j);X(Kt);var bt=xf(P);ae(bt);var It=xf(O);te([It[0]-Kt[0],It[1]-Kt[1]]),Ot()}),qe=w.slice(0,et),ht=w.slice(rt+1),zt=[].concat(Ne(qe),Ne(ht)),Vt=Oe.get(a),Nt=LFe({activeTabOffset:Vt,horizontal:I,indicator:v,rtl:s}),ft=Nt.style;c.useEffect(function(){Me()},[a,he,xe,kz(Vt),kz(Oe),I]),c.useEffect(function(){dt()},[s]);var ot=!!zt.length,Ft="".concat(x,"-nav-wrap"),Ue,Je,vt,yt;return I?s?(Je=N>0,Ue=N!==xe):(Ue=N<0,Je=N!==he):(vt=k<0,yt=k!==he),c.createElement(Wo,{onResize:dt},c.createElement("div",{ref:xl(t,C),role:"tablist","aria-orientation":I?"horizontal":"vertical",className:Q("".concat(x,"-nav"),n),style:r,onKeyDown:function(){ve()}},c.createElement(Az,{ref:S,position:"left",extra:l,prefixCls:x}),c.createElement(Wo,{onResize:dt},c.createElement("div",{className:Q(Ft,K(K(K(K({},"".concat(Ft,"-ping-left"),Ue),"".concat(Ft,"-ping-right"),Je),"".concat(Ft,"-ping-top"),vt),"".concat(Ft,"-ping-bottom"),yt)),ref:E},c.createElement(Wo,{onResize:dt},c.createElement("div",{ref:O,className:"".concat(x,"-nav-list"),style:{transform:"translate(".concat(N,"px, ").concat(k,"px)"),transition:we?"none":void 0}},mt,c.createElement(Ree,{ref:j,prefixCls:x,locale:d,editable:u,style:Y(Y({},mt.length===0?void 0:lt),{},{visibility:ot?"hidden":null})}),c.createElement("div",{className:Q("".concat(x,"-ink-bar"),K({},"".concat(x,"-ink-bar-animated"),i.inkBar)),style:ft}))))),c.createElement(KFe,Ee({},e,{removeAriaLabel:d==null?void 0:d.removeAriaLabel,ref:P,prefixCls:x,tabs:zt,className:!ot&&ie,tabMoving:!!we})),c.createElement(Az,{ref:$,position:"right",extra:l,prefixCls:x})))}),Tee=c.forwardRef(function(e,t){var n=e.prefixCls,r=e.className,o=e.style,i=e.id,a=e.active,s=e.tabKey,l=e.children;return c.createElement("div",{id:i&&"".concat(i,"-panel-").concat(s),role:"tabpanel",tabIndex:a?0:-1,"aria-labelledby":i&&"".concat(i,"-tab-").concat(s),"aria-hidden":!a,style:o,className:Q(n,a&&"".concat(n,"-active"),r),ref:t},l)}),XFe=["renderTabBar"],YFe=["label","key"],ZFe=function(t){var n=t.renderTabBar,r=Ht(t,XFe),o=c.useContext(nC),i=o.tabs;if(n){var a=Y(Y({},r),{},{panes:i.map(function(s){var l=s.label,u=s.key,d=Ht(s,YFe);return c.createElement(Tee,Ee({tab:l,key:u,tabKey:u},d))})});return n(a,Dz)}return c.createElement(Dz,r)},JFe=["key","forceRender","style","className","destroyInactiveTabPane"],QFe=function(t){var n=t.id,r=t.activeKey,o=t.animated,i=t.tabPosition,a=t.destroyInactiveTabPane,s=c.useContext(nC),l=s.prefixCls,u=s.tabs,d=o.tabPane,f="".concat(l,"-tabpane");return c.createElement("div",{className:Q("".concat(l,"-content-holder"))},c.createElement("div",{className:Q("".concat(l,"-content"),"".concat(l,"-content-").concat(i),K({},"".concat(l,"-content-animated"),d))},u.map(function(m){var h=m.key,p=m.forceRender,b=m.style,v=m.className,y=m.destroyInactiveTabPane,x=Ht(m,JFe),w=h===r;return c.createElement(si,Ee({key:h,visible:w,forceRender:p,removeOnLeave:!!(a||y),leavedClassName:"".concat(f,"-hidden")},o.tabPaneMotion),function(C,S){var $=C.style,E=C.className;return c.createElement(Tee,Ee({},x,{prefixCls:f,id:n,tabKey:h,animated:d,active:w,style:Y(Y({},b),$),className:Q(v,E),ref:S}))})})))};function e7e(){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=Y({inkBar:!0},_t(e)==="object"?e:{}),t.tabPaneMotion&&t.tabPane===void 0&&(t.tabPane=!0),!t.tabPaneMotion&&t.tabPane&&(t.tabPane=!1),t}var t7e=["id","prefixCls","className","items","direction","activeKey","defaultActiveKey","editable","animated","tabPosition","tabBarGutter","tabBarStyle","tabBarExtraContent","locale","more","destroyInactiveTabPane","renderTabBar","onChange","onTabClick","onTabScroll","getPopupContainer","popupClassName","indicator"],Lz=0,n7e=c.forwardRef(function(e,t){var n=e.id,r=e.prefixCls,o=r===void 0?"rc-tabs":r,i=e.className,a=e.items,s=e.direction,l=e.activeKey,u=e.defaultActiveKey,d=e.editable,f=e.animated,m=e.tabPosition,h=m===void 0?"top":m,p=e.tabBarGutter,b=e.tabBarStyle,v=e.tabBarExtraContent,y=e.locale,x=e.more,w=e.destroyInactiveTabPane,C=e.renderTabBar,S=e.onChange,$=e.onTabClick,E=e.onTabScroll,O=e.getPopupContainer,P=e.popupClassName,j=e.indicator,I=Ht(e,t7e),_=c.useMemo(function(){return(a||[]).filter(function(se){return se&&_t(se)==="object"&&"key"in se})},[a]),R=s==="rtl",N=e7e(f),A=c.useState(!1),M=ue(A,2),T=M[0],k=M[1];c.useEffect(function(){k(zS())},[]);var D=kn(function(){var se;return(se=_[0])===null||se===void 0?void 0:se.key},{value:l,defaultValue:u}),L=ue(D,2),B=L[0],H=L[1],F=c.useState(function(){return _.findIndex(function(se){return se.key===B})}),W=ue(F,2),q=W[0],G=W[1];c.useEffect(function(){var se=_.findIndex(function(re){return re.key===B});if(se===-1){var ae;se=Math.max(0,Math.min(q,_.length-1)),H((ae=_[se])===null||ae===void 0?void 0:ae.key)}G(se)},[_.map(function(se){return se.key}).join("_"),B,q]);var te=kn(null,{value:n}),ee=ue(te,2),z=ee[0],ne=ee[1];c.useEffect(function(){n||(ne("rc-tabs-".concat(Lz)),Lz+=1)},[]);function X(se,ae){$==null||$(se,ae);var re=se!==B;H(se),re&&(S==null||S(se))}var U={id:z,activeKey:B,animated:N,tabPosition:h,rtl:R,mobile:T},le=Y(Y({},U),{},{editable:d,locale:y,more:x,tabBarGutter:p,onTabClick:X,onTabScroll:E,extra:v,style:b,panes:null,getPopupContainer:O,popupClassName:P,indicator:j});return c.createElement(nC.Provider,{value:{tabs:_,prefixCls:o}},c.createElement("div",Ee({ref:t,id:n,className:Q(o,"".concat(o,"-").concat(h),K(K(K({},"".concat(o,"-mobile"),T),"".concat(o,"-editable"),d),"".concat(o,"-rtl"),R),i)},I),c.createElement(ZFe,Ee({},le,{renderTabBar:C})),c.createElement(QFe,Ee({destroyInactiveTabPane:w},U,{animated:N}))))});const r7e={motionAppear:!1,motionEnter:!0,motionLeave:!0};function o7e(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({},r7e),{motionName:gl(e,"switch")})),n}var i7e=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 a7e(e){return e.filter(t=>t)}function s7e(e,t){if(e)return e.map(r=>{var o;const i=(o=r.destroyOnHidden)!==null&&o!==void 0?o:r.destroyInactiveTabPane;return Object.assign(Object.assign({},r),{destroyInactiveTabPane:i})});const n=ii(t).map(r=>{if(c.isValidElement(r)){const{key:o,props:i}=r,a=i||{},{tab:s}=a,l=i7e(a,["tab"]);return Object.assign(Object.assign({key:String(o)},l),{label:s})}return null});return a7e(n)}const l7e=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}`}}}}},[vl(e,"slide-up"),vl(e,"slide-down")]]},c7e=e=>{const{componentCls:t,tabsCardPadding:n,cardBg:r,cardGutter:o,colorBorderSecondary:i,itemSelectedColor:a}=e;return{[`${t}-card`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{margin:0,padding:n,background:r,border:`${Z(e.lineWidth)} ${e.lineType} ${i}`,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`},[`${t}-tab-active`]:{color:a,background:e.colorBgContainer},[`${t}-tab-focus:has(${t}-tab-btn:focus-visible)`]:pl(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:Z(o)}}}},[`&${t}-top`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`${Z(e.borderRadiusLG)} ${Z(e.borderRadiusLG)} 0 0`},[`${t}-tab-active`]:{borderBottomColor:e.colorBgContainer}}},[`&${t}-bottom`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:`0 0 ${Z(e.borderRadiusLG)} ${Z(e.borderRadiusLG)}`},[`${t}-tab-active`]:{borderTopColor:e.colorBgContainer}}},[`&${t}-left, &${t}-right`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab + ${t}-tab`]:{marginTop:Z(o)}}},[`&${t}-left`]:{[`> ${t}-nav, > div > ${t}-nav`]:{[`${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${Z(e.borderRadiusLG)} 0 0 ${Z(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 ${Z(e.borderRadiusLG)} ${Z(e.borderRadiusLG)} 0`}},[`${t}-tab-active`]:{borderLeftColor:{_skip_check_:!0,value:e.colorBgContainer}}}}}}},u7e=e=>{const{componentCls:t,itemHoverColor:n,dropdownEdgeChildVerticalPadding:r}=e;return{[`${t}-dropdown`]:Object.assign(Object.assign({},xn(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:`${Z(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({},Bs),{display:"flex",alignItems:"center",minWidth:e.tabsDropdownWidth,margin:0,padding:`${Z(e.paddingXXS)} ${Z(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"}}})}})}},d7e=e=>{const{componentCls:t,margin:n,colorBorderSecondary:r,horizontalMargin:o,verticalItemPadding:i,verticalItemMargin:a,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:`${Z(e.lineWidth)} ${e.lineType} ${r}`,content:"''"},[`${t}-ink-bar`]:{height:e.lineWidthBold,"&-animated":{transition:`width ${e.motionDurationSlow}, left ${e.motionDurationSlow},
            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,
        > 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:i,textAlign:"center"},[`${t}-tab + ${t}-tab`]:{margin:a},[`${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:Z(s(e.lineWidth).mul(-1).equal())},borderLeft:{_skip_check_:!0,value:`${Z(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:`${Z(e.lineWidth)} ${e.lineType} ${e.colorBorder}`},[`> ${t}-content > ${t}-tabpane`]:{paddingRight:{_skip_check_:!0,value:e.paddingLG}}}}}},f7e=e=>{const{componentCls:t,cardPaddingSM:n,cardPaddingLG:r,cardHeightSM:o,cardHeightLG:i,horizontalItemPaddingSM:a,horizontalItemPaddingLG:s}=e;return{[t]:{"&-small":{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:a,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 ${Z(e.borderRadius)} ${Z(e.borderRadius)}`}},[`&${t}-top`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:`${Z(e.borderRadius)} ${Z(e.borderRadius)} 0 0`}},[`&${t}-right`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`0 ${Z(e.borderRadius)} ${Z(e.borderRadius)} 0`}}},[`&${t}-left`]:{[`> ${t}-nav ${t}-tab`]:{borderRadius:{_skip_check_:!0,value:`${Z(e.borderRadius)} 0 0 ${Z(e.borderRadius)}`}}}},[`&${t}-large`]:{[`> ${t}-nav`]:{[`${t}-tab`]:{padding:r},[`${t}-nav-add`]:{minWidth:i,minHeight:i}}}}}},m7e=e=>{const{componentCls:t,itemActiveColor:n,itemHoverColor:r,iconCls:o,tabsHorizontalItemMargin:i,horizontalItemPadding:a,itemSelectedColor:s,itemColor:l}=e,u=`${t}-tab`;return{[u]:{position:"relative",WebkitTouchCallout:"none",WebkitTapHighlightColor:"transparent",display:"inline-flex",alignItems:"center",padding:a,fontSize:e.titleFontSize,background:"transparent",border:0,outline:"none",cursor:"pointer",color:l,"&-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}},Hs(e)),"&:hover":{color:r},[`&${u}-active ${u}-btn`]:{color:s,textShadow:e.tabsActiveTextShadow},[`&${u}-focus ${u}-btn:focus-visible`]:pl(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:i}}}},h7e=e=>{const{componentCls:t,tabsHorizontalItemMarginRTL:n,iconCls:r,cardGutter:o,calc:i}=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:Z(e.marginSM)}},[`${t}-tab-remove`]:{marginRight:{_skip_check_:!0,value:Z(e.marginXS)},marginLeft:{_skip_check_:!0,value:Z(i(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"}}}}},p7e=e=>{const{componentCls:t,tabsCardPadding:n,cardHeight:r,cardGutter:o,itemHoverColor:i,itemActiveColor:a,colorBorderSecondary:s}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},xn(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:`${Z(e.lineWidth)} ${e.lineType} ${s}`,borderRadius:`${Z(e.borderRadiusLG)} ${Z(e.borderRadiusLG)} 0 0`,outline:"none",cursor:"pointer",color:e.colorText,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOut}`,"&:hover":{color:i},"&:active, &:focus:not(:focus-visible)":{color:a}},Hs(e,-3))},[`${t}-extra-content`]:{flex:"none"},[`${t}-ink-bar`]:{position:"absolute",background:e.inkBarColor,pointerEvents:"none"}}),m7e(e)),{[`${t}-content`]:{position:"relative",width:"100%"},[`${t}-content-holder`]:{flex:"auto",minWidth:0,minHeight:0},[`${t}-tabpane`]:Object.assign(Object.assign({},Hs(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"}}}}}},g7e=e=>{const{cardHeight:t,cardHeightSM:n,cardHeightLG:r,controlHeight:o,controlHeightLG:i}=e,a=t||i,s=n||o,l=r||i+8;return{zIndexPopup:e.zIndexPopupBase+50,cardBg:e.colorFillAlter,cardHeight:a,cardHeightSM:s,cardHeightLG:l,cardPadding:`${(a-e.fontHeight)/2-e.lineWidth}px ${e.padding}px`,cardPaddingSM:`${(s-e.fontHeight)/2-e.lineWidth}px ${e.paddingXS}px`,cardPaddingLG:`${(l-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}},v7e=vn("Tabs",e=>{const t=cn(e,{tabsCardPadding:e.cardPadding,dropdownEdgeChildVerticalPadding:e.paddingXXS,tabsActiveTextShadow:"0 0 0.25px currentcolor",tabsDropdownHeight:200,tabsDropdownWidth:120,tabsHorizontalItemMargin:`0 0 0 ${Z(e.horizontalItemGutter)}`,tabsHorizontalItemMarginRTL:`0 0 0 ${Z(e.horizontalItemGutter)}`});return[f7e(t),h7e(t),d7e(t),u7e(t),c7e(t),p7e(t),l7e(t)]},g7e),y7e=()=>null;var b7e=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 x7e=c.forwardRef((e,t)=>{var n,r,o,i,a,s,l,u,d,f,m;const{type:h,className:p,rootClassName:b,size:v,onEdit:y,hideAdd:x,centered:w,addIcon:C,removeIcon:S,moreIcon:$,more:E,popupClassName:O,children:P,items:j,animated:I,style:_,indicatorSize:R,indicator:N,destroyInactiveTabPane:A,destroyOnHidden:M}=e,T=b7e(e,["type","className","rootClassName","size","onEdit","hideAdd","centered","addIcon","removeIcon","moreIcon","more","popupClassName","children","items","animated","style","indicatorSize","indicator","destroyInactiveTabPane","destroyOnHidden"]),{prefixCls:k}=T,{direction:D,tabs:L,getPrefixCls:B,getPopupContainer:H}=c.useContext(kt),F=B("tabs",k),W=Hr(F),[q,G,te]=v7e(F,W),ee=c.useRef(null);c.useImperativeHandle(t,()=>({nativeElement:ee.current}));let z;h==="editable-card"&&(z={onEdit:(re,{key:fe,event:ye})=>{y==null||y(re==="add"?ye:fe,re)},removeIcon:(n=S??(L==null?void 0:L.removeIcon))!==null&&n!==void 0?n:c.createElement(gu,null),addIcon:(C??(L==null?void 0:L.addIcon))||c.createElement(DFe,null),showAdd:x!==!0});const ne=B(),X=go(v),U=s7e(j,P),le=o7e(F,I),se=Object.assign(Object.assign({},L==null?void 0:L.style),_),ae={align:(r=N==null?void 0:N.align)!==null&&r!==void 0?r:(o=L==null?void 0:L.indicator)===null||o===void 0?void 0:o.align,size:(l=(a=(i=N==null?void 0:N.size)!==null&&i!==void 0?i:R)!==null&&a!==void 0?a:(s=L==null?void 0:L.indicator)===null||s===void 0?void 0:s.size)!==null&&l!==void 0?l:L==null?void 0:L.indicatorSize};return q(c.createElement(n7e,Object.assign({ref:ee,direction:D,getPopupContainer:H},T,{items:U,className:Q({[`${F}-${X}`]:X,[`${F}-card`]:["card","editable-card"].includes(h),[`${F}-editable-card`]:h==="editable-card",[`${F}-centered`]:w},L==null?void 0:L.className,p,b,G,te,W),popupClassName:Q(O,G,te,W),style:se,editable:z,more:Object.assign({icon:(m=(f=(d=(u=L==null?void 0:L.more)===null||u===void 0?void 0:u.icon)!==null&&d!==void 0?d:L==null?void 0:L.moreIcon)!==null&&f!==void 0?f:$)!==null&&m!==void 0?m:c.createElement(WT,null),transitionName:`${ne}-slide-up`},E),prefixCls:F,animated:le,indicator:ae,destroyInactiveTabPane:M??A})))}),tf=x7e;tf.TabPane=y7e;var w7e=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 Mee=e=>{var{prefixCls:t,className:n,hoverable:r=!0}=e,o=w7e(e,["prefixCls","className","hoverable"]);const{getPrefixCls:i}=c.useContext(kt),a=i("card",t),s=Q(`${a}-grid`,n,{[`${a}-grid-hoverable`]:r});return c.createElement("div",Object.assign({},o,{className:s}))},S7e=e=>{const{antCls:t,componentCls:n,headerHeight:r,headerPadding:o,tabsMarginBottom:i}=e;return Object.assign(Object.assign({display:"flex",justifyContent:"center",flexDirection:"column",minHeight:r,marginBottom:-1,padding:`0 ${Z(o)}`,color:e.colorTextHeading,fontWeight:e.fontWeightStrong,fontSize:e.headerFontSize,background:e.headerBg,borderBottom:`${Z(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`,borderRadius:`${Z(e.borderRadiusLG)} ${Z(e.borderRadiusLG)} 0 0`},hl()),{"&-wrapper":{width:"100%",display:"flex",alignItems:"center"},"&-title":Object.assign(Object.assign({display:"inline-block",flex:1},Bs),{[`
          > ${n}-typography,
          > ${n}-typography-edit-content
        `]:{insetInlineStart:0,marginTop:0,marginBottom:0}}),[`${t}-tabs-top`]:{clear:"both",marginBottom:i,color:e.colorText,fontWeight:"normal",fontSize:e.fontSize,"&-bar":{borderBottom:`${Z(e.lineWidth)} ${e.lineType} ${e.colorBorderSecondary}`}}})},C7e=e=>{const{cardPaddingBase:t,colorBorderSecondary:n,cardShadow:r,lineWidth:o}=e;return{width:"33.33%",padding:t,border:0,borderRadius:0,boxShadow:`
      ${Z(o)} 0 0 0 ${n},
      0 ${Z(o)} 0 0 ${n},
      ${Z(o)} ${Z(o)} 0 0 ${n},
      ${Z(o)} 0 0 0 ${n} inset,
      0 ${Z(o)} 0 0 ${n} inset;
    `,transition:`all ${e.motionDurationMid}`,"&-hoverable:hover":{position:"relative",zIndex:1,boxShadow:r}}},$7e=e=>{const{componentCls:t,iconCls:n,actionsLiMargin:r,cardActionsIconSize:o,colorBorderSecondary:i,actionsBg:a}=e;return Object.assign(Object.assign({margin:0,padding:0,listStyle:"none",background:a,borderTop:`${Z(e.lineWidth)} ${e.lineType} ${i}`,display:"flex",borderRadius:`0 0 ${Z(e.borderRadiusLG)} ${Z(e.borderRadiusLG)}`},hl()),{"& > 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:Z(e.fontHeight),transition:`color ${e.motionDurationMid}`,"&:hover":{color:e.colorPrimary}},[`> ${n}`]:{fontSize:o,lineHeight:Z(e.calc(o).mul(e.lineHeight).equal())}},"&:not(:last-child)":{borderInlineEnd:`${Z(e.lineWidth)} ${e.lineType} ${i}`}}})},E7e=e=>Object.assign(Object.assign({margin:`${Z(e.calc(e.marginXXS).mul(-1).equal())} 0`,display:"flex"},hl()),{"&-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},Bs),"&-description":{color:e.colorTextDescription}}),O7e=e=>{const{componentCls:t,colorFillAlter:n,headerPadding:r,bodyPadding:o}=e;return{[`${t}-head`]:{padding:`0 ${Z(r)}`,background:n,"&-title":{fontSize:e.fontSize}},[`${t}-body`]:{padding:`${Z(e.padding)} ${Z(o)}`}}},P7e=e=>{const{componentCls:t}=e;return{overflow:"hidden",[`${t}-body`]:{userSelect:"none"}}},j7e=e=>{const{componentCls:t,cardShadow:n,cardHeadPadding:r,colorBorderSecondary:o,boxShadowTertiary:i,bodyPadding:a,extraColor:s}=e;return{[t]:Object.assign(Object.assign({},xn(e)),{position:"relative",background:e.colorBgContainer,borderRadius:e.borderRadiusLG,[`&:not(${t}-bordered)`]:{boxShadow:i},[`${t}-head`]:S7e(e),[`${t}-extra`]:{marginInlineStart:"auto",color:s,fontWeight:"normal",fontSize:e.fontSize},[`${t}-body`]:{padding:a,borderRadius:`0 0 ${Z(e.borderRadiusLG)} ${Z(e.borderRadiusLG)}`},[`${t}-grid`]:C7e(e),[`${t}-cover`]:{"> *":{display:"block",width:"100%",borderRadius:`${Z(e.borderRadiusLG)} ${Z(e.borderRadiusLG)} 0 0`}},[`${t}-actions`]:$7e(e),[`${t}-meta`]:E7e(e)}),[`${t}-bordered`]:{border:`${Z(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:`${Z(e.borderRadiusLG)} ${Z(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`]:O7e(e),[`${t}-loading`]:P7e(e),[`${t}-rtl`]:{direction:"rtl"}}},I7e=e=>{const{componentCls:t,bodyPaddingSM:n,headerPaddingSM:r,headerHeightSM:o,headerFontSizeSM:i}=e;return{[`${t}-small`]:{[`> ${t}-head`]:{minHeight:o,padding:`0 ${Z(r)}`,fontSize:i,[`> ${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"}}}}},_7e=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}},N7e=vn("Card",e=>{const t=cn(e,{cardShadow:e.boxShadowCard,cardHeadPadding:e.padding,cardPaddingBase:e.paddingLG,cardActionsIconSize:e.fontSize});return[j7e(t),I7e(t)]},_7e);var zz=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 R7e=e=>{const{actionClasses:t,actions:n=[],actionStyle:r}=e;return c.createElement("ul",{className:t,style:r},n.map((o,i)=>{const a=`action-${i}`;return c.createElement("li",{style:{width:`${100/n.length}%`},key:a},c.createElement("span",null,o))}))},T7e=c.forwardRef((e,t)=>{const{prefixCls:n,className:r,rootClassName:o,style:i,extra:a,headStyle:s={},bodyStyle:l={},title:u,loading:d,bordered:f,variant:m,size:h,type:p,cover:b,actions:v,tabList:y,children:x,activeTabKey:w,defaultActiveTabKey:C,tabBarExtraContent:S,hoverable:$,tabProps:E={},classNames:O,styles:P}=e,j=zz(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:I,direction:_,card:R}=c.useContext(kt),[N]=Yd("card",m,f),A=Oe=>{var V;(V=e.onTabChange)===null||V===void 0||V.call(e,Oe)},M=Oe=>{var V;return Q((V=R==null?void 0:R.classNames)===null||V===void 0?void 0:V[Oe],O==null?void 0:O[Oe])},T=Oe=>{var V;return Object.assign(Object.assign({},(V=R==null?void 0:R.styles)===null||V===void 0?void 0:V[Oe]),P==null?void 0:P[Oe])},k=c.useMemo(()=>{let Oe=!1;return c.Children.forEach(x,V=>{(V==null?void 0:V.type)===Mee&&(Oe=!0)}),Oe},[x]),D=I("card",n),[L,B,H]=N7e(D),F=c.createElement(ka,{loading:!0,active:!0,paragraph:{rows:4},title:!1},x),W=w!==void 0,q=Object.assign(Object.assign({},E),{[W?"activeKey":"defaultActiveKey"]:W?w:C,tabBarExtraContent:S});let G;const te=go(h),ee=!te||te==="default"?"large":te,z=y?c.createElement(tf,Object.assign({size:ee},q,{className:`${D}-head-tabs`,onChange:A,items:y.map(Oe=>{var{tab:V}=Oe,J=zz(Oe,["tab"]);return Object.assign({label:V},J)})})):null;if(u||a||z){const Oe=Q(`${D}-head`,M("header")),V=Q(`${D}-head-title`,M("title")),J=Q(`${D}-extra`,M("extra")),oe=Object.assign(Object.assign({},s),T("header"));G=c.createElement("div",{className:Oe,style:oe},c.createElement("div",{className:`${D}-head-wrapper`},u&&c.createElement("div",{className:V,style:T("title")},u),a&&c.createElement("div",{className:J,style:T("extra")},a)),z)}const ne=Q(`${D}-cover`,M("cover")),X=b?c.createElement("div",{className:ne,style:T("cover")},b):null,U=Q(`${D}-body`,M("body")),le=Object.assign(Object.assign({},l),T("body")),se=c.createElement("div",{className:U,style:le},d?F:x),ae=Q(`${D}-actions`,M("actions")),re=v!=null&&v.length?c.createElement(R7e,{actionClasses:ae,actionStyle:T("actions"),actions:v}):null,fe=Xn(j,["onTabChange"]),ye=Q(D,R==null?void 0:R.className,{[`${D}-loading`]:d,[`${D}-bordered`]:N!=="borderless",[`${D}-hoverable`]:$,[`${D}-contain-grid`]:k,[`${D}-contain-tabs`]:y==null?void 0:y.length,[`${D}-${te}`]:te,[`${D}-type-${p}`]:!!p,[`${D}-rtl`]:_==="rtl"},r,o,B,H),Pe=Object.assign(Object.assign({},R==null?void 0:R.style),i);return L(c.createElement("div",Object.assign({ref:t},fe,{className:ye,style:Pe}),G,X,se,re))});var M7e=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 k7e=e=>{const{prefixCls:t,className:n,avatar:r,title:o,description:i}=e,a=M7e(e,["prefixCls","className","avatar","title","description"]),{getPrefixCls:s}=c.useContext(kt),l=s("card",t),u=Q(`${l}-meta`,n),d=r?c.createElement("div",{className:`${l}-meta-avatar`},r):null,f=o?c.createElement("div",{className:`${l}-meta-title`},o):null,m=i?c.createElement("div",{className:`${l}-meta-description`},i):null,h=f||m?c.createElement("div",{className:`${l}-meta-detail`},f,m):null;return c.createElement("div",Object.assign({},a,{className:u}),d,h)},Gt=T7e;Gt.Grid=Mee;Gt.Meta=k7e;function A7e(e,t,n){var r=n||{},o=r.noTrailing,i=o===void 0?!1:o,a=r.noLeading,s=a===void 0?!1:a,l=r.debounceMode,u=l===void 0?void 0:l,d,f=!1,m=0;function h(){d&&clearTimeout(d)}function p(v){var y=v||{},x=y.upcomingOnly,w=x===void 0?!1:x;h(),f=!w}function b(){for(var v=arguments.length,y=new Array(v),x=0;x<v;x++)y[x]=arguments[x];var w=this,C=Date.now()-m;if(f)return;function S(){m=Date.now(),t.apply(w,y)}function $(){d=void 0}!s&&u&&!d&&S(),h(),u===void 0&&C>e?s?(m=Date.now(),i||(d=setTimeout(u?$:S,e))):S():i!==!0&&(d=setTimeout(u?$:S,u===void 0?e-C:e))}return b.cancel=p,b}function D7e(e,t,n){var r={},o=r.atBegin,i=o===void 0?!1:o;return A7e(e,t,{debounceMode:i!==!1})}function Gi(e,t){return e[t]}var L7e=["children"];function kee(e,t){return"".concat(e,"-").concat(t)}function z7e(e){return e&&e.type&&e.type.isTreeNode}function c0(e,t){return e??t}function qm(e){var t=e||{},n=t.title,r=t._title,o=t.key,i=t.children,a=n||"title";return{title:a,_title:r||[a],key:o||"key",children:i||"children"}}function Aee(e){function t(n){var r=ii(n);return r.map(function(o){if(!z7e(o))return ir(!o,"Tree/TreeNode can only accept TreeNode as children."),null;var i=o.key,a=o.props,s=a.children,l=Ht(a,L7e),u=Y({key:i},l),d=t(s);return d.length&&(u.children=d),u}).filter(function(o){return o})}return t(e)}function E2(e,t,n){var r=qm(n),o=r._title,i=r.key,a=r.children,s=new Set(t===!0?[]:t),l=[];function u(d){var f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return d.map(function(m,h){for(var p=kee(f?f.pos:"0",h),b=c0(m[i],p),v,y=0;y<o.length;y+=1){var x=o[y];if(m[x]!==void 0){v=m[x];break}}var w=Object.assign(Xn(m,[].concat(Ne(o),[i,a])),{title:v,key:b,parent:f,pos:p,children:null,data:m,isStart:[].concat(Ne(f?f.isStart:[]),[h===0]),isEnd:[].concat(Ne(f?f.isEnd:[]),[h===d.length-1])});return l.push(w),t===!0||s.has(b)?w.children=u(m[a]||[],w):w.children=[],w})}return u(e),l}function F7e(e,t,n){var r={};_t(n)==="object"?r=n:r={externalGetKey:n},r=r||{};var o=r,i=o.childrenPropName,a=o.externalGetKey,s=o.fieldNames,l=qm(s),u=l.key,d=l.children,f=i||d,m;a?typeof a=="string"?m=function(b){return b[a]}:typeof a=="function"&&(m=function(b){return a(b)}):m=function(b,v){return c0(b[u],v)};function h(p,b,v,y){var x=p?p[f]:e,w=p?kee(v.pos,b):"0",C=p?[].concat(Ne(y),[p]):[];if(p){var S=m(p,w),$={node:p,index:b,pos:w,key:S,parentPos:v.node?v.pos:null,level:v.level+1,nodes:C};t($)}x&&x.forEach(function(E,O){h(E,O,{node:p,pos:w,level:v?v.level+1:-1},C)})}h(null)}function i3(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},n=t.initWrapper,r=t.processEntity,o=t.onProcessFinished,i=t.externalGetKey,a=t.childrenPropName,s=t.fieldNames,l=arguments.length>2?arguments[2]:void 0,u=i||l,d={},f={},m={posEntities:d,keyEntities:f};return n&&(m=n(m)||m),F7e(e,function(h){var p=h.node,b=h.index,v=h.pos,y=h.key,x=h.parentPos,w=h.level,C=h.nodes,S={node:p,nodes:C,index:b,key:y,pos:v,level:w},$=c0(y,v);d[v]=S,f[$]=S,S.parent=d[x],S.parent&&(S.parent.children=S.parent.children||[],S.parent.children.push(S)),r&&r(S,m)},{externalGetKey:u,childrenPropName:a,fieldNames:s}),o&&o(m),m}function Up(e,t){var n=t.expandedKeys,r=t.selectedKeys,o=t.loadedKeys,i=t.loadingKeys,a=t.checkedKeys,s=t.halfCheckedKeys,l=t.dragOverNodeKey,u=t.dropPosition,d=t.keyEntities,f=Gi(d,e),m={eventKey:e,expanded:n.indexOf(e)!==-1,selected:r.indexOf(e)!==-1,loaded:o.indexOf(e)!==-1,loading:i.indexOf(e)!==-1,checked:a.indexOf(e)!==-1,halfChecked:s.indexOf(e)!==-1,pos:String(f?f.pos:""),dragOver:l===e&&u===0,dragOverGapTop:l===e&&u===-1,dragOverGapBottom:l===e&&u===1};return m}function io(e){var t=e.data,n=e.expanded,r=e.selected,o=e.checked,i=e.loaded,a=e.loading,s=e.halfChecked,l=e.dragOver,u=e.dragOverGapTop,d=e.dragOverGapBottom,f=e.pos,m=e.active,h=e.eventKey,p=Y(Y({},t),{},{expanded:n,selected:r,checked:o,loaded:i,loading:a,halfChecked:s,dragOver:l,dragOverGapTop:u,dragOverGapBottom:d,pos:f,active:m,key:h});return"props"in p||Object.defineProperty(p,"props",{get:function(){return ir(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),e}}),p}function Dee(e,t){var n=new Set;return e.forEach(function(r){t.has(r)||n.add(r)}),n}function B7e(e){var t=e||{},n=t.disabled,r=t.disableCheckbox,o=t.checkable;return!!(n||r)||o===!1}function H7e(e,t,n,r){for(var o=new Set(e),i=new Set,a=0;a<=n;a+=1){var s=t.get(a)||new Set;s.forEach(function(f){var m=f.key,h=f.node,p=f.children,b=p===void 0?[]:p;o.has(m)&&!r(h)&&b.filter(function(v){return!r(v.node)}).forEach(function(v){o.add(v.key)})})}for(var l=new Set,u=n;u>=0;u-=1){var d=t.get(u)||new Set;d.forEach(function(f){var m=f.parent,h=f.node;if(!(r(h)||!f.parent||l.has(f.parent.key))){if(r(f.parent.node)){l.add(m.key);return}var p=!0,b=!1;(m.children||[]).filter(function(v){return!r(v.node)}).forEach(function(v){var y=v.key,x=o.has(y);p&&!x&&(p=!1),!b&&(x||i.has(y))&&(b=!0)}),p&&o.add(m.key),b&&i.add(m.key),l.add(m.key)}})}return{checkedKeys:Array.from(o),halfCheckedKeys:Array.from(Dee(i,o))}}function V7e(e,t,n,r,o){for(var i=new Set(e),a=new Set(t),s=0;s<=r;s+=1){var l=n.get(s)||new Set;l.forEach(function(m){var h=m.key,p=m.node,b=m.children,v=b===void 0?[]:b;!i.has(h)&&!a.has(h)&&!o(p)&&v.filter(function(y){return!o(y.node)}).forEach(function(y){i.delete(y.key)})})}a=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 h=m.parent,p=m.node;if(!(o(p)||!m.parent||u.has(m.parent.key))){if(o(m.parent.node)){u.add(h.key);return}var b=!0,v=!1;(h.children||[]).filter(function(y){return!o(y.node)}).forEach(function(y){var x=y.key,w=i.has(x);b&&!w&&(b=!1),!v&&(w||a.has(x))&&(v=!0)}),b||i.delete(h.key),v&&a.add(h.key),u.add(h.key)}})}return{checkedKeys:Array.from(i),halfCheckedKeys:Array.from(Dee(a,i))}}function dm(e,t,n,r){var o=[],i;r?i=r:i=B7e;var a=new Set(e.filter(function(d){var f=!!Gi(n,d);return f||o.push(d),f})),s=new Map,l=0;Object.keys(n).forEach(function(d){var f=n[d],m=f.level,h=s.get(m);h||(h=new Set,s.set(m,h)),h.add(f),l=Math.max(l,m)}),ir(!o.length,"Tree missing follow keys: ".concat(o.slice(0,100).map(function(d){return"'".concat(d,"'")}).join(", ")));var u;return t===!0?u=H7e(a,s,l,i):u=V7e(a,t.halfCheckedKeys,s,l,i),u}const W7e=e=>{const{checkboxCls:t}=e,n=`${t}-wrapper`;return[{[`${t}-group`]:Object.assign(Object.assign({},xn(e)),{display:"inline-flex",flexWrap:"wrap",columnGap:e.marginXS,[`> ${e.antCls}-row`]:{flex:1}}),[n]:Object.assign(Object.assign({},xn(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({},xn(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`]:pl(e)},[`${t}-inner`]:{boxSizing:"border-box",display:"block",width:e.checkboxSize,height:e.checkboxSize,direction:"ltr",backgroundColor:e.colorBgContainer,border:`${Z(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:`${Z(e.lineWidthBold)} solid ${e.colorWhite}`,borderTop:0,borderInlineStart:0,transform:"rotate(45deg) scale(0) translate(-50%,-50%)",opacity:0,content:'""',transition:`all ${e.motionDurationFast} ${e.motionEaseInBack}, opacity ${e.motionDurationFast}`}},"& + span":{paddingInlineStart:e.paddingXS,paddingInlineEnd:e.paddingXS}})},{[`
        ${n}:not(${n}-disabled),
        ${t}:not(${t}-disabled)
      `]:{[`&:hover ${t}-inner`]:{borderColor:e.colorPrimary}},[`${n}:not(${n}-disabled)`]:{[`&:hover ${t}-checked:not(${t}-disabled) ${t}-inner`]:{backgroundColor:e.colorPrimaryHover,borderColor:"transparent"},[`&:hover ${t}-checked:not(${t}-disabled):after`]:{borderColor:e.colorPrimaryHover}}},{[`${t}-checked`]:{[`${t}-inner`]:{backgroundColor:e.colorPrimary,borderColor:e.colorPrimary,"&:after":{opacity:1,transform:"rotate(45deg) scale(1) translate(-50%,-50%)",transition:`all ${e.motionDurationMid} ${e.motionEaseOutBack} ${e.motionDurationFast}`}}},[`
        ${n}-checked:not(${n}-disabled),
        ${t}-checked:not(${t}-disabled)
      `]:{[`&:hover ${t}-inner`]:{backgroundColor:e.colorPrimaryHover,borderColor:"transparent"}}},{[t]:{"&-indeterminate":{"&":{[`${t}-inner`]:{backgroundColor:`${e.colorBgContainer}`,borderColor:`${e.colorBorder}`,"&:after":{top:"50%",insetInlineStart:"50%",width:e.calc(e.fontSizeLG).div(2).equal(),height:e.calc(e.fontSizeLG).div(2).equal(),backgroundColor:e.colorPrimary,border:0,transform:"translate(-50%, -50%) scale(1)",opacity:1,content:'""'}},[`&:hover ${t}-inner`]:{backgroundColor:`${e.colorBgContainer}`,borderColor:`${e.colorPrimary}`}}}}},{[`${n}-disabled`]:{cursor:"not-allowed"},[`${t}-disabled`]:{[`&, ${t}-input`]:{cursor:"not-allowed",pointerEvents:"none"},[`${t}-inner`]:{background:e.colorBgContainerDisabled,borderColor:e.colorBorder,"&:after":{borderColor:e.colorTextDisabled}},"&:after":{display:"none"},"& + span":{color:e.colorTextDisabled},[`&${t}-indeterminate ${t}-inner::after`]:{background:e.colorTextDisabled}}}]};function Lee(e,t){const n=cn(t,{checkboxCls:`.${e}`,checkboxSize:t.controlInteractiveSize});return W7e(n)}const zee=vn("Checkbox",(e,{prefixCls:t})=>[Lee(t,e)]),Fee=ce.createContext(null);var U7e=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 K7e=(e,t)=>{var n;const{prefixCls:r,className:o,rootClassName:i,children:a,indeterminate:s=!1,style:l,onMouseEnter:u,onMouseLeave:d,skipGroup:f=!1,disabled:m}=e,h=U7e(e,["prefixCls","className","rootClassName","children","indeterminate","style","onMouseEnter","onMouseLeave","skipGroup","disabled"]),{getPrefixCls:p,direction:b,checkbox:v}=c.useContext(kt),y=c.useContext(Fee),{isFormItemInput:x}=c.useContext(Oo),w=c.useContext(ai),C=(n=(y==null?void 0:y.disabled)||m)!==null&&n!==void 0?n:w,S=c.useRef(h.value),$=c.useRef(null),E=po(t,$);c.useEffect(()=>{y==null||y.registerValue(h.value)},[]),c.useEffect(()=>{if(!f)return h.value!==S.current&&(y==null||y.cancelValue(S.current),y==null||y.registerValue(h.value),S.current=h.value),()=>y==null?void 0:y.cancelValue(h.value)},[h.value]),c.useEffect(()=>{var k;!((k=$.current)===null||k===void 0)&&k.input&&($.current.input.indeterminate=s)},[s]);const O=p("checkbox",r),P=Hr(O),[j,I,_]=zee(O,P),R=Object.assign({},h);y&&!f&&(R.onChange=(...k)=>{h.onChange&&h.onChange.apply(h,k),y.toggleOption&&y.toggleOption({label:a,value:h.value})},R.name=y.name,R.checked=y.value.includes(h.value));const N=Q(`${O}-wrapper`,{[`${O}-rtl`]:b==="rtl",[`${O}-wrapper-checked`]:R.checked,[`${O}-wrapper-disabled`]:C,[`${O}-wrapper-in-form-item`]:x},v==null?void 0:v.className,o,i,_,P,I),A=Q({[`${O}-indeterminate`]:s},xS,I),[M,T]=pee(R.onClick);return j(c.createElement(Jv,{component:"Checkbox",disabled:C},c.createElement("label",{className:N,style:Object.assign(Object.assign({},v==null?void 0:v.style),l),onMouseEnter:u,onMouseLeave:d,onClick:M},c.createElement(hee,Object.assign({},R,{onClick:T,prefixCls:O,className:A,disabled:C,ref:E})),a!=null&&c.createElement("span",{className:`${O}-label`},a))))},Bee=c.forwardRef(K7e);var q7e=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 G7e=c.forwardRef((e,t)=>{const{defaultValue:n,children:r,options:o=[],prefixCls:i,className:a,rootClassName:s,style:l,onChange:u}=e,d=q7e(e,["defaultValue","children","options","prefixCls","className","rootClassName","style","onChange"]),{getPrefixCls:f,direction:m}=c.useContext(kt),[h,p]=c.useState(d.value||n||[]),[b,v]=c.useState([]);c.useEffect(()=>{"value"in d&&p(d.value||[])},[d.value]);const y=c.useMemo(()=>o.map(A=>typeof A=="string"||typeof A=="number"?{label:A,value:A}:A),[o]),x=A=>{v(M=>M.filter(T=>T!==A))},w=A=>{v(M=>[].concat(Ne(M),[A]))},C=A=>{const M=h.indexOf(A.value),T=Ne(h);M===-1?T.push(A.value):T.splice(M,1),"value"in d||p(T),u==null||u(T.filter(k=>b.includes(k)).sort((k,D)=>{const L=y.findIndex(H=>H.value===k),B=y.findIndex(H=>H.value===D);return L-B}))},S=f("checkbox",i),$=`${S}-group`,E=Hr(S),[O,P,j]=zee(S,E),I=Xn(d,["value","disabled"]),_=o.length?y.map(A=>c.createElement(Bee,{prefixCls:S,key:A.value.toString(),disabled:"disabled"in A?A.disabled:d.disabled,value:A.value,checked:h.includes(A.value),onChange:A.onChange,className:Q(`${$}-item`,A.className),style:A.style,title:A.title,id:A.id,required:A.required},A.label)):r,R=c.useMemo(()=>({toggleOption:C,value:h,disabled:d.disabled,name:d.name,registerValue:w,cancelValue:x}),[C,h,d.disabled,d.name,w,x]),N=Q($,{[`${$}-rtl`]:m==="rtl"},a,s,j,E,P);return O(c.createElement("div",Object.assign({className:N,style:l},I,{ref:t}),c.createElement(Fee.Provider,{value:R},_)))}),tu=Bee;tu.Group=G7e;tu.__ANT_CHECKBOX=!0;const Hee=c.createContext({});var X7e=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 Fz(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 Y7e=["xs","sm","md","lg","xl","xxl"],Mr=c.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r}=c.useContext(kt),{gutter:o,wrap:i}=c.useContext(Hee),{prefixCls:a,span:s,order:l,offset:u,push:d,pull:f,className:m,children:h,flex:p,style:b}=e,v=X7e(e,["prefixCls","span","order","offset","push","pull","className","children","flex","style"]),y=n("col",a),[x,w,C]=rAe(y),S={};let $={};Y7e.forEach(P=>{let j={};const I=e[P];typeof I=="number"?j.span=I:typeof I=="object"&&(j=I||{}),delete v[P],$=Object.assign(Object.assign({},$),{[`${y}-${P}-${j.span}`]:j.span!==void 0,[`${y}-${P}-order-${j.order}`]:j.order||j.order===0,[`${y}-${P}-offset-${j.offset}`]:j.offset||j.offset===0,[`${y}-${P}-push-${j.push}`]:j.push||j.push===0,[`${y}-${P}-pull-${j.pull}`]:j.pull||j.pull===0,[`${y}-rtl`]:r==="rtl"}),j.flex&&($[`${y}-${P}-flex`]=!0,S[`--${y}-${P}-flex`]=Fz(j.flex))});const E=Q(y,{[`${y}-${s}`]:s!==void 0,[`${y}-order-${l}`]:l,[`${y}-offset-${u}`]:u,[`${y}-push-${d}`]:d,[`${y}-pull-${f}`]:f},m,$,w,C),O={};if(o!=null&&o[0]){const P=typeof o[0]=="number"?`${o[0]/2}px`:`calc(${o[0]} / 2)`;O.paddingLeft=P,O.paddingRight=P}return p&&(O.flex=Fz(p),i===!1&&!O.minWidth&&(O.minWidth=0)),x(c.createElement("div",Object.assign({},v,{style:Object.assign(Object.assign(Object.assign({},O),b),S),className:E,ref:t}),h))});function Z7e(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((i,a)=>{if(typeof i=="object"&&i!==null)for(let s=0;s<eu.length;s++){const l=eu[s];if(o[l]&&i[l]!==void 0){n[a]=i[l];break}}else n[a]=i}),n}var J7e=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 Bz(e,t){const[n,r]=c.useState(typeof e=="string"?e:""),o=()=>{if(typeof e=="string"&&r(e),typeof e=="object")for(let i=0;i<eu.length;i++){const a=eu[i];if(!t||!t[a])continue;const s=e[a];if(s!==void 0){r(s);return}}};return c.useEffect(()=>{o()},[JSON.stringify(e),t]),n}const ts=c.forwardRef((e,t)=>{const{prefixCls:n,justify:r,align:o,className:i,style:a,children:s,gutter:l=0,wrap:u}=e,d=J7e(e,["prefixCls","justify","align","className","style","children","gutter","wrap"]),{getPrefixCls:f,direction:m}=c.useContext(kt),h=Ch(!0,null),p=Bz(o,h),b=Bz(r,h),v=f("row",n),[y,x,w]=nAe(v),C=Z7e(l,h),S=Q(v,{[`${v}-no-wrap`]:u===!1,[`${v}-${b}`]:b,[`${v}-${p}`]:p,[`${v}-rtl`]:m==="rtl"},i,x,w),$={};if(C!=null&&C[0]){const j=typeof C[0]=="number"?`${C[0]/-2}px`:`calc(${C[0]} / -2)`;$.marginLeft=j,$.marginRight=j}const[E,O]=C;$.rowGap=O;const P=c.useMemo(()=>({gutter:[E,O],wrap:u}),[E,O,u]);return y(c.createElement(Hee.Provider,{value:P},c.createElement("div",Object.assign({},d,{className:S,style:Object.assign(Object.assign({},$),a),ref:t}),s)))});function Q7e(){return Ch()}const eBe={useBreakpoint:Q7e},tBe=e=>{const{componentCls:t}=e;return{[t]:{"&-horizontal":{[`&${t}`]:{"&-sm":{marginBlock:e.marginXS},"&-md":{marginBlock:e.margin}}}}}},nBe=e=>{const{componentCls:t,sizePaddingEdgeHorizontal:n,colorSplit:r,lineWidth:o,textPaddingInline:i,orientationMargin:a,verticalMarginInline:s}=e;return{[t]:Object.assign(Object.assign({},xn(e)),{borderBlockStart:`${Z(o)} solid ${r}`,"&-vertical":{position:"relative",top:"-0.06em",display:"inline-block",height:"0.9em",marginInline:s,marginBlock:0,verticalAlign:"middle",borderTop:0,borderInlineStart:`${Z(o)} solid ${r}`},"&-horizontal":{display:"flex",clear:"both",width:"100%",minWidth:"100%",margin:`${Z(e.marginLG)} 0`},[`&-horizontal${t}-with-text`]:{display:"flex",alignItems:"center",margin:`${Z(e.dividerHorizontalWithTextGutterMargin)} 0`,color:e.colorTextHeading,fontWeight:500,fontSize:e.fontSizeLG,whiteSpace:"nowrap",textAlign:"center",borderBlockStart:`0 ${r}`,"&::before, &::after":{position:"relative",width:"50%",borderBlockStart:`${Z(o)} solid transparent`,borderBlockStartColor:"inherit",borderBlockEnd:0,transform:"translateY(50%)",content:"''"}},[`&-horizontal${t}-with-text-start`]:{"&::before":{width:`calc(${a} * 100%)`},"&::after":{width:`calc(100% - ${a} * 100%)`}},[`&-horizontal${t}-with-text-end`]:{"&::before":{width:`calc(100% - ${a} * 100%)`},"&::after":{width:`calc(${a} * 100%)`}},[`${t}-inner-text`]:{display:"inline-block",paddingBlock:0,paddingInline:i},"&-dashed":{background:"none",borderColor:r,borderStyle:"dashed",borderWidth:`${Z(o)} 0 0`},[`&-horizontal${t}-with-text${t}-dashed`]:{"&::before, &::after":{borderStyle:"dashed none none"}},[`&-vertical${t}-dashed`]:{borderInlineStartWidth:o,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},"&-dotted":{background:"none",borderColor:r,borderStyle:"dotted",borderWidth:`${Z(o)} 0 0`},[`&-horizontal${t}-with-text${t}-dotted`]:{"&::before, &::after":{borderStyle:"dotted none none"}},[`&-vertical${t}-dotted`]:{borderInlineStartWidth:o,borderInlineEnd:0,borderBlockStart:0,borderBlockEnd:0},[`&-plain${t}-with-text`]:{color:e.colorText,fontWeight:"normal",fontSize:e.fontSize},[`&-horizontal${t}-with-text-start${t}-no-default-orientation-margin-start`]:{"&::before":{width:0},"&::after":{width:"100%"},[`${t}-inner-text`]:{paddingInlineStart:n}},[`&-horizontal${t}-with-text-end${t}-no-default-orientation-margin-end`]:{"&::before":{width:"100%"},"&::after":{width:0},[`${t}-inner-text`]:{paddingInlineEnd:n}}})}},rBe=e=>({textPaddingInline:"1em",orientationMargin:.05,verticalMarginInline:e.marginXS}),oBe=vn("Divider",e=>{const t=cn(e,{dividerHorizontalWithTextGutterMargin:e.margin,sizePaddingEdgeHorizontal:0});return[nBe(t),tBe(t)]},rBe,{unitless:{orientationMargin:!0}});var iBe=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 aBe={small:"sm",middle:"md"},Ol=e=>{const{getPrefixCls:t,direction:n,className:r,style:o}=Br("divider"),{prefixCls:i,type:a="horizontal",orientation:s="center",orientationMargin:l,className:u,rootClassName:d,children:f,dashed:m,variant:h="solid",plain:p,style:b,size:v}=e,y=iBe(e,["prefixCls","type","orientation","orientationMargin","className","rootClassName","children","dashed","variant","plain","style","size"]),x=t("divider",i),[w,C,S]=oBe(x),$=go(v),E=aBe[$],O=!!f,P=c.useMemo(()=>s==="left"?n==="rtl"?"end":"start":s==="right"?n==="rtl"?"start":"end":s,[n,s]),j=P==="start"&&l!=null,I=P==="end"&&l!=null,_=Q(x,r,C,S,`${x}-${a}`,{[`${x}-with-text`]:O,[`${x}-with-text-${P}`]:O,[`${x}-dashed`]:!!m,[`${x}-${h}`]:h!=="solid",[`${x}-plain`]:!!p,[`${x}-rtl`]:n==="rtl",[`${x}-no-default-orientation-margin-start`]:j,[`${x}-no-default-orientation-margin-end`]:I,[`${x}-${E}`]:!!E},u,d),R=c.useMemo(()=>typeof l=="number"?l:/^\d+$/.test(l)?Number(l):l,[l]),N={marginInlineStart:j?R:void 0,marginInlineEnd:I?R:void 0};return w(c.createElement("div",Object.assign({className:_,style:Object.assign(Object.assign({},o),b)},y,{role:"separator"}),f&&a!=="vertical"&&c.createElement("span",{className:`${x}-inner-text`,style:N},f)))};var sBe={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"},lBe=function(t,n){return c.createElement(yn,Ee({},t,{ref:n,icon:sBe}))},cBe=c.forwardRef(lBe);function Mj(){return typeof BigInt=="function"}function Vee(e){return!e&&e!==0&&!Number.isNaN(e)||!String(e).trim()}function ad(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("."),i=o[0]||"0",a=o[1]||"0";i==="0"&&a==="0"&&(n=!1);var s=n?"-":"";return{negative:n,negativeStr:s,trimStr:r,integerStr:i,decimalStr:a,fullStr:"".concat(s).concat(r)}}function a3(e){var t=String(e);return!Number.isNaN(Number(t))&&t.includes("e")}function Gu(e){var t=String(e);if(a3(e)){var n=Number(t.slice(t.indexOf("e-")+2)),r=t.match(/\.(\d+)/);return r!=null&&r[1]&&(n+=r[1].length),n}return t.includes(".")&&s3(t)?t.length-t.indexOf(".")-1:0}function rC(e){var t=String(e);if(a3(e)){if(e>Number.MAX_SAFE_INTEGER)return String(Mj()?BigInt(e).toString():Number.MAX_SAFE_INTEGER);if(e<Number.MIN_SAFE_INTEGER)return String(Mj()?BigInt(e).toString():Number.MIN_SAFE_INTEGER);t=e.toFixed(Gu(t))}return ad(t).fullStr}function s3(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 uBe=function(){function e(t){if(lr(this,e),K(this,"origin",""),K(this,"negative",void 0),K(this,"integer",void 0),K(this,"decimal",void 0),K(this,"decimalLen",void 0),K(this,"empty",void 0),K(this,"nan",void 0),Vee(t)){this.empty=!0;return}if(this.origin=String(t),t==="-"||Number.isNaN(t)){this.nan=!0;return}var n=t;if(a3(n)&&(n=Number(n)),n=typeof n=="string"?n:rC(n),s3(n)){var r=ad(n);this.negative=r.negative;var o=r.trimStr.split(".");this.integer=BigInt(o[0]);var i=o[1]||"0";this.decimal=BigInt(i),this.decimalLen=i.length}else this.nan=!0}return cr(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 i=Math.max(this.getDecimalStr().length,n.getDecimalStr().length),a=this.alignDecimal(i),s=n.alignDecimal(i),l=r(a,s).toString(),u=o(i),d=ad(l),f=d.negativeStr,m=d.trimStr,h="".concat(f).concat(m.padStart(u+1,"0"));return new e("".concat(h.slice(0,-u),".").concat(h.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,i){return o+i},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,i){return o*i},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()?"":ad("".concat(this.getMark()).concat(this.getIntegerStr(),".").concat(this.getDecimalStr())).fullStr:this.origin}}]),e}(),dBe=function(){function e(t){if(lr(this,e),K(this,"origin",""),K(this,"number",void 0),K(this,"empty",void 0),Vee(t)){this.empty=!0;return}this.origin=String(t),this.number=Number(t)}return cr(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 i=Math.max(Gu(this.number),Gu(r));return new e(o.toFixed(i))}},{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 i=Math.max(Gu(this.number),Gu(r));return new e(o.toFixed(i))}},{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()?"":rC(this.number):this.origin}}]),e}();function xs(e){return Mj()?new uBe(e):new dBe(e)}function vb(e,t,n){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(e==="")return"";var o=ad(e),i=o.negativeStr,a=o.integerStr,s=o.decimalStr,l="".concat(t).concat(s),u="".concat(i).concat(a);if(n>=0){var d=Number(s[n]);if(d>=5&&!r){var f=xs(e).add("".concat(i,"0.").concat("0".repeat(n)).concat(10-d));return vb(f.toString(),t,n,r)}return n===0?u:"".concat(u).concat(t).concat(s.padEnd(n,"0").slice(0,n))}return l===".0"?u:"".concat(u).concat(l)}function fBe(e){return!!(e.addonBefore||e.addonAfter)}function mBe(e){return!!(e.prefix||e.suffix||e.allowClear)}function Hz(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 u1(e,t,n,r){if(n){var o=t;if(t.type==="click"){o=Hz(t,e,""),n(o);return}if(e.type!=="file"&&r!==void 0){o=Hz(t,e,r),n(o);return}n(o)}}function l3(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 c3=ce.forwardRef(function(e,t){var n,r,o,i=e.inputElement,a=e.children,s=e.prefixCls,l=e.prefix,u=e.suffix,d=e.addonBefore,f=e.addonAfter,m=e.className,h=e.style,p=e.disabled,b=e.readOnly,v=e.focused,y=e.triggerFocus,x=e.allowClear,w=e.value,C=e.handleReset,S=e.hidden,$=e.classes,E=e.classNames,O=e.dataAttrs,P=e.styles,j=e.components,I=e.onClear,_=a??i,R=(j==null?void 0:j.affixWrapper)||"span",N=(j==null?void 0:j.groupWrapper)||"span",A=(j==null?void 0:j.wrapper)||"span",M=(j==null?void 0:j.groupAddon)||"span",T=c.useRef(null),k=function(ae){var re;(re=T.current)!==null&&re!==void 0&&re.contains(ae.target)&&(y==null||y())},D=mBe(e),L=c.cloneElement(_,{value:w,className:Q((n=_.props)===null||n===void 0?void 0:n.className,!D&&(E==null?void 0:E.variant))||null}),B=c.useRef(null);if(ce.useImperativeHandle(t,function(){return{nativeElement:B.current||T.current}}),D){var H=null;if(x){var F=!p&&!b&&w,W="".concat(s,"-clear-icon"),q=_t(x)==="object"&&x!==null&&x!==void 0&&x.clearIcon?x.clearIcon:"✖";H=ce.createElement("button",{type:"button",tabIndex:-1,onClick:function(ae){C==null||C(ae),I==null||I()},onMouseDown:function(ae){return ae.preventDefault()},className:Q(W,K(K({},"".concat(W,"-hidden"),!F),"".concat(W,"-has-suffix"),!!u))},q)}var G="".concat(s,"-affix-wrapper"),te=Q(G,K(K(K(K(K({},"".concat(s,"-disabled"),p),"".concat(G,"-disabled"),p),"".concat(G,"-focused"),v),"".concat(G,"-readonly"),b),"".concat(G,"-input-with-clear-btn"),u&&x&&w),$==null?void 0:$.affixWrapper,E==null?void 0:E.affixWrapper,E==null?void 0:E.variant),ee=(u||x)&&ce.createElement("span",{className:Q("".concat(s,"-suffix"),E==null?void 0:E.suffix),style:P==null?void 0:P.suffix},H,u);L=ce.createElement(R,Ee({className:te,style:P==null?void 0:P.affixWrapper,onClick:k},O==null?void 0:O.affixWrapper,{ref:T}),l&&ce.createElement("span",{className:Q("".concat(s,"-prefix"),E==null?void 0:E.prefix),style:P==null?void 0:P.prefix},l),L,ee)}if(fBe(e)){var z="".concat(s,"-group"),ne="".concat(z,"-addon"),X="".concat(z,"-wrapper"),U=Q("".concat(s,"-wrapper"),z,$==null?void 0:$.wrapper,E==null?void 0:E.wrapper),le=Q(X,K({},"".concat(X,"-disabled"),p),$==null?void 0:$.group,E==null?void 0:E.groupWrapper);L=ce.createElement(N,{className:le,ref:B},ce.createElement(A,{className:U},d&&ce.createElement(M,{className:ne},d),L,f&&ce.createElement(M,{className:ne},f)))}return ce.cloneElement(L,{className:Q((r=L.props)===null||r===void 0?void 0:r.className,m)||null,style:Y(Y({},(o=L.props)===null||o===void 0?void 0:o.style),h),hidden:S})}),hBe=["show"];function Wee(e,t){return c.useMemo(function(){var n={};t&&(n.show=_t(t)==="object"&&t.formatter?t.formatter:!!t),n=Y(Y({},n),e);var r=n,o=r.show,i=Ht(r,hBe);return Y(Y({},i),{},{show:!!o,showFormatter:typeof o=="function"?o:void 0,strategy:i.strategy||function(a){return a.length}})},[e,t])}var pBe=["autoComplete","onChange","onFocus","onBlur","onPressEnter","onKeyDown","onKeyUp","prefixCls","disabled","htmlSize","className","maxLength","suffix","showCount","count","type","classes","classNames","styles","onCompositionStart","onCompositionEnd"],gBe=c.forwardRef(function(e,t){var n=e.autoComplete,r=e.onChange,o=e.onFocus,i=e.onBlur,a=e.onPressEnter,s=e.onKeyDown,l=e.onKeyUp,u=e.prefixCls,d=u===void 0?"rc-input":u,f=e.disabled,m=e.htmlSize,h=e.className,p=e.maxLength,b=e.suffix,v=e.showCount,y=e.count,x=e.type,w=x===void 0?"text":x,C=e.classes,S=e.classNames,$=e.styles,E=e.onCompositionStart,O=e.onCompositionEnd,P=Ht(e,pBe),j=c.useState(!1),I=ue(j,2),_=I[0],R=I[1],N=c.useRef(!1),A=c.useRef(!1),M=c.useRef(null),T=c.useRef(null),k=function(de){M.current&&l3(M.current,de)},D=kn(e.defaultValue,{value:e.value}),L=ue(D,2),B=L[0],H=L[1],F=B==null?"":String(B),W=c.useState(null),q=ue(W,2),G=q[0],te=q[1],ee=Wee(y,v),z=ee.max||p,ne=ee.strategy(F),X=!!z&&ne>z;c.useImperativeHandle(t,function(){var oe;return{focus:k,blur:function(){var be;(be=M.current)===null||be===void 0||be.blur()},setSelectionRange:function(be,ge,ie){var he;(he=M.current)===null||he===void 0||he.setSelectionRange(be,ge,ie)},select:function(){var be;(be=M.current)===null||be===void 0||be.select()},input:M.current,nativeElement:((oe=T.current)===null||oe===void 0?void 0:oe.nativeElement)||M.current}}),c.useEffect(function(){A.current&&(A.current=!1),R(function(oe){return oe&&f?!1:oe})},[f]);var U=function(de,be,ge){var ie=be;if(!N.current&&ee.exceedFormatter&&ee.max&&ee.strategy(be)>ee.max){if(ie=ee.exceedFormatter(be,{max:ee.max}),be!==ie){var he,xe;te([((he=M.current)===null||he===void 0?void 0:he.selectionStart)||0,((xe=M.current)===null||xe===void 0?void 0:xe.selectionEnd)||0])}}else if(ge.source==="compositionEnd")return;H(ie),M.current&&u1(M.current,de,r,ie)};c.useEffect(function(){if(G){var oe;(oe=M.current)===null||oe===void 0||oe.setSelectionRange.apply(oe,Ne(G))}},[G]);var le=function(de){U(de,de.target.value,{source:"change"})},se=function(de){N.current=!1,U(de,de.currentTarget.value,{source:"compositionEnd"}),O==null||O(de)},ae=function(de){a&&de.key==="Enter"&&!A.current&&(A.current=!0,a(de)),s==null||s(de)},re=function(de){de.key==="Enter"&&(A.current=!1),l==null||l(de)},fe=function(de){R(!0),o==null||o(de)},ye=function(de){A.current&&(A.current=!1),R(!1),i==null||i(de)},Pe=function(de){H(""),k(),M.current&&u1(M.current,de,r)},Oe=X&&"".concat(d,"-out-of-range"),V=function(){var de=Xn(e,["prefixCls","onPressEnter","addonBefore","addonAfter","prefix","suffix","allowClear","defaultValue","showCount","count","classes","htmlSize","styles","classNames","onClear"]);return ce.createElement("input",Ee({autoComplete:n},de,{onChange:le,onFocus:fe,onBlur:ye,onKeyDown:ae,onKeyUp:re,className:Q(d,K({},"".concat(d,"-disabled"),f),S==null?void 0:S.input),style:$==null?void 0:$.input,ref:M,size:m,type:w,onCompositionStart:function(ge){N.current=!0,E==null||E(ge)},onCompositionEnd:se}))},J=function(){var de=Number(z)>0;if(b||ee.show){var be=ee.showFormatter?ee.showFormatter({value:F,count:ne,maxLength:z}):"".concat(ne).concat(de?" / ".concat(z):"");return ce.createElement(ce.Fragment,null,ee.show&&ce.createElement("span",{className:Q("".concat(d,"-show-count-suffix"),K({},"".concat(d,"-show-count-has-suffix"),!!b),S==null?void 0:S.count),style:Y({},$==null?void 0:$.count)},be),b)}return null};return ce.createElement(c3,Ee({},P,{prefixCls:d,className:Q(h,Oe),handleReset:Pe,value:F,focused:_,triggerFocus:k,suffix:J(),disabled:f,classes:C,classNames:S,styles:$,ref:T}),V())});function vBe(e,t){return typeof Proxy<"u"&&e?new Proxy(e,{get:function(r,o){if(t[o])return t[o];var i=r[o];return typeof i=="function"?i.bind(r):i}}):e}function yBe(e,t){var n=c.useRef(null);function r(){try{var i=e.selectionStart,a=e.selectionEnd,s=e.value,l=s.substring(0,i),u=s.substring(a);n.current={start:i,end:a,value:s,beforeTxt:l,afterTxt:u}}catch{}}function o(){if(e&&n.current&&t)try{var i=e.value,a=n.current,s=a.beforeTxt,l=a.afterTxt,u=a.start,d=i.length;if(i.startsWith(s))d=s.length;else if(i.endsWith(l))d=i.length-n.current.afterTxt.length;else{var f=s[u-1],m=i.indexOf(f,u-1);m!==-1&&(d=m+1)}e.setSelectionRange(d,d)}catch(h){ir(!1,"Something warning of cursor restore. Please fire issue about this: ".concat(h.message))}}return[r,o]}var bBe=function(){var t=c.useState(!1),n=ue(t,2),r=n[0],o=n[1];return sn(function(){o(zS())},[]),r},xBe=200,wBe=600;function SBe(e){var t=e.prefixCls,n=e.upNode,r=e.downNode,o=e.upDisabled,i=e.downDisabled,a=e.onStep,s=c.useRef(),l=c.useRef([]),u=c.useRef();u.current=a;var d=function(){clearTimeout(s.current)},f=function(w,C){w.preventDefault(),d(),u.current(C);function S(){u.current(C),s.current=setTimeout(S,xBe)}s.current=setTimeout(S,wBe)};c.useEffect(function(){return function(){d(),l.current.forEach(function(x){return ln.cancel(x)})}},[]);var m=bBe();if(m)return null;var h="".concat(t,"-handler"),p=Q(h,"".concat(h,"-up"),K({},"".concat(h,"-up-disabled"),o)),b=Q(h,"".concat(h,"-down"),K({},"".concat(h,"-down-disabled"),i)),v=function(){return l.current.push(ln(d))},y={unselectable:"on",role:"button",onMouseUp:v,onMouseLeave:v};return c.createElement("div",{className:"".concat(h,"-wrap")},c.createElement("span",Ee({},y,{onMouseDown:function(w){f(w,!0)},"aria-label":"Increase Value","aria-disabled":o,className:p}),n||c.createElement("span",{unselectable:"on",className:"".concat(t,"-handler-up-inner")})),c.createElement("span",Ee({},y,{onMouseDown:function(w){f(w,!1)},"aria-label":"Decrease Value","aria-disabled":i,className:b}),r||c.createElement("span",{unselectable:"on",className:"".concat(t,"-handler-down-inner")})))}function Vz(e){var t=typeof e=="number"?rC(e):ad(e).fullStr,n=t.includes(".");return n?ad(t.replace(/(\d)\.(\d)/g,"$1$2.")).fullStr:e+"0"}const CBe=function(){var e=c.useRef(0),t=function(){ln.cancel(e.current)};return c.useEffect(function(){return t},[]),function(n){t(),e.current=ln(function(){n()})}};var $Be=["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"],EBe=["disabled","style","prefixCls","value","prefix","suffix","addonBefore","addonAfter","className","classNames"],Wz=function(t,n){return t||n.isEmpty()?n.toString():n.toNumber()},Uz=function(t){var n=xs(t);return n.isInvalidate()?null:n},OBe=c.forwardRef(function(e,t){var n=e.prefixCls,r=e.className,o=e.style,i=e.min,a=e.max,s=e.step,l=s===void 0?1:s,u=e.defaultValue,d=e.value,f=e.disabled,m=e.readOnly,h=e.upHandler,p=e.downHandler,b=e.keyboard,v=e.changeOnWheel,y=v===void 0?!1:v,x=e.controls,w=x===void 0?!0:x;e.classNames;var C=e.stringMode,S=e.parser,$=e.formatter,E=e.precision,O=e.decimalSeparator,P=e.onChange,j=e.onInput,I=e.onPressEnter,_=e.onStep,R=e.changeOnBlur,N=R===void 0?!0:R,A=e.domRef,M=Ht(e,$Be),T="".concat(n,"-input"),k=c.useRef(null),D=c.useState(!1),L=ue(D,2),B=L[0],H=L[1],F=c.useRef(!1),W=c.useRef(!1),q=c.useRef(!1),G=c.useState(function(){return xs(d??u)}),te=ue(G,2),ee=te[0],z=te[1];function ne(Me){d===void 0&&z(Me)}var X=c.useCallback(function(Me,We){if(!We)return E>=0?E:Math.max(Gu(Me),Gu(l))},[E,l]),U=c.useCallback(function(Me){var We=String(Me);if(S)return S(We);var Qe=We;return O&&(Qe=Qe.replace(O,".")),Qe.replace(/[^\w.-]+/g,"")},[S,O]),le=c.useRef(""),se=c.useCallback(function(Me,We){if($)return $(Me,{userTyping:We,input:String(le.current)});var Qe=typeof Me=="number"?rC(Me):Me;if(!We){var Ge=X(Qe,We);if(s3(Qe)&&(O||Ge>=0)){var tt=O||".";Qe=vb(Qe,tt,Ge)}}return Qe},[$,X,O]),ae=c.useState(function(){var Me=u??d;return ee.isInvalidate()&&["string","number"].includes(_t(Me))?Number.isNaN(Me)?"":Me:se(ee.toString(),!1)}),re=ue(ae,2),fe=re[0],ye=re[1];le.current=fe;function Pe(Me,We){ye(se(Me.isInvalidate()?Me.toString(!1):Me.toString(!We),We))}var Oe=c.useMemo(function(){return Uz(a)},[a,E]),V=c.useMemo(function(){return Uz(i)},[i,E]),J=c.useMemo(function(){return!Oe||!ee||ee.isInvalidate()?!1:Oe.lessEquals(ee)},[Oe,ee]),oe=c.useMemo(function(){return!V||!ee||ee.isInvalidate()?!1:ee.lessEquals(V)},[V,ee]),de=yBe(k.current,B),be=ue(de,2),ge=be[0],ie=be[1],he=function(We){return Oe&&!We.lessEquals(Oe)?Oe:V&&!V.lessEquals(We)?V:null},xe=function(We){return!he(We)},Re=function(We,Qe){var Ge=We,tt=xe(Ge)||Ge.isEmpty();if(!Ge.isEmpty()&&!Qe&&(Ge=he(Ge)||Ge,tt=!0),!m&&!f&&tt){var ke=Ge.toString(),xt=X(ke,Qe);return xt>=0&&(Ge=xs(vb(ke,".",xt)),xe(Ge)||(Ge=xs(vb(ke,".",xt,!0)))),Ge.equals(ee)||(ne(Ge),P==null||P(Ge.isEmpty()?null:Wz(C,Ge)),d===void 0&&Pe(Ge,Qe)),Ge}return ee},Ce=CBe(),pe=function Me(We){if(ge(),le.current=We,ye(We),!W.current){var Qe=U(We),Ge=xs(Qe);Ge.isNaN()||Re(Ge,!0)}j==null||j(We),Ce(function(){var tt=We;S||(tt=We.replace(/。/g,".")),tt!==We&&Me(tt)})},_e=function(){W.current=!0},we=function(){W.current=!1,pe(k.current.value)},$e=function(We){pe(We.target.value)},ve=function(We){var Qe;if(!(We&&J||!We&&oe)){F.current=!1;var Ge=xs(q.current?Vz(l):l);We||(Ge=Ge.negate());var tt=(ee||xs(0)).add(Ge.toString()),ke=Re(tt,!1);_==null||_(Wz(C,ke),{offset:q.current?Vz(l):l,type:We?"up":"down"}),(Qe=k.current)===null||Qe===void 0||Qe.focus()}},me=function(We){var Qe=xs(U(fe)),Ge;Qe.isNaN()?Ge=Re(ee,We):Ge=Re(Qe,We),d!==void 0?Pe(ee,!1):Ge.isNaN()||Pe(Ge,!1)},Se=function(){F.current=!0},De=function(We){var Qe=We.key,Ge=We.shiftKey;F.current=!0,q.current=Ge,Qe==="Enter"&&(W.current||(F.current=!1),me(!1),I==null||I(We)),b!==!1&&!W.current&&["Up","ArrowUp","Down","ArrowDown"].includes(Qe)&&(ve(Qe==="Up"||Qe==="ArrowUp"),We.preventDefault())},et=function(){F.current=!1,q.current=!1};c.useEffect(function(){if(y&&B){var Me=function(Ge){ve(Ge.deltaY<0),Ge.preventDefault()},We=k.current;if(We)return We.addEventListener("wheel",Me,{passive:!1}),function(){return We.removeEventListener("wheel",Me)}}});var rt=function(){N&&me(!1),H(!1),F.current=!1};return od(function(){ee.isInvalidate()||Pe(ee,!1)},[E,$]),od(function(){var Me=xs(d);z(Me);var We=xs(U(fe));(!Me.equals(We)||!F.current||$)&&Pe(Me,F.current)},[d]),od(function(){$&&ie()},[fe]),c.createElement("div",{ref:A,className:Q(n,r,K(K(K(K(K({},"".concat(n,"-focused"),B),"".concat(n,"-disabled"),f),"".concat(n,"-readonly"),m),"".concat(n,"-not-a-number"),ee.isNaN()),"".concat(n,"-out-of-range"),!ee.isInvalidate()&&!xe(ee))),style:o,onFocus:function(){H(!0)},onBlur:rt,onKeyDown:De,onKeyUp:et,onCompositionStart:_e,onCompositionEnd:we,onBeforeInput:Se},w&&c.createElement(SBe,{prefixCls:n,upNode:h,downNode:p,upDisabled:J,downDisabled:oe,onStep:ve}),c.createElement("div",{className:"".concat(T,"-wrap")},c.createElement("input",Ee({autoComplete:"off",role:"spinbutton","aria-valuemin":i,"aria-valuemax":a,"aria-valuenow":ee.isInvalidate()?null:ee.toString(),step:l},M,{ref:po(k,t),className:T,value:fe,onChange:$e,disabled:f,readOnly:m}))))}),PBe=c.forwardRef(function(e,t){var n=e.disabled,r=e.style,o=e.prefixCls,i=o===void 0?"rc-input-number":o,a=e.value,s=e.prefix,l=e.suffix,u=e.addonBefore,d=e.addonAfter,f=e.className,m=e.classNames,h=Ht(e,EBe),p=c.useRef(null),b=c.useRef(null),v=c.useRef(null),y=function(w){v.current&&l3(v.current,w)};return c.useImperativeHandle(t,function(){return vBe(v.current,{focus:y,nativeElement:p.current.nativeElement||b.current})}),c.createElement(c3,{className:f,triggerFocus:y,prefixCls:i,value:a,disabled:n,style:r,prefix:s,suffix:l,addonAfter:d,addonBefore:u,classNames:m,components:{affixWrapper:"div",groupWrapper:"div",wrapper:"div",groupAddon:"div"},ref:p},c.createElement(OBe,Ee({prefixCls:i,disabled:n,ref:v,domRef:b,className:m==null?void 0:m.input},h)))});const jBe=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({},ef(e)),{controlWidth:90,handleWidth:r,handleFontSize:e.fontSize/2,handleVisible:n,handleActiveBg:e.colorFillAlter,handleBg:e.colorBgContainer,filledHandleBg:new On(e.colorFillSecondary).onBackground(e.colorBgContainer).toHexString(),handleHoverColor:e.colorPrimary,handleBorderColor:e.colorBorder,handleOpacity:n===!0?1:0,handleVisibleWidth:n===!0?r:0})},Kz=({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}}}},IBe=e=>{const{componentCls:t,lineWidth:n,lineType:r,borderRadius:o,inputFontSizeSM:i,inputFontSizeLG:a,controlHeightLG:s,controlHeightSM:l,colorError:u,paddingInlineSM:d,paddingBlockSM:f,paddingBlockLG:m,paddingInlineLG:h,colorIcon:p,motionDurationMid:b,handleHoverColor:v,handleOpacity:y,paddingInline:x,paddingBlock:w,handleBg:C,handleActiveBg:S,colorTextDisabled:$,borderRadiusSM:E,borderRadiusLG:O,controlWidth:P,handleBorderColor:j,filledHandleBg:I,lineHeightLG:_,calc:R}=e;return[{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},xn(e)),l0(e)),{display:"inline-block",width:P,margin:0,padding:0,borderRadius:o}),JT(e,{[`${t}-handler-wrap`]:{background:C,[`${t}-handler-down`]:{borderBlockStart:`${Z(n)} ${r} ${j}`}}})),e3(e,{[`${t}-handler-wrap`]:{background:I,[`${t}-handler-down`]:{borderBlockStart:`${Z(n)} ${r} ${j}`}},"&:focus-within":{[`${t}-handler-wrap`]:{background:C}}})),t3(e,{[`${t}-handler-wrap`]:{background:C,[`${t}-handler-down`]:{borderBlockStart:`${Z(n)} ${r} ${j}`}}})),QT(e)),{"&-rtl":{direction:"rtl",[`${t}-input`]:{direction:"rtl"}},"&-lg":{padding:0,fontSize:a,lineHeight:_,borderRadius:O,[`input${t}-input`]:{height:R(s).sub(R(n).mul(2)).equal(),padding:`${Z(m)} ${Z(h)}`}},"&-sm":{padding:0,fontSize:i,borderRadius:E,[`input${t}-input`]:{height:R(l).sub(R(n).mul(2)).equal(),padding:`${Z(f)} ${Z(d)}`}},"&-out-of-range":{[`${t}-input-wrap`]:{input:{color:u}}},"&-group":Object.assign(Object.assign(Object.assign({},xn(e)),Eee(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:O,fontSize:e.fontSizeLG}},"&-sm":{[`${t}-group-addon`]:{borderRadius:E}}},xee(e)),See(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({},xn(e)),{width:"100%",padding:`${Z(w)} ${Z(x)}`,textAlign:"start",backgroundColor:"transparent",border:0,borderRadius:o,outline:0,transition:`all ${b} linear`,appearance:"textfield",fontSize:"inherit"}),n3(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:y,height:"100%",borderStartStartRadius:0,borderStartEndRadius:o,borderEndEndRadius:o,borderEndStartRadius:0,display:"flex",flexDirection:"column",alignItems:"stretch",transition:`all ${b}`,overflow:"hidden",[`${t}-handler`]:{display:"flex",alignItems:"center",justifyContent:"center",flex:"auto",height:"40%",[`
              ${t}-handler-up-inner,
              ${t}-handler-down-inner
            `]:{marginInlineEnd:0,fontSize:e.handleFontSize}}},[`${t}-handler`]:{height:"50%",overflow:"hidden",color:p,fontWeight:"bold",lineHeight:0,textAlign:"center",cursor:"pointer",borderInlineStart:`${Z(n)} ${r} ${j}`,transition:`all ${b} linear`,"&:active":{background:S},"&:hover":{height:"60%",[`
              ${t}-handler-up-inner,
              ${t}-handler-down-inner
            `]:{color:v}},"&-up-inner, &-down-inner":Object.assign(Object.assign({},gh()),{color:p,transition:`all ${b} linear`,userSelect:"none"})},[`${t}-handler-up`]:{borderStartEndRadius:o},[`${t}-handler-down`]:{borderEndEndRadius:o}},Kz(e,"lg")),Kz(e,"sm")),{"&-disabled, &-readonly":{[`${t}-handler-wrap`]:{display:"none"},[`${t}-input`]:{color:"inherit"}},[`
          ${t}-handler-up-disabled,
          ${t}-handler-down-disabled
        `]:{cursor:"not-allowed"},[`
          ${t}-handler-up-disabled:hover &-handler-up-inner,
          ${t}-handler-down-disabled:hover &-handler-down-inner
        `]:{color:$}})}]},_Be=e=>{const{componentCls:t,paddingBlock:n,paddingInline:r,inputAffixPadding:o,controlWidth:i,borderRadiusLG:a,borderRadiusSM:s,paddingInlineLG:l,paddingInlineSM:u,paddingBlockLG:d,paddingBlockSM:f,motionDurationMid:m}=e;return{[`${t}-affix-wrapper`]:Object.assign(Object.assign({[`input${t}-input`]:{padding:`${Z(n)} 0`}},l0(e)),{position:"relative",display:"inline-flex",alignItems:"center",width:i,padding:0,paddingInlineStart:r,"&-lg":{borderRadius:a,paddingInlineStart:l,[`input${t}-input`]:{padding:`${Z(d)} 0`}},"&-sm":{borderRadius:s,paddingInlineStart:u,[`input${t}-input`]:{padding:`${Z(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}}},NBe=vn("InputNumber",e=>{const t=cn(e,Qd(e));return[IBe(t),_Be(t),e0(t)]},jBe,{unitless:{handleOpacity:!0},resetFont:!1});var RBe=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 Uee=c.forwardRef((e,t)=>{const{getPrefixCls:n,direction:r}=c.useContext(kt),o=c.useRef(null);c.useImperativeHandle(t,()=>o.current);const{className:i,rootClassName:a,size:s,disabled:l,prefixCls:u,addonBefore:d,addonAfter:f,prefix:m,suffix:h,bordered:p,readOnly:b,status:v,controls:y,variant:x}=e,w=RBe(e,["className","rootClassName","size","disabled","prefixCls","addonBefore","addonAfter","prefix","suffix","bordered","readOnly","status","controls","variant"]),C=n("input-number",u),S=Hr(C),[$,E,O]=NBe(C,S),{compactSize:P,compactItemClassnames:j}=uc(C,r);let I=c.createElement(cBe,{className:`${C}-handler-up-inner`}),_=c.createElement(TT,{className:`${C}-handler-down-inner`});const R=typeof y=="boolean"?y:void 0;typeof y=="object"&&(I=typeof y.upIcon>"u"?I:c.createElement("span",{className:`${C}-handler-up-inner`},y.upIcon),_=typeof y.downIcon>"u"?_:c.createElement("span",{className:`${C}-handler-down-inner`},y.downIcon));const{hasFeedback:N,status:A,isFormItemInput:M,feedbackIcon:T}=c.useContext(Oo),k=Xd(A,v),D=go(ee=>{var z;return(z=s??P)!==null&&z!==void 0?z:ee}),L=c.useContext(ai),B=l??L,[H,F]=Yd("inputNumber",x,p),W=N&&c.createElement(c.Fragment,null,T),q=Q({[`${C}-lg`]:D==="large",[`${C}-sm`]:D==="small",[`${C}-rtl`]:r==="rtl",[`${C}-in-form-item`]:M},E),G=`${C}-group`,te=c.createElement(PBe,Object.assign({ref:o,disabled:B,className:Q(O,S,i,a,j),upHandler:I,downHandler:_,prefixCls:C,readOnly:b,controls:R,prefix:m,suffix:W||h,addonBefore:d&&c.createElement(Vs,{form:!0,space:!0},d),addonAfter:f&&c.createElement(Vs,{form:!0,space:!0},f),classNames:{input:q,variant:Q({[`${C}-${H}`]:F},Qc(C,k,N)),affixWrapper:Q({[`${C}-affix-wrapper-sm`]:D==="small",[`${C}-affix-wrapper-lg`]:D==="large",[`${C}-affix-wrapper-rtl`]:r==="rtl",[`${C}-affix-wrapper-without-controls`]:y===!1||B||b},E),wrapper:Q({[`${G}-rtl`]:r==="rtl"},E),groupWrapper:Q({[`${C}-group-wrapper-sm`]:D==="small",[`${C}-group-wrapper-lg`]:D==="large",[`${C}-group-wrapper-rtl`]:r==="rtl",[`${C}-group-wrapper-${H}`]:F},Qc(`${C}-group-wrapper`,k,N),E)}},w));return $(te)}),un=Uee,TBe=e=>c.createElement(Ma,{theme:{components:{InputNumber:{handleVisible:!0}}}},c.createElement(Uee,Object.assign({},e)));un._InternalPanelDoNotUseOrYouWillBeFired=TBe;const Kee=e=>{let t;return typeof e=="object"&&(e!=null&&e.clearIcon)?t=e:e&&(t={clearIcon:ce.createElement(Gd,null)}),t};function qee(e,t){const n=c.useRef([]),r=()=>{n.current.push(setTimeout(()=>{var o,i,a,s;!((o=e.current)===null||o===void 0)&&o.input&&((i=e.current)===null||i===void 0?void 0:i.input.getAttribute("type"))==="password"&&(!((a=e.current)===null||a===void 0)&&a.input.hasAttribute("value"))&&((s=e.current)===null||s===void 0||s.input.removeAttribute("value"))}))};return c.useEffect(()=>(t&&r(),()=>n.current.forEach(o=>{o&&clearTimeout(o)})),[]),r}function MBe(e){return!!(e.prefix||e.suffix||e.allowClear||e.showCount)}var kBe=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 u0=c.forwardRef((e,t)=>{const{prefixCls:n,bordered:r=!0,status:o,size:i,disabled:a,onBlur:s,onFocus:l,suffix:u,allowClear:d,addonAfter:f,addonBefore:m,className:h,style:p,styles:b,rootClassName:v,onChange:y,classNames:x,variant:w}=e,C=kBe(e,["prefixCls","bordered","status","size","disabled","onBlur","onFocus","suffix","allowClear","addonAfter","addonBefore","className","style","styles","rootClassName","onChange","classNames","variant"]),{getPrefixCls:S,direction:$,allowClear:E,autoComplete:O,className:P,style:j,classNames:I,styles:_}=Br("input"),R=S("input",n),N=c.useRef(null),A=Hr(R),[M,T,k]=Oee(R,v),[D]=Pee(R,A),{compactSize:L,compactItemClassnames:B}=uc(R,$),H=go(ye=>{var Pe;return(Pe=i??L)!==null&&Pe!==void 0?Pe:ye}),F=ce.useContext(ai),W=a??F,{status:q,hasFeedback:G,feedbackIcon:te}=c.useContext(Oo),ee=Xd(q,o),z=MBe(e)||!!G;c.useRef(z);const ne=qee(N,!0),X=ye=>{ne(),s==null||s(ye)},U=ye=>{ne(),l==null||l(ye)},le=ye=>{ne(),y==null||y(ye)},se=(G||u)&&ce.createElement(ce.Fragment,null,u,G&&te),ae=Kee(d??E),[re,fe]=Yd("input",w,r);return M(D(ce.createElement(gBe,Object.assign({ref:po(t,N),prefixCls:R,autoComplete:O},C,{disabled:W,onBlur:X,onFocus:U,style:Object.assign(Object.assign({},j),p),styles:Object.assign(Object.assign({},_),b),suffix:se,allowClear:ae,className:Q(h,v,k,A,B,P),onChange:le,addonBefore:m&&ce.createElement(Vs,{form:!0,space:!0},m),addonAfter:f&&ce.createElement(Vs,{form:!0,space:!0},f),classNames:Object.assign(Object.assign(Object.assign({},x),I),{input:Q({[`${R}-sm`]:H==="small",[`${R}-lg`]:H==="large",[`${R}-rtl`]:$==="rtl"},x==null?void 0:x.input,I.input,T),variant:Q({[`${R}-${re}`]:fe},Qc(R,ee)),affixWrapper:Q({[`${R}-affix-wrapper-sm`]:H==="small",[`${R}-affix-wrapper-lg`]:H==="large",[`${R}-affix-wrapper-rtl`]:$==="rtl"},T),wrapper:Q({[`${R}-group-rtl`]:$==="rtl"},T),groupWrapper:Q({[`${R}-group-wrapper-sm`]:H==="small",[`${R}-group-wrapper-lg`]:H==="large",[`${R}-group-wrapper-rtl`]:$==="rtl",[`${R}-group-wrapper-${re}`]:fe},Qc(`${R}-group-wrapper`,ee,G),T)})}))))});var ABe={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"},DBe=function(t,n){return c.createElement(yn,Ee({},t,{ref:n,icon:ABe}))},LBe=c.forwardRef(DBe);const Gee=(e,t,n,r,o)=>{const{classNames:i,styles:a}=Br(e),[s,l]=u3e([i,t],[a,n],{popup:{_default:"root"}});return c.useMemo(()=>{var u,d;const f=Object.assign(Object.assign({},s),{popup:Object.assign(Object.assign({},s.popup),{root:Q((u=s.popup)===null||u===void 0?void 0:u.root,r)})}),m=Object.assign(Object.assign({},l),{popup:Object.assign(Object.assign({},l.popup),{root:Object.assign(Object.assign({},(d=l.popup)===null||d===void 0?void 0:d.root),o)})});return[f,m]},[s,l,r,o])};function zBe(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 FBe(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 Xee(e,t){const{allowClear:n=!0}=e,{clearIcon:r,removeIcon:o}=UJ(Object.assign(Object.assign({},e),{prefixCls:t,componentName:"DatePicker"}));return[c.useMemo(()=>n===!1?!1:Object.assign({clearIcon:r},n===!0?{}:n),[n,r]),o]}const[BBe,HBe]=["week","WeekPicker"],[VBe,WBe]=["month","MonthPicker"],[UBe,KBe]=["year","YearPicker"],[qBe,GBe]=["quarter","QuarterPicker"],[u3,qz]=["time","TimePicker"];var Yee={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"},XBe=function(t,n){return c.createElement(yn,Ee({},t,{ref:n,icon:Yee}))},YBe=c.forwardRef(XBe),ZBe={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"},JBe=function(t,n){return c.createElement(yn,Ee({},t,{ref:n,icon:ZBe}))},QBe=c.forwardRef(JBe);const Zee=({picker:e,hasFeedback:t,feedbackIcon:n,suffixIcon:r})=>r===null||r===!1?null:r===!0||r===void 0?ce.createElement(ce.Fragment,null,e===u3?ce.createElement(QBe,null):ce.createElement(YBe,null),t&&n):r,e9e=e=>c.createElement(gt,Object.assign({size:"small",type:"primary"},e));function Jee(e){return c.useMemo(()=>Object.assign({button:e9e},e),[e])}var t9e=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 n9e=e=>c.forwardRef((n,r)=>{var o;const{prefixCls:i,getPopupContainer:a,components:s,className:l,style:u,placement:d,size:f,disabled:m,bordered:h=!0,placeholder:p,popupStyle:b,popupClassName:v,dropdownClassName:y,status:x,rootClassName:w,variant:C,picker:S,styles:$,classNames:E,suffixIcon:O}=n,P=t9e(n,["prefixCls","getPopupContainer","components","className","style","placement","size","disabled","bordered","placeholder","popupStyle","popupClassName","dropdownClassName","status","rootClassName","variant","picker","styles","classNames","suffixIcon"]),j=S===u3?"timePicker":"datePicker",I=c.useRef(null),{getPrefixCls:_,direction:R,getPopupContainer:N,rangePicker:A}=c.useContext(kt),M=_("picker",i),{compactSize:T,compactItemClassnames:k}=uc(M,R),D=_(),[L,B]=Yd("rangePicker",C,h),H=Hr(M),[F,W,q]=jee(M,H),[G,te]=Gee(j,E,$,v||y,b),[ee]=Xee(n,M),z=Jee(s),ne=go(V=>{var J;return(J=f??T)!==null&&J!==void 0?J:V}),X=c.useContext(ai),U=m??X,le=c.useContext(Oo),{hasFeedback:se,status:ae,feedbackIcon:re}=le,fe=c.createElement(Zee,{picker:S,hasFeedback:se,feedbackIcon:re,suffixIcon:O});c.useImperativeHandle(r,()=>I.current);const[ye]=ca("Calendar",Jx),Pe=Object.assign(Object.assign({},ye),n.locale),[Oe]=vu("DatePicker",(o=te.popup.root)===null||o===void 0?void 0:o.zIndex);return F(c.createElement(Vs,{space:!0},c.createElement(Xze,Object.assign({separator:c.createElement("span",{"aria-label":"to",className:`${M}-separator`},c.createElement(LBe,null)),disabled:U,ref:I,placement:d,placeholder:FBe(Pe,S,p),suffixIcon:fe,prevIcon:c.createElement("span",{className:`${M}-prev-icon`}),nextIcon:c.createElement("span",{className:`${M}-next-icon`}),superPrevIcon:c.createElement("span",{className:`${M}-super-prev-icon`}),superNextIcon:c.createElement("span",{className:`${M}-super-next-icon`}),transitionName:`${D}-slide-up`,picker:S},P,{className:Q({[`${M}-${ne}`]:ne,[`${M}-${L}`]:B},Qc(M,Xd(ae,x),se),W,k,l,A==null?void 0:A.className,q,H,w,G.root),style:Object.assign(Object.assign(Object.assign({},A==null?void 0:A.style),u),te.root),locale:Pe.lang,prefixCls:M,getPopupContainer:a||N,generateConfig:e,components:z,direction:R,classNames:{popup:Q(W,q,H,w,G.popup.root)},styles:{popup:Object.assign(Object.assign({},te.popup.root),{zIndex:Oe})},allowClear:ee}))))});var r9e=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 o9e=e=>{const t=(l,u)=>{const d=u===qz?"timePicker":"datePicker";return c.forwardRef((m,h)=>{var p;const{prefixCls:b,getPopupContainer:v,components:y,style:x,className:w,rootClassName:C,size:S,bordered:$,placement:E,placeholder:O,popupStyle:P,popupClassName:j,dropdownClassName:I,disabled:_,status:R,variant:N,onCalendarChange:A,styles:M,classNames:T,suffixIcon:k}=m,D=r9e(m,["prefixCls","getPopupContainer","components","style","className","rootClassName","size","bordered","placement","placeholder","popupStyle","popupClassName","dropdownClassName","disabled","status","variant","onCalendarChange","styles","classNames","suffixIcon"]),{getPrefixCls:L,direction:B,getPopupContainer:H,[d]:F}=c.useContext(kt),W=L("picker",b),{compactSize:q,compactItemClassnames:G}=uc(W,B),te=c.useRef(null),[ee,z]=Yd("datePicker",N,$),ne=Hr(W),[X,U,le]=jee(W,ne);c.useImperativeHandle(h,()=>te.current);const se={showToday:!0},ae=l||m.picker,re=L(),{onSelect:fe,multiple:ye}=D,Pe=fe&&l==="time"&&!ye,Oe=(me,Se,De)=>{A==null||A(me,Se,De),Pe&&fe(me)},[V,J]=Gee(d,T,M,j||I,P),[oe,de]=Xee(m,W),be=Jee(y),ge=go(me=>{var Se;return(Se=S??q)!==null&&Se!==void 0?Se:me}),ie=c.useContext(ai),he=_??ie,xe=c.useContext(Oo),{hasFeedback:Re,status:Ce,feedbackIcon:pe}=xe,_e=c.createElement(Zee,{picker:ae,hasFeedback:Re,feedbackIcon:pe,suffixIcon:k}),[we]=ca("DatePicker",Jx),$e=Object.assign(Object.assign({},we),m.locale),[ve]=vu("DatePicker",(p=J.popup.root)===null||p===void 0?void 0:p.zIndex);return X(c.createElement(Vs,{space:!0},c.createElement(tFe,Object.assign({ref:te,placeholder:zBe($e,ae,O),suffixIcon:_e,placement:E,prevIcon:c.createElement("span",{className:`${W}-prev-icon`}),nextIcon:c.createElement("span",{className:`${W}-next-icon`}),superPrevIcon:c.createElement("span",{className:`${W}-super-prev-icon`}),superNextIcon:c.createElement("span",{className:`${W}-super-next-icon`}),transitionName:`${re}-slide-up`,picker:l,onCalendarChange:Oe},se,D,{locale:$e.lang,className:Q({[`${W}-${ge}`]:ge,[`${W}-${ee}`]:z},Qc(W,Xd(Ce,R),Re),U,G,F==null?void 0:F.className,w,le,ne,C,V.root),style:Object.assign(Object.assign(Object.assign({},F==null?void 0:F.style),x),J.root),prefixCls:W,getPopupContainer:v||H,generateConfig:e,components:be,direction:B,disabled:he,classNames:{popup:Q(U,le,ne,C,V.popup.root)},styles:{popup:Object.assign(Object.assign({},J.popup.root),{zIndex:ve})},allowClear:oe,removeIcon:de}))))})},n=t(),r=t(BBe,HBe),o=t(VBe,WBe),i=t(UBe,KBe),a=t(qBe,GBe),s=t(u3,qz);return{DatePicker:n,WeekPicker:r,MonthPicker:o,YearPicker:i,TimePicker:s,QuarterPicker:a}},Qee=e=>{const{DatePicker:t,WeekPicker:n,MonthPicker:r,YearPicker:o,TimePicker:i,QuarterPicker:a}=o9e(e),s=n9e(e),l=t;return l.WeekPicker=n,l.MonthPicker=r,l.YearPicker=o,l.RangePicker=s,l.TimePicker=i,l.QuarterPicker=a,l},xu=Qee(rze),i9e=LS(xu,"popupAlign",void 0,"picker");xu._InternalPanelDoNotUseOrYouWillBeFired=i9e;const a9e=LS(xu.RangePicker,"popupAlign",void 0,"picker");xu._InternalRangePanelDoNotUseOrYouWillBeFired=a9e;xu.generatePicker=Qee;var Gz=c.createContext(null),ete=c.createContext({}),s9e=["prefixCls","className","containerRef"],l9e=function(t){var n=t.prefixCls,r=t.className,o=t.containerRef,i=Ht(t,s9e),a=c.useContext(ete),s=a.panel,l=xl(s,o);return c.createElement("div",Ee({className:Q("".concat(n,"-content"),r),role:"dialog",ref:l},Pr(t,{aria:!0}),{"aria-modal":"true"},i))};function Xz(e){return typeof e=="string"&&String(Number(e))===e?(ir(!1,"Invalid value type of `width` or `height` which should be number type instead."),Number(e)):e}var Yz={width:0,height:0,overflow:"hidden",outline:"none",position:"absolute"};function c9e(e,t){var n,r,o,i=e.prefixCls,a=e.open,s=e.placement,l=e.inline,u=e.push,d=e.forceRender,f=e.autoFocus,m=e.keyboard,h=e.classNames,p=e.rootClassName,b=e.rootStyle,v=e.zIndex,y=e.className,x=e.id,w=e.style,C=e.motion,S=e.width,$=e.height,E=e.children,O=e.mask,P=e.maskClosable,j=e.maskMotion,I=e.maskClassName,_=e.maskStyle,R=e.afterOpenChange,N=e.onClose,A=e.onMouseEnter,M=e.onMouseOver,T=e.onMouseLeave,k=e.onClick,D=e.onKeyDown,L=e.onKeyUp,B=e.styles,H=e.drawerRender,F=c.useRef(),W=c.useRef(),q=c.useRef();c.useImperativeHandle(t,function(){return F.current});var G=function(J){var oe=J.keyCode,de=J.shiftKey;switch(oe){case jt.TAB:{if(oe===jt.TAB){if(!de&&document.activeElement===q.current){var be;(be=W.current)===null||be===void 0||be.focus({preventScroll:!0})}else if(de&&document.activeElement===W.current){var ge;(ge=q.current)===null||ge===void 0||ge.focus({preventScroll:!0})}}break}case jt.ESC:{N&&m&&(J.stopPropagation(),N(J));break}}};c.useEffect(function(){if(a&&f){var V;(V=F.current)===null||V===void 0||V.focus({preventScroll:!0})}},[a]);var te=c.useState(!1),ee=ue(te,2),z=ee[0],ne=ee[1],X=c.useContext(Gz),U;typeof u=="boolean"?U=u?{}:{distance:0}:U=u||{};var le=(n=(r=(o=U)===null||o===void 0?void 0:o.distance)!==null&&r!==void 0?r:X==null?void 0:X.pushDistance)!==null&&n!==void 0?n:180,se=c.useMemo(function(){return{pushDistance:le,push:function(){ne(!0)},pull:function(){ne(!1)}}},[le]);c.useEffect(function(){if(a){var V;X==null||(V=X.push)===null||V===void 0||V.call(X)}else{var J;X==null||(J=X.pull)===null||J===void 0||J.call(X)}},[a]),c.useEffect(function(){return function(){var V;X==null||(V=X.pull)===null||V===void 0||V.call(X)}},[]);var ae=c.createElement(si,Ee({key:"mask"},j,{visible:O&&a}),function(V,J){var oe=V.className,de=V.style;return c.createElement("div",{className:Q("".concat(i,"-mask"),oe,h==null?void 0:h.mask,I),style:Y(Y(Y({},de),_),B==null?void 0:B.mask),onClick:P&&a?N:void 0,ref:J})}),re=typeof C=="function"?C(s):C,fe={};if(z&&le)switch(s){case"top":fe.transform="translateY(".concat(le,"px)");break;case"bottom":fe.transform="translateY(".concat(-le,"px)");break;case"left":fe.transform="translateX(".concat(le,"px)");break;default:fe.transform="translateX(".concat(-le,"px)");break}s==="left"||s==="right"?fe.width=Xz(S):fe.height=Xz($);var ye={onMouseEnter:A,onMouseOver:M,onMouseLeave:T,onClick:k,onKeyDown:D,onKeyUp:L},Pe=c.createElement(si,Ee({key:"panel"},re,{visible:a,forceRender:d,onVisibleChanged:function(J){R==null||R(J)},removeOnLeave:!1,leavedClassName:"".concat(i,"-content-wrapper-hidden")}),function(V,J){var oe=V.className,de=V.style,be=c.createElement(l9e,Ee({id:x,containerRef:J,prefixCls:i,className:Q(y,h==null?void 0:h.content),style:Y(Y({},w),B==null?void 0:B.content)},Pr(e,{aria:!0}),ye),E);return c.createElement("div",Ee({className:Q("".concat(i,"-content-wrapper"),h==null?void 0:h.wrapper,oe),style:Y(Y(Y({},fe),de),B==null?void 0:B.wrapper)},Pr(e,{data:!0})),H?H(be):be)}),Oe=Y({},b);return v&&(Oe.zIndex=v),c.createElement(Gz.Provider,{value:se},c.createElement("div",{className:Q(i,"".concat(i,"-").concat(s),p,K(K({},"".concat(i,"-open"),a),"".concat(i,"-inline"),l)),style:Oe,tabIndex:-1,ref:F,onKeyDown:G},ae,c.createElement("div",{tabIndex:0,ref:W,style:Yz,"aria-hidden":"true","data-sentinel":"start"}),Pe,c.createElement("div",{tabIndex:0,ref:q,style:Yz,"aria-hidden":"true","data-sentinel":"end"})))}var u9e=c.forwardRef(c9e),d9e=function(t){var n=t.open,r=n===void 0?!1:n,o=t.prefixCls,i=o===void 0?"rc-drawer":o,a=t.placement,s=a===void 0?"right":a,l=t.autoFocus,u=l===void 0?!0:l,d=t.keyboard,f=d===void 0?!0:d,m=t.width,h=m===void 0?378:m,p=t.mask,b=p===void 0?!0:p,v=t.maskClosable,y=v===void 0?!0:v,x=t.getContainer,w=t.forceRender,C=t.afterOpenChange,S=t.destroyOnClose,$=t.onMouseEnter,E=t.onMouseOver,O=t.onMouseLeave,P=t.onClick,j=t.onKeyDown,I=t.onKeyUp,_=t.panelRef,R=c.useState(!1),N=ue(R,2),A=N[0],M=N[1],T=c.useState(!1),k=ue(T,2),D=k[0],L=k[1];sn(function(){L(!0)},[]);var B=D?r:!1,H=c.useRef(),F=c.useRef();sn(function(){B&&(F.current=document.activeElement)},[B]);var W=function(z){var ne;if(M(z),C==null||C(z),!z&&F.current&&!((ne=H.current)!==null&&ne!==void 0&&ne.contains(F.current))){var X;(X=F.current)===null||X===void 0||X.focus({preventScroll:!0})}},q=c.useMemo(function(){return{panel:_}},[_]);if(!w&&!A&&!B&&S)return null;var G={onMouseEnter:$,onMouseOver:E,onMouseLeave:O,onClick:P,onKeyDown:j,onKeyUp:I},te=Y(Y({},t),{},{open:B,prefixCls:i,placement:s,autoFocus:u,keyboard:f,width:h,mask:b,maskClosable:y,inline:x===!1,afterOpenChange:W,ref:H},G);return c.createElement(ete.Provider,{value:q},c.createElement(MS,{open:B||w||A,autoDestroy:!1,getContainer:x,autoLock:b&&(B||A)},c.createElement(u9e,te)))};const tte=e=>{var t,n;const{prefixCls:r,title:o,footer:i,extra:a,closable:s,loading:l,onClose:u,headerStyle:d,bodyStyle:f,footerStyle:m,children:h,classNames:p,styles:b}=e,v=Br("drawer");let y;s===!1?y=void 0:s===void 0||s===!0?y="start":y=(s==null?void 0:s.placement)==="end"?"end":"start";const x=c.useCallback(E=>c.createElement("button",{type:"button",onClick:u,className:Q(`${r}-close`,{[`${r}-close-${y}`]:y==="end"})},E),[u,r,y]),[w,C]=hT(Vm(e),Vm(v),{closable:!0,closeIconRender:x}),S=()=>{var E,O;return!o&&!w?null:c.createElement("div",{style:Object.assign(Object.assign(Object.assign({},(E=v.styles)===null||E===void 0?void 0:E.header),d),b==null?void 0:b.header),className:Q(`${r}-header`,{[`${r}-header-close-only`]:w&&!o&&!a},(O=v.classNames)===null||O===void 0?void 0:O.header,p==null?void 0:p.header)},c.createElement("div",{className:`${r}-header-title`},y==="start"&&C,o&&c.createElement("div",{className:`${r}-title`},o)),a&&c.createElement("div",{className:`${r}-extra`},a),y==="end"&&C)},$=()=>{var E,O;if(!i)return null;const P=`${r}-footer`;return c.createElement("div",{className:Q(P,(E=v.classNames)===null||E===void 0?void 0:E.footer,p==null?void 0:p.footer),style:Object.assign(Object.assign(Object.assign({},(O=v.styles)===null||O===void 0?void 0:O.footer),m),b==null?void 0:b.footer)},i)};return c.createElement(c.Fragment,null,S(),c.createElement("div",{className:Q(`${r}-body`,p==null?void 0:p.body,(t=v.classNames)===null||t===void 0?void 0:t.body),style:Object.assign(Object.assign(Object.assign({},(n=v.styles)===null||n===void 0?void 0:n.body),f),b==null?void 0:b.body)},l?c.createElement(ka,{active:!0,title:!1,paragraph:{rows:5},className:`${r}-body-skeleton`}):h),$())},f9e=e=>{const t="100%";return{left:`translateX(-${t})`,right:`translateX(${t})`,top:`translateY(-${t})`,bottom:`translateY(${t})`}[e]},nte=(e,t)=>({"&-enter, &-appear":Object.assign(Object.assign({},e),{"&-active":t}),"&-leave":Object.assign(Object.assign({},t),{"&-active":e})}),rte=(e,t)=>Object.assign({"&-enter, &-appear, &-leave":{"&-start":{transition:"none"},"&-active":{transition:`all ${t}`}}},nte({opacity:e},{opacity:1})),m9e=(e,t)=>[rte(.7,t),nte({transform:f9e(e)},{transform:"none"})],h9e=e=>{const{componentCls:t,motionDurationSlow:n}=e;return{[t]:{[`${t}-mask-motion`]:rte(0,n),[`${t}-panel-motion`]:["left","right","top","bottom"].reduce((r,o)=>Object.assign(Object.assign({},r),{[`&-${o}`]:m9e(o,n)}),{})}}},p9e=e=>{const{borderRadiusSM:t,componentCls:n,zIndexPopup:r,colorBgMask:o,colorBgElevated:i,motionDurationSlow:a,motionDurationMid:s,paddingXS:l,padding:u,paddingLG:d,fontSizeLG:f,lineHeightLG:m,lineWidth:h,lineType:p,colorSplit:b,marginXS:v,colorIcon:y,colorIconHover:x,colorBgTextHover:w,colorBgTextActive:C,colorText:S,fontWeightStrong:$,footerPaddingBlock:E,footerPaddingInline:O,calc:P}=e,j=`${n}-content-wrapper`;return{[n]:{position:"fixed",inset:0,zIndex:r,pointerEvents:"none",color:S,"&-pure":{position:"relative",background:i,display:"flex",flexDirection:"column",[`&${n}-left`]:{boxShadow:e.boxShadowDrawerLeft},[`&${n}-right`]:{boxShadow:e.boxShadowDrawerRight},[`&${n}-top`]:{boxShadow:e.boxShadowDrawerUp},[`&${n}-bottom`]:{boxShadow:e.boxShadowDrawerDown}},"&-inline":{position:"absolute"},[`${n}-mask`]:{position:"absolute",inset:0,zIndex:r,background:o,pointerEvents:"auto"},[j]:{position:"absolute",zIndex:r,maxWidth:"100vw",transition:`all ${a}`,"&-hidden":{display:"none"}},[`&-left > ${j}`]:{top:0,bottom:0,left:{_skip_check_:!0,value:0},boxShadow:e.boxShadowDrawerLeft},[`&-right > ${j}`]:{top:0,right:{_skip_check_:!0,value:0},bottom:0,boxShadow:e.boxShadowDrawerRight},[`&-top > ${j}`]:{top:0,insetInline:0,boxShadow:e.boxShadowDrawerUp},[`&-bottom > ${j}`]:{bottom:0,insetInline:0,boxShadow:e.boxShadowDrawerDown},[`${n}-content`]:{display:"flex",flexDirection:"column",width:"100%",height:"100%",overflow:"auto",background:i,pointerEvents:"auto"},[`${n}-header`]:{display:"flex",flex:0,alignItems:"center",padding:`${Z(u)} ${Z(d)}`,fontSize:f,lineHeight:m,borderBottom:`${Z(h)} ${p} ${b}`,"&-title":{display:"flex",flex:1,alignItems:"center",minWidth:0,minHeight:0}},[`${n}-extra`]:{flex:"none"},[`${n}-close`]:Object.assign({display:"inline-flex",width:P(f).add(l).equal(),height:P(f).add(l).equal(),borderRadius:t,justifyContent:"center",alignItems:"center",color:y,fontWeight:$,fontSize:f,fontStyle:"normal",lineHeight:1,textAlign:"center",textTransform:"none",textDecoration:"none",background:"transparent",border:0,cursor:"pointer",transition:`all ${s}`,textRendering:"auto",[`&${n}-close-end`]:{marginInlineStart:v},[`&:not(${n}-close-end)`]:{marginInlineEnd:v},"&:hover":{color:x,backgroundColor:w,textDecoration:"none"},"&:active":{backgroundColor:C}},Hs(e)),[`${n}-title`]:{flex:1,margin:0,fontWeight:e.fontWeightStrong,fontSize:f,lineHeight:m},[`${n}-body`]:{flex:1,minWidth:0,minHeight:0,padding:d,overflow:"auto",[`${n}-body-skeleton`]:{width:"100%",height:"100%",display:"flex",justifyContent:"center"}},[`${n}-footer`]:{flexShrink:0,padding:`${Z(E)} ${Z(O)}`,borderTop:`${Z(h)} ${p} ${b}`},"&-rtl":{direction:"rtl"}}}},g9e=e=>({zIndexPopup:e.zIndexPopupBase,footerPaddingBlock:e.paddingXS,footerPaddingInline:e.padding}),ote=vn("Drawer",e=>{const t=cn(e,{});return[p9e(t),h9e(t)]},g9e);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 v9e={distance:180},ate=e=>{const{rootClassName:t,width:n,height:r,size:o="default",mask:i=!0,push:a=v9e,open:s,afterOpenChange:l,onClose:u,prefixCls:d,getContainer:f,panelRef:m=null,style:h,className:p,visible:b,afterVisibleChange:v,maskStyle:y,drawerStyle:x,contentWrapperStyle:w,destroyOnClose:C,destroyOnHidden:S}=e,$=ite(e,["rootClassName","width","height","size","mask","push","open","afterOpenChange","onClose","prefixCls","getContainer","panelRef","style","className","visible","afterVisibleChange","maskStyle","drawerStyle","contentWrapperStyle","destroyOnClose","destroyOnHidden"]),{getPopupContainer:E,getPrefixCls:O,direction:P,className:j,style:I,classNames:_,styles:R}=Br("drawer"),N=O("drawer",d),[A,M,T]=ote(N),k=f===void 0&&E?()=>E(document.body):f,D=Q({"no-mask":!i,[`${N}-rtl`]:P==="rtl"},t,M,T),L=c.useMemo(()=>n??(o==="large"?736:378),[n,o]),B=c.useMemo(()=>r??(o==="large"?736:378),[r,o]),H={motionName:gl(N,"mask-motion"),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500},F=ne=>({motionName:gl(N,`panel-motion-${ne}`),motionAppear:!0,motionEnter:!0,motionLeave:!0,motionDeadline:500}),W=aJ(),q=po(m,W),[G,te]=vu("Drawer",$.zIndex),{classNames:ee={},styles:z={}}=$;return A(c.createElement(Vs,{form:!0,space:!0},c.createElement(Yv.Provider,{value:te},c.createElement(d9e,Object.assign({prefixCls:N,onClose:u,maskMotion:H,motion:F},$,{classNames:{mask:Q(ee.mask,_.mask),content:Q(ee.content,_.content),wrapper:Q(ee.wrapper,_.wrapper)},styles:{mask:Object.assign(Object.assign(Object.assign({},z.mask),y),R.mask),content:Object.assign(Object.assign(Object.assign({},z.content),x),R.content),wrapper:Object.assign(Object.assign(Object.assign({},z.wrapper),w),R.wrapper)},open:s??b,mask:i,push:a,width:L,height:B,style:Object.assign(Object.assign({},I),h),className:Q(j,p),rootClassName:D,getContainer:k,afterOpenChange:l??v,panelRef:q,zIndex:G,destroyOnClose:S??C}),c.createElement(tte,Object.assign({prefixCls:N},$,{onClose:u}))))))},y9e=e=>{const{prefixCls:t,style:n,className:r,placement:o="right"}=e,i=ite(e,["prefixCls","style","className","placement"]),{getPrefixCls:a}=c.useContext(kt),s=a("drawer",t),[l,u,d]=ote(s),f=Q(s,`${s}-pure`,`${s}-${o}`,u,d,r);return l(c.createElement("div",{className:f,style:n},c.createElement(tte,Object.assign({prefixCls:s},i))))};ate._InternalPanelDoNotUseOrYouWillBeFired=y9e;function Zz(e){return["small","middle","large"].includes(e)}function Jz(e){return e?typeof e=="number"&&!Number.isNaN(e):!1}const ste=ce.createContext({latestIndex:0}),b9e=ste.Provider,x9e=({className:e,index:t,children:n,split:r,style:o})=>{const{latestIndex:i}=c.useContext(ste);return n==null?null:c.createElement(c.Fragment,null,c.createElement("div",{className:e,style:o},n),t<i&&r&&c.createElement("span",{className:`${e}-split`},r))};var w9e=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 S9e=c.forwardRef((e,t)=>{var n;const{getPrefixCls:r,direction:o,size:i,className:a,style:s,classNames:l,styles:u}=Br("space"),{size:d=i??"small",align:f,className:m,rootClassName:h,children:p,direction:b="horizontal",prefixCls:v,split:y,style:x,wrap:w=!1,classNames:C,styles:S}=e,$=w9e(e,["size","align","className","rootClassName","children","direction","prefixCls","split","style","wrap","classNames","styles"]),[E,O]=Array.isArray(d)?d:[d,d],P=Zz(O),j=Zz(E),I=Jz(O),_=Jz(E),R=ii(p,{keepEmpty:!0}),N=f===void 0&&b==="horizontal"?"center":f,A=r("space",v),[M,T,k]=RZ(A),D=Q(A,a,T,`${A}-${b}`,{[`${A}-rtl`]:o==="rtl",[`${A}-align-${N}`]:N,[`${A}-gap-row-${O}`]:P,[`${A}-gap-col-${E}`]:j},m,h,k),L=Q(`${A}-item`,(n=C==null?void 0:C.item)!==null&&n!==void 0?n:l.item),B=Object.assign(Object.assign({},u.item),S==null?void 0:S.item),H=R.map((q,G)=>{const te=(q==null?void 0:q.key)||`${L}-${G}`;return c.createElement(x9e,{className:L,key:te,index:G,split:y,style:B},q)}),F=c.useMemo(()=>({latestIndex:R.reduce((G,te,ee)=>te!=null?ee:G,0)}),[R]);if(R.length===0)return null;const W={};return w&&(W.flexWrap="wrap"),!j&&_&&(W.columnGap=E),!P&&I&&(W.rowGap=O),M(c.createElement("div",Object.assign({ref:t,className:D,style:Object.assign(Object.assign(Object.assign({},W),s),x)},$),c.createElement(b9e,{value:F},H)))}),pn=S9e;pn.Compact=oMe;var C9e=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 lte=e=>{const{getPopupContainer:t,getPrefixCls:n,direction:r}=c.useContext(kt),{prefixCls:o,type:i="default",danger:a,disabled:s,loading:l,onClick:u,htmlType:d,children:f,className:m,menu:h,arrow:p,autoFocus:b,overlay:v,trigger:y,align:x,open:w,onOpenChange:C,placement:S,getPopupContainer:$,href:E,icon:O=c.createElement(WT,null),title:P,buttonsRender:j=X=>X,mouseEnterDelay:I,mouseLeaveDelay:_,overlayClassName:R,overlayStyle:N,destroyOnHidden:A,destroyPopupOnHide:M,dropdownRender:T,popupRender:k}=e,D=C9e(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"]),L=n("dropdown",o),B=`${L}-button`,F={menu:h,arrow:p,autoFocus:b,align:x,disabled:s,trigger:s?[]:y,onOpenChange:C,getPopupContainer:$||t,mouseEnterDelay:I,mouseLeaveDelay:_,overlayClassName:R,overlayStyle:N,destroyOnHidden:A,popupRender:k||T},{compactSize:W,compactItemClassnames:q}=uc(L,r),G=Q(B,q,m);"destroyPopupOnHide"in e&&(F.destroyPopupOnHide=M),"overlay"in e&&(F.overlay=v),"open"in e&&(F.open=w),"placement"in e?F.placement=S:F.placement=r==="rtl"?"bottomLeft":"bottomRight";const te=c.createElement(gt,{type:i,danger:a,disabled:s,loading:l,onClick:u,htmlType:d,href:E,title:P},f),ee=c.createElement(gt,{type:i,danger:a,icon:O}),[z,ne]=j([te,ee]);return c.createElement(pn.Compact,Object.assign({className:G,size:W,block:!0},D),z,c.createElement(XS,Object.assign({},F),ne))};lte.__ANT_BUTTON=!0;const oC=XS;oC.Button=lte;function $9e(e){return e==null?null:typeof e=="object"&&!c.isValidElement(e)?e:{title:e}}var E9e={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM790.2 326H602V137.8L790.2 326zm1.8 562H232V136h302v216a42 42 0 0042 42h216v494zM504 618H320c-4.4 0-8 3.6-8 8v48c0 4.4 3.6 8 8 8h184c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8zM312 490v48c0 4.4 3.6 8 8 8h384c4.4 0 8-3.6 8-8v-48c0-4.4-3.6-8-8-8H320c-4.4 0-8 3.6-8 8z"}}]},name:"file-text",theme:"outlined"};function d1(e){const[t,n]=c.useState(e);return c.useEffect(()=>{const r=setTimeout(()=>{n(e)},e.length?0:10);return()=>{clearTimeout(r)}},[e]),t}const O9e=e=>{const{componentCls:t}=e,n=`${t}-show-help`,r=`${t}-show-help-item`;return{[n]:{transition:`opacity ${e.motionDurationFast} ${e.motionEaseInOut}`,"&-appear, &-enter":{opacity:0,"&-active":{opacity:1}},"&-leave":{opacity:1,"&-active":{opacity:0}},[r]:{overflow:"hidden",transition:`height ${e.motionDurationFast} ${e.motionEaseInOut},
                     opacity ${e.motionDurationFast} ${e.motionEaseInOut},
                     transform ${e.motionDurationFast} ${e.motionEaseInOut} !important`,[`&${r}-appear, &${r}-enter`]:{transform:"translateY(-5px)",opacity:0,"&-active":{transform:"translateY(0)",opacity:1}},[`&${r}-leave-active`]:{transform:"translateY(-5px)"}}}}},P9e=e=>({legend:{display:"block",width:"100%",marginBottom:e.marginLG,padding:0,color:e.colorTextDescription,fontSize:e.fontSizeLG,lineHeight:"inherit",border:0,borderBottom:`${Z(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 ${Z(e.controlOutlineWidth)} ${e.controlOutline}`},output:{display:"block",paddingTop:15,color:e.colorText,fontSize:e.fontSize,lineHeight:e.lineHeight}}),Qz=(e,t)=>{const{formItemCls:n}=e;return{[n]:{[`${n}-label > label`]:{height:t},[`${n}-control-input`]:{minHeight:t}}}},j9e=e=>{const{componentCls:t}=e;return{[e.componentCls]:Object.assign(Object.assign(Object.assign({},xn(e)),P9e(e)),{[`${t}-text`]:{display:"inline-block",paddingInlineEnd:e.paddingSM},"&-small":Object.assign({},Qz(e,e.controlHeightSM)),"&-large":Object.assign({},Qz(e,e.controlHeightLG))})}},I9e=e=>{const{formItemCls:t,iconCls:n,rootPrefixCls:r,antCls:o,labelRequiredMarkColor:i,labelColor:a,labelFontSize:s,labelHeight:l,labelColonMarginInlineStart:u,labelColonMarginInlineEnd:d,itemMarginBottom:f}=e;return{[t]:Object.assign(Object.assign({},xn(e)),{marginBottom:f,verticalAlign:"top","&-with-help":{transition:"none"},[`&-hidden,
        &-hidden${o}-row`]:{display:"none"},"&-has-warning":{[`${t}-split`]:{color:e.colorError}},"&-has-error":{[`${t}-split`]:{color:e.colorWarning}},[`${t}-label`]:{flexGrow:0,overflow:"hidden",whiteSpace:"nowrap",textAlign:"end",verticalAlign:"middle","&-left":{textAlign:"start"},"&-wrap":{overflow:"unset",lineHeight:e.lineHeight,whiteSpace:"unset","> label":{verticalAlign:"middle",textWrap:"balance"}},"> label":{position:"relative",display:"inline-flex",alignItems:"center",maxWidth:"100%",height:l,color:a,fontSize:s,[`> ${n}`]:{fontSize:e.fontSize,verticalAlign:"top"},[`&${t}-required`]:{"&::before":{display:"inline-block",marginInlineEnd:e.marginXXS,color:i,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:xT,animationDuration:e.motionDurationMid,animationTimingFunction:e.motionEaseOutBack,pointerEvents:"none","&-success":{color:e.colorSuccess},"&-error":{color:e.colorError},"&-warning":{color:e.colorWarning},"&-validating":{color:e.colorPrimary}}})}},ku=e=>({padding:e.verticalLabelPadding,margin:e.verticalLabelMargin,whiteSpace:"initial",textAlign:"start","> label":{margin:0,"&::after":{visibility:"hidden"}}}),_9e=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,
        ${t}-col-xl-24${n}-label`]:ku(e)}}},N9e=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,
        > ${n}-control`]:{display:"inline-block",verticalAlign:"top"},[`> ${n}-label`]:{flex:"none"},[`${t}-text`]:{display:"inline-block"},[`${n}-has-feedback`]:{display:"inline-block"}}}}},R9e=e=>{const{componentCls:t,formItemCls:n,rootPrefixCls:r}=e;return{[`${n} ${n}-label`]:ku(e),[`${t}:not(${t}-inline)`]:{[n]:{flexWrap:"wrap",[`${n}-label, ${n}-control`]:{[`&:not([class*=" ${r}-col-xs"])`]:{flex:"0 0 100%",maxWidth:"100%"}}}}}},T9e=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,
        ${r}-col-24${n}-label,
        ${r}-col-xl-24${n}-label`]:ku(e)},[`@media (max-width: ${Z(e.screenXSMax)})`]:[R9e(e),{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-xs-24${n}-label`]:ku(e)}}}],[`@media (max-width: ${Z(e.screenSMMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-sm-24${n}-label`]:ku(e)}}},[`@media (max-width: ${Z(e.screenMDMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-md-24${n}-label`]:ku(e)}}},[`@media (max-width: ${Z(e.screenLGMax)})`]:{[t]:{[`${n}:not(${n}-horizontal)`]:{[`${r}-col-lg-24${n}-label`]:ku(e)}}}}},M9e=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}),cte=(e,t)=>cn(e,{formItemCls:`${e.componentCls}-item`,rootPrefixCls:t}),d3=vn("Form",(e,{rootPrefixCls:t})=>{const n=cte(e,t);return[j9e(n),I9e(n),O9e(n),_9e(n),N9e(n),T9e(n),SS(n),xT]},M9e,{order:-1e3}),eF=[];function O2(e,t,n,r=0){return{key:typeof e=="string"?e:`${t}-${r}`,error:e,errorStatus:n}}const ute=({help:e,helpStatus:t,errors:n=eF,warnings:r=eF,className:o,fieldId:i,onVisibleChanged:a})=>{const{prefixCls:s}=c.useContext(OT),l=`${s}-item-explain`,u=Hr(s),[d,f,m]=d3(s,u),h=c.useMemo(()=>Ug(s),[s]),p=d1(n),b=d1(r),v=c.useMemo(()=>e!=null?[O2(e,"help",t)]:[].concat(Ne(p.map((w,C)=>O2(w,"error","error",C))),Ne(b.map((w,C)=>O2(w,"warning","warning",C)))),[e,t,p,b]),y=c.useMemo(()=>{const w={};return v.forEach(({key:C})=>{w[C]=(w[C]||0)+1}),v.map((C,S)=>Object.assign(Object.assign({},C),{key:w[C.key]>1?`${C.key}-fallback-${S}`:C.key}))},[v]),x={};return i&&(x.id=`${i}_help`),d(c.createElement(si,{motionDeadline:h.motionDeadline,motionName:`${s}-show-help`,visible:!!y.length,onVisibleChanged:a},w=>{const{className:C,style:S}=w;return c.createElement("div",Object.assign({},x,{className:Q(l,C,m,u,o,f),style:S}),c.createElement(uT,Object.assign({keys:y},Ug(s),{motionName:`${s}-show-help-item`,component:!1}),$=>{const{key:E,error:O,errorStatus:P,className:j,style:I}=$;return c.createElement("div",{key:E,className:Q(j,{[`${l}-${P}`]:P}),style:I},O)}))}))};var k9e=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 A9e=(e,t)=>{const n=c.useContext(ai),{getPrefixCls:r,direction:o,requiredMark:i,colon:a,scrollToFirstError:s,className:l,style:u}=Br("form"),{prefixCls:d,className:f,rootClassName:m,size:h,disabled:p=n,form:b,colon:v,labelAlign:y,labelWrap:x,labelCol:w,wrapperCol:C,hideRequiredMark:S,layout:$="horizontal",scrollToFirstError:E,requiredMark:O,onFinishFailed:P,name:j,style:I,feedbackIcons:_,variant:R}=e,N=k9e(e,["prefixCls","className","rootClassName","size","disabled","form","colon","labelAlign","labelWrap","labelCol","wrapperCol","hideRequiredMark","layout","scrollToFirstError","requiredMark","onFinishFailed","name","style","feedbackIcons","variant"]),A=go(h),M=c.useContext(LY),T=c.useMemo(()=>O!==void 0?O:S?!1:i!==void 0?i:!0,[S,O,i]),k=v??a,D=r("form",d),L=Hr(D),[B,H,F]=d3(D,L),W=Q(D,`${D}-${$}`,{[`${D}-hide-required-mark`]:T===!1,[`${D}-rtl`]:o==="rtl",[`${D}-${A}`]:A},F,L,H,l,f,m),[q]=bee(b),{__INTERNAL__:G}=q;G.name=j;const te=c.useMemo(()=>({name:j,labelAlign:y,labelCol:w,labelWrap:x,wrapperCol:C,layout:$,colon:k,requiredMark:T,itemRef:G.itemRef,form:q,feedbackIcons:_}),[j,y,w,C,$,k,T,q,_]),ee=c.useRef(null);c.useImperativeHandle(t,()=>{var X;return Object.assign(Object.assign({},q),{nativeElement:(X=ee.current)===null||X===void 0?void 0:X.nativeElement})});const z=(X,U)=>{if(X){let le={block:"nearest"};typeof X=="object"&&(le=Object.assign(Object.assign({},le),X)),q.scrollToField(U,le)}},ne=X=>{if(P==null||P(X),X.errorFields.length){const U=X.errorFields[0].name;if(E!==void 0){z(E,U);return}s!==void 0&&z(s,U)}};return B(c.createElement(oJ.Provider,{value:R},c.createElement(aT,{disabled:p},c.createElement(Nd.Provider,{value:A},c.createElement(nJ,{validateMessages:M},c.createElement(Jl.Provider,{value:te},c.createElement(rJ,{status:!0},c.createElement(wh,Object.assign({id:j},N,{name:j,onFinishFailed:ne,form:q,ref:ee,style:Object.assign(Object.assign({},u),I),className:W})))))))))},D9e=c.forwardRef(A9e);function L9e(e){if(typeof e=="function")return e;const t=ii(e);return t.length<=1?t[0]:t}const dte=()=>{const{status:e,errors:t=[],warnings:n=[]}=c.useContext(Oo);return{status:e,errors:t,warnings:n}};dte.Context=Oo;function z9e(e){const[t,n]=c.useState(e),r=c.useRef(null),o=c.useRef([]),i=c.useRef(!1);c.useEffect(()=>(i.current=!1,()=>{i.current=!0,ln.cancel(r.current),r.current=null}),[]);function a(s){i.current||(r.current===null&&(o.current=[],r.current=ln(()=>{r.current=null,n(l=>{let u=l;return o.current.forEach(d=>{u=d(u)}),u})})),o.current.push(s))}return[t,a]}function F9e(){const{itemRef:e}=c.useContext(Jl),t=c.useRef({});function n(r,o){const i=o&&typeof o=="object"&&hu(o),a=r.join("_");return(t.current.name!==a||t.current.originRef!==i)&&(t.current.name=a,t.current.originRef=i,t.current.ref=po(e(r),i)),t.current.ref}return n}const B9e=e=>{const{formItemCls:t}=e;return{"@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)":{[`${t}-control`]:{display:"flex"}}}},H9e=vh(["Form","item-item"],(e,{rootPrefixCls:t})=>{const n=cte(e,t);return B9e(n)});var V9e=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 W9e=24,U9e=e=>{const{prefixCls:t,status:n,labelCol:r,wrapperCol:o,children:i,errors:a,warnings:s,_internalItemRender:l,extra:u,help:d,fieldId:f,marginBottom:m,onErrorVisibleChanged:h,label:p}=e,b=`${t}-item`,v=c.useContext(Jl),y=c.useMemo(()=>{let N=Object.assign({},o||v.wrapperCol||{});return p===null&&!r&&!o&&v.labelCol&&[void 0,"xs","sm","md","lg","xl","xxl"].forEach(M=>{const T=M?[M]:[],k=Ai(v.labelCol,T),D=typeof k=="object"?k:{},L=Ai(N,T),B=typeof L=="object"?L:{};"span"in D&&!("offset"in B)&&D.span<W9e&&(N=Ka(N,[].concat(T,["offset"]),D.span))}),N},[o,v.wrapperCol,v.labelCol,p,r]),x=Q(`${b}-control`,y.className),w=c.useMemo(()=>{const{labelCol:N,wrapperCol:A}=v;return V9e(v,["labelCol","wrapperCol"])},[v]),C=c.useRef(null),[S,$]=c.useState(0);sn(()=>{u&&C.current?$(C.current.clientHeight):$(0)},[u]);const E=c.createElement("div",{className:`${b}-control-input`},c.createElement("div",{className:`${b}-control-input-content`},i)),O=c.useMemo(()=>({prefixCls:t,status:n}),[t,n]),P=m!==null||a.length||s.length?c.createElement(OT.Provider,{value:O},c.createElement(ute,{fieldId:f,errors:a,warnings:s,help:d,helpStatus:n,className:`${b}-explain-connected`,onVisibleChanged:h})):null,j={};f&&(j.id=`${f}_extra`);const I=u?c.createElement("div",Object.assign({},j,{className:`${b}-extra`,ref:C}),u):null,_=P||I?c.createElement("div",{className:`${b}-additional`,style:m?{minHeight:m+S}:{}},P,I):null,R=l&&l.mark==="pro_table_render"&&l.render?l.render(e,{input:E,errorList:P,extra:I}):c.createElement(c.Fragment,null,E,_);return c.createElement(Jl.Provider,{value:w},c.createElement(Mr,Object.assign({},y,{className:x}),R),c.createElement(H9e,{prefixCls:t}))};var K9e={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"},q9e=function(t,n){return c.createElement(yn,Ee({},t,{ref:n,icon:K9e}))},G9e=c.forwardRef(q9e),X9e=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 Y9e=({prefixCls:e,label:t,htmlFor:n,labelCol:r,labelAlign:o,colon:i,required:a,requiredMark:s,tooltip:l,vertical:u})=>{var d;const[f]=ca("Form"),{labelAlign:m,labelCol:h,labelWrap:p,colon:b}=c.useContext(Jl);if(!t)return null;const v=r||h||{},y=o||m,x=`${e}-item-label`,w=Q(x,y==="left"&&`${x}-left`,v.className,{[`${x}-wrap`]:!!p});let C=t;const S=i===!0||b!==!1&&i!==!1;S&&!u&&typeof t=="string"&&t.trim()&&(C=t.replace(/[:|：]\s*$/,""));const E=$9e(l);if(E){const{icon:R=c.createElement(G9e,null)}=E,N=X9e(E,["icon"]),A=c.createElement(us,Object.assign({},N),c.cloneElement(R,{className:`${e}-item-tooltip`,title:"",onClick:M=>{M.preventDefault()},tabIndex:null}));C=c.createElement(c.Fragment,null,C,A)}const O=s==="optional",P=typeof s=="function",j=s===!1;P?C=s(C,{required:!!a}):O&&!a&&(C=c.createElement(c.Fragment,null,C,c.createElement("span",{className:`${e}-item-optional`,title:""},(f==null?void 0:f.optional)||((d=cs.Form)===null||d===void 0?void 0:d.optional))));let I;j?I="hidden":(O||P)&&(I="optional");const _=Q({[`${e}-item-required`]:a,[`${e}-item-required-mark-${I}`]:I,[`${e}-item-no-colon`]:!S});return c.createElement(Mr,Object.assign({},v,{className:w}),c.createElement("label",{htmlFor:n,className:_,title:typeof t=="string"?t:""},C))},Z9e={success:Xv,warning:bh,error:Gd,validating:Zl};function fte({children:e,errors:t,warnings:n,hasFeedback:r,validateStatus:o,prefixCls:i,meta:a,noStyle:s,name:l}){const u=`${i}-item`,{feedbackIcons:d}=c.useContext(Jl),f=yee(t,n,a,null,!!r,o),{isFormItemInput:m,status:h,hasFeedback:p,feedbackIcon:b,name:v}=c.useContext(Oo),y=c.useMemo(()=>{var x;let w;if(r){const S=r!==!0&&r.icons||d,$=f&&((x=S==null?void 0:S({status:f,errors:t,warnings:n}))===null||x===void 0?void 0:x[f]),E=f?Z9e[f]:null;w=$!==!1&&E?c.createElement("span",{className:Q(`${u}-feedback-icon`,`${u}-feedback-icon-${f}`)},$||c.createElement(E,null)):null}const C={status:f||"",errors:t,warnings:n,hasFeedback:!!r,feedbackIcon:w,isFormItemInput:!0,name:l};return s&&(C.status=(f??h)||"",C.isFormItemInput=m,C.hasFeedback=!!(r??p),C.feedbackIcon=r!==void 0?C.feedbackIcon:b,C.name=l??v),C},[f,r,s,m,h]);return c.createElement(Oo.Provider,{value:y},e)}var J9e=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 Q9e(e){const{prefixCls:t,className:n,rootClassName:r,style:o,help:i,errors:a,warnings:s,validateStatus:l,meta:u,hasFeedback:d,hidden:f,children:m,fieldId:h,required:p,isRequired:b,onSubItemMetaChange:v,layout:y,name:x}=e,w=J9e(e,["prefixCls","className","rootClassName","style","help","errors","warnings","validateStatus","meta","hasFeedback","hidden","children","fieldId","required","isRequired","onSubItemMetaChange","layout","name"]),C=`${t}-item`,{requiredMark:S,layout:$}=c.useContext(Jl),E=y||$,O=E==="vertical",P=c.useRef(null),j=d1(a),I=d1(s),_=i!=null,R=!!(_||a.length||s.length),N=!!P.current&&xh(P.current),[A,M]=c.useState(null);sn(()=>{if(R&&P.current){const B=getComputedStyle(P.current);M(Number.parseInt(B.marginBottom,10))}},[R,N]);const T=B=>{B||M(null)},D=((B=!1)=>{const H=B?j:u.errors,F=B?I:u.warnings;return yee(H,F,u,"",!!d,l)})(),L=Q(C,n,r,{[`${C}-with-help`]:_||j.length||I.length,[`${C}-has-feedback`]:D&&d,[`${C}-has-success`]:D==="success",[`${C}-has-warning`]:D==="warning",[`${C}-has-error`]:D==="error",[`${C}-is-validating`]:D==="validating",[`${C}-hidden`]:f,[`${C}-${E}`]:E});return c.createElement("div",{className:L,style:o,ref:P},c.createElement(ts,Object.assign({className:`${C}-row`},Xn(w,["_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"])),c.createElement(Y9e,Object.assign({htmlFor:h},e,{requiredMark:S,required:p??b,prefixCls:t,vertical:O})),c.createElement(U9e,Object.assign({},e,u,{errors:j,warnings:I,prefixCls:t,status:D,help:i,marginBottom:A,onErrorVisibleChanged:T}),c.createElement(tJ.Provider,{value:v},c.createElement(fte,{prefixCls:t,meta:u,errors:u.errors,warnings:u.warnings,hasFeedback:d,validateStatus:D,name:x},m)))),!!A&&c.createElement("div",{className:`${C}-margin-offset`,style:{marginBottom:-A}}))}const eHe="__SPLIT__";function tHe(e,t){const n=Object.keys(e),r=Object.keys(t);return n.length===r.length&&n.every(o=>{const i=e[o],a=t[o];return i===a||typeof i=="function"||typeof a=="function"})}const nHe=c.memo(({children:e})=>e,(e,t)=>tHe(e.control,t.control)&&e.update===t.update&&e.childProps.length===t.childProps.length&&e.childProps.every((n,r)=>n===t.childProps[r]));function tF(){return{errors:[],warnings:[],touched:!1,validating:!1,name:[],validated:!1}}function rHe(e){const{name:t,noStyle:n,className:r,dependencies:o,prefixCls:i,shouldUpdate:a,rules:s,children:l,required:u,label:d,messageVariables:f,trigger:m="onChange",validateTrigger:h,hidden:p,help:b,layout:v}=e,{getPrefixCls:y}=c.useContext(kt),{name:x}=c.useContext(Jl),w=L9e(l),C=typeof w=="function",S=c.useContext(tJ),{validateTrigger:$}=c.useContext(Td),E=h!==void 0?h:$,O=t!=null,P=y("form",i),j=Hr(P),[I,_,R]=d3(P,j);pu();const N=c.useContext(Gg),A=c.useRef(null),[M,T]=z9e({}),[k,D]=Rd(()=>tF()),L=te=>{const ee=N==null?void 0:N.getKey(te.name);if(D(te.destroy?tF():te,!0),n&&b!==!1&&S){let z=te.name;if(te.destroy)z=A.current||z;else if(ee!==void 0){const[ne,X]=ee;z=[ne].concat(Ne(X)),A.current=z}S(te,z)}},B=(te,ee)=>{T(z=>{const ne=Object.assign({},z),U=[].concat(Ne(te.name.slice(0,-1)),Ne(ee)).join(eHe);return te.destroy?delete ne[U]:ne[U]=te,ne})},[H,F]=c.useMemo(()=>{const te=Ne(k.errors),ee=Ne(k.warnings);return Object.values(M).forEach(z=>{te.push.apply(te,Ne(z.errors||[])),ee.push.apply(ee,Ne(z.warnings||[]))}),[te,ee]},[M,k.errors,k.warnings]),W=F9e();function q(te,ee,z){return n&&!p?c.createElement(fte,{prefixCls:P,hasFeedback:e.hasFeedback,validateStatus:e.validateStatus,meta:k,errors:H,warnings:F,noStyle:!0,name:t},te):c.createElement(Q9e,Object.assign({key:"row"},e,{className:Q(r,R,j,_),prefixCls:P,fieldId:ee,isRequired:z,errors:H,warnings:F,meta:k,onSubItemMetaChange:B,layout:v,name:t}),te)}if(!O&&!C&&!o)return I(q(w));let G={};return typeof d=="string"?G.label=d:t&&(G.label=String(t)),f&&(G=Object.assign(Object.assign({},G),f)),I(c.createElement($T,Object.assign({},e,{messageVariables:G,trigger:m,validateTrigger:E,onMetaChange:L}),(te,ee,z)=>{const ne=Wp(t).length&&ee?ee.name:[],X=vee(ne,x),U=u!==void 0?u:!!(s!=null&&s.some(ae=>{if(ae&&typeof ae=="object"&&ae.required&&!ae.warningOnly)return!0;if(typeof ae=="function"){const re=ae(z);return(re==null?void 0:re.required)&&!(re!=null&&re.warningOnly)}return!1})),le=Object.assign({},te);let se=null;if(Array.isArray(w)&&O)se=w;else if(!(C&&(!(a||o)||O))){if(!(o&&!C&&!O))if(c.isValidElement(w)){const ae=Object.assign(Object.assign({},w.props),le);if(ae.id||(ae.id=X),b||H.length>0||F.length>0||e.extra){const ye=[];(b||H.length>0)&&ye.push(`${X}_help`),e.extra&&ye.push(`${X}_extra`),ae["aria-describedby"]=ye.join(" ")}H.length>0&&(ae["aria-invalid"]="true"),U&&(ae["aria-required"]="true"),Fs(w)&&(ae.ref=W(ne,w)),new Set([].concat(Ne(Wp(m)),Ne(Wp(E)))).forEach(ye=>{ae[ye]=(...Pe)=>{var Oe,V,J,oe,de;(J=le[ye])===null||J===void 0||(Oe=J).call.apply(Oe,[le].concat(Pe)),(de=(oe=w.props)[ye])===null||de===void 0||(V=de).call.apply(V,[oe].concat(Pe))}});const fe=[ae["aria-required"],ae["aria-invalid"],ae["aria-describedby"]];se=c.createElement(nHe,{control:le,update:w,childProps:fe},qr(w,ae))}else C&&(a||o)&&!O?se=w(z):se=w}return q(se,X,U)}))}const mte=rHe;mte.useStatus=dte;var oHe=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 iHe=e=>{var{prefixCls:t,children:n}=e,r=oHe(e,["prefixCls","children"]);const{getPrefixCls:o}=c.useContext(kt),i=o("form",t),a=c.useMemo(()=>({prefixCls:i,status:"error"}),[i]);return c.createElement(ZZ,Object.assign({},r),(s,l,u)=>c.createElement(OT.Provider,{value:a},n(s.map(d=>Object.assign(Object.assign({},d),{fieldKey:d.key})),l,{errors:u.errors,warnings:u.warnings})))};function aHe(){const{form:e}=c.useContext(Jl);return e}const Lt=D9e;Lt.Item=mte;Lt.List=iHe;Lt.ErrorList=ute;Lt.useForm=bee;Lt.useFormInstance=aHe;Lt.useWatch=eJ;Lt.Provider=nJ;Lt.create=()=>{};var sHe={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"},lHe=function(t,n){return c.createElement(yn,Ee({},t,{ref:n,icon:sHe}))},hte=c.forwardRef(lHe);function nF(e,t,n,r){var o=gg.unstable_batchedUpdates?function(a){gg.unstable_batchedUpdates(n,a)}:n;return e!=null&&e.addEventListener&&e.addEventListener(t,o,r),{remove:function(){e!=null&&e.removeEventListener&&e.removeEventListener(t,o,r)}}}const cHe=e=>{const{getPrefixCls:t,direction:n}=c.useContext(kt),{prefixCls:r,className:o}=e,i=t("input-group",r),a=t("input"),[s,l,u]=Pee(a),d=Q(i,u,{[`${i}-lg`]:e.size==="large",[`${i}-sm`]:e.size==="small",[`${i}-compact`]:e.compact,[`${i}-rtl`]:n==="rtl"},l,o),f=c.useContext(Oo),m=c.useMemo(()=>Object.assign(Object.assign({},f),{isFormItemInput:!1}),[f]);return s(c.createElement("span",{className:d,style:e.style,onMouseEnter:e.onMouseEnter,onMouseLeave:e.onMouseLeave,onFocus:e.onFocus,onBlur:e.onBlur},c.createElement(Oo.Provider,{value:m},e.children)))},uHe=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}}}},dHe=vn(["Input","OTP"],e=>{const t=cn(e,Qd(e));return uHe(t)},ef);var fHe=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 mHe=c.forwardRef((e,t)=>{const{className:n,value:r,onChange:o,onActiveChange:i,index:a,mask:s}=e,l=fHe(e,["className","value","onChange","onActiveChange","index","mask"]),{getPrefixCls:u}=c.useContext(kt),d=u("otp"),f=typeof s=="string"?s:r,m=c.useRef(null);c.useImperativeHandle(t,()=>m.current);const h=v=>{o(a,v.target.value)},p=()=>{ln(()=>{var v;const y=(v=m.current)===null||v===void 0?void 0:v.input;document.activeElement===y&&y&&y.select()})},b=v=>{const{key:y,ctrlKey:x,metaKey:w}=v;y==="ArrowLeft"?i(a-1):y==="ArrowRight"?i(a+1):y==="z"&&(x||w)?v.preventDefault():y==="Backspace"&&!r&&i(a-1),p()};return c.createElement("span",{className:`${d}-input-wrapper`,role:"presentation"},s&&r!==""&&r!==void 0&&c.createElement("span",{className:`${d}-mask-icon`,"aria-hidden":"true"},f),c.createElement(u0,Object.assign({"aria-label":`OTP Input ${a+1}`,type:s===!0?"password":"text"},l,{ref:m,value:r,onInput:h,onFocus:p,onKeyDown:b,onMouseDown:p,onMouseUp:p,className:Q(n,{[`${d}-mask-input`]:s})})))});var hHe=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 wy(e){return(e||"").split("")}const pHe=e=>{const{index:t,prefixCls:n,separator:r}=e,o=typeof r=="function"?r(t):r;return o?c.createElement("span",{className:`${n}-separator`},o):null},gHe=c.forwardRef((e,t)=>{const{prefixCls:n,length:r=6,size:o,defaultValue:i,value:a,onChange:s,formatter:l,separator:u,variant:d,disabled:f,status:m,autoFocus:h,mask:p,type:b,onInput:v,inputMode:y}=e,x=hHe(e,["prefixCls","length","size","defaultValue","value","onChange","formatter","separator","variant","disabled","status","autoFocus","mask","type","onInput","inputMode"]),{getPrefixCls:w,direction:C}=c.useContext(kt),S=w("otp",n),$=Pr(x,{aria:!0,data:!0,attr:!0}),[E,O,P]=dHe(S),j=go(W=>o??W),I=c.useContext(Oo),_=Xd(I.status,m),R=c.useMemo(()=>Object.assign(Object.assign({},I),{status:_,hasFeedback:!1,feedbackIcon:null}),[I,_]),N=c.useRef(null),A=c.useRef({});c.useImperativeHandle(t,()=>({focus:()=>{var W;(W=A.current[0])===null||W===void 0||W.focus()},blur:()=>{var W;for(let q=0;q<r;q+=1)(W=A.current[q])===null||W===void 0||W.blur()},nativeElement:N.current}));const M=W=>l?l(W):W,[T,k]=c.useState(()=>wy(M(i||"")));c.useEffect(()=>{a!==void 0&&k(wy(a))},[a]);const D=fn(W=>{k(W),v&&v(W),s&&W.length===r&&W.every(q=>q)&&W.some((q,G)=>T[G]!==q)&&s(W.join(""))}),L=fn((W,q)=>{let G=Ne(T);for(let ee=0;ee<W;ee+=1)G[ee]||(G[ee]="");q.length<=1?G[W]=q:G=G.slice(0,W).concat(wy(q)),G=G.slice(0,r);for(let ee=G.length-1;ee>=0&&!G[ee];ee-=1)G.pop();const te=M(G.map(ee=>ee||" ").join(""));return G=wy(te).map((ee,z)=>ee===" "&&!G[z]?G[z]:ee),G}),B=(W,q)=>{var G;const te=L(W,q),ee=Math.min(W+q.length,r-1);ee!==W&&te[W]!==void 0&&((G=A.current[ee])===null||G===void 0||G.focus()),D(te)},H=W=>{var q;(q=A.current[W])===null||q===void 0||q.focus()},F={variant:d,disabled:f,status:_,mask:p,type:b,inputMode:y};return E(c.createElement("div",Object.assign({},$,{ref:N,className:Q(S,{[`${S}-sm`]:j==="small",[`${S}-lg`]:j==="large",[`${S}-rtl`]:C==="rtl"},P,O),role:"group"}),c.createElement(Oo.Provider,{value:R},Array.from({length:r}).map((W,q)=>{const G=`otp-${q}`,te=T[q]||"";return c.createElement(c.Fragment,{key:G},c.createElement(mHe,Object.assign({ref:ee=>{A.current[q]=ee},index:q,size:j,htmlSize:1,className:`${S}-input`,onChange:B,value:te,onActiveChange:H,autoFocus:q===0&&h},F)),q<r-1&&c.createElement(pHe,{separator:u,index:q,prefixCls:S}))}))))});var vHe={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"},yHe=function(t,n){return c.createElement(yn,Ee({},t,{ref:n,icon:vHe}))},bHe=c.forwardRef(yHe),xHe=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 wHe=e=>e?c.createElement(hte,null):c.createElement(bHe,null),SHe={click:"onClick",hover:"onMouseOver"},CHe=c.forwardRef((e,t)=>{const{disabled:n,action:r="click",visibilityToggle:o=!0,iconRender:i=wHe,suffix:a}=e,s=c.useContext(ai),l=n??s,u=typeof o=="object"&&o.visible!==void 0,[d,f]=c.useState(()=>u?o.visible:!1),m=c.useRef(null);c.useEffect(()=>{u&&f(o.visible)},[u,o]);const h=qee(m),p=()=>{var I;if(l)return;d&&h();const _=!d;f(_),typeof o=="object"&&((I=o.onVisibleChange)===null||I===void 0||I.call(o,_))},b=I=>{const _=SHe[r]||"",R=i(d),N={[_]:p,className:`${I}-icon`,key:"passwordIcon",onMouseDown:A=>{A.preventDefault()},onMouseUp:A=>{A.preventDefault()}};return c.cloneElement(c.isValidElement(R)?R:c.createElement("span",null,R),N)},{className:v,prefixCls:y,inputPrefixCls:x,size:w}=e,C=xHe(e,["className","prefixCls","inputPrefixCls","size"]),{getPrefixCls:S}=c.useContext(kt),$=S("input",x),E=S("input-password",y),O=o&&b(E),P=Q(E,v,{[`${E}-${w}`]:!!w}),j=Object.assign(Object.assign({},Xn(C,["suffix","iconRender","visibilityToggle"])),{type:d?"text":"password",className:P,prefixCls:$,suffix:c.createElement(c.Fragment,null,O,a)});return w&&(j.size=w),c.createElement(u0,Object.assign({ref:po(t,m)},j))});var $He=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 EHe=c.forwardRef((e,t)=>{const{prefixCls:n,inputPrefixCls:r,className:o,size:i,suffix:a,enterButton:s=!1,addonAfter:l,loading:u,disabled:d,onSearch:f,onChange:m,onCompositionStart:h,onCompositionEnd:p,variant:b,onPressEnter:v}=e,y=$He(e,["prefixCls","inputPrefixCls","className","size","suffix","enterButton","addonAfter","loading","disabled","onSearch","onChange","onCompositionStart","onCompositionEnd","variant","onPressEnter"]),{getPrefixCls:x,direction:w}=c.useContext(kt),C=c.useRef(!1),S=x("input-search",n),$=x("input",r),{compactSize:E}=uc(S,w),O=go(F=>{var W;return(W=i??E)!==null&&W!==void 0?W:F}),P=c.useRef(null),j=F=>{F!=null&&F.target&&F.type==="click"&&f&&f(F.target.value,F,{source:"clear"}),m==null||m(F)},I=F=>{var W;document.activeElement===((W=P.current)===null||W===void 0?void 0:W.input)&&F.preventDefault()},_=F=>{var W,q;f&&f((q=(W=P.current)===null||W===void 0?void 0:W.input)===null||q===void 0?void 0:q.value,F,{source:"input"})},R=F=>{C.current||u||(v==null||v(F),_(F))},N=typeof s=="boolean"?c.createElement(MT,null):null,A=`${S}-button`;let M;const T=s||{},k=T.type&&T.type.__ANT_BUTTON===!0;k||T.type==="button"?M=qr(T,Object.assign({onMouseDown:I,onClick:F=>{var W,q;(q=(W=T==null?void 0:T.props)===null||W===void 0?void 0:W.onClick)===null||q===void 0||q.call(W,F),_(F)},key:"enterButton"},k?{className:A,size:O}:{})):M=c.createElement(gt,{className:A,color:s?"primary":"default",size:O,disabled:d,key:"enterButton",onMouseDown:I,onClick:_,loading:u,icon:N,variant:b==="borderless"||b==="filled"||b==="underlined"?"text":s?"solid":void 0},s),l&&(M=[M,qr(l,{key:"addonAfter"})]);const D=Q(S,{[`${S}-rtl`]:w==="rtl",[`${S}-${O}`]:!!O,[`${S}-with-button`]:!!s},o),L=F=>{C.current=!0,h==null||h(F)},B=F=>{C.current=!1,p==null||p(F)},H=Object.assign(Object.assign({},y),{className:D,prefixCls:$,type:"search",size:O,variant:b,onPressEnter:R,onCompositionStart:L,onCompositionEnd:B,addonAfter:M,suffix:a,onChange:j,disabled:d});return c.createElement(u0,Object.assign({ref:po(P,t)},H))});var OHe=`
  min-height:0 !important;
  max-height:none !important;
  height:0 !important;
  visibility:hidden !important;
  overflow:hidden !important;
  position:absolute !important;
  z-index:-1000 !important;
  top:0 !important;
  right:0 !important;
  pointer-events: none !important;
`,PHe=["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"],P2={},ga;function jHe(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&&P2[n])return P2[n];var r=window.getComputedStyle(e),o=r.getPropertyValue("box-sizing")||r.getPropertyValue("-moz-box-sizing")||r.getPropertyValue("-webkit-box-sizing"),i=parseFloat(r.getPropertyValue("padding-bottom"))+parseFloat(r.getPropertyValue("padding-top")),a=parseFloat(r.getPropertyValue("border-bottom-width"))+parseFloat(r.getPropertyValue("border-top-width")),s=PHe.map(function(u){return"".concat(u,":").concat(r.getPropertyValue(u))}).join(";"),l={sizingStyle:s,paddingSize:i,borderSize:a,boxSizing:o};return t&&n&&(P2[n]=l),l}function IHe(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;ga||(ga=document.createElement("textarea"),ga.setAttribute("tab-index","-1"),ga.setAttribute("aria-hidden","true"),ga.setAttribute("name","hiddenTextarea"),document.body.appendChild(ga)),e.getAttribute("wrap")?ga.setAttribute("wrap",e.getAttribute("wrap")):ga.removeAttribute("wrap");var o=jHe(e,t),i=o.paddingSize,a=o.borderSize,s=o.boxSizing,l=o.sizingStyle;ga.setAttribute("style","".concat(l,";").concat(OHe)),ga.value=e.value||e.placeholder||"";var u=void 0,d=void 0,f,m=ga.scrollHeight;if(s==="border-box"?m+=a:s==="content-box"&&(m-=i),n!==null||r!==null){ga.value=" ";var h=ga.scrollHeight-i;n!==null&&(u=h*n,s==="border-box"&&(u=u+i+a),m=Math.max(u,m)),r!==null&&(d=h*r,s==="border-box"&&(d=d+i+a),f=m>d?"":"hidden",m=Math.min(d,m))}var p={height:m,overflowY:f,resize:"none"};return u&&(p.minHeight=u),d&&(p.maxHeight=d),p}var _He=["prefixCls","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],j2=0,I2=1,_2=2,NHe=c.forwardRef(function(e,t){var n=e,r=n.prefixCls,o=n.defaultValue,i=n.value,a=n.autoSize,s=n.onResize,l=n.className,u=n.style,d=n.disabled,f=n.onChange;n.onInternalAutoSize;var m=Ht(n,_He),h=kn(o,{value:i,postState:function(F){return F??""}}),p=ue(h,2),b=p[0],v=p[1],y=function(F){v(F.target.value),f==null||f(F)},x=c.useRef();c.useImperativeHandle(t,function(){return{textArea:x.current}});var w=c.useMemo(function(){return a&&_t(a)==="object"?[a.minRows,a.maxRows]:[]},[a]),C=ue(w,2),S=C[0],$=C[1],E=!!a,O=c.useState(_2),P=ue(O,2),j=P[0],I=P[1],_=c.useState(),R=ue(_,2),N=R[0],A=R[1],M=function(){I(j2)};sn(function(){E&&M()},[i,S,$,E]),sn(function(){if(j===j2)I(I2);else if(j===I2){var H=IHe(x.current,!1,S,$);I(_2),A(H)}},[j]);var T=c.useRef(),k=function(){ln.cancel(T.current)},D=function(F){j===_2&&(s==null||s(F),a&&(k(),T.current=ln(function(){M()})))};c.useEffect(function(){return k},[]);var L=E?N:null,B=Y(Y({},u),L);return(j===j2||j===I2)&&(B.overflowY="hidden",B.overflowX="hidden"),c.createElement(Wo,{onResize:D,disabled:!(a||s)},c.createElement("textarea",Ee({},m,{ref:x,style:B,className:Q(r,l,K({},"".concat(r,"-disabled"),d)),disabled:d,value:b,onChange:y})))}),RHe=["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"],THe=ce.forwardRef(function(e,t){var n,r=e.defaultValue,o=e.value,i=e.onFocus,a=e.onBlur,s=e.onChange,l=e.allowClear,u=e.maxLength,d=e.onCompositionStart,f=e.onCompositionEnd,m=e.suffix,h=e.prefixCls,p=h===void 0?"rc-textarea":h,b=e.showCount,v=e.count,y=e.className,x=e.style,w=e.disabled,C=e.hidden,S=e.classNames,$=e.styles,E=e.onResize,O=e.onClear,P=e.onPressEnter,j=e.readOnly,I=e.autoSize,_=e.onKeyDown,R=Ht(e,RHe),N=kn(r,{value:o,defaultValue:r}),A=ue(N,2),M=A[0],T=A[1],k=M==null?"":String(M),D=ce.useState(!1),L=ue(D,2),B=L[0],H=L[1],F=ce.useRef(!1),W=ce.useState(null),q=ue(W,2),G=q[0],te=q[1],ee=c.useRef(null),z=c.useRef(null),ne=function(){var we;return(we=z.current)===null||we===void 0?void 0:we.textArea},X=function(){ne().focus()};c.useImperativeHandle(t,function(){var _e;return{resizableTextArea:z.current,focus:X,blur:function(){ne().blur()},nativeElement:((_e=ee.current)===null||_e===void 0?void 0:_e.nativeElement)||ne()}}),c.useEffect(function(){H(function(_e){return!w&&_e})},[w]);var U=ce.useState(null),le=ue(U,2),se=le[0],ae=le[1];ce.useEffect(function(){if(se){var _e;(_e=ne()).setSelectionRange.apply(_e,Ne(se))}},[se]);var re=Wee(v,b),fe=(n=re.max)!==null&&n!==void 0?n:u,ye=Number(fe)>0,Pe=re.strategy(k),Oe=!!fe&&Pe>fe,V=function(we,$e){var ve=$e;!F.current&&re.exceedFormatter&&re.max&&re.strategy($e)>re.max&&(ve=re.exceedFormatter($e,{max:re.max}),$e!==ve&&ae([ne().selectionStart||0,ne().selectionEnd||0])),T(ve),u1(we.currentTarget,we,s,ve)},J=function(we){F.current=!0,d==null||d(we)},oe=function(we){F.current=!1,V(we,we.currentTarget.value),f==null||f(we)},de=function(we){V(we,we.target.value)},be=function(we){we.key==="Enter"&&P&&P(we),_==null||_(we)},ge=function(we){H(!0),i==null||i(we)},ie=function(we){H(!1),a==null||a(we)},he=function(we){T(""),X(),u1(ne(),we,s)},xe=m,Re;re.show&&(re.showFormatter?Re=re.showFormatter({value:k,count:Pe,maxLength:fe}):Re="".concat(Pe).concat(ye?" / ".concat(fe):""),xe=ce.createElement(ce.Fragment,null,xe,ce.createElement("span",{className:Q("".concat(p,"-data-count"),S==null?void 0:S.count),style:$==null?void 0:$.count},Re)));var Ce=function(we){var $e;E==null||E(we),($e=ne())!==null&&$e!==void 0&&$e.style.height&&te(!0)},pe=!I&&!b&&!l;return ce.createElement(c3,{ref:ee,value:k,allowClear:l,handleReset:he,suffix:xe,prefixCls:p,classNames:Y(Y({},S),{},{affixWrapper:Q(S==null?void 0:S.affixWrapper,K(K({},"".concat(p,"-show-count"),b),"".concat(p,"-textarea-allow-clear"),l))}),disabled:w,focused:B,className:Q(y,Oe&&"".concat(p,"-out-of-range")),style:Y(Y({},x),G&&!pe?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof Re=="string"?Re:void 0}},hidden:C,readOnly:j,onClear:O},ce.createElement(NHe,Ee({},R,{autoSize:I,maxLength:u,onKeyDown:be,onChange:de,onFocus:ge,onBlur:ie,onCompositionStart:J,onCompositionEnd:oe,className:Q(S==null?void 0:S.textarea),style:Y(Y({},$==null?void 0:$.textarea),{},{resize:x==null?void 0:x.resize}),disabled:w,prefixCls:p,onResize:Ce,ref:z,readOnly:j})))});const MHe=e=>{const{componentCls:t,paddingLG:n}=e,r=`${t}-textarea`;return{[`textarea${t}`]:{maxWidth:"100%",height:"auto",minHeight:e.controlHeight,lineHeight:e.lineHeight,verticalAlign:"bottom",transition:`all ${e.motionDurationSlow}`,resize:"vertical",[`&${t}-mouse-active`]:{transition:`all ${e.motionDurationSlow}, height 0s, width 0s`}},[`${t}-textarea-affix-wrapper-resize-dirty`]:{width:"auto"},[r]:{position:"relative","&-show-count":{[`${t}-data-count`]:{position:"absolute",bottom:e.calc(e.fontSize).mul(e.lineHeight).mul(-1).equal(),insetInlineEnd:0,color:e.colorTextDescription,whiteSpace:"nowrap",pointerEvents:"none"}},[`
        &-allow-clear > ${t},
        &-affix-wrapper${r}-has-feedback ${t}
      `]:{paddingInlineEnd:n},[`&-affix-wrapper${t}-affix-wrapper`]:{padding:0,[`> textarea${t}`]:{fontSize:"inherit",border:"none",outline:"none",background:"transparent",minHeight:e.calc(e.controlHeight).sub(e.calc(e.lineWidth).mul(2)).equal(),"&:focus":{boxShadow:"none !important"}},[`${t}-suffix`]:{margin:0,"> *:not(:last-child)":{marginInline:0},[`${t}-clear-icon`]:{position:"absolute",insetInlineEnd:e.paddingInline,insetBlockStart:e.paddingXS},[`${r}-suffix`]:{position:"absolute",top:0,insetInlineEnd:e.paddingInline,bottom:0,zIndex:1,display:"inline-flex",alignItems:"center",margin:"auto",pointerEvents:"none"}}},[`&-affix-wrapper${t}-affix-wrapper-rtl`]:{[`${t}-suffix`]:{[`${t}-data-count`]:{direction:"ltr",insetInlineStart:0}}},[`&-affix-wrapper${t}-affix-wrapper-sm`]:{[`${t}-suffix`]:{[`${t}-clear-icon`]:{insetInlineEnd:e.paddingInlineSM}}}}}},kHe=vn(["Input","TextArea"],e=>{const t=cn(e,Qd(e));return MHe(t)},ef,{resetFont:!1});var AHe=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 pte=c.forwardRef((e,t)=>{var n;const{prefixCls:r,bordered:o=!0,size:i,disabled:a,status:s,allowClear:l,classNames:u,rootClassName:d,className:f,style:m,styles:h,variant:p,showCount:b,onMouseDown:v,onResize:y}=e,x=AHe(e,["prefixCls","bordered","size","disabled","status","allowClear","classNames","rootClassName","className","style","styles","variant","showCount","onMouseDown","onResize"]),{getPrefixCls:w,direction:C,allowClear:S,autoComplete:$,className:E,style:O,classNames:P,styles:j}=Br("textArea"),I=c.useContext(ai),_=a??I,{status:R,hasFeedback:N,feedbackIcon:A}=c.useContext(Oo),M=Xd(R,s),T=c.useRef(null);c.useImperativeHandle(t,()=>{var re;return{resizableTextArea:(re=T.current)===null||re===void 0?void 0:re.resizableTextArea,focus:fe=>{var ye,Pe;l3((Pe=(ye=T.current)===null||ye===void 0?void 0:ye.resizableTextArea)===null||Pe===void 0?void 0:Pe.textArea,fe)},blur:()=>{var fe;return(fe=T.current)===null||fe===void 0?void 0:fe.blur()}}});const k=w("input",r),D=Hr(k),[L,B,H]=Oee(k,d),[F]=kHe(k,D),{compactSize:W,compactItemClassnames:q}=uc(k,C),G=go(re=>{var fe;return(fe=i??W)!==null&&fe!==void 0?fe:re}),[te,ee]=Yd("textArea",p,o),z=Kee(l??S),[ne,X]=c.useState(!1),[U,le]=c.useState(!1),se=re=>{X(!0),v==null||v(re);const fe=()=>{X(!1),document.removeEventListener("mouseup",fe)};document.addEventListener("mouseup",fe)},ae=re=>{var fe,ye;if(y==null||y(re),ne&&typeof getComputedStyle=="function"){const Pe=(ye=(fe=T.current)===null||fe===void 0?void 0:fe.nativeElement)===null||ye===void 0?void 0:ye.querySelector("textarea");Pe&&getComputedStyle(Pe).resize==="both"&&le(!0)}};return L(F(c.createElement(THe,Object.assign({autoComplete:$},x,{style:Object.assign(Object.assign({},O),m),styles:Object.assign(Object.assign({},j),h),disabled:_,allowClear:z,className:Q(H,D,f,d,q,E,U&&`${k}-textarea-affix-wrapper-resize-dirty`),classNames:Object.assign(Object.assign(Object.assign({},u),P),{textarea:Q({[`${k}-sm`]:G==="small",[`${k}-lg`]:G==="large"},B,u==null?void 0:u.textarea,P.textarea,ne&&`${k}-mouse-active`),variant:Q({[`${k}-${te}`]:ee},Qc(k,M)),affixWrapper:Q(`${k}-textarea-affix-wrapper`,{[`${k}-affix-wrapper-rtl`]:C==="rtl",[`${k}-affix-wrapper-sm`]:G==="small",[`${k}-affix-wrapper-lg`]:G==="large",[`${k}-textarea-show-count`]:b||((n=e.count)===null||n===void 0?void 0:n.show)},B)}),prefixCls:k,suffix:N&&c.createElement("span",{className:`${k}-textarea-suffix`},A),showCount:b,ref:T,onResize:ae,onMouseDown:se}))))}),Sn=u0;Sn.Group=cHe;Sn.Search=EHe;Sn.TextArea=pte;Sn.Password=CHe;Sn.OTP=gHe;function DHe(e,t,n){return typeof n=="boolean"?n:e.length?!0:ii(t).some(o=>o.type===CQ)}var gte=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 iC({suffixCls:e,tagName:t,displayName:n}){return r=>c.forwardRef((i,a)=>c.createElement(r,Object.assign({ref:a,suffixCls:e,tagName:t},i)))}const f3=c.forwardRef((e,t)=>{const{prefixCls:n,suffixCls:r,className:o,tagName:i}=e,a=gte(e,["prefixCls","suffixCls","className","tagName"]),{getPrefixCls:s}=c.useContext(kt),l=s("layout",n),[u,d,f]=SQ(l),m=r?`${l}-${r}`:l;return u(c.createElement(i,Object.assign({className:Q(n||m,o,d,f),ref:t},a)))}),LHe=c.forwardRef((e,t)=>{const{direction:n}=c.useContext(kt),[r,o]=c.useState([]),{prefixCls:i,className:a,rootClassName:s,children:l,hasSider:u,tagName:d,style:f}=e,m=gte(e,["prefixCls","className","rootClassName","children","hasSider","tagName","style"]),h=Xn(m,["suffixCls"]),{getPrefixCls:p,className:b,style:v}=Br("layout"),y=p("layout",i),x=DHe(r,l,u),[w,C,S]=SQ(y),$=Q(y,{[`${y}-has-sider`]:x,[`${y}-rtl`]:n==="rtl"},b,a,s,C,S),E=c.useMemo(()=>({siderHook:{addSider:O=>{o(P=>[].concat(Ne(P),[O]))},removeSider:O=>{o(P=>P.filter(j=>j!==O))}}}),[]);return w(c.createElement(bQ.Provider,{value:E},c.createElement(d,Object.assign({ref:t,className:$,style:Object.assign(Object.assign({},v),f)},h),l)))}),zHe=iC({tagName:"div",displayName:"Layout"})(LHe),FHe=iC({suffixCls:"header",tagName:"header",displayName:"Header"})(f3),BHe=iC({suffixCls:"footer",tagName:"footer",displayName:"Footer"})(f3),HHe=iC({suffixCls:"content",tagName:"main",displayName:"Content"})(f3),Ni=zHe;Ni.Header=FHe;Ni.Footer=BHe;Ni.Content=HHe;Ni.Sider=CQ;Ni._InternalSiderContext=GS;var VHe={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"},WHe=function(t,n){return c.createElement(yn,Ee({},t,{ref:n,icon:VHe}))},rF=c.forwardRef(WHe),UHe={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"},KHe=function(t,n){return c.createElement(yn,Ee({},t,{ref:n,icon:UHe}))},oF=c.forwardRef(KHe),qHe={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:"页码"},GHe=[10,20,50,100],XHe=function(t){var n=t.pageSizeOptions,r=n===void 0?GHe:n,o=t.locale,i=t.changeSize,a=t.pageSize,s=t.goButton,l=t.quickGo,u=t.rootPrefixCls,d=t.disabled,f=t.buildOptionText,m=t.showSizeChanger,h=t.sizeChangerRender,p=ce.useState(""),b=ue(p,2),v=b[0],y=b[1],x=function(){return!v||Number.isNaN(v)?void 0:Number(v)},w=typeof f=="function"?f:function(_){return"".concat(_," ").concat(o.items_per_page)},C=function(R){y(R.target.value)},S=function(R){s||v===""||(y(""),!(R.relatedTarget&&(R.relatedTarget.className.indexOf("".concat(u,"-item-link"))>=0||R.relatedTarget.className.indexOf("".concat(u,"-item"))>=0))&&(l==null||l(x())))},$=function(R){v!==""&&(R.keyCode===jt.ENTER||R.type==="click")&&(y(""),l==null||l(x()))},E=function(){return r.some(function(R){return R.toString()===a.toString()})?r:r.concat([a]).sort(function(R,N){var A=Number.isNaN(Number(R))?0:Number(R),M=Number.isNaN(Number(N))?0:Number(N);return A-M})},O="".concat(u,"-options");if(!m&&!l)return null;var P=null,j=null,I=null;return m&&h&&(P=h({disabled:d,size:a,onSizeChange:function(R){i==null||i(Number(R))},"aria-label":o.page_size,className:"".concat(O,"-size-changer"),options:E().map(function(_){return{label:w(_),value:_}})})),l&&(s&&(I=typeof s=="boolean"?ce.createElement("button",{type:"button",onClick:$,onKeyUp:$,disabled:d,className:"".concat(O,"-quick-jumper-button")},o.jump_to_confirm):ce.createElement("span",{onClick:$,onKeyUp:$},s)),j=ce.createElement("div",{className:"".concat(O,"-quick-jumper")},o.jump_to,ce.createElement("input",{disabled:d,type:"text",value:v,onChange:C,onKeyUp:$,onBlur:S,"aria-label":o.page}),o.page,I)),ce.createElement("li",{className:O},P,j)},dp=function(t){var n=t.rootPrefixCls,r=t.page,o=t.active,i=t.className,a=t.showTitle,s=t.onClick,l=t.onKeyPress,u=t.itemRender,d="".concat(n,"-item"),f=Q(d,"".concat(d,"-").concat(r),K(K({},"".concat(d,"-active"),o),"".concat(d,"-disabled"),!r),i),m=function(){s(r)},h=function(v){l(v,s,r)},p=u(r,"page",ce.createElement("a",{rel:"nofollow"},r));return p?ce.createElement("li",{title:a?String(r):null,className:f,onClick:m,onKeyDown:h,tabIndex:0},p):null},YHe=function(t,n,r){return r};function iF(){}function aF(e){var t=Number(e);return typeof t=="number"&&!Number.isNaN(t)&&isFinite(t)&&Math.floor(t)===t}function Ou(e,t,n){var r=typeof e>"u"?t:e;return Math.floor((n-1)/r)+1}var ZHe=function(t){var n=t.prefixCls,r=n===void 0?"rc-pagination":n,o=t.selectPrefixCls,i=o===void 0?"rc-select":o,a=t.className,s=t.current,l=t.defaultCurrent,u=l===void 0?1:l,d=t.total,f=d===void 0?0:d,m=t.pageSize,h=t.defaultPageSize,p=h===void 0?10:h,b=t.onChange,v=b===void 0?iF:b,y=t.hideOnSinglePage,x=t.align,w=t.showPrevNextJumpers,C=w===void 0?!0:w,S=t.showQuickJumper,$=t.showLessItems,E=t.showTitle,O=E===void 0?!0:E,P=t.onShowSizeChange,j=P===void 0?iF:P,I=t.locale,_=I===void 0?qHe:I,R=t.style,N=t.totalBoundaryShowSizeChanger,A=N===void 0?50:N,M=t.disabled,T=t.simple,k=t.showTotal,D=t.showSizeChanger,L=D===void 0?f>A:D,B=t.sizeChangerRender,H=t.pageSizeOptions,F=t.itemRender,W=F===void 0?YHe:F,q=t.jumpPrevIcon,G=t.jumpNextIcon,te=t.prevIcon,ee=t.nextIcon,z=ce.useRef(null),ne=kn(10,{value:m,defaultValue:p}),X=ue(ne,2),U=X[0],le=X[1],se=kn(1,{value:s,defaultValue:u,postState:function(It){return Math.max(1,Math.min(It,Ou(void 0,U,f)))}}),ae=ue(se,2),re=ae[0],fe=ae[1],ye=ce.useState(re),Pe=ue(ye,2),Oe=Pe[0],V=Pe[1];c.useEffect(function(){V(re)},[re]);var J=Math.max(1,re-($?3:5)),oe=Math.min(Ou(void 0,U,f),re+($?3:5));function de(bt,It){var qt=bt||ce.createElement("button",{type:"button","aria-label":It,className:"".concat(r,"-item-link")});return typeof bt=="function"&&(qt=ce.createElement(bt,Y({},t))),qt}function be(bt){var It=bt.target.value,qt=Ou(void 0,U,f),In;return It===""?In=It:Number.isNaN(Number(It))?In=Oe:It>=qt?In=qt:In=Number(It),In}function ge(bt){return aF(bt)&&bt!==re&&aF(f)&&f>0}var ie=f>U?S:!1;function he(bt){(bt.keyCode===jt.UP||bt.keyCode===jt.DOWN)&&bt.preventDefault()}function xe(bt){var It=be(bt);switch(It!==Oe&&V(It),bt.keyCode){case jt.ENTER:pe(It);break;case jt.UP:pe(It-1);break;case jt.DOWN:pe(It+1);break}}function Re(bt){pe(be(bt))}function Ce(bt){var It=Ou(bt,U,f),qt=re>It&&It!==0?It:re;le(bt),V(qt),j==null||j(re,bt),fe(qt),v==null||v(qt,bt)}function pe(bt){if(ge(bt)&&!M){var It=Ou(void 0,U,f),qt=bt;return bt>It?qt=It:bt<1&&(qt=1),qt!==Oe&&V(qt),fe(qt),v==null||v(qt,U),qt}return re}var _e=re>1,we=re<Ou(void 0,U,f);function $e(){_e&&pe(re-1)}function ve(){we&&pe(re+1)}function me(){pe(J)}function Se(){pe(oe)}function De(bt,It){if(bt.key==="Enter"||bt.charCode===jt.ENTER||bt.keyCode===jt.ENTER){for(var qt=arguments.length,In=new Array(qt>2?qt-2:0),An=2;An<qt;An++)In[An-2]=arguments[An];It.apply(void 0,In)}}function et(bt){De(bt,$e)}function rt(bt){De(bt,ve)}function Me(bt){De(bt,me)}function We(bt){De(bt,Se)}function Qe(bt){var It=W(bt,"prev",de(te,"prev page"));return ce.isValidElement(It)?ce.cloneElement(It,{disabled:!_e}):It}function Ge(bt){var It=W(bt,"next",de(ee,"next page"));return ce.isValidElement(It)?ce.cloneElement(It,{disabled:!we}):It}function tt(bt){(bt.type==="click"||bt.keyCode===jt.ENTER)&&pe(Oe)}var ke=null,xt=Pr(t,{aria:!0,data:!0}),Ze=k&&ce.createElement("li",{className:"".concat(r,"-total-text")},k(f,[f===0?0:(re-1)*U+1,re*U>f?f:re*U])),nt=null,Be=Ou(void 0,U,f);if(y&&f<=U)return null;var Le=[],Ie={rootPrefixCls:r,onClick:pe,onKeyPress:De,showTitle:O,itemRender:W,page:-1},Te=re-1>0?re-1:0,Xe=re+1<Be?re+1:Be,lt=S&&S.goButton,mt=_t(T)==="object"?T.readOnly:!T,Ot=lt,dt=null;T&&(lt&&(typeof lt=="boolean"?Ot=ce.createElement("button",{type:"button",onClick:tt,onKeyUp:tt},_.jump_to_confirm):Ot=ce.createElement("span",{onClick:tt,onKeyUp:tt},lt),Ot=ce.createElement("li",{title:O?"".concat(_.jump_to).concat(re,"/").concat(Be):null,className:"".concat(r,"-simple-pager")},Ot)),dt=ce.createElement("li",{title:O?"".concat(re,"/").concat(Be):null,className:"".concat(r,"-simple-pager")},mt?Oe:ce.createElement("input",{type:"text","aria-label":_.jump_to,value:Oe,disabled:M,onKeyDown:he,onKeyUp:xe,onChange:xe,onBlur:Re,size:3}),ce.createElement("span",{className:"".concat(r,"-slash")},"/"),Be));var qe=$?1:2;if(Be<=3+qe*2){Be||Le.push(ce.createElement(dp,Ee({},Ie,{key:"noPager",page:1,className:"".concat(r,"-item-disabled")})));for(var ht=1;ht<=Be;ht+=1)Le.push(ce.createElement(dp,Ee({},Ie,{key:ht,page:ht,active:re===ht})))}else{var zt=$?_.prev_3:_.prev_5,Vt=$?_.next_3:_.next_5,Nt=W(J,"jump-prev",de(q,"prev page")),ft=W(oe,"jump-next",de(G,"next page"));C&&(ke=Nt?ce.createElement("li",{title:O?zt:null,key:"prev",onClick:me,tabIndex:0,onKeyDown:Me,className:Q("".concat(r,"-jump-prev"),K({},"".concat(r,"-jump-prev-custom-icon"),!!q))},Nt):null,nt=ft?ce.createElement("li",{title:O?Vt:null,key:"next",onClick:Se,tabIndex:0,onKeyDown:We,className:Q("".concat(r,"-jump-next"),K({},"".concat(r,"-jump-next-custom-icon"),!!G))},ft):null);var ot=Math.max(1,re-qe),Ft=Math.min(re+qe,Be);re-1<=qe&&(Ft=1+qe*2),Be-re<=qe&&(ot=Be-qe*2);for(var Ue=ot;Ue<=Ft;Ue+=1)Le.push(ce.createElement(dp,Ee({},Ie,{key:Ue,page:Ue,active:re===Ue})));if(re-1>=qe*2&&re!==3&&(Le[0]=ce.cloneElement(Le[0],{className:Q("".concat(r,"-item-after-jump-prev"),Le[0].props.className)}),Le.unshift(ke)),Be-re>=qe*2&&re!==Be-2){var Je=Le[Le.length-1];Le[Le.length-1]=ce.cloneElement(Je,{className:Q("".concat(r,"-item-before-jump-next"),Je.props.className)}),Le.push(nt)}ot!==1&&Le.unshift(ce.createElement(dp,Ee({},Ie,{key:1,page:1}))),Ft!==Be&&Le.push(ce.createElement(dp,Ee({},Ie,{key:Be,page:Be})))}var vt=Qe(Te);if(vt){var yt=!_e||!Be;vt=ce.createElement("li",{title:O?_.prev_page:null,onClick:$e,tabIndex:yt?null:0,onKeyDown:et,className:Q("".concat(r,"-prev"),K({},"".concat(r,"-disabled"),yt)),"aria-disabled":yt},vt)}var Ye=Ge(Xe);if(Ye){var st,wt;T?(st=!we,wt=_e?0:null):(st=!we||!Be,wt=st?null:0),Ye=ce.createElement("li",{title:O?_.next_page:null,onClick:ve,tabIndex:wt,onKeyDown:rt,className:Q("".concat(r,"-next"),K({},"".concat(r,"-disabled"),st)),"aria-disabled":st},Ye)}var Kt=Q(r,a,K(K(K(K(K({},"".concat(r,"-start"),x==="start"),"".concat(r,"-center"),x==="center"),"".concat(r,"-end"),x==="end"),"".concat(r,"-simple"),T),"".concat(r,"-disabled"),M));return ce.createElement("ul",Ee({className:Kt,style:R,ref:z},xt),Ze,vt,T?dt:Le,Ye,ce.createElement(XHe,{locale:_,rootPrefixCls:r,disabled:M,selectPrefixCls:i,changeSize:Ce,pageSize:U,pageSizeOptions:H,quickGo:ie?pe:null,goButton:Ot,showSizeChanger:L,sizeChangerRender:B}))};const JHe=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}}}}},QHe=e=>{const{componentCls:t}=e;return{[`&${t}-mini ${t}-total-text, &${t}-mini ${t}-simple-pager`]:{height:e.itemSizeSM,lineHeight:Z(e.itemSizeSM)},[`&${t}-mini ${t}-item`]:{minWidth:e.itemSizeSM,height:e.itemSizeSM,margin:0,lineHeight:Z(e.calc(e.itemSizeSM).sub(2).equal())},[`&${t}-mini ${t}-prev, &${t}-mini ${t}-next`]:{minWidth:e.itemSizeSM,height:e.itemSizeSM,margin:0,lineHeight:Z(e.itemSizeSM)},[`&${t}-mini:not(${t}-disabled)`]:{[`${t}-prev, ${t}-next`]:{[`&:hover ${t}-item-link`]:{backgroundColor:e.colorBgTextHover},[`&:active ${t}-item-link`]:{backgroundColor:e.colorBgTextActive},[`&${t}-disabled:hover ${t}-item-link`]:{backgroundColor:"transparent"}}},[`
    &${t}-mini ${t}-prev ${t}-item-link,
    &${t}-mini ${t}-next ${t}-item-link
    `]:{backgroundColor:"transparent",borderColor:"transparent","&::after":{height:e.itemSizeSM,lineHeight:Z(e.itemSizeSM)}},[`&${t}-mini ${t}-jump-prev, &${t}-mini ${t}-jump-next`]:{height:e.itemSizeSM,marginInlineEnd:0,lineHeight:Z(e.itemSizeSM)},[`&${t}-mini ${t}-options`]:{marginInlineStart:e.paginationMiniOptionsMarginInlineStart,"&-size-changer":{top:e.miniOptionsSizeChangerTop},"&-quick-jumper":{height:e.itemSizeSM,lineHeight:Z(e.itemSizeSM),input:Object.assign(Object.assign({},r3(e)),{width:e.paginationMiniQuickJumperInputWidth,height:e.controlHeightSM})}}}},eVe=e=>{const{componentCls:t}=e;return{[`&${t}-simple`]:{[`${t}-prev, ${t}-next`]:{height:e.itemSize,lineHeight:Z(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:Z(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 ${Z(e.paginationItemPaddingInline)}`,textAlign:"center",backgroundColor:e.itemInputBg,border:`${Z(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:`${Z(e.inputOutlineOffset)} 0 ${Z(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:Z(e.itemSizeSM),[`${t}-item-link`]:{height:e.itemSizeSM,"&::after":{height:e.itemSizeSM,lineHeight:Z(e.itemSizeSM)}}},[`${t}-simple-pager`]:{height:e.itemSizeSM,input:{width:e.paginationMiniQuickJumperInputWidth}}}}}},tVe=e=>{const{componentCls:t}=e;return{[`${t}-jump-prev, ${t}-jump-next`]:{outline:0,[`${t}-item-container`]:{position:"relative",[`${t}-item-link-icon`]:{color:e.colorPrimary,fontSize:e.fontSizeSM,opacity:0,transition:`all ${e.motionDurationMid}`,"&-svg":{top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,margin:"auto"}},[`${t}-item-ellipsis`]:{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,display:"block",margin:"auto",color:e.colorTextDisabled,letterSpacing:e.paginationEllipsisLetterSpacing,textAlign:"center",textIndent:e.paginationEllipsisTextIndent,opacity:1,transition:`all ${e.motionDurationMid}`}},"&:hover":{[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0}}},[`
    ${t}-prev,
    ${t}-jump-prev,
    ${t}-jump-next
    `]:{marginInlineEnd:e.marginXS},[`
    ${t}-prev,
    ${t}-next,
    ${t}-jump-prev,
    ${t}-jump-next
    `]:{display:"inline-block",minWidth:e.itemSize,height:e.itemSize,color:e.colorText,fontFamily:e.fontFamily,lineHeight:Z(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:`${Z(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:Z(e.controlHeight),verticalAlign:"top",input:Object.assign(Object.assign(Object.assign({},l0(e)),ZT(e,{borderColor:e.colorBorder,hoverBorderColor:e.colorPrimaryHover,activeBorderColor:e.colorPrimary,activeShadow:e.activeShadow})),{"&[disabled]":Object.assign({},tC(e)),width:e.quickJumperInputWidth,height:e.controlHeight,boxSizing:"border-box",margin:0,marginInlineStart:e.marginXS,marginInlineEnd:e.marginXS})}}}},nVe=e=>{const{componentCls:t}=e;return{[`${t}-item`]:{display:"inline-block",minWidth:e.itemSize,height:e.itemSize,marginInlineEnd:e.marginXS,fontFamily:e.fontFamily,lineHeight:Z(e.calc(e.itemSize).sub(2).equal()),textAlign:"center",verticalAlign:"middle",listStyle:"none",backgroundColor:e.itemBg,border:`${Z(e.lineWidth)} ${e.lineType} transparent`,borderRadius:e.borderRadius,outline:0,cursor:"pointer",userSelect:"none",a:{display:"block",padding:`0 ${Z(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}}}}},rVe=e=>{const{componentCls:t}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},xn(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:Z(e.calc(e.itemSize).sub(2).equal()),verticalAlign:"middle"}}),nVe(e)),tVe(e)),eVe(e)),QHe(e)),JHe(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"}}},oVe=e=>{const{componentCls:t}=e;return{[`${t}:not(${t}-disabled)`]:{[`${t}-item`]:Object.assign({},Hs(e)),[`${t}-jump-prev, ${t}-jump-next`]:{"&:focus-visible":Object.assign({[`${t}-item-link-icon`]:{opacity:1},[`${t}-item-ellipsis`]:{opacity:0}},pl(e))},[`${t}-prev, ${t}-next`]:{[`&:focus-visible ${t}-item-link`]:pl(e)}}}},vte=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},ef(e)),yte=e=>cn(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"},Qd(e)),iVe=vn("Pagination",e=>{const t=yte(e);return[rVe(t),oVe(t)]},vte),aVe=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:`${Z(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}}}}},sVe=vh(["Pagination","bordered"],e=>{const t=yte(e);return aVe(t)},vte);function sF(e){return c.useMemo(()=>typeof e=="boolean"?[e,{}]:e&&typeof e=="object"?[!0,e]:[void 0,void 0],[e])}var lVe=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 bte=e=>{const{align:t,prefixCls:n,selectPrefixCls:r,className:o,rootClassName:i,style:a,size:s,locale:l,responsive:u,showSizeChanger:d,selectComponentClass:f,pageSizeOptions:m}=e,h=lVe(e,["align","prefixCls","selectPrefixCls","className","rootClassName","style","size","locale","responsive","showSizeChanger","selectComponentClass","pageSizeOptions"]),{xs:p}=Ch(u),[,b]=Xo(),{getPrefixCls:v,direction:y,showSizeChanger:x,className:w,style:C}=Br("pagination"),S=v("pagination",n),[$,E,O]=iVe(S),P=go(s),j=P==="small"||!!(p&&!P&&u),[I]=ca("Pagination",zY),_=Object.assign(Object.assign({},I),l),[R,N]=sF(d),[A,M]=sF(x),T=R??A,k=N??M,D=f||pr,L=c.useMemo(()=>m?m.map(G=>Number(G)):void 0,[m]),B=G=>{var te;const{disabled:ee,size:z,onSizeChange:ne,"aria-label":X,className:U,options:le}=G,{className:se,onChange:ae}=k||{},re=(te=le.find(fe=>String(fe.value)===String(z)))===null||te===void 0?void 0:te.value;return c.createElement(D,Object.assign({disabled:ee,showSearch:!0,popupMatchSelectWidth:!1,getPopupContainer:fe=>fe.parentNode,"aria-label":X,options:le},k,{value:re,onChange:(fe,ye)=>{ne==null||ne(fe),ae==null||ae(fe,ye)},size:j?"small":"middle",className:Q(U,se)}))},H=c.useMemo(()=>{const G=c.createElement("span",{className:`${S}-item-ellipsis`},"•••"),te=c.createElement("button",{className:`${S}-item-link`,type:"button",tabIndex:-1},y==="rtl"?c.createElement(qg,null):c.createElement(Yg,null)),ee=c.createElement("button",{className:`${S}-item-link`,type:"button",tabIndex:-1},y==="rtl"?c.createElement(Yg,null):c.createElement(qg,null)),z=c.createElement("a",{className:`${S}-item-link`},c.createElement("div",{className:`${S}-item-container`},y==="rtl"?c.createElement(oF,{className:`${S}-item-link-icon`}):c.createElement(rF,{className:`${S}-item-link-icon`}),G)),ne=c.createElement("a",{className:`${S}-item-link`},c.createElement("div",{className:`${S}-item-container`},y==="rtl"?c.createElement(rF,{className:`${S}-item-link-icon`}):c.createElement(oF,{className:`${S}-item-link-icon`}),G));return{prevIcon:te,nextIcon:ee,jumpPrevIcon:z,jumpNextIcon:ne}},[y,S]),F=v("select",r),W=Q({[`${S}-${t}`]:!!t,[`${S}-mini`]:j,[`${S}-rtl`]:y==="rtl",[`${S}-bordered`]:b.wireframe},w,o,i,E,O),q=Object.assign(Object.assign({},C),a);return $(c.createElement(c.Fragment,null,b.wireframe&&c.createElement(sVe,{prefixCls:S}),c.createElement(ZHe,Object.assign({},H,h,{style:q,prefixCls:S,selectPrefixCls:F,className:W,locale:_,pageSizeOptions:L,showSizeChanger:T,sizeChangerRender:B}))))},f1=100,xte=f1/5,wte=f1/2-xte/2,N2=wte*2*Math.PI,lF=50,cF=e=>{const{dotClassName:t,style:n,hasCircleCls:r}=e;return c.createElement("circle",{className:Q(`${t}-circle`,{[`${t}-circle-bg`]:r}),r:wte,cx:lF,cy:lF,strokeWidth:xte,style:n})},cVe=({percent:e,prefixCls:t})=>{const n=`${t}-dot`,r=`${n}-holder`,o=`${r}-hidden`,[i,a]=c.useState(!1);sn(()=>{e!==0&&a(!0)},[e!==0]);const s=Math.max(Math.min(e,100),0);if(!i)return null;const l={strokeDashoffset:`${N2/4}`,strokeDasharray:`${N2*s/100} ${N2*(100-s)/100}`};return c.createElement("span",{className:Q(r,`${n}-progress`,s<=0&&o)},c.createElement("svg",{viewBox:`0 0 ${f1} ${f1}`,role:"progressbar","aria-valuemin":0,"aria-valuemax":100,"aria-valuenow":s},c.createElement(cF,{dotClassName:n,hasCircleCls:!0}),c.createElement(cF,{dotClassName:n,style:l})))};function uVe(e){const{prefixCls:t,percent:n=0}=e,r=`${t}-dot`,o=`${r}-holder`,i=`${o}-hidden`;return c.createElement(c.Fragment,null,c.createElement("span",{className:Q(o,n>0&&i)},c.createElement("span",{className:Q(r,`${t}-dot-spin`)},[1,2,3,4].map(a=>c.createElement("i",{className:`${t}-dot-item`,key:a})))),c.createElement(cVe,{prefixCls:t,percent:n}))}function dVe(e){var t;const{prefixCls:n,indicator:r,percent:o}=e,i=`${n}-dot`;return r&&c.isValidElement(r)?qr(r,{className:Q((t=r.props)===null||t===void 0?void 0:t.className,i),percent:o}):c.createElement(uVe,{prefixCls:n,percent:o})}const fVe=new gn("antSpinMove",{to:{opacity:1}}),mVe=new gn("antRotate",{to:{transform:"rotate(405deg)"}}),hVe=e=>{const{componentCls:t,calc:n}=e;return{[t]:Object.assign(Object.assign({},xn(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:fVe,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:mVe,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"}})}},pVe=e=>{const{controlHeightLG:t,controlHeight:n}=e;return{contentHeight:400,dotSize:t/2,dotSizeSM:t*.35,dotSizeLG:n}},gVe=vn("Spin",e=>{const t=cn(e,{spinDotDefault:e.colorTextDescription});return hVe(t)},pVe),vVe=200,uF=[[30,.05],[70,.03],[96,.01]];function yVe(e,t){const[n,r]=c.useState(0),o=c.useRef(null),i=t==="auto";return c.useEffect(()=>(i&&e&&(r(0),o.current=setInterval(()=>{r(a=>{const s=100-a;for(let l=0;l<uF.length;l+=1){const[u,d]=uF[l];if(a<=u)return a+s*d}return a})},vVe)),()=>{o.current&&(clearInterval(o.current),o.current=null)}),[i,e]),i?n:t}var bVe=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 Ste;function xVe(e,t){return!!e&&!!t&&!Number.isNaN(Number(t))}const m3=e=>{var t;const{prefixCls:n,spinning:r=!0,delay:o=0,className:i,rootClassName:a,size:s="default",tip:l,wrapperClassName:u,style:d,children:f,fullscreen:m=!1,indicator:h,percent:p}=e,b=bVe(e,["prefixCls","spinning","delay","className","rootClassName","size","tip","wrapperClassName","style","children","fullscreen","indicator","percent"]),{getPrefixCls:v,direction:y,className:x,style:w,indicator:C}=Br("spin"),S=v("spin",n),[$,E,O]=gVe(S),[P,j]=c.useState(()=>r&&!xVe(r,o)),I=yVe(P,p);c.useEffect(()=>{if(r){const k=D7e(o,()=>{j(!0)});return k(),()=>{var D;(D=k==null?void 0:k.cancel)===null||D===void 0||D.call(k)}}j(!1)},[o,r]);const _=c.useMemo(()=>typeof f<"u"&&!m,[f,m]),R=Q(S,x,{[`${S}-sm`]:s==="small",[`${S}-lg`]:s==="large",[`${S}-spinning`]:P,[`${S}-show-text`]:!!l,[`${S}-rtl`]:y==="rtl"},i,!m&&a,E,O),N=Q(`${S}-container`,{[`${S}-blur`]:P}),A=(t=h??C)!==null&&t!==void 0?t:Ste,M=Object.assign(Object.assign({},w),d),T=c.createElement("div",Object.assign({},b,{style:M,className:R,"aria-live":"polite","aria-busy":P}),c.createElement(dVe,{prefixCls:S,indicator:A,percent:I}),l&&(_||m)?c.createElement("div",{className:`${S}-text`},l):null);return $(_?c.createElement("div",Object.assign({},b,{className:Q(`${S}-nested-loading`,u,E,O)}),P&&c.createElement("div",{key:"loading"},T),c.createElement("div",{className:N,key:"container"},f)):m?c.createElement("div",{className:Q(`${S}-fullscreen`,{[`${S}-fullscreen-show`]:P},a,E,O)},T):T)};m3.setDefaultIndicator=e=>{Ste=e};const h3=ce.createContext({});h3.Consumer;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};const wVe=e=>{var{prefixCls:t,className:n,avatar:r,title:o,description:i}=e,a=Cte(e,["prefixCls","className","avatar","title","description"]);const{getPrefixCls:s}=c.useContext(kt),l=s("list",t),u=Q(`${l}-item-meta`,n),d=ce.createElement("div",{className:`${l}-item-meta-content`},o&&ce.createElement("h4",{className:`${l}-item-meta-title`},o),i&&ce.createElement("div",{className:`${l}-item-meta-description`},i));return ce.createElement("div",Object.assign({},a,{className:u}),r&&ce.createElement("div",{className:`${l}-item-meta-avatar`},r),(o||i)&&d)},SVe=ce.forwardRef((e,t)=>{const{prefixCls:n,children:r,actions:o,extra:i,styles:a,className:s,classNames:l,colStyle:u}=e,d=Cte(e,["prefixCls","children","actions","extra","styles","className","classNames","colStyle"]),{grid:f,itemLayout:m}=c.useContext(h3),{getPrefixCls:h,list:p}=c.useContext(kt),b=E=>{var O,P;return Q((P=(O=p==null?void 0:p.item)===null||O===void 0?void 0:O.classNames)===null||P===void 0?void 0:P[E],l==null?void 0:l[E])},v=E=>{var O,P;return Object.assign(Object.assign({},(P=(O=p==null?void 0:p.item)===null||O===void 0?void 0:O.styles)===null||P===void 0?void 0:P[E]),a==null?void 0:a[E])},y=()=>{let E=!1;return c.Children.forEach(r,O=>{typeof O=="string"&&(E=!0)}),E&&c.Children.count(r)>1},x=()=>m==="vertical"?!!i:!y(),w=h("list",n),C=o&&o.length>0&&ce.createElement("ul",{className:Q(`${w}-item-action`,b("actions")),key:"actions",style:v("actions")},o.map((E,O)=>ce.createElement("li",{key:`${w}-item-action-${O}`},E,O!==o.length-1&&ce.createElement("em",{className:`${w}-item-action-split`})))),S=f?"div":"li",$=ce.createElement(S,Object.assign({},d,f?{}:{ref:t},{className:Q(`${w}-item`,{[`${w}-item-no-flex`]:!x()},s)}),m==="vertical"&&i?[ce.createElement("div",{className:`${w}-item-main`,key:"content"},r,C),ce.createElement("div",{className:Q(`${w}-item-extra`,b("extra")),key:"extra",style:v("extra")},i)]:[r,C,qr(i,{key:"extra"})]);return f?ce.createElement(Mr,{ref:t,flex:1,style:u},$):$}),$te=SVe;$te.Meta=wVe;const CVe=e=>{const{listBorderedCls:t,componentCls:n,paddingLG:r,margin:o,itemPaddingSM:i,itemPaddingLG:a,marginLG:s,borderRadiusLG:l}=e,u=Z(e.calc(l).sub(e.lineWidth).equal());return{[t]:{border:`${Z(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:l,[`${n}-header`]:{borderRadius:`${u} ${u} 0 0`},[`${n}-footer`]:{borderRadius:`0 0 ${u} ${u}`},[`${n}-header,${n}-footer,${n}-item`]:{paddingInline:r},[`${n}-pagination`]:{margin:`${Z(o)} ${Z(s)}`}},[`${t}${n}-sm`]:{[`${n}-item,${n}-header,${n}-footer`]:{padding:i}},[`${t}${n}-lg`]:{[`${n}-item,${n}-header,${n}-footer`]:{padding:a}}}},$Ve=e=>{const{componentCls:t,screenSM:n,screenMD:r,marginLG:o,marginSM:i,margin:a}=e;return{[`@media screen and (max-width:${r}px)`]:{[t]:{[`${t}-item`]:{[`${t}-item-action`]:{marginInlineStart:o}}},[`${t}-vertical`]:{[`${t}-item`]:{[`${t}-item-extra`]:{marginInlineStart:o}}}},[`@media screen and (max-width: ${n}px)`]:{[t]:{[`${t}-item`]:{flexWrap:"wrap",[`${t}-action`]:{marginInlineStart:i}}},[`${t}-vertical`]:{[`${t}-item`]:{flexWrap:"wrap-reverse",[`${t}-item-main`]:{minWidth:e.contentWidth},[`${t}-item-extra`]:{margin:`auto auto ${Z(a)}`}}}}}},EVe=e=>{const{componentCls:t,antCls:n,controlHeight:r,minHeight:o,paddingSM:i,marginLG:a,padding:s,itemPadding:l,colorPrimary:u,itemPaddingSM:d,itemPaddingLG:f,paddingXS:m,margin:h,colorText:p,colorTextDescription:b,motionDurationSlow:v,lineWidth:y,headerBg:x,footerBg:w,emptyTextPadding:C,metaMarginBottom:S,avatarMarginRight:$,titleMarginBottom:E,descriptionFontSize:O}=e;return{[t]:Object.assign(Object.assign({},xn(e)),{position:"relative","--rc-virtual-list-scrollbar-bg":e.colorSplit,"*":{outline:"none"},[`${t}-header`]:{background:x},[`${t}-footer`]:{background:w},[`${t}-header, ${t}-footer`]:{paddingBlock:i},[`${t}-pagination`]:{marginBlockStart:a,[`${n}-pagination-options`]:{textAlign:"start"}},[`${t}-spin`]:{minHeight:o,textAlign:"center"},[`${t}-items`]:{margin:0,padding:0,listStyle:"none"},[`${t}-item`]:{display:"flex",alignItems:"center",justifyContent:"space-between",padding:l,color:p,[`${t}-item-meta`]:{display:"flex",flex:1,alignItems:"flex-start",maxWidth:"100%",[`${t}-item-meta-avatar`]:{marginInlineEnd:$},[`${t}-item-meta-content`]:{flex:"1 0",width:0,color:p},[`${t}-item-meta-title`]:{margin:`0 0 ${Z(e.marginXXS)} 0`,color:p,fontSize:e.fontSize,lineHeight:e.lineHeight,"> a":{color:p,transition:`all ${v}`,"&:hover":{color:u}}},[`${t}-item-meta-description`]:{color:b,fontSize:O,lineHeight:e.lineHeight}},[`${t}-item-action`]:{flex:"0 0 auto",marginInlineStart:e.marginXXL,padding:0,fontSize:0,listStyle:"none","& > li":{position:"relative",display:"inline-block",padding:`0 ${Z(m)}`,color:b,fontSize:e.fontSize,lineHeight:e.lineHeight,textAlign:"center","&:first-child":{paddingInlineStart:0}},[`${t}-item-action-split`]:{position:"absolute",insetBlockStart:"50%",insetInlineEnd:0,width:y,height:e.calc(e.fontHeight).sub(e.calc(e.marginXXS).mul(2)).equal(),transform:"translateY(-50%)",backgroundColor:e.colorSplit}}},[`${t}-empty`]:{padding:`${Z(s)} 0`,color:b,fontSize:e.fontSizeSM,textAlign:"center"},[`${t}-empty-text`]:{padding:C,color:e.colorTextDisabled,fontSize:e.fontSize,textAlign:"center"},[`${t}-item-no-flex`]:{display:"block"}}),[`${t}-grid ${n}-col > ${t}-item`]:{display:"block",maxWidth:"100%",marginBlockEnd:h,paddingBlock:0,borderBlockEnd:"none"},[`${t}-vertical ${t}-item`]:{alignItems:"initial",[`${t}-item-main`]:{display:"block",flex:1},[`${t}-item-extra`]:{marginInlineStart:a},[`${t}-item-meta`]:{marginBlockEnd:S,[`${t}-item-meta-title`]:{marginBlockStart:0,marginBlockEnd:E,color:p,fontSize:e.fontSizeLG,lineHeight:e.lineHeightLG}},[`${t}-item-action`]:{marginBlockStart:s,marginInlineStart:"auto","> li":{padding:`0 ${Z(s)}`,"&:first-child":{paddingInlineStart:0}}}},[`${t}-split ${t}-item`]:{borderBlockEnd:`${Z(e.lineWidth)} ${e.lineType} ${e.colorSplit}`,"&:last-child":{borderBlockEnd:"none"}},[`${t}-split ${t}-header`]:{borderBlockEnd:`${Z(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},[`${t}-split${t}-empty ${t}-footer`]:{borderTop:`${Z(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},[`${t}-loading ${t}-spin-nested-loading`]:{minHeight:r},[`${t}-split${t}-something-after-last-item ${n}-spin-container > ${t}-items > ${t}-item:last-child`]:{borderBlockEnd:`${Z(e.lineWidth)} ${e.lineType} ${e.colorSplit}`},[`${t}-lg ${t}-item`]:{padding:f},[`${t}-sm ${t}-item`]:{padding:d},[`${t}:not(${t}-vertical)`]:{[`${t}-item-no-flex`]:{[`${t}-item-action`]:{float:"right"}}}}},OVe=e=>({contentWidth:220,itemPadding:`${Z(e.paddingContentVertical)} 0`,itemPaddingSM:`${Z(e.paddingContentVerticalSM)} ${Z(e.paddingContentHorizontal)}`,itemPaddingLG:`${Z(e.paddingContentVerticalLG)} ${Z(e.paddingContentHorizontalLG)}`,headerBg:"transparent",footerBg:"transparent",emptyTextPadding:e.padding,metaMarginBottom:e.padding,avatarMarginRight:e.padding,titleMarginBottom:e.paddingSM,descriptionFontSize:e.fontSize}),PVe=vn("List",e=>{const t=cn(e,{listBorderedCls:`${e.componentCls}-bordered`,minHeight:e.controlHeightLG});return[EVe(t),CVe(t),$Ve(t)]},OVe);var jVe=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 IVe(e,t){const{pagination:n=!1,prefixCls:r,bordered:o=!1,split:i=!0,className:a,rootClassName:s,style:l,children:u,itemLayout:d,loadMore:f,grid:m,dataSource:h=[],size:p,header:b,footer:v,loading:y=!1,rowKey:x,renderItem:w,locale:C}=e,S=jVe(e,["pagination","prefixCls","bordered","split","className","rootClassName","style","children","itemLayout","loadMore","grid","dataSource","size","header","footer","loading","rowKey","renderItem","locale"]),$=n&&typeof n=="object"?n:{},[E,O]=c.useState($.defaultCurrent||1),[P,j]=c.useState($.defaultPageSize||10),{getPrefixCls:I,direction:_,className:R,style:N}=Br("list"),{renderEmpty:A}=c.useContext(kt),M={current:1,total:0,position:"bottom"},T=J=>(oe,de)=>{var be;O(oe),j(de),n&&((be=n==null?void 0:n[J])===null||be===void 0||be.call(n,oe,de))},k=T("onChange"),D=T("onShowSizeChange"),L=(J,oe)=>{if(!w)return null;let de;return typeof x=="function"?de=x(J):x?de=J[x]:de=J.key,de||(de=`list-item-${oe}`),c.createElement(c.Fragment,{key:de},w(J,oe))},B=!!(f||n||v),H=I("list",r),[F,W,q]=PVe(H);let G=y;typeof G=="boolean"&&(G={spinning:G});const te=!!(G!=null&&G.spinning),ee=go(p);let z="";switch(ee){case"large":z="lg";break;case"small":z="sm";break}const ne=Q(H,{[`${H}-vertical`]:d==="vertical",[`${H}-${z}`]:z,[`${H}-split`]:i,[`${H}-bordered`]:o,[`${H}-loading`]:te,[`${H}-grid`]:!!m,[`${H}-something-after-last-item`]:B,[`${H}-rtl`]:_==="rtl"},R,a,s,W,q),X=Wg(M,{total:h.length,current:E,pageSize:P},n||{}),U=Math.ceil(X.total/X.pageSize);X.current=Math.min(X.current,U);const le=n&&c.createElement("div",{className:Q(`${H}-pagination`)},c.createElement(bte,Object.assign({align:"end"},X,{onChange:k,onShowSizeChange:D})));let se=Ne(h);n&&h.length>(X.current-1)*X.pageSize&&(se=Ne(h).splice((X.current-1)*X.pageSize,X.pageSize));const ae=Object.keys(m||{}).some(J=>["xs","sm","md","lg","xl","xxl"].includes(J)),re=Ch(ae),fe=c.useMemo(()=>{for(let J=0;J<eu.length;J+=1){const oe=eu[J];if(re[oe])return oe}},[re]),ye=c.useMemo(()=>{if(!m)return;const J=fe&&m[fe]?m[fe]:m.column;if(J)return{width:`${100/J}%`,maxWidth:`${100/J}%`}},[JSON.stringify(m),fe]);let Pe=te&&c.createElement("div",{style:{minHeight:53}});if(se.length>0){const J=se.map(L);Pe=m?c.createElement(ts,{gutter:m.gutter},c.Children.map(J,oe=>c.createElement("div",{key:oe==null?void 0:oe.key,style:ye},oe))):c.createElement("ul",{className:`${H}-items`},J)}else!u&&!te&&(Pe=c.createElement("div",{className:`${H}-empty-text`},(C==null?void 0:C.emptyText)||(A==null?void 0:A("List"))||c.createElement(NT,{componentName:"List"})));const Oe=X.position,V=c.useMemo(()=>({grid:m,itemLayout:d}),[JSON.stringify(m),d]);return F(c.createElement(h3.Provider,{value:V},c.createElement("div",Object.assign({ref:t,style:Object.assign(Object.assign({},N),l),className:ne},S),(Oe==="top"||Oe==="both")&&le,b&&c.createElement("div",{className:`${H}-header`},b),c.createElement(m3,Object.assign({},G),Pe,u),v&&c.createElement("div",{className:`${H}-footer`},v),f||(Oe==="bottom"||Oe==="both")&&le)))}const _Ve=c.forwardRef(IVe),Yn=_Ve;Yn.Item=$te;const NVe=(e,t=!1)=>t&&e==null?[]:Array.isArray(e)?e:[e];let Ua=null,Xu=e=>e(),Jg=[],Qg={};function dF(){const{getContainer:e,duration:t,rtl:n,maxCount:r,top:o}=Qg,i=(e==null?void 0:e())||document.body;return{getContainer:()=>i,duration:t,rtl:n,maxCount:r,top:o}}const RVe=ce.forwardRef((e,t)=>{const{messageConfig:n,sync:r}=e,{getPrefixCls:o}=c.useContext(kt),i=Qg.prefixCls||o("message"),a=c.useContext(wAe),[s,l]=IZ(Object.assign(Object.assign(Object.assign({},n),{prefixCls:i}),a.message));return ce.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}}),l}),TVe=ce.forwardRef((e,t)=>{const[n,r]=ce.useState(dF),o=()=>{r(dF)};ce.useEffect(o,[]);const i=mZ(),a=i.getRootPrefixCls(),s=i.getIconPrefixCls(),l=i.getTheme(),u=ce.createElement(RVe,{ref:t,sync:o,messageConfig:n});return ce.createElement(Ma,{prefixCls:a,iconPrefixCls:s,theme:l},i.holderRender?i.holderRender(u):u)}),aC=()=>{if(!Ua){const e=document.createDocumentFragment(),t={fragment:e};Ua=t,Xu(()=>{yT()(ce.createElement(TVe,{ref:r=>{const{instance:o,sync:i}=r||{};Promise.resolve().then(()=>{!t.instance&&o&&(t.instance=o,t.sync=i,aC())})}}),e)});return}Ua.instance&&(Jg.forEach(e=>{const{type:t,skipped:n}=e;if(!n)switch(t){case"open":{Xu(()=>{const r=Ua.instance.open(Object.assign(Object.assign({},Qg),e.config));r==null||r.then(e.resolve),e.setCloseFn(r)});break}case"destroy":Xu(()=>{Ua==null||Ua.instance.destroy(e.key)});break;default:Xu(()=>{var r;const o=(r=Ua.instance)[t].apply(r,Ne(e.args));o==null||o.then(e.resolve),e.setCloseFn(o)})}}),Jg=[])};function MVe(e){Qg=Object.assign(Object.assign({},Qg),e),Xu(()=>{var t;(t=Ua==null?void 0:Ua.sync)===null||t===void 0||t.call(Ua)})}function kVe(e){const t=gT(n=>{let r;const o={type:"open",config:e,resolve:n,setCloseFn:i=>{r=i}};return Jg.push(o),()=>{r?Xu(()=>{r()}):o.skipped=!0}});return aC(),t}function AVe(e,t){const n=gT(r=>{let o;const i={type:e,args:t,resolve:r,setCloseFn:a=>{o=a}};return Jg.push(i),()=>{o?Xu(()=>{o()}):i.skipped=!0}});return aC(),n}const DVe=e=>{Jg.push({type:"destroy",key:e}),aC()},LVe=["success","info","warning","error","loading"],zVe={open:kVe,destroy:DVe,config:MVe,useMessage:N3e,_InternalPanelDoNotUseOrYouWillBeFired:C3e},Pt=zVe;LVe.forEach(e=>{Pt[e]=(...t)=>AVe(e,t)});var FVe=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 BVe=e=>{const{prefixCls:t,className:n,closeIcon:r,closable:o,type:i,title:a,children:s,footer:l}=e,u=FVe(e,["prefixCls","className","closeIcon","closable","type","title","children","footer"]),{getPrefixCls:d}=c.useContext(kt),f=d(),m=t||d("modal"),h=Hr(f),[p,b,v]=fJ(m,h),y=`${m}-confirm`;let x={};return i?x={closable:o??!1,title:"",footer:"",children:c.createElement(hJ,Object.assign({},e,{prefixCls:m,confirmPrefixCls:y,rootPrefixCls:f,content:s}))}:x={closable:o??!0,title:a,footer:l!==null&&c.createElement(lJ,Object.assign({},e)),children:s},p(c.createElement(UZ,Object.assign({prefixCls:m,className:Q(b,`${m}-pure-panel`,i&&y,i&&`${y}-${i}`,n,v,h)},u,{closeIcon:sJ(m,r),closable:o},x)))},HVe=CJ(BVe);function Ete(e){return r0(yJ(e))}const Po=mJ;Po.useModal=xAe;Po.info=function(t){return r0(bJ(t))};Po.success=function(t){return r0(xJ(t))};Po.error=function(t){return r0(wJ(t))};Po.warning=Ete;Po.warn=Ete;Po.confirm=function(t){return r0(SJ(t))};Po.destroyAll=function(){for(;qu.length;){const t=qu.pop();t&&t()}};Po.config=pAe;Po._InternalPanelDoNotUseOrYouWillBeFired=HVe;const VVe=e=>{const{componentCls:t,iconCls:n,antCls:r,zIndexPopup:o,colorText:i,colorWarning:a,marginXXS:s,marginXS:l,fontSize:u,fontWeightStrong:d,colorTextHeading:f}=e;return{[t]:{zIndex:o,[`&${r}-popover`]:{fontSize:u},[`${t}-message`]:{marginBottom:l,display:"flex",flexWrap:"nowrap",alignItems:"start",[`> ${t}-message-icon ${n}`]:{color:a,fontSize:u,lineHeight:1,marginInlineEnd:l},[`${t}-title`]:{fontWeight:d,color:f,"&:only-child":{fontWeight:"normal"}},[`${t}-description`]:{marginTop:s,color:i}},[`${t}-buttons`]:{textAlign:"end",whiteSpace:"nowrap",button:{marginInlineStart:l}}}}},WVe=e=>{const{zIndexPopupBase:t}=e;return{zIndexPopup:t+60}},Ote=vn("Popconfirm",e=>VVe(e),WVe,{resetStyle:!1});var UVe=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 Pte=e=>{const{prefixCls:t,okButtonProps:n,cancelButtonProps:r,title:o,description:i,cancelText:a,okText:s,okType:l="primary",icon:u=c.createElement(bh,null),showCancel:d=!0,close:f,onConfirm:m,onCancel:h,onPopupClick:p}=e,{getPrefixCls:b}=c.useContext(kt),[v]=ca("Popconfirm",cs.Popconfirm),y=Um(o),x=Um(i);return c.createElement("div",{className:`${t}-inner-content`,onClick:p},c.createElement("div",{className:`${t}-message`},u&&c.createElement("span",{className:`${t}-message-icon`},u),c.createElement("div",{className:`${t}-message-text`},y&&c.createElement("div",{className:`${t}-title`},y),x&&c.createElement("div",{className:`${t}-description`},x))),c.createElement("div",{className:`${t}-buttons`},d&&c.createElement(gt,Object.assign({onClick:h,size:"small"},r),a||(v==null?void 0:v.cancelText)),c.createElement(ST,{buttonProps:Object.assign(Object.assign({size:"small"},bT(l)),n),actionFn:m,close:f,prefixCls:b("btn"),quitOnNullishReturnValue:!0,emitEvent:!0},s||(v==null?void 0:v.okText))))},KVe=e=>{const{prefixCls:t,placement:n,className:r,style:o}=e,i=UVe(e,["prefixCls","placement","className","style"]),{getPrefixCls:a}=c.useContext(kt),s=a("popconfirm",t),[l]=Ote(s);return l(c.createElement(oQ,{placement:n,className:Q(s,r),style:o,content:c.createElement(Pte,Object.assign({prefixCls:s},i))}))};var qVe=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 GVe=c.forwardRef((e,t)=>{var n,r;const{prefixCls:o,placement:i="top",trigger:a="click",okType:s="primary",icon:l=c.createElement(bh,null),children:u,overlayClassName:d,onOpenChange:f,onVisibleChange:m,overlayStyle:h,styles:p,classNames:b}=e,v=qVe(e,["prefixCls","placement","trigger","okType","icon","children","overlayClassName","onOpenChange","onVisibleChange","overlayStyle","styles","classNames"]),{getPrefixCls:y,className:x,style:w,classNames:C,styles:S}=Br("popconfirm"),[$,E]=kn(!1,{value:(n=e.open)!==null&&n!==void 0?n:e.visible,defaultValue:(r=e.defaultOpen)!==null&&r!==void 0?r:e.defaultVisible}),O=(T,k)=>{E(T,!0),m==null||m(T),f==null||f(T,k)},P=T=>{O(!1,T)},j=T=>{var k;return(k=e.onConfirm)===null||k===void 0?void 0:k.call(void 0,T)},I=T=>{var k;O(!1,T),(k=e.onCancel)===null||k===void 0||k.call(void 0,T)},_=(T,k)=>{const{disabled:D=!1}=e;D||O(T,k)},R=y("popconfirm",o),N=Q(R,x,d,C.root,b==null?void 0:b.root),A=Q(C.body,b==null?void 0:b.body),[M]=Ote(R);return M(c.createElement(US,Object.assign({},Xn(v,["title"]),{trigger:a,placement:i,onOpenChange:_,open:$,ref:t,classNames:{root:N,body:A},styles:{root:Object.assign(Object.assign(Object.assign(Object.assign({},S.root),w),h),p==null?void 0:p.root),body:Object.assign(Object.assign({},S.body),p==null?void 0:p.body)},content:c.createElement(Pte,Object.assign({okType:s,icon:l},e,{prefixCls:R,close:P,onConfirm:j,onCancel:I})),"data-popover-inject":!0}),u))}),jte=GVe;jte._InternalPanelDoNotUseOrYouWillBeFired=KVe;var XVe={percent:0,prefixCls:"rc-progress",strokeColor:"#2db7f5",strokeLinecap:"round",strokeWidth:1,trailColor:"#D9D9D9",trailWidth:1,gapPosition:"bottom"},YVe=function(){var t=c.useRef([]),n=c.useRef(null);return c.useEffect(function(){var r=Date.now(),o=!1;t.current.forEach(function(i){if(i){o=!0;var a=i.style;a.transitionDuration=".3s, .3s, .3s, .06s",n.current&&r-n.current<100&&(a.transitionDuration="0s, 0s")}}),o&&(n.current=Date.now())}),t.current},fF=0,ZVe=Uo();function JVe(){var e;return ZVe?(e=fF,fF+=1):e="TEST_OR_SSR",e}const QVe=function(e){var t=c.useState(),n=ue(t,2),r=n[0],o=n[1];return c.useEffect(function(){o("rc_progress_".concat(JVe()))},[]),e||r};var mF=function(t){var n=t.bg,r=t.children;return c.createElement("div",{style:{width:"100%",height:"100%",background:n}},r)};function hF(e,t){return Object.keys(e).map(function(n){var r=parseFloat(n),o="".concat(Math.floor(r*t),"%");return"".concat(e[n]," ").concat(o)})}var eWe=c.forwardRef(function(e,t){var n=e.prefixCls,r=e.color,o=e.gradientId,i=e.radius,a=e.style,s=e.ptg,l=e.strokeLinecap,u=e.strokeWidth,d=e.size,f=e.gapDegree,m=r&&_t(r)==="object",h=m?"#FFF":void 0,p=d/2,b=c.createElement("circle",{className:"".concat(n,"-circle-path"),r:i,cx:p,cy:p,stroke:h,strokeLinecap:l,strokeWidth:u,opacity:s===0?0:1,style:a,ref:t});if(!m)return b;var v="".concat(o,"-conic"),y=f?"".concat(180+f/2,"deg"):"0deg",x=hF(r,(360-f)/360),w=hF(r,1),C="conic-gradient(from ".concat(y,", ").concat(x.join(", "),")"),S="linear-gradient(to ".concat(f?"bottom":"top",", ").concat(w.join(", "),")");return c.createElement(c.Fragment,null,c.createElement("mask",{id:v},b),c.createElement("foreignObject",{x:0,y:0,width:d,height:d,mask:"url(#".concat(v,")")},c.createElement(mF,{bg:S},c.createElement(mF,{bg:C}))))}),Pp=100,R2=function(t,n,r,o,i,a,s,l,u,d){var f=arguments.length>10&&arguments[10]!==void 0?arguments[10]:0,m=r/100*360*((360-a)/360),h=a===0?0:{bottom:0,top:180,left:90,right:-90}[s],p=(100-o)/100*n;u==="round"&&o!==100&&(p+=d/2,p>=n&&(p=n-.01));var b=Pp/2;return{stroke:typeof l=="string"?l:void 0,strokeDasharray:"".concat(n,"px ").concat(t),strokeDashoffset:p+f,transform:"rotate(".concat(i+m+h,"deg)"),transformOrigin:"".concat(b,"px ").concat(b,"px"),transition:"stroke-dashoffset .3s ease 0s, stroke-dasharray .3s ease 0s, stroke .3s, stroke-width .06s ease .3s, opacity .3s ease 0s",fillOpacity:0}},tWe=["id","prefixCls","steps","strokeWidth","trailWidth","gapDegree","gapPosition","trailColor","strokeLinecap","style","className","strokeColor","percent"];function pF(e){var t=e??[];return Array.isArray(t)?t:[t]}var nWe=function(t){var n=Y(Y({},XVe),t),r=n.id,o=n.prefixCls,i=n.steps,a=n.strokeWidth,s=n.trailWidth,l=n.gapDegree,u=l===void 0?0:l,d=n.gapPosition,f=n.trailColor,m=n.strokeLinecap,h=n.style,p=n.className,b=n.strokeColor,v=n.percent,y=Ht(n,tWe),x=Pp/2,w=QVe(r),C="".concat(w,"-gradient"),S=x-a/2,$=Math.PI*2*S,E=u>0?90+u/2:-90,O=$*((360-u)/360),P=_t(i)==="object"?i:{count:i,gap:2},j=P.count,I=P.gap,_=pF(v),R=pF(b),N=R.find(function(B){return B&&_t(B)==="object"}),A=N&&_t(N)==="object",M=A?"butt":m,T=R2($,O,0,100,E,u,d,f,M,a),k=YVe(),D=function(){var H=0;return _.map(function(F,W){var q=R[W]||R[R.length-1],G=R2($,O,H,F,E,u,d,q,M,a);return H+=F,c.createElement(eWe,{key:W,color:q,ptg:F,radius:S,prefixCls:o,gradientId:C,style:G,strokeLinecap:M,strokeWidth:a,gapDegree:u,ref:function(ee){k[W]=ee},size:Pp})}).reverse()},L=function(){var H=Math.round(j*(_[0]/100)),F=100/j,W=0;return new Array(j).fill(null).map(function(q,G){var te=G<=H-1?R[0]:f,ee=te&&_t(te)==="object"?"url(#".concat(C,")"):void 0,z=R2($,O,W,F,E,u,d,te,"butt",a,I);return W+=(O-z.strokeDashoffset+I)*100/O,c.createElement("circle",{key:G,className:"".concat(o,"-circle-path"),r:S,cx:x,cy:x,stroke:ee,strokeWidth:a,opacity:1,style:z,ref:function(X){k[G]=X}})})};return c.createElement("svg",Ee({className:Q("".concat(o,"-circle"),p),viewBox:"0 0 ".concat(Pp," ").concat(Pp),style:h,id:r,role:"presentation"},y),!j&&c.createElement("circle",{className:"".concat(o,"-circle-trail"),r:S,cx:x,cy:x,stroke:f,strokeLinecap:M,strokeWidth:s||a,style:T}),j?L():D())};function qc(e){return!e||e<0?0:e>100?100:e}function m1({success:e,successPercent:t}){let n=t;return e&&"progress"in e&&(n=e.progress),e&&"percent"in e&&(n=e.percent),n}const rWe=({percent:e,success:t,successPercent:n})=>{const r=qc(m1({success:t,successPercent:n}));return[r,qc(qc(e)-r)]},oWe=({success:e={},strokeColor:t})=>{const{strokeColor:n}=e;return[n||lm.green,t||null]},sC=(e,t,n)=>{var r,o,i,a;let s=-1,l=-1;if(t==="step"){const u=n.steps,d=n.strokeWidth;typeof e=="string"||typeof e>"u"?(s=e==="small"?2:14,l=d??8):typeof e=="number"?[s,l]=[e,e]:[s=14,l=8]=Array.isArray(e)?e:[e.width,e.height],s*=u}else if(t==="line"){const u=n==null?void 0:n.strokeWidth;typeof e=="string"||typeof e>"u"?l=u||(e==="small"?6:8):typeof e=="number"?[s,l]=[e,e]:[s=-1,l=8]=Array.isArray(e)?e:[e.width,e.height]}else(t==="circle"||t==="dashboard")&&(typeof e=="string"||typeof e>"u"?[s,l]=e==="small"?[60,60]:[120,120]:typeof e=="number"?[s,l]=[e,e]:Array.isArray(e)&&(s=(o=(r=e[0])!==null&&r!==void 0?r:e[1])!==null&&o!==void 0?o:120,l=(a=(i=e[0])!==null&&i!==void 0?i:e[1])!==null&&a!==void 0?a:120));return[s,l]},iWe=3,aWe=e=>iWe/e*100,sWe=e=>{const{prefixCls:t,trailColor:n=null,strokeLinecap:r="round",gapPosition:o,gapDegree:i,width:a=120,type:s,children:l,success:u,size:d=a,steps:f}=e,[m,h]=sC(d,"circle");let{strokeWidth:p}=e;p===void 0&&(p=Math.max(aWe(m),6));const b={width:m,height:h,fontSize:m*.15+6},v=c.useMemo(()=>{if(i||i===0)return i;if(s==="dashboard")return 75},[i,s]),y=rWe(e),x=o||s==="dashboard"&&"bottom"||void 0,w=Object.prototype.toString.call(e.strokeColor)==="[object Object]",C=oWe({success:u,strokeColor:e.strokeColor}),S=Q(`${t}-inner`,{[`${t}-circle-gradient`]:w}),$=c.createElement(nWe,{steps:f,percent:f?y[1]:y,strokeWidth:p,trailWidth:p,strokeColor:f?C[1]:C,strokeLinecap:r,trailColor:n,prefixCls:t,gapDegree:v,gapPosition:x}),E=m<=20,O=c.createElement("div",{className:S,style:b},$,!E&&l);return E?c.createElement(us,{title:l},O):O},h1="--progress-line-stroke-color",Ite="--progress-percent",gF=e=>{const t=e?"100%":"-100%";return new gn(`antProgress${e?"RTL":"LTR"}Active`,{"0%":{transform:`translateX(${t}) scaleX(0)`,opacity:.1},"20%":{transform:`translateX(${t}) scaleX(0)`,opacity:.5},to:{transform:"translateX(0) scaleX(1)",opacity:0}})},lWe=e=>{const{componentCls:t,iconCls:n}=e;return{[t]:Object.assign(Object.assign({},xn(e)),{display:"inline-block","&-rtl":{direction:"rtl"},"&-line":{position:"relative",width:"100%",fontSize:e.fontSize},[`${t}-outer`]:{display:"inline-flex",alignItems:"center",width:"100%"},[`${t}-inner`]:{position:"relative",display:"inline-block",width:"100%",flex:1,overflow:"hidden",verticalAlign:"middle",backgroundColor:e.remainingColor,borderRadius:e.lineBorderRadius},[`${t}-inner:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.defaultColor}},[`${t}-success-bg, ${t}-bg`]:{position:"relative",background:e.defaultColor,borderRadius:e.lineBorderRadius,transition:`all ${e.motionDurationSlow} ${e.motionEaseInOutCirc}`},[`${t}-layout-bottom`]:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",[`${t}-text`]:{width:"max-content",marginInlineStart:0,marginTop:e.marginXXS}},[`${t}-bg`]:{overflow:"hidden","&::after":{content:'""',background:{_multi_value_:!0,value:["inherit",`var(${h1})`]},height:"100%",width:`calc(1 / var(${Ite}) * 100%)`,display:"block"},[`&${t}-bg-inner`]:{minWidth:"max-content","&::after":{content:"none"},[`${t}-text-inner`]:{color:e.colorWhite,[`&${t}-text-bright`]:{color:"rgba(0, 0, 0, 0.45)"}}}},[`${t}-success-bg`]:{position:"absolute",insetBlockStart:0,insetInlineStart:0,backgroundColor:e.colorSuccess},[`${t}-text`]:{display:"inline-block",marginInlineStart:e.marginXS,color:e.colorText,lineHeight:1,width:"2em",whiteSpace:"nowrap",textAlign:"start",verticalAlign:"middle",wordBreak:"normal",[n]:{fontSize:e.fontSize},[`&${t}-text-outer`]:{width:"max-content"},[`&${t}-text-outer${t}-text-start`]:{width:"max-content",marginInlineStart:0,marginInlineEnd:e.marginXS}},[`${t}-text-inner`]:{display:"flex",justifyContent:"center",alignItems:"center",width:"100%",height:"100%",marginInlineStart:0,padding:`0 ${Z(e.paddingXXS)}`,[`&${t}-text-start`]:{justifyContent:"start"},[`&${t}-text-end`]:{justifyContent:"end"}},[`&${t}-status-active`]:{[`${t}-bg::before`]:{position:"absolute",inset:0,backgroundColor:e.colorBgContainer,borderRadius:e.lineBorderRadius,opacity:0,animationName:gF(),animationDuration:e.progressActiveMotionDuration,animationTimingFunction:e.motionEaseOutQuint,animationIterationCount:"infinite",content:'""'}},[`&${t}-rtl${t}-status-active`]:{[`${t}-bg::before`]:{animationName:gF(!0)}},[`&${t}-status-exception`]:{[`${t}-bg`]:{backgroundColor:e.colorError},[`${t}-text`]:{color:e.colorError}},[`&${t}-status-exception ${t}-inner:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.colorError}},[`&${t}-status-success`]:{[`${t}-bg`]:{backgroundColor:e.colorSuccess},[`${t}-text`]:{color:e.colorSuccess}},[`&${t}-status-success ${t}-inner:not(${t}-circle-gradient)`]:{[`${t}-circle-path`]:{stroke:e.colorSuccess}}})}},cWe=e=>{const{componentCls:t,iconCls:n}=e;return{[t]:{[`${t}-circle-trail`]:{stroke:e.remainingColor},[`&${t}-circle ${t}-inner`]:{position:"relative",lineHeight:1,backgroundColor:"transparent"},[`&${t}-circle ${t}-text`]:{position:"absolute",insetBlockStart:"50%",insetInlineStart:0,width:"100%",margin:0,padding:0,color:e.circleTextColor,fontSize:e.circleTextFontSize,lineHeight:1,whiteSpace:"normal",textAlign:"center",transform:"translateY(-50%)",[n]:{fontSize:e.circleIconFontSize}},[`${t}-circle&-status-exception`]:{[`${t}-text`]:{color:e.colorError}},[`${t}-circle&-status-success`]:{[`${t}-text`]:{color:e.colorSuccess}}},[`${t}-inline-circle`]:{lineHeight:1,[`${t}-inner`]:{verticalAlign:"bottom"}}}},uWe=e=>{const{componentCls:t}=e;return{[t]:{[`${t}-steps`]:{display:"inline-block","&-outer":{display:"flex",flexDirection:"row",alignItems:"center"},"&-item":{flexShrink:0,minWidth:e.progressStepMinWidth,marginInlineEnd:e.progressStepMarginInlineEnd,backgroundColor:e.remainingColor,transition:`all ${e.motionDurationSlow}`,"&-active":{backgroundColor:e.defaultColor}}}}}},dWe=e=>{const{componentCls:t,iconCls:n}=e;return{[t]:{[`${t}-small&-line, ${t}-small&-line ${t}-text ${n}`]:{fontSize:e.fontSizeSM}}}},fWe=e=>({circleTextColor:e.colorText,defaultColor:e.colorInfo,remainingColor:e.colorFillSecondary,lineBorderRadius:100,circleTextFontSize:"1em",circleIconFontSize:`${e.fontSize/e.fontSizeSM}em`}),mWe=vn("Progress",e=>{const t=e.calc(e.marginXXS).div(2).equal(),n=cn(e,{progressStepMarginInlineEnd:t,progressStepMinWidth:t,progressActiveMotionDuration:"2.4s"});return[lWe(n),cWe(n),uWe(n),dWe(n)]},fWe);var hWe=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 pWe=e=>{let t=[];return Object.keys(e).forEach(n=>{const r=Number.parseFloat(n.replace(/%/g,""));Number.isNaN(r)||t.push({key:r,value:e[n]})}),t=t.sort((n,r)=>n.key-r.key),t.map(({key:n,value:r})=>`${r} ${n}%`).join(", ")},gWe=(e,t)=>{const{from:n=lm.blue,to:r=lm.blue,direction:o=t==="rtl"?"to left":"to right"}=e,i=hWe(e,["from","to","direction"]);if(Object.keys(i).length!==0){const s=pWe(i),l=`linear-gradient(${o}, ${s})`;return{background:l,[h1]:l}}const a=`linear-gradient(${o}, ${n}, ${r})`;return{background:a,[h1]:a}},vWe=e=>{const{prefixCls:t,direction:n,percent:r,size:o,strokeWidth:i,strokeColor:a,strokeLinecap:s="round",children:l,trailColor:u=null,percentPosition:d,success:f}=e,{align:m,type:h}=d,p=a&&typeof a!="string"?gWe(a,n):{[h1]:a,background:a},b=s==="square"||s==="butt"?0:void 0,v=o??[-1,i||(o==="small"?6:8)],[y,x]=sC(v,"line",{strokeWidth:i}),w={backgroundColor:u||void 0,borderRadius:b},C=Object.assign(Object.assign({width:`${qc(r)}%`,height:x,borderRadius:b},p),{[Ite]:qc(r)/100}),S=m1(e),$={width:`${qc(S)}%`,height:x,borderRadius:b,backgroundColor:f==null?void 0:f.strokeColor},E={width:y<0?"100%":y},O=c.createElement("div",{className:`${t}-inner`,style:w},c.createElement("div",{className:Q(`${t}-bg`,`${t}-bg-${h}`),style:C},h==="inner"&&l),S!==void 0&&c.createElement("div",{className:`${t}-success-bg`,style:$})),P=h==="outer"&&m==="start",j=h==="outer"&&m==="end";return h==="outer"&&m==="center"?c.createElement("div",{className:`${t}-layout-bottom`},O,l):c.createElement("div",{className:`${t}-outer`,style:E},P&&l,O,j&&l)},yWe=e=>{const{size:t,steps:n,rounding:r=Math.round,percent:o=0,strokeWidth:i=8,strokeColor:a,trailColor:s=null,prefixCls:l,children:u}=e,d=r(n*(o/100)),m=t??[t==="small"?2:14,i],[h,p]=sC(m,"step",{steps:n,strokeWidth:i}),b=h/n,v=Array.from({length:n});for(let y=0;y<n;y++){const x=Array.isArray(a)?a[y]:a;v[y]=c.createElement("div",{key:y,className:Q(`${l}-steps-item`,{[`${l}-steps-item-active`]:y<=d-1}),style:{backgroundColor:y<=d-1?x:s,width:b,height:p}})}return c.createElement("div",{className:`${l}-steps-outer`},v,u)};var bWe=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 xWe=["normal","exception","active","success"],Au=c.forwardRef((e,t)=>{const{prefixCls:n,className:r,rootClassName:o,steps:i,strokeColor:a,percent:s=0,size:l="default",showInfo:u=!0,type:d="line",status:f,format:m,style:h,percentPosition:p={}}=e,b=bWe(e,["prefixCls","className","rootClassName","steps","strokeColor","percent","size","showInfo","type","status","format","style","percentPosition"]),{align:v="end",type:y="outer"}=p,x=Array.isArray(a)?a[0]:a,w=typeof a=="string"||Array.isArray(a)?a:void 0,C=c.useMemo(()=>{if(x){const D=typeof x=="string"?x:Object.values(x)[0];return new On(D).isLight()}return!1},[a]),S=c.useMemo(()=>{var D,L;const B=m1(e);return Number.parseInt(B!==void 0?(D=B??0)===null||D===void 0?void 0:D.toString():(L=s??0)===null||L===void 0?void 0:L.toString(),10)},[s,e.success,e.successPercent]),$=c.useMemo(()=>!xWe.includes(f)&&S>=100?"success":f||"normal",[f,S]),{getPrefixCls:E,direction:O,progress:P}=c.useContext(kt),j=E("progress",n),[I,_,R]=mWe(j),N=d==="line",A=N&&!i,M=c.useMemo(()=>{if(!u)return null;const D=m1(e);let L;const B=m||(F=>`${F}%`),H=N&&C&&y==="inner";return y==="inner"||m||$!=="exception"&&$!=="success"?L=B(qc(s),qc(D)):$==="exception"?L=N?c.createElement(Gd,null):c.createElement(gu,null):$==="success"&&(L=N?c.createElement(Xv,null):c.createElement(RT,null)),c.createElement("span",{className:Q(`${j}-text`,{[`${j}-text-bright`]:H,[`${j}-text-${v}`]:A,[`${j}-text-${y}`]:A}),title:typeof L=="string"?L:void 0},L)},[u,s,S,$,d,j,m]);let T;d==="line"?T=i?c.createElement(yWe,Object.assign({},e,{strokeColor:w,prefixCls:j,steps:typeof i=="object"?i.count:i}),M):c.createElement(vWe,Object.assign({},e,{strokeColor:x,prefixCls:j,direction:O,percentPosition:{align:v,type:y}}),M):(d==="circle"||d==="dashboard")&&(T=c.createElement(sWe,Object.assign({},e,{strokeColor:x,prefixCls:j,progressStatus:$}),M));const k=Q(j,`${j}-status-${$}`,{[`${j}-${d==="dashboard"&&"circle"||d}`]:d!=="line",[`${j}-inline-circle`]:d==="circle"&&sC(l,"circle")[0]<=20,[`${j}-line`]:A,[`${j}-line-align-${v}`]:A,[`${j}-line-position-${y}`]:A,[`${j}-steps`]:i,[`${j}-show-info`]:u,[`${j}-${l}`]:typeof l=="string",[`${j}-rtl`]:O==="rtl"},P==null?void 0:P.className,r,o,_,R);return I(c.createElement("div",Object.assign({ref:t,style:Object.assign(Object.assign({},P==null?void 0:P.style),h),className:k,role:"progressbar","aria-valuenow":S,"aria-valuemin":0,"aria-valuemax":100},Xn(b,["trailColor","strokeWidth","width","gapDegree","gapPosition","strokeLinecap","success","successPercent"])),T))});var wWe={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"};const SWe=e=>{const{value:t,formatter:n,precision:r,decimalSeparator:o,groupSeparator:i="",prefixCls:a}=e;let s;if(typeof n=="function")s=n(t);else{const l=String(t),u=l.match(/^(-?)(\d*)(\.(\d+))?$/);if(!u||l==="-")s=l;else{const d=u[1];let f=u[2]||"0",m=u[4]||"";f=f.replace(/\B(?=(\d{3})+(?!\d))/g,i),typeof r=="number"&&(m=m.padEnd(r,"0").slice(0,r>0?r:0)),m&&(m=`${o}${m}`),s=[c.createElement("span",{key:"int",className:`${a}-content-value-int`},d,f),m&&c.createElement("span",{key:"decimal",className:`${a}-content-value-decimal`},m)]}}return c.createElement("span",{className:`${a}-content-value`},s)},CWe=e=>{const{componentCls:t,marginXXS:n,padding:r,colorTextDescription:o,titleFontSize:i,colorTextHeading:a,contentFontSize:s,fontFamily:l}=e;return{[t]:Object.assign(Object.assign({},xn(e)),{[`${t}-title`]:{marginBottom:n,color:o,fontSize:i},[`${t}-skeleton`]:{paddingTop:r},[`${t}-content`]:{color:a,fontSize:s,fontFamily:l,[`${t}-content-value`]:{display:"inline-block",direction:"ltr"},[`${t}-content-prefix, ${t}-content-suffix`]:{display:"inline-block"},[`${t}-content-prefix`]:{marginInlineEnd:n},[`${t}-content-suffix`]:{marginInlineStart:n}}})}},$We=e=>{const{fontSizeHeading3:t,fontSize:n}=e;return{titleFontSize:n,contentFontSize:t}},EWe=vn("Statistic",e=>{const t=cn(e,{});return CWe(t)},$We);var OWe=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 Ll=c.forwardRef((e,t)=>{const{prefixCls:n,className:r,rootClassName:o,style:i,valueStyle:a,value:s=0,title:l,valueRender:u,prefix:d,suffix:f,loading:m=!1,formatter:h,precision:p,decimalSeparator:b=".",groupSeparator:v=",",onMouseEnter:y,onMouseLeave:x}=e,w=OWe(e,["prefixCls","className","rootClassName","style","valueStyle","value","title","valueRender","prefix","suffix","loading","formatter","precision","decimalSeparator","groupSeparator","onMouseEnter","onMouseLeave"]),{getPrefixCls:C,direction:S,className:$,style:E}=Br("statistic"),O=C("statistic",n),[P,j,I]=EWe(O),_=c.createElement(SWe,{decimalSeparator:b,groupSeparator:v,prefixCls:O,formatter:h,precision:p,value:s}),R=Q(O,{[`${O}-rtl`]:S==="rtl"},$,r,o,j,I),N=c.useRef(null);c.useImperativeHandle(t,()=>({nativeElement:N.current}));const A=Pr(w,{aria:!0,data:!0});return P(c.createElement("div",Object.assign({},A,{ref:N,className:R,style:Object.assign(Object.assign({},E),i),onMouseEnter:y,onMouseLeave:x}),l&&c.createElement("div",{className:`${O}-title`},l),c.createElement(ka,{paragraph:!1,loading:m,className:`${O}-skeleton`,active:!0},c.createElement("div",{style:a,className:`${O}-content`},d&&c.createElement("span",{className:`${O}-content-prefix`},d),u?u(_):_,f&&c.createElement("span",{className:`${O}-content-suffix`},f)))))}),PWe=[["Y",1e3*60*60*24*365],["M",1e3*60*60*24*30],["D",1e3*60*60*24],["H",1e3*60*60],["m",1e3*60],["s",1e3],["S",1]];function jWe(e,t){let n=e;const r=/\[[^\]]*]/g,o=(t.match(r)||[]).map(l=>l.slice(1,-1)),i=t.replace(r,"[]"),a=PWe.reduce((l,[u,d])=>{if(l.includes(u)){const f=Math.floor(n/d);return n-=f*d,l.replace(new RegExp(`${u}+`,"g"),m=>{const h=m.length;return f.toString().padStart(h,"0")})}return l},i);let s=0;return a.replace(r,()=>{const l=o[s];return s+=1,l})}function IWe(e,t,n){const{format:r=""}=t,o=new Date(e).getTime(),i=Date.now(),a=Math.max(n?o-i:i-o,0);return jWe(a,r)}var _We=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 NWe(e){return new Date(e).getTime()}const _te=e=>{const{value:t,format:n="HH:mm:ss",onChange:r,onFinish:o,type:i}=e,a=_We(e,["value","format","onChange","onFinish","type"]),s=i==="countdown",[l,u]=c.useState(null),d=fn(()=>{const h=Date.now(),p=NWe(t);u({});const b=s?p-h:h-p;return r==null||r(b),s&&p<h?(o==null||o(),!1):!0});c.useEffect(()=>{let h;const p=()=>ln.cancel(h),b=()=>{h=ln(()=>{d()&&b()})};return b(),p},[t,s]),c.useEffect(()=>{u({})},[]);const f=(h,p)=>l?IWe(h,Object.assign(Object.assign({},p),{format:n}),s):"-",m=h=>qr(h,{title:void 0});return c.createElement(Ll,Object.assign({},a,{value:t,valueRender:m,formatter:f}))},RWe=e=>c.createElement(_te,Object.assign({},e,{type:"countdown"})),TWe=c.memo(RWe);Ll.Timer=_te;Ll.Countdown=TWe;var MWe=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],Nte=c.forwardRef(function(e,t){var n,r=e.prefixCls,o=r===void 0?"rc-switch":r,i=e.className,a=e.checked,s=e.defaultChecked,l=e.disabled,u=e.loadingIcon,d=e.checkedChildren,f=e.unCheckedChildren,m=e.onClick,h=e.onChange,p=e.onKeyDown,b=Ht(e,MWe),v=kn(!1,{value:a,defaultValue:s}),y=ue(v,2),x=y[0],w=y[1];function C(O,P){var j=x;return l||(j=O,w(j),h==null||h(j,P)),j}function S(O){O.which===jt.LEFT?C(!1,O):O.which===jt.RIGHT&&C(!0,O),p==null||p(O)}function $(O){var P=C(!x,O);m==null||m(P,O)}var E=Q(o,i,(n={},K(n,"".concat(o,"-checked"),x),K(n,"".concat(o,"-disabled"),l),n));return c.createElement("button",Ee({},b,{type:"button",role:"switch","aria-checked":x,disabled:l,className:E,ref:t,onKeyDown:S,onClick:$}),u,c.createElement("span",{className:"".concat(o,"-inner")},c.createElement("span",{className:"".concat(o,"-inner-checked")},d),c.createElement("span",{className:"".concat(o,"-inner-unchecked")},f)))});Nte.displayName="Switch";const kWe=e=>{const{componentCls:t,trackHeightSM:n,trackPadding:r,trackMinWidthSM:o,innerMinMarginSM:i,innerMaxMarginSM:a,handleSizeSM:s,calc:l}=e,u=`${t}-inner`,d=Z(l(s).add(l(r).mul(2)).equal()),f=Z(l(a).mul(2).equal());return{[t]:{[`&${t}-small`]:{minWidth:o,height:n,lineHeight:Z(n),[`${t}-inner`]:{paddingInlineStart:a,paddingInlineEnd:i,[`${u}-checked, ${u}-unchecked`]:{minHeight:n},[`${u}-checked`]:{marginInlineStart:`calc(-100% + ${d} - ${f})`,marginInlineEnd:`calc(100% - ${d} + ${f})`},[`${u}-unchecked`]:{marginTop:l(n).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`${t}-handle`]:{width:s,height:s},[`${t}-loading-icon`]:{top:l(l(s).sub(e.switchLoadingIconSize)).div(2).equal(),fontSize:e.switchLoadingIconSize},[`&${t}-checked`]:{[`${t}-inner`]:{paddingInlineStart:i,paddingInlineEnd:a,[`${u}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${u}-unchecked`]:{marginInlineStart:`calc(100% - ${d} + ${f})`,marginInlineEnd:`calc(-100% + ${d} - ${f})`}},[`${t}-handle`]:{insetInlineStart:`calc(100% - ${Z(l(s).add(r).equal())})`}},[`&:not(${t}-disabled):active`]:{[`&:not(${t}-checked) ${u}`]:{[`${u}-unchecked`]:{marginInlineStart:l(e.marginXXS).div(2).equal(),marginInlineEnd:l(e.marginXXS).mul(-1).div(2).equal()}},[`&${t}-checked ${u}`]:{[`${u}-checked`]:{marginInlineStart:l(e.marginXXS).mul(-1).div(2).equal(),marginInlineEnd:l(e.marginXXS).div(2).equal()}}}}}}},AWe=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}}}},DWe=e=>{const{componentCls:t,trackPadding:n,handleBg:r,handleShadow:o,handleSize:i,calc:a}=e,s=`${t}-handle`;return{[t]:{[s]:{position:"absolute",top:n,insetInlineStart:n,width:i,height:i,transition:`all ${e.switchDuration} ease-in-out`,"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,backgroundColor:r,borderRadius:a(i).div(2).equal(),boxShadow:o,transition:`all ${e.switchDuration} ease-in-out`,content:'""'}},[`&${t}-checked ${s}`]:{insetInlineStart:`calc(100% - ${Z(a(i).add(n).equal())})`},[`&:not(${t}-disabled):active`]:{[`${s}::before`]:{insetInlineEnd:e.switchHandleActiveInset,insetInlineStart:0},[`&${t}-checked ${s}::before`]:{insetInlineEnd:0,insetInlineStart:e.switchHandleActiveInset}}}}},LWe=e=>{const{componentCls:t,trackHeight:n,trackPadding:r,innerMinMargin:o,innerMaxMargin:i,handleSize:a,calc:s}=e,l=`${t}-inner`,u=Z(s(a).add(s(r).mul(2)).equal()),d=Z(s(i).mul(2).equal());return{[t]:{[l]:{display:"block",overflow:"hidden",borderRadius:100,height:"100%",paddingInlineStart:i,paddingInlineEnd:o,transition:`padding-inline-start ${e.switchDuration} ease-in-out, padding-inline-end ${e.switchDuration} ease-in-out`,[`${l}-checked, ${l}-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},[`${l}-checked`]:{marginInlineStart:`calc(-100% + ${u} - ${d})`,marginInlineEnd:`calc(100% - ${u} + ${d})`},[`${l}-unchecked`]:{marginTop:s(n).mul(-1).equal(),marginInlineStart:0,marginInlineEnd:0}},[`&${t}-checked ${l}`]:{paddingInlineStart:o,paddingInlineEnd:i,[`${l}-checked`]:{marginInlineStart:0,marginInlineEnd:0},[`${l}-unchecked`]:{marginInlineStart:`calc(100% - ${u} + ${d})`,marginInlineEnd:`calc(-100% + ${u} - ${d})`}},[`&:not(${t}-disabled):active`]:{[`&:not(${t}-checked) ${l}`]:{[`${l}-unchecked`]:{marginInlineStart:s(r).mul(2).equal(),marginInlineEnd:s(r).mul(-1).mul(2).equal()}},[`&${t}-checked ${l}`]:{[`${l}-checked`]:{marginInlineStart:s(r).mul(-1).mul(2).equal(),marginInlineEnd:s(r).mul(2).equal()}}}}}},zWe=e=>{const{componentCls:t,trackHeight:n,trackMinWidth:r}=e;return{[t]:Object.assign(Object.assign(Object.assign(Object.assign({},xn(e)),{position:"relative",display:"inline-block",boxSizing:"border-box",minWidth:r,height:n,lineHeight:Z(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}}),Hs(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"}})}},FWe=e=>{const{fontSize:t,lineHeight:n,controlHeight:r,colorWhite:o}=e,i=t*n,a=r/2,s=2,l=i-s*2,u=a-s*2;return{trackHeight:i,trackHeightSM:a,trackMinWidth:l*2+s*4,trackMinWidthSM:u*2+s*2,trackPadding:s,handleBg:o,handleSize:l,handleSizeSM:u,handleShadow:`0 2px 4px 0 ${new On("#00230b").setA(.2).toRgbString()}`,innerMinMargin:l/2,innerMaxMargin:l+s+s*2,innerMinMarginSM:u/2,innerMaxMarginSM:u+s+s*2}},BWe=vn("Switch",e=>{const t=cn(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[zWe(t),LWe(t),DWe(t),AWe(t),kWe(t)]},FWe);var HWe=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 VWe=c.forwardRef((e,t)=>{const{prefixCls:n,size:r,disabled:o,loading:i,className:a,rootClassName:s,style:l,checked:u,value:d,defaultChecked:f,defaultValue:m,onChange:h}=e,p=HWe(e,["prefixCls","size","disabled","loading","className","rootClassName","style","checked","value","defaultChecked","defaultValue","onChange"]),[b,v]=kn(!1,{value:u??d,defaultValue:f??m}),{getPrefixCls:y,direction:x,switch:w}=c.useContext(kt),C=c.useContext(ai),S=(o??C)||i,$=y("switch",n),E=c.createElement("div",{className:`${$}-handle`},i&&c.createElement(Zl,{className:`${$}-loading-icon`})),[O,P,j]=BWe($),I=go(r),_=Q(w==null?void 0:w.className,{[`${$}-small`]:I==="small",[`${$}-loading`]:i,[`${$}-rtl`]:x==="rtl"},a,s,P,j),R=Object.assign(Object.assign({},w==null?void 0:w.style),l),N=(...A)=>{v(A[0]),h==null||h.apply(void 0,A)};return O(c.createElement(Jv,{component:"Switch",disabled:S},c.createElement(Nte,Object.assign({},p,{checked:b,onChange:N,prefixCls:$,className:_,style:R,disabled:S,ref:t,loadingIcon:E}))))}),fm=VWe;fm.__ANT_SWITCH=!0;var Ec={},d0="rc-table-internal-hook";function p3(e){var t=c.createContext(void 0),n=function(o){var i=o.value,a=o.children,s=c.useRef(i);s.current=i;var l=c.useState(function(){return{getValue:function(){return s.current},listeners:new Set}}),u=ue(l,1),d=u[0];return sn(function(){Fi.unstable_batchedUpdates(function(){d.listeners.forEach(function(f){f(i)})})},[i]),c.createElement(t.Provider,{value:d},a)};return{Context:t,Provider:n,defaultValue:e}}function Ko(e,t){var n=fn(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(h){m[h]=f[h]}),m}),r=c.useContext(e==null?void 0:e.Context),o=r||{},i=o.listeners,a=o.getValue,s=c.useRef();s.current=n(r?a():e==null?void 0:e.defaultValue);var l=c.useState({}),u=ue(l,2),d=u[1];return sn(function(){if(!r)return;function f(m){var h=n(m);ml(s.current,h,!0)||d({})}return i.add(f),function(){i.delete(f)}},[r]),s.current}function WWe(){var e=c.createContext(null);function t(){return c.useContext(e)}function n(o,i){var a=Fs(o),s=function(u,d){var f=a?{ref:d}:{},m=c.useRef(0),h=c.useRef(u),p=t();return p!==null?c.createElement(o,Ee({},u,f)):((!i||i(h.current,u))&&(m.current+=1),h.current=u,c.createElement(e.Provider,{value:m.current},c.createElement(o,Ee({},u,f))))};return a?c.forwardRef(s):s}function r(o,i){var a=Fs(o),s=function(u,d){var f=a?{ref:d}:{};return t(),c.createElement(o,Ee({},u,f))};return a?c.memo(c.forwardRef(s),i):c.memo(s,i)}return{makeImmutable:n,responseImmutable:r,useImmutableMark:t}}var g3=WWe(),Rte=g3.makeImmutable,jh=g3.responseImmutable,UWe=g3.useImmutableMark,Ci=p3(),Tte=c.createContext({renderWithProps:!1}),KWe="RC_TABLE_KEY";function qWe(e){return e==null?[]:Array.isArray(e)?e:[e]}function lC(e){var t=[],n={};return e.forEach(function(r){for(var o=r||{},i=o.key,a=o.dataIndex,s=i||qWe(a).join("-")||KWe;n[s];)s="".concat(s,"_next");n[s]=!0,t.push(s)}),t}function kj(e){return e!=null}function GWe(e){return typeof e=="number"&&!Number.isNaN(e)}function XWe(e){return e&&_t(e)==="object"&&!Array.isArray(e)&&!c.isValidElement(e)}function YWe(e,t,n,r,o,i){var a=c.useContext(Tte),s=UWe(),l=qd(function(){if(kj(r))return[r];var u=t==null||t===""?[]:Array.isArray(t)?t:[t],d=Ai(e,u),f=d,m=void 0;if(o){var h=o(d,e,n);XWe(h)?(f=h.children,m=h.props,a.renderWithProps=!0):f=h}return[f,m]},[s,e,r,t,o,n],function(u,d){if(i){var f=ue(u,2),m=f[1],h=ue(d,2),p=h[1];return i(p,m)}return a.renderWithProps?!0:!ml(u,d,!0)});return l}function ZWe(e,t,n,r){var o=e+t-1;return e<=r&&o>=n}function JWe(e,t){return Ko(Ci,function(n){var r=ZWe(e,t||1,n.hoverStartRow,n.hoverEndRow);return[r,n.onHover]})}var QWe=function(t){var n=t.ellipsis,r=t.rowType,o=t.children,i,a=n===!0?{showTitle:!0}:n;return a&&(a.showTitle||r==="header")&&(typeof o=="string"||typeof o=="number"?i=o.toString():c.isValidElement(o)&&typeof o.props.children=="string"&&(i=o.props.children)),i};function eUe(e){var t,n,r,o,i,a,s,l,u=e.component,d=e.children,f=e.ellipsis,m=e.scope,h=e.prefixCls,p=e.className,b=e.align,v=e.record,y=e.render,x=e.dataIndex,w=e.renderIndex,C=e.shouldCellUpdate,S=e.index,$=e.rowType,E=e.colSpan,O=e.rowSpan,P=e.fixLeft,j=e.fixRight,I=e.firstFixLeft,_=e.lastFixLeft,R=e.firstFixRight,N=e.lastFixRight,A=e.appendNode,M=e.additionalProps,T=M===void 0?{}:M,k=e.isSticky,D="".concat(h,"-cell"),L=Ko(Ci,["supportSticky","allColumnsFixedLeft","rowHoverable"]),B=L.supportSticky,H=L.allColumnsFixedLeft,F=L.rowHoverable,W=YWe(v,x,w,d,y,C),q=ue(W,2),G=q[0],te=q[1],ee={},z=typeof P=="number"&&B,ne=typeof j=="number"&&B;z&&(ee.position="sticky",ee.left=P),ne&&(ee.position="sticky",ee.right=j);var X=(t=(n=(r=te==null?void 0:te.colSpan)!==null&&r!==void 0?r:T.colSpan)!==null&&n!==void 0?n:E)!==null&&t!==void 0?t:1,U=(o=(i=(a=te==null?void 0:te.rowSpan)!==null&&a!==void 0?a:T.rowSpan)!==null&&i!==void 0?i:O)!==null&&o!==void 0?o:1,le=JWe(S,U),se=ue(le,2),ae=se[0],re=se[1],fe=fn(function(de){var be;v&&re(S,S+U-1),T==null||(be=T.onMouseEnter)===null||be===void 0||be.call(T,de)}),ye=fn(function(de){var be;v&&re(-1,-1),T==null||(be=T.onMouseLeave)===null||be===void 0||be.call(T,de)});if(X===0||U===0)return null;var Pe=(s=T.title)!==null&&s!==void 0?s:QWe({rowType:$,ellipsis:f,children:G}),Oe=Q(D,p,(l={},K(K(K(K(K(K(K(K(K(K(l,"".concat(D,"-fix-left"),z&&B),"".concat(D,"-fix-left-first"),I&&B),"".concat(D,"-fix-left-last"),_&&B),"".concat(D,"-fix-left-all"),_&&H&&B),"".concat(D,"-fix-right"),ne&&B),"".concat(D,"-fix-right-first"),R&&B),"".concat(D,"-fix-right-last"),N&&B),"".concat(D,"-ellipsis"),f),"".concat(D,"-with-append"),A),"".concat(D,"-fix-sticky"),(z||ne)&&k&&B),K(l,"".concat(D,"-row-hover"),!te&&ae)),T.className,te==null?void 0:te.className),V={};b&&(V.textAlign=b);var J=Y(Y(Y(Y({},te==null?void 0:te.style),ee),V),T.style),oe=G;return _t(oe)==="object"&&!Array.isArray(oe)&&!c.isValidElement(oe)&&(oe=null),f&&(_||R)&&(oe=c.createElement("span",{className:"".concat(D,"-content")},oe)),c.createElement(u,Ee({},te,T,{className:Oe,style:J,title:Pe,scope:m,onMouseEnter:F?fe:void 0,onMouseLeave:F?ye:void 0,colSpan:X!==1?X:null,rowSpan:U!==1?U:null}),A,oe)}const Ih=c.memo(eUe);function v3(e,t,n,r,o){var i=n[e]||{},a=n[t]||{},s,l;i.fixed==="left"?s=r.left[o==="rtl"?t:e]:a.fixed==="right"&&(l=r.right[o==="rtl"?e:t]);var u=!1,d=!1,f=!1,m=!1,h=n[t+1],p=n[e-1],b=h&&!h.fixed||p&&!p.fixed||n.every(function(C){return C.fixed==="left"});if(o==="rtl"){if(s!==void 0){var v=p&&p.fixed==="left";m=!v&&b}else if(l!==void 0){var y=h&&h.fixed==="right";f=!y&&b}}else if(s!==void 0){var x=h&&h.fixed==="left";u=!x&&b}else if(l!==void 0){var w=p&&p.fixed==="right";d=!w&&b}return{fixLeft:s,fixRight:l,lastFixLeft:u,firstFixRight:d,lastFixRight:f,firstFixLeft:m,isSticky:r.isSticky}}var Mte=c.createContext({});function tUe(e){var t=e.className,n=e.index,r=e.children,o=e.colSpan,i=o===void 0?1:o,a=e.rowSpan,s=e.align,l=Ko(Ci,["prefixCls","direction"]),u=l.prefixCls,d=l.direction,f=c.useContext(Mte),m=f.scrollColumnIndex,h=f.stickyOffsets,p=f.flattenColumns,b=n+i-1,v=b+1===m?i+1:i,y=v3(n,n+v-1,p,h,d);return c.createElement(Ih,Ee({className:t,index:n,component:"td",prefixCls:u,record:null,dataIndex:null,align:s,colSpan:v,rowSpan:a,render:function(){return r}},y))}var nUe=["children"];function rUe(e){var t=e.children,n=Ht(e,nUe);return c.createElement("tr",n,t)}function cC(e){var t=e.children;return t}cC.Row=rUe;cC.Cell=tUe;function oUe(e){var t=e.children,n=e.stickyOffsets,r=e.flattenColumns,o=Ko(Ci,"prefixCls"),i=r.length-1,a=r[i],s=c.useMemo(function(){return{stickyOffsets:n,flattenColumns:r,scrollColumnIndex:a!=null&&a.scrollbar?i:null}},[a,r,i,n]);return c.createElement(Mte.Provider,{value:s},c.createElement("tfoot",{className:"".concat(o,"-summary")},t))}const Sy=jh(oUe);var kte=cC;function iUe(e){return null}function aUe(e){return null}function Ate(e,t,n,r,o,i,a){var s=i(t,a);e.push({record:t,indent:n,index:a,rowKey:s});var l=o==null?void 0:o.has(s);if(t&&Array.isArray(t[r])&&l)for(var u=0;u<t[r].length;u+=1)Ate(e,t[r][u],n+1,r,o,i,u)}function Dte(e,t,n,r){var o=c.useMemo(function(){if(n!=null&&n.size){for(var i=[],a=0;a<(e==null?void 0:e.length);a+=1){var s=e[a];Ate(i,s,0,t,n,r,a)}return i}return e==null?void 0:e.map(function(l,u){return{record:l,indent:0,index:u,rowKey:r(l,u)}})},[e,t,n,r]);return o}function Lte(e,t,n,r){var o=Ko(Ci,["prefixCls","fixedInfoList","flattenColumns","expandableType","expandRowByClick","onTriggerExpand","rowClassName","expandedRowClassName","indentSize","expandIcon","expandedRowRender","expandIconColumnIndex","expandedKeys","childrenColumnName","rowExpandable","onRow"]),i=o.flattenColumns,a=o.expandableType,s=o.expandedKeys,l=o.childrenColumnName,u=o.onTriggerExpand,d=o.rowExpandable,f=o.onRow,m=o.expandRowByClick,h=o.rowClassName,p=a==="nest",b=a==="row"&&(!d||d(e)),v=b||p,y=s&&s.has(t),x=l&&e&&e[l],w=fn(u),C=f==null?void 0:f(e,n),S=C==null?void 0:C.onClick,$=function(j){m&&v&&u(e,j);for(var I=arguments.length,_=new Array(I>1?I-1:0),R=1;R<I;R++)_[R-1]=arguments[R];S==null||S.apply(void 0,[j].concat(_))},E;typeof h=="string"?E=h:typeof h=="function"&&(E=h(e,n,r));var O=lC(i);return Y(Y({},o),{},{columnsKey:O,nestExpandable:p,expanded:y,hasNestChildren:x,record:e,onTriggerExpand:w,rowSupportExpand:b,expandable:v,rowProps:Y(Y({},C),{},{className:Q(E,C==null?void 0:C.className),onClick:$})})}function zte(e){var t=e.prefixCls,n=e.children,r=e.component,o=e.cellComponent,i=e.className,a=e.expanded,s=e.colSpan,l=e.isEmpty,u=e.stickyOffset,d=u===void 0?0:u,f=Ko(Ci,["scrollbarSize","fixHeader","fixColumn","componentWidth","horizonScroll"]),m=f.scrollbarSize,h=f.fixHeader,p=f.fixColumn,b=f.componentWidth,v=f.horizonScroll,y=n;return(l?v&&b:p)&&(y=c.createElement("div",{style:{width:b-d-(h&&!l?m:0),position:"sticky",left:d,overflow:"hidden"},className:"".concat(t,"-expanded-row-fixed")},y)),c.createElement(r,{className:i,style:{display:a?null:"none"}},c.createElement(Ih,{component:o,prefixCls:t,colSpan:s},y))}function sUe(e){var t=e.prefixCls,n=e.record,r=e.onExpand,o=e.expanded,i=e.expandable,a="".concat(t,"-row-expand-icon");if(!i)return c.createElement("span",{className:Q(a,"".concat(t,"-row-spaced"))});var s=function(u){r(n,u),u.stopPropagation()};return c.createElement("span",{className:Q(a,K(K({},"".concat(t,"-row-expanded"),o),"".concat(t,"-row-collapsed"),!o)),onClick:s})}function lUe(e,t,n){var r=[];function o(i){(i||[]).forEach(function(a,s){r.push(t(a,s)),o(a[n])})}return o(e),r}function Fte(e,t,n,r){return typeof e=="string"?e:typeof e=="function"?e(t,n,r):""}function Bte(e,t,n,r,o){var i,a=arguments.length>5&&arguments[5]!==void 0?arguments[5]:[],s=arguments.length>6&&arguments[6]!==void 0?arguments[6]:0,l=e.record,u=e.prefixCls,d=e.columnsKey,f=e.fixedInfoList,m=e.expandIconColumnIndex,h=e.nestExpandable,p=e.indentSize,b=e.expandIcon,v=e.expanded,y=e.hasNestChildren,x=e.onTriggerExpand,w=e.expandable,C=e.expandedKeys,S=d[n],$=f[n],E;n===(m||0)&&h&&(E=c.createElement(c.Fragment,null,c.createElement("span",{style:{paddingLeft:"".concat(p*r,"px")},className:"".concat(u,"-row-indent indent-level-").concat(r)}),b({prefixCls:u,expanded:v,expandable:y,record:l,onExpand:x})));var O=((i=t.onCell)===null||i===void 0?void 0:i.call(t,l,o))||{};if(s){var P=O.rowSpan,j=P===void 0?1:P;if(w&&j&&n<s){for(var I=j,_=o;_<o+j;_+=1){var R=a[_];C.has(R)&&(I+=1)}O.rowSpan=I}}return{key:S,fixedInfo:$,appendCellNode:E,additionalCellProps:O}}function cUe(e){var t=e.className,n=e.style,r=e.record,o=e.index,i=e.renderIndex,a=e.rowKey,s=e.rowKeys,l=e.indent,u=l===void 0?0:l,d=e.rowComponent,f=e.cellComponent,m=e.scopeCellComponent,h=e.expandedRowInfo,p=Lte(r,a,o,u),b=p.prefixCls,v=p.flattenColumns,y=p.expandedRowClassName,x=p.expandedRowRender,w=p.rowProps,C=p.expanded,S=p.rowSupportExpand,$=c.useRef(!1);$.current||($.current=C);var E=Fte(y,r,o,u),O=c.createElement(d,Ee({},w,{"data-row-key":a,className:Q(t,"".concat(b,"-row"),"".concat(b,"-row-level-").concat(u),w==null?void 0:w.className,K({},E,u>=1)),style:Y(Y({},n),w==null?void 0:w.style)}),v.map(function(I,_){var R=I.render,N=I.dataIndex,A=I.className,M=Bte(p,I,_,u,o,s,h==null?void 0:h.offset),T=M.key,k=M.fixedInfo,D=M.appendCellNode,L=M.additionalCellProps;return c.createElement(Ih,Ee({className:A,ellipsis:I.ellipsis,align:I.align,scope:I.rowScope,component:I.rowScope?m:f,prefixCls:b,key:T,record:r,index:o,renderIndex:i,dataIndex:N,render:R,shouldCellUpdate:I.shouldCellUpdate},k,{appendNode:D,additionalProps:L}))})),P;if(S&&($.current||C)){var j=x(r,o,u+1,C);P=c.createElement(zte,{expanded:C,className:Q("".concat(b,"-expanded-row"),"".concat(b,"-expanded-row-level-").concat(u+1),E),prefixCls:b,component:d,cellComponent:f,colSpan:h?h.colSpan:v.length,stickyOffset:h==null?void 0:h.sticky,isEmpty:!1},j)}return c.createElement(c.Fragment,null,O,P)}const uUe=jh(cUe);function dUe(e){var t=e.columnKey,n=e.onColumnResize,r=e.prefixCls,o=e.title,i=c.useRef();return sn(function(){i.current&&n(t,i.current.offsetWidth)},[]),c.createElement(Wo,{data:t},c.createElement("th",{ref:i,className:"".concat(r,"-measure-cell")},c.createElement("div",{className:"".concat(r,"-measure-cell-content")},o||" ")))}function fUe(e){var t=e.prefixCls,n=e.columnsKey,r=e.onColumnResize,o=e.columns,i=c.useRef(null),a=Ko(Ci,["measureRowRender"]),s=a.measureRowRender,l=c.createElement("tr",{"aria-hidden":"true",className:"".concat(t,"-measure-row"),ref:i,tabIndex:-1},c.createElement(Wo.Collection,{onBatchResize:function(d){xh(i.current)&&d.forEach(function(f){var m=f.data,h=f.size;r(m,h.offsetWidth)})}},n.map(function(u){var d=o.find(function(h){return h.key===u}),f=d==null?void 0:d.title,m=c.isValidElement(f)?c.cloneElement(f,{ref:null}):f;return c.createElement(dUe,{prefixCls:t,key:u,columnKey:u,onColumnResize:r,title:m})})));return s?s(l):l}function mUe(e){var t=e.data,n=e.measureColumnWidth,r=Ko(Ci,["prefixCls","getComponent","onColumnResize","flattenColumns","getRowKey","expandedKeys","childrenColumnName","emptyNode","expandedRowOffset","fixedInfoList","colWidths"]),o=r.prefixCls,i=r.getComponent,a=r.onColumnResize,s=r.flattenColumns,l=r.getRowKey,u=r.expandedKeys,d=r.childrenColumnName,f=r.emptyNode,m=r.expandedRowOffset,h=m===void 0?0:m,p=r.colWidths,b=Dte(t,d,u,l),v=c.useMemo(function(){return b.map(function(P){return P.rowKey})},[b]),y=c.useRef({renderWithProps:!1}),x=c.useMemo(function(){for(var P=s.length-h,j=0,I=0;I<h;I+=1)j+=p[I]||0;return{offset:h,colSpan:P,sticky:j}},[s.length,h,p]),w=i(["body","wrapper"],"tbody"),C=i(["body","row"],"tr"),S=i(["body","cell"],"td"),$=i(["body","cell"],"th"),E;t.length?E=b.map(function(P,j){var I=P.record,_=P.indent,R=P.index,N=P.rowKey;return c.createElement(uUe,{key:N,rowKey:N,rowKeys:v,record:I,index:j,renderIndex:R,rowComponent:C,cellComponent:S,scopeCellComponent:$,indent:_,expandedRowInfo:x})}):E=c.createElement(zte,{expanded:!0,className:"".concat(o,"-placeholder"),prefixCls:o,component:C,cellComponent:S,colSpan:s.length,isEmpty:!0},f);var O=lC(s);return c.createElement(Tte.Provider,{value:y.current},c.createElement(w,{className:"".concat(o,"-tbody")},n&&c.createElement(fUe,{prefixCls:o,columnsKey:O,onColumnResize:a,columns:s}),E))}const hUe=jh(mUe);var pUe=["expandable"],Kp="RC_TABLE_INTERNAL_COL_DEFINE";function gUe(e){var t=e.expandable,n=Ht(e,pUe),r;return"expandable"in e?r=Y(Y({},n),t):r=n,r.showExpandColumn===!1&&(r.expandIconColumnIndex=-1),r}var vUe=["columnType"];function Hte(e){for(var t=e.colWidths,n=e.columns,r=e.columCount,o=Ko(Ci,["tableLayout"]),i=o.tableLayout,a=[],s=r||n.length,l=!1,u=s-1;u>=0;u-=1){var d=t[u],f=n&&n[u],m=void 0,h=void 0;if(f&&(m=f[Kp],i==="auto"&&(h=f.minWidth)),d||h||m||l){var p=m||{};p.columnType;var b=Ht(p,vUe);a.unshift(c.createElement("col",Ee({key:u,style:{width:d,minWidth:h}},b))),l=!0}}return a.length>0?c.createElement("colgroup",null,a):null}var yUe=["className","noData","columns","flattenColumns","colWidths","colGroup","columCount","stickyOffsets","direction","fixHeader","stickyTopOffset","stickyBottomOffset","stickyClassName","scrollX","tableLayout","onScroll","children"];function bUe(e,t){return c.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 xUe=c.forwardRef(function(e,t){var n=e.className,r=e.noData,o=e.columns,i=e.flattenColumns,a=e.colWidths,s=e.colGroup,l=e.columCount,u=e.stickyOffsets,d=e.direction,f=e.fixHeader,m=e.stickyTopOffset,h=e.stickyBottomOffset,p=e.stickyClassName,b=e.scrollX,v=e.tableLayout,y=v===void 0?"fixed":v,x=e.onScroll,w=e.children,C=Ht(e,yUe),S=Ko(Ci,["prefixCls","scrollbarSize","isSticky","getComponent"]),$=S.prefixCls,E=S.scrollbarSize,O=S.isSticky,P=S.getComponent,j=P(["header","table"],"table"),I=O&&!f?0:E,_=c.useRef(null),R=c.useCallback(function(B){Dg(t,B),Dg(_,B)},[]);c.useEffect(function(){function B(F){var W=F,q=W.currentTarget,G=W.deltaX;G&&(x({currentTarget:q,scrollLeft:q.scrollLeft+G}),F.preventDefault())}var H=_.current;return H==null||H.addEventListener("wheel",B,{passive:!1}),function(){H==null||H.removeEventListener("wheel",B)}},[]);var N=i[i.length-1],A={fixed:N?N.fixed:null,scrollbar:!0,onHeaderCell:function(){return{className:"".concat($,"-cell-scrollbar")}}},M=c.useMemo(function(){return I?[].concat(Ne(o),[A]):o},[I,o]),T=c.useMemo(function(){return I?[].concat(Ne(i),[A]):i},[I,i]),k=c.useMemo(function(){var B=u.right,H=u.left;return Y(Y({},u),{},{left:d==="rtl"?[].concat(Ne(H.map(function(F){return F+I})),[0]):H,right:d==="rtl"?B:[].concat(Ne(B.map(function(F){return F+I})),[0]),isSticky:O})},[I,u,O]),D=bUe(a,l),L=c.useMemo(function(){var B=!D||!D.length||D.every(function(H){return!H});return r||B},[r,D]);return c.createElement("div",{style:Y({overflow:"hidden"},O?{top:m,bottom:h}:{}),ref:R,className:Q(n,K({},p,!!p))},c.createElement(j,{style:{tableLayout:y,minWidth:"100%",width:b}},L?s:c.createElement(Hte,{colWidths:[].concat(Ne(D),[I]),columCount:l+1,columns:T}),w(Y(Y({},C),{},{stickyOffsets:k,columns:M,flattenColumns:T}))))});const vF=c.memo(xUe);var wUe=function(t){var n=t.cells,r=t.stickyOffsets,o=t.flattenColumns,i=t.rowComponent,a=t.cellComponent,s=t.onHeaderRow,l=t.index,u=Ko(Ci,["prefixCls","direction"]),d=u.prefixCls,f=u.direction,m;s&&(m=s(n.map(function(p){return p.column}),l));var h=lC(n.map(function(p){return p.column}));return c.createElement(i,m,n.map(function(p,b){var v=p.column,y=v3(p.colStart,p.colEnd,o,r,f),x;return v&&v.onHeaderCell&&(x=p.column.onHeaderCell(v)),c.createElement(Ih,Ee({},p,{scope:v.title?p.colSpan>1?"colgroup":"col":null,ellipsis:v.ellipsis,align:v.align,component:a,prefixCls:d,key:h[b]},y,{additionalProps:x,rowType:"header"}))}))};function SUe(e){var t=[];function n(a,s){var l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;t[l]=t[l]||[];var u=s,d=a.filter(Boolean).map(function(f){var m={key:f.key,className:f.className||"",children:f.title,column:f,colStart:u},h=1,p=f.children;return p&&p.length>0&&(h=n(p,u,l+1).reduce(function(b,v){return b+v},0),m.hasSubColumns=!0),"colSpan"in f&&(h=f.colSpan),"rowSpan"in f&&(m.rowSpan=f.rowSpan),m.colSpan=h,m.colEnd=m.colStart+h-1,t[l].push(m),u+=h,h});return d}n(e,0);for(var r=t.length,o=function(s){t[s].forEach(function(l){!("rowSpan"in l)&&!l.hasSubColumns&&(l.rowSpan=r-s)})},i=0;i<r;i+=1)o(i);return t}var CUe=function(t){var n=t.stickyOffsets,r=t.columns,o=t.flattenColumns,i=t.onHeaderRow,a=Ko(Ci,["prefixCls","getComponent"]),s=a.prefixCls,l=a.getComponent,u=c.useMemo(function(){return SUe(r)},[r]),d=l(["header","wrapper"],"thead"),f=l(["header","row"],"tr"),m=l(["header","cell"],"th");return c.createElement(d,{className:"".concat(s,"-thead")},u.map(function(h,p){var b=c.createElement(wUe,{key:p,flattenColumns:o,cells:h,stickyOffsets:n,rowComponent:f,cellComponent:m,onHeaderRow:i,index:p});return b}))};const yF=jh(CUe);function bF(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 $Ue(e,t,n){return c.useMemo(function(){if(t&&t>0){var r=0,o=0;e.forEach(function(m){var h=bF(t,m.width);h?r+=h:o+=1});var i=Math.max(t,n),a=Math.max(i-r,o),s=o,l=a/o,u=0,d=e.map(function(m){var h=Y({},m),p=bF(t,h.width);if(p)h.width=p;else{var b=Math.floor(l);h.width=s===1?a:b,a-=b,s-=1}return u+=h.width,h});if(u<i){var f=i/u;a=i,d.forEach(function(m,h){var p=Math.floor(m.width*f);m.width=h===d.length-1?a:p,a-=p})}return[d,Math.max(u,i)]}return[e,t]},[e,t,n])}var EUe=["children"],OUe=["fixed"];function y3(e){return ii(e).filter(function(t){return c.isValidElement(t)}).map(function(t){var n=t.key,r=t.props,o=r.children,i=Ht(r,EUe),a=Y({key:n},i);return o&&(a.children=y3(o)),a})}function Vte(e){return e.filter(function(t){return t&&_t(t)==="object"&&!t.hidden}).map(function(t){var n=t.children;return n&&n.length>0?Y(Y({},t),{},{children:Vte(n)}):t})}function Aj(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"key";return e.filter(function(n){return n&&_t(n)==="object"}).reduce(function(n,r,o){var i=r.fixed,a=i===!0?"left":i,s="".concat(t,"-").concat(o),l=r.children;return l&&l.length>0?[].concat(Ne(n),Ne(Aj(l,s).map(function(u){var d;return Y(Y({},u),{},{fixed:(d=u.fixed)!==null&&d!==void 0?d:a})}))):[].concat(Ne(n),[Y(Y({key:s},r),{},{fixed:a})])},[])}function PUe(e){return e.map(function(t){var n=t.fixed,r=Ht(t,OUe),o=n;return n==="left"?o="right":n==="right"&&(o="left"),Y({fixed:o},r)})}function jUe(e,t){var n=e.prefixCls,r=e.columns,o=e.children,i=e.expandable,a=e.expandedKeys,s=e.columnTitle,l=e.getRowKey,u=e.onTriggerExpand,d=e.expandIcon,f=e.rowExpandable,m=e.expandIconColumnIndex,h=e.expandedRowOffset,p=h===void 0?0:h,b=e.direction,v=e.expandRowByClick,y=e.columnWidth,x=e.fixed,w=e.scrollWidth,C=e.clientWidth,S=c.useMemo(function(){var N=r||y3(o)||[];return Vte(N.slice())},[r,o]),$=c.useMemo(function(){if(i){var N=S.slice();if(!N.includes(Ec)){var A=m||0,M=A===0&&x==="right"?S.length:A;M>=0&&N.splice(M,0,Ec)}var T=N.indexOf(Ec);N=N.filter(function(B,H){return B!==Ec||H===T});var k=S[T],D;x?D=x:D=k?k.fixed:null;var L=K(K(K(K(K(K({},Kp,{className:"".concat(n,"-expand-icon-col"),columnType:"EXPAND_COLUMN"}),"title",s),"fixed",D),"className","".concat(n,"-row-expand-icon-cell")),"width",y),"render",function(H,F,W){var q=l(F,W),G=a.has(q),te=f?f(F):!0,ee=d({prefixCls:n,expanded:G,expandable:te,record:F,onExpand:u});return v?c.createElement("span",{onClick:function(ne){return ne.stopPropagation()}},ee):ee});return N.map(function(B,H){var F=B===Ec?L:B;return H<p?Y(Y({},F),{},{fixed:F.fixed||"left"}):F})}return S.filter(function(B){return B!==Ec})},[i,S,l,a,d,b,p]),E=c.useMemo(function(){var N=$;return t&&(N=t(N)),N.length||(N=[{render:function(){return null}}]),N},[t,$,b]),O=c.useMemo(function(){return b==="rtl"?PUe(Aj(E)):Aj(E)},[E,b,w]),P=c.useMemo(function(){for(var N=-1,A=O.length-1;A>=0;A-=1){var M=O[A].fixed;if(M==="left"||M===!0){N=A;break}}if(N>=0)for(var T=0;T<=N;T+=1){var k=O[T].fixed;if(k!=="left"&&k!==!0)return!0}var D=O.findIndex(function(H){var F=H.fixed;return F==="right"});if(D>=0)for(var L=D;L<O.length;L+=1){var B=O[L].fixed;if(B!=="right")return!0}return!1},[O]),j=$Ue(O,w,C),I=ue(j,2),_=I[0],R=I[1];return[E,_,R,P]}function IUe(e,t,n){var r=gUe(e),o=r.expandIcon,i=r.expandedRowKeys,a=r.defaultExpandedRowKeys,s=r.defaultExpandAllRows,l=r.expandedRowRender,u=r.onExpand,d=r.onExpandedRowsChange,f=r.childrenColumnName,m=o||sUe,h=f||"children",p=c.useMemo(function(){return l?"row":e.expandable&&e.internalHooks===d0&&e.expandable.__PARENT_RENDER_ICON__||t.some(function(S){return S&&_t(S)==="object"&&S[h]})?"nest":!1},[!!l,t]),b=c.useState(function(){return a||(s?lUe(t,n,h):[])}),v=ue(b,2),y=v[0],x=v[1],w=c.useMemo(function(){return new Set(i||y||[])},[i,y]),C=c.useCallback(function(S){var $=n(S,t.indexOf(S)),E,O=w.has($);O?(w.delete($),E=Ne(w)):E=[].concat(Ne(w),[$]),x(E),u&&u(!O,S),d&&d(E)},[n,w,t,u,d]);return[r,p,w,m,h,C]}function _Ue(e,t,n){var r=e.map(function(o,i){return v3(i,i,e,t,n)});return qd(function(){return r},[r],function(o,i){return!ml(o,i)})}function NUe(e){var t=c.useRef(e),n=c.useState({}),r=ue(n,2),o=r[1],i=c.useRef(null),a=c.useRef([]);function s(l){a.current.push(l);var u=Promise.resolve();i.current=u,u.then(function(){if(i.current===u){var d=a.current,f=t.current;a.current=[],d.forEach(function(m){t.current=m(t.current)}),i.current=null,f!==t.current&&o({})}})}return c.useEffect(function(){return function(){i.current=null}},[]),[t.current,s]}function RUe(e){var t=c.useRef(null),n=c.useRef();function r(){window.clearTimeout(n.current)}function o(a){t.current=a,r(),n.current=window.setTimeout(function(){t.current=null,n.current=void 0},100)}function i(){return t.current}return c.useEffect(function(){return r},[]),[o,i]}function TUe(){var e=c.useState(-1),t=ue(e,2),n=t[0],r=t[1],o=c.useState(-1),i=ue(o,2),a=i[0],s=i[1],l=c.useCallback(function(u,d){r(u),s(d)},[]);return[n,a,l]}var xF=Uo()?window:null;function MUe(e,t){var n=_t(e)==="object"?e:{},r=n.offsetHeader,o=r===void 0?0:r,i=n.offsetSummary,a=i===void 0?0:i,s=n.offsetScroll,l=s===void 0?0:s,u=n.getContainer,d=u===void 0?function(){return xF}:u,f=d()||xF,m=!!e;return c.useMemo(function(){return{isSticky:m,stickyClassName:m?"".concat(t,"-sticky-holder"):"",offsetHeader:o,offsetSummary:a,offsetScroll:l,container:f}},[m,l,o,a,t,f])}function kUe(e,t,n){var r=c.useMemo(function(){var o=t.length,i=function(u,d,f){for(var m=[],h=0,p=u;p!==d;p+=f)m.push(h),t[p].fixed&&(h+=e[p]||0);return m},a=i(0,o,1),s=i(o-1,-1,-1).reverse();return n==="rtl"?{left:s,right:a}:{left:a,right:s}},[e,t,n]);return r}function wF(e){var t=e.className,n=e.children;return c.createElement("div",{className:t},n)}function SF(e){var t=qv(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 AUe=function(t,n){var r,o,i=t.scrollBodyRef,a=t.onScroll,s=t.offsetScroll,l=t.container,u=t.direction,d=Ko(Ci,"prefixCls"),f=((r=i.current)===null||r===void 0?void 0:r.scrollWidth)||0,m=((o=i.current)===null||o===void 0?void 0:o.clientWidth)||0,h=f&&m*(m/f),p=c.useRef(),b=NUe({scrollLeft:0,isHiddenScrollBar:!0}),v=ue(b,2),y=v[0],x=v[1],w=c.useRef({delta:0,x:0}),C=c.useState(!1),S=ue(C,2),$=S[0],E=S[1],O=c.useRef(null);c.useEffect(function(){return function(){ln.cancel(O.current)}},[]);var P=function(){E(!1)},j=function(A){A.persist(),w.current.delta=A.pageX-y.scrollLeft,w.current.x=0,E(!0),A.preventDefault()},I=function(A){var M,T=A||((M=window)===null||M===void 0?void 0:M.event),k=T.buttons;if(!$||k===0){$&&E(!1);return}var D=w.current.x+A.pageX-w.current.x-w.current.delta,L=u==="rtl";D=Math.max(L?h-m:0,Math.min(L?0:m-h,D));var B=!L||Math.abs(D)+Math.abs(h)<m;B&&(a({scrollLeft:D/m*(f+2)}),w.current.x=A.pageX)},_=function(){ln.cancel(O.current),O.current=ln(function(){if(i.current){var A=SF(i.current).top,M=A+i.current.offsetHeight,T=l===window?document.documentElement.scrollTop+window.innerHeight:SF(l).top+l.clientHeight;x(function(k){return Y(Y({},k),{},{isHiddenScrollBar:M-mL()<=T||A>=T-s})})}})},R=function(A){x(function(M){return Y(Y({},M),{},{scrollLeft:f?A/f*m:0})})};return c.useImperativeHandle(n,function(){return{setScrollLeft:R,checkScrollBarVisible:_}}),c.useEffect(function(){var N=nF(document.body,"mouseup",P,!1),A=nF(document.body,"mousemove",I,!1);return _(),function(){N.remove(),A.remove()}},[h,$]),c.useEffect(function(){if(i.current){for(var N=[],A=qv(i.current);A;)N.push(A),A=A.parentElement;return N.forEach(function(M){return M.addEventListener("scroll",_,!1)}),window.addEventListener("resize",_,!1),window.addEventListener("scroll",_,!1),l.addEventListener("scroll",_,!1),function(){N.forEach(function(M){return M.removeEventListener("scroll",_)}),window.removeEventListener("resize",_),window.removeEventListener("scroll",_),l.removeEventListener("scroll",_)}}},[l]),c.useEffect(function(){y.isHiddenScrollBar||x(function(N){var A=i.current;return A?Y(Y({},N),{},{scrollLeft:A.scrollLeft/A.scrollWidth*A.clientWidth}):N})},[y.isHiddenScrollBar]),f<=m||!h||y.isHiddenScrollBar?null:c.createElement("div",{style:{height:mL(),width:m,bottom:s},className:"".concat(d,"-sticky-scroll")},c.createElement("div",{onMouseDown:j,ref:p,className:Q("".concat(d,"-sticky-scroll-bar"),K({},"".concat(d,"-sticky-scroll-bar-active"),$)),style:{width:"".concat(h,"px"),transform:"translate3d(".concat(y.scrollLeft,"px, 0, 0)")}}))};const DUe=c.forwardRef(AUe);var Wte="rc-table",LUe=[],zUe={};function FUe(){return"No Data"}function BUe(e,t){var n=Y({rowKey:"key",prefixCls:Wte,emptyText:FUe},e),r=n.prefixCls,o=n.className,i=n.rowClassName,a=n.style,s=n.data,l=n.rowKey,u=n.scroll,d=n.tableLayout,f=n.direction,m=n.title,h=n.footer,p=n.summary,b=n.caption,v=n.id,y=n.showHeader,x=n.components,w=n.emptyText,C=n.onRow,S=n.onHeaderRow,$=n.measureRowRender,E=n.onScroll,O=n.internalHooks,P=n.transformColumns,j=n.internalRefs,I=n.tailor,_=n.getContainerWidth,R=n.sticky,N=n.rowHoverable,A=N===void 0?!0:N,M=s||LUe,T=!!M.length,k=O===d0,D=c.useCallback(function(ze,He){return Ai(x,ze)||He},[x]),L=c.useMemo(function(){return typeof l=="function"?l:function(ze){var He=ze&&ze[l];return He}},[l]),B=D(["body"]),H=TUe(),F=ue(H,3),W=F[0],q=F[1],G=F[2],te=IUe(n,M,L),ee=ue(te,6),z=ee[0],ne=ee[1],X=ee[2],U=ee[3],le=ee[4],se=ee[5],ae=u==null?void 0:u.x,re=c.useState(0),fe=ue(re,2),ye=fe[0],Pe=fe[1],Oe=jUe(Y(Y(Y({},n),z),{},{expandable:!!z.expandedRowRender,columnTitle:z.columnTitle,expandedKeys:X,getRowKey:L,onTriggerExpand:se,expandIcon:U,expandIconColumnIndex:z.expandIconColumnIndex,direction:f,scrollWidth:k&&I&&typeof ae=="number"?ae:null,clientWidth:ye}),k?P:null),V=ue(Oe,4),J=V[0],oe=V[1],de=V[2],be=V[3],ge=de??ae,ie=c.useMemo(function(){return{columns:J,flattenColumns:oe}},[J,oe]),he=c.useRef(),xe=c.useRef(),Re=c.useRef(),Ce=c.useRef();c.useImperativeHandle(t,function(){return{nativeElement:he.current,scrollTo:function(He){var Tt;if(Re.current instanceof HTMLElement){var Ae=He.index,Bt=He.top,bn=He.key;if(GWe(Bt)){var Pn;(Pn=Re.current)===null||Pn===void 0||Pn.scrollTo({top:Bt})}else{var En,qn=bn??L(M[Ae]);(En=Re.current.querySelector('[data-row-key="'.concat(qn,'"]')))===null||En===void 0||En.scrollIntoView()}}else(Tt=Re.current)!==null&&Tt!==void 0&&Tt.scrollTo&&Re.current.scrollTo(He)}}});var pe=c.useRef(),_e=c.useState(!1),we=ue(_e,2),$e=we[0],ve=we[1],me=c.useState(!1),Se=ue(me,2),De=Se[0],et=Se[1],rt=c.useState(new Map),Me=ue(rt,2),We=Me[0],Qe=Me[1],Ge=lC(oe),tt=Ge.map(function(ze){return We.get(ze)}),ke=c.useMemo(function(){return tt},[tt.join("_")]),xt=kUe(ke,oe,f),Ze=u&&kj(u.y),nt=u&&kj(ge)||!!z.fixed,Be=nt&&oe.some(function(ze){var He=ze.fixed;return He}),Le=c.useRef(),Ie=MUe(R,r),Te=Ie.isSticky,Xe=Ie.offsetHeader,lt=Ie.offsetSummary,mt=Ie.offsetScroll,Ot=Ie.stickyClassName,dt=Ie.container,qe=c.useMemo(function(){return p==null?void 0:p(M)},[p,M]),ht=(Ze||Te)&&c.isValidElement(qe)&&qe.type===cC&&qe.props.fixed,zt,Vt,Nt;Ze&&(Vt={overflowY:T?"scroll":"auto",maxHeight:u.y}),nt&&(zt={overflowX:"auto"},Ze||(Vt={overflowY:"hidden"}),Nt={width:ge===!0?"auto":ge,minWidth:"100%"});var ft=c.useCallback(function(ze,He){Qe(function(Tt){if(Tt.get(ze)!==He){var Ae=new Map(Tt);return Ae.set(ze,He),Ae}return Tt})},[]),ot=RUe(),Ft=ue(ot,2),Ue=Ft[0],Je=Ft[1];function vt(ze,He){He&&(typeof He=="function"?He(ze):He.scrollLeft!==ze&&(He.scrollLeft=ze,He.scrollLeft!==ze&&setTimeout(function(){He.scrollLeft=ze},0)))}var yt=fn(function(ze){var He=ze.currentTarget,Tt=ze.scrollLeft,Ae=f==="rtl",Bt=typeof Tt=="number"?Tt:He.scrollLeft,bn=He||zUe;if(!Je()||Je()===bn){var Pn;Ue(bn),vt(Bt,xe.current),vt(Bt,Re.current),vt(Bt,pe.current),vt(Bt,(Pn=Le.current)===null||Pn===void 0?void 0:Pn.setScrollLeft)}var En=He||xe.current;if(En){var qn=k&&I&&typeof ge=="number"?ge:En.scrollWidth,Fn=En.clientWidth;if(qn===Fn){ve(!1),et(!1);return}Ae?(ve(-Bt<qn-Fn),et(-Bt>0)):(ve(Bt>0),et(Bt<qn-Fn))}}),Ye=fn(function(ze){yt(ze),E==null||E(ze)}),st=function(){if(nt&&Re.current){var He;yt({currentTarget:qv(Re.current),scrollLeft:(He=Re.current)===null||He===void 0?void 0:He.scrollLeft})}else ve(!1),et(!1)},wt=function(He){var Tt,Ae=He.width;(Tt=Le.current)===null||Tt===void 0||Tt.checkScrollBarVisible();var Bt=he.current?he.current.offsetWidth:Ae;k&&_&&he.current&&(Bt=_(he.current,Bt)||Bt),Bt!==ye&&(st(),Pe(Bt))},Kt=c.useRef(!1);c.useEffect(function(){Kt.current&&st()},[nt,s,J.length]),c.useEffect(function(){Kt.current=!0},[]);var bt=c.useState(0),It=ue(bt,2),qt=It[0],In=It[1],An=c.useState(!0),Nn=ue(An,2),Rn=Nn[0],$n=Nn[1];sn(function(){(!I||!k)&&(Re.current instanceof Element?In(oj(Re.current).width):In(oj(Ce.current).width)),$n(pj("position","sticky"))},[]),c.useEffect(function(){k&&j&&(j.body.current=Re.current)});var Dn=c.useCallback(function(ze){return c.createElement(c.Fragment,null,c.createElement(yF,ze),ht==="top"&&c.createElement(Sy,ze,qe))},[ht,qe]),wn=c.useCallback(function(ze){return c.createElement(Sy,ze,qe)},[qe]),St=D(["table"],"table"),an=c.useMemo(function(){return d||(Be?ge==="max-content"?"auto":"fixed":Ze||Te||oe.some(function(ze){var He=ze.ellipsis;return He})?"fixed":"auto")},[Ze,Be,oe,d,Te]),Zt,ct={colWidths:ke,columCount:oe.length,stickyOffsets:xt,onHeaderRow:S,fixHeader:Ze,scroll:u},je=c.useMemo(function(){return T?null:typeof w=="function"?w():w},[T,w]),pt=c.createElement(hUe,{data:M,measureColumnWidth:Ze||nt||Te}),it=c.createElement(Hte,{colWidths:oe.map(function(ze){var He=ze.width;return He}),columns:oe}),Ke=b!=null?c.createElement("caption",{className:"".concat(r,"-caption")},b):void 0,Et=Pr(n,{data:!0}),at=Pr(n,{aria:!0});if(Ze||Te){var Wt;typeof B=="function"?(Wt=B(M,{scrollbarSize:qt,ref:Re,onScroll:yt}),ct.colWidths=oe.map(function(ze,He){var Tt=ze.width,Ae=He===oe.length-1?Tt-qt:Tt;return typeof Ae=="number"&&!Number.isNaN(Ae)?Ae:0})):Wt=c.createElement("div",{style:Y(Y({},zt),Vt),onScroll:Ye,ref:Re,className:Q("".concat(r,"-body"))},c.createElement(St,Ee({style:Y(Y({},Nt),{},{tableLayout:an})},at),Ke,it,pt,!ht&&qe&&c.createElement(Sy,{stickyOffsets:xt,flattenColumns:oe},qe)));var tn=Y(Y(Y({noData:!M.length},ct),ie),{},{direction:f,stickyClassName:Ot,scrollX:ge,tableLayout:an,onScroll:yt});Zt=c.createElement(c.Fragment,null,y!==!1&&c.createElement(vF,Ee({},tn,{stickyTopOffset:Xe,className:"".concat(r,"-header"),ref:xe,colGroup:it}),Dn),Wt,ht&&ht!=="top"&&c.createElement(vF,Ee({},tn,{stickyBottomOffset:lt,className:"".concat(r,"-summary"),ref:pe,colGroup:it}),wn),Te&&Re.current&&Re.current instanceof Element&&c.createElement(DUe,{ref:Le,offsetScroll:mt,scrollBodyRef:Re,onScroll:yt,container:dt,direction:f}))}else Zt=c.createElement("div",{style:Y(Y({},zt),Vt),className:Q("".concat(r,"-content")),onScroll:yt,ref:Re},c.createElement(St,Ee({style:Y(Y({},Nt),{},{tableLayout:an})},at),Ke,it,y!==!1&&c.createElement(yF,Ee({},ct,ie)),pt,qe&&c.createElement(Sy,{stickyOffsets:xt,flattenColumns:oe},qe)));var Ut=c.createElement("div",Ee({className:Q(r,o,K(K(K(K(K(K(K(K(K(K({},"".concat(r,"-rtl"),f==="rtl"),"".concat(r,"-ping-left"),$e),"".concat(r,"-ping-right"),De),"".concat(r,"-layout-fixed"),d==="fixed"),"".concat(r,"-fixed-header"),Ze),"".concat(r,"-fixed-column"),Be),"".concat(r,"-fixed-column-gapped"),Be&&be),"".concat(r,"-scroll-horizontal"),nt),"".concat(r,"-has-fix-left"),oe[0]&&oe[0].fixed),"".concat(r,"-has-fix-right"),oe[oe.length-1]&&oe[oe.length-1].fixed==="right")),style:a,id:v,ref:he},Et),m&&c.createElement(wF,{className:"".concat(r,"-title")},m(M)),c.createElement("div",{ref:Ce,className:"".concat(r,"-container")},Zt),h&&c.createElement(wF,{className:"".concat(r,"-footer")},h(M)));nt&&(Ut=c.createElement(Wo,{onResize:wt},Ut));var en=_Ue(oe,xt,f),Rt=c.useMemo(function(){return{scrollX:ge,prefixCls:r,getComponent:D,scrollbarSize:qt,direction:f,fixedInfoList:en,isSticky:Te,supportSticky:Rn,componentWidth:ye,fixHeader:Ze,fixColumn:Be,horizonScroll:nt,tableLayout:an,rowClassName:i,expandedRowClassName:z.expandedRowClassName,expandIcon:U,expandableType:ne,expandRowByClick:z.expandRowByClick,expandedRowRender:z.expandedRowRender,expandedRowOffset:z.expandedRowOffset,onTriggerExpand:se,expandIconColumnIndex:z.expandIconColumnIndex,indentSize:z.indentSize,allColumnsFixedLeft:oe.every(function(ze){return ze.fixed==="left"}),emptyNode:je,columns:J,flattenColumns:oe,onColumnResize:ft,colWidths:ke,hoverStartRow:W,hoverEndRow:q,onHover:G,rowExpandable:z.rowExpandable,onRow:C,getRowKey:L,expandedKeys:X,childrenColumnName:le,rowHoverable:A,measureRowRender:$}},[ge,r,D,qt,f,en,Te,Rn,ye,Ze,Be,nt,an,i,z.expandedRowClassName,U,ne,z.expandRowByClick,z.expandedRowRender,z.expandedRowOffset,se,z.expandIconColumnIndex,z.indentSize,je,J,oe,ft,ke,W,q,G,z.rowExpandable,C,L,X,le,A,$]);return c.createElement(Ci.Provider,{value:Rt},Ut)}var HUe=c.forwardRef(BUe);function Ute(e){return Rte(HUe,e)}var _h=Ute();_h.EXPAND_COLUMN=Ec;_h.INTERNAL_HOOKS=d0;_h.Column=iUe;_h.ColumnGroup=aUe;_h.Summary=kte;var b3=p3(null),Kte=p3(null);function VUe(e,t,n){var r=t||1;return n[e+r]-(n[e]||0)}function WUe(e){var t=e.rowInfo,n=e.column,r=e.colIndex,o=e.indent,i=e.index,a=e.component,s=e.renderIndex,l=e.record,u=e.style,d=e.className,f=e.inverse,m=e.getHeight,h=n.render,p=n.dataIndex,b=n.className,v=n.width,y=Ko(Kte,["columnsOffset"]),x=y.columnsOffset,w=Bte(t,n,r,o,i),C=w.key,S=w.fixedInfo,$=w.appendCellNode,E=w.additionalCellProps,O=E.style,P=E.colSpan,j=P===void 0?1:P,I=E.rowSpan,_=I===void 0?1:I,R=r-1,N=VUe(R,j,x),A=j>1?v-N:0,M=Y(Y(Y({},O),u),{},{flex:"0 0 ".concat(N,"px"),width:"".concat(N,"px"),marginRight:A,pointerEvents:"auto"}),T=c.useMemo(function(){return f?_<=1:j===0||_===0||_>1},[_,j,f]);T?M.visibility="hidden":f&&(M.height=m==null?void 0:m(_));var k=T?function(){return null}:h,D={};return(_===0||j===0)&&(D.rowSpan=1,D.colSpan=1),c.createElement(Ih,Ee({className:Q(b,d),ellipsis:n.ellipsis,align:n.align,scope:n.rowScope,component:a,prefixCls:t.prefixCls,key:C,record:l,index:i,renderIndex:s,dataIndex:p,render:k,shouldCellUpdate:n.shouldCellUpdate},S,{appendNode:$,additionalProps:Y(Y({},E),{},{style:M},D)}))}var UUe=["data","index","className","rowKey","style","extra","getHeight"],KUe=c.forwardRef(function(e,t){var n=e.data,r=e.index,o=e.className,i=e.rowKey,a=e.style,s=e.extra,l=e.getHeight,u=Ht(e,UUe),d=n.record,f=n.indent,m=n.index,h=Ko(Ci,["prefixCls","flattenColumns","fixColumn","componentWidth","scrollX"]),p=h.scrollX,b=h.flattenColumns,v=h.prefixCls,y=h.fixColumn,x=h.componentWidth,w=Ko(b3,["getComponent"]),C=w.getComponent,S=Lte(d,i,r,f),$=C(["body","row"],"div"),E=C(["body","cell"],"div"),O=S.rowSupportExpand,P=S.expanded,j=S.rowProps,I=S.expandedRowRender,_=S.expandedRowClassName,R;if(O&&P){var N=I(d,r,f+1,P),A=Fte(_,d,r,f),M={};y&&(M={style:K({},"--virtual-width","".concat(x,"px"))});var T="".concat(v,"-expanded-row-cell");R=c.createElement($,{className:Q("".concat(v,"-expanded-row"),"".concat(v,"-expanded-row-level-").concat(f+1),A)},c.createElement(Ih,{component:E,prefixCls:v,className:Q(T,K({},"".concat(T,"-fixed"),y)),additionalProps:M},N))}var k=Y(Y({},a),{},{width:p});s&&(k.position="absolute",k.pointerEvents="none");var D=c.createElement($,Ee({},j,u,{"data-row-key":i,ref:O?null:t,className:Q(o,"".concat(v,"-row"),j==null?void 0:j.className,K({},"".concat(v,"-row-extra"),s)),style:Y(Y({},k),j==null?void 0:j.style)}),b.map(function(L,B){return c.createElement(WUe,{key:B,component:E,rowInfo:S,column:L,colIndex:B,indent:f,index:r,renderIndex:m,record:d,inverse:s,getHeight:l})}));return O?c.createElement("div",{ref:t},D,R):D}),CF=jh(KUe),qUe=c.forwardRef(function(e,t){var n=e.data,r=e.onScroll,o=Ko(Ci,["flattenColumns","onColumnResize","getRowKey","prefixCls","expandedKeys","childrenColumnName","scrollX","direction"]),i=o.flattenColumns,a=o.onColumnResize,s=o.getRowKey,l=o.expandedKeys,u=o.prefixCls,d=o.childrenColumnName,f=o.scrollX,m=o.direction,h=Ko(b3),p=h.sticky,b=h.scrollY,v=h.listItemHeight,y=h.getComponent,x=h.onScroll,w=c.useRef(),C=Dte(n,d,l,s),S=c.useMemo(function(){var R=0;return i.map(function(N){var A=N.width,M=N.minWidth,T=N.key,k=Math.max(A||0,M||0);return R+=k,[T,k,R]})},[i]),$=c.useMemo(function(){return S.map(function(R){return R[2]})},[S]);c.useEffect(function(){S.forEach(function(R){var N=ue(R,2),A=N[0],M=N[1];a(A,M)})},[S]),c.useImperativeHandle(t,function(){var R,N={scrollTo:function(M){var T;(T=w.current)===null||T===void 0||T.scrollTo(M)},nativeElement:(R=w.current)===null||R===void 0?void 0:R.nativeElement};return Object.defineProperty(N,"scrollLeft",{get:function(){var M;return((M=w.current)===null||M===void 0?void 0:M.getScrollInfo().x)||0},set:function(M){var T;(T=w.current)===null||T===void 0||T.scrollTo({left:M})}}),Object.defineProperty(N,"scrollTop",{get:function(){var M;return((M=w.current)===null||M===void 0?void 0:M.getScrollInfo().y)||0},set:function(M){var T;(T=w.current)===null||T===void 0||T.scrollTo({top:M})}}),N});var E=function(N,A){var M,T=(M=C[A])===null||M===void 0?void 0:M.record,k=N.onCell;if(k){var D,L=k(T,A);return(D=L==null?void 0:L.rowSpan)!==null&&D!==void 0?D:1}return 1},O=function(N){var A=N.start,M=N.end,T=N.getSize,k=N.offsetY;if(M<0)return null;for(var D=i.filter(function(X){return E(X,A)===0}),L=A,B=function(U){if(D=D.filter(function(le){return E(le,U)===0}),!D.length)return L=U,1},H=A;H>=0&&!B(H);H-=1);for(var F=i.filter(function(X){return E(X,M)!==1}),W=M,q=function(U){if(F=F.filter(function(le){return E(le,U)!==1}),!F.length)return W=Math.max(U-1,M),1},G=M;G<C.length&&!q(G);G+=1);for(var te=[],ee=function(U){var le=C[U];if(!le)return 1;i.some(function(se){return E(se,U)>1})&&te.push(U)},z=L;z<=W;z+=1)ee(z);var ne=te.map(function(X){var U=C[X],le=s(U.record,X),se=function(fe){var ye=X+fe-1,Pe=s(C[ye].record,ye),Oe=T(le,Pe);return Oe.bottom-Oe.top},ae=T(le);return c.createElement(CF,{key:X,data:U,rowKey:le,index:X,style:{top:-k+ae.top},extra:!0,getHeight:se})});return ne},P=c.useMemo(function(){return{columnsOffset:$}},[$]),j="".concat(u,"-tbody"),I=y(["body","wrapper"]),_={};return p&&(_.position="sticky",_.bottom=0,_t(p)==="object"&&p.offsetScroll&&(_.bottom=p.offsetScroll)),c.createElement(Kte.Provider,{value:P},c.createElement(BS,{fullHeight:!1,ref:w,prefixCls:"".concat(j,"-virtual"),styles:{horizontalScrollBar:_},className:j,height:b,itemHeight:v||24,data:C,itemKey:function(N){return s(N.record)},component:I,scrollWidth:f,direction:m,onVirtualScroll:function(N){var A,M=N.x;r({currentTarget:(A=w.current)===null||A===void 0?void 0:A.nativeElement,scrollLeft:M})},onScroll:x,extraRender:O},function(R,N,A){var M=s(R.record,N);return c.createElement(CF,{data:R,rowKey:M,index:N,style:A.style})}))}),GUe=jh(qUe),XUe=function(t,n){var r=n.ref,o=n.onScroll;return c.createElement(GUe,{ref:r,data:t,onScroll:o})};function YUe(e,t){var n=e.data,r=e.columns,o=e.scroll,i=e.sticky,a=e.prefixCls,s=a===void 0?Wte:a,l=e.className,u=e.listItemHeight,d=e.components,f=e.onScroll,m=o||{},h=m.x,p=m.y;typeof h!="number"&&(h=1),typeof p!="number"&&(p=500);var b=fn(function(x,w){return Ai(d,x)||w}),v=fn(f),y=c.useMemo(function(){return{sticky:i,scrollY:p,listItemHeight:u,getComponent:b,onScroll:v}},[i,p,u,b,v]);return c.createElement(b3.Provider,{value:y},c.createElement(_h,Ee({},e,{className:Q(l,"".concat(s,"-virtual")),scroll:Y(Y({},o),{},{x:h}),components:Y(Y({},d),{},{body:n!=null&&n.length?XUe:void 0}),columns:r,internalHooks:d0,tailor:!0,ref:t})))}var ZUe=c.forwardRef(YUe);function qte(e){return Rte(ZUe,e)}qte();const JUe=e=>null,QUe=e=>null;var x3=c.createContext(null),eKe=c.createContext({}),tKe=function(t){for(var n=t.prefixCls,r=t.level,o=t.isStart,i=t.isEnd,a="".concat(n,"-indent-unit"),s=[],l=0;l<r;l+=1)s.push(c.createElement("span",{key:l,className:Q(a,K(K({},"".concat(a,"-start"),o[l]),"".concat(a,"-end"),i[l]))}));return c.createElement("span",{"aria-hidden":"true",className:"".concat(n,"-indent")},s)};const nKe=c.memo(tKe);var rKe=["eventKey","className","style","dragOver","dragOverGapTop","dragOverGapBottom","isLeaf","isStart","isEnd","expanded","selected","checked","halfChecked","loading","domRef","active","data","onMouseMove","selectable"],$F="open",EF="close",oKe="---",ev=function(t){var n,r,o,i=t.eventKey,a=t.className,s=t.style,l=t.dragOver,u=t.dragOverGapTop,d=t.dragOverGapBottom,f=t.isLeaf,m=t.isStart,h=t.isEnd,p=t.expanded,b=t.selected,v=t.checked,y=t.halfChecked,x=t.loading,w=t.domRef,C=t.active,S=t.data,$=t.onMouseMove,E=t.selectable,O=Ht(t,rKe),P=ce.useContext(x3),j=ce.useContext(eKe),I=ce.useRef(null),_=ce.useState(!1),R=ue(_,2),N=R[0],A=R[1],M=!!(P.disabled||t.disabled||(n=j.nodeDisabled)!==null&&n!==void 0&&n.call(j,S)),T=ce.useMemo(function(){return!P.checkable||t.checkable===!1?!1:P.checkable},[P.checkable,t.checkable]),k=function(pe){M||P.onNodeSelect(pe,io(t))},D=function(pe){M||!T||t.disableCheckbox||P.onNodeCheck(pe,io(t),!v)},L=ce.useMemo(function(){return typeof E=="boolean"?E:P.selectable},[E,P.selectable]),B=function(pe){P.onNodeClick(pe,io(t)),L?k(pe):D(pe)},H=function(pe){P.onNodeDoubleClick(pe,io(t))},F=function(pe){P.onNodeMouseEnter(pe,io(t))},W=function(pe){P.onNodeMouseLeave(pe,io(t))},q=function(pe){P.onNodeContextMenu(pe,io(t))},G=ce.useMemo(function(){return!!(P.draggable&&(!P.draggable.nodeDraggable||P.draggable.nodeDraggable(S)))},[P.draggable,S]),te=function(pe){pe.stopPropagation(),A(!0),P.onNodeDragStart(pe,t);try{pe.dataTransfer.setData("text/plain","")}catch{}},ee=function(pe){pe.preventDefault(),pe.stopPropagation(),P.onNodeDragEnter(pe,t)},z=function(pe){pe.preventDefault(),pe.stopPropagation(),P.onNodeDragOver(pe,t)},ne=function(pe){pe.stopPropagation(),P.onNodeDragLeave(pe,t)},X=function(pe){pe.stopPropagation(),A(!1),P.onNodeDragEnd(pe,t)},U=function(pe){pe.preventDefault(),pe.stopPropagation(),A(!1),P.onNodeDrop(pe,t)},le=function(pe){x||P.onNodeExpand(pe,io(t))},se=ce.useMemo(function(){var Ce=Gi(P.keyEntities,i)||{},pe=Ce.children;return!!(pe||[]).length},[P.keyEntities,i]),ae=ce.useMemo(function(){return f===!1?!1:f||!P.loadData&&!se||P.loadData&&t.loaded&&!se},[f,P.loadData,se,t.loaded]);ce.useEffect(function(){x||typeof P.loadData=="function"&&p&&!ae&&!t.loaded&&P.onNodeLoad(io(t))},[x,P.loadData,P.onNodeLoad,p,ae,t]);var re=ce.useMemo(function(){var Ce;return(Ce=P.draggable)!==null&&Ce!==void 0&&Ce.icon?ce.createElement("span",{className:"".concat(P.prefixCls,"-draggable-icon")},P.draggable.icon):null},[P.draggable]),fe=function(pe){var _e=t.switcherIcon||P.switcherIcon;return typeof _e=="function"?_e(Y(Y({},t),{},{isLeaf:pe})):_e},ye=function(){if(ae){var pe=fe(!0);return pe!==!1?ce.createElement("span",{className:Q("".concat(P.prefixCls,"-switcher"),"".concat(P.prefixCls,"-switcher-noop"))},pe):null}var _e=fe(!1);return _e!==!1?ce.createElement("span",{onClick:le,className:Q("".concat(P.prefixCls,"-switcher"),"".concat(P.prefixCls,"-switcher_").concat(p?$F:EF))},_e):null},Pe=ce.useMemo(function(){if(!T)return null;var Ce=typeof T!="boolean"?T:null;return ce.createElement("span",{className:Q("".concat(P.prefixCls,"-checkbox"),K(K(K({},"".concat(P.prefixCls,"-checkbox-checked"),v),"".concat(P.prefixCls,"-checkbox-indeterminate"),!v&&y),"".concat(P.prefixCls,"-checkbox-disabled"),M||t.disableCheckbox)),onClick:D,role:"checkbox","aria-checked":y?"mixed":v,"aria-disabled":M||t.disableCheckbox,"aria-label":"Select ".concat(typeof t.title=="string"?t.title:"tree node")},Ce)},[T,v,y,M,t.disableCheckbox,t.title]),Oe=ce.useMemo(function(){return ae?null:p?$F:EF},[ae,p]),V=ce.useMemo(function(){return ce.createElement("span",{className:Q("".concat(P.prefixCls,"-iconEle"),"".concat(P.prefixCls,"-icon__").concat(Oe||"docu"),K({},"".concat(P.prefixCls,"-icon_loading"),x))})},[P.prefixCls,Oe,x]),J=ce.useMemo(function(){var Ce=!!P.draggable,pe=!t.disabled&&Ce&&P.dragOverNodeKey===i;return pe?P.dropIndicatorRender({dropPosition:P.dropPosition,dropLevelOffset:P.dropLevelOffset,indent:P.indent,prefixCls:P.prefixCls,direction:P.direction}):null},[P.dropPosition,P.dropLevelOffset,P.indent,P.prefixCls,P.direction,P.draggable,P.dragOverNodeKey,P.dropIndicatorRender]),oe=ce.useMemo(function(){var Ce=t.title,pe=Ce===void 0?oKe:Ce,_e="".concat(P.prefixCls,"-node-content-wrapper"),we;if(P.showIcon){var $e=t.icon||P.icon;we=$e?ce.createElement("span",{className:Q("".concat(P.prefixCls,"-iconEle"),"".concat(P.prefixCls,"-icon__customize"))},typeof $e=="function"?$e(t):$e):V}else P.loadData&&x&&(we=V);var ve;return typeof pe=="function"?ve=pe(S):P.titleRender?ve=P.titleRender(S):ve=pe,ce.createElement("span",{ref:I,title:typeof pe=="string"?pe:"",className:Q(_e,"".concat(_e,"-").concat(Oe||"normal"),K({},"".concat(P.prefixCls,"-node-selected"),!M&&(b||N))),onMouseEnter:F,onMouseLeave:W,onContextMenu:q,onClick:B,onDoubleClick:H},we,ce.createElement("span",{className:"".concat(P.prefixCls,"-title")},ve),J)},[P.prefixCls,P.showIcon,t,P.icon,V,P.titleRender,S,Oe,F,W,q,B,H]),de=Pr(O,{aria:!0,data:!0}),be=Gi(P.keyEntities,i)||{},ge=be.level,ie=h[h.length-1],he=!M&&G,xe=P.draggingNodeKey===i,Re=E!==void 0?{"aria-selected":!!E}:void 0;return ce.createElement("div",Ee({ref:w,role:"treeitem","aria-expanded":f?void 0:p,className:Q(a,"".concat(P.prefixCls,"-treenode"),(o={},K(K(K(K(K(K(K(K(K(K(o,"".concat(P.prefixCls,"-treenode-disabled"),M),"".concat(P.prefixCls,"-treenode-switcher-").concat(p?"open":"close"),!f),"".concat(P.prefixCls,"-treenode-checkbox-checked"),v),"".concat(P.prefixCls,"-treenode-checkbox-indeterminate"),y),"".concat(P.prefixCls,"-treenode-selected"),b),"".concat(P.prefixCls,"-treenode-loading"),x),"".concat(P.prefixCls,"-treenode-active"),C),"".concat(P.prefixCls,"-treenode-leaf-last"),ie),"".concat(P.prefixCls,"-treenode-draggable"),G),"dragging",xe),K(K(K(K(K(K(K(o,"drop-target",P.dropTargetKey===i),"drop-container",P.dropContainerKey===i),"drag-over",!M&&l),"drag-over-gap-top",!M&&u),"drag-over-gap-bottom",!M&&d),"filter-node",(r=P.filterTreeNode)===null||r===void 0?void 0:r.call(P,io(t))),"".concat(P.prefixCls,"-treenode-leaf"),ae))),style:s,draggable:he,onDragStart:he?te:void 0,onDragEnter:G?ee:void 0,onDragOver:G?z:void 0,onDragLeave:G?ne:void 0,onDrop:G?U:void 0,onDragEnd:G?X:void 0,onMouseMove:$},Re,de),ce.createElement(nKe,{prefixCls:P.prefixCls,level:ge,isStart:m,isEnd:h}),re,ye(),Pe,oe)};ev.isTreeNode=1;function Js(e,t){if(!e)return[];var n=e.slice(),r=n.indexOf(t);return r>=0&&n.splice(r,1),n}function Sl(e,t){var n=(e||[]).slice();return n.indexOf(t)===-1&&n.push(t),n}function w3(e){return e.split("-")}function iKe(e,t){var n=[],r=Gi(t,e);function o(){var i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];i.forEach(function(a){var s=a.key,l=a.children;n.push(s),o(l)})}return o(r.children),n}function aKe(e){if(e.parent){var t=w3(e.pos);return Number(t[t.length-1])===e.parent.children.length-1}return!1}function sKe(e){var t=w3(e.pos);return Number(t[t.length-1])===0}function OF(e,t,n,r,o,i,a,s,l,u){var d,f=e.clientX,m=e.clientY,h=e.target.getBoundingClientRect(),p=h.top,b=h.height,v=(u==="rtl"?-1:1)*(((o==null?void 0:o.x)||0)-f),y=(v-12)/r,x=l.filter(function(M){var T;return(T=s[M])===null||T===void 0||(T=T.children)===null||T===void 0?void 0:T.length}),w=Gi(s,n.eventKey);if(m<p+b/2){var C=a.findIndex(function(M){return M.key===w.key}),S=C<=0?0:C-1,$=a[S].key;w=Gi(s,$)}var E=w.key,O=w,P=w.key,j=0,I=0;if(!x.includes(E))for(var _=0;_<y&&aKe(w);_+=1)w=w.parent,I+=1;var R=t.data,N=w.node,A=!0;return sKe(w)&&w.level===0&&m<p+b/2&&i({dragNode:R,dropNode:N,dropPosition:-1})&&w.key===n.eventKey?j=-1:(O.children||[]).length&&x.includes(P)?i({dragNode:R,dropNode:N,dropPosition:0})?j=0:A=!1:I===0?y>-1.5?i({dragNode:R,dropNode:N,dropPosition:1})?j=1:A=!1:i({dragNode:R,dropNode:N,dropPosition:0})?j=0:i({dragNode:R,dropNode:N,dropPosition:1})?j=1:A=!1:i({dragNode:R,dropNode:N,dropPosition:1})?j=1:A=!1,{dropPosition:j,dropLevelOffset:I,dropTargetKey:w.key,dropTargetPos:w.pos,dragOverNodeKey:P,dropContainerKey:j===0?null:((d=w.parent)===null||d===void 0?void 0:d.key)||null,dropAllowed:A}}function PF(e,t){if(e){var n=t.multiple;return n?e.slice():e.length?[e[0]]:e}}function T2(e){if(!e)return null;var t;if(Array.isArray(e))t={checkedKeys:e,halfCheckedKeys:void 0};else if(_t(e)==="object")t={checkedKeys:e.checked||void 0,halfCheckedKeys:e.halfChecked||void 0};else return ir(!1,"`checkedKeys` is not an array or an object"),null;return t}function Dj(e,t){var n=new Set;function r(o){if(!n.has(o)){var i=Gi(t,o);if(i){n.add(o);var a=i.parent,s=i.node;s.disabled||a&&r(a.key)}}}return(e||[]).forEach(function(o){r(o)}),Ne(n)}const bc={},Lj="SELECT_ALL",zj="SELECT_INVERT",Fj="SELECT_NONE",jF=[],Gte=(e,t,n=[])=>((t||[]).forEach(r=>{n.push(r),r&&typeof r=="object"&&e in r&&Gte(e,r[e],n)}),n),lKe=(e,t)=>{const{preserveSelectedRowKeys:n,selectedRowKeys:r,defaultSelectedRowKeys:o,getCheckboxProps:i,getTitleCheckboxProps:a,onChange:s,onSelect:l,onSelectAll:u,onSelectInvert:d,onSelectNone:f,onSelectMultiple:m,columnWidth:h,type:p,selections:b,fixed:v,renderCell:y,hideSelectAll:x,checkStrictly:w=!0}=t||{},{prefixCls:C,data:S,pageData:$,getRecordByKey:E,getRowKey:O,expandType:P,childrenColumnName:j,locale:I,getPopupContainer:_}=e,R=pu(),[N,A]=d3e(U=>U),[M,T]=kn(r||o||jF,{value:r}),k=c.useRef(new Map),D=c.useCallback(U=>{if(n){const le=new Map;U.forEach(se=>{let ae=E(se);!ae&&k.current.has(se)&&(ae=k.current.get(se)),le.set(se,ae)}),k.current=le}},[E,n]);c.useEffect(()=>{D(M)},[M]);const L=c.useMemo(()=>Gte(j,$),[j,$]),{keyEntities:B}=c.useMemo(()=>{if(w)return{keyEntities:null};let U=S;if(n){const le=new Set(L.map((ae,re)=>O(ae,re))),se=Array.from(k.current).reduce((ae,[re,fe])=>le.has(re)?ae:ae.concat(fe),[]);U=[].concat(Ne(U),Ne(se))}return i3(U,{externalGetKey:O,childrenPropName:j})},[S,O,w,j,n,L]),H=c.useMemo(()=>{const U=new Map;return L.forEach((le,se)=>{const ae=O(le,se),re=(i?i(le):null)||{};U.set(ae,re)}),U},[L,O,i]),F=c.useCallback(U=>{const le=O(U);let se;return H.has(le)?se=H.get(O(U)):se=i?i(U):void 0,!!(se!=null&&se.disabled)},[H,O]),[W,q]=c.useMemo(()=>{if(w)return[M||[],[]];const{checkedKeys:U,halfCheckedKeys:le}=dm(M,!0,B,F);return[U||[],le]},[M,w,B,F]),G=c.useMemo(()=>{const U=p==="radio"?W.slice(0,1):W;return new Set(U)},[W,p]),te=c.useMemo(()=>p==="radio"?new Set:new Set(q),[q,p]);c.useEffect(()=>{t||T(jF)},[!!t]);const ee=c.useCallback((U,le)=>{let se,ae;D(U),n?(se=U,ae=U.map(re=>k.current.get(re))):(se=[],ae=[],U.forEach(re=>{const fe=E(re);fe!==void 0&&(se.push(re),ae.push(fe))})),T(se),s==null||s(se,ae,{type:le})},[T,E,s,n]),z=c.useCallback((U,le,se,ae)=>{if(l){const re=se.map(fe=>E(fe));l(E(U),le,re,ae)}ee(se,"single")},[l,E,ee]),ne=c.useMemo(()=>!b||x?null:(b===!0?[Lj,zj,Fj]:b).map(le=>le===Lj?{key:"all",text:I.selectionAll,onSelect(){ee(S.map((se,ae)=>O(se,ae)).filter(se=>{const ae=H.get(se);return!(ae!=null&&ae.disabled)||G.has(se)}),"all")}}:le===zj?{key:"invert",text:I.selectInvert,onSelect(){const se=new Set(G);$.forEach((re,fe)=>{const ye=O(re,fe),Pe=H.get(ye);Pe!=null&&Pe.disabled||(se.has(ye)?se.delete(ye):se.add(ye))});const ae=Array.from(se);d&&(R.deprecated(!1,"onSelectInvert","onChange"),d(ae)),ee(ae,"invert")}}:le===Fj?{key:"none",text:I.selectNone,onSelect(){f==null||f(),ee(Array.from(G).filter(se=>{const ae=H.get(se);return ae==null?void 0:ae.disabled}),"none")}}:le).map(le=>Object.assign(Object.assign({},le),{onSelect:(...se)=>{var ae,re;(re=le.onSelect)===null||re===void 0||(ae=re).call.apply(ae,[le].concat(se)),A(null)}})),[b,G,$,O,d,ee]);return[c.useCallback(U=>{var le;if(!t)return U.filter(Ce=>Ce!==bc);let se=Ne(U);const ae=new Set(G),re=L.map(O).filter(Ce=>!H.get(Ce).disabled),fe=re.every(Ce=>ae.has(Ce)),ye=re.some(Ce=>ae.has(Ce)),Pe=()=>{const Ce=[];fe?re.forEach(_e=>{ae.delete(_e),Ce.push(_e)}):re.forEach(_e=>{ae.has(_e)||(ae.add(_e),Ce.push(_e))});const pe=Array.from(ae);u==null||u(!fe,pe.map(_e=>E(_e)),Ce.map(_e=>E(_e))),ee(pe,"all"),A(null)};let Oe,V;if(p!=="radio"){let Ce;if(ne){const De={getPopupContainer:_,items:ne.map((et,rt)=>{const{key:Me,text:We,onSelect:Qe}=et;return{key:Me??rt,onClick:()=>{Qe==null||Qe(re)},label:We}})};Ce=c.createElement("div",{className:`${C}-selection-extra`},c.createElement(oC,{menu:De,getPopupContainer:_},c.createElement("span",null,c.createElement(TT,null))))}const pe=L.map((De,et)=>{const rt=O(De,et),Me=H.get(rt)||{};return Object.assign({checked:ae.has(rt)},Me)}).filter(({disabled:De})=>De),_e=!!pe.length&&pe.length===L.length,we=_e&&pe.every(({checked:De})=>De),$e=_e&&pe.some(({checked:De})=>De),ve=(a==null?void 0:a())||{},{onChange:me,disabled:Se}=ve;V=c.createElement(tu,Object.assign({"aria-label":Ce?"Custom selection":"Select all"},ve,{checked:_e?we:!!L.length&&fe,indeterminate:_e?!we&&$e:!fe&&ye,onChange:De=>{Pe(),me==null||me(De)},disabled:Se??(L.length===0||_e),skipGroup:!0})),Oe=!x&&c.createElement("div",{className:`${C}-selection`},V,Ce)}let J;p==="radio"?J=(Ce,pe,_e)=>{const we=O(pe,_e),$e=ae.has(we),ve=H.get(we);return{node:c.createElement(Kc,Object.assign({},ve,{checked:$e,onClick:me=>{var Se;me.stopPropagation(),(Se=ve==null?void 0:ve.onClick)===null||Se===void 0||Se.call(ve,me)},onChange:me=>{var Se;ae.has(we)||z(we,!0,[we],me.nativeEvent),(Se=ve==null?void 0:ve.onChange)===null||Se===void 0||Se.call(ve,me)}})),checked:$e}}:J=(Ce,pe,_e)=>{var we;const $e=O(pe,_e),ve=ae.has($e),me=te.has($e),Se=H.get($e);let De;return P==="nest"?De=me:De=(we=Se==null?void 0:Se.indeterminate)!==null&&we!==void 0?we:me,{node:c.createElement(tu,Object.assign({},Se,{indeterminate:De,checked:ve,skipGroup:!0,onClick:et=>{var rt;et.stopPropagation(),(rt=Se==null?void 0:Se.onClick)===null||rt===void 0||rt.call(Se,et)},onChange:et=>{var rt;const{nativeEvent:Me}=et,{shiftKey:We}=Me,Qe=re.indexOf($e),Ge=W.some(tt=>re.includes(tt));if(We&&w&&Ge){const tt=N(Qe,re,ae),ke=Array.from(ae);m==null||m(!ve,ke.map(xt=>E(xt)),tt.map(xt=>E(xt))),ee(ke,"multiple")}else{const tt=W;if(w){const ke=ve?Js(tt,$e):Sl(tt,$e);z($e,!ve,ke,Me)}else{const ke=dm([].concat(Ne(tt),[$e]),!0,B,F),{checkedKeys:xt,halfCheckedKeys:Ze}=ke;let nt=xt;if(ve){const Be=new Set(xt);Be.delete($e),nt=dm(Array.from(Be),{halfCheckedKeys:Ze},B,F).checkedKeys}z($e,!ve,nt,Me)}}A(ve?null:Qe),(rt=Se==null?void 0:Se.onChange)===null||rt===void 0||rt.call(Se,et)}})),checked:ve}};const oe=(Ce,pe,_e)=>{const{node:we,checked:$e}=J(Ce,pe,_e);return y?y($e,pe,_e,we):we};if(!se.includes(bc))if(se.findIndex(Ce=>{var pe;return((pe=Ce[Kp])===null||pe===void 0?void 0:pe.columnType)==="EXPAND_COLUMN"})===0){const[Ce,...pe]=se;se=[Ce,bc].concat(Ne(pe))}else se=[bc].concat(Ne(se));const de=se.indexOf(bc);se=se.filter((Ce,pe)=>Ce!==bc||pe===de);const be=se[de-1],ge=se[de+1];let ie=v;ie===void 0&&((ge==null?void 0:ge.fixed)!==void 0?ie=ge.fixed:(be==null?void 0:be.fixed)!==void 0&&(ie=be.fixed)),ie&&be&&((le=be[Kp])===null||le===void 0?void 0:le.columnType)==="EXPAND_COLUMN"&&be.fixed===void 0&&(be.fixed=ie);const he=Q(`${C}-selection-col`,{[`${C}-selection-col-with-dropdown`]:b&&p==="checkbox"}),xe=()=>t!=null&&t.columnTitle?typeof t.columnTitle=="function"?t.columnTitle(V):t.columnTitle:Oe,Re={fixed:ie,width:h,className:`${C}-selection-column`,title:xe(),render:oe,onCell:t.onCell,align:t.align,[Kp]:{className:he}};return se.map(Ce=>Ce===bc?Re:Ce)},[O,L,t,W,G,te,h,ne,P,H,m,z,F]),G]};function cKe(e){return t=>{const{prefixCls:n,onExpand:r,record:o,expanded:i,expandable:a}=t,s=`${n}-row-expand-icon`;return c.createElement("button",{type:"button",onClick:l=>{r(o,l),l.stopPropagation()},className:Q(s,{[`${s}-spaced`]:!a,[`${s}-expanded`]:a&&i,[`${s}-collapsed`]:a&&!i}),"aria-label":i?e.collapse:e.expand,"aria-expanded":i})}}function uKe(e){return(n,r)=>{const o=n.querySelector(`.${e}-container`);let i=r;if(o){const a=getComputedStyle(o),s=Number.parseInt(a.borderLeftWidth,10),l=Number.parseInt(a.borderRightWidth,10);i=r-s-l}return i}}const nu=(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 Nh(e,t){return t?`${t}-${e}`:`${e}`}const uC=(e,t)=>typeof e=="function"?e(t):e,dKe=(e,t)=>{const n=uC(e,t);return Object.prototype.toString.call(n)==="[object Object]"?"":n};var fKe={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"},mKe=function(t,n){return c.createElement(yn,Ee({},t,{ref:n,icon:fKe}))},hKe=c.forwardRef(mKe),pKe=function(t){var n=t.dropPosition,r=t.dropLevelOffset,o=t.indent,i={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(n){case-1:i.top=0,i.left=-r*o;break;case 1:i.bottom=0,i.left=-r*o;break;case 0:i.bottom=0,i.left=o;break}return ce.createElement("div",{style:i})};function Xte(e){if(e==null)throw new TypeError("Cannot destructure "+e)}function gKe(e,t){var n=c.useState(!1),r=ue(n,2),o=r[0],i=r[1];sn(function(){if(o)return e(),function(){t()}},[o]),sn(function(){return i(!0),function(){i(!1)}},[])}var vKe=["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"],yKe=c.forwardRef(function(e,t){var n=e.className,r=e.style,o=e.motion,i=e.motionNodes,a=e.motionType,s=e.onMotionStart,l=e.onMotionEnd,u=e.active,d=e.treeNodeRequiredProps,f=Ht(e,vKe),m=c.useState(!0),h=ue(m,2),p=h[0],b=h[1],v=c.useContext(x3),y=v.prefixCls,x=i&&a!=="hide";sn(function(){i&&x!==p&&b(x)},[i]);var w=function(){i&&s()},C=c.useRef(!1),S=function(){i&&!C.current&&(C.current=!0,l())};gKe(w,S);var $=function(O){x===O&&S()};return i?c.createElement(si,Ee({ref:t,visible:p},o,{motionAppear:a==="show",onVisibleChanged:$}),function(E,O){var P=E.className,j=E.style;return c.createElement("div",{ref:O,className:Q("".concat(y,"-treenode-motion"),P),style:j},i.map(function(I){var _=Object.assign({},(Xte(I.data),I.data)),R=I.title,N=I.key,A=I.isStart,M=I.isEnd;delete _.children;var T=Up(N,d);return c.createElement(ev,Ee({},_,T,{title:R,active:u,data:I.data,key:N,isStart:A,isEnd:M}))}))}):c.createElement(ev,Ee({domRef:t,className:n,style:r},f,{active:u}))});function bKe(){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(i,a){var s=new Map;i.forEach(function(u){s.set(u,!0)});var l=a.filter(function(u){return!s.has(u)});return l.length===1?l[0]:null}return n<r?{add:!0,key:o(e,t)}:{add:!1,key:o(t,e)}}function IF(e,t,n){var r=e.findIndex(function(s){return s.key===n}),o=e[r+1],i=t.findIndex(function(s){return s.key===n});if(o){var a=t.findIndex(function(s){return s.key===o.key});return t.slice(i+1,a)}return t.slice(i+1)}var xKe=["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"],_F={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},wKe=function(){},kd="RC_TREE_MOTION_".concat(Math.random()),Bj={key:kd},Yte={key:kd,level:0,index:0,pos:"0",node:Bj,nodes:[Bj]},NF={parent:null,children:[],pos:Yte.pos,data:Bj,title:null,key:kd,isStart:[],isEnd:[]};function RF(e,t,n,r){return t===!1||!n?e:e.slice(0,Math.ceil(n/r)+1)}function TF(e){var t=e.key,n=e.pos;return c0(t,n)}function SKe(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 CKe=c.forwardRef(function(e,t){var n=e.prefixCls,r=e.data;e.selectable,e.checkable;var o=e.expandedKeys,i=e.selectedKeys,a=e.checkedKeys,s=e.loadedKeys,l=e.loadingKeys,u=e.halfCheckedKeys,d=e.keyEntities,f=e.disabled,m=e.dragging,h=e.dragOverNodeKey,p=e.dropPosition,b=e.motion,v=e.height,y=e.itemHeight,x=e.virtual,w=e.scrollWidth,C=e.focusable,S=e.activeItem,$=e.focused,E=e.tabIndex,O=e.onKeyDown,P=e.onFocus,j=e.onBlur,I=e.onActiveChange,_=e.onListChangeStart,R=e.onListChangeEnd,N=Ht(e,xKe),A=c.useRef(null),M=c.useRef(null);c.useImperativeHandle(t,function(){return{scrollTo:function(J){A.current.scrollTo(J)},getIndentWidth:function(){return M.current.offsetWidth}}});var T=c.useState(o),k=ue(T,2),D=k[0],L=k[1],B=c.useState(r),H=ue(B,2),F=H[0],W=H[1],q=c.useState(r),G=ue(q,2),te=G[0],ee=G[1],z=c.useState([]),ne=ue(z,2),X=ne[0],U=ne[1],le=c.useState(null),se=ue(le,2),ae=se[0],re=se[1],fe=c.useRef(r);fe.current=r;function ye(){var V=fe.current;W(V),ee(V),U([]),re(null),R()}sn(function(){L(o);var V=bKe(D,o);if(V.key!==null)if(V.add){var J=F.findIndex(function(he){var xe=he.key;return xe===V.key}),oe=RF(IF(F,r,V.key),x,v,y),de=F.slice();de.splice(J+1,0,NF),ee(de),U(oe),re("show")}else{var be=r.findIndex(function(he){var xe=he.key;return xe===V.key}),ge=RF(IF(r,F,V.key),x,v,y),ie=r.slice();ie.splice(be+1,0,NF),ee(ie),U(ge),re("hide")}else F!==r&&(W(r),ee(r))},[o,r]),c.useEffect(function(){m||ye()},[m]);var Pe=b?te:r,Oe={expandedKeys:o,selectedKeys:i,loadedKeys:s,loadingKeys:l,checkedKeys:a,halfCheckedKeys:u,dragOverNodeKey:h,dropPosition:p,keyEntities:d};return c.createElement(c.Fragment,null,$&&S&&c.createElement("span",{style:_F,"aria-live":"assertive"},SKe(S)),c.createElement("div",null,c.createElement("input",{style:_F,disabled:C===!1||f,tabIndex:C!==!1?E:null,onKeyDown:O,onFocus:P,onBlur:j,value:"",onChange:wKe,"aria-label":"for screen reader"})),c.createElement("div",{className:"".concat(n,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},c.createElement("div",{className:"".concat(n,"-indent")},c.createElement("div",{ref:M,className:"".concat(n,"-indent-unit")}))),c.createElement(BS,Ee({},N,{data:Pe,itemKey:TF,height:v,fullHeight:!1,virtual:x,itemHeight:y,scrollWidth:w,prefixCls:"".concat(n,"-list"),ref:A,role:"tree",onVisibleChange:function(J){J.every(function(oe){return TF(oe)!==kd})&&ye()}}),function(V){var J=V.pos,oe=Object.assign({},(Xte(V.data),V.data)),de=V.title,be=V.key,ge=V.isStart,ie=V.isEnd,he=c0(be,J);delete oe.key,delete oe.children;var xe=Up(he,Oe);return c.createElement(yKe,Ee({},oe,xe,{title:de,active:!!S&&be===S.key,pos:J,data:V.data,isStart:ge,isEnd:ie,motion:b,motionNodes:be===kd?X:null,motionType:ae,onMotionStart:_,onMotionEnd:ye,treeNodeRequiredProps:Oe,onMouseMove:function(){I(null)}}))}))}),$Ke=10,S3=function(e){Ta(n,e);var t=gs(n);function n(){var r;lr(this,n);for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return r=t.call.apply(t,[this].concat(i)),K(Ct(r),"destroyed",!1),K(Ct(r),"delayedDragEnterLogic",void 0),K(Ct(r),"loadingRetryTimes",{}),K(Ct(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:qm()}),K(Ct(r),"dragStartMousePosition",null),K(Ct(r),"dragNodeProps",null),K(Ct(r),"currentMouseOverDroppableNodeKey",null),K(Ct(r),"listRef",c.createRef()),K(Ct(r),"onNodeDragStart",function(s,l){var u=r.state,d=u.expandedKeys,f=u.keyEntities,m=r.props.onDragStart,h=l.eventKey;r.dragNodeProps=l,r.dragStartMousePosition={x:s.clientX,y:s.clientY};var p=Js(d,h);r.setState({draggingNodeKey:h,dragChildrenKeys:iKe(h,f),indent:r.listRef.current.getIndentWidth()}),r.setExpandedKeys(p),window.addEventListener("dragend",r.onWindowDragEnd),m==null||m({event:s,node:io(l)})}),K(Ct(r),"onNodeDragEnter",function(s,l){var u=r.state,d=u.expandedKeys,f=u.keyEntities,m=u.dragChildrenKeys,h=u.flattenNodes,p=u.indent,b=r.props,v=b.onDragEnter,y=b.onExpand,x=b.allowDrop,w=b.direction,C=l.pos,S=l.eventKey;if(r.currentMouseOverDroppableNodeKey!==S&&(r.currentMouseOverDroppableNodeKey=S),!r.dragNodeProps){r.resetDragState();return}var $=OF(s,r.dragNodeProps,l,p,r.dragStartMousePosition,x,h,f,d,w),E=$.dropPosition,O=$.dropLevelOffset,P=$.dropTargetKey,j=$.dropContainerKey,I=$.dropTargetPos,_=$.dropAllowed,R=$.dragOverNodeKey;if(m.includes(P)||!_){r.resetDragState();return}if(r.delayedDragEnterLogic||(r.delayedDragEnterLogic={}),Object.keys(r.delayedDragEnterLogic).forEach(function(N){clearTimeout(r.delayedDragEnterLogic[N])}),r.dragNodeProps.eventKey!==l.eventKey&&(s.persist(),r.delayedDragEnterLogic[C]=window.setTimeout(function(){if(r.state.draggingNodeKey!==null){var N=Ne(d),A=Gi(f,l.eventKey);A&&(A.children||[]).length&&(N=Sl(d,l.eventKey)),r.props.hasOwnProperty("expandedKeys")||r.setExpandedKeys(N),y==null||y(N,{node:io(l),expanded:!0,nativeEvent:s.nativeEvent})}},800)),r.dragNodeProps.eventKey===P&&O===0){r.resetDragState();return}r.setState({dragOverNodeKey:R,dropPosition:E,dropLevelOffset:O,dropTargetKey:P,dropContainerKey:j,dropTargetPos:I,dropAllowed:_}),v==null||v({event:s,node:io(l),expandedKeys:d})}),K(Ct(r),"onNodeDragOver",function(s,l){var u=r.state,d=u.dragChildrenKeys,f=u.flattenNodes,m=u.keyEntities,h=u.expandedKeys,p=u.indent,b=r.props,v=b.onDragOver,y=b.allowDrop,x=b.direction;if(r.dragNodeProps){var w=OF(s,r.dragNodeProps,l,p,r.dragStartMousePosition,y,f,m,h,x),C=w.dropPosition,S=w.dropLevelOffset,$=w.dropTargetKey,E=w.dropContainerKey,O=w.dropTargetPos,P=w.dropAllowed,j=w.dragOverNodeKey;d.includes($)||!P||(r.dragNodeProps.eventKey===$&&S===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():C===r.state.dropPosition&&S===r.state.dropLevelOffset&&$===r.state.dropTargetKey&&E===r.state.dropContainerKey&&O===r.state.dropTargetPos&&P===r.state.dropAllowed&&j===r.state.dragOverNodeKey||r.setState({dropPosition:C,dropLevelOffset:S,dropTargetKey:$,dropContainerKey:E,dropTargetPos:O,dropAllowed:P,dragOverNodeKey:j}),v==null||v({event:s,node:io(l)}))}}),K(Ct(r),"onNodeDragLeave",function(s,l){r.currentMouseOverDroppableNodeKey===l.eventKey&&!s.currentTarget.contains(s.relatedTarget)&&(r.resetDragState(),r.currentMouseOverDroppableNodeKey=null);var u=r.props.onDragLeave;u==null||u({event:s,node:io(l)})}),K(Ct(r),"onWindowDragEnd",function(s){r.onNodeDragEnd(s,null,!0),window.removeEventListener("dragend",r.onWindowDragEnd)}),K(Ct(r),"onNodeDragEnd",function(s,l){var u=r.props.onDragEnd;r.setState({dragOverNodeKey:null}),r.cleanDragState(),u==null||u({event:s,node:io(l)}),r.dragNodeProps=null,window.removeEventListener("dragend",r.onWindowDragEnd)}),K(Ct(r),"onNodeDrop",function(s,l){var u,d=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,f=r.state,m=f.dragChildrenKeys,h=f.dropPosition,p=f.dropTargetKey,b=f.dropTargetPos,v=f.dropAllowed;if(v){var y=r.props.onDrop;if(r.setState({dragOverNodeKey:null}),r.cleanDragState(),p!==null){var x=Y(Y({},Up(p,r.getTreeNodeRequiredProps())),{},{active:((u=r.getActiveItem())===null||u===void 0?void 0:u.key)===p,data:Gi(r.state.keyEntities,p).node}),w=m.includes(p);ir(!w,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var C=w3(b),S={event:s,node:io(x),dragNode:r.dragNodeProps?io(r.dragNodeProps):null,dragNodesKeys:[r.dragNodeProps.eventKey].concat(m),dropToGap:h!==0,dropPosition:h+Number(C[C.length-1])};d||y==null||y(S),r.dragNodeProps=null}}}),K(Ct(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}),K(Ct(r),"triggerExpandActionExpand",function(s,l){var u=r.state,d=u.expandedKeys,f=u.flattenNodes,m=l.expanded,h=l.key,p=l.isLeaf;if(!(p||s.shiftKey||s.metaKey||s.ctrlKey)){var b=f.filter(function(y){return y.key===h})[0],v=io(Y(Y({},Up(h,r.getTreeNodeRequiredProps())),{},{data:b.data}));r.setExpandedKeys(m?Js(d,h):Sl(d,h)),r.onNodeExpand(s,v)}}),K(Ct(r),"onNodeClick",function(s,l){var u=r.props,d=u.onClick,f=u.expandAction;f==="click"&&r.triggerExpandActionExpand(s,l),d==null||d(s,l)}),K(Ct(r),"onNodeDoubleClick",function(s,l){var u=r.props,d=u.onDoubleClick,f=u.expandAction;f==="doubleClick"&&r.triggerExpandActionExpand(s,l),d==null||d(s,l)}),K(Ct(r),"onNodeSelect",function(s,l){var u=r.state.selectedKeys,d=r.state,f=d.keyEntities,m=d.fieldNames,h=r.props,p=h.onSelect,b=h.multiple,v=l.selected,y=l[m.key],x=!v;x?b?u=Sl(u,y):u=[y]:u=Js(u,y);var w=u.map(function(C){var S=Gi(f,C);return S?S.node:null}).filter(Boolean);r.setUncontrolledState({selectedKeys:u}),p==null||p(u,{event:"select",selected:x,node:l,selectedNodes:w,nativeEvent:s.nativeEvent})}),K(Ct(r),"onNodeCheck",function(s,l,u){var d=r.state,f=d.keyEntities,m=d.checkedKeys,h=d.halfCheckedKeys,p=r.props,b=p.checkStrictly,v=p.onCheck,y=l.key,x,w={event:"check",node:l,checked:u,nativeEvent:s.nativeEvent};if(b){var C=u?Sl(m,y):Js(m,y),S=Js(h,y);x={checked:C,halfChecked:S},w.checkedNodes=C.map(function(I){return Gi(f,I)}).filter(Boolean).map(function(I){return I.node}),r.setUncontrolledState({checkedKeys:C})}else{var $=dm([].concat(Ne(m),[y]),!0,f),E=$.checkedKeys,O=$.halfCheckedKeys;if(!u){var P=new Set(E);P.delete(y);var j=dm(Array.from(P),{halfCheckedKeys:O},f);E=j.checkedKeys,O=j.halfCheckedKeys}x=E,w.checkedNodes=[],w.checkedNodesPositions=[],w.halfCheckedKeys=O,E.forEach(function(I){var _=Gi(f,I);if(_){var R=_.node,N=_.pos;w.checkedNodes.push(R),w.checkedNodesPositions.push({node:R,pos:N})}}),r.setUncontrolledState({checkedKeys:E},!1,{halfCheckedKeys:O})}v==null||v(x,w)}),K(Ct(r),"onNodeLoad",function(s){var l,u=s.key,d=r.state.keyEntities,f=Gi(d,u);if(!(f!=null&&(l=f.children)!==null&&l!==void 0&&l.length)){var m=new Promise(function(h,p){r.setState(function(b){var v=b.loadedKeys,y=v===void 0?[]:v,x=b.loadingKeys,w=x===void 0?[]:x,C=r.props,S=C.loadData,$=C.onLoad;if(!S||y.includes(u)||w.includes(u))return null;var E=S(s);return E.then(function(){var O=r.state.loadedKeys,P=Sl(O,u);$==null||$(P,{event:"load",node:s}),r.setUncontrolledState({loadedKeys:P}),r.setState(function(j){return{loadingKeys:Js(j.loadingKeys,u)}}),h()}).catch(function(O){if(r.setState(function(j){return{loadingKeys:Js(j.loadingKeys,u)}}),r.loadingRetryTimes[u]=(r.loadingRetryTimes[u]||0)+1,r.loadingRetryTimes[u]>=$Ke){var P=r.state.loadedKeys;ir(!1,"Retry for `loadData` many times but still failed. No more retry."),r.setUncontrolledState({loadedKeys:Sl(P,u)}),h()}p(O)}),{loadingKeys:Sl(w,u)}})});return m.catch(function(){}),m}}),K(Ct(r),"onNodeMouseEnter",function(s,l){var u=r.props.onMouseEnter;u==null||u({event:s,node:l})}),K(Ct(r),"onNodeMouseLeave",function(s,l){var u=r.props.onMouseLeave;u==null||u({event:s,node:l})}),K(Ct(r),"onNodeContextMenu",function(s,l){var u=r.props.onRightClick;u&&(s.preventDefault(),u({event:s,node:l}))}),K(Ct(r),"onFocus",function(){var s=r.props.onFocus;r.setState({focused:!0});for(var l=arguments.length,u=new Array(l),d=0;d<l;d++)u[d]=arguments[d];s==null||s.apply(void 0,u)}),K(Ct(r),"onBlur",function(){var s=r.props.onBlur;r.setState({focused:!1}),r.onActiveChange(null);for(var l=arguments.length,u=new Array(l),d=0;d<l;d++)u[d]=arguments[d];s==null||s.apply(void 0,u)}),K(Ct(r),"getTreeNodeRequiredProps",function(){var s=r.state,l=s.expandedKeys,u=s.selectedKeys,d=s.loadedKeys,f=s.loadingKeys,m=s.checkedKeys,h=s.halfCheckedKeys,p=s.dragOverNodeKey,b=s.dropPosition,v=s.keyEntities;return{expandedKeys:l||[],selectedKeys:u||[],loadedKeys:d||[],loadingKeys:f||[],checkedKeys:m||[],halfCheckedKeys:h||[],dragOverNodeKey:p,dropPosition:b,keyEntities:v}}),K(Ct(r),"setExpandedKeys",function(s){var l=r.state,u=l.treeData,d=l.fieldNames,f=E2(u,s,d);r.setUncontrolledState({expandedKeys:s,flattenNodes:f},!0)}),K(Ct(r),"onNodeExpand",function(s,l){var u=r.state.expandedKeys,d=r.state,f=d.listChanging,m=d.fieldNames,h=r.props,p=h.onExpand,b=h.loadData,v=l.expanded,y=l[m.key];if(!f){var x=u.includes(y),w=!v;if(ir(v&&x||!v&&!x,"Expand state not sync with index check"),u=w?Sl(u,y):Js(u,y),r.setExpandedKeys(u),p==null||p(u,{node:l,expanded:w,nativeEvent:s.nativeEvent}),w&&b){var C=r.onNodeLoad(l);C&&C.then(function(){var S=E2(r.state.treeData,u,m);r.setUncontrolledState({flattenNodes:S})}).catch(function(){var S=r.state.expandedKeys,$=Js(S,y);r.setExpandedKeys($)})}}}),K(Ct(r),"onListChangeStart",function(){r.setUncontrolledState({listChanging:!0})}),K(Ct(r),"onListChangeEnd",function(){setTimeout(function(){r.setUncontrolledState({listChanging:!1})})}),K(Ct(r),"onActiveChange",function(s){var l=r.state.activeKey,u=r.props,d=u.onActiveChange,f=u.itemScrollOffset,m=f===void 0?0:f;l!==s&&(r.setState({activeKey:s}),s!==null&&r.scrollTo({key:s,offset:m}),d==null||d(s))}),K(Ct(r),"getActiveItem",function(){var s=r.state,l=s.activeKey,u=s.flattenNodes;return l===null?null:u.find(function(d){var f=d.key;return f===l})||null}),K(Ct(r),"offsetActiveKey",function(s){var l=r.state,u=l.flattenNodes,d=l.activeKey,f=u.findIndex(function(p){var b=p.key;return b===d});f===-1&&s<0&&(f=u.length),f=(f+s+u.length)%u.length;var m=u[f];if(m){var h=m.key;r.onActiveChange(h)}else r.onActiveChange(null)}),K(Ct(r),"onKeyDown",function(s){var l=r.state,u=l.activeKey,d=l.expandedKeys,f=l.checkedKeys,m=l.fieldNames,h=r.props,p=h.onKeyDown,b=h.checkable,v=h.selectable;switch(s.which){case jt.UP:{r.offsetActiveKey(-1),s.preventDefault();break}case jt.DOWN:{r.offsetActiveKey(1),s.preventDefault();break}}var y=r.getActiveItem();if(y&&y.data){var x=r.getTreeNodeRequiredProps(),w=y.data.isLeaf===!1||!!(y.data[m.children]||[]).length,C=io(Y(Y({},Up(u,x)),{},{data:y.data,active:!0}));switch(s.which){case jt.LEFT:{w&&d.includes(u)?r.onNodeExpand({},C):y.parent&&r.onActiveChange(y.parent.key),s.preventDefault();break}case jt.RIGHT:{w&&!d.includes(u)?r.onNodeExpand({},C):y.children&&y.children.length&&r.onActiveChange(y.children[0].key),s.preventDefault();break}case jt.ENTER:case jt.SPACE:{b&&!C.disabled&&C.checkable!==!1&&!C.disableCheckbox?r.onNodeCheck({},C,!f.includes(u)):!b&&v&&!C.disabled&&C.selectable!==!1&&r.onNodeSelect({},C);break}}}p==null||p(s)}),K(Ct(r),"setUncontrolledState",function(s){var l=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(h){if(r.props.hasOwnProperty(h)){f=!1;return}d=!0,m[h]=s[h]}),d&&(!l||f)&&r.setState(Y(Y({},m),u))}}),K(Ct(r),"scrollTo",function(s){r.listRef.current.scrollTo(s)}),r}return cr(n,[{key:"componentDidMount",value:function(){this.destroyed=!1,this.onUpdated()}},{key:"componentDidUpdate",value:function(){this.onUpdated()}},{key:"onUpdated",value:function(){var o=this.props,i=o.activeKey,a=o.itemScrollOffset,s=a===void 0?0:a;i!==void 0&&i!==this.state.activeKey&&(this.setState({activeKey:i}),i!==null&&this.scrollTo({key:i,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,i=o.focused,a=o.flattenNodes,s=o.keyEntities,l=o.draggingNodeKey,u=o.activeKey,d=o.dropLevelOffset,f=o.dropContainerKey,m=o.dropTargetKey,h=o.dropPosition,p=o.dragOverNodeKey,b=o.indent,v=this.props,y=v.prefixCls,x=v.className,w=v.style,C=v.showLine,S=v.focusable,$=v.tabIndex,E=$===void 0?0:$,O=v.selectable,P=v.showIcon,j=v.icon,I=v.switcherIcon,_=v.draggable,R=v.checkable,N=v.checkStrictly,A=v.disabled,M=v.motion,T=v.loadData,k=v.filterTreeNode,D=v.height,L=v.itemHeight,B=v.scrollWidth,H=v.virtual,F=v.titleRender,W=v.dropIndicatorRender,q=v.onContextMenu,G=v.onScroll,te=v.direction,ee=v.rootClassName,z=v.rootStyle,ne=Pr(this.props,{aria:!0,data:!0}),X;_&&(_t(_)==="object"?X=_:typeof _=="function"?X={nodeDraggable:_}:X={});var U={prefixCls:y,selectable:O,showIcon:P,icon:j,switcherIcon:I,draggable:X,draggingNodeKey:l,checkable:R,checkStrictly:N,disabled:A,keyEntities:s,dropLevelOffset:d,dropContainerKey:f,dropTargetKey:m,dropPosition:h,dragOverNodeKey:p,indent:b,direction:te,dropIndicatorRender:W,loadData:T,filterTreeNode:k,titleRender:F,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 c.createElement(x3.Provider,{value:U},c.createElement("div",{className:Q(y,x,ee,K(K(K({},"".concat(y,"-show-line"),C),"".concat(y,"-focused"),i),"".concat(y,"-active-focused"),u!==null)),style:z},c.createElement(CKe,Ee({ref:this.listRef,prefixCls:y,style:w,data:a,disabled:A,selectable:O,checkable:!!R,motion:M,dragging:l!==null,height:D,itemHeight:L,virtual:H,focusable:S,focused:i,tabIndex:E,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:q,onScroll:G,scrollWidth:B},this.getTreeNodeRequiredProps(),ne))))}}],[{key:"getDerivedStateFromProps",value:function(o,i){var a=i.prevProps,s={prevProps:o};function l(E){return!a&&o.hasOwnProperty(E)||a&&a[E]!==o[E]}var u,d=i.fieldNames;if(l("fieldNames")&&(d=qm(o.fieldNames),s.fieldNames=d),l("treeData")?u=o.treeData:l("children")&&(ir(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),u=Aee(o.children)),u){s.treeData=u;var f=i3(u,{fieldNames:d});s.keyEntities=Y(K({},kd,Yte),f.keyEntities)}var m=s.keyEntities||i.keyEntities;if(l("expandedKeys")||a&&l("autoExpandParent"))s.expandedKeys=o.autoExpandParent||!a&&o.defaultExpandParent?Dj(o.expandedKeys,m):o.expandedKeys;else if(!a&&o.defaultExpandAll){var h=Y({},m);delete h[kd];var p=[];Object.keys(h).forEach(function(E){var O=h[E];O.children&&O.children.length&&p.push(O.key)}),s.expandedKeys=p}else!a&&o.defaultExpandedKeys&&(s.expandedKeys=o.autoExpandParent||o.defaultExpandParent?Dj(o.defaultExpandedKeys,m):o.defaultExpandedKeys);if(s.expandedKeys||delete s.expandedKeys,u||s.expandedKeys){var b=E2(u||i.treeData,s.expandedKeys||i.expandedKeys,d);s.flattenNodes=b}if(o.selectable&&(l("selectedKeys")?s.selectedKeys=PF(o.selectedKeys,o):!a&&o.defaultSelectedKeys&&(s.selectedKeys=PF(o.defaultSelectedKeys,o))),o.checkable){var v;if(l("checkedKeys")?v=T2(o.checkedKeys)||{}:!a&&o.defaultCheckedKeys?v=T2(o.defaultCheckedKeys)||{}:u&&(v=T2(o.checkedKeys)||{checkedKeys:i.checkedKeys,halfCheckedKeys:i.halfCheckedKeys}),v){var y=v,x=y.checkedKeys,w=x===void 0?[]:x,C=y.halfCheckedKeys,S=C===void 0?[]:C;if(!o.checkStrictly){var $=dm(w,!0,m);w=$.checkedKeys,S=$.halfCheckedKeys}s.checkedKeys=w,s.halfCheckedKeys=S}}return l("loadedKeys")&&(s.loadedKeys=o.loadedKeys),s}}]),n}(c.Component);K(S3,"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:pKe,allowDrop:function(){return!0},expandAction:!1});K(S3,"TreeNode",ev);var EKe={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"},OKe=function(t,n){return c.createElement(yn,Ee({},t,{ref:n,icon:EKe}))},Zte=c.forwardRef(OKe),PKe={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"},jKe=function(t,n){return c.createElement(yn,Ee({},t,{ref:n,icon:PKe}))},IKe=c.forwardRef(jKe),_Ke={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"},NKe=function(t,n){return c.createElement(yn,Ee({},t,{ref:n,icon:_Ke}))},RKe=c.forwardRef(NKe),TKe={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"},MKe=function(t,n){return c.createElement(yn,Ee({},t,{ref:n,icon:TKe}))},kKe=c.forwardRef(MKe);const AKe=({treeCls:e,treeNodeCls:t,directoryNodeSelectedBg:n,directoryNodeSelectedColor:r,motionDurationMid:o,borderRadius:i,controlItemBgHover:a})=>({[`${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:i},"&:hover:before":{background:a}},[`${e}-switcher, ${e}-checkbox, ${e}-draggable-icon`]:{zIndex:1},"&-selected":{background:n,borderRadius:i,[`${e}-switcher, ${e}-draggable-icon`]:{color:r},[`${e}-node-content-wrapper`]:{color:r,background:"transparent","&, &:hover":{color:r},"&:before, &:hover:before":{background:n}}}}}),DKe=new gn("ant-tree-node-fx-do-not-use",{"0%":{opacity:0},"100%":{opacity:1}}),LKe=(e,t)=>({[`.${e}-switcher-icon`]:{display:"inline-block",fontSize:10,verticalAlign:"baseline",svg:{transition:`transform ${t.motionDurationSlow}`}}}),zKe=(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:`${Z(t.lineWidthBold)} solid ${t.colorPrimary}`,borderRadius:"50%",content:'""'}}}),FKe=(e,t)=>{const{treeCls:n,treeNodeCls:r,treeNodePadding:o,titleHeight:i,indentSize:a,nodeSelectedBg:s,nodeHoverBg:l,colorTextQuaternary:u,controlItemBgActiveDisabled:d}=t;return{[n]:Object.assign(Object.assign({},xn(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)`]:pl(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:DKe,animationDuration:t.motionDurationSlow,animationPlayState:"running",animationFillMode:"forwards",content:'""',pointerEvents:"none",borderRadius:t.borderRadius}}},[r]:{display:"flex",alignItems:"flex-start",marginBottom:o,lineHeight:Z(i),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:i,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:a}},[`${n}-draggable-icon`]:{visibility:"hidden"},[`${n}-switcher, ${n}-checkbox`]:{marginInlineEnd:t.calc(t.calc(i).sub(t.controlInteractiveSize)).div(2).equal()},[`${n}-switcher`]:Object.assign(Object.assign({},LKe(e,t)),{position:"relative",flex:"none",alignSelf:"stretch",width:i,textAlign:"center",cursor:"pointer",userSelect:"none",transition:`all ${t.motionDurationSlow}`,"&-noop":{cursor:"unset"},"&:before":{pointerEvents:"none",content:'""',width:i,height:i,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(i).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(i).div(2).equal()).mul(.8).equal(),height:t.calc(i).div(2).equal(),borderBottom:`1px solid ${t.colorBorder}`,content:'""'}}}),[`${n}-node-content-wrapper`]:Object.assign(Object.assign({position:"relative",minHeight:i,paddingBlock:0,paddingInline:t.paddingXS,background:"transparent",borderRadius:t.borderRadius,cursor:"pointer",transition:`all ${t.motionDurationMid}, border 0s, line-height 0s, box-shadow 0s`},zKe(e,t)),{"&:hover":{backgroundColor:l},[`&${n}-node-selected`]:{color:t.nodeSelectedColor,backgroundColor:s},[`${n}-iconEle`]:{display:"inline-block",width:i,height:i,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(i).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:`${Z(t.calc(i).div(2).equal())} !important`}})}},BKe=(e,t,n=!0)=>{const r=`.${e}`,o=`${r}-treenode`,i=t.calc(t.paddingXS).div(2).equal(),a=cn(t,{treeCls:r,treeNodeCls:o,treeNodePadding:i});return[FKe(e,a),n&&AKe(a)].filter(Boolean)},HKe=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}},VKe=e=>{const{colorTextLightSolid:t,colorPrimary:n}=e;return Object.assign(Object.assign({},HKe(e)),{directoryNodeSelectedColor:t,directoryNodeSelectedBg:n})},WKe=vn("Tree",(e,{prefixCls:t})=>[{[e.componentCls]:Lee(`${t}-checkbox`,e)},BKe(t,e),SS(e)],VKe),MF=4;function UKe(e){const{dropPosition:t,dropLevelOffset:n,prefixCls:r,indent:o,direction:i="ltr"}=e,a=i==="ltr"?"left":"right",s=i==="ltr"?"right":"left",l={[a]:-n*o+MF,[s]:0};switch(t){case-1:l.top=-3;break;case 1:l.bottom=-3;break;default:l.bottom=-3,l[a]=o+MF;break}return ce.createElement("div",{style:l,className:`${r}-drop-indicator`})}var KKe={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"},qKe=function(t,n){return c.createElement(yn,Ee({},t,{ref:n,icon:KKe}))},GKe=c.forwardRef(qKe),XKe={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"},YKe=function(t,n){return c.createElement(yn,Ee({},t,{ref:n,icon:XKe}))},ZKe=c.forwardRef(YKe),JKe={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"},QKe=function(t,n){return c.createElement(yn,Ee({},t,{ref:n,icon:JKe}))},eqe=c.forwardRef(QKe);const tqe=e=>{var t,n;const{prefixCls:r,switcherIcon:o,treeNodeProps:i,showLine:a,switcherLoadingIcon:s}=e,{isLeaf:l,expanded:u,loading:d}=i;if(d)return c.isValidElement(s)?s:c.createElement(Zl,{className:`${r}-switcher-loading-icon`});let f;if(a&&typeof a=="object"&&(f=a.showLeafIcon),l){if(!a)return null;if(typeof f!="boolean"&&f){const p=typeof f=="function"?f(i):f,b=`${r}-switcher-line-custom-icon`;return c.isValidElement(p)?qr(p,{className:Q((t=p.props)===null||t===void 0?void 0:t.className,b)}):p}return f?c.createElement(Zte,{className:`${r}-switcher-line-icon`}):c.createElement("span",{className:`${r}-switcher-leaf-line`})}const m=`${r}-switcher-icon`,h=typeof o=="function"?o(i):o;return c.isValidElement(h)?qr(h,{className:Q((n=h.props)===null||n===void 0?void 0:n.className,m)}):h!==void 0?h:a?u?c.createElement(ZKe,{className:`${r}-switcher-line-icon`}):c.createElement(eqe,{className:`${r}-switcher-line-icon`}):c.createElement(GKe,{className:m})},Jte=ce.forwardRef((e,t)=>{var n;const{getPrefixCls:r,direction:o,virtual:i,tree:a}=ce.useContext(kt),{prefixCls:s,className:l,showIcon:u=!1,showLine:d,switcherIcon:f,switcherLoadingIcon:m,blockNode:h=!1,children:p,checkable:b=!1,selectable:v=!0,draggable:y,disabled:x,motion:w,style:C}=e,S=r("tree",s),$=r(),E=ce.useContext(ai),O=x??E,P=w??Object.assign(Object.assign({},Ug($)),{motionAppear:!1}),j=Object.assign(Object.assign({},e),{checkable:b,selectable:v,showIcon:u,motion:P,blockNode:h,disabled:O,showLine:!!d,dropIndicatorRender:UKe}),[I,_,R]=WKe(S),[,N]=Xo(),A=N.paddingXS/2+(((n=N.Tree)===null||n===void 0?void 0:n.titleHeight)||N.controlHeightSM),M=ce.useMemo(()=>{if(!y)return!1;let k={};switch(typeof y){case"function":k.nodeDraggable=y;break;case"object":k=Object.assign({},y);break}return k.icon!==!1&&(k.icon=k.icon||ce.createElement(kKe,null)),k},[y]),T=k=>ce.createElement(tqe,{prefixCls:S,switcherIcon:f,switcherLoadingIcon:m,treeNodeProps:k,showLine:d});return I(ce.createElement(S3,Object.assign({itemHeight:A,ref:t,virtual:i},j,{style:Object.assign(Object.assign({},a==null?void 0:a.style),C),prefixCls:S,className:Q({[`${S}-icon-hide`]:!u,[`${S}-block-node`]:h,[`${S}-unselectable`]:!v,[`${S}-rtl`]:o==="rtl",[`${S}-disabled`]:O},a==null?void 0:a.className,l,_,R),direction:o,checkable:b&&ce.createElement("span",{className:`${S}-checkbox-inner`}),selectable:v,switcherIcon:T,draggable:M}),p))}),kF=0,M2=1,AF=2;function C3(e,t,n){const{key:r,children:o}=n;function i(a){const s=a[r],l=a[o];t(s,a)!==!1&&C3(l||[],t,n)}e.forEach(i)}function nqe({treeData:e,expandedKeys:t,startKey:n,endKey:r,fieldNames:o}){const i=[];let a=kF;if(n&&n===r)return[n];if(!n||!r)return[];function s(l){return l===n||l===r}return C3(e,l=>{if(a===AF)return!1;if(s(l)){if(i.push(l),a===kF)a=M2;else if(a===M2)return a=AF,!1}else a===M2&&i.push(l);return t.includes(l)},qm(o)),i}function k2(e,t,n){const r=Ne(t),o=[];return C3(e,(i,a)=>{const s=r.indexOf(i);return s!==-1&&(o.push(a),r.splice(s,1)),!!r.length},qm(n)),o}var DF=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 rqe(e){const{isLeaf:t,expanded:n}=e;return t?c.createElement(Zte,null):n?c.createElement(IKe,null):c.createElement(RKe,null)}function LF({treeData:e,children:t}){return e||Aee(t)}const oqe=(e,t)=>{var{defaultExpandAll:n,defaultExpandParent:r,defaultExpandedKeys:o}=e,i=DF(e,["defaultExpandAll","defaultExpandParent","defaultExpandedKeys"]);const a=c.useRef(null),s=c.useRef(null),l=()=>{const{keyEntities:O}=i3(LF(i),{fieldNames:i.fieldNames});let P;return n?P=Object.keys(O):r?P=Dj(i.expandedKeys||o||[],O):P=i.expandedKeys||o||[],P},[u,d]=c.useState(i.selectedKeys||i.defaultSelectedKeys||[]),[f,m]=c.useState(()=>l());c.useEffect(()=>{"selectedKeys"in i&&d(i.selectedKeys)},[i.selectedKeys]),c.useEffect(()=>{"expandedKeys"in i&&m(i.expandedKeys)},[i.expandedKeys]);const h=(O,P)=>{var j;return"expandedKeys"in i||m(O),(j=i.onExpand)===null||j===void 0?void 0:j.call(i,O,P)},p=(O,P)=>{var j;const{multiple:I,fieldNames:_}=i,{node:R,nativeEvent:N}=P,{key:A=""}=R,M=LF(i),T=Object.assign(Object.assign({},P),{selected:!0}),k=(N==null?void 0:N.ctrlKey)||(N==null?void 0:N.metaKey),D=N==null?void 0:N.shiftKey;let L;I&&k?(L=O,a.current=A,s.current=L,T.selectedNodes=k2(M,L,_)):I&&D?(L=Array.from(new Set([].concat(Ne(s.current||[]),Ne(nqe({treeData:M,expandedKeys:f,startKey:A,endKey:a.current,fieldNames:_}))))),T.selectedNodes=k2(M,L,_)):(L=[A],a.current=A,s.current=L,T.selectedNodes=k2(M,L,_)),(j=i.onSelect)===null||j===void 0||j.call(i,L,T),"selectedKeys"in i||d(L)},{getPrefixCls:b,direction:v}=c.useContext(kt),{prefixCls:y,className:x,showIcon:w=!0,expandAction:C="click"}=i,S=DF(i,["prefixCls","className","showIcon","expandAction"]),$=b("tree",y),E=Q(`${$}-directory`,{[`${$}-directory-rtl`]:v==="rtl"},x);return c.createElement(Jte,Object.assign({icon:rqe,ref:t,blockNode:!0},S,{showIcon:w,expandAction:C,prefixCls:$,className:E,expandedKeys:f,selectedKeys:u,onSelect:p,onExpand:h}))},iqe=c.forwardRef(oqe),$3=Jte;$3.DirectoryTree=iqe;$3.TreeNode=ev;const zF=e=>{const{value:t,filterSearch:n,tablePrefixCls:r,locale:o,onChange:i}=e;return n?c.createElement("div",{className:`${r}-filter-dropdown-search`},c.createElement(u0,{prefix:c.createElement(MT,null),placeholder:o.filterSearchPlaceholder,onChange:i,value:t,htmlSize:1,className:`${r}-filter-dropdown-search-input`})):null},aqe=e=>{const{keyCode:t}=e;t===jt.ENTER&&e.stopPropagation()},sqe=c.forwardRef((e,t)=>c.createElement("div",{className:e.className,onClick:n=>n.stopPropagation(),onKeyDown:aqe,ref:t},e.children));function mm(e){let t=[];return(e||[]).forEach(({value:n,children:r})=>{t.push(n),r&&(t=[].concat(Ne(t),Ne(mm(r))))}),t}function lqe(e){return e.some(({children:t})=>t)}function Qte(e,t){return typeof t=="string"||typeof t=="number"?t==null?void 0:t.toString().toLowerCase().includes(e.trim().toLowerCase()):!1}function ene({filters:e,prefixCls:t,filteredKeys:n,filterMultiple:r,searchValue:o,filterSearch:i}){return e.map((a,s)=>{const l=String(a.value);if(a.children)return{key:l||s,label:a.text,popupClassName:`${t}-dropdown-submenu`,children:ene({filters:a.children,prefixCls:t,filteredKeys:n,filterMultiple:r,searchValue:o,filterSearch:i})};const u=r?tu:Kc,d={key:a.value!==void 0?l:s,label:c.createElement(c.Fragment,null,c.createElement(u,{checked:n.includes(l)}),c.createElement("span",null,a.text))};return o.trim()?typeof i=="function"?i(o,a)?d:null:Qte(o,a.text)?d:null:d})}function A2(e){return e||[]}const cqe=e=>{var t,n,r,o;const{tablePrefixCls:i,prefixCls:a,column:s,dropdownPrefixCls:l,columnKey:u,filterOnClose:d,filterMultiple:f,filterMode:m="menu",filterSearch:h=!1,filterState:p,triggerFilter:b,locale:v,children:y,getPopupContainer:x,rootClassName:w}=e,{filterResetToDefaultFilteredValue:C,defaultFilteredValue:S,filterDropdownProps:$={},filterDropdownOpen:E,filterDropdownVisible:O,onFilterDropdownVisibleChange:P,onFilterDropdownOpenChange:j}=s,[I,_]=c.useState(!1),R=!!(p&&(!((t=p.filteredKeys)===null||t===void 0)&&t.length||p.forceFiltered)),N=V=>{var J;_(V),(J=$.onOpenChange)===null||J===void 0||J.call($,V),j==null||j(V),P==null||P(V)},A=(o=(r=(n=$.open)!==null&&n!==void 0?n:E)!==null&&r!==void 0?r:O)!==null&&o!==void 0?o:I,M=p==null?void 0:p.filteredKeys,[T,k]=p3e(A2(M)),D=({selectedKeys:V})=>{k(V)},L=(V,{node:J,checked:oe})=>{D(f?{selectedKeys:V}:{selectedKeys:oe&&J.key?[J.key]:[]})};c.useEffect(()=>{I&&D({selectedKeys:A2(M)})},[M]);const[B,H]=c.useState([]),F=V=>{H(V)},[W,q]=c.useState(""),G=V=>{const{value:J}=V.target;q(J)};c.useEffect(()=>{I||q("")},[I]);const te=V=>{const J=V!=null&&V.length?V:null;if(J===null&&(!p||!p.filteredKeys)||ml(J,p==null?void 0:p.filteredKeys,!0))return null;b({column:s,key:u,filteredKeys:J})},ee=()=>{N(!1),te(T())},z=({confirm:V,closeDropdown:J}={confirm:!1,closeDropdown:!1})=>{V&&te([]),J&&N(!1),q(""),k(C?(S||[]).map(oe=>String(oe)):[])},ne=({closeDropdown:V}={closeDropdown:!0})=>{V&&N(!1),te(T())},X=(V,J)=>{J.source==="trigger"&&(V&&M!==void 0&&k(A2(M)),N(V),!V&&!s.filterDropdown&&d&&ee())},U=Q({[`${l}-menu-without-submenu`]:!lqe(s.filters||[])}),le=V=>{if(V.target.checked){const J=mm(s==null?void 0:s.filters).map(oe=>String(oe));k(J)}else k([])},se=({filters:V})=>(V||[]).map((J,oe)=>{const de=String(J.value),be={title:J.text,key:J.value!==void 0?de:String(oe)};return J.children&&(be.children=se({filters:J.children})),be}),ae=V=>{var J;return Object.assign(Object.assign({},V),{text:V.title,value:V.key,children:((J=V.children)===null||J===void 0?void 0:J.map(oe=>ae(oe)))||[]})};let re;const{direction:fe,renderEmpty:ye}=c.useContext(kt);if(typeof s.filterDropdown=="function")re=s.filterDropdown({prefixCls:`${l}-custom`,setSelectedKeys:V=>D({selectedKeys:V}),selectedKeys:T(),confirm:ne,clearFilters:z,filters:s.filters,visible:A,close:()=>{N(!1)}});else if(s.filterDropdown)re=s.filterDropdown;else{const V=T()||[],J=()=>{var de,be;const ge=(de=ye==null?void 0:ye("Table.filter"))!==null&&de!==void 0?de:c.createElement(Mi,{image:Mi.PRESENTED_IMAGE_SIMPLE,description:v.filterEmptyText,styles:{image:{height:24}},style:{margin:0,padding:"16px 0"}});if((s.filters||[]).length===0)return ge;if(m==="tree")return c.createElement(c.Fragment,null,c.createElement(zF,{filterSearch:h,value:W,onChange:G,tablePrefixCls:i,locale:v}),c.createElement("div",{className:`${i}-filter-dropdown-tree`},f?c.createElement(tu,{checked:V.length===mm(s.filters).length,indeterminate:V.length>0&&V.length<mm(s.filters).length,className:`${i}-filter-dropdown-checkall`,onChange:le},(be=v==null?void 0:v.filterCheckall)!==null&&be!==void 0?be:v==null?void 0:v.filterCheckAll):null,c.createElement($3,{checkable:!0,selectable:!1,blockNode:!0,multiple:f,checkStrictly:!f,className:`${l}-menu`,onCheck:L,checkedKeys:V,selectedKeys:V,showIcon:!1,treeData:se({filters:s.filters}),autoExpandParent:!0,defaultExpandAll:!0,filterTreeNode:W.trim()?xe=>typeof h=="function"?h(W,ae(xe)):Qte(W,xe.title):void 0})));const ie=ene({filters:s.filters||[],filterSearch:h,prefixCls:a,filteredKeys:T(),filterMultiple:f,searchValue:W}),he=ie.every(xe=>xe===null);return c.createElement(c.Fragment,null,c.createElement(zF,{filterSearch:h,value:W,onChange:G,tablePrefixCls:i,locale:v}),he?ge:c.createElement(yu,{selectable:!0,multiple:f,prefixCls:`${l}-menu`,className:U,onSelect:D,onDeselect:D,selectedKeys:V,getPopupContainer:x,openKeys:B,onOpenChange:F,items:ie}))},oe=()=>C?ml((S||[]).map(de=>String(de)),V,!0):V.length===0;re=c.createElement(c.Fragment,null,J(),c.createElement("div",{className:`${a}-dropdown-btns`},c.createElement(gt,{type:"link",size:"small",disabled:oe(),onClick:()=>z()},v.filterReset),c.createElement(gt,{type:"primary",size:"small",onClick:ee},v.filterConfirm)))}s.filterDropdown&&(re=c.createElement(OQ,{selectable:void 0},re)),re=c.createElement(sqe,{className:`${a}-dropdown`},re);const Oe=Wg({trigger:["click"],placement:fe==="rtl"?"bottomLeft":"bottomRight",children:(()=>{let V;return typeof s.filterIcon=="function"?V=s.filterIcon(R):s.filterIcon?V=s.filterIcon:V=c.createElement(hKe,null),c.createElement("span",{role:"button",tabIndex:-1,className:Q(`${a}-trigger`,{active:R}),onClick:J=>{J.stopPropagation()}},V)})(),getPopupContainer:x},Object.assign(Object.assign({},$),{rootClassName:Q(w,$.rootClassName),open:A,onOpenChange:X,popupRender:()=>typeof($==null?void 0:$.dropdownRender)=="function"?$.dropdownRender(re):re}));return c.createElement("div",{className:`${a}-column`},c.createElement("span",{className:`${i}-column-title`},y),c.createElement(oC,Object.assign({},Oe)))},Hj=(e,t,n)=>{let r=[];return(e||[]).forEach((o,i)=>{var a;const s=Nh(i,n),l=o.filterDropdown!==void 0;if(o.filters||l||"onFilter"in o)if("filteredValue"in o){let u=o.filteredValue;l||(u=(a=u==null?void 0:u.map(String))!==null&&a!==void 0?a:u),r.push({column:o,key:nu(o,s),filteredKeys:u,forceFiltered:o.filtered})}else r.push({column:o,key:nu(o,s),filteredKeys:t&&o.defaultFilteredValue?o.defaultFilteredValue:void 0,forceFiltered:o.filtered});"children"in o&&(r=[].concat(Ne(r),Ne(Hj(o.children,t,s))))}),r};function tne(e,t,n,r,o,i,a,s,l){return n.map((u,d)=>{const f=Nh(d,s),{filterOnClose:m=!0,filterMultiple:h=!0,filterMode:p,filterSearch:b}=u;let v=u;if(v.filters||v.filterDropdown){const y=nu(v,f),x=r.find(({key:w})=>y===w);v=Object.assign(Object.assign({},v),{title:w=>c.createElement(cqe,{tablePrefixCls:e,prefixCls:`${e}-filter`,dropdownPrefixCls:t,column:v,columnKey:y,filterState:x,filterOnClose:m,filterMultiple:h,filterMode:p,filterSearch:b,triggerFilter:i,locale:o,getPopupContainer:a,rootClassName:l},uC(u.title,w))})}return"children"in v&&(v=Object.assign(Object.assign({},v),{children:tne(e,t,v.children,r,o,i,a,f,l)})),v})}const FF=e=>{const t={};return e.forEach(({key:n,filteredKeys:r,column:o})=>{const i=n,{filters:a,filterDropdown:s}=o;if(s)t[i]=r||null;else if(Array.isArray(r)){const l=mm(a);t[i]=l.filter(u=>r.includes(String(u)))}else t[i]=null}),t},Vj=(e,t,n)=>t.reduce((o,i)=>{const{column:{onFilter:a,filters:s},filteredKeys:l}=i;return a&&l&&l.length?o.map(u=>Object.assign({},u)).filter(u=>l.some(d=>{const f=mm(s),m=f.findIndex(p=>String(p)===String(d)),h=m!==-1?f[m]:d;return u[n]&&(u[n]=Vj(u[n],t,n)),a(h,u)})):o},e),nne=e=>e.flatMap(t=>"children"in t?[t].concat(Ne(nne(t.children||[]))):[t]),uqe=e=>{const{prefixCls:t,dropdownPrefixCls:n,mergedColumns:r,onFilterChange:o,getPopupContainer:i,locale:a,rootClassName:s}=e;pu();const l=c.useMemo(()=>nne(r||[]),[r]),[u,d]=c.useState(()=>Hj(l,!0)),f=c.useMemo(()=>{const b=Hj(l,!1);if(b.length===0)return b;let v=!0;if(b.forEach(({filteredKeys:y})=>{y!==void 0&&(v=!1)}),v){const y=(l||[]).map((x,w)=>nu(x,Nh(w)));return u.filter(({key:x})=>y.includes(x)).map(x=>{const w=l[y.indexOf(x.key)];return Object.assign(Object.assign({},x),{column:Object.assign(Object.assign({},x.column),w),forceFiltered:w.filtered})})}return b},[l,u]),m=c.useMemo(()=>FF(f),[f]),h=b=>{const v=f.filter(({key:y})=>y!==b.key);v.push(b),d(v),o(FF(v),v)};return[b=>tne(t,n,b,f,a,h,i,void 0,s),f,m]},dqe=(e,t,n)=>{const r=c.useRef({});function o(i){var a;if(!r.current||r.current.data!==e||r.current.childrenColumnName!==t||r.current.getRowKey!==n){let l=function(u){u.forEach((d,f)=>{const m=n(d,f);s.set(m,d),d&&typeof d=="object"&&t in d&&l(d[t]||[])})};const s=new Map;l(e),r.current={data:e,childrenColumnName:t,kvMap:s,getRowKey:n}}return(a=r.current.kvMap)===null||a===void 0?void 0:a.get(i)}return[o]};var fqe=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 rne=10;function mqe(e,t){const n={current:e.current,pageSize:e.pageSize};return Object.keys(t&&typeof t=="object"?t:{}).forEach(o=>{const i=e[o];typeof i!="function"&&(n[o]=i)}),n}function hqe(e,t,n){const r=n&&typeof n=="object"?n:{},{total:o=0}=r,i=fqe(r,["total"]),[a,s]=c.useState(()=>({current:"defaultCurrent"in i?i.defaultCurrent:1,pageSize:"defaultPageSize"in i?i.defaultPageSize:rne})),l=Wg(a,i,{total:o>0?o:e}),u=Math.ceil((o||e)/l.pageSize);l.current>u&&(l.current=u||1);const d=(m,h)=>{s({current:m??1,pageSize:h||l.pageSize})},f=(m,h)=>{var p;n&&((p=n.onChange)===null||p===void 0||p.call(n,m,h)),d(m,h),t(m,h||(l==null?void 0:l.pageSize))};return n===!1?[{},()=>{}]:[Object.assign(Object.assign({},l),{onChange:f}),d]}var pqe={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"},gqe=function(t,n){return c.createElement(yn,Ee({},t,{ref:n,icon:pqe}))},vqe=c.forwardRef(gqe),yqe={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"},bqe=function(t,n){return c.createElement(yn,Ee({},t,{ref:n,icon:yqe}))},xqe=c.forwardRef(bqe);const yb="ascend",D2="descend",p1=e=>typeof e.sorter=="object"&&typeof e.sorter.multiple=="number"?e.sorter.multiple:!1,BF=e=>typeof e=="function"?e:e&&typeof e=="object"&&e.compare?e.compare:!1,wqe=(e,t)=>t?e[e.indexOf(t)+1]:e[0],Wj=(e,t,n)=>{let r=[];const o=(i,a)=>{r.push({column:i,key:nu(i,a),multiplePriority:p1(i),sortOrder:i.sortOrder})};return(e||[]).forEach((i,a)=>{const s=Nh(a,n);i.children?("sortOrder"in i&&o(i,s),r=[].concat(Ne(r),Ne(Wj(i.children,t,s)))):i.sorter&&("sortOrder"in i?o(i,s):t&&i.defaultSortOrder&&r.push({column:i,key:nu(i,s),multiplePriority:p1(i),sortOrder:i.defaultSortOrder}))}),r},one=(e,t,n,r,o,i,a,s)=>(t||[]).map((u,d)=>{const f=Nh(d,s);let m=u;if(m.sorter){const h=m.sortDirections||o,p=m.showSorterTooltip===void 0?a:m.showSorterTooltip,b=nu(m,f),v=n.find(({key:P})=>P===b),y=v?v.sortOrder:null,x=wqe(h,y);let w;if(u.sortIcon)w=u.sortIcon({sortOrder:y});else{const P=h.includes(yb)&&c.createElement(xqe,{className:Q(`${e}-column-sorter-up`,{active:y===yb})}),j=h.includes(D2)&&c.createElement(vqe,{className:Q(`${e}-column-sorter-down`,{active:y===D2})});w=c.createElement("span",{className:Q(`${e}-column-sorter`,{[`${e}-column-sorter-full`]:!!(P&&j)})},c.createElement("span",{className:`${e}-column-sorter-inner`,"aria-hidden":"true"},P,j))}const{cancelSort:C,triggerAsc:S,triggerDesc:$}=i||{};let E=C;x===D2?E=$:x===yb&&(E=S);const O=typeof p=="object"?Object.assign({title:E},p):{title:E};m=Object.assign(Object.assign({},m),{className:Q(m.className,{[`${e}-column-sort`]:y}),title:P=>{const j=`${e}-column-sorters`,I=c.createElement("span",{className:`${e}-column-title`},uC(u.title,P)),_=c.createElement("div",{className:j},I,w);return p?typeof p!="boolean"&&(p==null?void 0:p.target)==="sorter-icon"?c.createElement("div",{className:`${j} ${e}-column-sorters-tooltip-target-sorter`},I,c.createElement(us,Object.assign({},O),w)):c.createElement(us,Object.assign({},O),_):_},onHeaderCell:P=>{var j;const I=((j=u.onHeaderCell)===null||j===void 0?void 0:j.call(u,P))||{},_=I.onClick,R=I.onKeyDown;I.onClick=M=>{r({column:u,key:b,sortOrder:x,multiplePriority:p1(u)}),_==null||_(M)},I.onKeyDown=M=>{M.keyCode===jt.ENTER&&(r({column:u,key:b,sortOrder:x,multiplePriority:p1(u)}),R==null||R(M))};const N=dKe(u.title,{}),A=N==null?void 0:N.toString();return y&&(I["aria-sort"]=y==="ascend"?"ascending":"descending"),I["aria-label"]=A||"",I.className=Q(I.className,`${e}-column-has-sorters`),I.tabIndex=0,u.ellipsis&&(I.title=(N??"").toString()),I}})}return"children"in m&&(m=Object.assign(Object.assign({},m),{children:one(e,m.children,n,r,o,i,a,f)})),m}),HF=e=>{const{column:t,sortOrder:n}=e;return{column:t,order:n,field:t.dataIndex,columnKey:t.key}},VF=e=>{const t=e.filter(({sortOrder:n})=>n).map(HF);if(t.length===0&&e.length){const n=e.length-1;return Object.assign(Object.assign({},HF(e[n])),{column:void 0,order:void 0,field:void 0,columnKey:void 0})}return t.length<=1?t[0]||{}:t},Uj=(e,t,n)=>{const r=t.slice().sort((a,s)=>s.multiplePriority-a.multiplePriority),o=e.slice(),i=r.filter(({column:{sorter:a},sortOrder:s})=>BF(a)&&s);return i.length?o.sort((a,s)=>{for(let l=0;l<i.length;l+=1){const u=i[l],{column:{sorter:d},sortOrder:f}=u,m=BF(d);if(m&&f){const h=m(a,s,f);if(h!==0)return f===yb?h:-h}}return 0}).map(a=>{const s=a[n];return s?Object.assign(Object.assign({},a),{[n]:Uj(s,t,n)}):a}):o},Sqe=e=>{const{prefixCls:t,mergedColumns:n,sortDirections:r,tableLocale:o,showSorterTooltip:i,onSorterChange:a}=e,[s,l]=c.useState(()=>Wj(n,!0)),u=(b,v)=>{const y=[];return b.forEach((x,w)=>{const C=Nh(w,v);if(y.push(nu(x,C)),Array.isArray(x.children)){const S=u(x.children,C);y.push.apply(y,Ne(S))}}),y},d=c.useMemo(()=>{let b=!0;const v=Wj(n,!1);if(!v.length){const C=u(n);return s.filter(({key:S})=>C.includes(S))}const y=[];function x(C){b?y.push(C):y.push(Object.assign(Object.assign({},C),{sortOrder:null}))}let w=null;return v.forEach(C=>{w===null?(x(C),C.sortOrder&&(C.multiplePriority===!1?b=!1:w=!0)):(w&&C.multiplePriority!==!1||(b=!1),x(C))}),y},[n,s]),f=c.useMemo(()=>{var b,v;const y=d.map(({column:x,sortOrder:w})=>({column:x,order:w}));return{sortColumns:y,sortColumn:(b=y[0])===null||b===void 0?void 0:b.column,sortOrder:(v=y[0])===null||v===void 0?void 0:v.order}},[d]),m=b=>{let v;b.multiplePriority===!1||!d.length||d[0].multiplePriority===!1?v=[b]:v=[].concat(Ne(d.filter(({key:y})=>y!==b.key)),[b]),l(v),a(VF(v),v)};return[b=>one(t,b,d,m,r,o,i),d,f,()=>VF(d)]},ine=(e,t)=>e.map(r=>{const o=Object.assign({},r);return o.title=uC(r.title,t),"children"in o&&(o.children=ine(o.children,t)),o}),Cqe=e=>[c.useCallback(n=>ine(n,e),[e])],$qe=Ute((e,t)=>{const{_renderTimes:n}=e,{_renderTimes:r}=t;return n!==r}),Eqe=qte((e,t)=>{const{_renderTimes:n}=e,{_renderTimes:r}=t;return n!==r}),Oqe=e=>{const{componentCls:t,lineWidth:n,lineType:r,tableBorderColor:o,tableHeaderBg:i,tablePaddingVertical:a,tablePaddingHorizontal:s,calc:l}=e,u=`${Z(n)} ${r} ${o}`,d=(f,m,h)=>({[`&${t}-${f}`]:{[`> ${t}-container`]:{[`> ${t}-content, > ${t}-body`]:{"\n            > table > tbody > tr > th,\n            > table > tbody > tr > td\n          ":{[`> ${t}-expanded-row-fixed`]:{margin:`${Z(l(m).mul(-1).equal())}
              ${Z(l(l(h).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,[`
            > ${t}-content,
            > ${t}-header,
            > ${t}-body,
            > ${t}-summary
          `]:{"> table":{"\n                > thead > tr > th,\n                > thead > tr > td,\n                > tbody > tr > th,\n                > tbody > tr > td,\n                > tfoot > tr > th,\n                > tfoot > tr > td\n              ":{borderInlineEnd: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:`${Z(l(a).mul(-1).equal())} ${Z(l(l(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":{[`
                > tr${t}-expanded-row,
                > tr${t}-placeholder
              `]:{"> 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 ${Z(n)} 0 ${Z(n)} ${i}`}},[`${t}-bordered ${t}-cell-scrollbar`]:{borderInlineEnd:u}}}},Pqe=e=>{const{componentCls:t}=e;return{[`${t}-wrapper`]:{[`${t}-cell-ellipsis`]:Object.assign(Object.assign({},Bs),{wordBreak:"keep-all",[`
          &${t}-cell-fix-left-last,
          &${t}-cell-fix-right-first
        `]:{overflow:"visible",[`${t}-cell-content`]:{display:"block",overflow:"hidden",textOverflow:"ellipsis"}},[`${t}-column-title`]:{overflow:"hidden",textOverflow:"ellipsis",wordBreak:"keep-all"}})}}},jqe=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}}}}},Iqe=e=>{const{componentCls:t,antCls:n,motionDurationSlow:r,lineWidth:o,paddingXS:i,lineType:a,tableBorderColor:s,tableExpandIconBg:l,tableExpandColumnWidth:u,borderRadius:d,tablePaddingVertical:f,tablePaddingHorizontal:m,tableExpandedRowBg:h,paddingXXS:p,expandIconMarginTop:b,expandIconSize:v,expandIconHalfInner:y,expandIconScale:x,calc:w}=e,C=`${Z(o)} ${a} ${s}`,S=w(p).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({},lT(e)),{position:"relative",float:"left",width:v,height:v,color:"inherit",lineHeight:Z(v),background:l,border:C,borderRadius:d,transform:`scale(${x})`,"&:focus, &:hover, &:active":{borderColor:"currentcolor"},"&::before, &::after":{position:"absolute",background:"currentcolor",transition:`transform ${r} ease-out`,content:'""'},"&::before":{top:y,insetInlineEnd:S,insetInlineStart:S,height:o},"&::after":{top:S,bottom:S,insetInlineStart:y,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:b,marginInlineEnd:i},[`tr${t}-expanded-row`]:{"&, &:hover":{"> th, > td":{background:h}},[`${n}-descriptions-view`]:{display:"flex",table:{flex:"auto",width:"100%"}}},[`${t}-expanded-row-fixed`]:{position:"relative",margin:`${Z(w(f).mul(-1).equal())} ${Z(w(m).mul(-1).equal())}`,padding:`${Z(f)} ${Z(m)}`}}}},_qe=e=>{const{componentCls:t,antCls:n,iconCls:r,tableFilterDropdownWidth:o,tableFilterDropdownSearchWidth:i,paddingXXS:a,paddingXS:s,colorText:l,lineWidth:u,lineType:d,tableBorderColor:f,headerIconColor:m,fontSizeSM:h,tablePaddingHorizontal:p,borderRadius:b,motionDurationSlow:v,colorIcon:y,colorPrimary:x,tableHeaderFilterActiveBg:w,colorTextDisabled:C,tableFilterDropdownBg:S,tableFilterDropdownHeight:$,controlItemBgHover:E,controlItemBgActive:O,boxShadowSecondary:P,filterDropdownMenuBg:j,calc:I}=e,_=`${n}-dropdown`,R=`${t}-filter-dropdown`,N=`${n}-tree`,A=`${Z(u)} ${d} ${f}`;return[{[`${t}-wrapper`]:{[`${t}-filter-column`]:{display:"flex",justifyContent:"space-between"},[`${t}-filter-trigger`]:{position:"relative",display:"flex",alignItems:"center",marginBlock:I(a).mul(-1).equal(),marginInline:`${Z(a)} ${Z(I(p).div(2).mul(-1).equal())}`,padding:`0 ${Z(a)}`,color:m,fontSize:h,borderRadius:b,cursor:"pointer",transition:`all ${v}`,"&:hover":{color:y,background:w},"&.active":{color:x}}}},{[`${n}-dropdown`]:{[R]:Object.assign(Object.assign({},xn(e)),{minWidth:o,backgroundColor:S,borderRadius:b,boxShadow:P,overflow:"hidden",[`${_}-menu`]:{maxHeight:$,overflowX:"hidden",border:0,boxShadow:"none",borderRadius:"unset",backgroundColor:j,"&:empty::after":{display:"block",padding:`${Z(s)} 0`,color:C,fontSize:h,textAlign:"center",content:'"Not Found"'}},[`${R}-tree`]:{paddingBlock:`${Z(s)} 0`,paddingInline:s,[N]:{padding:0},[`${N}-treenode ${N}-node-content-wrapper:hover`]:{backgroundColor:E},[`${N}-treenode-checkbox-checked ${N}-node-content-wrapper`]:{"&, &:hover":{backgroundColor:O}}},[`${R}-search`]:{padding:s,borderBottom:A,"&-input":{input:{minWidth:i},[r]:{color:C}}},[`${R}-checkall`]:{width:"100%",marginBottom:a,marginInlineStart:a},[`${R}-btns`]:{display:"flex",justifyContent:"space-between",padding:`${Z(I(s).sub(u).equal())} ${Z(s)}`,overflow:"hidden",borderTop:A}})}},{[`${n}-dropdown ${R}, ${R}-submenu`]:{[`${n}-checkbox-wrapper + span`]:{paddingInlineStart:s,color:l},"> ul":{maxHeight:"calc(100vh - 130px)",overflowX:"hidden",overflowY:"auto"}}}]},Nqe=e=>{const{componentCls:t,lineWidth:n,colorSplit:r,motionDurationSlow:o,zIndexTableFixed:i,tableBg:a,zIndexTableSticky:s,calc:l}=e,u=r;return{[`${t}-wrapper`]:{[`
        ${t}-cell-fix-left,
        ${t}-cell-fix-right
      `]:{position:"sticky !important",zIndex:i,background:a},[`
        ${t}-cell-fix-left-first::after,
        ${t}-cell-fix-left-last::after
      `]:{position:"absolute",top:0,right:{_skip_check_:!0,value:0},bottom:l(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"},[`
        ${t}-cell-fix-right-first::after,
        ${t}-cell-fix-right-last::after
      `]:{position:"absolute",top:0,bottom:l(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:l(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}`},[`
          ${t}-cell-fix-left-first::after,
          ${t}-cell-fix-left-last::after
        `]:{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}`},[`
          ${t}-cell-fix-right-first::after,
          ${t}-cell-fix-right-last::after
        `]:{boxShadow:`inset -10px 0 8px -8px ${u}`}},[`${t}-fixed-column-gapped`]:{[`
        ${t}-cell-fix-left-first::after,
        ${t}-cell-fix-left-last::after,
        ${t}-cell-fix-right-first::after,
        ${t}-cell-fix-right-last::after
      `]:{boxShadow:"none"}}}}},Rqe=e=>{const{componentCls:t,antCls:n,margin:r}=e;return{[`${t}-wrapper ${t}-pagination${n}-pagination`]:{margin:`${Z(r)} 0`}}},Tqe=e=>{const{componentCls:t,tableRadius:n}=e;return{[`${t}-wrapper`]:{[t]:{[`${t}-title, ${t}-header`]:{borderRadius:`${Z(n)} ${Z(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 ${Z(n)} ${Z(n)}`}}}}},Mqe=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"}}}}},kqe=e=>{const{componentCls:t,antCls:n,iconCls:r,fontSizeIcon:o,padding:i,paddingXS:a,headerIconColor:s,headerIconHoverColor:l,tableSelectionColumnWidth:u,tableSelectedRowBg:d,tableSelectedRowHoverBg:f,tableRowHoverBg:m,tablePaddingHorizontal:h,calc:p}=e;return{[`${t}-wrapper`]:{[`${t}-selection-col`]:{width:u,[`&${t}-selection-col-with-dropdown`]:{width:p(u).add(o).add(p(i).div(4)).equal()}},[`${t}-bordered ${t}-selection-col`]:{width:p(u).add(p(a).mul(2)).equal(),[`&${t}-selection-col-with-dropdown`]:{width:p(u).add(o).add(p(i).div(4)).add(p(a).mul(2)).equal()}},[`
        table tr th${t}-selection-column,
        table tr td${t}-selection-column,
        ${t}-selection-column
      `]:{paddingInlineEnd:e.paddingXS,paddingInlineStart:e.paddingXS,textAlign:"center",[`${n}-radio-wrapper`]:{marginInlineEnd:0}},[`table tr th${t}-selection-column${t}-cell-fix-left`]:{zIndex:p(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:Z(p(h).div(4).equal()),[r]:{color:s,fontSize:o,verticalAlign:"baseline","&:hover":{color:l}}},[`${t}-tbody`]:{[`${t}-row`]:{[`&${t}-row-selected`]:{[`> ${t}-cell`]:{background:d,"&-row-hover":{background:f}}},[`> ${t}-cell-row-hover`]:{background:m}}}}}},Aqe=e=>{const{componentCls:t,tableExpandColumnWidth:n,calc:r}=e,o=(i,a,s,l)=>({[`${t}${t}-${i}`]:{fontSize:l,[`
        ${t}-title,
        ${t}-footer,
        ${t}-cell,
        ${t}-thead > tr > th,
        ${t}-tbody > tr > th,
        ${t}-tbody > tr > td,
        tfoot > tr > th,
        tfoot > tr > td
      `]:{padding:`${Z(a)} ${Z(s)}`},[`${t}-filter-trigger`]:{marginInlineEnd:Z(r(s).div(2).mul(-1).equal())},[`${t}-expanded-row-fixed`]:{margin:`${Z(r(a).mul(-1).equal())} ${Z(r(s).mul(-1).equal())}`},[`${t}-tbody`]:{[`${t}-wrapper:only-child ${t}`]:{marginBlock:Z(r(a).mul(-1).equal()),marginInline:`${Z(r(n).sub(s).equal())} ${Z(r(s).mul(-1).equal())}`}},[`${t}-selection-extra`]:{paddingInlineStart:Z(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))}},Dqe=e=>{const{componentCls:t,marginXXS:n,fontSizeIcon:r,headerIconColor:o,headerIconHoverColor:i}=e;return{[`${t}-wrapper`]:{[`${t}-thead th${t}-column-has-sorters`]:{outline:"none",cursor:"pointer",transition:`all ${e.motionDurationSlow}, left 0s`,"&:hover":{background:e.tableHeaderSortHoverBg,"&::before":{backgroundColor:"transparent !important"}},"&:focus-visible":{color:e.colorPrimary},[`
          &${t}-cell-fix-left:hover,
          &${t}-cell-fix-right:hover
        `]:{background:e.tableFixedHeaderSortActiveBg}},[`${t}-thead th${t}-column-sort`]:{background:e.tableHeaderSortBg,"&::before":{backgroundColor:"transparent !important"}},[`td${t}-column-sort`]:{background:e.tableBodySortBg},[`${t}-column-title`]:{position:"relative",zIndex:1,flex:1,minWidth:0},[`${t}-column-sorters`]:{display:"flex",flex:"auto",alignItems:"center",justifyContent:"space-between","&::after":{position:"absolute",inset:0,width:"100%",height:"100%",content:'""'}},[`${t}-column-sorters-tooltip-target-sorter`]:{"&::after":{content:"none"}},[`${t}-column-sorter`]:{marginInlineStart:n,color:o,fontSize:0,transition:`color ${e.motionDurationSlow}`,"&-inner":{display:"inline-flex",flexDirection:"column",alignItems:"center"},"&-up, &-down":{fontSize:r,"&.active":{color:e.colorPrimary}},[`${t}-column-sorter-up + ${t}-column-sorter-down`]:{marginTop:"-0.3em"}},[`${t}-column-sorters:hover ${t}-column-sorter`]:{color:i}}}},Lqe=e=>{const{componentCls:t,opacityLoading:n,tableScrollThumbBg:r,tableScrollThumbBgHover:o,tableScrollThumbSize:i,tableScrollBg:a,zIndexTableSticky:s,stickyScrollBarBorderRadius:l,lineWidth:u,lineType:d,tableBorderColor:f}=e,m=`${Z(u)} ${d} ${f}`;return{[`${t}-wrapper`]:{[`${t}-sticky`]:{"&-holder":{position:"sticky",zIndex:s,background:e.colorBgContainer},"&-scroll":{position:"sticky",bottom:0,height:`${Z(i)} !important`,zIndex:s,display:"flex",alignItems:"center",background:a,borderTop:m,opacity:n,"&:hover":{transformOrigin:"center bottom"},"&-bar":{height:i,backgroundColor:r,borderRadius:l,transition:`all ${e.motionDurationSlow}, transform 0s`,position:"absolute",bottom:0,"&:hover, &-active":{backgroundColor:o}}}}}}},WF=e=>{const{componentCls:t,lineWidth:n,tableBorderColor:r,calc:o}=e,i=`${Z(n)} ${e.lineType} ${r}`;return{[`${t}-wrapper`]:{[`${t}-summary`]:{position:"relative",zIndex:e.zIndexTableFixed,background:e.tableBg,"> tr":{"> th, > td":{borderBottom:i}}},[`div${t}-summary`]:{boxShadow:`0 ${Z(o(n).mul(-1).equal())} 0 ${r}`}}}},zqe=e=>{const{componentCls:t,motionDurationMid:n,lineWidth:r,lineType:o,tableBorderColor:i,calc:a}=e,s=`${Z(r)} ${o} ${i}`,l=`${t}-expanded-row-cell`;return{[`${t}-wrapper`]:{[`${t}-tbody-virtual`]:{[`${t}-tbody-virtual-holder-inner`]:{[`
            & > ${t}-row, 
            & > div:not(${t}-row) > ${t}-row
          `]:{display:"flex",boxSizing:"border-box",width:"100%"}},[`${t}-cell`]:{borderBottom:s,transition:`background ${n}`},[`${t}-expanded-row`]:{[`${l}${l}-fixed`]:{position:"sticky",insetInlineStart:0,overflow:"hidden",width:`calc(var(--virtual-width) - ${Z(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:a(r).mul(-1).equal(),borderInlineStart:s}}},[`&${t}-virtual`]:{[`${t}-placeholder ${t}-cell`]:{borderInlineEnd:s,borderBottom:s}}}}}},Fqe=e=>{const{componentCls:t,fontWeightStrong:n,tablePaddingVertical:r,tablePaddingHorizontal:o,tableExpandColumnWidth:i,lineWidth:a,lineType:s,tableBorderColor:l,tableFontSize:u,tableBg:d,tableRadius:f,tableHeaderTextColor:m,motionDurationMid:h,tableHeaderBg:p,tableHeaderCellSplitColor:b,tableFooterTextColor:v,tableFooterBg:y,calc:x}=e,w=`${Z(a)} ${s} ${l}`;return{[`${t}-wrapper`]:Object.assign(Object.assign({clear:"both",maxWidth:"100%","--rc-virtual-list-scrollbar-bg":e.tableScrollBg},hl()),{[t]:Object.assign(Object.assign({},xn(e)),{fontSize:u,background:d,borderRadius:`${Z(f)} ${Z(f)} 0 0`,scrollbarColor:`${e.tableScrollThumbBg} ${e.tableScrollBg}`}),table:{width:"100%",textAlign:"start",borderRadius:`${Z(f)} ${Z(f)} 0 0`,borderCollapse:"separate",borderSpacing:0},[`
          ${t}-cell,
          ${t}-thead > tr > th,
          ${t}-tbody > tr > th,
          ${t}-tbody > tr > td,
          tfoot > tr > th,
          tfoot > tr > td
        `]:{position:"relative",padding:`${Z(r)} ${Z(o)}`,overflowWrap:"break-word"},[`${t}-title`]:{padding:`${Z(r)} ${Z(o)}`},[`${t}-thead`]:{"\n          > tr > th,\n          > tr > td\n        ":{position:"relative",color:m,fontWeight:n,textAlign:"start",background:p,borderBottom:w,transition:`background ${h} 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:b,transform:"translateY(-50%)",transition:`background-color ${h}`,content:'""'}},"> tr:not(:last-child) > th[colspan]":{borderBottom:0}},[`${t}-tbody`]:{"> tr":{"> th, > td":{transition:`background ${h}, border-color ${h}`,borderBottom:w,[`
              > ${t}-wrapper:only-child,
              > ${t}-expanded-row-fixed > ${t}-wrapper:only-child
            `]:{[t]:{marginBlock:Z(x(r).mul(-1).equal()),marginInline:`${Z(x(i).sub(o).equal())}
                ${Z(x(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:p,borderBottom:w,transition:`background ${h} ease`},[`& > ${t}-measure-cell`]:{paddingBlock:"0 !important",borderBlock:"0 !important",[`${t}-measure-cell-content`]:{height:0,overflow:"hidden",pointerEvents:"none"}}}},[`${t}-footer`]:{padding:`${Z(r)} ${Z(o)}`,color:v,background:y}})}},Bqe=e=>{const{colorFillAlter:t,colorBgContainer:n,colorTextHeading:r,colorFillSecondary:o,colorFillContent:i,controlItemBgActive:a,controlItemBgActiveHover:s,padding:l,paddingSM:u,paddingXS:d,colorBorderSecondary:f,borderRadiusLG:m,controlHeight:h,colorTextPlaceholder:p,fontSize:b,fontSizeSM:v,lineHeight:y,lineWidth:x,colorIcon:w,colorIconHover:C,opacityLoading:S,controlInteractiveSize:$}=e,E=new On(o).onBackground(n).toHexString(),O=new On(i).onBackground(n).toHexString(),P=new On(t).onBackground(n).toHexString(),j=new On(w),I=new On(C),_=$/2-x,R=_*2+x*3;return{headerBg:P,headerColor:r,headerSortActiveBg:E,headerSortHoverBg:O,bodySortBg:P,rowHoverBg:P,rowSelectedBg:a,rowSelectedHoverBg:s,rowExpandedBg:t,cellPaddingBlock:l,cellPaddingInline:l,cellPaddingBlockMD:u,cellPaddingInlineMD:d,cellPaddingBlockSM:d,cellPaddingInlineSM:d,borderColor:f,headerBorderRadius:m,footerBg:P,footerColor:r,cellFontSize:b,cellFontSizeMD:b,cellFontSizeSM:b,headerSplitColor:f,fixedHeaderSortActiveBg:E,headerFilterHoverBg:i,filterDropdownMenuBg:n,filterDropdownBg:n,expandIconBg:n,selectionColumnWidth:h,stickyScrollBarBg:p,stickyScrollBarBorderRadius:100,expandIconMarginTop:(b*y-x*3)/2-Math.ceil((v*1.4-x*3)/2),headerIconColor:j.clone().setA(j.a*S).toRgbString(),headerIconHoverColor:I.clone().setA(I.a*S).toRgbString(),expandIconHalfInner:_,expandIconSize:R,expandIconScale:$/R}},UF=2,Hqe=vn("Table",e=>{const{colorTextHeading:t,colorSplit:n,colorBgContainer:r,controlInteractiveSize:o,headerBg:i,headerColor:a,headerSortActiveBg:s,headerSortHoverBg:l,bodySortBg:u,rowHoverBg:d,rowSelectedBg:f,rowSelectedHoverBg:m,rowExpandedBg:h,cellPaddingBlock:p,cellPaddingInline:b,cellPaddingBlockMD:v,cellPaddingInlineMD:y,cellPaddingBlockSM:x,cellPaddingInlineSM:w,borderColor:C,footerBg:S,footerColor:$,headerBorderRadius:E,cellFontSize:O,cellFontSizeMD:P,cellFontSizeSM:j,headerSplitColor:I,fixedHeaderSortActiveBg:_,headerFilterHoverBg:R,filterDropdownBg:N,expandIconBg:A,selectionColumnWidth:M,stickyScrollBarBg:T,calc:k}=e,D=cn(e,{tableFontSize:O,tableBg:r,tableRadius:E,tablePaddingVertical:p,tablePaddingHorizontal:b,tablePaddingVerticalMiddle:v,tablePaddingHorizontalMiddle:y,tablePaddingVerticalSmall:x,tablePaddingHorizontalSmall:w,tableBorderColor:C,tableHeaderTextColor:a,tableHeaderBg:i,tableFooterTextColor:$,tableFooterBg:S,tableHeaderCellSplitColor:I,tableHeaderSortBg:s,tableHeaderSortHoverBg:l,tableBodySortBg:u,tableFixedHeaderSortActiveBg:_,tableHeaderFilterActiveBg:R,tableFilterDropdownBg:N,tableRowHoverBg:d,tableSelectedRowBg:f,tableSelectedRowHoverBg:m,zIndexTableFixed:UF,zIndexTableSticky:k(UF).add(1).equal({unit:!1}),tableFontSizeMiddle:P,tableFontSizeSmall:j,tableSelectionColumnWidth:M,tableExpandIconBg:A,tableExpandColumnWidth:k(o).add(k(e.padding).mul(2)).equal(),tableExpandedRowBg:h,tableFilterDropdownWidth:120,tableFilterDropdownHeight:264,tableFilterDropdownSearchWidth:140,tableScrollThumbSize:8,tableScrollThumbBg:T,tableScrollThumbBgHover:t,tableScrollBg:n});return[Fqe(D),Rqe(D),WF(D),Dqe(D),_qe(D),Oqe(D),Tqe(D),Iqe(D),WF(D),jqe(D),kqe(D),Nqe(D),Lqe(D),Pqe(D),Aqe(D),Mqe(D),zqe(D)]},Bqe,{unitless:{expandIconScale:!0}}),KF=[],Vqe=(e,t)=>{var n,r;const{prefixCls:o,className:i,rootClassName:a,style:s,size:l,bordered:u,dropdownPrefixCls:d,dataSource:f,pagination:m,rowSelection:h,rowKey:p="key",rowClassName:b,columns:v,children:y,childrenColumnName:x,onChange:w,getPopupContainer:C,loading:S,expandIcon:$,expandable:E,expandedRowRender:O,expandIconColumnIndex:P,indentSize:j,scroll:I,sortDirections:_,locale:R,showSorterTooltip:N={target:"full-header"},virtual:A}=e;pu();const M=c.useMemo(()=>v||y3(y),[v,y]),T=c.useMemo(()=>M.some(dt=>dt.responsive),[M]),k=Ch(T),D=c.useMemo(()=>{const dt=new Set(Object.keys(k).filter(qe=>k[qe]));return M.filter(qe=>!qe.responsive||qe.responsive.some(ht=>dt.has(ht)))},[M,k]),L=Xn(e,["className","style","columns"]),{locale:B=cs,direction:H,table:F,renderEmpty:W,getPrefixCls:q,getPopupContainer:G}=c.useContext(kt),te=go(l),ee=Object.assign(Object.assign({},B.Table),R),z=f||KF,ne=q("table",o),X=q("dropdown",d),[,U]=Xo(),le=Hr(ne),[se,ae,re]=Hqe(ne,le),fe=Object.assign(Object.assign({childrenColumnName:x,expandIconColumnIndex:P},E),{expandIcon:(n=E==null?void 0:E.expandIcon)!==null&&n!==void 0?n:(r=F==null?void 0:F.expandable)===null||r===void 0?void 0:r.expandIcon}),{childrenColumnName:ye="children"}=fe,Pe=c.useMemo(()=>z.some(dt=>dt==null?void 0:dt[ye])?"nest":O||E!=null&&E.expandedRowRender?"row":null,[z]),Oe={body:c.useRef(null)},V=uKe(ne),J=c.useRef(null),oe=c.useRef(null);h3e(t,()=>Object.assign(Object.assign({},oe.current),{nativeElement:J.current}));const de=c.useMemo(()=>typeof p=="function"?p:dt=>dt==null?void 0:dt[p],[p]),[be]=dqe(z,ye,de),ge={},ie=(dt,qe,ht=!1)=>{var zt,Vt,Nt,ft;const ot=Object.assign(Object.assign({},ge),dt);ht&&((zt=ge.resetPagination)===null||zt===void 0||zt.call(ge),!((Vt=ot.pagination)===null||Vt===void 0)&&Vt.current&&(ot.pagination.current=1),m&&((Nt=m.onChange)===null||Nt===void 0||Nt.call(m,1,(ft=ot.pagination)===null||ft===void 0?void 0:ft.pageSize))),I&&I.scrollToFirstRowOnChange!==!1&&Oe.body.current&&YTe(0,{getContainer:()=>Oe.body.current}),w==null||w(ot.pagination,ot.filters,ot.sorter,{currentDataSource:Vj(Uj(z,ot.sorterStates,ye),ot.filterStates,ye),action:qe})},he=(dt,qe)=>{ie({sorter:dt,sorterStates:qe},"sort",!1)},[xe,Re,Ce,pe]=Sqe({prefixCls:ne,mergedColumns:D,onSorterChange:he,sortDirections:_||["ascend","descend"],tableLocale:ee,showSorterTooltip:N}),_e=c.useMemo(()=>Uj(z,Re,ye),[z,Re]);ge.sorter=pe(),ge.sorterStates=Re;const we=(dt,qe)=>{ie({filters:dt,filterStates:qe},"filter",!0)},[$e,ve,me]=uqe({prefixCls:ne,locale:ee,dropdownPrefixCls:X,mergedColumns:D,onFilterChange:we,getPopupContainer:C||G,rootClassName:Q(a,le)}),Se=Vj(_e,ve,ye);ge.filters=me,ge.filterStates=ve;const De=c.useMemo(()=>{const dt={};return Object.keys(me).forEach(qe=>{me[qe]!==null&&(dt[qe]=me[qe])}),Object.assign(Object.assign({},Ce),{filters:dt})},[Ce,me]),[et]=Cqe(De),rt=(dt,qe)=>{ie({pagination:Object.assign(Object.assign({},ge.pagination),{current:dt,pageSize:qe})},"paginate")},[Me,We]=hqe(Se.length,rt,m);ge.pagination=m===!1?{}:mqe(Me,m),ge.resetPagination=We;const Qe=c.useMemo(()=>{if(m===!1||!Me.pageSize)return Se;const{current:dt=1,total:qe,pageSize:ht=rne}=Me;return Se.length<qe?Se.length>ht?Se.slice((dt-1)*ht,dt*ht):Se:Se.slice((dt-1)*ht,dt*ht)},[!!m,Se,Me==null?void 0:Me.current,Me==null?void 0:Me.pageSize,Me==null?void 0:Me.total]),[Ge,tt]=lKe({prefixCls:ne,data:Se,pageData:Qe,getRowKey:de,getRecordByKey:be,expandType:Pe,childrenColumnName:ye,locale:ee,getPopupContainer:C||G},h),ke=(dt,qe,ht)=>{let zt;return typeof b=="function"?zt=Q(b(dt,qe,ht)):zt=Q(b),Q({[`${ne}-row-selected`]:tt.has(de(dt,qe))},zt)};fe.__PARENT_RENDER_ICON__=fe.expandIcon,fe.expandIcon=fe.expandIcon||$||cKe(ee),Pe==="nest"&&fe.expandIconColumnIndex===void 0?fe.expandIconColumnIndex=h?1:0:fe.expandIconColumnIndex>0&&h&&(fe.expandIconColumnIndex-=1),typeof fe.indentSize!="number"&&(fe.indentSize=typeof j=="number"?j:15);const xt=c.useCallback(dt=>et(Ge($e(xe(dt)))),[xe,$e,Ge]),Ze=()=>{if(m===!1||!(Me!=null&&Me.total))return{};const dt=()=>Me.size||(te==="small"||te==="middle"?"small":void 0),qe=yt=>{const Ye=yt==="left"?"start":yt==="right"?"end":yt;return c.createElement(bte,Object.assign({},Me,{align:Me.align||Ye,className:Q(`${ne}-pagination`,Me.className),size:dt()}))},ht=H==="rtl"?"left":"right",zt=Me.position;if(zt===null||!Array.isArray(zt))return{bottom:qe(ht)};const Vt=zt.find(yt=>typeof yt=="string"&&yt.toLowerCase().includes("top")),Nt=zt.find(yt=>typeof yt=="string"&&yt.toLowerCase().includes("bottom")),ft=zt.every(yt=>`${yt}`=="none"),ot=Vt?Vt.toLowerCase().replace("top",""):"",Ft=Nt?Nt.toLowerCase().replace("bottom",""):"",Ue=!Vt&&!Nt&&!ft,Je=()=>ot?qe(ot):void 0,vt=()=>{if(Ft)return qe(Ft);if(Ue)return qe(ht)};return{top:Je(),bottom:vt()}},nt=c.useMemo(()=>typeof S=="boolean"?{spinning:S}:typeof S=="object"&&S!==null?Object.assign({spinning:!0},S):void 0,[S]),Be=Q(re,le,`${ne}-wrapper`,F==null?void 0:F.className,{[`${ne}-wrapper-rtl`]:H==="rtl"},i,a,ae),Le=Object.assign(Object.assign({},F==null?void 0:F.style),s),Ie=c.useMemo(()=>nt!=null&&nt.spinning&&z===KF?null:typeof(R==null?void 0:R.emptyText)<"u"?R.emptyText:(W==null?void 0:W("Table"))||c.createElement(NT,{componentName:"Table"}),[nt==null?void 0:nt.spinning,z,R==null?void 0:R.emptyText,W]),Te=A?Eqe:$qe,Xe={},lt=c.useMemo(()=>{const{fontSize:dt,lineHeight:qe,lineWidth:ht,padding:zt,paddingXS:Vt,paddingSM:Nt}=U,ft=Math.floor(dt*qe);switch(te){case"middle":return Nt*2+ft+ht;case"small":return Vt*2+ft+ht;default:return zt*2+ft+ht}},[U,te]);A&&(Xe.listItemHeight=lt);const{top:mt,bottom:Ot}=Ze();return se(c.createElement("div",{ref:J,className:Be,style:Le},c.createElement(m3,Object.assign({spinning:!1},nt),mt,c.createElement(Te,Object.assign({},Xe,L,{ref:oe,columns:D,direction:H,expandable:fe,prefixCls:ne,className:Q({[`${ne}-middle`]:te==="middle",[`${ne}-small`]:te==="small",[`${ne}-bordered`]:u,[`${ne}-empty`]:z.length===0},re,le,ae),data:Qe,rowKey:de,rowClassName:ke,emptyText:Ie,internalHooks:d0,internalRefs:Oe,transformColumns:xt,getContainerWidth:V,measureRowRender:dt=>c.createElement(Ma,{getPopupContainer:qe=>qe},dt)})),Ot)))},Wqe=c.forwardRef(Vqe),Uqe=(e,t)=>{const n=c.useRef(0);return n.current+=1,c.createElement(Wqe,Object.assign({},e,{ref:t,_renderTimes:n.current}))},Si=c.forwardRef(Uqe);Si.SELECTION_COLUMN=bc;Si.EXPAND_COLUMN=Ec;Si.SELECTION_ALL=Lj;Si.SELECTION_INVERT=zj;Si.SELECTION_NONE=Fj;Si.Column=JUe;Si.ColumnGroup=QUe;Si.Summary=kte;const Kqe=e=>{const{paddingXXS:t,lineWidth:n,tagPaddingHorizontal:r,componentCls:o,calc:i}=e,a=i(r).sub(n).equal(),s=i(t).sub(n).equal();return{[o]:Object.assign(Object.assign({},xn(e)),{display:"inline-block",height:"auto",marginInlineEnd:e.marginXS,paddingInline:a,fontSize:e.tagFontSize,lineHeight:e.tagLineHeight,whiteSpace:"nowrap",background:e.defaultBg,border:`${Z(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:a}}),[`${o}-borderless`]:{borderColor:"transparent",background:e.tagBorderlessBg}}},E3=e=>{const{lineWidth:t,fontSizeIcon:n,calc:r}=e,o=e.fontSizeSM;return cn(e,{tagFontSize:o,tagLineHeight:Z(r(e.lineHeightSM).mul(o).equal()),tagIconSize:r(n).sub(r(t).mul(2)).equal(),tagPaddingHorizontal:8,tagBorderlessBg:e.defaultBg})},O3=e=>({defaultBg:new On(e.colorFillQuaternary).onBackground(e.colorBgContainer).toHexString(),defaultColor:e.colorText}),ane=vn("Tag",e=>{const t=E3(e);return Kqe(t)},O3);var qqe=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 Gqe=c.forwardRef((e,t)=>{const{prefixCls:n,style:r,className:o,checked:i,children:a,icon:s,onChange:l,onClick:u}=e,d=qqe(e,["prefixCls","style","className","checked","children","icon","onChange","onClick"]),{getPrefixCls:f,tag:m}=c.useContext(kt),h=w=>{l==null||l(!i),u==null||u(w)},p=f("tag",n),[b,v,y]=ane(p),x=Q(p,`${p}-checkable`,{[`${p}-checkable-checked`]:i},m==null?void 0:m.className,o,v,y);return b(c.createElement("span",Object.assign({},d,{ref:t,style:Object.assign(Object.assign({},r),m==null?void 0:m.style),className:x,onClick:h}),s,c.createElement("span",null,a)))}),Xqe=e=>yS(e,(t,{textColor:n,lightBorderColor:r,lightColor:o,darkColor:i})=>({[`${e.componentCls}${e.componentCls}-${t}`]:{color:n,background:o,borderColor:r,"&-inverse":{color:e.colorTextLightSolid,background:i,borderColor:i},[`&${e.componentCls}-borderless`]:{borderColor:"transparent"}}})),Yqe=vh(["Tag","preset"],e=>{const t=E3(e);return Xqe(t)},O3);function Zqe(e){return typeof e!="string"?e:e.charAt(0).toUpperCase()+e.slice(1)}const Cy=(e,t,n)=>{const r=Zqe(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"}}}},Jqe=vh(["Tag","status"],e=>{const t=E3(e);return[Cy(t,"success","Success"),Cy(t,"processing","Info"),Cy(t,"error","Error"),Cy(t,"warning","Warning")]},O3);var Qqe=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 eGe=c.forwardRef((e,t)=>{const{prefixCls:n,className:r,rootClassName:o,style:i,children:a,icon:s,color:l,onClose:u,bordered:d=!0,visible:f}=e,m=Qqe(e,["prefixCls","className","rootClassName","style","children","icon","color","onClose","bordered","visible"]),{getPrefixCls:h,direction:p,tag:b}=c.useContext(kt),[v,y]=c.useState(!0),x=Xn(m,["closeIcon","closable"]);c.useEffect(()=>{f!==void 0&&y(f)},[f]);const w=WS(l),C=Y5e(l),S=w||C,$=Object.assign(Object.assign({backgroundColor:l&&!S?l:void 0},b==null?void 0:b.style),i),E=h("tag",n),[O,P,j]=ane(E),I=Q(E,b==null?void 0:b.className,{[`${E}-${l}`]:S,[`${E}-has-color`]:l&&!S,[`${E}-hidden`]:!v,[`${E}-rtl`]:p==="rtl",[`${E}-borderless`]:!d},r,o,P,j),_=k=>{k.stopPropagation(),u==null||u(k),!k.defaultPrevented&&y(!1)},[,R]=hT(Vm(e),Vm(b),{closable:!1,closeIconRender:k=>{const D=c.createElement("span",{className:`${E}-close-icon`,onClick:_},k);return fT(k,D,L=>({onClick:B=>{var H;(H=L==null?void 0:L.onClick)===null||H===void 0||H.call(L,B),_(B)},className:Q(L==null?void 0:L.className,`${E}-close-icon`)}))}}),N=typeof m.onClick=="function"||a&&a.type==="a",A=s||null,M=A?c.createElement(c.Fragment,null,A,a&&c.createElement("span",null,a)):a,T=c.createElement("span",Object.assign({},x,{ref:t,className:I,style:$}),M,R,w&&c.createElement(Yqe,{key:"preset",prefixCls:E}),C&&c.createElement(Jqe,{key:"status",prefixCls:E}));return O(N?c.createElement(Jv,{component:"Tag"},T):T)}),zn=eGe;zn.CheckableTag=Gqe;const tGe=e=>{const t=e!=null&&e.algorithm?Yx(e.algorithm):oT,n=Object.assign(Object.assign({},Bm),e==null?void 0:e.token);return SY(n,{override:e==null?void 0:e.token},t,sT)};function nGe(e){const{sizeUnit:t,sizeStep:n}=e,r=n-2;return{sizeXXL:t*(r+10),sizeXL:t*(r+6),sizeLG:t*(r+2),sizeMD:t*(r+2),sizeMS:t*(r+1),size:t*r,sizeSM:t*r,sizeXS:t*(r-1),sizeXXS:t*(r-1)}}const rGe=(e,t)=>{const n=t??gS(e),r=n.fontSizeSM,o=n.controlHeight-4;return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},n),nGe(t??e)),qY(r)),{controlHeight:o}),KY(Object.assign(Object.assign({},n),{controlHeight:o})))},Ba=(e,t)=>new On(e).setA(t).toRgbString(),wf=(e,t)=>new On(e).lighten(t).toHexString(),oGe=e=>{const t=_d(e,{theme:"dark"});return{1:t[0],2:t[1],3:t[2],4:t[3],5:t[6],6:t[5],7:t[4],8:t[6],9:t[5],10:t[4]}},iGe=(e,t)=>{const n=e||"#000",r=t||"#fff";return{colorBgBase:n,colorTextBase:r,colorText:Ba(r,.85),colorTextSecondary:Ba(r,.65),colorTextTertiary:Ba(r,.45),colorTextQuaternary:Ba(r,.25),colorFill:Ba(r,.18),colorFillSecondary:Ba(r,.12),colorFillTertiary:Ba(r,.08),colorFillQuaternary:Ba(r,.04),colorBgSolid:Ba(r,.95),colorBgSolidHover:Ba(r,1),colorBgSolidActive:Ba(r,.9),colorBgElevated:wf(n,12),colorBgContainer:wf(n,8),colorBgLayout:wf(n,0),colorBgSpotlight:wf(n,26),colorBgBlur:Ba(r,.04),colorBorder:wf(n,26),colorBorderSecondary:wf(n,19)}},aGe=(e,t)=>{const n=Object.keys(rT).map(i=>{const a=_d(e[i],{theme:"dark"});return Array.from({length:10},()=>1).reduce((s,l,u)=>(s[`${i}-${u+1}`]=a[u],s[`${i}${u+1}`]=a[u],s),{})}).reduce((i,a)=>(i=Object.assign(Object.assign({},i),a),i),{}),r=t??gS(e),o=UY(e,{generateColorPalettes:oGe,generateNeutralColorPalettes:iGe});return Object.assign(Object.assign(Object.assign(Object.assign({},r),n),o),{colorPrimaryBg:o.colorPrimaryBorder,colorPrimaryBgHover:o.colorPrimaryBorderHover})};function sGe(){const[e,t,n]=Xo();return{theme:e,token:t,hashId:n}}const lGe={defaultSeed:Hg.token,useToken:sGe,defaultAlgorithm:gS,darkAlgorithm:aGe,compactAlgorithm:rGe,getDesignToken:tGe,defaultConfig:Hg,_internalContext:iT};var sne={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"},cGe=function(t,n){return c.createElement(yn,Ee({},t,{ref:n,icon:sne}))},uGe=c.forwardRef(cGe),lne={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"},dGe=function(t,n){return c.createElement(yn,Ee({},t,{ref:n,icon:lne}))},fGe=c.forwardRef(dGe),mGe={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"},hGe=function(t,n){return c.createElement(yn,Ee({},t,{ref:n,icon:mGe}))},pGe=c.forwardRef(hGe);const gGe=(e,t,n,r)=>{const{titleMarginBottom:o,fontWeightStrong:i}=r;return{marginBottom:o,color:n,fontWeight:i,fontSize:e,lineHeight:t}},vGe=e=>{const t=[1,2,3,4,5],n={};return t.forEach(r=>{n[`
      h${r}&,
      div&-h${r},
      div&-h${r} > textarea,
      h${r}
    `]=gGe(e[`fontSizeHeading${r}`],e[`lineHeightHeading${r}`],e.colorTextHeading,e)}),n},yGe=e=>{const{componentCls:t}=e;return{"a&, a":Object.assign(Object.assign({},lT(e)),{userSelect:"text",[`&[disabled], &${t}-disabled`]:{color:e.colorTextDisabled,cursor:"not-allowed","&:active, &:hover":{color:e.colorTextDisabled},"&:active":{pointerEvents:"none"}}})}},bGe=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:Qx[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}}),xGe=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"}}}},wGe=e=>({[`${e.componentCls}-copy-success`]:{"\n    &,\n    &:hover,\n    &:focus":{color:e.colorSuccess}},[`${e.componentCls}-copy-icon-only`]:{marginInlineStart:0}}),SGe=()=>({"\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"}}),CGe=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"}},vGe(e)),{[`
      & + h1${t},
      & + h2${t},
      & + h3${t},
      & + h4${t},
      & + h5${t}
      `]:{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}}}),bGe(e)),yGe(e)),{[`
        ${t}-expand,
        ${t}-collapse,
        ${t}-edit,
        ${t}-copy
      `]:Object.assign(Object.assign({},lT(e)),{marginInlineStart:e.marginXXS})}),xGe(e)),wGe(e)),SGe()),{"&-rtl":{direction:"rtl"}})}},$Ge=()=>({titleMarginTop:"1.2em",titleMarginBottom:"0.5em"}),cne=vn("Typography",CGe,$Ge),EGe=e=>{const{prefixCls:t,"aria-label":n,className:r,style:o,direction:i,maxLength:a,autoSize:s=!0,value:l,onSave:u,onCancel:d,onEnd:f,component:m,enterIcon:h=c.createElement(pGe,null)}=e,p=c.useRef(null),b=c.useRef(!1),v=c.useRef(null),[y,x]=c.useState(l);c.useEffect(()=>{x(l)},[l]),c.useEffect(()=>{var N;if(!((N=p.current)===null||N===void 0)&&N.resizableTextArea){const{textArea:A}=p.current.resizableTextArea;A.focus();const{length:M}=A.value;A.setSelectionRange(M,M)}},[]);const w=({target:N})=>{x(N.value.replace(/[\n\r]/g,""))},C=()=>{b.current=!0},S=()=>{b.current=!1},$=({keyCode:N})=>{b.current||(v.current=N)},E=()=>{u(y.trim())},O=({keyCode:N,ctrlKey:A,altKey:M,metaKey:T,shiftKey:k})=>{v.current!==N||b.current||A||M||T||k||(N===jt.ENTER?(E(),f==null||f()):N===jt.ESC&&d())},P=()=>{E()},[j,I,_]=cne(t),R=Q(t,`${t}-edit-content`,{[`${t}-rtl`]:i==="rtl",[`${t}-${m}`]:!!m},r,I,_);return j(c.createElement("div",{className:R,style:o},c.createElement(pte,{ref:p,maxLength:a,value:y,onChange:w,onKeyDown:$,onKeyUp:O,onCompositionStart:C,onCompositionEnd:S,onBlur:P,"aria-label":n,rows:1,autoSize:s}),h!==null?qr(h,{className:`${t}-edit-content-confirm`}):null))};var OGe=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()}},PGe=OGe,qF={"text/plain":"Text","text/html":"Url",default:"Text"},jGe="Copy to clipboard: #{key}, Enter";function IGe(e){var t=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return e.replace(/#{\s*key\s*}/g,t)}function _Ge(e,t){var n,r,o,i,a,s,l=!1;t||(t={}),n=t.debug||!1;try{o=PGe(),i=document.createRange(),a=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=qF[t.format]||qF.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),i.selectNodeContents(s),a.addRange(i);var u=document.execCommand("copy");if(!u)throw new Error("copy command was unsuccessful");l=!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),l=!0}catch(f){n&&console.error("unable to copy using clipboardData: ",f),n&&console.error("falling back to prompt"),r=IGe("message"in t?t.message:jGe),window.prompt(r,e)}}finally{a&&(typeof a.removeRange=="function"?a.removeRange(i):a.removeAllRanges()),s&&document.body.removeChild(s),o()}return l}var NGe=_Ge;const RGe=ho(NGe);var TGe=function(e,t,n,r){function o(i){return i instanceof n?i:new n(function(a){a(i)})}return new(n||(n=Promise))(function(i,a){function s(d){try{u(r.next(d))}catch(f){a(f)}}function l(d){try{u(r.throw(d))}catch(f){a(f)}}function u(d){d.done?i(d.value):o(d.value).then(s,l)}u((r=r.apply(e,t||[])).next())})};const MGe=({copyConfig:e,children:t})=>{const[n,r]=c.useState(!1),[o,i]=c.useState(!1),a=c.useRef(null),s=()=>{a.current&&clearTimeout(a.current)},l={};e.format&&(l.format=e.format),c.useEffect(()=>s,[]);const u=fn(d=>TGe(void 0,void 0,void 0,function*(){var f;d==null||d.preventDefault(),d==null||d.stopPropagation(),i(!0);try{const m=typeof e.text=="function"?yield e.text():e.text;RGe(m||NVe(t,!0).join("")||"",l),i(!1),r(!0),s(),a.current=setTimeout(()=>{r(!1)},3e3),(f=e.onCopy)===null||f===void 0||f.call(e,d)}catch(m){throw i(!1),m}}));return{copied:n,copyLoading:o,onClick:u}};function L2(e,t){return c.useMemo(()=>{const n=!!e;return[n,Object.assign(Object.assign({},t),n&&typeof e=="object"?e:null)]},[e])}const kGe=e=>{const t=c.useRef(void 0);return c.useEffect(()=>{t.current=e}),t.current},AGe=(e,t,n)=>c.useMemo(()=>e===!0?{title:t??n}:c.isValidElement(e)?{title:e}:typeof e=="object"?Object.assign({title:t??n},e):{title:e},[e,t,n]);var DGe=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 une=c.forwardRef((e,t)=>{const{prefixCls:n,component:r="article",className:o,rootClassName:i,setContentRef:a,children:s,direction:l,style:u}=e,d=DGe(e,["prefixCls","component","className","rootClassName","setContentRef","children","direction","style"]),{getPrefixCls:f,direction:m,className:h,style:p}=Br("typography"),b=l??m,v=a?po(t,a):t,y=f("typography",n),[x,w,C]=cne(y),S=Q(y,h,{[`${y}-rtl`]:b==="rtl"},o,i,w,C),$=Object.assign(Object.assign({},p),u);return x(c.createElement(r,Object.assign({className:S,style:$,ref:v},d),s))});var LGe={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"},zGe=function(t,n){return c.createElement(yn,Ee({},t,{ref:n,icon:LGe}))},FGe=c.forwardRef(zGe);function GF(e){return e===!1?[!1,!1]:Array.isArray(e)?e:[e]}function z2(e,t,n){return e===!0||e===void 0?t:e||n&&t}function BGe(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 P3=e=>["string","number"].includes(typeof e),HGe=({prefixCls:e,copied:t,locale:n,iconOnly:r,tooltips:o,icon:i,tabIndex:a,onCopy:s,loading:l})=>{const u=GF(o),d=GF(i),{copied:f,copy:m}=n??{},h=t?f:m,p=z2(u[t?1:0],h),b=typeof p=="string"?p:h;return c.createElement(us,{title:p},c.createElement("button",{type:"button",className:Q(`${e}-copy`,{[`${e}-copy-success`]:t,[`${e}-copy-icon-only`]:r}),onClick:s,"aria-label":b,tabIndex:a},t?z2(d[1],c.createElement(RT,null),!0):z2(d[0],l?c.createElement(Zl,null):c.createElement(FGe,null),!0)))},$y=c.forwardRef(({style:e,children:t},n)=>{const r=c.useRef(null);return c.useImperativeHandle(n,()=>({isExceed:()=>{const o=r.current;return o.scrollHeight>o.clientHeight},getHeight:()=>r.current.clientHeight})),c.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)}),VGe=e=>e.reduce((t,n)=>t+(P3(n)?String(n).length:1),0);function XF(e,t){let n=0;const r=[];for(let o=0;o<e.length;o+=1){if(n===t)return r;const i=e[o],s=P3(i)?String(i).length:1,l=n+s;if(l>t){const u=t-n;return r.push(String(i).slice(0,u)),r}r.push(i),n=l}return e}const F2=0,B2=1,H2=2,V2=3,YF=4,Ey={display:"-webkit-box",overflow:"hidden",WebkitBoxOrient:"vertical"};function WGe(e){const{enableMeasure:t,width:n,text:r,children:o,rows:i,expanded:a,miscDeps:s,onEllipsis:l}=e,u=c.useMemo(()=>ii(r),[r]),d=c.useMemo(()=>VGe(u),[r]),f=c.useMemo(()=>o(u,!1),[r]),[m,h]=c.useState(null),p=c.useRef(null),b=c.useRef(null),v=c.useRef(null),y=c.useRef(null),x=c.useRef(null),[w,C]=c.useState(!1),[S,$]=c.useState(F2),[E,O]=c.useState(0),[P,j]=c.useState(null);sn(()=>{$(t&&n&&d?B2:F2)},[n,r,i,t,u]),sn(()=>{var N,A,M,T;if(S===B2){$(H2);const k=b.current&&getComputedStyle(b.current).whiteSpace;j(k)}else if(S===H2){const k=!!(!((N=v.current)===null||N===void 0)&&N.isExceed());$(k?V2:YF),h(k?[0,d]:null),C(k);const D=((A=v.current)===null||A===void 0?void 0:A.getHeight())||0,L=i===1?0:((M=y.current)===null||M===void 0?void 0:M.getHeight())||0,B=((T=x.current)===null||T===void 0?void 0:T.getHeight())||0,H=Math.max(D,L+B);O(H+1),l(k)}},[S]);const I=m?Math.ceil((m[0]+m[1])/2):0;sn(()=>{var N;const[A,M]=m||[0,0];if(A!==M){const k=(((N=p.current)===null||N===void 0?void 0:N.getHeight())||0)>E;let D=I;M-A===1&&(D=k?A:M),h(k?[A,D]:[D,M])}},[m,I]);const _=c.useMemo(()=>{if(!t)return o(u,!1);if(S!==V2||!m||m[0]!==m[1]){const N=o(u,!1);return[YF,F2].includes(S)?N:c.createElement("span",{style:Object.assign(Object.assign({},Ey),{WebkitLineClamp:i})},N)}return o(a?u:XF(u,m[0]),w)},[a,S,m,u].concat(Ne(s))),R={width:n,margin:0,padding:0,whiteSpace:P==="nowrap"?"normal":"inherit"};return c.createElement(c.Fragment,null,_,S===H2&&c.createElement(c.Fragment,null,c.createElement($y,{style:Object.assign(Object.assign(Object.assign({},R),Ey),{WebkitLineClamp:i}),ref:v},f),c.createElement($y,{style:Object.assign(Object.assign(Object.assign({},R),Ey),{WebkitLineClamp:i-1}),ref:y},f),c.createElement($y,{style:Object.assign(Object.assign(Object.assign({},R),Ey),{WebkitLineClamp:1}),ref:x},o([],!0))),S===V2&&m&&m[0]!==m[1]&&c.createElement($y,{style:Object.assign(Object.assign({},R),{top:400}),ref:p},o(XF(u,I),!0)),S===B2&&c.createElement("span",{style:{whiteSpace:"inherit"},ref:b}))}const UGe=({enableEllipsis:e,isEllipsis:t,children:n,tooltipProps:r})=>!(r!=null&&r.title)||!e?n:c.createElement(us,Object.assign({open:t?void 0:!1},r),n);var KGe=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 qGe({mark:e,code:t,underline:n,delete:r,strong:o,keyboard:i,italic:a},s){let l=s;function u(d,f){f&&(l=c.createElement(d,{},l))}return u("strong",o),u("u",n),u("del",r),u("code",t),u("mark",e),u("kbd",i),u("i",a),l}const GGe="...",ZF=["delete","mark","code","underline","strong","keyboard","italic"],dC=c.forwardRef((e,t)=>{var n;const{prefixCls:r,className:o,style:i,type:a,disabled:s,children:l,ellipsis:u,editable:d,copyable:f,component:m,title:h}=e,p=KGe(e,["prefixCls","className","style","type","disabled","children","ellipsis","editable","copyable","component","title"]),{getPrefixCls:b,direction:v}=c.useContext(kt),[y]=ca("Text"),x=c.useRef(null),w=c.useRef(null),C=b("typography",r),S=Xn(p,ZF),[$,E]=L2(d),[O,P]=kn(!1,{value:E.editing}),{triggerType:j=["icon"]}=E,I=ve=>{var me;ve&&((me=E.onStart)===null||me===void 0||me.call(E)),P(ve)},_=kGe(O);sn(()=>{var ve;!O&&_&&((ve=w.current)===null||ve===void 0||ve.focus())},[O]);const R=ve=>{ve==null||ve.preventDefault(),I(!0)},N=ve=>{var me;(me=E.onChange)===null||me===void 0||me.call(E,ve),I(!1)},A=()=>{var ve;(ve=E.onCancel)===null||ve===void 0||ve.call(E),I(!1)},[M,T]=L2(f),{copied:k,copyLoading:D,onClick:L}=MGe({copyConfig:T,children:l}),[B,H]=c.useState(!1),[F,W]=c.useState(!1),[q,G]=c.useState(!1),[te,ee]=c.useState(!1),[z,ne]=c.useState(!0),[X,U]=L2(u,{expandable:!1,symbol:ve=>ve?y==null?void 0:y.collapse:y==null?void 0:y.expand}),[le,se]=kn(U.defaultExpanded||!1,{value:U.expanded}),ae=X&&(!le||U.expandable==="collapsible"),{rows:re=1}=U,fe=c.useMemo(()=>ae&&(U.suffix!==void 0||U.onEllipsis||U.expandable||$||M),[ae,U,$,M]);sn(()=>{X&&!fe&&(H(pj("webkitLineClamp")),W(pj("textOverflow")))},[fe,X]);const[ye,Pe]=c.useState(ae),Oe=c.useMemo(()=>fe?!1:re===1?F:B,[fe,F,B]);sn(()=>{Pe(Oe&&ae)},[Oe,ae]);const V=ae&&(ye?te:q),J=ae&&re===1&&ye,oe=ae&&re>1&&ye,de=(ve,me)=>{var Se;se(me.expanded),(Se=U.onExpand)===null||Se===void 0||Se.call(U,ve,me)},[be,ge]=c.useState(0),ie=({offsetWidth:ve})=>{ge(ve)},he=ve=>{var me;G(ve),q!==ve&&((me=U.onEllipsis)===null||me===void 0||me.call(U,ve))};c.useEffect(()=>{const ve=x.current;if(X&&ye&&ve){const me=BGe(ve);te!==me&&ee(me)}},[X,ye,l,oe,z,be]),c.useEffect(()=>{const ve=x.current;if(typeof IntersectionObserver>"u"||!ve||!ye||!ae)return;const me=new IntersectionObserver(()=>{ne(!!ve.offsetParent)});return me.observe(ve),()=>{me.disconnect()}},[ye,ae]);const xe=AGe(U.tooltip,E.text,l),Re=c.useMemo(()=>{if(!(!X||ye))return[E.text,l,h,xe.title].find(P3)},[X,ye,h,xe.title,V]);if(O)return c.createElement(EGe,{value:(n=E.text)!==null&&n!==void 0?n:typeof l=="string"?l:"",onSave:N,onCancel:A,onEnd:E.onEnd,prefixCls:C,className:o,style:i,direction:v,component:m,maxLength:E.maxLength,autoSize:E.autoSize,enterIcon:E.enterIcon});const Ce=()=>{const{expandable:ve,symbol:me}=U;return ve?c.createElement("button",{type:"button",key:"expand",className:`${C}-${le?"collapse":"expand"}`,onClick:Se=>de(Se,{expanded:!le}),"aria-label":le?y.collapse:y==null?void 0:y.expand},typeof me=="function"?me(le):me):null},pe=()=>{if(!$)return;const{icon:ve,tooltip:me,tabIndex:Se}=E,De=ii(me)[0]||(y==null?void 0:y.edit),et=typeof De=="string"?De:"";return j.includes("icon")?c.createElement(us,{key:"edit",title:me===!1?"":De},c.createElement("button",{type:"button",ref:w,className:`${C}-edit`,onClick:R,"aria-label":et,tabIndex:Se},ve||c.createElement(fGe,{role:"button"}))):null},_e=()=>M?c.createElement(HGe,Object.assign({key:"copy"},T,{prefixCls:C,copied:k,locale:y,onCopy:L,loading:D,iconOnly:l==null})):null,we=ve=>[ve&&Ce(),pe(),_e()],$e=ve=>[ve&&!le&&c.createElement("span",{"aria-hidden":!0,key:"ellipsis"},GGe),U.suffix,we(ve)];return c.createElement(Wo,{onResize:ie,disabled:!ae},ve=>c.createElement(UGe,{tooltipProps:xe,enableEllipsis:ae,isEllipsis:V},c.createElement(une,Object.assign({className:Q({[`${C}-${a}`]:a,[`${C}-disabled`]:s,[`${C}-ellipsis`]:X,[`${C}-ellipsis-single-line`]:J,[`${C}-ellipsis-multiple-line`]:oe},o),prefixCls:r,style:Object.assign(Object.assign({},i),{WebkitLineClamp:oe?re:void 0}),component:m,ref:po(ve,x,t),direction:v,onClick:j.includes("text")?R:void 0,"aria-label":Re==null?void 0:Re.toString(),title:h},S),c.createElement(WGe,{enableMeasure:ae&&!ye,text:l,rows:re,width:be,onEllipsis:he,expanded:le,miscDeps:[k,le,D,$,M,y].concat(Ne(ZF.map(me=>e[me])))},(me,Se)=>qGe(e,c.createElement(c.Fragment,null,me.length>0&&Se&&!le&&Re?c.createElement("span",{key:"show-content","aria-hidden":!0},me):me,$e(Se)))))))});var XGe=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 YGe=c.forwardRef((e,t)=>{const{ellipsis:n,rel:r,children:o,navigate:i}=e,a=XGe(e,["ellipsis","rel","children","navigate"]),s=Object.assign(Object.assign({},a),{rel:r===void 0&&a.target==="_blank"?"noopener noreferrer":r});return c.createElement(dC,Object.assign({},s,{ref:t,ellipsis:!!n,component:"a"}),o)});var ZGe=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 JGe=c.forwardRef((e,t)=>{const{children:n}=e,r=ZGe(e,["children"]);return c.createElement(dC,Object.assign({ref:t},r,{component:"div"}),n)});var QGe=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 eXe=(e,t)=>{const{ellipsis:n,children:r}=e,o=QGe(e,["ellipsis","children"]),i=c.useMemo(()=>n&&typeof n=="object"?Xn(n,["expandable","rows"]):n,[n]);return c.createElement(dC,Object.assign({ref:t},o,{ellipsis:i,component:"span"}),r)},tXe=c.forwardRef(eXe);var nXe=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 rXe=[1,2,3,4,5],oXe=c.forwardRef((e,t)=>{const{level:n=1,children:r}=e,o=nXe(e,["level","children"]),i=rXe.includes(n)?`h${n}`:"h1";return c.createElement(dC,Object.assign({ref:t},o,{component:i}),r)}),dn=une;dn.Text=tXe;dn.Link=YGe;dn.Title=oXe;dn.Paragraph=JGe;const W2=function(e,t){if(e&&t){var n=Array.isArray(t)?t:t.split(","),r=e.name||"",o=e.type||"",i=o.replace(/\/.*$/,"");return n.some(function(a){var s=a.trim();if(/^\*(\/\*)?$/.test(a))return!0;if(s.charAt(0)==="."){var l=r.toLowerCase(),u=s.toLowerCase(),d=[u];return(u===".jpg"||u===".jpeg")&&(d=[".jpg",".jpeg"]),d.some(function(f){return l.endsWith(f)})}return/\/\*$/.test(s)?i===s.replace(/\/.*$/,""):o===s?!0:/^\w+$/.test(s)?(ir(!1,"Upload takes an invalidate 'accept' type '".concat(s,"'.Skip for check.")),!0):!1})}return!0};function iXe(e,t){var n="cannot ".concat(e.method," ").concat(e.action," ").concat(t.status,"'"),r=new Error(n);return r.status=t.status,r.method=e.method,r.url=e.action,r}function JF(e){var t=e.responseText||e.response;if(!t)return t;try{return JSON.parse(t)}catch{return t}}function QF(e){var t=new XMLHttpRequest;e.onProgress&&t.upload&&(t.upload.onprogress=function(i){i.total>0&&(i.percent=i.loaded/i.total*100),e.onProgress(i)});var n=new FormData;e.data&&Object.keys(e.data).forEach(function(o){var i=e.data[o];if(Array.isArray(i)){i.forEach(function(a){n.append("".concat(o,"[]"),a)});return}n.append(o,i)}),e.file instanceof Blob?n.append(e.filename,e.file,e.file.name):n.append(e.filename,e.file),t.onerror=function(i){e.onError(i)},t.onload=function(){return t.status<200||t.status>=300?e.onError(iXe(e,t),JF(t)):e.onSuccess(JF(t),t)},t.open(e.method,e.action,!0),e.withCredentials&&"withCredentials"in t&&(t.withCredentials=!0);var r=e.headers||{};return r["X-Requested-With"]!==null&&t.setRequestHeader("X-Requested-With","XMLHttpRequest"),Object.keys(r).forEach(function(o){r[o]!==null&&t.setRequestHeader(o,r[o])}),t.send(n),{abort:function(){t.abort()}}}var aXe=function(){var e=Di(Vn().mark(function t(n,r){var o,i,a,s,l,u,d,f;return Vn().wrap(function(h){for(;;)switch(h.prev=h.next){case 0:u=function(){return u=Di(Vn().mark(function b(v){return Vn().wrap(function(x){for(;;)switch(x.prev=x.next){case 0:return x.abrupt("return",new Promise(function(w){v.file(function(C){r(C)?(v.fullPath&&!C.webkitRelativePath&&(Object.defineProperties(C,{webkitRelativePath:{writable:!0}}),C.webkitRelativePath=v.fullPath.replace(/^\//,""),Object.defineProperties(C,{webkitRelativePath:{writable:!1}})),w(C)):w(null)})}));case 1:case"end":return x.stop()}},b)})),u.apply(this,arguments)},l=function(b){return u.apply(this,arguments)},s=function(){return s=Di(Vn().mark(function b(v){var y,x,w,C,S;return Vn().wrap(function(E){for(;;)switch(E.prev=E.next){case 0:y=v.createReader(),x=[];case 2:return E.next=5,new Promise(function(O){y.readEntries(O,function(){return O([])})});case 5:if(w=E.sent,C=w.length,C){E.next=9;break}return E.abrupt("break",12);case 9:for(S=0;S<C;S++)x.push(w[S]);E.next=2;break;case 12:return E.abrupt("return",x);case 13:case"end":return E.stop()}},b)})),s.apply(this,arguments)},a=function(b){return s.apply(this,arguments)},o=[],i=[],n.forEach(function(p){return i.push(p.webkitGetAsEntry())}),d=function(){var p=Di(Vn().mark(function b(v,y){var x,w;return Vn().wrap(function(S){for(;;)switch(S.prev=S.next){case 0:if(v){S.next=2;break}return S.abrupt("return");case 2:if(v.path=y||"",!v.isFile){S.next=10;break}return S.next=6,l(v);case 6:x=S.sent,x&&o.push(x),S.next=15;break;case 10:if(!v.isDirectory){S.next=15;break}return S.next=13,a(v);case 13:w=S.sent,i.push.apply(i,Ne(w));case 15:case"end":return S.stop()}},b)}));return function(v,y){return p.apply(this,arguments)}}(),f=0;case 9:if(!(f<i.length)){h.next=15;break}return h.next=12,d(i[f]);case 12:f++,h.next=9;break;case 15:return h.abrupt("return",o);case 16:case"end":return h.stop()}},t)}));return function(n,r){return e.apply(this,arguments)}}(),sXe=+new Date,lXe=0;function U2(){return"rc-upload-".concat(sXe,"-").concat(++lXe)}var cXe=["component","prefixCls","className","classNames","disabled","id","name","style","styles","multiple","accept","capture","children","directory","folder","openFileDialogOnClick","onMouseEnter","onMouseLeave","hasControlInside"],uXe=function(e){Ta(n,e);var t=gs(n);function n(){var r;lr(this,n);for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return r=t.call.apply(t,[this].concat(i)),K(Ct(r),"state",{uid:U2()}),K(Ct(r),"reqs",{}),K(Ct(r),"fileInput",void 0),K(Ct(r),"_isMounted",void 0),K(Ct(r),"onChange",function(s){var l=r.props,u=l.accept,d=l.directory,f=s.target.files,m=Ne(f).filter(function(h){return!d||W2(h,u)});r.uploadFiles(m),r.reset()}),K(Ct(r),"onClick",function(s){var l=r.fileInput;if(l){var u=s.target,d=r.props.onClick;if(u&&u.tagName==="BUTTON"){var f=l.parentNode;f.focus(),u.blur()}l.click(),d&&d(s)}}),K(Ct(r),"onKeyDown",function(s){s.key==="Enter"&&r.onClick(s)}),K(Ct(r),"onDataTransferFiles",function(){var s=Di(Vn().mark(function l(u,d){var f,m,h,p,b,v,y;return Vn().wrap(function(w){for(;;)switch(w.prev=w.next){case 0:if(f=r.props,m=f.multiple,h=f.accept,p=f.directory,b=Ne(u.items||[]),v=Ne(u.files||[]),(v.length>0||b.some(function(C){return C.kind==="file"}))&&(d==null||d()),!p){w.next=11;break}return w.next=7,aXe(Array.prototype.slice.call(b),function(C){return W2(C,r.props.accept)});case 7:v=w.sent,r.uploadFiles(v),w.next=14;break;case 11:y=Ne(v).filter(function(C){return W2(C,h)}),m===!1&&(y=v.slice(0,1)),r.uploadFiles(y);case 14:case"end":return w.stop()}},l)}));return function(l,u){return s.apply(this,arguments)}}()),K(Ct(r),"onFilePaste",function(){var s=Di(Vn().mark(function l(u){var d,f;return Vn().wrap(function(h){for(;;)switch(h.prev=h.next){case 0:if(d=r.props.pastable,d){h.next=3;break}return h.abrupt("return");case 3:if(u.type!=="paste"){h.next=6;break}return f=u.clipboardData,h.abrupt("return",r.onDataTransferFiles(f,function(){u.preventDefault()}));case 6:case"end":return h.stop()}},l)}));return function(l){return s.apply(this,arguments)}}()),K(Ct(r),"onFileDragOver",function(s){s.preventDefault()}),K(Ct(r),"onFileDrop",function(){var s=Di(Vn().mark(function l(u){var d;return Vn().wrap(function(m){for(;;)switch(m.prev=m.next){case 0:if(u.preventDefault(),u.type!=="drop"){m.next=4;break}return d=u.dataTransfer,m.abrupt("return",r.onDataTransferFiles(d));case 4:case"end":return m.stop()}},l)}));return function(l){return s.apply(this,arguments)}}()),K(Ct(r),"uploadFiles",function(s){var l=Ne(s),u=l.map(function(d){return d.uid=U2(),r.processFile(d,l)});Promise.all(u).then(function(d){var f=r.props.onBatchStart;f==null||f(d.map(function(m){var h=m.origin,p=m.parsedFile;return{file:h,parsedFile:p}})),d.filter(function(m){return m.parsedFile!==null}).forEach(function(m){r.post(m)})})}),K(Ct(r),"processFile",function(){var s=Di(Vn().mark(function l(u,d){var f,m,h,p,b,v,y,x,w;return Vn().wrap(function(S){for(;;)switch(S.prev=S.next){case 0:if(f=r.props.beforeUpload,m=u,!f){S.next=14;break}return S.prev=3,S.next=6,f(u,d);case 6:m=S.sent,S.next=12;break;case 9:S.prev=9,S.t0=S.catch(3),m=!1;case 12:if(m!==!1){S.next=14;break}return S.abrupt("return",{origin:u,parsedFile:null,action:null,data:null});case 14:if(h=r.props.action,typeof h!="function"){S.next=21;break}return S.next=18,h(u);case 18:p=S.sent,S.next=22;break;case 21:p=h;case 22:if(b=r.props.data,typeof b!="function"){S.next=29;break}return S.next=26,b(u);case 26:v=S.sent,S.next=30;break;case 29:v=b;case 30:return y=(_t(m)==="object"||typeof m=="string")&&m?m:u,y instanceof File?x=y:x=new File([y],u.name,{type:u.type}),w=x,w.uid=u.uid,S.abrupt("return",{origin:u,data:v,parsedFile:w,action:p});case 35:case"end":return S.stop()}},l,null,[[3,9]])}));return function(l,u){return s.apply(this,arguments)}}()),K(Ct(r),"saveFileInput",function(s){r.fileInput=s}),r}return cr(n,[{key:"componentDidMount",value:function(){this._isMounted=!0;var o=this.props.pastable;o&&document.addEventListener("paste",this.onFilePaste)}},{key:"componentWillUnmount",value:function(){this._isMounted=!1,this.abort(),document.removeEventListener("paste",this.onFilePaste)}},{key:"componentDidUpdate",value:function(o){var i=this.props.pastable;i&&!o.pastable?document.addEventListener("paste",this.onFilePaste):!i&&o.pastable&&document.removeEventListener("paste",this.onFilePaste)}},{key:"post",value:function(o){var i=this,a=o.data,s=o.origin,l=o.action,u=o.parsedFile;if(this._isMounted){var d=this.props,f=d.onStart,m=d.customRequest,h=d.name,p=d.headers,b=d.withCredentials,v=d.method,y=s.uid,x=m||QF,w={action:l,filename:h,data:a,file:u,headers:p,withCredentials:b,method:v||"post",onProgress:function(S){var $=i.props.onProgress;$==null||$(S,u)},onSuccess:function(S,$){var E=i.props.onSuccess;E==null||E(S,u,$),delete i.reqs[y]},onError:function(S,$){var E=i.props.onError;E==null||E(S,$,u),delete i.reqs[y]}};f(s),this.reqs[y]=x(w,{defaultRequest:QF})}}},{key:"reset",value:function(){this.setState({uid:U2()})}},{key:"abort",value:function(o){var i=this.reqs;if(o){var a=o.uid?o.uid:o;i[a]&&i[a].abort&&i[a].abort(),delete i[a]}else Object.keys(i).forEach(function(s){i[s]&&i[s].abort&&i[s].abort(),delete i[s]})}},{key:"render",value:function(){var o=this.props,i=o.component,a=o.prefixCls,s=o.className,l=o.classNames,u=l===void 0?{}:l,d=o.disabled,f=o.id,m=o.name,h=o.style,p=o.styles,b=p===void 0?{}:p,v=o.multiple,y=o.accept,x=o.capture,w=o.children,C=o.directory,S=o.folder,$=o.openFileDialogOnClick,E=o.onMouseEnter,O=o.onMouseLeave,P=o.hasControlInside,j=Ht(o,cXe),I=Q(K(K(K({},a,!0),"".concat(a,"-disabled"),d),s,s)),_=C||S?{directory:"directory",webkitdirectory:"webkitdirectory"}:{},R=d?{}:{onClick:$?this.onClick:function(){},onKeyDown:$?this.onKeyDown:function(){},onMouseEnter:E,onMouseLeave:O,onDrop:this.onFileDrop,onDragOver:this.onFileDragOver,tabIndex:P?void 0:"0"};return ce.createElement(i,Ee({},R,{className:I,role:P?void 0:"button",style:h}),ce.createElement("input",Ee({},Pr(j,{aria:!0,data:!0}),{id:f,name:m,disabled:d,type:"file",ref:this.saveFileInput,onClick:function(A){return A.stopPropagation()},key:this.state.uid,style:Y({display:"none"},b.input),className:u.input,accept:y},_,{multiple:v,onChange:this.onChange},x!=null?{capture:x}:{})),w)}}]),n}(c.Component);function K2(){}var Kj=function(e){Ta(n,e);var t=gs(n);function n(){var r;lr(this,n);for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];return r=t.call.apply(t,[this].concat(i)),K(Ct(r),"uploader",void 0),K(Ct(r),"saveUploader",function(s){r.uploader=s}),r}return cr(n,[{key:"abort",value:function(o){this.uploader.abort(o)}},{key:"render",value:function(){return ce.createElement(uXe,Ee({},this.props,{ref:this.saveUploader}))}}]),n}(c.Component);K(Kj,"defaultProps",{component:"span",prefixCls:"rc-upload",data:{},headers:{},name:"file",multipart:!1,onStart:K2,onError:K2,onSuccess:K2,multiple:!1,beforeUpload:null,customRequest:null,withCredentials:!1,openFileDialogOnClick:!0,hasControlInside:!1});const dXe=e=>{const{componentCls:t,iconCls:n}=e;return{[`${t}-wrapper`]:{[`${t}-drag`]:{position:"relative",width:"100%",height:"100%",textAlign:"center",background:e.colorFillAlter,border:`${Z(e.lineWidth)} dashed ${e.colorBorder}`,borderRadius:e.borderRadiusLG,cursor:"pointer",transition:`border-color ${e.motionDurationSlow}`,[t]:{padding:e.padding},[`${t}-btn`]:{display:"table",width:"100%",height:"100%",outline:"none",borderRadius:e.borderRadiusLG,"&:focus-visible":{outline:`${Z(e.lineWidthFocus)} solid ${e.colorPrimaryBorder}`}},[`${t}-drag-container`]:{display:"table-cell",verticalAlign:"middle"},[`
          &:not(${t}-disabled):hover,
          &-hover:not(${t}-disabled)
        `]:{borderColor:e.colorPrimaryHover},[`p${t}-drag-icon`]:{marginBottom:e.margin,[n]:{color:e.colorPrimary,fontSize:e.uploadThumbnailSize}},[`p${t}-text`]:{margin:`0 0 ${Z(e.marginXXS)}`,color:e.colorTextHeading,fontSize:e.fontSizeLG},[`p${t}-hint`]:{color:e.colorTextDescription,fontSize:e.fontSize},[`&${t}-disabled`]:{[`p${t}-drag-icon ${n},
            p${t}-text,
            p${t}-hint
          `]:{color:e.colorTextDisabled}}}}}},fXe=e=>{const{componentCls:t,iconCls:n,fontSize:r,lineHeight:o,calc:i}=e,a=`${t}-list-item`,s=`${a}-actions`,l=`${a}-action`;return{[`${t}-wrapper`]:{[`${t}-list`]:Object.assign(Object.assign({},hl()),{lineHeight:e.lineHeight,[a]:{position:"relative",height:i(e.lineHeight).mul(r).equal(),marginTop:e.marginXS,fontSize:r,display:"flex",alignItems:"center",transition:`background-color ${e.motionDurationSlow}`,borderRadius:e.borderRadiusSM,"&:hover":{backgroundColor:e.controlItemBgHover},[`${a}-name`]:Object.assign(Object.assign({},Bs),{padding:`0 ${Z(e.paddingXS)}`,lineHeight:o,flex:"auto",transition:`all ${e.motionDurationSlow}`}),[s]:{whiteSpace:"nowrap",[l]:{opacity:0},[n]:{color:e.actionsColor,transition:`all ${e.motionDurationSlow}`},[`
              ${l}:focus-visible,
              &.picture ${l}
            `]:{opacity:1}},[`${t}-icon ${n}`]:{color:e.colorIcon,fontSize:r},[`${a}-progress`]:{position:"absolute",bottom:e.calc(e.uploadProgressOffset).mul(-1).equal(),width:"100%",paddingInlineStart:i(r).add(e.paddingXS).equal(),fontSize:r,lineHeight:0,pointerEvents:"none","> div":{margin:0}}},[`${a}:hover ${l}`]:{opacity:1},[`${a}-error`]:{color:e.colorError,[`${a}-name, ${t}-icon ${n}`]:{color:e.colorError},[s]:{[`${n}, ${n}:hover`]:{color:e.colorError},[l]:{opacity:1}}},[`${t}-list-item-container`]:{transition:`opacity ${e.motionDurationSlow}, height ${e.motionDurationSlow}`,"&::before":{display:"table",width:0,height:0,content:'""'}}})}}},mXe=e=>{const{componentCls:t}=e,n=new gn("uploadAnimateInlineIn",{from:{width:0,height:0,padding:0,opacity:0,margin:e.calc(e.marginXS).div(-2).equal()}}),r=new gn("uploadAnimateInlineOut",{to:{width:0,height:0,padding:0,opacity:0,margin:e.calc(e.marginXS).div(-2).equal()}}),o=`${t}-animate-inline`;return[{[`${t}-wrapper`]:{[`${o}-appear, ${o}-enter, ${o}-leave`]:{animationDuration:e.motionDurationSlow,animationTimingFunction:e.motionEaseInOutCirc,animationFillMode:"forwards"},[`${o}-appear, ${o}-enter`]:{animationName:n},[`${o}-leave`]:{animationName:r}}},{[`${t}-wrapper`]:DZ(e)},n,r]},hXe=e=>{const{componentCls:t,iconCls:n,uploadThumbnailSize:r,uploadProgressOffset:o,calc:i}=e,a=`${t}-list`,s=`${a}-item`;return{[`${t}-wrapper`]:{[`
        ${a}${a}-picture,
        ${a}${a}-picture-card,
        ${a}${a}-picture-circle
      `]:{[s]:{position:"relative",height:i(r).add(i(e.lineWidth).mul(2)).add(i(e.paddingXS).mul(2)).equal(),padding:e.paddingXS,border:`${Z(e.lineWidth)} ${e.lineType} ${e.colorBorder}`,borderRadius:e.borderRadiusLG,"&:hover":{background:"transparent"},[`${s}-thumbnail`]:Object.assign(Object.assign({},Bs),{width:r,height:r,lineHeight:Z(i(r).add(e.paddingSM).equal()),textAlign:"center",flex:"none",[n]:{fontSize:e.fontSizeHeading2,color:e.colorPrimary},img:{display:"block",width:"100%",height:"100%",overflow:"hidden"}}),[`${s}-progress`]:{bottom:o,width:`calc(100% - ${Z(i(e.paddingSM).mul(2).equal())})`,marginTop:0,paddingInlineStart:i(r).add(e.paddingXS).equal()}},[`${s}-error`]:{borderColor:e.colorError,[`${s}-thumbnail ${n}`]:{[`svg path[fill='${Hm[0]}']`]:{fill:e.colorErrorBg},[`svg path[fill='${Hm.primary}']`]:{fill:e.colorError}}},[`${s}-uploading`]:{borderStyle:"dashed",[`${s}-name`]:{marginBottom:o}}},[`${a}${a}-picture-circle ${s}`]:{[`&, &::before, ${s}-thumbnail`]:{borderRadius:"50%"}}}}},pXe=e=>{const{componentCls:t,iconCls:n,fontSizeLG:r,colorTextLightSolid:o,calc:i}=e,a=`${t}-list`,s=`${a}-item`,l=e.uploadPicCardSize;return{[`
      ${t}-wrapper${t}-picture-card-wrapper,
      ${t}-wrapper${t}-picture-circle-wrapper
    `]:Object.assign(Object.assign({},hl()),{display:"block",[`${t}${t}-select`]:{width:l,height:l,textAlign:"center",verticalAlign:"top",backgroundColor:e.colorFillAlter,border:`${Z(e.lineWidth)} dashed ${e.colorBorder}`,borderRadius:e.borderRadiusLG,cursor:"pointer",transition:`border-color ${e.motionDurationSlow}`,[`> ${t}`]:{display:"flex",alignItems:"center",justifyContent:"center",height:"100%",textAlign:"center"},[`&:not(${t}-disabled):hover`]:{borderColor:e.colorPrimary}},[`${a}${a}-picture-card, ${a}${a}-picture-circle`]:{display:"flex",flexWrap:"wrap","@supports not (gap: 1px)":{"& > *":{marginBlockEnd:e.marginXS,marginInlineEnd:e.marginXS}},"@supports (gap: 1px)":{gap:e.marginXS},[`${a}-item-container`]:{display:"inline-block",width:l,height:l,verticalAlign:"top"},"&::after":{display:"none"},"&::before":{display:"none"},[s]:{height:"100%",margin:0,"&::before":{position:"absolute",zIndex:1,width:`calc(100% - ${Z(i(e.paddingXS).mul(2).equal())})`,height:`calc(100% - ${Z(i(e.paddingXS).mul(2).equal())})`,backgroundColor:e.colorBgMask,opacity:0,transition:`all ${e.motionDurationSlow}`,content:'" "'}},[`${s}:hover`]:{[`&::before, ${s}-actions`]:{opacity:1}},[`${s}-actions`]:{position:"absolute",insetInlineStart:0,zIndex:10,width:"100%",whiteSpace:"nowrap",textAlign:"center",opacity:0,transition:`all ${e.motionDurationSlow}`,[`
            ${n}-eye,
            ${n}-download,
            ${n}-delete
          `]:{zIndex:10,width:r,margin:`0 ${Z(e.marginXXS)}`,fontSize:r,cursor:"pointer",transition:`all ${e.motionDurationSlow}`,color:o,"&:hover":{color:o},svg:{verticalAlign:"baseline"}}},[`${s}-thumbnail, ${s}-thumbnail img`]:{position:"static",display:"block",width:"100%",height:"100%",objectFit:"contain"},[`${s}-name`]:{display:"none",textAlign:"center"},[`${s}-file + ${s}-name`]:{position:"absolute",bottom:e.margin,display:"block",width:`calc(100% - ${Z(i(e.paddingXS).mul(2).equal())})`},[`${s}-uploading`]:{[`&${s}`]:{backgroundColor:e.colorFillAlter},[`&::before, ${n}-eye, ${n}-download, ${n}-delete`]:{display:"none"}},[`${s}-progress`]:{bottom:e.marginXL,width:`calc(100% - ${Z(i(e.paddingXS).mul(2).equal())})`,paddingInlineStart:0}}}),[`${t}-wrapper${t}-picture-circle-wrapper`]:{[`${t}${t}-select`]:{borderRadius:"50%"}}}},gXe=e=>{const{componentCls:t}=e;return{[`${t}-rtl`]:{direction:"rtl"}}},vXe=e=>{const{componentCls:t,colorTextDisabled:n}=e;return{[`${t}-wrapper`]:Object.assign(Object.assign({},xn(e)),{[t]:{outline:0,"input[type='file']":{cursor:"pointer"}},[`${t}-select`]:{display:"inline-block"},[`${t}-hidden`]:{display:"none"},[`${t}-disabled`]:{color:n,cursor:"not-allowed"}})}},yXe=e=>({actionsColor:e.colorIcon,pictureCardSize:e.controlHeightLG*2.55}),bXe=vn("Upload",e=>{const{fontSizeHeading3:t,fontHeight:n,lineWidth:r,pictureCardSize:o,calc:i}=e,a=cn(e,{uploadThumbnailSize:i(t).mul(2).equal(),uploadProgressOffset:i(i(n).div(2)).add(r).equal(),uploadPicCardSize:o});return[vXe(a),dXe(a),hXe(a),pXe(a),fXe(a),mXe(a),gXe(a),SS(a)]},yXe);var xXe={icon:function(t,n){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M534 352V136H232v752h560V394H576a42 42 0 01-42-42z",fill:n}},{tag:"path",attrs:{d:"M854.6 288.6L639.4 73.4c-6-6-14.1-9.4-22.6-9.4H192c-17.7 0-32 14.3-32 32v832c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V311.3c0-8.5-3.4-16.7-9.4-22.7zM602 137.8L790.2 326H602V137.8zM792 888H232V136h302v216a42 42 0 0042 42h216v494z",fill:t}}]}},name:"file",theme:"twotone"},wXe=function(t,n){return c.createElement(yn,Ee({},t,{ref:n,icon:xXe}))},SXe=c.forwardRef(wXe),CXe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M779.3 196.6c-94.2-94.2-247.6-94.2-341.7 0l-261 260.8c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l261-260.8c32.4-32.4 75.5-50.2 121.3-50.2s88.9 17.8 121.2 50.2c32.4 32.4 50.2 75.5 50.2 121.2 0 45.8-17.8 88.8-50.2 121.2l-266 265.9-43.1 43.1c-40.3 40.3-105.8 40.3-146.1 0-19.5-19.5-30.2-45.4-30.2-73s10.7-53.5 30.2-73l263.9-263.8c6.7-6.6 15.5-10.3 24.9-10.3h.1c9.4 0 18.1 3.7 24.7 10.3 6.7 6.7 10.3 15.5 10.3 24.9 0 9.3-3.7 18.1-10.3 24.7L372.4 653c-1.7 1.7-2.6 4-2.6 6.4s.9 4.7 2.6 6.4l36.9 36.9a9 9 0 0012.7 0l215.6-215.6c19.9-19.9 30.8-46.3 30.8-74.4s-11-54.6-30.8-74.4c-41.1-41.1-107.9-41-149 0L463 364 224.8 602.1A172.22 172.22 0 00174 724.8c0 46.3 18.1 89.8 50.8 122.5 33.9 33.8 78.3 50.7 122.7 50.7 44.4 0 88.8-16.9 122.6-50.7l309.2-309C824.8 492.7 850 432 850 367.5c.1-64.6-25.1-125.3-70.7-170.9z"}}]},name:"paper-clip",theme:"outlined"},$Xe=function(t,n){return c.createElement(yn,Ee({},t,{ref:n,icon:CXe}))},EXe=c.forwardRef($Xe),OXe={icon:function(t,n){return{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-40 632H136v-39.9l138.5-164.3 150.1 178L658.1 489 888 761.6V792zm0-129.8L664.2 396.8c-3.2-3.8-9-3.8-12.2 0L424.6 666.4l-144-170.7c-3.2-3.8-9-3.8-12.2 0L136 652.7V232h752v430.2z",fill:t}},{tag:"path",attrs:{d:"M424.6 765.8l-150.1-178L136 752.1V792h752v-30.4L658.1 489z",fill:n}},{tag:"path",attrs:{d:"M136 652.7l132.4-157c3.2-3.8 9-3.8 12.2 0l144 170.7L652 396.8c3.2-3.8 9-3.8 12.2 0L888 662.2V232H136v420.7zM304 280a88 88 0 110 176 88 88 0 010-176z",fill:n}},{tag:"path",attrs:{d:"M276 368a28 28 0 1056 0 28 28 0 10-56 0z",fill:n}},{tag:"path",attrs:{d:"M304 456a88 88 0 100-176 88 88 0 000 176zm0-116c15.5 0 28 12.5 28 28s-12.5 28-28 28-28-12.5-28-28 12.5-28 28-28z",fill:t}}]}},name:"picture",theme:"twotone"},PXe=function(t,n){return c.createElement(yn,Ee({},t,{ref:n,icon:OXe}))},jXe=c.forwardRef(PXe);function Oy(e){return Object.assign(Object.assign({},e),{lastModified:e.lastModified,lastModifiedDate:e.lastModifiedDate,name:e.name,size:e.size,type:e.type,uid:e.uid,percent:0,originFileObj:e})}function Py(e,t){const n=Ne(t),r=n.findIndex(({uid:o})=>o===e.uid);return r===-1?n.push(e):n[r]=e,n}function q2(e,t){const n=e.uid!==void 0?"uid":"name";return t.filter(r=>r[n]===e[n])[0]}function IXe(e,t){const n=e.uid!==void 0?"uid":"name",r=t.filter(o=>o[n]!==e[n]);return r.length===t.length?null:r}const _Xe=(e="")=>{const t=e.split("/"),r=t[t.length-1].split(/#|\?/)[0];return(/\.[^./\\]*$/.exec(r)||[""])[0]},dne=e=>e.indexOf("image/")===0,NXe=e=>{if(e.type&&!e.thumbUrl)return dne(e.type);const t=e.thumbUrl||e.url||"",n=_Xe(t);return/^data:image\//.test(t)||/(webp|svg|png|gif|jpg|jpeg|jfif|bmp|dpg|ico|heic|heif)$/i.test(n)?!0:!(/^data:/.test(t)||n)},gc=200;function RXe(e){return new Promise(t=>{if(!e.type||!dne(e.type)){t("");return}const n=document.createElement("canvas");n.width=gc,n.height=gc,n.style.cssText=`position: fixed; left: 0; top: 0; width: ${gc}px; height: ${gc}px; z-index: 9999; display: none;`,document.body.appendChild(n);const r=n.getContext("2d"),o=new Image;if(o.onload=()=>{const{width:i,height:a}=o;let s=gc,l=gc,u=0,d=0;i>a?(l=a*(gc/i),d=-(l-s)/2):(s=i*(gc/a),u=-(s-l)/2),r.drawImage(o,u,d,s,l);const f=n.toDataURL();document.body.removeChild(n),window.URL.revokeObjectURL(o.src),t(f)},o.crossOrigin="anonymous",e.type.startsWith("image/svg+xml")){const i=new FileReader;i.onload=()=>{i.result&&typeof i.result=="string"&&(o.src=i.result)},i.readAsDataURL(e)}else if(e.type.startsWith("image/gif")){const i=new FileReader;i.onload=()=>{i.result&&t(i.result)},i.readAsDataURL(e)}else o.src=window.URL.createObjectURL(e)})}var fne={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M505.7 661a8 8 0 0012.6 0l112-141.7c4.1-5.2.4-12.9-6.3-12.9h-74.1V168c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v338.3H400c-6.7 0-10.4 7.7-6.3 12.9l112 141.8zM878 626h-60c-4.4 0-8 3.6-8 8v154H214V634c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v198c0 17.7 14.3 32 32 32h684c17.7 0 32-14.3 32-32V634c0-4.4-3.6-8-8-8z"}}]},name:"download",theme:"outlined"},TXe=function(t,n){return c.createElement(yn,Ee({},t,{ref:n,icon:fne}))},MXe=c.forwardRef(TXe);const kXe=c.forwardRef(({prefixCls:e,className:t,style:n,locale:r,listType:o,file:i,items:a,progress:s,iconRender:l,actionIconRender:u,itemRender:d,isImgUrl:f,showPreviewIcon:m,showRemoveIcon:h,showDownloadIcon:p,previewIcon:b,removeIcon:v,downloadIcon:y,extra:x,onPreview:w,onDownload:C,onClose:S},$)=>{var E,O;const{status:P}=i,[j,I]=c.useState(P);c.useEffect(()=>{P!=="removed"&&I(P)},[P]);const[_,R]=c.useState(!1);c.useEffect(()=>{const U=setTimeout(()=>{R(!0)},300);return()=>{clearTimeout(U)}},[]);const N=l(i);let A=c.createElement("div",{className:`${e}-icon`},N);if(o==="picture"||o==="picture-card"||o==="picture-circle")if(j==="uploading"||!i.thumbUrl&&!i.url){const U=Q(`${e}-list-item-thumbnail`,{[`${e}-list-item-file`]:j!=="uploading"});A=c.createElement("div",{className:U},N)}else{const U=f!=null&&f(i)?c.createElement("img",{src:i.thumbUrl||i.url,alt:i.name,className:`${e}-list-item-image`,crossOrigin:i.crossOrigin}):N,le=Q(`${e}-list-item-thumbnail`,{[`${e}-list-item-file`]:f&&!f(i)});A=c.createElement("a",{className:le,onClick:se=>w(i,se),href:i.url||i.thumbUrl,target:"_blank",rel:"noopener noreferrer"},U)}const M=Q(`${e}-list-item`,`${e}-list-item-${j}`),T=typeof i.linkProps=="string"?JSON.parse(i.linkProps):i.linkProps,k=(typeof h=="function"?h(i):h)?u((typeof v=="function"?v(i):v)||c.createElement(uGe,null),()=>S(i),e,r.removeFile,!0):null,D=(typeof p=="function"?p(i):p)&&j==="done"?u((typeof y=="function"?y(i):y)||c.createElement(MXe,null),()=>C(i),e,r.downloadFile):null,L=o!=="picture-card"&&o!=="picture-circle"&&c.createElement("span",{key:"download-delete",className:Q(`${e}-list-item-actions`,{picture:o==="picture"})},D,k),B=typeof x=="function"?x(i):x,H=B&&c.createElement("span",{className:`${e}-list-item-extra`},B),F=Q(`${e}-list-item-name`),W=i.url?c.createElement("a",Object.assign({key:"view",target:"_blank",rel:"noopener noreferrer",className:F,title:i.name},T,{href:i.url,onClick:U=>w(i,U)}),i.name,H):c.createElement("span",{key:"view",className:F,onClick:U=>w(i,U),title:i.name},i.name,H),q=(typeof m=="function"?m(i):m)&&(i.url||i.thumbUrl)?c.createElement("a",{href:i.url||i.thumbUrl,target:"_blank",rel:"noopener noreferrer",onClick:U=>w(i,U),title:r.previewFile},typeof b=="function"?b(i):b||c.createElement(hte,null)):null,G=(o==="picture-card"||o==="picture-circle")&&j!=="uploading"&&c.createElement("span",{className:`${e}-list-item-actions`},q,j==="done"&&D,k),{getPrefixCls:te}=c.useContext(kt),ee=te(),z=c.createElement("div",{className:M},A,W,L,G,_&&c.createElement(si,{motionName:`${ee}-fade`,visible:j==="uploading",motionDeadline:2e3},({className:U})=>{const le="percent"in i?c.createElement(Au,Object.assign({type:"line",percent:i.percent,"aria-label":i["aria-label"],"aria-labelledby":i["aria-labelledby"]},s)):null;return c.createElement("div",{className:Q(`${e}-list-item-progress`,U)},le)})),ne=i.response&&typeof i.response=="string"?i.response:((E=i.error)===null||E===void 0?void 0:E.statusText)||((O=i.error)===null||O===void 0?void 0:O.message)||r.uploadError,X=j==="error"?c.createElement(us,{title:ne,getPopupContainer:U=>U.parentNode},z):z;return c.createElement("div",{className:Q(`${e}-list-item-container`,t),style:n,ref:$},d?d(X,i,a,{download:C.bind(null,i),preview:w.bind(null,i),remove:S.bind(null,i)}):X)}),AXe=(e,t)=>{const{listType:n="text",previewFile:r=RXe,onPreview:o,onDownload:i,onRemove:a,locale:s,iconRender:l,isImageUrl:u=NXe,prefixCls:d,items:f=[],showPreviewIcon:m=!0,showRemoveIcon:h=!0,showDownloadIcon:p=!1,removeIcon:b,previewIcon:v,downloadIcon:y,extra:x,progress:w={size:[-1,2],showInfo:!1},appendAction:C,appendActionVisible:S=!0,itemRender:$,disabled:E}=e,[,O]=pT(),[P,j]=c.useState(!1),I=["picture-card","picture-circle"].includes(n);c.useEffect(()=>{n.startsWith("picture")&&(f||[]).forEach(F=>{!(F.originFileObj instanceof File||F.originFileObj instanceof Blob)||F.thumbUrl!==void 0||(F.thumbUrl="",r==null||r(F.originFileObj).then(W=>{F.thumbUrl=W||"",O()}))})},[n,f,r]),c.useEffect(()=>{j(!0)},[]);const _=(F,W)=>{if(o)return W==null||W.preventDefault(),o(F)},R=F=>{typeof i=="function"?i(F):F.url&&window.open(F.url)},N=F=>{a==null||a(F)},A=F=>{if(l)return l(F,n);const W=F.status==="uploading";if(n.startsWith("picture")){const q=n==="picture"?c.createElement(Zl,null):s.uploading,G=u!=null&&u(F)?c.createElement(jXe,null):c.createElement(SXe,null);return W?q:G}return W?c.createElement(Zl,null):c.createElement(EXe,null)},M=(F,W,q,G,te)=>{const ee={type:"text",size:"small",title:G,onClick:z=>{var ne,X;W(),c.isValidElement(F)&&((X=(ne=F.props).onClick)===null||X===void 0||X.call(ne,z))},className:`${q}-list-item-action`,disabled:te?E:!1};return c.isValidElement(F)?c.createElement(gt,Object.assign({},ee,{icon:qr(F,Object.assign(Object.assign({},F.props),{onClick:()=>{}}))})):c.createElement(gt,Object.assign({},ee),c.createElement("span",null,F))};c.useImperativeHandle(t,()=>({handlePreview:_,handleDownload:R}));const{getPrefixCls:T}=c.useContext(kt),k=T("upload",d),D=T(),L=Q(`${k}-list`,`${k}-list-${n}`),B=c.useMemo(()=>Xn(Ug(D),["onAppearEnd","onEnterEnd","onLeaveEnd"]),[D]),H=Object.assign(Object.assign({},I?{}:B),{motionDeadline:2e3,motionName:`${k}-${I?"animate-inline":"animate"}`,keys:Ne(f.map(F=>({key:F.uid,file:F}))),motionAppear:P});return c.createElement("div",{className:L},c.createElement(uT,Object.assign({},H,{component:!1}),({key:F,file:W,className:q,style:G})=>c.createElement(kXe,{key:F,locale:s,prefixCls:k,className:q,style:G,file:W,items:f,progress:w,listType:n,isImgUrl:u,showPreviewIcon:m,showRemoveIcon:h,showDownloadIcon:p,removeIcon:b,previewIcon:v,downloadIcon:y,extra:x,iconRender:A,actionIconRender:M,itemRender:$,onPreview:_,onDownload:R,onClose:N})),C&&c.createElement(si,Object.assign({},H,{visible:S,forceRender:!0}),({className:F,style:W})=>qr(C,q=>({className:Q(q.className,F),style:Object.assign(Object.assign(Object.assign({},W),{pointerEvents:F?"none":void 0}),q.style)}))))},DXe=c.forwardRef(AXe);var LXe=function(e,t,n,r){function o(i){return i instanceof n?i:new n(function(a){a(i)})}return new(n||(n=Promise))(function(i,a){function s(d){try{u(r.next(d))}catch(f){a(f)}}function l(d){try{u(r.throw(d))}catch(f){a(f)}}function u(d){d.done?i(d.value):o(d.value).then(s,l)}u((r=r.apply(e,[])).next())})};const jp=`__LIST_IGNORE_${Date.now()}__`,zXe=(e,t)=>{const n=Br("upload"),{fileList:r,defaultFileList:o,onRemove:i,showUploadList:a=!0,listType:s="text",onPreview:l,onDownload:u,onChange:d,onDrop:f,previewFile:m,disabled:h,locale:p,iconRender:b,isImageUrl:v,progress:y,prefixCls:x,className:w,type:C="select",children:S,style:$,itemRender:E,maxCount:O,data:P={},multiple:j=!1,hasControlInside:I=!0,action:_="",accept:R="",supportServerRender:N=!0,rootClassName:A}=e,M=c.useContext(ai),T=h??M,k=e.customRequest||n.customRequest,[D,L]=kn(o||[],{value:r,postState:ve=>ve??[]}),[B,H]=c.useState("drop"),F=c.useRef(null),W=c.useRef(null);c.useMemo(()=>{const ve=Date.now();(r||[]).forEach((me,Se)=>{!me.uid&&!Object.isFrozen(me)&&(me.uid=`__AUTO__${ve}_${Se}__`)})},[r]);const q=(ve,me,Se)=>{let De=Ne(me),et=!1;O===1?De=De.slice(-1):O&&(et=De.length>O,De=De.slice(0,O)),Fi.flushSync(()=>{L(De)});const rt={file:ve,fileList:De};Se&&(rt.event=Se),(!et||ve.status==="removed"||De.some(Me=>Me.uid===ve.uid))&&Fi.flushSync(()=>{d==null||d(rt)})},G=(ve,me)=>LXe(void 0,void 0,void 0,function*(){const{beforeUpload:Se,transformFile:De}=e;let et=ve;if(Se){const rt=yield Se(ve,me);if(rt===!1)return!1;if(delete ve[jp],rt===jp)return Object.defineProperty(ve,jp,{value:!0,configurable:!0}),!1;typeof rt=="object"&&rt&&(et=rt)}return De&&(et=yield De(et)),et}),te=ve=>{const me=ve.filter(et=>!et.file[jp]);if(!me.length)return;const Se=me.map(et=>Oy(et.file));let De=Ne(D);Se.forEach(et=>{De=Py(et,De)}),Se.forEach((et,rt)=>{let Me=et;if(me[rt].parsedFile)et.status="uploading";else{const{originFileObj:We}=et;let Qe;try{Qe=new File([We],We.name,{type:We.type})}catch{Qe=new Blob([We],{type:We.type}),Qe.name=We.name,Qe.lastModifiedDate=new Date,Qe.lastModified=new Date().getTime()}Qe.uid=et.uid,Me=Qe}q(Me,De)})},ee=(ve,me,Se)=>{try{typeof ve=="string"&&(ve=JSON.parse(ve))}catch{}if(!q2(me,D))return;const De=Oy(me);De.status="done",De.percent=100,De.response=ve,De.xhr=Se;const et=Py(De,D);q(De,et)},z=(ve,me)=>{if(!q2(me,D))return;const Se=Oy(me);Se.status="uploading",Se.percent=ve.percent;const De=Py(Se,D);q(Se,De,ve)},ne=(ve,me,Se)=>{if(!q2(Se,D))return;const De=Oy(Se);De.error=ve,De.response=me,De.status="error";const et=Py(De,D);q(De,et)},X=ve=>{let me;Promise.resolve(typeof i=="function"?i(ve):i).then(Se=>{var De;if(Se===!1)return;const et=IXe(ve,D);et&&(me=Object.assign(Object.assign({},ve),{status:"removed"}),D==null||D.forEach(rt=>{const Me=me.uid!==void 0?"uid":"name";rt[Me]===me[Me]&&!Object.isFrozen(rt)&&(rt.status="removed")}),(De=F.current)===null||De===void 0||De.abort(me),q(me,et))})},U=ve=>{H(ve.type),ve.type==="drop"&&(f==null||f(ve))};c.useImperativeHandle(t,()=>({onBatchStart:te,onSuccess:ee,onProgress:z,onError:ne,fileList:D,upload:F.current,nativeElement:W.current}));const{getPrefixCls:le,direction:se,upload:ae}=c.useContext(kt),re=le("upload",x),fe=Object.assign(Object.assign({onBatchStart:te,onError:ne,onProgress:z,onSuccess:ee},e),{customRequest:k,data:P,multiple:j,action:_,accept:R,supportServerRender:N,prefixCls:re,disabled:T,beforeUpload:G,onChange:void 0,hasControlInside:I});delete fe.className,delete fe.style,(!S||T)&&delete fe.id;const ye=`${re}-wrapper`,[Pe,Oe,V]=bXe(re,ye),[J]=ca("Upload",cs.Upload),{showRemoveIcon:oe,showPreviewIcon:de,showDownloadIcon:be,removeIcon:ge,previewIcon:ie,downloadIcon:he,extra:xe}=typeof a=="boolean"?{}:a,Re=typeof oe>"u"?!T:oe,Ce=(ve,me)=>a?c.createElement(DXe,{prefixCls:re,listType:s,items:D,previewFile:m,onPreview:l,onDownload:u,onRemove:X,showRemoveIcon:Re,showPreviewIcon:de,showDownloadIcon:be,removeIcon:ge,previewIcon:ie,downloadIcon:he,iconRender:b,extra:xe,locale:Object.assign(Object.assign({},J),p),isImageUrl:v,progress:y,appendAction:ve,appendActionVisible:me,itemRender:E,disabled:T}):ve,pe=Q(ye,w,A,Oe,V,ae==null?void 0:ae.className,{[`${re}-rtl`]:se==="rtl",[`${re}-picture-card-wrapper`]:s==="picture-card",[`${re}-picture-circle-wrapper`]:s==="picture-circle"}),_e=Object.assign(Object.assign({},ae==null?void 0:ae.style),$);if(C==="drag"){const ve=Q(Oe,re,`${re}-drag`,{[`${re}-drag-uploading`]:D.some(me=>me.status==="uploading"),[`${re}-drag-hover`]:B==="dragover",[`${re}-disabled`]:T,[`${re}-rtl`]:se==="rtl"});return Pe(c.createElement("span",{className:pe,ref:W},c.createElement("div",{className:ve,style:_e,onDrop:U,onDragOver:U,onDragLeave:U},c.createElement(Kj,Object.assign({},fe,{ref:F,className:`${re}-btn`}),c.createElement("div",{className:`${re}-drag-container`},S))),Ce()))}const we=Q(re,`${re}-select`,{[`${re}-disabled`]:T,[`${re}-hidden`]:!S}),$e=c.createElement("div",{className:we,style:_e},c.createElement(Kj,Object.assign({},fe,{ref:F})));return Pe(s==="picture-card"||s==="picture-circle"?c.createElement("span",{className:pe,ref:W},Ce($e,!!S)):c.createElement("span",{className:pe,ref:W},$e,Ce()))},mne=c.forwardRef(zXe);var FXe=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 BXe=c.forwardRef((e,t)=>{const{style:n,height:r,hasControlInside:o=!1,children:i}=e,a=FXe(e,["style","height","hasControlInside","children"]),s=Object.assign(Object.assign({},n),{height:r});return c.createElement(mne,Object.assign({ref:t,hasControlInside:o},a,{style:s,type:"drag"}),i)}),qp=mne;qp.Dragger=BXe;qp.LIST_IGNORE=jp;const hne=c.createContext({}),HXe={aliceblue:"9ehhb",antiquewhite:"9sgk7",aqua:"1ekf",aquamarine:"4zsno",azure:"9eiv3",beige:"9lhp8",bisque:"9zg04",black:"0",blanchedalmond:"9zhe5",blue:"73",blueviolet:"5e31e",brown:"6g016",burlywood:"8ouiv",cadetblue:"3qba8",chartreuse:"4zshs",chocolate:"87k0u",coral:"9yvyo",cornflowerblue:"3xael",cornsilk:"9zjz0",crimson:"8l4xo",cyan:"1ekf",darkblue:"3v",darkcyan:"rkb",darkgoldenrod:"776yz",darkgray:"6mbhl",darkgreen:"jr4",darkgrey:"6mbhl",darkkhaki:"7ehkb",darkmagenta:"5f91n",darkolivegreen:"3bzfz",darkorange:"9yygw",darkorchid:"5z6x8",darkred:"5f8xs",darksalmon:"9441m",darkseagreen:"5lwgf",darkslateblue:"2th1n",darkslategray:"1ugcv",darkslategrey:"1ugcv",darkturquoise:"14up",darkviolet:"5rw7n",deeppink:"9yavn",deepskyblue:"11xb",dimgray:"442g9",dimgrey:"442g9",dodgerblue:"16xof",firebrick:"6y7tu",floralwhite:"9zkds",forestgreen:"1cisi",fuchsia:"9y70f",gainsboro:"8m8kc",ghostwhite:"9pq0v",goldenrod:"8j4f4",gold:"9zda8",gray:"50i2o",green:"pa8",greenyellow:"6senj",grey:"50i2o",honeydew:"9eiuo",hotpink:"9yrp0",indianred:"80gnw",indigo:"2xcoy",ivory:"9zldc",khaki:"9edu4",lavenderblush:"9ziet",lavender:"90c8q",lawngreen:"4vk74",lemonchiffon:"9zkct",lightblue:"6s73a",lightcoral:"9dtog",lightcyan:"8s1rz",lightgoldenrodyellow:"9sjiq",lightgray:"89jo3",lightgreen:"5nkwg",lightgrey:"89jo3",lightpink:"9z6wx",lightsalmon:"9z2ii",lightseagreen:"19xgq",lightskyblue:"5arju",lightslategray:"4nwk9",lightslategrey:"4nwk9",lightsteelblue:"6wau6",lightyellow:"9zlcw",lime:"1edc",limegreen:"1zcxe",linen:"9shk6",magenta:"9y70f",maroon:"4zsow",mediumaquamarine:"40eju",mediumblue:"5p",mediumorchid:"79qkz",mediumpurple:"5r3rv",mediumseagreen:"2d9ip",mediumslateblue:"4tcku",mediumspringgreen:"1di2",mediumturquoise:"2uabw",mediumvioletred:"7rn9h",midnightblue:"z980",mintcream:"9ljp6",mistyrose:"9zg0x",moccasin:"9zfzp",navajowhite:"9zest",navy:"3k",oldlace:"9wq92",olive:"50hz4",olivedrab:"472ub",orange:"9z3eo",orangered:"9ykg0",orchid:"8iu3a",palegoldenrod:"9bl4a",palegreen:"5yw0o",paleturquoise:"6v4ku",palevioletred:"8k8lv",papayawhip:"9zi6t",peachpuff:"9ze0p",peru:"80oqn",pink:"9z8wb",plum:"8nba5",powderblue:"6wgdi",purple:"4zssg",rebeccapurple:"3zk49",red:"9y6tc",rosybrown:"7cv4f",royalblue:"2jvtt",saddlebrown:"5fmkz",salmon:"9rvci",sandybrown:"9jn1c",seagreen:"1tdnb",seashell:"9zje6",sienna:"6973h",silver:"7ir40",skyblue:"5arjf",slateblue:"45e4t",slategray:"4e100",slategrey:"4e100",snow:"9zke2",springgreen:"1egv",steelblue:"2r1kk",tan:"87yx8",teal:"pds",thistle:"8ggk8",tomato:"9yqfb",turquoise:"2j4r4",violet:"9b10u",wheat:"9ld4j",white:"9zldr",whitesmoke:"9lhpx",yellow:"9zl6o",yellowgreen:"61fzm"},Ao=Math.round;function G2(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 e7=(e,t,n)=>n===0?e:e/100;function fp(e,t){const n=t||255;return e>n?n:e<0?0:e}class Uf{constructor(t){li(this,"isValid",!0);li(this,"r",0);li(this,"g",0);li(this,"b",0);li(this,"a",1);li(this,"_h");li(this,"_s");li(this,"_l");li(this,"_v");li(this,"_max");li(this,"_min");li(this,"_brightness");function n(r){return r[0]in t&&r[1]in t&&r[2]in t}if(t)if(typeof t=="string"){let o=function(i){return r.startsWith(i)};const r=t.trim();if(/^#?[A-F\d]{3,8}$/i.test(r))this.fromHexString(r);else if(o("rgb"))this.fromRgbString(r);else if(o("hsl"))this.fromHslString(r);else if(o("hsv")||o("hsb"))this.fromHsvString(r);else{const i=HXe[r.toLowerCase()];i&&this.fromHexString(parseInt(i,36).toString(16).padStart(6,"0"))}}else if(t instanceof Uf)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=fp(t.r),this.g=fp(t.g),this.b=fp(t.b),this.a=typeof t.a=="number"?fp(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(i){const a=i/255;return a<=.03928?a/12.92:Math.pow((a+.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=Ao(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,i=s=>(r[s]-this[s])*o+this[s],a={r:Ao(i("r")),g:Ao(i("g")),b:Ao(i("b")),a:Ao(i("a")*100)/100};return this._c(a)}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=i=>Ao((this[i]*this.a+n[i]*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 i=Ao(this.a*255).toString(16);t+=i.length===2?i:"0"+i}return t}toHsl(){return{h:this.getHue(),s:this.getSaturation(),l:this.getLightness(),a:this.a}}toHslString(){const t=this.getHue(),n=Ao(this.getSaturation()*100),r=Ao(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]=fp(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,i){return parseInt(n[o]+n[i||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=Ao(r*255);this.r=m,this.g=m,this.b=m}let i=0,a=0,s=0;const l=t/60,u=(1-Math.abs(2*r-1))*n,d=u*(1-Math.abs(l%2-1));l>=0&&l<1?(i=u,a=d):l>=1&&l<2?(i=d,a=u):l>=2&&l<3?(a=u,s=d):l>=3&&l<4?(a=d,s=u):l>=4&&l<5?(i=d,s=u):l>=5&&l<6&&(i=u,s=d);const f=r-u/2;this.r=Ao((i+f)*255),this.g=Ao((a+f)*255),this.b=Ao((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 i=Ao(r*255);if(this.r=i,this.g=i,this.b=i,n<=0)return;const a=t/60,s=Math.floor(a),l=a-s,u=Ao(r*(1-n)*255),d=Ao(r*(1-n*l)*255),f=Ao(r*(1-n*(1-l))*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=G2(t,e7);this.fromHsv({h:n[0],s:n[1],v:n[2],a:n[3]})}fromHslString(t){const n=G2(t,e7);this.fromHsl({h:n[0],s:n[1],l:n[2],a:n[3]})}fromRgbString(t){const n=G2(t,(r,o)=>o.includes("%")?Ao(r/100*255):r);this.r=n[0],this.g=n[1],this.b=n[2],this.a=n[3]}}const jy=2,t7=.16,VXe=.05,WXe=.05,UXe=.15,pne=5,gne=4,KXe=[{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 n7(e,t,n){let r;return Math.round(e.h)>=60&&Math.round(e.h)<=240?r=n?Math.round(e.h)-jy*t:Math.round(e.h)+jy*t:r=n?Math.round(e.h)+jy*t:Math.round(e.h)-jy*t,r<0?r+=360:r>=360&&(r-=360),r}function r7(e,t,n){if(e.h===0&&e.s===0)return e.s;let r;return n?r=e.s-t7*t:t===gne?r=e.s+t7:r=e.s+VXe*t,r>1&&(r=1),n&&t===pne&&r>.1&&(r=.1),r<.06&&(r=.06),Math.round(r*100)/100}function o7(e,t,n){let r;return n?r=e.v+WXe*t:r=e.v-UXe*t,r=Math.max(0,Math.min(1,r)),Math.round(r*100)/100}function qXe(e,t={}){const n=[],r=new Uf(e),o=r.toHsv();for(let i=pne;i>0;i-=1){const a=new Uf({h:n7(o,i,!0),s:r7(o,i,!0),v:o7(o,i,!0)});n.push(a)}n.push(r);for(let i=1;i<=gne;i+=1){const a=new Uf({h:n7(o,i),s:r7(o,i),v:o7(o,i)});n.push(a)}return t.theme==="dark"?KXe.map(({index:i,amount:a})=>new Uf(t.backgroundColor||"#141414").mix(n[i],a).toHexString()):n.map(i=>i.toHexString())}const qj=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];qj.primary=qj[5];function GXe(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function XXe(e,t){if(!e)return!1;if(e.contains)return e.contains(t);let n=t;for(;n;){if(n===e)return!0;n=n.parentNode}return!1}const i7="data-rc-order",a7="data-rc-priority",YXe="rc-util-key",Gj=new Map;function vne({mark:e}={}){return e?e.startsWith("data-")?e:`data-${e}`:YXe}function j3(e){return e.attachTo?e.attachTo:document.querySelector("head")||document.body}function ZXe(e){return e==="queue"?"prependQueue":e?"prepend":"append"}function I3(e){return Array.from((Gj.get(e)||e).children).filter(t=>t.tagName==="STYLE")}function yne(e,t={}){if(!GXe())return null;const{csp:n,prepend:r,priority:o=0}=t,i=ZXe(r),a=i==="prependQueue",s=document.createElement("style");s.setAttribute(i7,i),a&&o&&s.setAttribute(a7,`${o}`),n!=null&&n.nonce&&(s.nonce=n==null?void 0:n.nonce),s.innerHTML=e;const l=j3(t),{firstChild:u}=l;if(r){if(a){const d=(t.styles||I3(l)).filter(f=>{if(!["prepend","prependQueue"].includes(f.getAttribute(i7)))return!1;const m=Number(f.getAttribute(a7)||0);return o>=m});if(d.length)return l.insertBefore(s,d[d.length-1].nextSibling),s}l.insertBefore(s,u)}else l.appendChild(s);return s}function JXe(e,t={}){let{styles:n}=t;return n||(n=I3(j3(t))),n.find(r=>r.getAttribute(vne(t))===e)}function QXe(e,t){const n=Gj.get(e);if(!n||!XXe(document,n)){const r=yne("",t),{parentNode:o}=r;Gj.set(e,o),e.removeChild(r)}}function eYe(e,t,n={}){var l,u,d;const r=j3(n),o=I3(r),i={...n,styles:o};QXe(r,i);const a=JXe(t,i);if(a)return(l=i.csp)!=null&&l.nonce&&a.nonce!==((u=i.csp)==null?void 0:u.nonce)&&(a.nonce=(d=i.csp)==null?void 0:d.nonce),a.innerHTML!==e&&(a.innerHTML=e),a;const s=yne(e,i);return s.setAttribute(vne(i),t),s}function bne(e){var t;return(t=e==null?void 0:e.getRootNode)==null?void 0:t.call(e)}function tYe(e){return bne(e)instanceof ShadowRoot}function nYe(e){return tYe(e)?bne(e):null}let Xj={};const rYe=e=>{};function oYe(e,t){}function iYe(e,t){}function aYe(){Xj={}}function xne(e,t,n){!t&&!Xj[n]&&(e(!1,n),Xj[n]=!0)}function fC(e,t){xne(oYe,e,t)}function sYe(e,t){xne(iYe,e,t)}fC.preMessage=rYe;fC.resetWarned=aYe;fC.noteOnce=sYe;function lYe(e){return e.replace(/-(.)/g,(t,n)=>n.toUpperCase())}function cYe(e,t){fC(e,`[@ant-design/icons] ${t}`)}function s7(e){return typeof e=="object"&&typeof e.name=="string"&&typeof e.theme=="string"&&(typeof e.icon=="object"||typeof e.icon=="function")}function l7(e={}){return Object.keys(e).reduce((t,n)=>{const r=e[n];switch(n){case"class":t.className=r,delete t.class;break;default:delete t[n],t[lYe(n)]=r}return t},{})}function Yj(e,t,n){return n?ce.createElement(e.tag,{key:t,...l7(e.attrs),...n},(e.children||[]).map((r,o)=>Yj(r,`${t}-${e.tag}-${o}`))):ce.createElement(e.tag,{key:t,...l7(e.attrs)},(e.children||[]).map((r,o)=>Yj(r,`${t}-${e.tag}-${o}`)))}function wne(e){return qXe(e)[0]}function Sne(e){return e?Array.isArray(e)?e:[e]:[]}const uYe=`
.anticon {
  display: inline-flex;
  align-items: center;
  color: inherit;
  font-style: normal;
  line-height: 0;
  text-align: center;
  text-transform: none;
  vertical-align: -0.125em;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.anticon > * {
  line-height: 1;
}

.anticon svg {
  display: inline-block;
  vertical-align: inherit;
}

.anticon::before {
  display: none;
}

.anticon .anticon-icon {
  display: block;
}

.anticon[tabindex] {
  cursor: pointer;
}

.anticon-spin::before,
.anticon-spin {
  display: inline-block;
  -webkit-animation: loadingCircle 1s infinite linear;
  animation: loadingCircle 1s infinite linear;
}

@-webkit-keyframes loadingCircle {
  100% {
    -webkit-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}

@keyframes loadingCircle {
  100% {
    -webkit-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}
`,dYe=e=>{const{csp:t,prefixCls:n,layer:r}=c.useContext(hne);let o=uYe;n&&(o=o.replace(/anticon/g,n)),r&&(o=`@layer ${r} {
${o}
}`),c.useEffect(()=>{const i=e.current,a=nYe(i);eYe(o,"@ant-design-icons",{prepend:!r,csp:t,attachTo:a})},[])},Gp={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function fYe({primaryColor:e,secondaryColor:t}){Gp.primaryColor=e,Gp.secondaryColor=t||wne(e),Gp.calculated=!!t}function mYe(){return{...Gp}}const Rh=e=>{const{icon:t,className:n,onClick:r,style:o,primaryColor:i,secondaryColor:a,...s}=e,l=c.useRef(null);let u=Gp;if(i&&(u={primaryColor:i,secondaryColor:a||wne(i)}),dYe(l),cYe(s7(t),`icon should be icon definiton, but got ${t}`),!s7(t))return null;let d=t;return d&&typeof d.icon=="function"&&(d={...d,icon:d.icon(u.primaryColor,u.secondaryColor)}),Yj(d.icon,`svg-${d.name}`,{className:n,onClick:r,style:o,"data-icon":d.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",...s,ref:l})};Rh.displayName="IconReact";Rh.getTwoToneColors=mYe;Rh.setTwoToneColors=fYe;function Cne(e){const[t,n]=Sne(e);return Rh.setTwoToneColors({primaryColor:t,secondaryColor:n})}function hYe(){const e=Rh.getTwoToneColors();return e.calculated?[e.primaryColor,e.secondaryColor]:e.primaryColor}function Zj(){return Zj=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Zj.apply(this,arguments)}Cne(qj.primary);const rn=c.forwardRef((e,t)=>{const{className:n,icon:r,spin:o,rotate:i,tabIndex:a,onClick:s,twoToneColor:l,...u}=e,{prefixCls:d="anticon",rootClassName:f}=c.useContext(hne),m=Zn(f,d,{[`${d}-${r.name}`]:!!r.name,[`${d}-spin`]:!!o||r.name==="loading"},n);let h=a;h===void 0&&s&&(h=-1);const p=i?{msTransform:`rotate(${i}deg)`,transform:`rotate(${i}deg)`}:void 0,[b,v]=Sne(l);return c.createElement("span",Zj({role:"img","aria-label":r.name},u,{ref:t,tabIndex:h,onClick:s,className:m}),c.createElement(Rh,{icon:r,primaryColor:b,secondaryColor:v,style:p}))});rn.getTwoToneColor=hYe;rn.setTwoToneColor=Cne;var pYe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M917.7 148.8l-42.4-42.4c-1.6-1.6-3.6-2.3-5.7-2.3s-4.1.8-5.7 2.3l-76.1 76.1a199.27 199.27 0 00-112.1-34.3c-51.2 0-102.4 19.5-141.5 58.6L432.3 308.7a8.03 8.03 0 000 11.3L704 591.7c1.6 1.6 3.6 2.3 5.7 2.3 2 0 4.1-.8 5.7-2.3l101.9-101.9c68.9-69 77-175.7 24.3-253.5l76.1-76.1c3.1-3.2 3.1-8.3 0-11.4zM769.1 441.7l-59.4 59.4-186.8-186.8 59.4-59.4c24.9-24.9 58.1-38.7 93.4-38.7 35.3 0 68.4 13.7 93.4 38.7 24.9 24.9 38.7 58.1 38.7 93.4 0 35.3-13.8 68.4-38.7 93.4zm-190.2 105a8.03 8.03 0 00-11.3 0L501 613.3 410.7 523l66.7-66.7c3.1-3.1 3.1-8.2 0-11.3L441 408.6a8.03 8.03 0 00-11.3 0L363 475.3l-43-43a7.85 7.85 0 00-5.7-2.3c-2 0-4.1.8-5.7 2.3L206.8 534.2c-68.9 69-77 175.7-24.3 253.5l-76.1 76.1a8.03 8.03 0 000 11.3l42.4 42.4c1.6 1.6 3.6 2.3 5.7 2.3s4.1-.8 5.7-2.3l76.1-76.1c33.7 22.9 72.9 34.3 112.1 34.3 51.2 0 102.4-19.5 141.5-58.6l101.9-101.9c3.1-3.1 3.1-8.2 0-11.3l-43-43 66.7-66.7c3.1-3.1 3.1-8.2 0-11.3l-36.6-36.2zM441.7 769.1a131.32 131.32 0 01-93.4 38.7c-35.3 0-68.4-13.7-93.4-38.7a131.32 131.32 0 01-38.7-93.4c0-35.3 13.7-68.4 38.7-93.4l59.4-59.4 186.8 186.8-59.4 59.4z"}}]},name:"api",theme:"outlined"};function Jj(){return Jj=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Jj.apply(this,arguments)}const gYe=(e,t)=>c.createElement(rn,Jj({},e,{ref:t,icon:pYe})),mC=c.forwardRef(gYe);var vYe={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"};function Qj(){return Qj=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Qj.apply(this,arguments)}const yYe=(e,t)=>c.createElement(rn,Qj({},e,{ref:t,icon:vYe})),bYe=c.forwardRef(yYe);var xYe={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"};function eI(){return eI=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},eI.apply(this,arguments)}const wYe=(e,t)=>c.createElement(rn,eI({},e,{ref:t,icon:xYe})),SYe=c.forwardRef(wYe);var CYe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M894 462c30.9 0 43.8-39.7 18.7-58L530.8 126.2a31.81 31.81 0 00-37.6 0L111.3 404c-25.1 18.2-12.2 58 18.8 58H192v374h-72c-4.4 0-8 3.6-8 8v52c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-52c0-4.4-3.6-8-8-8h-72V462h62zM512 196.7l271.1 197.2H240.9L512 196.7zM264 462h117v374H264V462zm189 0h117v374H453V462zm307 374H642V462h118v374z"}}]},name:"bank",theme:"outlined"};function tI(){return tI=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},tI.apply(this,arguments)}const $Ye=(e,t)=>c.createElement(rn,tI({},e,{ref:t,icon:CYe})),_3=c.forwardRef($Ye);var EYe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M888 792H200V168c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v688c0 4.4 3.6 8 8 8h752c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm-600-80h56c4.4 0 8-3.6 8-8V560c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v144c0 4.4 3.6 8 8 8zm152 0h56c4.4 0 8-3.6 8-8V384c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v320c0 4.4 3.6 8 8 8zm152 0h56c4.4 0 8-3.6 8-8V462c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v242c0 4.4 3.6 8 8 8zm152 0h56c4.4 0 8-3.6 8-8V304c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v400c0 4.4 3.6 8 8 8z"}}]},name:"bar-chart",theme:"outlined"};function nI(){return nI=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},nI.apply(this,arguments)}const OYe=(e,t)=>c.createElement(rn,nI({},e,{ref:t,icon:EYe})),PYe=c.forwardRef(OYe);var jYe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M816 768h-24V428c0-141.1-104.3-257.7-240-277.1V112c0-22.1-17.9-40-40-40s-40 17.9-40 40v38.9c-135.7 19.4-240 136-240 277.1v340h-24c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h216c0 61.8 50.2 112 112 112s112-50.2 112-112h216c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM512 888c-26.5 0-48-21.5-48-48h96c0 26.5-21.5 48-48 48zM304 768V428c0-55.6 21.6-107.8 60.9-147.1S456.4 220 512 220c55.6 0 107.8 21.6 147.1 60.9S720 372.4 720 428v340H304z"}}]},name:"bell",theme:"outlined"};function rI(){return rI=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},rI.apply(this,arguments)}const IYe=(e,t)=>c.createElement(rn,rI({},e,{ref:t,icon:jYe})),$ne=c.forwardRef(IYe);function oI(){return oI=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},oI.apply(this,arguments)}const _Ye=(e,t)=>c.createElement(rn,oI({},e,{ref:t,icon:Yee})),iI=c.forwardRef(_Ye);var NYe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M864 248H728l-32.4-90.8a32.07 32.07 0 00-30.2-21.2H358.6c-13.5 0-25.6 8.5-30.1 21.2L296 248H160c-44.2 0-80 35.8-80 80v456c0 44.2 35.8 80 80 80h704c44.2 0 80-35.8 80-80V328c0-44.2-35.8-80-80-80zm8 536c0 4.4-3.6 8-8 8H160c-4.4 0-8-3.6-8-8V328c0-4.4 3.6-8 8-8h186.7l17.1-47.8 22.9-64.2h250.5l22.9 64.2 17.1 47.8H864c4.4 0 8 3.6 8 8v456zM512 384c-88.4 0-160 71.6-160 160s71.6 160 160 160 160-71.6 160-160-71.6-160-160-160zm0 256c-53 0-96-43-96-96s43-96 96-96 96 43 96 96-43 96-96 96z"}}]},name:"camera",theme:"outlined"};function aI(){return aI=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},aI.apply(this,arguments)}const RYe=(e,t)=>c.createElement(rn,aI({},e,{ref:t,icon:NYe})),sI=c.forwardRef(RYe);var TYe={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"};function lI(){return lI=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},lI.apply(this,arguments)}const MYe=(e,t)=>c.createElement(rn,lI({},e,{ref:t,icon:TYe})),Ene=c.forwardRef(MYe);function cI(){return cI=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},cI.apply(this,arguments)}const kYe=(e,t)=>c.createElement(rn,cI({},e,{ref:t,icon:VJ})),AYe=c.forwardRef(kYe);function uI(){return uI=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},uI.apply(this,arguments)}const DYe=(e,t)=>c.createElement(rn,uI({},e,{ref:t,icon:yZ})),LYe=c.forwardRef(DYe);var zYe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M704 446H320c-4.4 0-8 3.6-8 8v402c0 4.4 3.6 8 8 8h384c4.4 0 8-3.6 8-8V454c0-4.4-3.6-8-8-8zm-328 64h272v117H376V510zm272 290H376V683h272v117z"}},{tag:"path",attrs:{d:"M424 748a32 32 0 1064 0 32 32 0 10-64 0zm0-178a32 32 0 1064 0 32 32 0 10-64 0z"}},{tag:"path",attrs:{d:"M811.4 368.9C765.6 248 648.9 162 512.2 162S258.8 247.9 213 368.8C126.9 391.5 63.5 470.2 64 563.6 64.6 668 145.6 752.9 247.6 762c4.7.4 8.7-3.3 8.7-8v-60.4c0-4-3-7.4-7-7.9-27-3.4-52.5-15.2-72.1-34.5-24-23.5-37.2-55.1-37.2-88.6 0-28 9.1-54.4 26.2-76.4 16.7-21.4 40.2-36.9 66.1-43.7l37.9-10 13.9-36.7c8.6-22.8 20.6-44.2 35.7-63.5 14.9-19.2 32.6-36 52.4-50 41.1-28.9 89.5-44.2 140-44.2s98.9 15.3 140 44.3c19.9 14 37.5 30.8 52.4 50 15.1 19.3 27.1 40.7 35.7 63.5l13.8 36.6 37.8 10c54.2 14.4 92.1 63.7 92.1 120 0 33.6-13.2 65.1-37.2 88.6-19.5 19.2-44.9 31.1-71.9 34.5-4 .5-6.9 3.9-6.9 7.9V754c0 4.7 4.1 8.4 8.8 8 101.7-9.2 182.5-94 183.2-198.2.6-93.4-62.7-172.1-148.6-194.9z"}}]},name:"cloud-server",theme:"outlined"};function dI(){return dI=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},dI.apply(this,arguments)}const FYe=(e,t)=>c.createElement(rn,dI({},e,{ref:t,icon:zYe})),BYe=c.forwardRef(FYe);var HYe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M924.8 385.6a446.7 446.7 0 00-96-142.4 446.7 446.7 0 00-142.4-96C631.1 123.8 572.5 112 512 112s-119.1 11.8-174.4 35.2a446.7 446.7 0 00-142.4 96 446.7 446.7 0 00-96 142.4C75.8 440.9 64 499.5 64 560c0 132.7 58.3 257.7 159.9 343.1l1.7 1.4c5.8 4.8 13.1 7.5 20.6 7.5h531.7c7.5 0 14.8-2.7 20.6-7.5l1.7-1.4C901.7 817.7 960 692.7 960 560c0-60.5-11.9-119.1-35.2-174.4zM761.4 836H262.6A371.12 371.12 0 01140 560c0-99.4 38.7-192.8 109-263 70.3-70.3 163.7-109 263-109 99.4 0 192.8 38.7 263 109 70.3 70.3 109 163.7 109 263 0 105.6-44.5 205.5-122.6 276zM623.5 421.5a8.03 8.03 0 00-11.3 0L527.7 506c-18.7-5-39.4-.2-54.1 14.5a55.95 55.95 0 000 79.2 55.95 55.95 0 0079.2 0 55.87 55.87 0 0014.5-54.1l84.5-84.5c3.1-3.1 3.1-8.2 0-11.3l-28.3-28.3zM490 320h44c4.4 0 8-3.6 8-8v-80c0-4.4-3.6-8-8-8h-44c-4.4 0-8 3.6-8 8v80c0 4.4 3.6 8 8 8zm260 218v44c0 4.4 3.6 8 8 8h80c4.4 0 8-3.6 8-8v-44c0-4.4-3.6-8-8-8h-80c-4.4 0-8 3.6-8 8zm12.7-197.2l-31.1-31.1a8.03 8.03 0 00-11.3 0l-56.6 56.6a8.03 8.03 0 000 11.3l31.1 31.1c3.1 3.1 8.2 3.1 11.3 0l56.6-56.6c3.1-3.1 3.1-8.2 0-11.3zm-458.6-31.1a8.03 8.03 0 00-11.3 0l-31.1 31.1a8.03 8.03 0 000 11.3l56.6 56.6c3.1 3.1 8.2 3.1 11.3 0l31.1-31.1c3.1-3.1 3.1-8.2 0-11.3l-56.6-56.6zM262 530h-80c-4.4 0-8 3.6-8 8v44c0 4.4 3.6 8 8 8h80c4.4 0 8-3.6 8-8v-44c0-4.4-3.6-8-8-8z"}}]},name:"dashboard",theme:"outlined"};function fI(){return fI=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},fI.apply(this,arguments)}const VYe=(e,t)=>c.createElement(rn,fI({},e,{ref:t,icon:HYe})),WYe=c.forwardRef(VYe);function mI(){return mI=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},mI.apply(this,arguments)}const UYe=(e,t)=>c.createElement(rn,mI({},e,{ref:t,icon:sne})),hC=c.forwardRef(UYe);var KYe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372zm47.7-395.2l-25.4-5.9V348.6c38 5.2 61.5 29 65.5 58.2.5 4 3.9 6.9 7.9 6.9h44.9c4.7 0 8.4-4.1 8-8.8-6.1-62.3-57.4-102.3-125.9-109.2V263c0-4.4-3.6-8-8-8h-28.1c-4.4 0-8 3.6-8 8v33c-70.8 6.9-126.2 46-126.2 119 0 67.6 49.8 100.2 102.1 112.7l24.7 6.3v142.7c-44.2-5.9-69-29.5-74.1-61.3-.6-3.8-4-6.6-7.9-6.6H363c-4.7 0-8.4 4-8 8.7 4.5 55 46.2 105.6 135.2 112.1V761c0 4.4 3.6 8 8 8h28.4c4.4 0 8-3.6 8-8.1l-.2-31.7c78.3-6.9 134.3-48.8 134.3-124-.1-69.4-44.2-100.4-109-116.4zm-68.6-16.2c-5.6-1.6-10.3-3.1-15-5-33.8-12.2-49.5-31.9-49.5-57.3 0-36.3 27.5-57 64.5-61.7v124zM534.3 677V543.3c3.1.9 5.9 1.6 8.8 2.2 47.3 14.4 63.2 34.4 63.2 65.1 0 39.1-29.4 62.6-72 66.4z"}}]},name:"dollar",theme:"outlined"};function hI(){return hI=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},hI.apply(this,arguments)}const qYe=(e,t)=>c.createElement(rn,hI({},e,{ref:t,icon:KYe})),GYe=c.forwardRef(qYe);function pI(){return pI=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},pI.apply(this,arguments)}const XYe=(e,t)=>c.createElement(rn,pI({},e,{ref:t,icon:fne})),YYe=c.forwardRef(XYe);function gI(){return gI=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},gI.apply(this,arguments)}const ZYe=(e,t)=>c.createElement(rn,gI({},e,{ref:t,icon:lne})),N3=c.forwardRef(ZYe);var JYe={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"};function vI(){return vI=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},vI.apply(this,arguments)}const QYe=(e,t)=>c.createElement(rn,vI({},e,{ref:t,icon:JYe})),eZe=c.forwardRef(QYe);var tZe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M531.3 574.4l.3-1.4c5.8-23.9 13.1-53.7 7.4-80.7-3.8-21.3-19.5-29.6-32.9-30.2-15.8-.7-29.9 8.3-33.4 21.4-6.6 24-.7 56.8 10.1 98.6-13.6 32.4-35.3 79.5-51.2 107.5-29.6 15.3-69.3 38.9-75.2 68.7-1.2 5.5.2 12.5 3.5 18.8 3.7 7 9.6 12.4 16.5 15 3 1.1 6.6 2 10.8 2 17.6 0 46.1-14.2 84.1-79.4 5.8-1.9 11.8-3.9 17.6-5.9 27.2-9.2 55.4-18.8 80.9-23.1 28.2 15.1 60.3 24.8 82.1 24.8 21.6 0 30.1-12.8 33.3-20.5 5.6-13.5 2.9-30.5-6.2-39.6-13.2-13-45.3-16.4-95.3-10.2-24.6-15-40.7-35.4-52.4-65.8zM421.6 726.3c-13.9 20.2-24.4 30.3-30.1 34.7 6.7-12.3 19.8-25.3 30.1-34.7zm87.6-235.5c5.2 8.9 4.5 35.8.5 49.4-4.9-19.9-5.6-48.1-2.7-51.4.8.1 1.5.7 2.2 2zm-1.6 120.5c10.7 18.5 24.2 34.4 39.1 46.2-21.6 4.9-41.3 13-58.9 20.2-4.2 1.7-8.3 3.4-12.3 5 13.3-24.1 24.4-51.4 32.1-71.4zm155.6 65.5c.1.2.2.5-.4.9h-.2l-.2.3c-.8.5-9 5.3-44.3-8.6 40.6-1.9 45 7.3 45.1 7.4zm191.4-388.2L639.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-pdf",theme:"outlined"};function yI(){return yI=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},yI.apply(this,arguments)}const nZe=(e,t)=>c.createElement(rn,yI({},e,{ref:t,icon:tZe})),rZe=c.forwardRef(nZe);function bI(){return bI=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},bI.apply(this,arguments)}const oZe=(e,t)=>c.createElement(rn,bI({},e,{ref:t,icon:E9e})),iZe=c.forwardRef(oZe);var aZe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M880.1 154H143.9c-24.5 0-39.8 26.7-27.5 48L349 597.4V838c0 17.7 14.2 32 31.8 32h262.4c17.6 0 31.8-14.3 31.8-32V597.4L907.7 202c12.2-21.3-3.1-48-27.6-48zM603.4 798H420.6V642h182.9v156zm9.6-236.6l-9.5 16.6h-183l-9.5-16.6L212.7 226h598.6L613 561.4z"}}]},name:"filter",theme:"outlined"};function xI(){return xI=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},xI.apply(this,arguments)}const sZe=(e,t)=>c.createElement(rn,xI({},e,{ref:t,icon:aZe})),One=c.forwardRef(sZe);var lZe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M312.1 591.5c3.1 3.1 8.2 3.1 11.3 0l101.8-101.8 86.1 86.2c3.1 3.1 8.2 3.1 11.3 0l226.3-226.5c3.1-3.1 3.1-8.2 0-11.3l-36.8-36.8a8.03 8.03 0 00-11.3 0L517 485.3l-86.1-86.2a8.03 8.03 0 00-11.3 0L275.3 543.4a8.03 8.03 0 000 11.3l36.8 36.8z"}},{tag:"path",attrs:{d:"M904 160H548V96c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v64H120c-17.7 0-32 14.3-32 32v520c0 17.7 14.3 32 32 32h356.4v32L311.6 884.1a7.92 7.92 0 00-2.3 11l30.3 47.2v.1c2.4 3.7 7.4 4.7 11.1 2.3L512 838.9l161.3 105.8c3.7 2.4 8.7 1.4 11.1-2.3v-.1l30.3-47.2a8 8 0 00-2.3-11L548 776.3V744h356c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-40 512H160V232h704v440z"}}]},name:"fund-projection-screen",theme:"outlined"};function wI(){return wI=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},wI.apply(this,arguments)}const cZe=(e,t)=>c.createElement(rn,wI({},e,{ref:t,icon:lZe})),uZe=c.forwardRef(cZe);var dZe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M854.4 800.9c.2-.3.5-.6.7-.9C920.6 722.1 960 621.7 960 512s-39.4-210.1-104.8-288c-.2-.3-.5-.5-.7-.8-1.1-1.3-2.1-2.5-3.2-3.7-.4-.5-.8-.9-1.2-1.4l-4.1-4.7-.1-.1c-1.5-1.7-3.1-3.4-4.6-5.1l-.1-.1c-3.2-3.4-6.4-6.8-9.7-10.1l-.1-.1-4.8-4.8-.3-.3c-1.5-1.5-3-2.9-4.5-4.3-.5-.5-1-1-1.6-1.5-1-1-2-1.9-3-2.8-.3-.3-.7-.6-1-1C736.4 109.2 629.5 64 512 64s-224.4 45.2-304.3 119.2c-.3.3-.7.6-1 1-1 .9-2 1.9-3 2.9-.5.5-1 1-1.6 1.5-1.5 1.4-3 2.9-4.5 4.3l-.3.3-4.8 4.8-.1.1c-3.3 3.3-6.5 6.7-9.7 10.1l-.1.1c-1.6 1.7-3.1 3.4-4.6 5.1l-.1.1c-1.4 1.5-2.8 3.1-4.1 4.7-.4.5-.8.9-1.2 1.4-1.1 1.2-2.1 2.5-3.2 3.7-.2.3-.5.5-.7.8C103.4 301.9 64 402.3 64 512s39.4 210.1 104.8 288c.2.3.5.6.7.9l3.1 3.7c.4.5.8.9 1.2 1.4l4.1 4.7c0 .1.1.1.1.2 1.5 1.7 3 3.4 4.6 5l.1.1c3.2 3.4 6.4 6.8 9.6 10.1l.1.1c1.6 1.6 3.1 3.2 4.7 4.7l.3.3c3.3 3.3 6.7 6.5 10.1 9.6 80.1 74 187 119.2 304.5 119.2s224.4-45.2 304.3-119.2a300 300 0 0010-9.6l.3-.3c1.6-1.6 3.2-3.1 4.7-4.7l.1-.1c3.3-3.3 6.5-6.7 9.6-10.1l.1-.1c1.5-1.7 3.1-3.3 4.6-5 0-.1.1-.1.1-.2 1.4-1.5 2.8-3.1 4.1-4.7.4-.5.8-.9 1.2-1.4a99 99 0 003.3-3.7zm4.1-142.6c-13.8 32.6-32 62.8-54.2 90.2a444.07 444.07 0 00-81.5-55.9c11.6-46.9 18.8-98.4 20.7-152.6H887c-3 40.9-12.6 80.6-28.5 118.3zM887 484H743.5c-1.9-54.2-9.1-105.7-20.7-152.6 29.3-15.6 56.6-34.4 81.5-55.9A373.86 373.86 0 01887 484zM658.3 165.5c39.7 16.8 75.8 40 107.6 69.2a394.72 394.72 0 01-59.4 41.8c-15.7-45-35.8-84.1-59.2-115.4 3.7 1.4 7.4 2.9 11 4.4zm-90.6 700.6c-9.2 7.2-18.4 12.7-27.7 16.4V697a389.1 389.1 0 01115.7 26.2c-8.3 24.6-17.9 47.3-29 67.8-17.4 32.4-37.8 58.3-59 75.1zm59-633.1c11 20.6 20.7 43.3 29 67.8A389.1 389.1 0 01540 327V141.6c9.2 3.7 18.5 9.1 27.7 16.4 21.2 16.7 41.6 42.6 59 75zM540 640.9V540h147.5c-1.6 44.2-7.1 87.1-16.3 127.8l-.3 1.2A445.02 445.02 0 00540 640.9zm0-156.9V383.1c45.8-2.8 89.8-12.5 130.9-28.1l.3 1.2c9.2 40.7 14.7 83.5 16.3 127.8H540zm-56 56v100.9c-45.8 2.8-89.8 12.5-130.9 28.1l-.3-1.2c-9.2-40.7-14.7-83.5-16.3-127.8H484zm-147.5-56c1.6-44.2 7.1-87.1 16.3-127.8l.3-1.2c41.1 15.6 85 25.3 130.9 28.1V484H336.5zM484 697v185.4c-9.2-3.7-18.5-9.1-27.7-16.4-21.2-16.7-41.7-42.7-59.1-75.1-11-20.6-20.7-43.3-29-67.8 37.2-14.6 75.9-23.3 115.8-26.1zm0-370a389.1 389.1 0 01-115.7-26.2c8.3-24.6 17.9-47.3 29-67.8 17.4-32.4 37.8-58.4 59.1-75.1 9.2-7.2 18.4-12.7 27.7-16.4V327zM365.7 165.5c3.7-1.5 7.3-3 11-4.4-23.4 31.3-43.5 70.4-59.2 115.4-21-12-40.9-26-59.4-41.8 31.8-29.2 67.9-52.4 107.6-69.2zM165.5 365.7c13.8-32.6 32-62.8 54.2-90.2 24.9 21.5 52.2 40.3 81.5 55.9-11.6 46.9-18.8 98.4-20.7 152.6H137c3-40.9 12.6-80.6 28.5-118.3zM137 540h143.5c1.9 54.2 9.1 105.7 20.7 152.6a444.07 444.07 0 00-81.5 55.9A373.86 373.86 0 01137 540zm228.7 318.5c-39.7-16.8-75.8-40-107.6-69.2 18.5-15.8 38.4-29.7 59.4-41.8 15.7 45 35.8 84.1 59.2 115.4-3.7-1.4-7.4-2.9-11-4.4zm292.6 0c-3.7 1.5-7.3 3-11 4.4 23.4-31.3 43.5-70.4 59.2-115.4 21 12 40.9 26 59.4 41.8a373.81 373.81 0 01-107.6 69.2z"}}]},name:"global",theme:"outlined"};function SI(){return SI=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},SI.apply(this,arguments)}const fZe=(e,t)=>c.createElement(rn,SI({},e,{ref:t,icon:dZe})),CI=c.forwardRef(fZe);var mZe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M464 336a48 48 0 1096 0 48 48 0 10-96 0zm72 112h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V456c0-4.4-3.6-8-8-8z"}}]},name:"info-circle",theme:"outlined"};function $I(){return $I=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},$I.apply(this,arguments)}const hZe=(e,t)=>c.createElement(rn,$I({},e,{ref:t,icon:mZe})),pZe=c.forwardRef(hZe);function EI(){return EI=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},EI.apply(this,arguments)}const gZe=(e,t)=>c.createElement(rn,EI({},e,{ref:t,icon:CZ})),OI=c.forwardRef(gZe);var vZe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M832 464h-68V240c0-70.7-57.3-128-128-128H388c-70.7 0-128 57.3-128 128v224h-68c-17.7 0-32 14.3-32 32v384c0 17.7 14.3 32 32 32h640c17.7 0 32-14.3 32-32V496c0-17.7-14.3-32-32-32zM332 240c0-30.9 25.1-56 56-56h248c30.9 0 56 25.1 56 56v224H332V240zm460 600H232V536h560v304zM484 701v53c0 4.4 3.6 8 8 8h40c4.4 0 8-3.6 8-8v-53a48.01 48.01 0 10-56 0z"}}]},name:"lock",theme:"outlined"};function PI(){return PI=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},PI.apply(this,arguments)}const yZe=(e,t)=>c.createElement(rn,PI({},e,{ref:t,icon:vZe})),bZe=c.forwardRef(yZe);var xZe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M521.7 82c-152.5-.4-286.7 78.5-363.4 197.7-3.4 5.3.4 12.3 6.7 12.3h70.3c4.8 0 9.3-2.1 12.3-5.8 7-8.5 14.5-16.7 22.4-24.5 32.6-32.5 70.5-58.1 112.7-75.9 43.6-18.4 90-27.8 137.9-27.8 47.9 0 94.3 9.3 137.9 27.8 42.2 17.8 80.1 43.4 112.7 75.9 32.6 32.5 58.1 70.4 76 112.5C865.7 417.8 875 464.1 875 512c0 47.9-9.4 94.2-27.8 137.8-17.8 42.1-43.4 80-76 112.5s-70.5 58.1-112.7 75.9A352.8 352.8 0 01520.6 866c-47.9 0-94.3-9.4-137.9-27.8A353.84 353.84 0 01270 762.3c-7.9-7.9-15.3-16.1-22.4-24.5-3-3.7-7.6-5.8-12.3-5.8H165c-6.3 0-10.2 7-6.7 12.3C234.9 863.2 368.5 942 520.6 942c236.2 0 428-190.1 430.4-425.6C953.4 277.1 761.3 82.6 521.7 82zM395.02 624v-76h-314c-4.4 0-8-3.6-8-8v-56c0-4.4 3.6-8 8-8h314v-76c0-6.7 7.8-10.5 13-6.3l141.9 112a8 8 0 010 12.6l-141.9 112c-5.2 4.1-13 .4-13-6.3z"}}]},name:"login",theme:"outlined"};function jI(){return jI=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},jI.apply(this,arguments)}const wZe=(e,t)=>c.createElement(rn,jI({},e,{ref:t,icon:xZe})),SZe=c.forwardRef(wZe);var CZe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M868 732h-70.3c-4.8 0-9.3 2.1-12.3 5.8-7 8.5-14.5 16.7-22.4 24.5a353.84 353.84 0 01-112.7 75.9A352.8 352.8 0 01512.4 866c-47.9 0-94.3-9.4-137.9-27.8a353.84 353.84 0 01-112.7-75.9 353.28 353.28 0 01-76-112.5C167.3 606.2 158 559.9 158 512s9.4-94.2 27.8-137.8c17.8-42.1 43.4-80 76-112.5s70.5-58.1 112.7-75.9c43.6-18.4 90-27.8 137.9-27.8 47.9 0 94.3 9.3 137.9 27.8 42.2 17.8 80.1 43.4 112.7 75.9 7.9 7.9 15.3 16.1 22.4 24.5 3 3.7 7.6 5.8 12.3 5.8H868c6.3 0 10.2-7 6.7-12.3C798 160.5 663.8 81.6 511.3 82 271.7 82.6 79.6 277.1 82 516.4 84.4 751.9 276.2 942 512.4 942c152.1 0 285.7-78.8 362.3-197.7 3.4-5.3-.4-12.3-6.7-12.3zm88.9-226.3L815 393.7c-5.3-4.2-13-.4-13 6.3v76H488c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h314v76c0 6.7 7.8 10.5 13 6.3l141.9-112a8 8 0 000-12.6z"}}]},name:"logout",theme:"outlined"};function II(){return II=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},II.apply(this,arguments)}const $Ze=(e,t)=>c.createElement(rn,II({},e,{ref:t,icon:CZe})),R3=c.forwardRef($Ze);var EZe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M928 160H96c-17.7 0-32 14.3-32 32v640c0 17.7 14.3 32 32 32h832c17.7 0 32-14.3 32-32V192c0-17.7-14.3-32-32-32zm-40 110.8V792H136V270.8l-27.6-21.5 39.3-50.5 42.8 33.3h643.1l42.8-33.3 39.3 50.5-27.7 21.5zM833.6 232L512 482 190.4 232l-42.8-33.3-39.3 50.5 27.6 21.5 341.6 265.6a55.99 55.99 0 0068.7 0L888 270.8l27.6-21.5-39.3-50.5-42.7 33.2z"}}]},name:"mail",theme:"outlined"};function _I(){return _I=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},_I.apply(this,arguments)}const OZe=(e,t)=>c.createElement(rn,_I({},e,{ref:t,icon:EZe})),PZe=c.forwardRef(OZe);var jZe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M408 442h480c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H408c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm-8 204c0 4.4 3.6 8 8 8h480c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H408c-4.4 0-8 3.6-8 8v56zm504-486H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 632H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM115.4 518.9L271.7 642c5.8 4.6 14.4.5 14.4-6.9V388.9c0-7.4-8.5-11.5-14.4-6.9L115.4 505.1a8.74 8.74 0 000 13.8z"}}]},name:"menu-fold",theme:"outlined"};function NI(){return NI=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},NI.apply(this,arguments)}const IZe=(e,t)=>c.createElement(rn,NI({},e,{ref:t,icon:jZe})),_Ze=c.forwardRef(IZe);var NZe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M408 442h480c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H408c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8zm-8 204c0 4.4 3.6 8 8 8h480c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H408c-4.4 0-8 3.6-8 8v56zm504-486H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zm0 632H120c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8zM142.4 642.1L298.7 519a8.84 8.84 0 000-13.9L142.4 381.9c-5.8-4.6-14.4-.5-14.4 6.9v246.3a8.9 8.9 0 0014.4 7z"}}]},name:"menu-unfold",theme:"outlined"};function RI(){return RI=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},RI.apply(this,arguments)}const RZe=(e,t)=>c.createElement(rn,RI({},e,{ref:t,icon:NZe})),TZe=c.forwardRef(RZe);var MZe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M744 62H280c-35.3 0-64 28.7-64 64v768c0 35.3 28.7 64 64 64h464c35.3 0 64-28.7 64-64V126c0-35.3-28.7-64-64-64zm-8 824H288V134h448v752zM472 784a40 40 0 1080 0 40 40 0 10-80 0z"}}]},name:"mobile",theme:"outlined"};function TI(){return TI=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},TI.apply(this,arguments)}const kZe=(e,t)=>c.createElement(rn,TI({},e,{ref:t,icon:MZe})),AZe=c.forwardRef(kZe);var DZe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M640.6 429.8h257.1c7.9 0 14.3-6.4 14.3-14.3V158.3c0-7.9-6.4-14.3-14.3-14.3H640.6c-7.9 0-14.3 6.4-14.3 14.3v92.9H490.6c-3.9 0-7.1 3.2-7.1 7.1v221.5h-85.7v-96.5c0-7.9-6.4-14.3-14.3-14.3H126.3c-7.9 0-14.3 6.4-14.3 14.3v257.2c0 7.9 6.4 14.3 14.3 14.3h257.1c7.9 0 14.3-6.4 14.3-14.3V544h85.7v221.5c0 3.9 3.2 7.1 7.1 7.1h135.7v92.9c0 7.9 6.4 14.3 14.3 14.3h257.1c7.9 0 14.3-6.4 14.3-14.3v-257c0-7.9-6.4-14.3-14.3-14.3h-257c-7.9 0-14.3 6.4-14.3 14.3v100h-78.6v-393h78.6v100c0 7.9 6.4 14.3 14.3 14.3zm53.5-217.9h150V362h-150V211.9zM329.9 587h-150V437h150v150zm364.2 75.1h150v150.1h-150V662.1z"}}]},name:"partition",theme:"outlined"};function MI(){return MI=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},MI.apply(this,arguments)}const LZe=(e,t)=>c.createElement(rn,MI({},e,{ref:t,icon:DZe})),zZe=c.forwardRef(LZe);var FZe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M877.1 238.7L770.6 132.3c-13-13-30.4-20.3-48.8-20.3s-35.8 7.2-48.8 20.3L558.3 246.8c-13 13-20.3 30.5-20.3 48.9 0 18.5 7.2 35.8 20.3 48.9l89.6 89.7a405.46 405.46 0 01-86.4 127.3c-36.7 36.9-79.6 66-127.2 86.6l-89.6-89.7c-13-13-30.4-20.3-48.8-20.3a68.2 68.2 0 00-48.8 20.3L132.3 673c-13 13-20.3 30.5-20.3 48.9 0 18.5 7.2 35.8 20.3 48.9l106.4 106.4c22.2 22.2 52.8 34.9 84.2 34.9 6.5 0 12.8-.5 19.2-1.6 132.4-21.8 263.8-92.3 369.9-198.3C818 606 888.4 474.6 910.4 342.1c6.3-37.6-6.3-76.3-33.3-103.4zm-37.6 91.5c-19.5 117.9-82.9 235.5-178.4 331s-213 158.9-330.9 178.4c-14.8 2.5-30-2.5-40.8-13.2L184.9 721.9 295.7 611l119.8 120 .9.9 21.6-8a481.29 481.29 0 00285.7-285.8l8-21.6-120.8-120.7 110.8-110.9 104.5 104.5c10.8 10.8 15.8 26 13.3 40.8z"}}]},name:"phone",theme:"outlined"};function kI(){return kI=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},kI.apply(this,arguments)}const BZe=(e,t)=>c.createElement(rn,kI({},e,{ref:t,icon:FZe})),HZe=c.forwardRef(BZe);var VZe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M719.4 499.1l-296.1-215A15.9 15.9 0 00398 297v430c0 13.1 14.8 20.5 25.3 12.9l296.1-215a15.9 15.9 0 000-25.8zm-257.6 134V390.9L628.5 512 461.8 633.1z"}}]},name:"play-circle",theme:"outlined"};function AI(){return AI=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},AI.apply(this,arguments)}const WZe=(e,t)=>c.createElement(rn,AI({},e,{ref:t,icon:VZe})),UZe=c.forwardRef(WZe);function DI(){return DI=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},DI.apply(this,arguments)}const KZe=(e,t)=>c.createElement(rn,DI({},e,{ref:t,icon:Iee})),pC=c.forwardRef(KZe);var qZe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M280 752h80c4.4 0 8-3.6 8-8V280c0-4.4-3.6-8-8-8h-80c-4.4 0-8 3.6-8 8v464c0 4.4 3.6 8 8 8zm192-280h80c4.4 0 8-3.6 8-8V280c0-4.4-3.6-8-8-8h-80c-4.4 0-8 3.6-8 8v184c0 4.4 3.6 8 8 8zm192 72h80c4.4 0 8-3.6 8-8V280c0-4.4-3.6-8-8-8h-80c-4.4 0-8 3.6-8 8v256c0 4.4 3.6 8 8 8zm216-432H144c-17.7 0-32 14.3-32 32v736c0 17.7 14.3 32 32 32h736c17.7 0 32-14.3 32-32V144c0-17.7-14.3-32-32-32zm-40 728H184V184h656v656z"}}]},name:"project",theme:"outlined"};function LI(){return LI=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},LI.apply(this,arguments)}const GZe=(e,t)=>c.createElement(rn,LI({},e,{ref:t,icon:qZe})),Pne=c.forwardRef(GZe);function zI(){return zI=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},zI.apply(this,arguments)}const XZe=(e,t)=>c.createElement(rn,zI({},e,{ref:t,icon:wWe})),c7=c.forwardRef(XZe);var YZe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M864 736c0-111.6-65.4-208-160-252.9V317.3c0-15.1-5.3-29.7-15.1-41.2L536.5 95.4C530.1 87.8 521 84 512 84s-18.1 3.8-24.5 11.4L335.1 276.1a63.97 63.97 0 00-15.1 41.2v165.8C225.4 528 160 624.4 160 736h156.5c-2.3 7.2-3.5 15-3.5 23.8 0 22.1 7.6 43.7 21.4 60.8a97.2 97.2 0 0043.1 30.6c23.1 54 75.6 88.8 134.5 88.8 29.1 0 57.3-8.6 81.4-24.8 23.6-15.8 41.9-37.9 53-64a97 97 0 0043.1-30.5 97.52 97.52 0 0021.4-60.8c0-8.4-1.1-16.4-3.1-23.8H864zM762.3 621.4c9.4 14.6 17 30.3 22.5 46.6H700V558.7a211.6 211.6 0 0162.3 62.7zM388 483.1V318.8l124-147 124 147V668H388V483.1zM239.2 668c5.5-16.3 13.1-32 22.5-46.6 16.3-25.2 37.5-46.5 62.3-62.7V668h-84.8zm388.9 116.2c-5.2 3-11.2 4.2-17.1 3.4l-19.5-2.4-2.8 19.4c-5.4 37.9-38.4 66.5-76.7 66.5-38.3 0-71.3-28.6-76.7-66.5l-2.8-19.5-19.5 2.5a27.7 27.7 0 01-17.1-3.5c-8.7-5-14.1-14.3-14.1-24.4 0-10.6 5.9-19.4 14.6-23.8h231.3c8.8 4.5 14.6 13.3 14.6 23.8-.1 10.2-5.5 19.6-14.2 24.5zM464 400a48 48 0 1096 0 48 48 0 10-96 0z"}}]},name:"rocket",theme:"outlined"};function FI(){return FI=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},FI.apply(this,arguments)}const ZZe=(e,t)=>c.createElement(rn,FI({},e,{ref:t,icon:YZe})),JZe=c.forwardRef(ZZe);var QZe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M866.9 169.9L527.1 54.1C523 52.7 517.5 52 512 52s-11 .7-15.1 2.1L157.1 169.9c-8.3 2.8-15.1 12.4-15.1 21.2v482.4c0 8.8 5.7 20.4 12.6 25.9L499.3 968c3.5 2.7 8 4.1 12.6 4.1s9.2-1.4 12.6-4.1l344.7-268.6c6.9-5.4 12.6-17 12.6-25.9V191.1c.2-8.8-6.6-18.3-14.9-21.2zM810 654.3L512 886.5 214 654.3V226.7l298-101.6 298 101.6v427.6zm-405.8-201c-3-4.1-7.8-6.6-13-6.6H336c-6.5 0-10.3 7.4-6.5 12.7l126.4 174a16.1 16.1 0 0026 0l212.6-292.7c3.8-5.3 0-12.7-6.5-12.7h-55.2c-5.1 0-10 2.5-13 6.6L468.9 542.4l-64.7-89.1z"}}]},name:"safety-certificate",theme:"outlined"};function BI(){return BI=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},BI.apply(this,arguments)}const eJe=(e,t)=>c.createElement(rn,BI({},e,{ref:t,icon:QZe})),T3=c.forwardRef(eJe);var tJe={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"};function HI(){return HI=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},HI.apply(this,arguments)}const nJe=(e,t)=>c.createElement(rn,HI({},e,{ref:t,icon:tJe})),rJe=c.forwardRef(nJe);function VI(){return VI=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},VI.apply(this,arguments)}const oJe=(e,t)=>c.createElement(rn,VI({},e,{ref:t,icon:WJ})),iJe=c.forwardRef(oJe);var aJe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M866.9 169.9L527.1 54.1C523 52.7 517.5 52 512 52s-11 .7-15.1 2.1L157.1 169.9c-8.3 2.8-15.1 12.4-15.1 21.2v482.4c0 8.8 5.7 20.4 12.6 25.9L499.3 968c3.5 2.7 8 4.1 12.6 4.1s9.2-1.4 12.6-4.1l344.7-268.6c6.9-5.4 12.6-17 12.6-25.9V191.1c.2-8.8-6.6-18.3-14.9-21.2zM810 654.3L512 886.5 214 654.3V226.7l298-101.6 298 101.6v427.6zM402.9 528.8l-77.5 77.5a8.03 8.03 0 000 11.3l34 34c3.1 3.1 8.2 3.1 11.3 0l77.5-77.5c55.7 35.1 130.1 28.4 178.6-20.1 56.3-56.3 56.3-147.5 0-203.8-56.3-56.3-147.5-56.3-203.8 0-48.5 48.5-55.2 123-20.1 178.6zm65.4-133.3c31.3-31.3 82-31.3 113.2 0 31.3 31.3 31.3 82 0 113.2-31.3 31.3-82 31.3-113.2 0s-31.3-81.9 0-113.2z"}}]},name:"security-scan",theme:"outlined"};function WI(){return WI=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},WI.apply(this,arguments)}const sJe=(e,t)=>c.createElement(rn,WI({},e,{ref:t,icon:aJe})),lJe=c.forwardRef(sJe);var cJe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M931.4 498.9L94.9 79.5c-3.4-1.7-7.3-2.1-11-1.2a15.99 15.99 0 00-11.7 19.3l86.2 352.2c1.3 5.3 5.2 9.6 10.4 11.3l147.7 50.7-147.6 50.7c-5.2 1.8-9.1 6-10.3 11.3L72.2 926.5c-.9 3.7-.5 7.6 1.2 10.9 3.9 7.9 13.5 11.1 21.5 7.2l836.5-417c3.1-1.5 5.6-4.1 7.2-7.1 3.9-8 .7-17.6-7.2-21.6zM170.8 826.3l50.3-205.6 295.2-101.3c2.3-.8 4.2-2.6 5-5 1.4-4.2-.8-8.7-5-10.2L221.1 403 171 198.2l628 314.9-628.2 313.2z"}}]},name:"send",theme:"outlined"};function UI(){return UI=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},UI.apply(this,arguments)}const uJe=(e,t)=>c.createElement(rn,UI({},e,{ref:t,icon:cJe})),dJe=c.forwardRef(uJe);var fJe={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"};function KI(){return KI=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},KI.apply(this,arguments)}const mJe=(e,t)=>c.createElement(rn,KI({},e,{ref:t,icon:fJe})),jne=c.forwardRef(mJe);var hJe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M908.1 353.1l-253.9-36.9L540.7 86.1c-3.1-6.3-8.2-11.4-14.5-14.5-15.8-7.8-35-1.3-42.9 14.5L369.8 316.2l-253.9 36.9c-7 1-13.4 4.3-18.3 9.3a32.05 32.05 0 00.6 45.3l183.7 179.1-43.4 252.9a31.95 31.95 0 0046.4 33.7L512 754l227.1 119.4c6.2 3.3 13.4 4.4 20.3 3.2 17.4-3 29.1-19.5 26.1-36.9l-43.4-252.9 183.7-179.1c5-4.9 8.3-11.3 9.3-18.3 2.7-17.5-9.5-33.7-27-36.3zM664.8 561.6l36.1 210.3L512 672.7 323.1 772l36.1-210.3-152.8-149L417.6 382 512 190.7 606.4 382l211.2 30.7-152.8 148.9z"}}]},name:"star",theme:"outlined"};function qI(){return qI=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},qI.apply(this,arguments)}const pJe=(e,t)=>c.createElement(rn,qI({},e,{ref:t,icon:hJe})),gJe=c.forwardRef(pJe);var vJe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372 0-89 31.3-170.8 83.5-234.8l523.3 523.3C682.8 852.7 601 884 512 884zm288.5-137.2L277.2 223.5C341.2 171.3 423 140 512 140c205.4 0 372 166.6 372 372 0 89-31.3 170.8-83.5 234.8z"}}]},name:"stop",theme:"outlined"};function GI(){return GI=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},GI.apply(this,arguments)}const yJe=(e,t)=>c.createElement(rn,GI({},e,{ref:t,icon:vJe})),bJe=c.forwardRef(yJe);var xJe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M168 504.2c1-43.7 10-86.1 26.9-126 17.3-41 42.1-77.7 73.7-109.4S337 212.3 378 195c42.4-17.9 87.4-27 133.9-27s91.5 9.1 133.8 27A341.5 341.5 0 01755 268.8c9.9 9.9 19.2 20.4 27.8 31.4l-60.2 47a8 8 0 003 14.1l175.7 43c5 1.2 9.9-2.6 9.9-7.7l.8-180.9c0-6.7-7.7-10.5-12.9-6.3l-56.4 44.1C765.8 155.1 646.2 92 511.8 92 282.7 92 96.3 275.6 92 503.8a8 8 0 008 8.2h60c4.4 0 7.9-3.5 8-7.8zm756 7.8h-60c-4.4 0-7.9 3.5-8 7.8-1 43.7-10 86.1-26.9 126-17.3 41-42.1 77.8-73.7 109.4A342.45 342.45 0 01512.1 856a342.24 342.24 0 01-243.2-100.8c-9.9-9.9-19.2-20.4-27.8-31.4l60.2-47a8 8 0 00-3-14.1l-175.7-43c-5-1.2-9.9 2.6-9.9 7.7l-.7 181c0 6.7 7.7 10.5 12.9 6.3l56.4-44.1C258.2 868.9 377.8 932 512.2 932c229.2 0 415.5-183.7 419.8-411.8a8 8 0 00-8-8.2z"}}]},name:"sync",theme:"outlined"};function XI(){return XI=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},XI.apply(this,arguments)}const wJe=(e,t)=>c.createElement(rn,XI({},e,{ref:t,icon:xJe})),SJe=c.forwardRef(wJe);var CJe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M868 160h-92v-40c0-4.4-3.6-8-8-8H256c-4.4 0-8 3.6-8 8v40h-92a44 44 0 00-44 44v148c0 81.7 60 149.6 138.2 162C265.7 630.2 359 721.7 476 734.5v105.2H280c-17.7 0-32 14.3-32 32V904c0 4.4 3.6 8 8 8h512c4.4 0 8-3.6 8-8v-32.3c0-17.7-14.3-32-32-32H548V734.5C665 721.7 758.3 630.2 773.8 514 852 501.6 912 433.7 912 352V204a44 44 0 00-44-44zM184 352V232h64v207.6a91.99 91.99 0 01-64-87.6zm520 128c0 49.1-19.1 95.4-53.9 130.1-34.8 34.8-81 53.9-130.1 53.9h-16c-49.1 0-95.4-19.1-130.1-53.9-34.8-34.8-53.9-81-53.9-130.1V184h384v296zm136-128c0 41-26.9 75.8-64 87.6V232h64v120z"}}]},name:"trophy",theme:"outlined"};function YI(){return YI=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},YI.apply(this,arguments)}const $Je=(e,t)=>c.createElement(rn,YI({},e,{ref:t,icon:CJe})),g1=c.forwardRef($Je);var EJe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M678.3 642.4c24.2-13 51.9-20.4 81.4-20.4h.1c3 0 4.4-3.6 2.2-5.6a371.67 371.67 0 00-103.7-65.8c-.4-.2-.8-.3-1.2-.5C719.2 505 759.6 431.7 759.6 349c0-137-110.8-248-247.5-248S264.7 212 264.7 349c0 82.7 40.4 156 102.6 201.1-.4.2-.8.3-1.2.5-44.7 18.9-84.8 46-119.3 80.6a373.42 373.42 0 00-80.4 119.5A373.6 373.6 0 00137 888.8a8 8 0 008 8.2h59.9c4.3 0 7.9-3.5 8-7.8 2-77.2 32.9-149.5 87.6-204.3C357 628.2 432.2 597 512.2 597c56.7 0 111.1 15.7 158 45.1a8.1 8.1 0 008.1.3zM512.2 521c-45.8 0-88.9-17.9-121.4-50.4A171.2 171.2 0 01340.5 349c0-45.9 17.9-89.1 50.3-121.6S466.3 177 512.2 177s88.9 17.9 121.4 50.4A171.2 171.2 0 01683.9 349c0 45.9-17.9 89.1-50.3 121.6C601.1 503.1 558 521 512.2 521zM880 759h-84v-84c0-4.4-3.6-8-8-8h-56c-4.4 0-8 3.6-8 8v84h-84c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h84v84c0 4.4 3.6 8 8 8h56c4.4 0 8-3.6 8-8v-84h84c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8z"}}]},name:"user-add",theme:"outlined"};function ZI(){return ZI=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ZI.apply(this,arguments)}const OJe=(e,t)=>c.createElement(rn,ZI({},e,{ref:t,icon:EJe})),Ine=c.forwardRef(OJe);var PJe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M858.5 763.6a374 374 0 00-80.6-119.5 375.63 375.63 0 00-119.5-80.6c-.4-.2-.8-.3-1.2-.5C719.5 518 760 444.7 760 362c0-137-111-248-248-248S264 225 264 362c0 82.7 40.5 156 102.8 201.1-.4.2-.8.3-1.2.5-44.8 18.9-85 46-119.5 80.6a375.63 375.63 0 00-80.6 119.5A371.7 371.7 0 00136 901.8a8 8 0 008 8.2h60c4.4 0 7.9-3.5 8-7.8 2-77.2 33-149.5 87.8-204.3 56.7-56.7 132-87.9 212.2-87.9s155.5 31.2 212.2 87.9C779 752.7 810 825 812 902.2c.1 4.4 3.6 7.8 8 7.8h60a8 8 0 008-8.2c-1-47.8-10.9-94.3-29.5-138.2zM512 534c-45.9 0-89.1-17.9-121.6-50.4S340 407.9 340 362c0-45.9 17.9-89.1 50.4-121.6S466.1 190 512 190s89.1 17.9 121.6 50.4S684 316.1 684 362c0 45.9-17.9 89.1-50.4 121.6S557.9 534 512 534z"}}]},name:"user",theme:"outlined"};function JI(){return JI=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},JI.apply(this,arguments)}const jJe=(e,t)=>c.createElement(rn,JI({},e,{ref:t,icon:PJe})),rl=c.forwardRef(jJe);var IJe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"defs",attrs:{},children:[{tag:"style",attrs:{}}]},{tag:"path",attrs:{d:"M759 335c0-137-111-248-248-248S263 198 263 335c0 82.8 40.6 156.2 103 201.2-.4.2-.7.3-.9.4-44.7 18.9-84.8 46-119.3 80.6a373.42 373.42 0 00-80.4 119.5A373.6 373.6 0 00136 874.8a8 8 0 008 8.2h59.9c4.3 0 7.9-3.5 8-7.8 2-77.2 32.9-149.5 87.6-204.3C356 614.2 431 583 511 583c137 0 248-111 248-248zM511 507c-95 0-172-77-172-172s77-172 172-172 172 77 172 172-77 172-172 172zm105 221h264c4.4 0 8-3.6 8-8v-56c0-4.4-3.6-8-8-8H703.5l47.2-60.1a8.1 8.1 0 001.7-4.9c0-4.4-3.6-8-8-8h-72.6c-4.9 0-9.5 2.3-12.6 6.1l-68.5 87.1c-4.4 5.6-6.8 12.6-6.8 19.8.1 17.7 14.4 32 32.1 32zm240 64H592c-4.4 0-8 3.6-8 8v56c0 4.4 3.6 8 8 8h176.5l-47.2 60.1a8.1 8.1 0 00-1.7 4.9c0 4.4 3.6 8 8 8h72.6c4.9 0 9.5-2.3 12.6-6.1l68.5-87.1c4.4-5.6 6.8-12.6 6.8-19.8-.1-17.7-14.4-32-32.1-32z"}}]},name:"user-switch",theme:"outlined"};function QI(){return QI=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},QI.apply(this,arguments)}const _Je=(e,t)=>c.createElement(rn,QI({},e,{ref:t,icon:IJe})),NJe=c.forwardRef(_Je);var RJe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{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 464H528V448h312v128zm0 264H184V184h656v200H496c-17.7 0-32 14.3-32 32v192c0 17.7 14.3 32 32 32h344v200zM580 512a40 40 0 1080 0 40 40 0 10-80 0z"}}]},name:"wallet",theme:"outlined"};function e_(){return e_=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},e_.apply(this,arguments)}const TJe=(e,t)=>c.createElement(rn,e_({},e,{ref:t,icon:RJe})),MJe=c.forwardRef(TJe);var kJe={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M464 720a48 48 0 1096 0 48 48 0 10-96 0zm16-304v184c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V416c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8zm475.7 440l-416-720c-6.2-10.7-16.9-16-27.7-16s-21.6 5.3-27.7 16l-416 720C56 877.4 71.4 904 96 904h832c24.6 0 40-26.6 27.7-48zm-783.5-27.9L512 239.9l339.8 588.2H172.2z"}}]},name:"warning",theme:"outlined"};function t_(){return t_=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},t_.apply(this,arguments)}const AJe=(e,t)=>c.createElement(rn,t_({},e,{ref:t,icon:kJe})),u7=c.forwardRef(AJe),X2=typeof window<"u"&&window.location&&window.location.port==="9310"?"":"/api/school-template";function DJe({token:e}){const[t,n]=c.useState([]),[r,o]=c.useState(0),[i,a]=c.useState(!1),s=async()=>{if(e)try{const m=await fetch(`${X2}/api/v1/mobile/notifications?limit=20`,{headers:{Authorization:`Bearer ${e}`}});if(m.ok){const h=await m.json();n(h.notifications),o(h.unread_count)}}catch(m){console.error("Failed to fetch notifications",m)}},l=async m=>{if(e)try{await fetch(`${X2}/api/v1/mobile/notifications/${m}/read`,{method:"POST",headers:{Authorization:`Bearer ${e}`}}),s()}catch(h){console.error("Failed to mark notification as read",h)}},u=async()=>{if(e)try{await fetch(`${X2}/api/v1/mobile/notifications/mark-all-read`,{method:"POST",headers:{Authorization:`Bearer ${e}`}}),s()}catch(m){console.error("Failed to mark all as read",m)}};c.useEffect(()=>{s();const m=setInterval(s,3e4);return()=>clearInterval(m)},[e]);const d=m=>{switch(m){case"error":return g.jsx(u7,{style:{color:"red"}});case"warning":return g.jsx(u7,{style:{color:"orange"}});case"success":return g.jsx(Ene,{style:{color:"green"}});default:return g.jsx(pZe,{style:{color:"blue"}})}},f=g.jsxs("div",{style:{width:300,maxHeight:400,overflow:"auto"},children:[g.jsxs("div",{style:{display:"flex",justifyContent:"space-between",padding:"8px 0"},children:[g.jsx(dn.Text,{strong:!0,children:"Уведомления"}),g.jsx(gt,{type:"link",size:"small",onClick:u,children:"Прочитать все"})]}),g.jsx(Yn,{itemLayout:"horizontal",dataSource:t,renderItem:m=>g.jsx(Yn.Item,{style:{background:m.is_read?"transparent":"#f0faff",padding:"8px",cursor:"pointer"},onClick:()=>!m.is_read&&l(m.id),children:g.jsx(Yn.Item.Meta,{avatar:d(m.notification_type),title:g.jsxs(pn,{children:[g.jsx(dn.Text,{strong:!m.is_read,children:m.title}),!m.is_read&&g.jsx(Km,{status:"processing"})]}),description:g.jsxs("div",{children:[g.jsx("div",{children:m.message}),g.jsx(dn.Text,{type:"secondary",style:{fontSize:"10px"},children:new Date(m.created_at).toLocaleString("ru-RU")})]})})})})]});return g.jsx(US,{content:f,trigger:"click",open:i,onOpenChange:a,placement:"bottomRight",children:g.jsx(Km,{count:r,children:g.jsx(gt,{shape:"circle",icon:g.jsx($ne,{})})})})}const LJe=()=>{const[e,t]=c.useState([]),[n,r]=c.useState(!1);return c.useEffect(()=>{if(typeof window<"u"&&window.speechSynthesis){r(!0);const i=()=>{const a=window.speechSynthesis.getVoices();t(a)};i(),window.speechSynthesis.onvoiceschanged!==void 0&&(window.speechSynthesis.onvoiceschanged=i)}},[]),{speak:c.useCallback(i=>{if(!n)return;const a=new SpeechSynthesisUtterance(i),s=e.filter(u=>u.lang.startsWith("ru")||u.lang.startsWith("Ru"));let l=s.find(u=>u.name.includes("Pavel")||u.name.includes("Ivan")||u.name.includes("Dmitry")||u.name.includes("Male"));l||(l=s.find(u=>!u.name.includes("Irina")&&!u.name.includes("Milena")&&!u.name.includes("Female")&&!u.name.includes("Google"))),!l&&s.length>0&&(l=s[0]),l?(a.voice=l,console.log("TTS Voice Selected:",l.name)):console.log("TTS: No Russian voice found, using default"),a.rate=.85,a.pitch=.2,window.speechSynthesis.cancel(),window.speechSynthesis.speak(a)},[n,e]),supported:n}},or=typeof window<"u"&&window.location&&window.location.port==="9310"?"":"/api/school-template";function zJe(){const e={"activity.camera":"Камера активности","activity.motion":"Распознавание движений","activity.student":"Монитор активности","activity.jump":"Счётчик прыжков","activity.squat":"Счётчик приседаний","activity.pushup":"Счётчик отжиманий","activity.abs":"Счётчик пресса"},t={enabled:"включен",disabled:"выключен",running:"запущен",stopped:"остановлен"};window.PoseView=u,window.SquatView=d,window.PushUpView=i,window.AbsView=a;function n({running:ie,token:he}){const[xe,Re]=c.useState(Date.now()),[Ce,pe]=c.useState(!1),_e=c.useRef(null),[we,$e]=c.useState(!1),[ve,me]=c.useState(0),[Se,De]=c.useState({});c.useEffect(()=>{const Me=()=>{const We=document.fullscreenElement;$e(!!We&&We===_e.current)};return document.addEventListener("fullscreenchange",Me),()=>document.removeEventListener("fullscreenchange",Me)},[]);const et=()=>{const Me=_e.current;Me&&(document.fullscreenElement?document.exitFullscreen().catch(()=>{}):Me.requestFullscreen().catch(()=>{}))};c.useEffect(()=>{let Me;return ie&&(Me=setInterval(()=>Re(Date.now()),500)),()=>{Me&&clearInterval(Me)}},[ie]),c.useEffect(()=>{let Me;return ie&&(Me=setInterval(async()=>{var We,Qe,Ge,tt;try{const ke=await fetch(`${or}/v1/modules`,{headers:he?{Authorization:`Bearer ${he}`}:{}}),xt=ke.ok?await ke.json():[],Ze={};for(const nt of xt)Ze[nt.id]=nt;De({pushups:((We=Ze["activity.pushup"])==null?void 0:We.total_pushups)??void 0,abs:((Qe=Ze["activity.abs"])==null?void 0:Qe.total_abs)??void 0,squats:((Ge=Ze["activity.squat"])==null?void 0:Ge.total_squats)??void 0,jumps:((tt=Ze["activity.jump"])==null?void 0:tt.total_jumps)??void 0})}catch{}},1e3)),()=>{Me&&clearInterval(Me)}},[ie,he]);let rt=`${or}/v1/camera/frame?ts=${xe}`;return he&&(rt+=`&token=${encodeURIComponent(he)}`),g.jsx("div",{style:{marginTop:12},children:Ce?g.jsxs(g.Fragment,{children:[g.jsx(dn.Text,{type:"secondary",children:"Камера браузера: локальный мониторинг (резервный режим)"}),g.jsx(r,{running:ie,token:he})]}):g.jsxs(g.Fragment,{children:[g.jsx(dn.Text,{type:"secondary",children:"Поток камеры (сервер, обновляется каждые 0.5с)"}),g.jsxs("div",{ref:_e,style:{marginTop:8,position:"relative",width:640,height:480},children:[g.jsx("img",{src:rt,alt:"camera",style:{width:"100%",height:"100%",objectFit:"contain",border:"1px solid #eee",borderRadius:4},onError:()=>pe(!0)}),we&&g.jsxs("div",{style:{position:"absolute",left:8,top:8,zIndex:20,color:"#00FF00",fontFamily:"monospace",fontSize:18,background:"rgba(0,0,0,0.6)",padding:10,borderRadius:4},children:[g.jsxs("div",{children:["Счётчик отжиманий: ",Se.pushups??"—"]}),g.jsxs("div",{children:["Счётчик пресса: ",Se.abs??"—"]}),g.jsxs("div",{children:["Счётчик приседаний: ",Se.squats??"—"]}),g.jsxs("div",{children:["Счётчик прыжков: ",Se.jumps??"—"]})]}),g.jsx("button",{onClick:et,style:{position:"absolute",top:8,right:8,zIndex:10},children:"На весь экран"})]})]})})}function r({running:ie,token:he}){const[xe,Re]=c.useState(null),[Ce,pe]=c.useState(null),[_e,we]=c.useState(!1),$e=c.useRef(null),ve=c.useRef(null),me=c.useRef(null),[Se,De]=c.useState(!1);c.useEffect(()=>{const ke=()=>De(document.fullscreenElement===me.current);return document.addEventListener("fullscreenchange",ke),()=>document.removeEventListener("fullscreenchange",ke)},[]);const et=()=>{const ke=me.current;ke&&(document.fullscreenElement?document.exitFullscreen().catch(()=>{}):ke.requestFullscreen().catch(()=>{}))},[rt,Me]=c.useState(null),[We,Qe]=c.useState(null),[Ge,tt]=c.useState(null);return c.useEffect(()=>{let ke=null,xt;async function Ze(){pe(null);try{ke=await navigator.mediaDevices.getUserMedia({video:{facingMode:"user"},audio:!1})}catch(Be){pe("Нет доступа к камере: "+(Be&&Be.message?Be.message:"неизвестная ошибка"));return}$e.current&&($e.current.srcObject=ke,$e.current.muted=!0,await $e.current.play().catch(()=>{}),xt=setInterval(()=>{try{if(!ve.current||!$e.current)return;const Be=Math.max(160,Math.min(320,$e.current.videoWidth||320)),Le=Math.max(120,Math.min(240,$e.current.videoHeight||240));ve.current.width=Be,ve.current.height=Le;const Ie=ve.current.getContext("2d");if(!Ie)return;Ie.drawImage($e.current,0,0,Be,Le);const Te=Ie.getImageData(0,0,Be,Le),Xe=Date.now();let lt=0;Ge&&(lt=1/Math.max((Xe-Ge)/1e3,1e-6)),tt(Xe);let mt=0,Ot=0,dt=0,qe=0;if(rt){const ft=Te.data.length;for(let ot=0;ot<ft;ot+=4){const Ft=Math.abs(Te.data[ot]-rt.data[ot]),Ue=Math.abs(Te.data[ot+1]-rt.data[ot+1]),Je=Math.abs(Te.data[ot+2]-rt.data[ot+2]),vt=(Ft+Ue+Je)/3;if(vt>20){const yt=ot/4,Ye=yt%Be,st=Math.floor(yt/Be);Ot+=Ye,dt+=st,qe+=1,mt+=vt}}mt=mt/(Be*Le*255)}Me(Te);let ht=null;qe>0&&(ht={x:Ot/qe/Be,y:dt/qe/Le});let zt=0,Vt="none";if(ht&&We&&lt>0){const ft=ht.x-We.x,ot=ht.y-We.y;zt=Math.sqrt(ft*ft+ot*ot)*Be*lt,Math.abs(ft)>Math.abs(ot)?Vt=ft>0?"right":"left":Vt=ot>0?"down":"up"}Qe(ht);const Nt={fps:lt,intensity:Math.min(1,Math.max(0,mt)),speed_px_s:zt,direction:Vt};Re(Nt),(async()=>{try{await fetch(`${or}/v1/modules/activity.motion/control`,{method:"POST",headers:{"Content-Type":"application/json",...he?{Authorization:`Bearer ${he}`}:{}},body:JSON.stringify({action:"ingest",params:{metrics:Nt}})})}catch{}})()}catch{}},500),we(!0))}async function nt(){we(!1);try{xt&&clearInterval(xt)}catch{}try{$e.current&&$e.current.srcObject&&($e.current.srcObject.getTracks().forEach(Le=>Le.stop()),$e.current.srcObject=null)}catch{}}return ie&&Ze(),()=>{nt()}},[ie]),g.jsxs("div",{style:{marginTop:12},children:[g.jsx(dn.Text,{type:"secondary",children:"Камера браузера: локальный мониторинг движения"}),g.jsxs("div",{style:{marginTop:8,display:"flex",gap:16,alignItems:"flex-start"},children:[g.jsxs("div",{ref:me,style:{position:"relative",width:320,height:240},children:[g.jsx("video",{ref:ke=>{$e.current=ke},style:{width:"100%",height:"100%",background:"#000",borderRadius:4},playsInline:!0}),g.jsx("canvas",{ref:ke=>{ve.current=ke},style:{display:"none"}}),g.jsx("button",{onClick:et,style:{position:"absolute",top:8,right:8,zIndex:10},children:"На весь экран"})]}),g.jsxs("div",{children:[Ce&&g.jsx(dn.Text,{type:"danger",children:Ce}),!Ce&&g.jsxs("div",{children:[g.jsxs("div",{children:["Обработка: ",_e?"включена":"выключена"]}),xe?g.jsxs("div",{style:{marginTop:8},children:[g.jsxs("div",{children:["Кадров/с: ",xe.fps.toFixed(1)]}),g.jsxs("div",{children:["Интенсивность: ",(xe.intensity*100).toFixed(1),"%"]}),g.jsxs("div",{children:["Скорость (пикс/с): ",xe.speed_px_s.toFixed(1)]}),g.jsxs("div",{children:["Направление: ",xe.direction]})]}):g.jsx("div",{style:{marginTop:8},children:"Метрики ещё не получены"})]})]})]})]})}function o({running:ie,token:he}){const xe=c.useRef(null),Re=c.useRef(null),[Ce,pe]=c.useState(null),[_e,we]=c.useState(!1),[$e,ve]=c.useState(0),[me,Se]=c.useState(0),De=c.useRef(0),[et,rt]=c.useState(.05),[Me,We]=c.useState(.03),[Qe,Ge]=c.useState(2),[tt,ke]=c.useState(2),xt=c.useRef(0),Ze=c.useRef(0),nt=0,Be=0,Le=0,Ie=0,Te=0,[Xe,lt]=c.useState(!0),[mt,Ot]=c.useState(!0),[dt,qe]=c.useState(!0),[ht,zt]=c.useState(!0),[Vt,Nt]=c.useState(!0),[ft,ot]=c.useState(!0),[Ft,Ue]=c.useState(!0),[Je,vt]=c.useState(!0),yt=c.useRef(0),Ye=c.useRef(null),st=c.useRef(null),wt=c.useRef(null),Kt=c.useRef(null),bt=c.useRef([]),It=c.useRef(null),[qt,In]=c.useState(!1);c.useEffect(()=>{const je=()=>In(document.fullscreenElement===It.current);return document.addEventListener("fullscreenchange",je),()=>document.removeEventListener("fullscreenchange",je)},[]),c.useEffect(()=>{try{const je=localStorage.getItem("activity.thresholds.jump.thresholdUp"),pt=localStorage.getItem("activity.thresholds.jump.thresholdDown"),it=localStorage.getItem("activity.thresholds.jump.minAirFrames"),Ke=localStorage.getItem("activity.thresholds.jump.minGroundFrames");if(je){const Et=parseFloat(je);Number.isNaN(Et)||rt(Et)}if(pt){const Et=parseFloat(pt);Number.isNaN(Et)||We(Et)}if(it){const Et=parseFloat(it);Number.isNaN(Et)||Ge(Et)}if(Ke){const Et=parseFloat(Ke);Number.isNaN(Et)||ke(Et)}}catch{}},[]),c.useEffect(()=>{De.current=me},[me]);const An=()=>{const je=It.current;je&&(document.fullscreenElement?document.exitFullscreen().catch(()=>{}):je.requestFullscreen().catch(()=>{}))},Nn=c.useRef(null),Rn=c.useRef(null),$n=c.useRef(!1),Dn=c.useRef([]),wn=c.useRef([]),St=c.useRef([]),an=c.useRef([]);c.useEffect(()=>{const je=()=>{try{const it=localStorage.getItem("activity.thresholds.jump.thresholdUp"),Ke=localStorage.getItem("activity.thresholds.jump.thresholdDown"),Et=localStorage.getItem("activity.ui.showGraphs"),at=localStorage.getItem("activity.ui.showGraphs.ankleLeft"),Wt=localStorage.getItem("activity.ui.showGraphs.ankleRight"),tn=localStorage.getItem("activity.ui.showLabels.ankles"),Ut=localStorage.getItem("activity.ui.showLabels.ankleLeft"),en=localStorage.getItem("activity.ui.showLabels.ankleRight");if(it){const Rt=parseFloat(it);Number.isNaN(Rt)||rt(Rt)}if(Ke){const Rt=parseFloat(Ke);Number.isNaN(Rt)||We(Rt)}Et!==null&&lt(Et==="1"),at!==null&&zt(at==="1"),Wt!==null&&Nt(Wt==="1"),tn!==null&&ot(tn==="1"),Ut!==null&&Ue(Ut==="1"),en!==null&&vt(en==="1")}catch{}};je();const pt=setInterval(je,1e3);return()=>clearInterval(pt)},[]);async function Zt(){var je,pt,it,Ke,Et;if(window.Pose||(je=window.pose)!=null&&je.Pose){Kt.current=window.Pose||((pt=window.pose)==null?void 0:pt.Pose),bt.current=window.POSE_CONNECTIONS||((it=window.pose)==null?void 0:it.POSE_CONNECTIONS)||[];return}if(await new Promise((at,Wt)=>{const tn=document.createElement("script");tn.src="https://cdn.jsdelivr.net/npm/@mediapipe/pose",tn.async=!0,tn.onload=()=>at(),tn.onerror=()=>Wt(new Error("Не удалось загрузить @mediapipe/pose с CDN")),document.head.appendChild(tn)}),Kt.current=window.Pose||((Ke=window.pose)==null?void 0:Ke.Pose),bt.current=window.POSE_CONNECTIONS||((Et=window.pose)==null?void 0:Et.POSE_CONNECTIONS)||[],!Kt.current)throw new Error("Pose конструктор недоступен после загрузки скрипта")}function ct(je,pt,it,Ke){je.strokeStyle="#00FF00",je.lineWidth=2;const Et=bt.current||[];for(const[at,Wt]of Et){const tn=pt[at],Ut=pt[Wt];!tn||!Ut||(je.beginPath(),je.moveTo(tn.x*it,tn.y*Ke),je.lineTo(Ut.x*it,Ut.y*Ke),je.stroke())}je.fillStyle="#00FF00";for(const at of pt)at&&(je.beginPath(),je.arc(at.x*it,at.y*Ke,2,0,Math.PI*2),je.fill())}return c.useEffect(()=>{let je=!0;async function pt(){pe(null);try{await Zt();const Ke=Kt.current,Et=new Ke({locateFile:at=>`https://cdn.jsdelivr.net/npm/@mediapipe/pose/${at}`});Et.setOptions({selfieMode:!1,modelComplexity:1,smoothLandmarks:!0,minDetectionConfidence:.5,minTrackingConfidence:.5}),Et.onResults(at=>{var tn,Ut,en,Rt;if(!je)return;const Wt=performance.now();if(yt.current){const ze=(Wt-yt.current)/1e3;ze>0&&ve(1/ze)}yt.current=Wt;try{const ze=Re.current,He=xe.current;if(!ze||!He)return;const Tt=It.current;if(Tt){const Fn=Tt.clientWidth||He.videoWidth||640,ar=Tt.clientHeight||He.videoHeight||480;ze.width=Fn,ze.height=ar}else ze.width=He.videoWidth,ze.height=He.videoHeight;const Ae=ze.getContext("2d",{willReadFrequently:!0});if(!Ae)return;Ae.save(),Ae.clearRect(0,0,ze.width,ze.height),Ae.drawImage(He,0,0,ze.width,ze.height);const Bt=at.poseLandmarks||[],bn=27,Pn=28,En=(tn=Bt[bn])==null?void 0:tn.y,qn=(Ut=Bt[Pn])==null?void 0:Ut.y;if(typeof En=="number"&&typeof qn=="number"){$n.current||(Nn.current=Nn.current==null?En:Nn.current*.95+En*.05,Rn.current=Rn.current==null?qn:Rn.current*.95+qn*.05);const Fn=Nn.current??En,ar=Rn.current??qn,$i=En<Fn-et&&qn<ar-et,Ro=En>=Fn-Me&&qn>=ar-Me;$i?xt.current=Math.min(xt.current+1,1e3):xt.current=0,Ro?Ze.current=Math.min(Ze.current+1,1e3):Ze.current=0;const At=(Ln,jn,Yo=120)=>{Ln.push(jn),Ln.length>Yo&&Ln.shift()};At(Dn.current,En),At(wn.current,Fn),At(St.current,qn),At(an.current,ar),!$n.current&&$i&&xt.current>=Qe?$n.current=!0:$n.current&&Ro&&Ze.current>=tt&&($n.current=!1,Se(Ln=>{const jn=Ln+1;return De.current=jn,(async()=>{try{await fetch(`${or}/v1/modules/activity.jump/control`,{method:"POST",headers:{"Content-Type":"application/json",...he?{Authorization:`Bearer ${he}`}:{}},body:JSON.stringify({action:"ingest",params:{metrics:{movement:"jump",count:jn}}})})}catch{}})(),jn}));const nn=$n.current?"AIR":"GROUND",Tn=$n.current?"#FFB020":"#22C55E";Ae.fillStyle="rgba(0,0,0,0.5)",Ae.fillRect(8,8,220,80),Ae.fillStyle="#00FF00",Ae.font="14px monospace",Ae.fillText(`FPS: ${$e.toFixed(1)}`,16,28),Ae.fillStyle=Tn,Ae.fillText(`STATE: ${nn}`,16,46),Ae.fillStyle="#00FF00",Ae.fillText(`Счётчик прыжков: ${De.current}`,16,64),Ae.fillText(`AIR>=${Qe} | GROUND>=${tt}`,16,80),Ae.strokeStyle="#0099FF",Ae.lineWidth=2,Ae.setLineDash([6,6]),Ae.beginPath(),Ae.moveTo(0,Fn*ze.height),Ae.lineTo(ze.width,Fn*ze.height),Ae.stroke(),Ae.beginPath(),Ae.moveTo(0,ar*ze.height),Ae.lineTo(ze.width,ar*ze.height),Ae.stroke(),Ae.setLineDash([]),Ae.fillStyle=Tn,Ae.beginPath(),Ae.arc((((en=Bt[bn])==null?void 0:en.x)||0)*ze.width,En*ze.height,4,0,Math.PI*2),Ae.fill(),Ae.beginPath(),Ae.arc((((Rt=Bt[Pn])==null?void 0:Rt.x)||0)*ze.width,qn*ze.height,4,0,Math.PI*2),Ae.fill(),Ae.fillStyle="#DDDDDD",Ae.font="12px monospace",Ae.fillText(`L y=${En.toFixed(3)} base=${Fn.toFixed(3)}`,16,82),Ae.fillText(`R y=${qn.toFixed(3)} base=${ar.toFixed(3)}`,16,98);{const Ei=ze.width-150-8;let To=8;const Oi=(mn,nr,ua)=>{if(!(mn.length<2)){Ae.strokeStyle=nr,Ae.lineWidth=2,Ae.beginPath();for(let _r=0;_r<mn.length;_r++){const Xr=Ei+_r/(mn.length-1)*150,no=ua+mn[_r]*60;_r===0?Ae.moveTo(Xr,no):Ae.lineTo(Xr,no)}Ae.stroke()}},nf=ht||Xe,Jn=Vt||Xe;nf&&(Ae.fillStyle="rgba(0,0,0,0.4)",Ae.fillRect(Ei,To,150,60),Oi(Dn.current.map(mn=>mn),"#FFB020",To),Oi(wn.current.map(mn=>mn),"#0099FF",To),To+=66),Jn&&(Ae.fillStyle="rgba(0,0,0,0.4)",Ae.fillRect(Ei,To,150,60),Oi(St.current.map(mn=>mn),"#FFB020",To),Oi(an.current.map(mn=>mn),"#0099FF",To))}{const Ln=ft||Ft,jn=ft||Je;(Ln||jn)&&(Ae.fillStyle="#FFFFFF",Ae.font="12px monospace",Ln&&Bt[bn]&&Ae.fillText(`${En.toFixed(3)}`,(Bt[bn].x||0)*ze.width+6,En*ze.height-6),jn&&Bt[Pn]&&Ae.fillText(`${qn.toFixed(3)}`,(Bt[Pn].x||0)*ze.width+6,qn*ze.height-6))}ct(Ae,Bt,ze.width,ze.height)}Ae.restore()}catch{}});try{const at=await navigator.mediaDevices.getUserMedia({video:{facingMode:"user",width:640,height:480},audio:!1});wt.current=at,xe.current&&(xe.current.srcObject=at,await xe.current.play().catch(()=>{}),await new Promise(tn=>{const Ut=xe.current;if(Ut.readyState>=1&&Ut.videoWidth&&Ut.videoHeight){tn();return}Ut.onloadedmetadata=()=>tn()}));const Wt=async()=>{je&&(Ye.current&&xe.current&&await Ye.current.send({image:xe.current}),st.current=requestAnimationFrame(Wt))};Ye.current=Et,st.current=requestAnimationFrame(Wt),we(!0)}catch(at){pe("Нет доступа к камере: "+((at==null?void 0:at.message)||"неизвестная"))}}catch(Ke){pe("Ошибка инициализации Pose: "+((Ke==null?void 0:Ke.message)||"неизвестная"))}}function it(){var Ke;we(!1);try{(Ke=Ye.current)==null||Ke.close()}catch{}st.current&&(cancelAnimationFrame(st.current),st.current=null);try{if(wt.current){for(const Et of wt.current.getTracks())Et.stop();wt.current=null}}catch{}Ye.current=null}return ie&&pt(),()=>{je=!1,it()}},[ie]),g.jsxs("div",{style:{marginTop:12},children:[g.jsx(dn.Text,{type:"secondary",children:"Счётчик прыжков (MediaPipe Pose)"}),g.jsxs("div",{style:{marginTop:8,display:"flex",gap:16,alignItems:"flex-start"},children:[g.jsxs("div",{ref:It,style:{position:"relative",width:640,height:480},children:[g.jsx("video",{ref:je=>{xe.current=je},style:{width:640,height:480,display:"none"},playsInline:!0}),g.jsx("canvas",{ref:je=>{Re.current=je},style:{width:"100%",height:"100%",background:"#000",borderRadius:4}}),g.jsx("button",{onClick:An,style:{position:"absolute",top:8,right:8,zIndex:10},children:"На весь экран"})]}),g.jsxs("div",{children:[Ce&&g.jsx(dn.Text,{type:"danger",children:Ce}),!Ce&&!qt&&g.jsxs("div",{children:[g.jsxs("div",{children:["Обработка: ",_e?"включена":"выключена"]}),g.jsxs("div",{style:{marginTop:8},children:["Счётчик прыжков: ",me]}),g.jsxs("div",{children:["FPS: ",$e.toFixed(1)]}),g.jsxs("div",{style:{marginTop:12},children:[g.jsxs("div",{style:{marginBottom:6},children:["Порог AIR (thresholdUp):",g.jsx(un,{min:0,max:.2,step:.005,value:et,onChange:je=>{if(typeof je=="number"){rt(je);try{localStorage.setItem("activity.thresholds.jump.thresholdUp",String(je))}catch{}}},style:{marginLeft:8}})]}),g.jsxs("div",{children:["Порог GROUND (thresholdDown):",g.jsx(un,{min:0,max:.2,step:.005,value:Me,onChange:je=>{if(typeof je=="number"){We(je);try{localStorage.setItem("activity.thresholds.jump.thresholdDown",String(je))}catch{}}},style:{marginLeft:8}})]}),g.jsx("div",{style:{marginTop:12},children:g.jsxs(pn,{children:[g.jsxs("div",{children:[g.jsx("div",{style:{marginBottom:6},children:"Минимум кадров AIR:"}),g.jsx(un,{min:1,max:12,step:1,value:Qe,onChange:je=>typeof je=="number"&&Ge(je)})]}),g.jsxs("div",{children:[g.jsx("div",{style:{marginBottom:6},children:"Минимум кадров GROUND:"}),g.jsx(un,{min:1,max:12,step:1,value:tt,onChange:je=>typeof je=="number"&&ke(je)})]})]})}),g.jsx("div",{style:{marginTop:12},children:g.jsx(gt,{type:"primary",onClick:()=>{try{localStorage.setItem("activity.thresholds.jump.thresholdUp",String(et)),localStorage.setItem("activity.thresholds.jump.thresholdDown",String(Me)),localStorage.setItem("activity.thresholds.jump.minAirFrames",String(Qe)),localStorage.setItem("activity.thresholds.jump.minGroundFrames",String(tt)),Pt.success("Настройки прыжков сохранены")}catch{Pt.error("Не удалось сохранить настройки")}},children:"Сохранить"})}),g.jsxs("div",{style:{marginTop:12},children:[g.jsx("div",{style:{marginBottom:6},children:"Порог туловища вниз (°):"}),g.jsx(un,{min:40,max:95,value:nt,onChange:je=>typeof je=="number"&&setDownThreshold(je)})]}),g.jsxs("div",{style:{marginTop:12},children:[g.jsx("div",{style:{marginBottom:6},children:"Порог туловища вверх (°):"}),g.jsx(un,{min:0,max:60,value:Be,onChange:je=>typeof je=="number"&&setUpThreshold(je)})]}),g.jsxs("div",{style:{marginTop:12},children:[g.jsx("div",{style:{marginBottom:6},children:"Стабильность коленей (° макс.):"}),g.jsx(un,{min:5,max:45,value:Le,onChange:je=>typeof je=="number"&&setKneeStableDeg(je)})]}),g.jsxs("div",{style:{marginTop:12},children:[g.jsx("div",{style:{marginBottom:6},children:"Минимум кадров удержания:"}),g.jsx(un,{min:1,max:12,value:Ie,onChange:je=>typeof je=="number"&&setMinHoldFrames(je)})]}),g.jsxs("div",{style:{marginTop:12},children:[g.jsx("div",{style:{marginBottom:6},children:"Окно сглаживания:"}),g.jsx(un,{min:1,max:10,value:Te,onChange:je=>typeof je=="number"&&setSmoothWindow(je)})]}),g.jsx("div",{style:{marginTop:12},children:g.jsx(gt,{type:"primary",onClick:()=>{try{localStorage.setItem("activity.thresholds.abs.downThreshold",String(nt)),localStorage.setItem("activity.thresholds.abs.upThreshold",String(Be)),localStorage.setItem("activity.thresholds.abs.kneeStableDeg",String(Le)),localStorage.setItem("activity.thresholds.abs.minHoldFrames",String(Ie)),localStorage.setItem("activity.thresholds.abs.smoothWindow",String(Te)),Pt.success("Настройки пресса сохранены")}catch{Pt.error("Не удалось сохранить настройки")}},children:"Сохранить"})}),g.jsx("div",{style:{marginTop:16},children:g.jsx(Gt,{size:"small",title:"Рекомендации для пресса",children:g.jsxs(pn,{direction:"vertical",children:[g.jsxs("div",{children:["Тип: ",recVariant==="crunch"?"Скручивания":recVariant==="situp"?"Подъём корпуса":"Неопределено"]}),g.jsxs("div",{children:["Рекоменд. вниз (°): ",recDown??"—"]}),g.jsxs("div",{children:["Рекоменд. вверх (°): ",recUp??"—"]}),g.jsxs("div",{children:["Рекоменд. стабильность коленей (°): ",recKneeStable??"—"]}),g.jsxs("div",{children:["Рекоменд. удержание (кадры): ",recHoldFrames??"—"]}),g.jsxs("div",{children:["Рекоменд. сглаживание (окно): ",recSmoothWin??"—"]}),g.jsx(gt,{onClick:()=>{const je=recDown??nt,pt=recUp??Be,it=recKneeStable??Le,Ke=recHoldFrames??Ie,Et=recSmoothWin??Te;setDownThreshold(je),setUpThreshold(pt),setKneeStableDeg(it),setMinHoldFrames(Ke),setSmoothWindow(Et);try{localStorage.setItem("activity.thresholds.abs.downThreshold",String(je)),localStorage.setItem("activity.thresholds.abs.upThreshold",String(pt)),localStorage.setItem("activity.thresholds.abs.kneeStableDeg",String(it)),localStorage.setItem("activity.thresholds.abs.minHoldFrames",String(Ke)),localStorage.setItem("activity.thresholds.abs.smoothWindow",String(Et)),Pt.success("Рекомендованные настройки применены")}catch{}},children:"Применить рекомендации"})]})})})]})]})]})]})]})}function i({running:ie,token:he}){const xe=c.useRef(null),Re=c.useRef(null),[Ce,pe]=c.useState(null),[_e,we]=c.useState(!1),[$e,ve]=c.useState(0),[me,Se]=c.useState(0),De=c.useRef(0),et=c.useRef(0),rt=c.useRef(null),Me=c.useRef(null),We=c.useRef(null),Qe=c.useRef(null),Ge=c.useRef([]),tt=c.useRef("up"),ke=c.useRef(null),[xt,Ze]=c.useState(!1),[nt,Be]=c.useState(75),[Le,Ie]=c.useState(155),[Te,Xe]=c.useState(2),[lt,mt]=c.useState(5),Ot=[],dt=c.useRef(0),qe=c.useRef(0);c.useEffect(()=>{try{const ft=localStorage.getItem("activity.thresholds.pushup.downThreshold"),ot=localStorage.getItem("activity.thresholds.pushup.upThreshold"),Ft=localStorage.getItem("activity.thresholds.pushup.minHoldFrames"),Ue=localStorage.getItem("activity.thresholds.pushup.smoothWindow");if(ft){const Je=parseFloat(ft);Number.isNaN(Je)||Be(Je)}if(ot){const Je=parseFloat(ot);Number.isNaN(Je)||Ie(Je)}if(Ft){const Je=parseFloat(Ft);Number.isNaN(Je)||Xe(Je)}if(Ue){const Je=parseFloat(Ue);Number.isNaN(Je)||mt(Je)}}catch{}},[]),c.useEffect(()=>{const ft=()=>Ze(document.fullscreenElement===ke.current);return document.addEventListener("fullscreenchange",ft),()=>document.removeEventListener("fullscreenchange",ft)},[]);const ht=()=>{const ft=ke.current;ft&&(document.fullscreenElement?document.exitFullscreen().catch(()=>{}):ft.requestFullscreen().catch(()=>{}))};async function zt(){var ft,ot,Ft,Ue,Je;if(window.Pose||(ft=window.pose)!=null&&ft.Pose){Qe.current=window.Pose||((ot=window.pose)==null?void 0:ot.Pose),Ge.current=window.POSE_CONNECTIONS||((Ft=window.pose)==null?void 0:Ft.POSE_CONNECTIONS)||[];return}if(await new Promise((vt,yt)=>{const Ye=document.createElement("script");Ye.src="https://cdn.jsdelivr.net/npm/@mediapipe/pose",Ye.async=!0,Ye.onload=()=>vt(),Ye.onerror=()=>yt(new Error("Не удалось загрузить @mediapipe/pose с CDN")),document.head.appendChild(Ye)}),Qe.current=window.Pose||((Ue=window.pose)==null?void 0:Ue.Pose),Ge.current=window.POSE_CONNECTIONS||((Je=window.pose)==null?void 0:Je.POSE_CONNECTIONS)||[],!Qe.current)throw new Error("Pose конструктор недоступен после загрузки скрипта")}function Vt(ft,ot,Ft,Ue){ft.strokeStyle="#00FF00",ft.lineWidth=2;const Je=Ge.current||[];for(const[vt,yt]of Je){const Ye=ot[vt],st=ot[yt];!Ye||!st||(ft.beginPath(),ft.moveTo(Ye.x*Ft,Ye.y*Ue),ft.lineTo(st.x*Ft,st.y*Ue),ft.stroke())}ft.fillStyle="#00FF00";for(const vt of ot)vt&&(ft.beginPath(),ft.arc(vt.x*Ft,vt.y*Ue,2,0,Math.PI*2),ft.fill())}function Nt(ft,ot,Ft){if(!ft||!ot||!Ft)return null;const Ue=ft.x-ot.x,Je=ft.y-ot.y,vt=Ft.x-ot.x,yt=Ft.y-ot.y,Ye=Ue*vt+Je*yt,st=Math.sqrt(Ue*Ue+Je*Je),wt=Math.sqrt(vt*vt+yt*yt);if(!st||!wt)return null;const Kt=Math.max(-1,Math.min(1,Ye/(st*wt)));return Math.acos(Kt)*180/Math.PI}return c.useEffect(()=>{let ft=!0;async function ot(){pe(null);try{await zt();const Ue=Qe.current,Je=new Ue({locateFile:vt=>`https://cdn.jsdelivr.net/npm/@mediapipe/pose/${vt}`});Je.setOptions({selfieMode:!1,modelComplexity:1,smoothLandmarks:!0,minDetectionConfidence:.5,minTrackingConfidence:.5}),Je.onResults(vt=>{if(!ft)return;const yt=performance.now();if(et.current){const Ye=(yt-et.current)/1e3;Ye>0&&ve(1/Ye)}et.current=yt;try{const Ye=Re.current,st=xe.current;if(!Ye||!st)return;Ye.width=st.videoWidth,Ye.height=st.videoHeight;const wt=Ye.getContext("2d",{willReadFrequently:!0});if(!wt)return;wt.save(),wt.clearRect(0,0,Ye.width,Ye.height),wt.drawImage(st,0,0,Ye.width,Ye.height);const Kt=vt.poseLandmarks||[],bt=11,It=13,qt=15,In=12,An=14,Nn=16,Rn=Nt(Kt[bt],Kt[It],Kt[qt]),$n=Nt(Kt[In],Kt[An],Kt[Nn]),Dn=[Rn,$n].filter(wn=>typeof wn=="number");if(Dn.length){const wn=Dn.reduce((ct,je)=>ct+je,0)/Dn.length;for(Ot.push(wn);Ot.length>lt;)Ot.shift();const St=Ot.reduce((ct,je)=>ct+je,0)/Ot.length,an=St<nt,Zt=St>Le;an?(qe.current=Math.min(qe.current+1,1e3),dt.current=0):Zt?dt.current=Math.min(dt.current+1,1e3):dt.current=0,tt.current==="up"&&an&&qe.current>=Te?tt.current="down":tt.current==="down"&&Zt&&dt.current>=Te&&(tt.current="up",Se(ct=>{const je=ct+1;return De.current=je,(async()=>{try{await fetch(`${or}/v1/modules/activity.pushup/control`,{method:"POST",headers:{"Content-Type":"application/json",...he?{Authorization:`Bearer ${he}`}:{}},body:JSON.stringify({action:"ingest",params:{metrics:{movement:"pushup",count:je}}})})}catch{}})(),je}))}if(dualMode){const wn=Math.floor(Ye.width/2),St=document.createElement("canvas"),an=document.createElement("canvas");St.width=wn,St.height=Ye.height,an.width=wn,an.height=Ye.height;const Zt=St.getContext("2d"),ct=an.getContext("2d");if(Zt&&ct){if(Zt.drawImage(st,0,0,wn,Ye.height),ct.drawImage(st,wn,0,wn,Ye.height,0,0,wn,Ye.height),!poseLeftRef.current){const je=new Ue({locateFile:pt=>`https://cdn.jsdelivr.net/npm/@mediapipe/pose/${pt}`});je.setOptions({selfieMode:!1,modelComplexity:1,smoothLandmarks:!0,minDetectionConfidence:.5,minTrackingConfidence:.5}),je.onResults(pt=>{const Ut=(He,Tt,Ae)=>{if(!He||!Tt||!Ae)return null;const Bt=He.x-Tt.x,bn=He.y-Tt.y,Pn=Ae.x-Tt.x,En=Ae.y-Tt.y,qn=Bt*Pn+bn*En,Fn=Math.sqrt(Bt*Bt+bn*bn),ar=Math.sqrt(Pn*Pn+En*En);if(!Fn||!ar)return null;const $i=Math.max(-1,Math.min(1,qn/(Fn*ar)));return Math.acos($i)*180/Math.PI},en=Ut(pt.poseLandmarks[23],pt.poseLandmarks[25],pt.poseLandmarks[27]),Rt=Ut(pt.poseLandmarks[24],pt.poseLandmarks[26],pt.poseLandmarks[28]),ze=[en,Rt].filter(He=>typeof He=="number");if(ze.length){const He=ze.reduce((Bt,bn)=>Bt+bn,0)/ze.length,Tt=He<nt,Ae=He>Le;Tt?(holdLeftDownRef.current=Math.min(holdLeftDownRef.current+1,1e3),holdLeftUpRef.current=0):Ae?holdLeftUpRef.current=Math.min(holdLeftUpRef.current+1,1e3):holdLeftUpRef.current=0,phaseLeftRef.current==="up"&&Tt&&holdLeftDownRef.current>=Te?phaseLeftRef.current="down":phaseLeftRef.current==="down"&&Ae&&holdLeftUpRef.current>=Te&&(phaseLeftRef.current="up",setSquatCountLeft(Bt=>{const bn=Bt+1;return squatCountLeftRef.current=bn,(async()=>{try{await fetch(`${or}/v1/modules/activity.squat/control`,{method:"POST",headers:{"Content-Type":"application/json",...he?{Authorization:`Bearer ${he}`}:{}},body:JSON.stringify({action:"ingest",params:{metrics:{movement:"squat",count:bn,variant:"left"}}})})}catch{}})(),bn}))}}),poseLeftRef.current=je}if(!poseRightRef.current){const je=new Ue({locateFile:pt=>`https://cdn.jsdelivr.net/npm/@mediapipe/pose/${pt}`});je.setOptions({selfieMode:!1,modelComplexity:1,smoothLandmarks:!0,minDetectionConfidence:.5,minTrackingConfidence:.5}),je.onResults(pt=>{const Ut=(He,Tt,Ae)=>{if(!He||!Tt||!Ae)return null;const Bt=He.x-Tt.x,bn=He.y-Tt.y,Pn=Ae.x-Tt.x,En=Ae.y-Tt.y,qn=Bt*Pn+bn*En,Fn=Math.sqrt(Bt*Bt+bn*bn),ar=Math.sqrt(Pn*Pn+En*En);if(!Fn||!ar)return null;const $i=Math.max(-1,Math.min(1,qn/(Fn*ar)));return Math.acos($i)*180/Math.PI},en=Ut(pt.poseLandmarks[23],pt.poseLandmarks[25],pt.poseLandmarks[27]),Rt=Ut(pt.poseLandmarks[24],pt.poseLandmarks[26],pt.poseLandmarks[28]),ze=[en,Rt].filter(He=>typeof He=="number");if(ze.length){const He=ze.reduce((Bt,bn)=>Bt+bn,0)/ze.length,Tt=He<nt,Ae=He>Le;Tt?(holdRightDownRef.current=Math.min(holdRightDownRef.current+1,1e3),holdRightUpRef.current=0):Ae?holdRightUpRef.current=Math.min(holdRightUpRef.current+1,1e3):holdRightUpRef.current=0,phaseRightRef.current==="up"&&Tt&&holdRightDownRef.current>=Te?phaseRightRef.current="down":phaseRightRef.current==="down"&&Ae&&holdRightUpRef.current>=Te&&(phaseRightRef.current="up",setSquatCountRight(Bt=>{const bn=Bt+1;return squatCountRightRef.current=bn,(async()=>{try{await fetch(`${or}/v1/modules/activity.squat/control`,{method:"POST",headers:{"Content-Type":"application/json",...he?{Authorization:`Bearer ${he}`}:{}},body:JSON.stringify({action:"ingest",params:{metrics:{movement:"squat",count:bn,variant:"right"}}})})}catch{}})(),bn}))}}),poseRightRef.current=je}poseLeftRef.current.send({image:St}).catch(()=>{}),poseRightRef.current.send({image:an}).catch(()=>{}),wt.fillStyle="rgba(0,0,0,0.5)",wt.fillRect(8,128,300,28),wt.fillStyle="#00FF00",wt.font="14px monospace",wt.fillText(`Два человека: Левый ${squatCountLeftRef.current} · Правый ${squatCountRightRef.current}`,16,148)}}if(wt.fillStyle="rgba(0,0,0,0.5)",wt.fillRect(8,8,280,80),wt.fillStyle="#00FF00",wt.font="14px monospace",wt.fillText(`FPS: ${$e.toFixed(1)}`,16,28),wt.fillText(`Счётчик отжиманий: ${De.current}`,16,46),Ot.length){const wn=Ot[Ot.length-1];wt.fillText(`Локти°(ср): ${Math.round(wn)} | win=${lt}`,16,64)}Vt(wt,Kt,Ye.width,Ye.height),wt.restore()}catch{}});try{const vt=await navigator.mediaDevices.getUserMedia({video:{facingMode:"user",width:640,height:480},audio:!1});We.current=vt,xe.current&&(xe.current.srcObject=vt,await xe.current.play().catch(()=>{}),await new Promise(Ye=>{const st=xe.current;if(st.readyState>=1&&st.videoWidth&&st.videoHeight){Ye();return}st.onloadedmetadata=()=>Ye()}));const yt=async()=>{ft&&(rt.current&&xe.current&&await rt.current.send({image:xe.current}),Me.current=requestAnimationFrame(yt))};rt.current=Je,Me.current=requestAnimationFrame(yt),we(!0)}catch(vt){pe("Нет доступа к камере: "+((vt==null?void 0:vt.message)||"неизвестная"))}}catch(Ue){pe("Ошибка инициализации Pose: "+((Ue==null?void 0:Ue.message)||"неизвестная"))}}function Ft(){var Ue;we(!1);try{(Ue=rt.current)==null||Ue.close()}catch{}Me.current&&(cancelAnimationFrame(Me.current),Me.current=null);try{if(We.current){for(const Je of We.current.getTracks())Je.stop();We.current=null}}catch{}rt.current=null}return ie&&ot(),()=>{ft=!1,Ft()}},[ie]),g.jsxs("div",{style:{marginTop:12},children:[g.jsx(dn.Text,{type:"secondary",children:"Счётчик отжиманий (MediaPipe Pose)"}),g.jsxs("div",{style:{marginTop:8,display:"flex",gap:16,alignItems:"flex-start"},children:[g.jsxs("div",{ref:ke,style:{position:"relative",width:640,height:480},children:[g.jsx("video",{ref:ft=>{xe.current=ft},style:{width:640,height:480,display:"none"},playsInline:!0}),g.jsx("canvas",{ref:ft=>{Re.current=ft},style:{width:"100%",height:"100%",background:"#000",borderRadius:4}}),g.jsx("button",{onClick:ht,style:{position:"absolute",top:8,right:8,zIndex:10},children:"На весь экран"})]}),g.jsxs("div",{children:[Ce&&g.jsx(dn.Text,{type:"danger",children:Ce}),!Ce&&!xt&&g.jsxs("div",{children:[g.jsxs("div",{children:["Обработка: ",_e?"включена":"выключена"]}),g.jsxs("div",{style:{marginTop:8},children:["Счётчик отжиманий: ",me]}),g.jsxs("div",{children:["FPS: ",$e.toFixed(1)]}),g.jsx("div",{style:{marginTop:12},children:g.jsxs(pn,{children:[g.jsxs("div",{children:[g.jsx("div",{style:{marginBottom:6},children:"Порог локтя вниз (°):"}),g.jsx(un,{min:30,max:140,step:1,value:nt,onChange:ft=>typeof ft=="number"&&Be(ft)})]}),g.jsxs("div",{children:[g.jsx("div",{style:{marginBottom:6},children:"Порог локтя вверх (°):"}),g.jsx(un,{min:120,max:180,step:1,value:Le,onChange:ft=>typeof ft=="number"&&Ie(ft)})]}),g.jsxs("div",{children:[g.jsx("div",{style:{marginBottom:6},children:"Минимум кадров удержания:"}),g.jsx(un,{min:1,max:12,step:1,value:Te,onChange:ft=>typeof ft=="number"&&Xe(ft)})]}),g.jsxs("div",{children:[g.jsx("div",{style:{marginBottom:6},children:"Окно сглаживания:"}),g.jsx(un,{min:1,max:10,step:1,value:lt,onChange:ft=>typeof ft=="number"&&mt(ft)})]})]})}),g.jsx("div",{style:{marginTop:12},children:g.jsx(gt,{type:"primary",onClick:()=>{try{localStorage.setItem("activity.thresholds.pushup.downThreshold",String(nt)),localStorage.setItem("activity.thresholds.pushup.upThreshold",String(Le)),localStorage.setItem("activity.thresholds.pushup.minHoldFrames",String(Te)),localStorage.setItem("activity.thresholds.pushup.smoothWindow",String(lt)),Pt.success("Настройки отжиманий сохранены")}catch{Pt.error("Не удалось сохранить настройки")}},children:"Сохранить"})})]})]})]})]})}function a({running:ie,token:he}){const xe=c.useRef(null),Re=c.useRef(null),[Ce,pe]=c.useState(null),[_e,we]=c.useState(!1),[$e,ve]=c.useState(0),[me,Se]=c.useState(0),De=c.useRef(0),et=c.useRef(0),rt=c.useRef(null),Me=c.useRef(null),We=c.useRef(null),Qe=c.useRef(null),Ge=c.useRef([]),tt=c.useRef("up"),ke=c.useRef(null),[xt,Ze]=c.useState(!1),[nt,Be]=c.useState(65),[Le,Ie]=c.useState(30),[Te,Xe]=c.useState(15),[lt,mt]=c.useState(3),[Ot,dt]=c.useState(5),qe=[],ht=[],zt=c.useRef(null),Vt=c.useRef(0),Nt=c.useRef(0),ft=c.useRef([]),ot=c.useRef([]),Ft=c.useRef(0),[Ue,Je]=c.useState(null),[vt,yt]=c.useState(null),[Ye,st]=c.useState(null),[wt,Kt]=c.useState(null),[bt,It]=c.useState(null),[qt,In]=c.useState("unknown");c.useEffect(()=>{const St=()=>Ze(document.fullscreenElement===ke.current);return document.addEventListener("fullscreenchange",St),()=>document.removeEventListener("fullscreenchange",St)},[]);const An=()=>{const St=ke.current;St&&(document.fullscreenElement?document.exitFullscreen().catch(()=>{}):St.requestFullscreen().catch(()=>{}))};async function Nn(){var St,an,Zt,ct,je;if(window.Pose||(St=window.pose)!=null&&St.Pose){Qe.current=window.Pose||((an=window.pose)==null?void 0:an.Pose),Ge.current=window.POSE_CONNECTIONS||((Zt=window.pose)==null?void 0:Zt.POSE_CONNECTIONS)||[];return}if(await new Promise((pt,it)=>{const Ke=document.createElement("script");Ke.src="https://cdn.jsdelivr.net/npm/@mediapipe/pose@0.5.1675469404",Ke.async=!0,Ke.onload=()=>pt(),Ke.onerror=()=>it(new Error("Не удалось загрузить @mediapipe/pose с CDN")),document.head.appendChild(Ke)}),Qe.current=window.Pose||((ct=window.pose)==null?void 0:ct.Pose),Ge.current=window.POSE_CONNECTIONS||((je=window.pose)==null?void 0:je.POSE_CONNECTIONS)||[],!Qe.current)throw new Error("Pose конструктор недоступен после загрузки скрипта")}function Rn(St,an,Zt,ct){St.strokeStyle="#00FF00",St.lineWidth=2;const je=Ge.current||[];for(const[pt,it]of je){const Ke=an[pt],Et=an[it];!Ke||!Et||(St.beginPath(),St.moveTo(Ke.x*Zt,Ke.y*ct),St.lineTo(Et.x*Zt,Et.y*ct),St.stroke())}St.fillStyle="#00FF00";for(const pt of an)pt&&(St.beginPath(),St.arc(pt.x*Zt,pt.y*ct,2,0,Math.PI*2),St.fill())}function $n(St,an,Zt){if(!St||!an||!Zt)return null;const ct=St.x-an.x,je=St.y-an.y,pt=Zt.x-an.x,it=Zt.y-an.y,Ke=ct*pt+je*it,Et=Math.sqrt(ct*ct+je*je),at=Math.sqrt(pt*pt+it*it);if(!Et||!at)return null;const Wt=Math.max(-1,Math.min(1,Ke/(Et*at)));return Math.acos(Wt)*180/Math.PI}function Dn(St,an){return!St||!an?null:{x:(St.x+an.x)/2,y:(St.y+an.y)/2}}function wn(St,an){const Zt=St,ct=an,je=Math.sqrt(Zt*Zt+ct*ct)||1,pt=ct/je,it=Math.max(-1,Math.min(1,pt));return Math.acos(it)*180/Math.PI}return c.useEffect(()=>{let St=!0;async function an(){pe(null);try{await Nn();const ct=Qe.current,je=new ct({locateFile:pt=>`https://cdn.jsdelivr.net/npm/@mediapipe/pose/${pt}`});je.setOptions({selfieMode:!1,modelComplexity:1,smoothLandmarks:!0,minDetectionConfidence:.5,minTrackingConfidence:.5}),je.onResults(pt=>{if(!St)return;const it=performance.now();if(et.current){const Ke=(it-et.current)/1e3;Ke>0&&ve(1/Ke),Ft.current=1/Ke}et.current=it;try{const Ke=Re.current,Et=xe.current;if(!Ke||!Et)return;Ke.width=Et.videoWidth,Ke.height=Et.videoHeight;const at=Ke.getContext("2d",{willReadFrequently:!0});if(!at)return;at.save(),at.clearRect(0,0,Ke.width,Ke.height),at.drawImage(Et,0,0,Ke.width,Ke.height);const Wt=pt.poseLandmarks||[],tn=11,Ut=12,en=23,Rt=24,ze=25,He=26,Tt=27,Ae=28,Bt=Dn(Wt[tn],Wt[Ut]),bn=Dn(Wt[en],Wt[Rt]),Pn=Bt&&bn?wn(Bt.x-bn.x,Bt.y-bn.y):null,En=$n(Wt[en],Wt[ze],Wt[Tt]),qn=$n(Wt[Rt],Wt[He],Wt[Ae]),Fn=[En,qn].filter(ar=>typeof ar=="number");if(typeof Pn=="number"&&Fn.length){for(qe.push(Pn);qe.length>Ot;)qe.shift();const ar=qe.reduce((mn,nr)=>mn+nr,0)/qe.length,$i=Fn.reduce((mn,nr)=>mn+nr,0)/Fn.length;for(ht.push($i);ht.length>Ot;)ht.shift();const Ro=ht.reduce((mn,nr)=>mn+nr,0)/ht.length;ft.current.push(ar),ot.current.push(Ro),ft.current.length>120&&ft.current.shift(),ot.current.length>120&&ot.current.shift();const At=zt.current,nn=At==null?!0:Math.abs(Ro-At)<=Te;zt.current=Ro;const Tn=ar>nt,Ln=ar<Le;Tn?(Nt.current=Math.min(Nt.current+1,1e3),Vt.current=0):Ln?Vt.current=Math.min(Vt.current+1,1e3):Vt.current=0,tt.current==="up"&&Tn&&Nt.current>=lt?tt.current="down":tt.current==="down"&&Ln&&Vt.current>=lt&&nn&&(tt.current="up",Se(mn=>{const nr=mn+1;return De.current=nr,(async()=>{try{await fetch(`${or}/v1/modules/activity.abs/control`,{method:"POST",headers:{"Content-Type":"application/json",...he?{Authorization:`Bearer ${he}`}:{}},body:JSON.stringify({action:"ingest",params:{metrics:{movement:"abs",variant:"situp",count:nr}}})})}catch{}})(),nr}));const jn=[...ft.current].sort((mn,nr)=>mn-nr),Yo=mn=>{if(!jn.length)return null;const nr=Math.floor((jn.length-1)*mn);return jn[nr]},Ei=Yo(.7),To=Yo(.2),Oi=(()=>{const mn=ot.current;if(mn.length<2)return null;const nr=mn.reduce((_r,Xr)=>_r+Xr,0)/mn.length;return Math.sqrt(mn.reduce((_r,Xr)=>_r+(Xr-nr)*(Xr-nr),0)/mn.length)})(),nf=Math.max(1,Math.round(Math.min(12,Math.max(2,Math.round((Ft.current||30)*.08))))),Jn=5;In(Ro<100?"crunch":"situp"),Ei!=null&&Je(Math.max(40,Math.min(95,Math.round(Ei)))),To!=null&&yt(Math.max(0,Math.min(60,Math.round(To)))),Oi!=null&&st(Math.max(5,Math.min(45,Math.round(Oi)))),Kt(nf),It(Jn),at.fillStyle="rgba(0,0,0,0.5)",at.fillRect(8,8,300,92),at.fillStyle="#00FF00",at.font="16px monospace",at.fillText(`FPS: ${$e.toFixed(1)}`,16,28),at.fillText(`Счётчик пресса: ${De.current}`,16,46),at.fillText(`Туловище°: ${ar.toFixed(0)} | Колени°: ${Ro.toFixed(0)}`,16,64)}Rn(at,Wt,Ke.width,Ke.height),at.restore()}catch{}});try{const pt=await navigator.mediaDevices.getUserMedia({video:{facingMode:"user",width:640,height:480},audio:!1});We.current=pt,xe.current&&(xe.current.srcObject=pt,await xe.current.play().catch(()=>{}),await new Promise(Ke=>{const Et=xe.current;if(Et.readyState>=1&&Et.videoWidth&&Et.videoHeight){Ke();return}Et.onloadedmetadata=()=>Ke()}));const it=async()=>{St&&(rt.current&&xe.current&&await rt.current.send({image:xe.current}),Me.current=requestAnimationFrame(it))};rt.current=je,Me.current=requestAnimationFrame(it),we(!0)}catch(pt){pe("Нет доступа к камере: "+((pt==null?void 0:pt.message)||"неизвестная"))}}catch(ct){pe("Ошибка инициализации Pose: "+((ct==null?void 0:ct.message)||"неизвестная"))}}function Zt(){var ct;we(!1);try{(ct=rt.current)==null||ct.close()}catch{}Me.current&&(cancelAnimationFrame(Me.current),Me.current=null);try{if(We.current){for(const je of We.current.getTracks())je.stop();We.current=null}}catch{}rt.current=null}return ie&&an(),()=>{St=!1,Zt()}},[ie]),g.jsxs("div",{style:{marginTop:12},children:[g.jsx(dn.Text,{type:"secondary",children:"Счётчик пресса (MediaPipe Pose)"}),g.jsxs("div",{style:{marginTop:8,display:"flex",gap:16,alignItems:"flex-start"},children:[g.jsxs("div",{ref:ke,style:{position:"relative",width:640,height:480},children:[g.jsx("video",{ref:St=>{xe.current=St},style:{width:640,height:480,display:"none"},playsInline:!0}),g.jsx("canvas",{ref:St=>{Re.current=St},style:{width:"100%",height:"100%",background:"#000",borderRadius:4}}),xt&&g.jsx("div",{style:{position:"absolute",left:8,top:8,zIndex:20,color:"#00FF00",fontFamily:"monospace",fontSize:18,background:"rgba(0,0,0,0.6)",padding:10,borderRadius:4},children:g.jsxs("div",{children:["Счётчик пресса: ",De.current]})}),g.jsx("button",{onClick:An,style:{position:"absolute",top:8,right:8,zIndex:10},children:"На весь экран"})]}),g.jsxs("div",{children:[Ce&&g.jsx(dn.Text,{type:"danger",children:Ce}),!Ce&&!xt&&g.jsxs("div",{children:[g.jsxs("div",{children:["Обработка: ",_e?"включена":"выключена"]}),g.jsxs("div",{style:{marginTop:8},children:["Счётчик пресса: ",me]}),g.jsxs("div",{children:["FPS: ",$e.toFixed(1)]}),g.jsx("div",{style:{marginTop:12},children:g.jsxs(pn,{children:[g.jsx(gt,{onClick:()=>{const St=me+1;Se(St),(async()=>{try{await fetch(`${or}/v1/modules/activity.abs/control`,{method:"POST",headers:{"Content-Type":"application/json",...he?{Authorization:`Bearer ${he}`}:{}},body:JSON.stringify({action:"ingest",params:{metrics:{movement:"abs",variant:"crunch",count:St}}})})}catch{}})()},children:"+1 скручивание"}),g.jsx(gt,{onClick:()=>{const St=me+1;Se(St),(async()=>{try{await fetch(`${or}/v1/modules/activity.abs/control`,{method:"POST",headers:{"Content-Type":"application/json",...he?{Authorization:`Bearer ${he}`}:{}},body:JSON.stringify({action:"ingest",params:{metrics:{movement:"abs",variant:"situp",count:St}}})})}catch{}})()},children:"+1 подъём корпуса"})]})}),g.jsxs("div",{style:{marginTop:12},children:[g.jsx("div",{style:{marginBottom:6},children:"Порог туловища вниз (°):"}),g.jsx(un,{min:40,max:95,value:nt,onChange:St=>typeof St=="number"&&Be(St)})]}),g.jsxs("div",{style:{marginTop:12},children:[g.jsx("div",{style:{marginBottom:6},children:"Порог туловища вверх (°):"}),g.jsx(un,{min:0,max:60,value:Le,onChange:St=>typeof St=="number"&&Ie(St)})]}),g.jsxs("div",{style:{marginTop:12},children:[g.jsx("div",{style:{marginBottom:6},children:"Стабильность коленей (° макс.):"}),g.jsx(un,{min:5,max:45,value:Te,onChange:St=>typeof St=="number"&&Xe(St)})]}),g.jsxs("div",{style:{marginTop:12},children:[g.jsx("div",{style:{marginBottom:6},children:"Минимум кадров удержания:"}),g.jsx(un,{min:1,max:12,value:lt,onChange:St=>typeof St=="number"&&mt(St)})]}),g.jsxs("div",{style:{marginTop:12},children:[g.jsx("div",{style:{marginBottom:6},children:"Окно сглаживания:"}),g.jsx(un,{min:1,max:10,value:Ot,onChange:St=>typeof St=="number"&&dt(St)})]})]})]})]})]})}function s({moduleId:ie,token:he}){const[xe,Re]=c.useState(()=>ie==="activity.pushup"?"pushup":ie==="activity.abs"?"abs":ie==="activity.squat"?"squat":ie==="activity.jump"?"jump":"motion"),[Ce,pe]=c.useState(""),[_e,we]=c.useState(1),[$e,ve]=c.useState(""),me=async()=>{try{const Se=await fetch(`${or}/v1/modules/${encodeURIComponent(ie)}/control`,{method:"POST",headers:{"Content-Type":"application/json",...he?{Authorization:`Bearer ${he}`}:{}},body:JSON.stringify({action:"ingest",params:{metrics:{movement:xe,variant:Ce||void 0,increment:_e},student_id:$e||void 0}})}),De=await Se.json().catch(()=>({}));if(!Se.ok||De.ok===!1){Pt.error(De.error||"Ошибка отправки метрик");return}Pt.success("Метрики отправлены")}catch{Pt.error("Сбой сети при отправке метрик")}};return g.jsxs(Gt,{size:"small",title:"Ручная проверка метрик",style:{marginTop:16},children:[g.jsxs(pn,{wrap:!0,children:[g.jsxs("div",{children:[g.jsx("div",{children:"Тип движения"}),g.jsx(pr,{value:xe,onChange:Re,style:{width:180},options:[{value:"pushup",label:"Отжимания"},{value:"abs",label:"Пресс"},{value:"squat",label:"Приседания"},{value:"jump",label:"Прыжки"},{value:"hands_up_raise",label:"Поднятие рук"}]})]}),g.jsxs("div",{children:[g.jsx("div",{children:"Вариант"}),g.jsx(Sn,{placeholder:"например: колени/носки или crunch/situp",value:Ce,onChange:Se=>pe(Se.target.value),style:{width:300}})]}),g.jsxs("div",{children:[g.jsx("div",{children:"Инкремент"}),g.jsx(un,{min:1,max:100,value:_e,onChange:Se=>typeof Se=="number"&&we(Se),style:{width:140}})]}),g.jsxs("div",{children:[g.jsx("div",{children:"ID ученика (необязательно)"}),g.jsx(Sn,{placeholder:"идентификатор ученика",value:$e,onChange:Se=>ve(Se.target.value),style:{width:240}})]}),g.jsx(gt,{type:"primary",onClick:me,children:"Отправить"})]}),g.jsx(dn.Paragraph,{type:"secondary",style:{marginTop:8},children:"Поддержка вариантов: pushups — knee/toe; abs — crunch/situp. Если variant пустой, счёт отправится в общий счётчик."})]})}function l({moduleId:ie}){const[he,xe]=c.useState(ie==="activity.squat"?80:ie==="activity.pushup"?75:ie==="activity.abs"?65:0),[Re,Ce]=c.useState(ie==="activity.squat"?165:ie==="activity.pushup"?155:ie==="activity.abs"?30:0),[pe,_e]=c.useState(ie==="activity.squat"||ie==="activity.pushup"?2:ie==="activity.abs"?3:0),[we,$e]=c.useState(ie==="activity.squat"||ie==="activity.pushup"||ie==="activity.abs"?5:0),[ve,me]=c.useState(15),[Se,De]=c.useState(.05),[et,rt]=c.useState(.03),[Me,We]=c.useState(2),[Qe,Ge]=c.useState(2);c.useEffect(()=>{try{if(ie==="activity.abs"){const ke=localStorage.getItem("activity.thresholds.abs.downThreshold");if(ke){const Le=parseFloat(ke);Number.isNaN(Le)||xe(Le)}const xt=localStorage.getItem("activity.thresholds.abs.upThreshold");if(xt){const Le=parseFloat(xt);Number.isNaN(Le)||Ce(Le)}const Ze=localStorage.getItem("activity.thresholds.abs.kneeStableDeg");if(Ze){const Le=parseFloat(Ze);Number.isNaN(Le)||me(Le)}const nt=localStorage.getItem("activity.thresholds.abs.minHoldFrames");if(nt){const Le=parseFloat(nt);Number.isNaN(Le)||_e(Le)}const Be=localStorage.getItem("activity.thresholds.abs.smoothWindow");if(Be){const Le=parseFloat(Be);Number.isNaN(Le)||$e(Le)}}else if(ie==="activity.pushup"){const ke=localStorage.getItem("activity.thresholds.pushup.downThreshold");if(ke){const Be=parseFloat(ke);Number.isNaN(Be)||xe(Be)}const xt=localStorage.getItem("activity.thresholds.pushup.upThreshold");if(xt){const Be=parseFloat(xt);Number.isNaN(Be)||Ce(Be)}const Ze=localStorage.getItem("activity.thresholds.pushup.minHoldFrames");if(Ze){const Be=parseFloat(Ze);Number.isNaN(Be)||_e(Be)}const nt=localStorage.getItem("activity.thresholds.pushup.smoothWindow");if(nt){const Be=parseFloat(nt);Number.isNaN(Be)||$e(Be)}}else if(ie==="activity.squat"){const ke=localStorage.getItem("activity.thresholds.squat.downThreshold");if(ke){const Be=parseFloat(ke);Number.isNaN(Be)||xe(Be)}const xt=localStorage.getItem("activity.thresholds.squat.upThreshold");if(xt){const Be=parseFloat(xt);Number.isNaN(Be)||Ce(Be)}const Ze=localStorage.getItem("activity.thresholds.squat.minHoldFrames");if(Ze){const Be=parseFloat(Ze);Number.isNaN(Be)||_e(Be)}const nt=localStorage.getItem("activity.thresholds.squat.smoothWindow");if(nt){const Be=parseFloat(nt);Number.isNaN(Be)||$e(Be)}}else if(ie==="activity.jump"){const ke=localStorage.getItem("activity.thresholds.jump.thresholdUp");if(ke){const Be=parseFloat(ke);Number.isNaN(Be)||De(Be)}const xt=localStorage.getItem("activity.thresholds.jump.thresholdDown");if(xt){const Be=parseFloat(xt);Number.isNaN(Be)||rt(Be)}const Ze=localStorage.getItem("activity.thresholds.jump.minAirFrames");if(Ze){const Be=parseFloat(Ze);Number.isNaN(Be)||We(Be)}const nt=localStorage.getItem("activity.thresholds.jump.minGroundFrames");if(nt){const Be=parseFloat(nt);Number.isNaN(Be)||Ge(Be)}}}catch{}},[ie]);const tt=()=>{try{ie==="activity.abs"?(localStorage.setItem("activity.thresholds.abs.downThreshold",String(he)),localStorage.setItem("activity.thresholds.abs.upThreshold",String(Re)),localStorage.setItem("activity.thresholds.abs.kneeStableDeg",String(ve)),localStorage.setItem("activity.thresholds.abs.minHoldFrames",String(pe)),localStorage.setItem("activity.thresholds.abs.smoothWindow",String(we)),Pt.success("Настройки пресса сохранены")):ie==="activity.pushup"?(localStorage.setItem("activity.thresholds.pushup.downThreshold",String(he)),localStorage.setItem("activity.thresholds.pushup.upThreshold",String(Re)),localStorage.setItem("activity.thresholds.pushup.minHoldFrames",String(pe)),localStorage.setItem("activity.thresholds.pushup.smoothWindow",String(we)),Pt.success("Настройки отжиманий сохранены")):ie==="activity.squat"?(localStorage.setItem("activity.thresholds.squat.downThreshold",String(he)),localStorage.setItem("activity.thresholds.squat.upThreshold",String(Re)),localStorage.setItem("activity.thresholds.squat.minHoldFrames",String(pe)),localStorage.setItem("activity.thresholds.squat.smoothWindow",String(we)),Pt.success("Настройки приседаний сохранены")):ie==="activity.jump"&&(localStorage.setItem("activity.thresholds.jump.thresholdUp",String(Se)),localStorage.setItem("activity.thresholds.jump.thresholdDown",String(et)),localStorage.setItem("activity.thresholds.jump.minAirFrames",String(Me)),localStorage.setItem("activity.thresholds.jump.minGroundFrames",String(Qe)),Pt.success("Настройки прыжков сохранены"))}catch{Pt.error("Не удалось сохранить настройки")}};return g.jsxs(Gt,{size:"small",title:"Настройки распознавания",style:{marginTop:12},children:[ie==="activity.abs"&&g.jsxs(pn,{wrap:!0,children:[g.jsxs("div",{children:[g.jsx("div",{children:"Туловище вниз (°)"}),g.jsx(un,{min:40,max:95,value:he,onChange:ke=>typeof ke=="number"&&xe(ke)})]}),g.jsxs("div",{children:[g.jsx("div",{children:"Туловище вверх (°)"}),g.jsx(un,{min:0,max:60,value:Re,onChange:ke=>typeof ke=="number"&&Ce(ke)})]}),g.jsxs("div",{children:[g.jsx("div",{children:"Стабильность коленей (°)"}),g.jsx(un,{min:5,max:45,value:ve,onChange:ke=>typeof ke=="number"&&me(ke)})]}),g.jsxs("div",{children:[g.jsx("div",{children:"Удержание (кадры)"}),g.jsx(un,{min:1,max:12,value:pe,onChange:ke=>typeof ke=="number"&&_e(ke)})]}),g.jsxs("div",{children:[g.jsx("div",{children:"Сглаживание (окно)"}),g.jsx(un,{min:1,max:10,value:we,onChange:ke=>typeof ke=="number"&&$e(ke)})]})]}),ie==="activity.pushup"&&g.jsxs(pn,{wrap:!0,children:[g.jsxs("div",{children:[g.jsx("div",{children:"Локоть вниз (°)"}),g.jsx(un,{min:30,max:140,value:he,onChange:ke=>typeof ke=="number"&&xe(ke)})]}),g.jsxs("div",{children:[g.jsx("div",{children:"Локоть вверх (°)"}),g.jsx(un,{min:120,max:180,value:Re,onChange:ke=>typeof ke=="number"&&Ce(ke)})]}),g.jsxs("div",{children:[g.jsx("div",{children:"Удержание (кадры)"}),g.jsx(un,{min:1,max:12,value:pe,onChange:ke=>typeof ke=="number"&&_e(ke)})]}),g.jsxs("div",{children:[g.jsx("div",{children:"Сглаживание (окно)"}),g.jsx(un,{min:1,max:10,value:we,onChange:ke=>typeof ke=="number"&&$e(ke)})]})]}),ie==="activity.squat"&&g.jsxs(pn,{wrap:!0,children:[g.jsxs("div",{children:[g.jsx("div",{children:"Колено вниз (°)"}),g.jsx(un,{min:30,max:150,value:he,onChange:ke=>typeof ke=="number"&&xe(ke)})]}),g.jsxs("div",{children:[g.jsx("div",{children:"Колено вверх (°)"}),g.jsx(un,{min:120,max:180,value:Re,onChange:ke=>typeof ke=="number"&&Ce(ke)})]}),g.jsxs("div",{children:[g.jsx("div",{children:"Удержание (кадры)"}),g.jsx(un,{min:1,max:12,value:pe,onChange:ke=>typeof ke=="number"&&_e(ke)})]}),g.jsxs("div",{children:[g.jsx("div",{children:"Сглаживание (окно)"}),g.jsx(un,{min:1,max:10,value:we,onChange:ke=>typeof ke=="number"&&$e(ke)})]})]}),ie==="activity.jump"&&g.jsxs(pn,{wrap:!0,children:[g.jsxs("div",{children:[g.jsx("div",{children:"Порог AIR"}),g.jsx(un,{min:0,max:.2,step:.005,value:Se,onChange:ke=>typeof ke=="number"&&De(ke)})]}),g.jsxs("div",{children:[g.jsx("div",{children:"Порог GROUND"}),g.jsx(un,{min:0,max:.2,step:.005,value:et,onChange:ke=>typeof ke=="number"&&rt(ke)})]}),g.jsxs("div",{children:[g.jsx("div",{children:"Минимум кадров AIR"}),g.jsx(un,{min:1,max:12,value:Me,onChange:ke=>typeof ke=="number"&&We(ke)})]}),g.jsxs("div",{children:[g.jsx("div",{children:"Минимум кадров GROUND"}),g.jsx(un,{min:1,max:12,value:Qe,onChange:ke=>typeof ke=="number"&&Ge(ke)})]})]}),g.jsx("div",{style:{marginTop:12},children:g.jsx(gt,{type:"primary",onClick:tt,children:"Сохранить"})})]})}function u({running:ie,token:he}){const xe=c.useRef(null),Re=c.useRef(null),[Ce,pe]=c.useState(null),[_e,we]=c.useState(!1),[$e,ve]=c.useState(0),[me,Se]=c.useState(0),De=c.useRef(0),et=c.useRef(null),rt=c.useRef(null),Me=c.useRef(null),We=c.useRef(null),Qe=c.useRef([]),Ge=c.useRef(!1),tt=c.useRef(0),ke=c.useRef(null),[xt,Ze]=c.useState(!1);c.useEffect(()=>{const Ie=()=>Ze(document.fullscreenElement===ke.current);return document.addEventListener("fullscreenchange",Ie),()=>document.removeEventListener("fullscreenchange",Ie)},[]);const nt=()=>{const Ie=ke.current;Ie&&(document.fullscreenElement?document.exitFullscreen().catch(()=>{}):Ie.requestFullscreen().catch(()=>{}))};async function Be(){var Ie,Te,Xe,lt,mt;if(window.Pose||(Ie=window.pose)!=null&&Ie.Pose){We.current=window.Pose||((Te=window.pose)==null?void 0:Te.Pose),Qe.current=window.POSE_CONNECTIONS||((Xe=window.pose)==null?void 0:Xe.POSE_CONNECTIONS)||[];return}if(await new Promise((Ot,dt)=>{const qe=document.createElement("script");qe.src="https://cdn.jsdelivr.net/npm/@mediapipe/pose@0.5.1675469404",qe.async=!0,qe.onload=()=>Ot(),qe.onerror=()=>dt(new Error("Не удалось загрузить @mediapipe/pose с CDN")),document.head.appendChild(qe)}),We.current=window.Pose||((lt=window.pose)==null?void 0:lt.Pose),Qe.current=window.POSE_CONNECTIONS||((mt=window.pose)==null?void 0:mt.POSE_CONNECTIONS)||[],!We.current)throw new Error("Pose конструктор недоступен после загрузки скрипта")}function Le(Ie,Te,Xe,lt){Ie.strokeStyle="#00FF00",Ie.lineWidth=2;const mt=Qe.current||[];for(const[Ot,dt]of mt){const qe=Te[Ot],ht=Te[dt];!qe||!ht||(Ie.beginPath(),Ie.moveTo(qe.x*Xe,qe.y*lt),Ie.lineTo(ht.x*Xe,ht.y*lt),Ie.stroke())}Ie.fillStyle="#00FF00";for(const Ot of Te)Ot&&(Ie.beginPath(),Ie.arc(Ot.x*Xe,Ot.y*lt,2,0,Math.PI*2),Ie.fill())}return c.useEffect(()=>{let Ie=!0;async function Te(){pe(null);try{await Be();const lt=We.current,mt=new lt({locateFile:Ot=>`https://cdn.jsdelivr.net/npm/@mediapipe/pose/${Ot}`});mt.setOptions({selfieMode:!1,modelComplexity:1,smoothLandmarks:!0,minDetectionConfidence:.5,minTrackingConfidence:.5}),mt.onResults(Ot=>{var qe,ht,zt,Vt;if(!Ie)return;const dt=performance.now();if(De.current){const Nt=(dt-De.current)/1e3;Nt>0&&ve(1/Nt)}De.current=dt;try{const Nt=Re.current,ft=xe.current;if(!Nt||!ft)return;Nt.width=ft.videoWidth,Nt.height=ft.videoHeight;const ot=Nt.getContext("2d",{willReadFrequently:!0});if(!ot)return;ot.save(),ot.clearRect(0,0,Nt.width,Nt.height),ot.drawImage(ft,0,0,Nt.width,Nt.height);const Ft=Ot.poseLandmarks||[];if(Ft.length){Le(ot,Ft,Nt.width,Nt.height);const Ue=15,Je=11,vt=16,yt=12,Ye=((qe=Ft[Ue])==null?void 0:qe.y)??1,st=((ht=Ft[Je])==null?void 0:ht.y)??1,wt=((zt=Ft[vt])==null?void 0:zt.y)??1,Kt=((Vt=Ft[yt])==null?void 0:Vt.y)??1,bt=Ye<st-.01,It=wt<Kt-.01,qt=bt&&It;!Ge.current&&qt&&(tt.current+=1,Se(tt.current),(async()=>{try{await fetch(`${or}/v1/modules/activity.motion/control`,{method:"POST",headers:{"Content-Type":"application/json",...he?{Authorization:`Bearer ${he}`}:{}},body:JSON.stringify({action:"ingest",params:{metrics:{movement:"hands_up_raise",count:tt.current}}})})}catch{}})()),Ge.current=qt,ot.fillStyle="rgba(0,0,0,0.5)",ot.fillRect(8,72,200,24),ot.fillStyle=qt?"#00FF00":"#FFAA00",ot.font="14px monospace",ot.fillText(`HANDS: ${qt?"UP":"DOWN"} (${bt?"L":"-"}${It?"R":"-"})`,16,88),ot.fillStyle="rgba(0,0,0,0.5)",ot.fillRect(8,96,200,24),ot.fillStyle="#00FF00",ot.font="14px monospace",ot.fillText(`RAISES: ${me}`,16,112)}ot.fillStyle="rgba(0,0,0,0.5)",ot.fillRect(8,8,200,60),ot.fillStyle="#00FF00",ot.font="14px monospace",ot.fillText(`FPS: ${$e.toFixed(1)}`,16,28),ot.restore()}catch{}}),et.current=mt;try{const Ot=await navigator.mediaDevices.getUserMedia({video:{facingMode:"user",width:640,height:480},audio:!1});Me.current=Ot,xe.current&&(xe.current.srcObject=Ot,await xe.current.play().catch(()=>{}),await new Promise(qe=>{const ht=xe.current;if(ht.readyState>=1&&ht.videoWidth&&ht.videoHeight){qe();return}ht.onloadedmetadata=()=>qe()}));const dt=async()=>{Ie&&(et.current&&xe.current&&await et.current.send({image:xe.current}),rt.current=requestAnimationFrame(dt))};rt.current=requestAnimationFrame(dt),we(!0)}catch(Ot){pe("Нет доступа к камере: "+((Ot==null?void 0:Ot.message)||"неизвестная"))}}catch(lt){pe("Ошибка инициализации Pose: "+((lt==null?void 0:lt.message)||"неизвестная"))}}function Xe(){var lt;we(!1);try{(lt=et.current)==null||lt.close()}catch{}rt.current&&(cancelAnimationFrame(rt.current),rt.current=null);try{if(Me.current){for(const mt of Me.current.getTracks())mt.stop();Me.current=null}}catch{}et.current=null}return ie&&Te(),()=>{Ie=!1,Xe()}},[ie]),g.jsxs("div",{style:{marginTop:12},children:[g.jsx(dn.Text,{type:"secondary",children:"Распознавание позы (MediaPipe Pose)"}),g.jsxs("div",{style:{marginTop:8,display:"flex",gap:16,alignItems:"flex-start"},children:[g.jsxs("div",{ref:ke,style:{position:"relative",width:xt?"100vw":640,height:xt?"100vh":480},children:[g.jsx("video",{ref:Ie=>{xe.current=Ie},style:{width:640,height:480,display:"none"},playsInline:!0}),g.jsx("canvas",{ref:Ie=>{Re.current=Ie},style:{width:"100%",height:"100%",background:"#000",borderRadius:4,position:"absolute",left:0,top:0,zIndex:1}}),xt&&g.jsx("div",{style:{position:"absolute",left:8,top:8,zIndex:20,color:"#00FF00",fontFamily:"monospace",fontSize:18,background:"rgba(0,0,0,0.6)",padding:10,borderRadius:4,pointerEvents:"none"},children:g.jsxs("div",{children:["Счётчик пресса: ",absCountRef.current]})}),g.jsx("button",{onClick:nt,style:{position:"absolute",top:8,right:8,zIndex:10},children:"На весь экран"})]}),g.jsxs("div",{children:[Ce&&g.jsx(dn.Text,{type:"danger",children:Ce}),!Ce&&g.jsxs("div",{children:[g.jsxs("div",{children:["Обработка: ",_e?"включена":"выключена"]}),g.jsxs("div",{children:["FPS: ",$e.toFixed(1)]}),g.jsxs("div",{children:["Счётчик поднятий рук: ",me]})]})]})]})]})}function d({running:ie,token:he}){const xe=c.useRef(null),Re=c.useRef(null),[Ce,pe]=c.useState(null),[_e,we]=c.useState(!1),[$e,ve]=c.useState(0),[me,Se]=c.useState("up"),[De,et]=c.useState("up"),[rt,Me]=c.useState(0),We=c.useRef(0),[Qe,Ge]=c.useState(0),[tt,ke]=c.useState(0),xt=c.useRef(0),Ze=c.useRef(0),nt=c.useRef("up"),Be=c.useRef("up"),Le=c.useRef(0),Ie=c.useRef(0),Te=c.useRef(0),Xe=c.useRef(0),lt=c.useRef(null),mt=c.useRef(null),[Ot,dt]=c.useState(!1),[qe,ht]=c.useState(80),[zt,Vt]=c.useState(165),[Nt,ft]=c.useState(2),[ot,Ft]=c.useState(5),Ue=c.useRef(0),Je=c.useRef(0),[vt,yt]=c.useState(!0),[Ye,st]=c.useState(!0),[wt,Kt]=c.useState(!0),[bt,It]=c.useState(!1),[qt,In]=c.useState(!1),An=c.useRef(0),Nn=c.useRef(null),Rn=c.useRef(null),$n=c.useRef(null),Dn=c.useRef(null),wn=c.useRef([]),St=c.useRef(null),[an,Zt]=c.useState(!1),ct=c.useRef([]),je=c.useRef([]),pt=c.useRef([]);c.useEffect(()=>{const at=()=>Zt(document.fullscreenElement===St.current);return document.addEventListener("fullscreenchange",at),()=>document.removeEventListener("fullscreenchange",at)},[]),c.useEffect(()=>{try{const at=localStorage.getItem("activity.thresholds.squat.downThreshold"),Wt=localStorage.getItem("activity.thresholds.squat.upThreshold"),tn=localStorage.getItem("activity.thresholds.squat.minHoldFrames"),Ut=localStorage.getItem("activity.thresholds.squat.smoothWindow");if(at){const en=parseFloat(at);Number.isNaN(en)||ht(en)}if(Wt){const en=parseFloat(Wt);Number.isNaN(en)||Vt(en)}if(tn){const en=parseFloat(tn);Number.isNaN(en)||ft(en)}if(Ut){const en=parseFloat(Ut);Number.isNaN(en)||Ft(en)}}catch{}},[]);const it=()=>{const at=St.current;at&&(document.fullscreenElement?document.exitFullscreen().catch(()=>{}):at.requestFullscreen().catch(()=>{}))};c.useEffect(()=>{const at=()=>{try{const tn=localStorage.getItem("activity.thresholds.squat.downThreshold"),Ut=localStorage.getItem("activity.thresholds.squat.upThreshold"),en=localStorage.getItem("activity.ui.showGraphs"),Rt=localStorage.getItem("activity.ui.showGraphs.kneeAngle"),ze=localStorage.getItem("activity.ui.showLabels.knees"),He=localStorage.getItem("activity.ui.showGraphs.kneeLeft"),Tt=localStorage.getItem("activity.ui.showGraphs.kneeRight");if(tn){const Ae=parseFloat(tn);Number.isNaN(Ae)||ht(Ae)}if(Ut){const Ae=parseFloat(Ut);Number.isNaN(Ae)||Vt(Ae)}en!==null&&yt(en==="1"),Rt!==null&&st(Rt==="1"),ze!==null&&Kt(ze==="1"),He!==null&&It(He==="1"),Tt!==null&&In(Tt==="1")}catch{}};at();const Wt=setInterval(at,1e3);return()=>clearInterval(Wt)},[]);async function Ke(){var at,Wt,tn,Ut,en;if(window.Pose||(at=window.pose)!=null&&at.Pose){Dn.current=window.Pose||((Wt=window.pose)==null?void 0:Wt.Pose),wn.current=window.POSE_CONNECTIONS||((tn=window.pose)==null?void 0:tn.POSE_CONNECTIONS)||[];return}if(await new Promise((Rt,ze)=>{const He=document.createElement("script");He.src="https://cdn.jsdelivr.net/npm/@mediapipe/pose@0.5.1675469404",He.async=!0,He.onload=()=>Rt(),He.onerror=()=>ze(new Error("Не удалось загрузить @mediapipe/pose с CDN")),document.head.appendChild(He)}),Dn.current=window.Pose||((Ut=window.pose)==null?void 0:Ut.Pose),wn.current=window.POSE_CONNECTIONS||((en=window.pose)==null?void 0:en.POSE_CONNECTIONS)||[],!Dn.current)throw new Error("Pose конструктор недоступен после загрузки скрипта")}function Et(at,Wt,tn,Ut){at.strokeStyle="#00FF00",at.lineWidth=2;const en=wn.current||[];for(const[Rt,ze]of en){const He=Wt[Rt],Tt=Wt[ze];!He||!Tt||(at.beginPath(),at.moveTo(He.x*tn,He.y*Ut),at.lineTo(Tt.x*tn,Tt.y*Ut),at.stroke())}at.fillStyle="#00FF00";for(const Rt of Wt)Rt&&(at.beginPath(),at.arc(Rt.x*tn,Rt.y*Ut,2,0,Math.PI*2),at.fill())}return c.useEffect(()=>{let at=!0;async function Wt(){pe(null);try{await Ke();const Ut=Dn.current,en=new Ut({locateFile:Rt=>`https://cdn.jsdelivr.net/npm/@mediapipe/pose/${Rt}`});en.setOptions({selfieMode:!1,modelComplexity:1,smoothLandmarks:!0,minDetectionConfidence:.5,minTrackingConfidence:.5}),en.onResults(Rt=>{if(!at)return;const ze=performance.now();if(An.current){const He=(ze-An.current)/1e3;He>0&&ve(1/He)}An.current=ze;try{const He=Re.current,Tt=xe.current;if(!He||!Tt)return;He.width=Tt.videoWidth,He.height=Tt.videoHeight;const Ae=He.getContext("2d",{willReadFrequently:!0});if(!Ae)return;Ae.save(),Ae.clearRect(0,0,He.width,He.height),Ae.drawImage(Tt,0,0,He.width,He.height);const Bt=Rt.poseLandmarks||[];if(Bt.length){Et(Ae,Bt,He.width,He.height);const bn=23,Pn=25,En=27,qn=24,Fn=26,ar=28,$i=(Jn,mn,nr)=>{if(!Jn||!mn||!nr)return null;const ua=Jn.x-mn.x,_r=Jn.y-mn.y,Xr=nr.x-mn.x,no=nr.y-mn.y,da=ua*Xr+_r*no,Pi=Math.sqrt(ua*ua+_r*_r),Nr=Math.sqrt(Xr*Xr+no*no);if(!Pi||!Nr)return null;const vs=Math.max(-1,Math.min(1,da/(Pi*Nr)));return Math.acos(vs)*180/Math.PI},Ro=$i(Bt[bn],Bt[Pn],Bt[En]),At=$i(Bt[qn],Bt[Fn],Bt[ar]),nn=[Ro,At].filter(Jn=>typeof Jn=="number");let Tn=NaN;if(nn.length){Tn=nn.reduce((no,da)=>no+da,0)/nn.length;const Jn=ct.current;for(Jn.push(Math.max(0,Math.min(1,Tn/180)));Jn.length>ot;)Jn.shift();const mn=Jn.length?Jn.reduce((no,da)=>no+da,0)/Jn.length*180:Tn,nr=mn<qe,ua=mn>zt;nr?(Ue.current=Math.min(Ue.current+1,1e3),Je.current=0):ua?Je.current=Math.min(Je.current+1,1e3):Je.current=0;const _r=nr?"down":"up";Se(no=>{const da=no,Pi=_r;return da==="down"&&Pi==="up"&&Je.current>=Nt&&Me(Nr=>{const vs=Nr+1;return We.current=vs,(async()=>{try{await fetch(`${or}/v1/modules/activity.squat/control`,{method:"POST",headers:{"Content-Type":"application/json",...he?{Authorization:`Bearer ${he}`}:{}},body:JSON.stringify({action:"ingest",params:{metrics:{movement:"squat",count:vs}}})})}catch{}})(),vs}),Pi});const Xr=(no,da,Pi=120)=>{no.push(da),no.length>Pi&&no.shift()};Xr(ct.current,Math.max(0,Math.min(1,mn/180))),typeof Ro=="number"&&Xr(je.current,Math.max(0,Math.min(1,Ro/180))),typeof At=="number"&&Xr(pt.current,Math.max(0,Math.min(1,At/180)))}const Ln=me==="down"?"#FFB020":"#22C55E";Ae.fillStyle="rgba(0,0,0,0.5)",Ae.fillRect(8,8,240,80),Ae.fillStyle="#00FF00",Ae.font="14px monospace",Ae.fillText(`FPS: ${$e.toFixed(1)}`,16,28),Ae.fillStyle=Ln,Ae.fillText(`STATE: ${me.toUpperCase()}`,16,46),Ae.fillStyle="#00FF00",Number.isNaN(Tn)||Ae.fillText(`ANGLE: ${Math.round(Tn)}° (smoothed)`,140,46),Ae.fillStyle="rgba(0,0,0,0.5)",Ae.fillRect(8,92,240,24),Ae.fillStyle="#00FF00",Ae.fillText(`Счётчик приседаний: ${We.current}`,16,108);{const ua=He.width-150-8;let _r=8;const Xr=(Nr,vs,rf)=>{if(Ae.fillStyle="rgba(0,0,0,0.4)",Ae.fillRect(ua,rf,150,60),Nr.length>=2){Ae.strokeStyle=vs,Ae.lineWidth=2,Ae.beginPath();for(let fa=0;fa<Nr.length;fa++){const ro=ua+fa/(Nr.length-1)*150,oo=rf+Nr[fa]*60;fa===0?Ae.moveTo(ro,oo):Ae.lineTo(ro,oo)}Ae.stroke()}},no=Ye||vt,da=bt||vt,Pi=qt||vt;no&&(Xr(ct.current,"#FFB020",_r),_r+=66),da&&(Xr(je.current,"#FF5A1F",_r),_r+=66),Pi&&Xr(pt.current,"#22C55E",_r)}const jn=Jn=>{Bt[Jn]&&(Ae.fillStyle=Ln,Ae.beginPath(),Ae.arc(Bt[Jn].x*He.width,Bt[Jn].y*He.height,5,0,Math.PI*2),Ae.fill())};jn(Pn),jn(Fn),wt&&(Ae.fillStyle="#FFFFFF",Ae.font="12px monospace",Bt[Pn]&&typeof Ro=="number"&&Ae.fillText(`${Math.round(Ro)}°`,Bt[Pn].x*He.width+6,Bt[Pn].y*He.height-6),Bt[Fn]&&typeof At=="number"&&Ae.fillText(`${Math.round(At)}°`,Bt[Fn].x*He.width+6,Bt[Fn].y*He.height-6));const Yo=Math.floor(He.width/2),Ei=document.createElement("canvas"),To=document.createElement("canvas");Ei.width=Yo,Ei.height=He.height,To.width=Yo,To.height=He.height;const Oi=Ei.getContext("2d"),nf=To.getContext("2d");if(Oi&&nf){if(Oi.drawImage(Tt,0,0,Yo,He.height),nf.drawImage(Tt,Yo,0,Yo,He.height,0,0,Yo,He.height),!lt.current){const Jn=new Ut({locateFile:mn=>`https://cdn.jsdelivr.net/npm/@mediapipe/pose/${mn}`});Jn.setOptions({selfieMode:!1,modelComplexity:1,smoothLandmarks:!0,minDetectionConfidence:.5,minTrackingConfidence:.5}),Jn.onResults(mn=>{const Pi=(ro,oo,ma)=>{if(!ro||!oo||!ma)return null;const ji=ro.x-oo.x,vo=ro.y-oo.y,Su=ma.x-oo.x,Cu=ma.y-oo.y,PC=ji*Su+vo*Cu,Ah=Math.sqrt(ji*ji+vo*vo),Dh=Math.sqrt(Su*Su+Cu*Cu);if(!Ah||!Dh)return null;const jC=Math.max(-1,Math.min(1,PC/(Ah*Dh)));return Math.acos(jC)*180/Math.PI},Nr=mn.poseLandmarks||[],vs=Pi(Nr[23],Nr[25],Nr[27]),rf=Pi(Nr[24],Nr[26],Nr[28]),fa=[vs,rf].filter(ro=>typeof ro=="number");if(fa.length){const ro=fa.reduce((ji,vo)=>ji+vo,0)/fa.length,oo=ro<qe,ma=ro>zt;oo?(Le.current=Math.min(Le.current+1,1e3),Ie.current=0):ma?Ie.current=Math.min(Ie.current+1,1e3):Ie.current=0,nt.current==="up"&&oo&&Le.current>=Nt?nt.current="down":nt.current==="down"&&ma&&Ie.current>=Nt&&(nt.current="up",Ge(ji=>{const vo=ji+1;return xt.current=vo,(async()=>{try{await fetch(`${or}/v1/modules/activity.squat/control`,{method:"POST",headers:{"Content-Type":"application/json",...he?{Authorization:`Bearer ${he}`}:{}},body:JSON.stringify({action:"ingest",params:{metrics:{movement:"squat",count:vo,variant:"left"}}})})}catch{}})(),vo}))}}),lt.current=Jn}if(!mt.current){const Jn=new Ut({locateFile:mn=>`https://cdn.jsdelivr.net/npm/@mediapipe/pose/${mn}`});Jn.setOptions({selfieMode:!1,modelComplexity:1,smoothLandmarks:!0,minDetectionConfidence:.5,minTrackingConfidence:.5}),Jn.onResults(mn=>{const Pi=(ro,oo,ma)=>{if(!ro||!oo||!ma)return null;const ji=ro.x-oo.x,vo=ro.y-oo.y,Su=ma.x-oo.x,Cu=ma.y-oo.y,PC=ji*Su+vo*Cu,Ah=Math.sqrt(ji*ji+vo*vo),Dh=Math.sqrt(Su*Su+Cu*Cu);if(!Ah||!Dh)return null;const jC=Math.max(-1,Math.min(1,PC/(Ah*Dh)));return Math.acos(jC)*180/Math.PI},Nr=mn.poseLandmarks||[],vs=Pi(Nr[23],Nr[25],Nr[27]),rf=Pi(Nr[24],Nr[26],Nr[28]),fa=[vs,rf].filter(ro=>typeof ro=="number");if(fa.length){const ro=fa.reduce((ji,vo)=>ji+vo,0)/fa.length,oo=ro<qe,ma=ro>zt;oo?(Te.current=Math.min(Te.current+1,1e3),Xe.current=0):ma?Xe.current=Math.min(Xe.current+1,1e3):Xe.current=0,Be.current==="up"&&oo&&Te.current>=Nt?Be.current="down":Be.current==="down"&&ma&&Xe.current>=Nt&&(Be.current="up",ke(ji=>{const vo=ji+1;return Ze.current=vo,(async()=>{try{await fetch(`${or}/v1/modules/activity.squat/control`,{method:"POST",headers:{"Content-Type":"application/json",...he?{Authorization:`Bearer ${he}`}:{}},body:JSON.stringify({action:"ingest",params:{metrics:{movement:"squat",count:vo,variant:"right"}}})})}catch{}})(),vo}))}}),mt.current=Jn}lt.current.send({image:Ei}).catch(()=>{}),mt.current.send({image:To}).catch(()=>{}),Ae.fillStyle="rgba(0,0,0,0.5)",Ae.fillRect(8,128,300,28),Ae.fillStyle="#00FF00",Ae.font="14px monospace",Ae.fillText(`Левый: ${xt.current} · Правый: ${Ze.current}`,16,148)}}Ae.restore()}catch{}});try{const Rt=await navigator.mediaDevices.getUserMedia({video:{facingMode:"user",width:640,height:480},audio:!1});$n.current=Rt,xe.current&&(xe.current.srcObject=Rt,await xe.current.play().catch(()=>{}));const ze=async()=>{at&&(Nn.current&&xe.current&&await Nn.current.send({image:xe.current}),Rn.current=requestAnimationFrame(ze))};Nn.current=en,Rn.current=requestAnimationFrame(ze),we(!0)}catch(Rt){pe("Нет доступа к камере: "+((Rt==null?void 0:Rt.message)||"неизвестная"))}}catch(Ut){pe("Ошибка инициализации Pose: "+((Ut==null?void 0:Ut.message)||"неизвестная"))}}function tn(){var Ut;we(!1);try{(Ut=Nn.current)==null||Ut.close()}catch{}Rn.current&&(cancelAnimationFrame(Rn.current),Rn.current=null);try{if($n.current){for(const en of $n.current.getTracks())en.stop();$n.current=null}}catch{}Nn.current=null}return ie&&Wt(),()=>{at=!1,tn()}},[ie]),g.jsxs("div",{style:{marginTop:12},children:[g.jsx(dn.Text,{type:"secondary",children:"Счётчик приседаний (MediaPipe Pose)"}),g.jsxs("div",{style:{marginTop:8,display:"flex",gap:16,alignItems:"flex-start"},children:[g.jsxs("div",{ref:St,style:{position:"relative",width:640,height:480},children:[g.jsx("video",{ref:at=>{xe.current=at},style:{width:640,height:480,display:"none"},playsInline:!0}),g.jsx("canvas",{ref:at=>{Re.current=at},style:{width:"100%",height:"100%",background:"#000",borderRadius:4}}),g.jsx("button",{onClick:it,style:{position:"absolute",top:8,right:8,zIndex:10},children:"На весь экран"})]}),g.jsxs("div",{children:[Ce&&g.jsx(dn.Text,{type:"danger",children:Ce}),!Ce&&!an&&g.jsxs("div",{children:[g.jsxs("div",{children:["Обработка: ",_e?"включена":"выключена"]}),g.jsxs("div",{style:{marginTop:8},children:["Счётчик приседаний: ",rt]}),g.jsxs("div",{children:["Состояние: ",me]}),g.jsxs("div",{children:["FPS: ",$e.toFixed(1)]}),g.jsx("div",{style:{marginTop:8},children:g.jsxs("div",{children:["Левый: ",Qe," · Правый: ",tt]})}),g.jsxs("div",{style:{marginTop:12},children:[g.jsx("div",{style:{marginBottom:6},children:"Порог downThreshold (°):"}),g.jsx(un,{min:30,max:150,step:1,value:qe,onChange:at=>{if(typeof at=="number"){ht(at);try{localStorage.setItem("activity.thresholds.squat.downThreshold",String(at))}catch{}}}})]}),g.jsxs("div",{style:{marginTop:12},children:[g.jsx("div",{children:"Порог upThreshold (°):"}),g.jsx(un,{min:120,max:180,step:1,value:zt,onChange:at=>{if(typeof at=="number"){Vt(at);try{localStorage.setItem("activity.thresholds.squat.upThreshold",String(at))}catch{}}}})]}),g.jsxs("div",{style:{marginTop:12},children:[g.jsx("div",{style:{marginBottom:6},children:"Минимум кадров удержания:"}),g.jsx(un,{min:1,max:12,step:1,value:Nt,onChange:at=>typeof at=="number"&&ft(at)})]}),g.jsxs("div",{style:{marginTop:12},children:[g.jsx("div",{style:{marginBottom:6},children:"Окно сглаживания:"}),g.jsx(un,{min:1,max:10,step:1,value:ot,onChange:at=>typeof at=="number"&&Ft(at)})]}),g.jsx("div",{style:{marginTop:12},children:g.jsx(gt,{type:"primary",onClick:()=>{try{localStorage.setItem("activity.thresholds.squat.downThreshold",String(qe)),localStorage.setItem("activity.thresholds.squat.upThreshold",String(zt)),localStorage.setItem("activity.thresholds.squat.minHoldFrames",String(Nt)),localStorage.setItem("activity.thresholds.squat.smoothWindow",String(ot)),Pt.success("Настройки приседаний сохранены")}catch{Pt.error("Не удалось сохранить настройки")}},children:"Сохранить"})})]})]})]})]})}const[f,m]=c.useState([]),[h,p]=c.useState(""),[b,v]=c.useState(1),[y,x]=c.useState(""),[w,C]=c.useState(null),[S,$]=c.useState(""),[E,O]=c.useState(""),[P,j]=c.useState(""),[I,_]=c.useState(null),[R,N]=c.useState(null),[A,M]=c.useState(null),[T,k]=c.useState(null),[D,L]=c.useState(""),[B,H]=c.useState(""),[F,W]=c.useState([]),[q,G]=c.useState(""),[te,ee]=c.useState([]),[z,ne]=c.useState(null),[X,U]=c.useState(!1),[le,se]=c.useState(!1),[ae,re]=c.useState(!1),[fe,ye]=c.useState("dashboard");c.useEffect(()=>{const ie=localStorage.getItem("school_token");ie&&_(ie)},[]),c.useEffect(()=>{const ie=new URLSearchParams(window.location.search),he=ie.get("access_token")||ie.get("token");if(he&&(localStorage.setItem("school_token",he),_(he),window.history.replaceState({},"","/")),!he){const xe=document.cookie.match(/(?:^|; )school_token=([^;]+)/);if(xe&&xe[1])try{const Re=decodeURIComponent(xe[1]);localStorage.setItem("school_token",Re),_(Re)}catch{}}},[]);async function Pe(){const ie=await fetch(`${or}/v1/students`,{headers:I?{Authorization:`Bearer ${I}`}:{}});if(!ie.ok){Pt.warning("Требуется авторизация");return}const he=await ie.json();m(he)}async function Oe(){if(!I)return;const ie=await fetch(`${or}/v1/auth/me`,{headers:{Authorization:`Bearer ${I}`}});if(ie.ok){const he=await ie.json();N(he.role||null),M(he.school_id||null)}}async function V(){if(R!=="admin"||!I)return;const ie=await fetch(`${or}/v1/schools`,{headers:{Authorization:`Bearer ${I}`}});if(ie.ok){const he=await ie.json();W(he)}}c.useEffect(()=>{I&&(Oe(),Pe(),J(),R==="admin"&&V())},[I]);async function J(){if(I){U(!0);try{const ie=await fetch(`${or}/v1/modules`,{headers:{...I?{Authorization:`Bearer ${I}`}:{}}});if(!ie.ok){(ie.status===401||ie.status===403)&&Pt.warning("Недостаточно прав для просмотра модулей");return}const he=await ie.json();ee(he),he.length&&!z&&ne(he[0].id)}catch{Pt.error("Ошибка загрузки модулей")}finally{U(!1)}}}c.useEffect(()=>{if(!I||!te.length||ae)return;const ie=te.find(he=>he.id==="activity.camera");ie&&(z!==ie.id&&ne(ie.id),ie.running||(async()=>{try{const he=await fetch(`${or}/v1/modules/${encodeURIComponent(ie.id)}/control`,{method:"POST",headers:{"Content-Type":"application/json",...I?{Authorization:`Bearer ${I}`}:{}},body:JSON.stringify({action:"start"})}),xe=await he.json().catch(()=>({}));!he.ok||xe.ok}catch{}})(),re(!0))},[te,I,z,ae]);async function oe(ie){if(!(!I||!z)){se(!0);try{const he=await fetch(`${or}/v1/modules/${encodeURIComponent(z)}/control`,{method:"POST",headers:{"Content-Type":"application/json",...I?{Authorization:`Bearer ${I}`}:{}},body:JSON.stringify({action:ie})}),xe=await he.json().catch(()=>({}));if(!he.ok||xe.ok===!1){Pt.error(xe.error||"Команда отклонена");return}Pt.success(`Команда выполнена: ${ie}`),J()}catch{Pt.error("Ошибка отправки команды модулю")}finally{se(!1)}}}async function de(){const ie=await fetch(`${or}/v1/students`,{method:"POST",headers:{"Content-Type":"application/json",...I?{Authorization:`Bearer ${I}`}:{}},body:JSON.stringify({full_name:h,grade:b,grade_letter:y||void 0})});if(!ie.ok){Pt.error("Ошибка добавления");return}const xe=(await ie.json()).id;if(w){const Ce=new FormData;Ce.append("image",w),(await fetch(`${or}/v1/students/${encodeURIComponent(xe)}/photo`,{method:"POST",headers:{...I?{Authorization:`Bearer ${I}`}:{}},body:Ce})).ok||Pt.warning("Фото не загружено")}const Re=S.split(",").map(Ce=>Ce.trim()).filter(Boolean);Re.length&&((await fetch(`${or}/v1/students/${encodeURIComponent(xe)}`,{method:"PATCH",headers:{"Content-Type":"application/json",...I?{Authorization:`Bearer ${I}`}:{}},body:JSON.stringify({categories:Re})})).ok||Pt.warning("Категории не сохранены")),p(""),v(1),x(""),C(null),$(""),Pe()}c.useEffect(()=>{I&&(Oe(),Pe())},[I]),c.useEffect(()=>{R==="admin"&&V()},[R]);async function be(){(await fetch(`${or}/v1/auth/request_otp`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({phone:E})})).ok?Pt.success("Код отправлен"):Pt.error("Ошибка отправки кода")}async function ge(){const ie=await fetch(`${or}/v1/auth/verify_otp`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({phone:E,code:P})});if(!ie.ok){Pt.error("Ошибка проверки кода");return}const he=await ie.json();localStorage.setItem("school_token",he.access_token),_(he.access_token)}return I?g.jsxs(Ni,{style:{minHeight:"100vh"},children:[g.jsxs(Ni.Header,{style:{display:"flex",alignItems:"center",justifyContent:"space-between"},children:[g.jsxs(dn.Title,{level:4,style:{color:"#fff",margin:0},children:["School Node Dashboard",A?` — школа: ${A}`:""]}),g.jsxs(pn,{children:[g.jsx(gt,{type:fe==="student"?"primary":"default",onClick:()=>ye(fe==="student"?"dashboard":"student"),children:fe==="student"?"Перейти к управлению":"Кабинет ученика"}),I&&g.jsx(gt,{size:"small",onClick:J,children:"Обновить модули"}),g.jsx(gt,{icon:g.jsx(R3,{}),onClick:()=>{localStorage.removeItem("school_token"),_(null)},children:"Выйти"})]})]}),g.jsxs(Ni,{children:[fe==="dashboard"&&I&&g.jsxs(Ni.Sider,{width:280,theme:"light",children:[g.jsx("div",{style:{padding:12,fontWeight:600},children:"Модули"}),g.jsx(yu,{mode:"inline",selectedKeys:z?[z]:[],onSelect:ie=>ne(ie.key),items:(te.length?te:[{id:"no-modules",name:"Нет модулей",enabled:!0}]).map(ie=>({key:ie.id,label:g.jsxs(pn,{children:[g.jsx("span",{children:e[ie.id]||ie.name}),ie.enabled?g.jsx(zn,{color:"green",children:t.enabled}):g.jsx(zn,{color:"red",children:t.disabled}),typeof ie.running=="boolean"&&(ie.running?g.jsx(zn,{color:"blue",children:t.running}):g.jsx(zn,{children:t.stopped}))]})}))})]}),g.jsxs(Ni.Content,{style:{margin:16},children:[fe==="dashboard"&&g.jsxs(g.Fragment,{children:[g.jsx(Gt,{title:"Локальные данные школы",style:{marginBottom:16},children:g.jsx(dn.Text,{children:"Подключение только к API School Node."})}),I&&g.jsx(Gt,{title:"Управление модулем",style:{marginBottom:16},children:z?(()=>{const ie=te.find(he=>he.id===z);return ie?g.jsxs("div",{children:[g.jsx(dn.Title,{level:5,style:{marginTop:0},children:e[ie.id]||ie.name}),g.jsxs(pn,{wrap:!0,children:[g.jsx(zn,{children:ie.id}),g.jsxs(zn,{color:"cyan",children:["v",ie.version]}),g.jsx(zn,{color:"purple",children:ie.category}),ie.enabled?g.jsx(zn,{color:"green",children:t.enabled}):g.jsx(zn,{color:"red",children:t.disabled}),typeof ie.running=="boolean"&&(ie.running?g.jsx(zn,{color:"blue",children:t.running}):g.jsx(zn,{children:t.stopped})),typeof ie.sensitivity=="number"&&g.jsxs(zn,{color:"geekblue",children:["s=",String(ie.sensitivity)]})]}),g.jsx("div",{style:{marginTop:12},children:g.jsxs(pn,{children:[g.jsx(gt,{onClick:()=>oe("status"),loading:le,children:"Статус"}),g.jsx(gt,{onClick:()=>oe("start"),loading:le,type:"primary",children:"Старт"}),g.jsx(gt,{onClick:()=>oe("stop"),loading:le,danger:!0,children:"Стоп"})]})}),ie.id==="activity.camera"&&g.jsx(n,{running:!!ie.running,token:I}),ie.id==="activity.motion"&&g.jsxs(g.Fragment,{children:[g.jsx(r,{running:!!ie.running,token:I}),g.jsx(u,{running:!!ie.running,token:I})]}),ie.id==="activity.jump"&&g.jsx(o,{running:!!ie.running,token:I}),ie.id==="activity.squat"&&g.jsx(d,{running:!!ie.running,token:I}),ie.id==="activity.pushup"&&g.jsx(i,{running:!!ie.running,token:I}),ie.id==="activity.abs"&&g.jsx(a,{running:!!ie.running,token:I}),(ie.id==="activity.pushup"||ie.id==="activity.abs"||ie.id==="activity.squat"||ie.id==="activity.jump")&&g.jsxs(g.Fragment,{children:[g.jsx(s,{moduleId:ie.id,token:I}),g.jsx(l,{moduleId:ie.id})]})]}):g.jsx(dn.Text,{type:"secondary",children:"Выберите модуль слева"})})():g.jsx(dn.Text,{type:"secondary",children:"Выберите модуль слева"})})]}),R==="admin"&&g.jsxs(Gt,{title:"Добавить школу (админ)",style:{marginBottom:16},children:[g.jsxs(Lt,{layout:"inline",onFinish:async()=>{const ie=await fetch(`${or}/v1/schools`,{method:"POST",headers:{"Content-Type":"application/json",...I?{Authorization:`Bearer ${I}`}:{}},body:JSON.stringify({name:D,id:B||void 0})});if(!ie.ok){Pt.error("Ошибка создания школы");return}const he=await ie.json();M(he.id),k(he.name),L(""),H(""),Pt.success(`Школа создана: ${he.name}`),V()},children:[g.jsx(Lt.Item,{children:g.jsx(Sn,{placeholder:"Название школы",value:D,onChange:ie=>L(ie.target.value),style:{width:260}})}),g.jsx(Lt.Item,{children:g.jsx(Sn,{placeholder:"ID (необязательно)",value:B,onChange:ie=>H(ie.target.value),style:{width:220}})}),g.jsx(Lt.Item,{children:g.jsx(gt,{type:"primary",htmlType:"submit",children:"Создать школу и привязать"})})]}),g.jsx(dn.Paragraph,{type:"secondary",style:{marginTop:8},children:"После создания админская учётка привязывается к этой школе; данные будут фильтроваться по школе."}),g.jsx("div",{style:{marginTop:16},children:g.jsxs(Lt,{layout:"inline",onFinish:async()=>{if(!q){Pt.warning("Выберите школу");return}const ie=await fetch(`${or}/v1/auth/bind_school`,{method:"POST",headers:{"Content-Type":"application/json",...I?{Authorization:`Bearer ${I}`}:{}},body:JSON.stringify({school_id:q})});if(!ie.ok){Pt.error("Ошибка привязки школы");return}const he=await ie.json();M(he.school.id),k(he.school.name),Pt.success(`Привязка выполнена: ${he.school.name}`),Pe()},children:[g.jsx(Lt.Item,{children:g.jsx(pr,{value:q||void 0,onChange:ie=>G(ie),style:{width:380},placeholder:"Выберите школу для привязки",options:F.map(ie=>({value:ie.id,label:`${ie.name} (${ie.id})`}))})}),g.jsx(Lt.Item,{children:g.jsx(gt,{type:"default",htmlType:"submit",children:"Привязать выбранную школу"})})]})})]}),fe==="dashboard"&&g.jsx(Gt,{title:"Добавить школьника",style:{marginBottom:16},children:g.jsxs(Lt,{layout:"inline",onFinish:de,children:[g.jsx(Lt.Item,{children:g.jsx(Sn,{placeholder:"ФИО",value:h,onChange:ie=>p(ie.target.value),prefix:g.jsx(Ine,{}),style:{width:280}})}),g.jsx(Lt.Item,{children:g.jsx(pr,{value:b,onChange:ie=>v(ie),style:{width:120},options:Array.from({length:11},(ie,he)=>({value:he+1,label:String(he+1)}))})}),g.jsx(Lt.Item,{children:g.jsx(Sn,{placeholder:"Буква класса",value:y,onChange:ie=>x(ie.target.value.toUpperCase().slice(0,1)),style:{width:120},maxLength:1})}),g.jsx(Lt.Item,{children:g.jsx(Sn,{type:"file",onChange:ie=>C(ie.target.files?ie.target.files[0]:null),style:{width:220}})}),g.jsx(Lt.Item,{children:g.jsx(Sn,{placeholder:"Категории (через запятую)",value:S,onChange:ie=>$(ie.target.value),style:{width:240}})}),g.jsx(Lt.Item,{children:g.jsx(gt,{type:"primary",htmlType:"submit",icon:g.jsx(pC,{}),children:"Добавить"})})]})}),fe==="dashboard"&&g.jsx(Gt,{title:"Студенты",children:g.jsx(Si,{rowKey:"id",dataSource:f,pagination:!1,columns:[{title:"ФИО",dataIndex:"full_name"},{title:"Класс",render:(ie,he)=>`${he.grade}${he.grade_letter?he.grade_letter:""}`},{title:"Фото",dataIndex:"photo_url",render:ie=>ie?g.jsx("a",{href:ie,target:"_blank",rel:"noreferrer",children:"Фото"}):"-"},{title:"Категории",dataIndex:"categories",render:ie=>ie&&ie.length?ie.map(he=>g.jsx(zn,{children:he},he)):"-"},{title:"Создан",dataIndex:"created_at",render:ie=>new Date(ie).toLocaleString()}]})}),fe==="student"&&g.jsx(FJe,{token:I,students:f})]})]})]}):g.jsx(Ni,{style:{minHeight:"100vh"},children:g.jsx(Ni.Content,{style:{display:"flex",alignItems:"center",justifyContent:"center"},children:g.jsxs(Gt,{title:"Вход по SMS",style:{width:520},children:[g.jsx(dn.Paragraph,{children:"Введите телефон, получите код и подтвердите вход."}),g.jsxs(Lt,{layout:"vertical",onFinish:ge,children:[g.jsx(Lt.Item,{label:"Телефон",required:!0,children:g.jsxs(pn.Compact,{style:{width:"100%"},children:[g.jsx(Sn,{placeholder:"Телефон",value:E,onChange:ie=>O(ie.target.value),prefix:g.jsx(AZe,{})}),g.jsx(gt,{onClick:be,type:"default",children:"Отправить код"})]})}),g.jsx(Lt.Item,{label:"Код",required:!0,children:g.jsx(Sn,{placeholder:"Код",value:P,onChange:ie=>j(ie.target.value)})}),g.jsx(Lt.Item,{children:g.jsx(pn,{children:g.jsx(gt,{type:"primary",htmlType:"submit",icon:g.jsx(SZe,{}),children:"Войти"})})}),g.jsxs(Lt.Item,{style:{marginTop:8},children:[g.jsx(dn.Text,{type:"secondary",children:"Быстрый вход (mock):"}),g.jsx("div",{style:{marginTop:8},children:g.jsx(pn,{})})]})]})]})})})}function FJe({token:e,students:t}){const n=window.PoseView,r=window.SquatView,o=window.PushUpView,i=t[0]||null,[a,s]=c.useState("home"),[l,u]=c.useState("warmup"),{speak:d}=LJe();c.useEffect(()=>{l==="pushups"&&d("Приготовьтесь к отжиманиям. Примите упор лежа и следуйте инструкциям на экране."),l==="squat"&&d("Приготовьтесь к приседаниям. Встаньте так, чтобы вас было видно в камеру в полный рост."),l==="warmup"&&d("Начинаем разминку. Повторяйте движения за инструктором."),l==="yoga"&&d("Режим йоги. Дышите глубоко и сохраняйте спокойствие.")},[l,d]);const[f,m]=c.useState(()=>{const z=localStorage.getItem("activity.ui.showGraphs");return z==null?!0:z==="1"}),[h,p]=c.useState(()=>{const z=localStorage.getItem("activity.ui.showGraphs.kneeAngle");return z==null?!0:z==="1"}),[b,v]=c.useState(()=>{const z=localStorage.getItem("activity.ui.showGraphs.kneeLeft");return z==null?!1:z==="1"}),[y,x]=c.useState(()=>{const z=localStorage.getItem("activity.ui.showGraphs.kneeRight");return z==null?!1:z==="1"}),[w,C]=c.useState(()=>{const z=localStorage.getItem("activity.ui.showGraphs.ankleLeft");return z==null?!0:z==="1"}),[S,$]=c.useState(()=>{const z=localStorage.getItem("activity.ui.showGraphs.ankleRight");return z==null?!0:z==="1"}),[E,O]=c.useState(()=>{const z=localStorage.getItem("activity.ui.showLabels.knees");return z==null?!0:z==="1"}),[P,j]=c.useState(()=>{const z=localStorage.getItem("activity.ui.showLabels.ankles");return z==null?!0:z==="1"}),[I,_]=c.useState(()=>{const z=localStorage.getItem("activity.ui.showLabels.ankleLeft");return z==null?!1:z==="1"}),[R,N]=c.useState(()=>{const z=localStorage.getItem("activity.ui.showLabels.ankleRight");return z==null?!1:z==="1"}),[A,M]=c.useState(()=>{const z=localStorage.getItem("activity.thresholds.jump.thresholdUp");return z?parseFloat(z):.05}),[T,k]=c.useState(()=>{const z=localStorage.getItem("activity.thresholds.jump.thresholdDown");return z?parseFloat(z):.03}),[D,L]=c.useState(()=>{const z=localStorage.getItem("activity.thresholds.squat.downThreshold");return z?parseFloat(z):80}),[B,H]=c.useState(()=>{const z=localStorage.getItem("activity.thresholds.squat.upThreshold");return z?parseFloat(z):165}),F=()=>{const z=(X,U)=>{const le=localStorage.getItem(X);return le==null?U:le==="1"},ne=(X,U)=>{const le=localStorage.getItem(X);return le?parseFloat(le):U};m(z("activity.ui.showGraphs",!0)),p(z("activity.ui.showGraphs.kneeAngle",!0)),v(z("activity.ui.showGraphs.kneeLeft",!1)),x(z("activity.ui.showGraphs.kneeRight",!1)),C(z("activity.ui.showGraphs.ankleLeft",!0)),$(z("activity.ui.showGraphs.ankleRight",!0)),O(z("activity.ui.showLabels.knees",!0)),j(z("activity.ui.showLabels.ankles",!0)),_(z("activity.ui.showLabels.ankleLeft",!1)),N(z("activity.ui.showLabels.ankleRight",!1)),M(ne("activity.thresholds.jump.thresholdUp",.05)),k(ne("activity.thresholds.jump.thresholdDown",.03)),L(ne("activity.thresholds.squat.downThreshold",80)),H(ne("activity.thresholds.squat.upThreshold",165))},W=()=>{const z={};for(let le=0;le<localStorage.length;le++){const se=localStorage.key(le)||"";if(se.startsWith("activity.")){const ae=localStorage.getItem(se);ae!=null&&(z[se]=ae)}}const ne=new Blob([JSON.stringify(z,null,2)],{type:"application/json"}),X=URL.createObjectURL(ne),U=document.createElement("a");U.href=X,U.download="activity-settings.json",document.body.appendChild(U),U.click(),document.body.removeChild(U),URL.revokeObjectURL(X)},q=c.useRef(null),G=()=>{var z;(z=q.current)==null||z.click()},te=z=>{var U;const ne=(U=z.target.files)==null?void 0:U[0];if(!ne)return;const X=new FileReader;X.onload=()=>{try{const le=JSON.parse(String(X.result||"{}"));typeof le=="object"&&le&&(Object.entries(le).forEach(([se,ae])=>{typeof ae=="string"&&localStorage.setItem(se,ae)}),F())}catch{}},X.readAsText(ne),z.target.value=""},ee=()=>{const z=[];for(let ne=0;ne<localStorage.length;ne++){const X=localStorage.key(ne)||"";X.startsWith("activity.")&&z.push(X)}z.forEach(ne=>localStorage.removeItem(ne)),F()};return c.useEffect(()=>{localStorage.setItem("activity.ui.showGraphs",f?"1":"0")},[f]),c.useEffect(()=>{localStorage.setItem("activity.ui.showGraphs.kneeAngle",h?"1":"0")},[h]),c.useEffect(()=>{localStorage.setItem("activity.ui.showGraphs.kneeLeft",b?"1":"0")},[b]),c.useEffect(()=>{localStorage.setItem("activity.ui.showGraphs.kneeRight",y?"1":"0")},[y]),c.useEffect(()=>{localStorage.setItem("activity.ui.showGraphs.ankleLeft",w?"1":"0")},[w]),c.useEffect(()=>{localStorage.setItem("activity.ui.showGraphs.ankleRight",S?"1":"0")},[S]),c.useEffect(()=>{localStorage.setItem("activity.ui.showLabels.knees",E?"1":"0")},[E]),c.useEffect(()=>{localStorage.setItem("activity.ui.showLabels.ankles",P?"1":"0")},[P]),c.useEffect(()=>{localStorage.setItem("activity.ui.showLabels.ankleLeft",I?"1":"0")},[I]),c.useEffect(()=>{localStorage.setItem("activity.ui.showLabels.ankleRight",R?"1":"0")},[R]),c.useEffect(()=>{localStorage.setItem("activity.thresholds.jump.thresholdUp",String(A))},[A]),c.useEffect(()=>{localStorage.setItem("activity.thresholds.jump.thresholdDown",String(T))},[T]),c.useEffect(()=>{localStorage.setItem("activity.thresholds.squat.downThreshold",String(D))},[D]),c.useEffect(()=>{localStorage.setItem("activity.thresholds.squat.upThreshold",String(B))},[B]),g.jsxs("div",{children:[g.jsx(Gt,{style:{marginBottom:16},children:g.jsxs("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:[g.jsxs(pn,{align:"center",children:[g.jsx(Ja,{size:48,src:(i==null?void 0:i.photo_url)||void 0,children:((i==null?void 0:i.full_name)||"Ученик").slice(0,1)}),g.jsxs("div",{children:[g.jsxs(dn.Title,{level:4,style:{margin:0},children:["Привет, ",(i==null?void 0:i.full_name)||"Ученик","!"]}),g.jsx(dn.Text,{type:"secondary",children:"Сегодня у тебя 3 задания и 1 новая тренировка"})]})]}),g.jsx(DJe,{token:e})]})}),g.jsx(tf,{activeKey:a,onChange:s,items:[{key:"home",label:"Главная",children:g.jsxs(pn,{direction:"vertical",style:{width:"100%"},children:[g.jsxs(pn,{wrap:!0,children:[g.jsx(Gt,{title:"Твой прогресс сегодня",style:{width:360},children:g.jsxs(pn,{direction:"vertical",style:{width:"100%"},children:[g.jsx("div",{children:"Активность: 45 мин"}),g.jsx("div",{children:"Приседаний: 25"}),g.jsx("div",{children:"Отжиманий: 15"}),g.jsxs("div",{style:{display:"flex",alignItems:"center",gap:8},children:["Уровень энергии:",g.jsx(Au,{percent:80,size:"small",style:{flex:1}})]})]})}),g.jsx(Gt,{title:"Тренировки AI",style:{width:360},children:g.jsxs(pn,{wrap:!0,children:[g.jsx(gt,{onClick:()=>{u("warmup"),s("activity")},children:"Разминка"}),g.jsx(gt,{type:"primary",onClick:()=>{u("squat"),s("activity")},children:"Приседания"}),g.jsx(gt,{onClick:()=>{u("pushups"),s("activity")},children:"Отжимания"}),g.jsx(gt,{onClick:()=>{u("yoga"),s("activity")},children:"Йога"})]})}),g.jsx(Gt,{title:"Учебные миссии",style:{width:360},children:g.jsx(Yn,{size:"small",dataSource:["Задание по математике (ИИ-тест)","Видео-урок по истории от AI Teacher"],renderItem:z=>g.jsxs(Yn.Item,{children:[z," ",g.jsx(gt,{size:"small",style:{marginLeft:"auto"},children:"Открыть"})]})})})]}),g.jsx(Gt,{title:"Награды",children:g.jsxs(pn,{wrap:!0,children:[g.jsx(Km.Ribbon,{text:"Мастер фокусировки",color:"green",children:g.jsx(Gt,{style:{width:240},children:"🎖 Достигнут новый уровень"})}),g.jsxs(Gt,{style:{width:240},children:["Прогресс до следующей цели",g.jsx(Au,{percent:65})]})]})})]})},{key:"activity",label:"AI-движения",children:g.jsxs(Gt,{children:[g.jsxs(pn,{style:{marginBottom:12},children:[g.jsx(dn.Text,{children:"Режим:"}),g.jsx(pr,{value:l,options:[{value:"warmup",label:"Разминка"},{value:"squat",label:"Приседания"},{value:"pushups",label:"Отжимания"},{value:"yoga",label:"Йога"}],onChange:z=>u(z),style:{width:180}}),g.jsx(gt,{type:"primary",children:"Завершить"})]}),g.jsx(Gt,{size:"small",style:{marginBottom:12},title:"Панель настроек активности",children:g.jsxs(pn,{wrap:!0,children:[g.jsxs("label",{style:{display:"flex",alignItems:"center",gap:8},children:[g.jsx("input",{type:"checkbox",checked:f,onChange:z=>m(z.target.checked)}),"Показывать графики"]}),g.jsx(Ol,{type:"vertical"}),g.jsxs("label",{style:{display:"flex",alignItems:"center",gap:8},children:[g.jsx("input",{type:"checkbox",checked:h,onChange:z=>p(z.target.checked)}),"График угла коленей (сводный)"]}),g.jsxs("label",{style:{display:"flex",alignItems:"center",gap:8},children:[g.jsx("input",{type:"checkbox",checked:b,onChange:z=>v(z.target.checked)}),"График колена (левое)"]}),g.jsxs("label",{style:{display:"flex",alignItems:"center",gap:8},children:[g.jsx("input",{type:"checkbox",checked:y,onChange:z=>x(z.target.checked)}),"График колена (правое)"]}),g.jsxs("label",{style:{display:"flex",alignItems:"center",gap:8},children:[g.jsx("input",{type:"checkbox",checked:w,onChange:z=>C(z.target.checked)}),"График лодыжки (левая)"]}),g.jsxs("label",{style:{display:"flex",alignItems:"center",gap:8},children:[g.jsx("input",{type:"checkbox",checked:S,onChange:z=>$(z.target.checked)}),"График лодыжки (правая)"]}),g.jsx(Ol,{type:"vertical"}),g.jsxs("label",{style:{display:"flex",alignItems:"center",gap:8},children:[g.jsx("input",{type:"checkbox",checked:E,onChange:z=>O(z.target.checked)}),"Метки угла на коленях"]}),g.jsxs("label",{style:{display:"flex",alignItems:"center",gap:8},children:[g.jsx("input",{type:"checkbox",checked:P,onChange:z=>j(z.target.checked)}),"Метки y на лодыжках (общие)"]}),g.jsxs("label",{style:{display:"flex",alignItems:"center",gap:8},children:[g.jsx("input",{type:"checkbox",checked:I,onChange:z=>_(z.target.checked)}),"Метка лодыжки (левая)"]}),g.jsxs("label",{style:{display:"flex",alignItems:"center",gap:8},children:[g.jsx("input",{type:"checkbox",checked:R,onChange:z=>N(z.target.checked)}),"Метка лодыжки (правая)"]}),g.jsx(Ol,{type:"vertical"}),g.jsxs("div",{children:["Прыжки: thresholdUp",g.jsx(un,{min:0,max:.2,step:.005,value:A,onChange:z=>typeof z=="number"&&M(z||0),style:{marginLeft:6}})]}),g.jsxs("div",{children:["thresholdDown",g.jsx(un,{min:0,max:.2,step:.005,value:T,onChange:z=>typeof z=="number"&&k(z||0),style:{marginLeft:6}})]}),g.jsx(Ol,{type:"vertical"}),g.jsxs("div",{children:["Приседания: downThreshold (°)",g.jsx(un,{min:30,max:150,step:1,value:D,onChange:z=>typeof z=="number"&&L(z||0),style:{marginLeft:6}})]}),g.jsxs("div",{children:["upThreshold (°)",g.jsx(un,{min:120,max:180,step:1,value:B,onChange:z=>typeof z=="number"&&H(z||0),style:{marginLeft:6}})]}),g.jsx(Ol,{type:"vertical"}),g.jsx(gt,{onClick:W,children:"Экспорт настроек"}),g.jsx(gt,{onClick:G,children:"Импорт настроек"}),g.jsx(gt,{danger:!0,onClick:ee,children:"Сбросить настройки"}),g.jsx("input",{ref:q,type:"file",accept:"application/json",style:{display:"none"},onChange:te})]})}),l==="squat"&&g.jsxs("div",{children:[g.jsx(dn.Paragraph,{children:"Счётчик повторов «Приседания ×10». Включена камера и распознавание позы."}),r?g.jsx(r,{running:!0,token:e}):g.jsx(dn.Text,{type:"danger",children:"Компонент SquatView недоступен"})]}),l==="pushups"&&g.jsxs("div",{children:[g.jsx(dn.Paragraph,{children:"Счётчик повторов «Отжимания ×10». Включена камера и распознавание позы."}),o?g.jsx(o,{running:!0,token:e}):g.jsx(dn.Text,{type:"danger",children:"Компонент PushUpView недоступен"})]}),l!=="squat"&&l!=="pushups"&&g.jsxs("div",{children:[g.jsx(dn.Paragraph,{children:"Визуализация позы и движения. Включена камера."}),n?g.jsx(n,{running:!0,token:e}):g.jsx(dn.Text,{type:"danger",children:"Компонент PoseView недоступен"})]})]})},{key:"profile",label:"Профиль",children:g.jsxs(pn,{direction:"vertical",style:{width:"100%"},children:[g.jsx(Gt,{title:"Профиль",children:g.jsxs(pn,{children:[g.jsx(Ja,{size:64,src:(i==null?void 0:i.photo_url)||void 0,children:((i==null?void 0:i.full_name)||"Ученик").slice(0,1)}),g.jsxs("div",{children:[g.jsxs("div",{children:[g.jsx("strong",{children:"Имя:"})," ",(i==null?void 0:i.full_name)||"—"]}),g.jsxs("div",{children:[g.jsx("strong",{children:"Класс:"})," ",i?`${i.grade}${i.grade_letter||""}`:"—"]}),g.jsxs("div",{children:[g.jsx("strong",{children:"Школа:"})," (локальная школа)"]})]})]})}),g.jsx(Gt,{title:"График активности",children:g.jsxs(pn,{direction:"vertical",style:{width:320},children:[g.jsx("div",{children:"Физика / Учёба / Креатив"}),g.jsx(Au,{percent:70,status:"active"}),g.jsx(Au,{percent:40,status:"active"}),g.jsx(Au,{percent:30,status:"active"})]})}),g.jsx(Gt,{title:"Цели и задания",children:g.jsx(Yn,{dataSource:["Сделай 30 приседаний сегодня","Посмотри урок по биологии","Пройди AI-квиз по экологии"],renderItem:z=>g.jsxs(Yn.Item,{children:[z," ",g.jsx(gt,{size:"small",style:{marginLeft:"auto"},children:"Начать"})]})})}),g.jsx(Gt,{title:"Рекомендации ИИ",children:g.jsx(Yn,{dataSource:["Сегодня лучше сделать 10 минут растяжки — уровень усталости повышен.","Ты улучшил концентрацию на 12% — супер!"],renderItem:z=>g.jsx(Yn.Item,{children:z})})})]})},{key:"achievements",label:"Достижения",children:g.jsxs(Gt,{children:[g.jsxs(pn,{wrap:!0,children:[g.jsx(Gt,{style:{width:220},children:"🏋️ 10 приседаний подряд"}),g.jsx(Gt,{style:{width:220},children:"🧠 3 дня без пропусков активности"}),g.jsx(Gt,{style:{width:220},children:"🎓 Первый AI-урок завершён"})]}),g.jsx(Ol,{}),g.jsxs(pn,{children:[g.jsx(dn.Text,{children:"Уровень: "}),g.jsx(zn,{color:"blue",children:"Исследователь"}),g.jsx(dn.Text,{children:"XP:"}),g.jsx(zn,{color:"gold",children:"1250"})]})]})},{key:"assistant",label:"AI-ассистент",children:g.jsxs(Gt,{children:[g.jsx(dn.Paragraph,{children:"Чат с ИИ-ассистентом (GPT) появится здесь. Задай вопрос — и ассистент объяснит материал, даст советы по активности и мотивирует."}),g.jsxs(pn,{children:[g.jsx(Sn,{placeholder:"Напиши сообщение ассистенту...",style:{width:480}}),g.jsx(gt,{type:"primary",children:"Отправить"})]})]})},{key:"lessons",label:"Мои уроки",children:g.jsx(Gt,{children:g.jsx(Si,{size:"small",pagination:!1,columns:[{title:"Тип",dataIndex:"type"},{title:"Пример",dataIndex:"example"},{title:"ИИ-модуль",dataIndex:"module"},{title:"Действия",render:()=>g.jsx(gt,{size:"small",children:"Запустить"})}],dataSource:[{key:1,type:"Учебный",example:"Реши уравнение",module:"AI Test / Quiz"},{key:2,type:"Физический",example:"Приседания ×10",module:"Pose Detection"},{key:3,type:"Творческий",example:"Создай рисунок",module:"Stable Diffusion"},{key:4,type:"Исследовательский",example:"Спроси ИИ о космосе",module:"ChatGPT / Custom API"}]})})}]})]})}const _ne=e=>{if(!e||typeof e!="string")return"U";try{return e.split(" ").map(t=>t[0]).join("").toUpperCase().slice(0,2)}catch(t){return console.error("getInitials error",t),"U"}},d7=(e,t="month-year")=>{if(!e)return"";try{const n=new Date(e);return isNaN(n.getTime())?"":t==="month-year"?n.toLocaleDateString("ru-RU",{month:"long",year:"numeric"}):t==="short-month-year"?n.toLocaleDateString("ru-RU",{month:"short",year:"numeric"}):n.toLocaleDateString("ru-RU")}catch{return""}},BJe="modulepreload",HJe=function(e){return"/"+e},f7={},VJe=function(t,n,r){let o=Promise.resolve();if(n&&n.length>0){document.getElementsByTagName("link");const a=document.querySelector("meta[property=csp-nonce]"),s=(a==null?void 0:a.nonce)||(a==null?void 0:a.getAttribute("nonce"));o=Promise.allSettled(n.map(l=>{if(l=HJe(l),l in f7)return;f7[l]=!0;const u=l.endsWith(".css"),d=u?'[rel="stylesheet"]':"";if(document.querySelector(`link[href="${l}"]${d}`))return;const f=document.createElement("link");if(f.rel=u?"stylesheet":BJe,u||(f.as="script"),f.crossOrigin="",f.href=l,s&&f.setAttribute("nonce",s),document.head.appendChild(f),u)return new Promise((m,h)=>{f.addEventListener("load",m),f.addEventListener("error",()=>h(new Error(`Unable to preload CSS for ${l}`)))})}))}function i(a){const s=new Event("vite:preloadError",{cancelable:!0});if(s.payload=a,window.dispatchEvent(s),!s.defaultPrevented)throw a}return o.then(a=>{for(const s of a||[])s.status==="rejected"&&i(s.reason);return t().catch(i)})},WJe=ce.lazy(()=>VJe(()=>import("./ProfileStatsAdvanced-C7n0cv-J.js"),[])),UJe=({role:e})=>{const[t,n]=c.useState(null),[r,o]=c.useState(!0);c.useEffect(()=>{(async()=>{try{const s=await Dt.get("/api/v1/mobile/profile/stats");n(s.data)}catch(s){console.error("Failed to fetch profile stats",s)}finally{o(!1)}})()},[]);const i=a=>a>=10?"Мастер":a>=5?"Эксперт":a>=2?"Продвинутый":"Новичок";return r?g.jsx("div",{className:"h-64 flex items-center justify-center",children:g.jsx(OI,{style:{fontSize:24,color:"#1890ff"}})}):g.jsxs("section",{"aria-label":"Profile Overview",className:"space-y-6",children:[g.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-3 gap-4",children:[g.jsx("div",{className:"bg-white p-6 rounded-xl shadow-sm border border-gray-100",children:g.jsxs("div",{className:"flex items-center space-x-4",children:[g.jsx("div",{className:"p-3 bg-blue-100 text-blue-600 rounded-lg flex items-center justify-center",children:g.jsx(g1,{style:{fontSize:"24px"},"aria-hidden":"true"})}),g.jsxs("div",{children:[g.jsx("p",{className:"text-sm text-gray-500",children:"Текущий уровень"}),g.jsxs("h3",{className:"text-2xl font-bold flex items-center",children:[t?i(t.level):"Загрузка...",g.jsxs("span",{className:"text-sm font-normal text-gray-400 ml-2",children:["Ур. ",t==null?void 0:t.level]})]}),g.jsx("div",{className:"w-full bg-gray-200 rounded-full h-1.5 mt-2",children:g.jsx("div",{className:"bg-blue-600 h-1.5 rounded-full",style:{width:`${(t==null?void 0:t.next_level_progress)||0}%`}})})]})]})}),g.jsx("div",{className:"bg-white p-6 rounded-xl shadow-sm border border-gray-100",children:g.jsxs("div",{className:"flex items-center space-x-4",children:[g.jsx("div",{className:"p-3 bg-green-100 text-green-600 rounded-lg flex items-center justify-center",children:g.jsx(iI,{style:{fontSize:"24px"},"aria-hidden":"true"})}),g.jsxs("div",{children:[g.jsx("p",{className:"text-sm text-gray-500",children:"Посещаемость"}),g.jsxs("h3",{className:"text-2xl font-bold",children:[(t==null?void 0:t.attendance_rate)||0,"%"]}),g.jsxs("p",{className:"text-xs text-gray-400",children:[t==null?void 0:t.attended_lessons,"/",t==null?void 0:t.total_lessons," уроков"]})]})]})}),g.jsx("div",{className:"bg-white p-6 rounded-xl shadow-sm border border-gray-100",children:g.jsxs("div",{className:"flex items-center space-x-4",children:[g.jsx("div",{className:"p-3 bg-purple-100 text-purple-600 rounded-lg flex items-center justify-center",children:g.jsx(gJe,{style:{fontSize:"24px"},"aria-hidden":"true"})}),g.jsxs("div",{children:[g.jsx("p",{className:"text-sm text-gray-500",children:"Средний балл"}),g.jsx("h3",{className:"text-2xl font-bold",children:(t==null?void 0:t.average_grade)||0}),g.jsx("p",{className:"text-xs text-gray-400",children:"GPA"})]})]})})]}),t&&t.achievements&&t.achievements.length>0&&g.jsxs("div",{className:"bg-white p-6 rounded-xl shadow-sm border border-gray-100",children:[g.jsxs("h3",{className:"text-lg font-semibold mb-4 flex items-center",children:[g.jsx(JZe,{className:"mr-2 text-orange-500"}),"Достижения"]}),g.jsx("div",{className:"grid grid-cols-2 md:grid-cols-4 lg:grid-cols-6 gap-4",children:t.achievements.map(a=>g.jsx(us,{title:a.description,children:g.jsxs("div",{className:"flex flex-col items-center p-3 bg-gray-50 rounded-lg border border-gray-100 hover:shadow-md transition-shadow cursor-pointer",children:[g.jsx("span",{className:"text-3xl mb-2",role:"img","aria-label":a.title,children:a.icon}),g.jsx("span",{className:"text-xs font-medium text-center text-gray-700",children:a.title})]})},a.id))})]}),g.jsx(c.Suspense,{fallback:g.jsx("div",{className:"h-64 flex items-center justify-center bg-white rounded-xl shadow-sm border border-gray-100",children:g.jsx(OI,{style:{fontSize:24}})}),children:g.jsx(WJe,{})})]})},KJe=cl({full_name:Wn().min(2,"Имя должно содержать минимум 2 символа"),email:Wn().email("Некорректный email адрес").or(Om("")),phone:Wn().min(10,"Номер телефона должен содержать минимум 10 цифр"),preferences:cl({email_notifications:Em()})}),qJe=({data:e,onUpdate:t,onConnectTelegram:n,onDisconnectTelegram:r})=>{const[o,i]=c.useState(!1),[a,s]=c.useState(!1),[l,u]=c.useState(!1),[d,f]=c.useState(""),[m,h]=c.useState(null),{register:p,handleSubmit:b,control:v,reset:y,formState:{errors:x}}=cu({resolver:du(KJe),defaultValues:{full_name:"",email:"",phone:"",preferences:{email_notifications:!0}}});c.useEffect(()=>{var E;e&&y({full_name:e.full_name||"",email:e.email||"",phone:e.phone||"",preferences:{email_notifications:((E=e.preferences)==null?void 0:E.email_notifications)??!0}})},[e,y]);const w=()=>{var E;o&&y({full_name:e.full_name||"",email:e.email||"",phone:e.phone||"",preferences:{email_notifications:((E=e.preferences)==null?void 0:E.email_notifications)??!0}}),i(!o)},C=async E=>{if(E.email!==e.email||E.phone!==e.phone){h(E),u(!0);return}await S(E)},S=async E=>{s(!0);try{await t(E),i(!1),u(!1),f(""),h(null)}catch(O){console.error("Failed to update profile in Settings",O)}finally{s(!1)}},$=()=>{m&&S({...m,current_password:d})};return g.jsxs("section",{"aria-label":"Profile Settings",children:[g.jsxs(Po,{title:"Подтвердить изменения",open:l,onOk:$,onCancel:()=>{u(!1),f(""),h(null)},confirmLoading:a,okText:"Подтвердить",cancelText:"Отмена",children:[g.jsx("p",{className:"mb-4 text-gray-600",children:"Вы изменяете конфиденциальную информацию (email или телефон). Пожалуйста, введите текущий пароль для подтверждения."}),g.jsx(Sn.Password,{placeholder:"Текущий пароль",value:d,onChange:E=>f(E.target.value),onPressEnter:$})]}),g.jsxs("form",{onSubmit:b(C),className:"bg-white rounded-xl shadow-sm border border-gray-100 overflow-hidden",children:[g.jsxs("div",{className:"p-6 border-b border-gray-100 flex justify-between items-center",children:[g.jsx("h2",{className:"text-lg font-semibold",children:"Личная информация"}),g.jsx("button",{type:"button",onClick:w,className:"text-blue-600 hover:text-blue-700 font-medium text-sm","aria-label":o?"Отменить редактирование":"Редактировать профиль",children:o?"Отмена":"Редактировать"})]}),g.jsxs("div",{className:"p-6 space-y-6",children:[g.jsxs("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6",children:[g.jsxs("div",{children:[g.jsx("label",{htmlFor:"full_name",className:"block text-sm font-medium text-gray-700 mb-1",children:"Полное имя"}),g.jsx("input",{id:"full_name",type:"text",...p("full_name"),disabled:!o,"aria-invalid":x.full_name?"true":"false","aria-describedby":x.full_name?"full_name-error":void 0,className:`w-full px-4 py-2 rounded-lg border ${x.full_name?"border-red-500":"border-gray-200"} focus:outline-none focus:ring-2 focus:ring-blue-500 disabled:bg-gray-50 disabled:text-gray-500`}),x.full_name&&g.jsx("p",{id:"full_name-error",role:"alert",className:"text-red-500 text-xs mt-1",children:x.full_name.message})]}),g.jsxs("div",{children:[g.jsx("label",{htmlFor:"email",className:"block text-sm font-medium text-gray-700 mb-1",children:"Email"}),g.jsx("input",{id:"email",type:"email",...p("email"),disabled:!o,"aria-invalid":x.email?"true":"false","aria-describedby":x.email?"email-error":void 0,className:`w-full px-4 py-2 rounded-lg border ${x.email?"border-red-500":"border-gray-200"} focus:outline-none focus:ring-2 focus:ring-blue-500 disabled:bg-gray-50 disabled:text-gray-500`}),x.email&&g.jsx("p",{id:"email-error",role:"alert",className:"text-red-500 text-xs mt-1",children:x.email.message})]}),g.jsxs("div",{children:[g.jsx("label",{htmlFor:"phone",className:"block text-sm font-medium text-gray-700 mb-1",children:"Телефон"}),g.jsx("input",{id:"phone",type:"tel",...p("phone"),disabled:!o,"aria-invalid":x.phone?"true":"false","aria-describedby":x.phone?"phone-error":void 0,className:`w-full px-4 py-2 rounded-lg border ${x.phone?"border-red-500":"border-gray-200"} focus:outline-none focus:ring-2 focus:ring-blue-500 disabled:bg-gray-50 disabled:text-gray-500`}),x.phone&&g.jsx("p",{id:"phone-error",role:"alert",className:"text-red-500 text-xs mt-1",children:x.phone.message})]}),g.jsxs("div",{children:[g.jsx("label",{htmlFor:"role",className:"block text-sm font-medium text-gray-700 mb-1",children:"Роль"}),g.jsx("input",{id:"role",type:"text",value:e.role,disabled:!0,className:"w-full px-4 py-2 rounded-lg border border-gray-200 bg-gray-50 text-gray-500 capitalize"})]})]}),o&&g.jsx("div",{className:"flex justify-end pt-4",children:g.jsxs("button",{type:"submit",disabled:a,className:"px-6 py-2 bg-blue-600 text-white rounded-lg hover:bg-blue-700 transition-colors flex items-center",children:[a?g.jsx(OI,{className:"mr-2"}):null,"Сохранить изменения"]})})]}),g.jsxs("div",{className:"p-6 border-t border-gray-100",children:[g.jsx("h2",{className:"text-lg font-semibold mb-4",children:"Настройки"}),g.jsx("div",{className:"space-y-4",children:g.jsxs("div",{className:"flex items-center justify-between",children:[g.jsxs("div",{className:"flex items-center space-x-3",children:[g.jsx($ne,{style:{fontSize:"20px",color:"#9CA3AF"},"aria-hidden":"true"}),g.jsxs("div",{children:[g.jsx("p",{className:"font-medium text-gray-900",children:"Email уведомления"}),g.jsx("p",{className:"text-sm text-gray-500",children:"Получать уведомления о прогрессе"})]})]}),g.jsx(Bo,{name:"preferences.email_notifications",control:v,render:({field:{value:E,onChange:O}})=>g.jsxs("label",{className:"relative inline-flex items-center cursor-pointer",children:[g.jsx("input",{type:"checkbox",className:"sr-only peer",checked:E,onChange:P=>O(P.target.checked),disabled:!o,"aria-label":"Включить email уведомления"}),g.jsx("div",{className:"w-11 h-6 bg-gray-200 peer-focus:outline-none peer-focus:ring-4 peer-focus:ring-blue-300 rounded-full peer peer-checked:after:translate-x-full peer-checked:after:border-white after:content-[''] after:absolute after:top-[2px] after:left-[2px] after:bg-white after:border-gray-300 after:border after:rounded-full after:h-5 after:w-5 after:transition-all peer-checked:bg-blue-600"})]})})]})})]}),g.jsxs("div",{className:"p-6 border-t border-gray-100",children:[g.jsx("h2",{className:"text-lg font-semibold mb-4",children:"Интеграции"}),g.jsx("div",{className:"space-y-4",children:g.jsxs("div",{className:"flex items-center justify-between",children:[g.jsxs("div",{className:"flex items-center space-x-3",children:[g.jsx(dJe,{style:{fontSize:"20px",color:"#229ED9"},"aria-hidden":"true"}),g.jsxs("div",{children:[g.jsx("p",{className:"font-medium text-gray-900",children:"Telegram"}),g.jsx("p",{className:"text-sm text-gray-500",children:e.telegram_id?`Подключено (ID: ${e.telegram_id})`:"Получать уведомления и обновления через Telegram"})]})]}),e.telegram_id?g.jsx("button",{type:"button",onClick:r,className:"px-4 py-2 border border-red-200 text-red-600 rounded-lg hover:bg-red-50 transition-colors text-sm font-medium",children:"Отключить"}):g.jsx("button",{type:"button",onClick:n,className:"px-4 py-2 bg-[#229ED9] text-white rounded-lg hover:bg-[#1c8bbf] transition-colors text-sm font-medium",children:"Подключить"})]})})]})]})]})},{useBreakpoint:GJe}=eBe,XJe=()=>{const{addToast:e}=bl(),{logout:t}=nc(),r=GJe().md===!1,[o,i]=c.useState(!1),[a]=Lt.useForm(),[s,l]=c.useState(!1),u=async m=>{var h,p;try{l(!0),await Bn.changePassword({old_password:m.oldPassword,new_password:m.newPassword,confirm_password:m.confirmPassword}),e("Пароль успешно изменен","success"),i(!1),a.resetFields()}catch(b){console.error("Failed to change password:",b);const v=((p=(h=b.response)==null?void 0:h.data)==null?void 0:p.detail)||"Не удалось сменить пароль";e(v,"error")}finally{l(!1)}},d=()=>{Po.confirm({title:"Вы уверены, что хотите удалить свой аккаунт?",content:"Это действие нельзя отменить. Ваш аккаунт будет немедленно деактивирован.",okText:"Да, удалить мой аккаунт",okType:"danger",cancelText:"Отмена",centered:!0,onOk:async()=>{try{await Bn.deleteSelf(),e("Аккаунт успешно удален","success"),t()}catch(m){console.error("Failed to delete account:",m),e("Не удалось удалить аккаунт","error")}}})},f=g.jsxs(Lt,{form:a,layout:"vertical",onFinish:u,className:"pt-4",children:[g.jsx(Lt.Item,{name:"oldPassword",label:"Текущий пароль",rules:[{required:!0,message:"Пожалуйста, введите текущий пароль"}],children:g.jsx(Sn.Password,{size:"large"})}),g.jsx(Lt.Item,{name:"newPassword",label:"Новый пароль",rules:[{required:!0,message:"Пожалуйста, введите новый пароль"},{min:6,message:"Пароль должен содержать минимум 6 символов"}],children:g.jsx(Sn.Password,{size:"large"})}),g.jsx(Lt.Item,{name:"confirmPassword",label:"Подтвердите новый пароль",dependencies:["newPassword"],rules:[{required:!0,message:"Пожалуйста, подтвердите новый пароль"},({getFieldValue:m})=>({validator(h,p){return!p||m("newPassword")===p?Promise.resolve():Promise.reject(new Error("Пароли не совпадают!"))}})],children:g.jsx(Sn.Password,{size:"large"})}),g.jsx(Lt.Item,{children:g.jsx("button",{type:"submit",disabled:s,className:"w-full px-4 py-3 bg-blue-600 text-white rounded-lg hover:bg-blue-700 transition-colors font-medium text-lg",children:s?"Изменение...":"Сменить пароль"})})]});return g.jsxs("section",{"aria-label":"Security Settings",className:"space-y-6",children:[g.jsxs("div",{className:"bg-white p-6 rounded-xl shadow-sm border border-gray-100",children:[g.jsx("h2",{className:"text-lg font-semibold mb-4",children:"Пароль и Аутентификация"}),g.jsxs("div",{className:"space-y-4",children:[g.jsxs("button",{onClick:()=>i(!0),className:"flex items-center justify-between w-full p-4 border border-gray-200 rounded-lg hover:bg-gray-50 transition-colors","aria-label":"Сменить пароль",children:[g.jsxs("div",{className:"flex items-center space-x-3",children:[g.jsx(lJe,{style:{fontSize:"20px",color:"#9CA3AF"},"aria-hidden":"true"}),g.jsxs("div",{className:"text-left",children:[g.jsx("p",{className:"font-medium text-gray-900",children:"Сменить пароль"}),g.jsx("p",{className:"text-sm text-gray-500",children:"Регулярно обновляйте пароль для безопасности"})]})]}),g.jsx("span",{className:"text-blue-600 text-sm font-medium",children:"Обновить"})]}),g.jsxs("button",{className:"flex items-center justify-between w-full p-4 border border-gray-200 rounded-lg hover:bg-gray-50 transition-colors","aria-label":"Two-factor authentication status: Enabled",children:[g.jsxs("div",{className:"flex items-center space-x-3",children:[g.jsx(HZe,{style:{fontSize:"20px",color:"#9CA3AF"},"aria-hidden":"true"}),g.jsxs("div",{className:"text-left",children:[g.jsx("p",{className:"font-medium text-gray-900",children:"Двухфакторная аутентификация"}),g.jsx("p",{className:"text-sm text-gray-500",children:"Дополнительный уровень безопасности"})]})]}),g.jsx("span",{className:"px-2 py-1 bg-green-100 text-green-700 text-xs font-medium rounded-full",children:"Включено"})]})]})]}),g.jsxs("div",{className:"bg-white p-6 rounded-xl shadow-sm border border-red-100",children:[g.jsx("h2",{className:"text-lg font-semibold mb-4 text-red-600",children:"Опасная зона"}),g.jsxs("div",{className:"p-4 border border-red-100 bg-red-50 rounded-lg flex items-center justify-between",children:[g.jsxs("div",{children:[g.jsx("p",{className:"font-medium text-gray-900",children:"Удалить аккаунт"}),g.jsx("p",{className:"text-sm text-gray-500",children:"Безвозвратно удалить аккаунт и все данные"})]}),g.jsxs("button",{onClick:d,className:"px-4 py-2 bg-white border border-red-200 text-red-600 rounded-lg hover:bg-red-50 transition-colors text-sm font-medium flex items-center","aria-label":"Delete account",children:[g.jsx(hC,{className:"mr-2","aria-hidden":"true"}),"Удалить аккаунт"]})]})]}),r?g.jsx(ate,{title:"Сменить пароль",placement:"bottom",onClose:()=>i(!1),open:o,height:"auto",bodyStyle:{paddingBottom:40},styles:{header:{borderBottom:"1px solid #f0f0f0"},body:{padding:"24px"}},children:f}):g.jsx(Po,{title:"Сменить пароль",open:o,onCancel:()=>i(!1),footer:null,centered:!0,width:480,children:f})]})},YJe=()=>{const[e,t]=c.useState([]),[n,r]=c.useState(!0);c.useEffect(()=>{(async()=>{try{const a=await Dt.get("/api/v1/mobile/profile/courses");t(a.data)}catch(a){console.error("Failed to fetch courses",a)}finally{r(!1)}})()},[]);const o=i=>{const a=new Date(i);return new Intl.DateTimeFormat("ru-RU",{month:"short",day:"numeric",hour:"2-digit",minute:"2-digit"}).format(a)};return n?g.jsx(ka,{active:!0,paragraph:{rows:4}}):e.length===0?g.jsx("div",{className:"mt-8",children:g.jsx(Mi,{description:"Активные курсы не найдены"})}):g.jsxs("div",{className:"space-y-6 mt-8",children:[g.jsxs("div",{className:"flex items-center justify-between",children:[g.jsx("h2",{className:"text-xl font-bold text-gray-800",children:"Мои курсы"}),g.jsxs("span",{className:"px-3 py-1 bg-green-50 text-green-600 rounded-full text-xs font-medium",children:["Активные: ",e.length]})]}),g.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 gap-6",children:e.map(i=>g.jsxs(Gt,{className:"shadow-sm rounded-xl border-gray-100 hover:shadow-md transition-shadow",children:[g.jsxs("div",{className:"flex justify-between items-start mb-4",children:[g.jsxs("div",{children:[g.jsx("h3",{className:"text-lg font-bold text-gray-800 mb-1",children:i.title}),g.jsx("div",{className:"text-sm text-gray-500 flex items-center gap-2",children:g.jsx(zn,{color:"blue",children:i.group_name})})]}),g.jsxs("div",{className:"flex flex-col items-end",children:[g.jsx("span",{className:"text-2xl font-bold text-blue-600",children:i.progress.average_grade}),g.jsx("span",{className:"text-xs text-gray-400",children:"Средний балл"})]})]}),g.jsxs("div",{className:"flex items-center gap-3 mb-6",children:[g.jsx(Ja,{src:i.trainer_avatar,icon:g.jsx(rl,{})}),g.jsxs("div",{children:[g.jsx("div",{className:"text-sm font-medium text-gray-700",children:i.trainer_name||"Нет тренера"}),g.jsx("div",{className:"text-xs text-gray-400",children:"Инструктор"})]})]}),g.jsxs("div",{className:"mb-6",children:[g.jsxs("div",{className:"flex justify-between text-xs text-gray-500 mb-1",children:[g.jsx("span",{children:"Посещаемость"}),g.jsxs("span",{children:[i.progress.attendance_rate,"%"]})]}),g.jsx(Au,{percent:i.progress.attendance_rate,showInfo:!1,size:"small",strokeColor:"#10B981"})]}),g.jsx("div",{className:"pt-4 border-t border-gray-100",children:i.next_lesson?g.jsxs("div",{className:"flex items-start gap-3",children:[g.jsx("div",{className:"p-2 bg-blue-50 text-blue-600 rounded-lg",children:g.jsx(iI,{})}),g.jsxs("div",{children:[g.jsx("div",{className:"text-xs text-gray-500 uppercase font-bold tracking-wide",children:"Следующее занятие"}),g.jsx("div",{className:"text-sm font-medium text-gray-800",children:i.next_lesson.title}),g.jsx("div",{className:"text-xs text-gray-500",children:o(i.next_lesson.start_time)})]})]}):g.jsxs("div",{className:"flex items-center gap-2 text-gray-400 text-sm",children:[g.jsx(iI,{})," ",g.jsx("span",{children:"Нет предстоящих занятий"})]})})]},i.course_id))})]})},{TabPane:Y2}=tf,{Search:ZJe}=Sn,JJe=()=>{const[e,t]=c.useState([]),[n,r]=c.useState({incoming:[],outgoing:[]}),[o,i]=c.useState([]),[a,s]=c.useState(!0),[l,u]=c.useState(!1);c.useEffect(()=>{d()},[]);const d=async()=>{s(!0);try{const[v,y]=await Promise.all([Dt.get("/api/v1/social/friends"),Dt.get("/api/v1/social/friends/requests")]);t(v.data),r(y.data)}catch(v){console.error("Failed to fetch social data",v)}finally{s(!1)}},f=async v=>{if(!(!v||v.length<2)){u(!0);try{const y=await Dt.get("/api/v1/social/users/search",{params:{q:v}});i(y.data)}catch{Pt.error("Ошибка поиска")}finally{u(!1)}}},m=async v=>{var y,x;try{await Dt.post(`/api/v1/social/friends/request/${v}`),Pt.success("Заявка в друзья отправлена"),i(w=>w.map(C=>C.id===v?{...C,status:"pending_outgoing"}:C)),d()}catch(w){Pt.error(((x=(y=w.response)==null?void 0:y.data)==null?void 0:x.detail)||"Не удалось отправить заявку")}},h=async v=>{try{await Dt.put(`/api/v1/social/friends/accept/${v}`),Pt.success("Заявка в друзья принята"),d(),i(y=>y.map(x=>x.id===v?{...x,status:"friend"}:x))}catch{Pt.error("Не удалось принять заявку")}},p=async v=>{try{await Dt.delete(`/api/v1/social/friends/reject/${v}`),Pt.success("Заявка в друзья отклонена"),d(),i(y=>y.map(x=>x.id===v?{...x,status:"none"}:x))}catch{Pt.error("Не удалось отклонить заявку")}},b=async v=>{try{await Dt.delete(`/api/v1/social/friends/${v}`),Pt.success("Друг удален"),d(),i(y=>y.map(x=>x.id===v?{...x,status:"none"}:x))}catch{Pt.error("Не удалось удалить друга")}};return a&&e.length===0?g.jsx(ka,{active:!0}):g.jsxs("div",{className:"mt-8",children:[g.jsx("h2",{className:"text-xl font-bold text-gray-800 mb-6",children:"Социальная сеть"}),g.jsxs(tf,{defaultActiveKey:"friends",children:[g.jsx(Y2,{tab:`Мои друзья (${e.length})`,children:e.length===0?g.jsx(Mi,{description:"Пока нет друзей. Найдите кого-нибудь!"}):g.jsx(Yn,{grid:{gutter:16,xs:1,sm:2,md:3,lg:3,xl:4,xxl:4},dataSource:e,renderItem:v=>g.jsx(Yn.Item,{children:g.jsxs(Gt,{className:"rounded-xl shadow-sm hover:shadow-md transition-all",children:[g.jsx(Gt.Meta,{avatar:g.jsx(Ja,{src:v.avatar_url,size:64,icon:g.jsx(rl,{})}),title:v.full_name,description:g.jsx(zn,{children:v.role})}),g.jsx("div",{className:"mt-4 flex justify-end",children:g.jsx(gt,{danger:!0,type:"text",icon:g.jsx(hC,{}),onClick:()=>b(v.id),children:"Удалить"})})]})})})},"friends"),g.jsx(Y2,{tab:`Заявки (${n.incoming.length})`,children:g.jsxs("div",{className:"space-y-6",children:[n.incoming.length>0&&g.jsxs("div",{children:[g.jsx("h3",{className:"text-lg font-medium mb-4",children:"Входящие заявки"}),g.jsx(Yn,{dataSource:n.incoming,renderItem:v=>g.jsx(Yn.Item,{actions:[g.jsx(gt,{type:"primary",icon:g.jsx(AYe,{}),onClick:()=>h(v.user.id),children:"Принять"}),g.jsx(gt,{danger:!0,icon:g.jsx(LYe,{}),onClick:()=>p(v.user.id),children:"Отклонить"})],children:g.jsx(Yn.Item.Meta,{avatar:g.jsx(Ja,{src:v.user.avatar_url,icon:g.jsx(rl,{})}),title:v.user.full_name,description:`Отправлено ${new Date(v.created_at).toLocaleDateString("ru-RU")}`})})})]}),n.outgoing.length>0&&g.jsxs("div",{children:[g.jsx("h3",{className:"text-lg font-medium mb-4",children:"Исходящие заявки"}),g.jsx(Yn,{dataSource:n.outgoing,renderItem:v=>g.jsx(Yn.Item,{actions:[g.jsx(gt,{danger:!0,type:"text",onClick:()=>p(v.user.id),children:"Отменить"})],children:g.jsx(Yn.Item.Meta,{avatar:g.jsx(Ja,{src:v.user.avatar_url,icon:g.jsx(rl,{})}),title:v.user.full_name,description:"Ожидает подтверждения"})})})]}),n.incoming.length===0&&n.outgoing.length===0&&g.jsx(Mi,{description:"Нет активных заявок"})]})},"requests"),g.jsx(Y2,{tab:"Поиск людей",children:g.jsxs("div",{className:"max-w-xl mx-auto",children:[g.jsx(ZJe,{placeholder:"Поиск по имени",enterButton:"Поиск",size:"large",onSearch:f,loading:l,className:"mb-8"}),g.jsx(Yn,{dataSource:o,renderItem:v=>g.jsx(Yn.Item,{actions:[v.status==="friend"?g.jsx(zn,{color:"green",children:"Друг"}):v.status==="pending_outgoing"?g.jsx(zn,{color:"orange",children:"Заявка отправлена"}):v.status==="pending_incoming"?g.jsx(gt,{type:"primary",size:"small",onClick:()=>h(v.id),children:"Принять заявку"}):g.jsx(gt,{type:"primary",ghost:!0,size:"small",icon:g.jsx(Ine,{}),onClick:()=>m(v.id),children:"Добавить в друзья"})],children:g.jsx(Yn.Item.Meta,{avatar:g.jsx(Ja,{src:v.avatar_url,icon:g.jsx(rl,{})}),title:v.full_name,description:v.role})})})]})},"find")]})]})},{TextArea:QJe}=Sn,{Option:Iy}=pr,eQe=()=>{const[e,t]=c.useState([]),[n,r]=c.useState(!0),[o,i]=c.useState(!1),[a,s]=c.useState(null),[l]=Lt.useForm();c.useEffect(()=>{u()},[]);const u=async()=>{r(!0);try{const v=await Dt.get("/api/v1/portfolio/my");t(v.data)}catch(v){console.error("Failed to fetch portfolio",v)}finally{r(!1)}},d=()=>{s(null),l.resetFields(),i(!0)},f=v=>{s(v),l.setFieldsValue({...v,date_completed:v.date_completed?ti(v.date_completed):null}),i(!0)},m=async v=>{try{await Dt.delete(`/api/v1/portfolio/${v}`),Pt.success("Элемент удален"),u()}catch{Pt.error("Не удалось удалить элемент")}},h=async()=>{try{const v=await l.validateFields(),y={...v,date_completed:v.date_completed?v.date_completed.toISOString():null};a?(await Dt.put(`/api/v1/portfolio/${a.id}`,y),Pt.success("Элемент обновлен")):(await Dt.post("/api/v1/portfolio/",y),Pt.success("Элемент добавлен")),i(!1),u()}catch(v){console.error("Validate Failed:",v)}},p=v=>{switch(v){case"project":return g.jsx(Pne,{});case"certificate":return g.jsx(T3,{});case"achievement":return g.jsx(g1,{});default:return g.jsx(CI,{})}},b=v=>{switch(v){case"project":return"blue";case"certificate":return"green";case"achievement":return"gold";default:return"default"}};return n&&e.length===0?g.jsx(ka,{active:!0}):g.jsxs("div",{className:"mt-8",children:[g.jsxs("div",{className:"flex justify-between items-center mb-6",children:[g.jsx("h2",{className:"text-xl font-bold text-gray-800",children:"Мое портфолио"}),g.jsx(gt,{type:"primary",icon:g.jsx(pC,{}),onClick:d,children:"Добавить"})]}),e.length===0?g.jsx(Mi,{description:"В портфолио пока пусто. Добавьте свои проекты и достижения!"}):g.jsx("div",{className:"grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6",children:e.map(v=>g.jsx(Gt,{className:"rounded-xl shadow-sm hover:shadow-md transition-shadow",cover:v.image_url?g.jsx("div",{className:"h-48 overflow-hidden rounded-t-xl bg-gray-100",children:g.jsx("img",{alt:v.title,src:v.image_url,className:"w-full h-full object-cover"})}):null,actions:[g.jsx(gt,{type:"text",icon:g.jsx(N3,{}),onClick:()=>f(v)}),g.jsx(gt,{danger:!0,type:"text",icon:g.jsx(hC,{}),onClick:()=>m(v.id)})],children:g.jsx(Gt.Meta,{avatar:g.jsx("div",{className:`p-2 rounded-lg bg-${b(v.category)}-50 text-${b(v.category)}-600`,children:p(v.category)}),title:g.jsxs("div",{className:"flex justify-between items-center",children:[g.jsx("span",{className:"truncate",children:v.title}),v.is_public?g.jsx(CI,{className:"text-green-500 text-sm"}):g.jsx(bZe,{className:"text-gray-400 text-sm"})]}),description:g.jsxs("div",{className:"space-y-2",children:[g.jsxs("div",{className:"text-xs text-gray-400 uppercase font-bold tracking-wide",children:[v.category," • ",v.date_completed?ti(v.date_completed).format("MMMM YYYY"):"Нет даты"]}),g.jsx("div",{className:"line-clamp-3 text-sm text-gray-600 h-10",children:v.description}),v.link_url&&g.jsx("a",{href:v.link_url,target:"_blank",rel:"noopener noreferrer",className:"text-blue-500 text-xs block truncate mt-1",children:v.link_url})]})})},v.id))}),g.jsx(Po,{title:a?"Редактировать элемент":"Добавить элемент",open:o,onOk:h,onCancel:()=>i(!1),children:g.jsxs(Lt,{form:l,layout:"vertical",children:[g.jsx(Lt.Item,{name:"title",label:"Название",rules:[{required:!0}],children:g.jsx(Sn,{})}),g.jsx(Lt.Item,{name:"category",label:"Категория",rules:[{required:!0}],children:g.jsxs(pr,{children:[g.jsx(Iy,{value:"project",children:"Проект"}),g.jsx(Iy,{value:"certificate",children:"Сертификат"}),g.jsx(Iy,{value:"achievement",children:"Достижение"}),g.jsx(Iy,{value:"activity",children:"Активность"})]})}),g.jsx(Lt.Item,{name:"description",label:"Описание",children:g.jsx(QJe,{rows:4})}),g.jsx(Lt.Item,{name:"link_url",label:"Ссылка",children:g.jsx(Sn,{})}),g.jsx(Lt.Item,{name:"image_url",label:"Ссылка на изображение",children:g.jsx(Sn,{placeholder:"https://..."})}),g.jsx(Lt.Item,{name:"date_completed",label:"Дата завершения",children:g.jsx(xu,{className:"w-full"})}),g.jsx(Lt.Item,{name:"is_public",valuePropName:"checked",label:"Публично доступно",children:g.jsx(fm,{})})]})})]})},tQe=()=>{const{user:e,logout:t}=nc(),{addToast:n}=bl(),[r,o]=c.useState("overview"),[i,a]=c.useState(!1),[s,l]=c.useState(null),u=c.useRef(null);c.useEffect(()=>{d()},[]);const d=async()=>{try{const y=await Dt.get("/api/v1/mobile/profile");l(y.data)}catch(y){console.error("Failed to fetch profile",y),n("Не удалось загрузить данные профиля","error"),e&&l(e)}},f=()=>{var y;(y=u.current)==null||y.click()},m=async y=>{var C;const x=(C=y.target.files)==null?void 0:C[0];if(!x)return;const w=new FormData;w.append("file",x),a(!0);try{const S=await Dt.post("/api/v1/mobile/profile/avatar",w,{headers:{"Content-Type":"multipart/form-data"}});l($=>({...$,avatar_url:S.data.avatar_url})),n("Аватар обновлен успешно","success")}catch(S){console.error("Failed to upload avatar",S),n("Не удалось загрузить аватар","error")}finally{a(!1)}},h=async y=>{var x,w;try{const C=await Dt.patch("/api/v1/mobile/profile",y);l(C.data),n("Профиль обновлен успешно","success")}catch(C){const S=((w=(x=C.response)==null?void 0:x.data)==null?void 0:w.detail)||"Не удалось обновить профиль";throw n(S,"error"),C}},p=async()=>{try{const y=await Dt.get("/api/v1/mobile/profile/telegram/connect");y.data.link&&window.open(y.data.link,"_blank")}catch(y){console.error("Failed to get Telegram link",y),n("Не удалось подключить Telegram","error")}},b=async()=>{try{await Dt.delete("/api/v1/mobile/profile/telegram"),l(y=>({...y,telegram_id:null})),n("Telegram отключен успешно","success")}catch(y){console.error("Failed to disconnect Telegram",y),n("Не удалось отключить Telegram","error")}};if(!s&&!e)return g.jsx("div",{className:"p-8 text-center",children:"Загрузка профиля..."});const v=s||e;return g.jsxs("div",{className:"max-w-4xl mx-auto pb-20 md:pb-8",children:[g.jsxs("div",{className:"bg-white rounded-2xl p-6 shadow-sm border border-gray-100 mb-6",children:[g.jsxs("div",{className:"flex flex-col md:flex-row items-center md:items-start space-y-4 md:space-y-0 md:space-x-6",children:[g.jsxs("div",{className:"relative group",children:[g.jsx("div",{className:"w-24 h-24 rounded-full overflow-hidden border-4 border-white shadow-lg bg-gray-100 flex items-center justify-center",children:v.avatar_url?g.jsx("img",{src:v.avatar_url,alt:v.full_name,className:"w-full h-full object-cover"}):g.jsx("span",{className:"text-2xl font-bold text-gray-400",children:_ne(v.full_name)})}),g.jsx("button",{onClick:f,className:"absolute bottom-0 right-0 p-2 bg-blue-600 text-white rounded-full shadow-lg hover:bg-blue-700 transition-colors","aria-label":"Change avatar",children:g.jsx(sI,{})}),g.jsx("input",{type:"file",ref:u,className:"hidden",accept:"image/*",onChange:m})]}),g.jsxs("div",{className:"flex-1 text-center md:text-left",children:[g.jsx("h1",{className:"text-2xl font-bold text-gray-900 mb-1",children:v.full_name}),g.jsxs("div",{className:"flex items-center justify-center md:justify-start space-x-4 text-gray-500 mb-4",children:[g.jsxs("div",{className:"flex items-center space-x-1",children:[g.jsx(PZe,{}),g.jsx("span",{children:v.email})]}),g.jsx("span",{children:"•"}),g.jsx("span",{className:"px-2 py-0.5 bg-blue-100 text-blue-700 rounded-full text-xs font-medium uppercase tracking-wide",children:v.role})]})]}),g.jsx("div",{className:"flex space-x-3",children:g.jsxs("button",{onClick:t,className:"flex items-center space-x-2 px-4 py-2 border border-gray-300 rounded-lg text-gray-700 hover:bg-gray-50 transition-colors","aria-label":"Sign out",children:[g.jsx(R3,{style:{fontSize:"18px"}}),g.jsx("span",{children:"Выйти"})]})})]}),g.jsxs("nav",{className:"flex space-x-8 mt-10 border-b border-gray-200 -mb-px overflow-x-auto",role:"tablist","aria-label":"Profile sections",children:[g.jsx("button",{id:"tab-overview",role:"tab","aria-selected":r==="overview","aria-controls":"overview-panel",onClick:()=>o("overview"),className:`pb-4 px-2 text-sm font-medium transition-colors border-b-2 whitespace-nowrap ${r==="overview"?"border-blue-600 text-blue-600":"border-transparent text-gray-500 hover:text-gray-700 hover:border-gray-300"}`,children:"Обзор"}),g.jsx("button",{id:"tab-courses",role:"tab","aria-selected":r==="courses","aria-controls":"courses-panel",onClick:()=>o("courses"),className:`pb-4 px-2 text-sm font-medium transition-colors border-b-2 whitespace-nowrap ${r==="courses"?"border-blue-600 text-blue-600":"border-transparent text-gray-500 hover:text-gray-700 hover:border-gray-300"}`,children:"Курсы"}),g.jsx("button",{id:"tab-friends",role:"tab","aria-selected":r==="friends","aria-controls":"friends-panel",onClick:()=>o("friends"),className:`pb-4 px-2 text-sm font-medium transition-colors border-b-2 whitespace-nowrap ${r==="friends"?"border-blue-600 text-blue-600":"border-transparent text-gray-500 hover:text-gray-700 hover:border-gray-300"}`,children:"Друзья"}),g.jsx("button",{id:"tab-portfolio",role:"tab","aria-selected":r==="portfolio","aria-controls":"portfolio-panel",onClick:()=>o("portfolio"),className:`pb-4 px-2 text-sm font-medium transition-colors border-b-2 whitespace-nowrap ${r==="portfolio"?"border-blue-600 text-blue-600":"border-transparent text-gray-500 hover:text-gray-700 hover:border-gray-300"}`,children:"Портфолио"}),g.jsx("button",{id:"tab-settings",role:"tab","aria-selected":r==="settings","aria-controls":"settings-panel",onClick:()=>o("settings"),className:`pb-4 px-2 text-sm font-medium transition-colors border-b-2 whitespace-nowrap ${r==="settings"?"border-blue-600 text-blue-600":"border-transparent text-gray-500 hover:text-gray-700 hover:border-gray-300"}`,children:"Настройки"}),g.jsx("button",{id:"tab-security",role:"tab","aria-selected":r==="security","aria-controls":"security-panel",onClick:()=>o("security"),className:`pb-4 px-2 text-sm font-medium transition-colors border-b-2 whitespace-nowrap ${r==="security"?"border-blue-600 text-blue-600":"border-transparent text-gray-500 hover:text-gray-700 hover:border-gray-300"}`,children:"Безопасность"})]})]}),g.jsxs("main",{children:[g.jsx("div",{id:"overview-panel",role:"tabpanel","aria-labelledby":"tab-overview",hidden:r!=="overview",children:r==="overview"&&g.jsx(UJe,{role:v.role})}),g.jsx("div",{id:"courses-panel",role:"tabpanel","aria-labelledby":"tab-courses",hidden:r!=="courses",children:r==="courses"&&g.jsx(YJe,{})}),g.jsx("div",{id:"friends-panel",role:"tabpanel","aria-labelledby":"tab-friends",hidden:r!=="friends",children:r==="friends"&&g.jsx(JJe,{})}),g.jsx("div",{id:"portfolio-panel",role:"tabpanel","aria-labelledby":"tab-portfolio",hidden:r!=="portfolio",children:r==="portfolio"&&g.jsx(eQe,{})}),g.jsx("div",{id:"settings-panel",role:"tabpanel","aria-labelledby":"tab-settings",hidden:r!=="settings",children:r==="settings"&&g.jsx(qJe,{data:v,onUpdate:h,onConnectTelegram:p,onDisconnectTelegram:b})}),g.jsx("div",{id:"security-panel",role:"tabpanel","aria-labelledby":"tab-security",hidden:r!=="security",children:r==="security"&&g.jsx(XJe,{})})]})]})},nQe=()=>{const{userId:e}=_se(),[t,n]=c.useState(null),[r,o]=c.useState(!0),[i,a]=c.useState(null),s=nh();c.useEffect(()=>{e&&(async()=>{var m;o(!0);try{const h=await Dt.get(`/api/v1/portfolio/public/${e}`);n(h.data)}catch(h){console.error("Failed to fetch public profile",h),a(((m=h.response)==null?void 0:m.status)===404?"Профиль не найден или скрыт":"Не удалось загрузить профиль")}finally{o(!1)}})()},[e]);const l=f=>{switch(f){case"project":return g.jsx(Pne,{});case"certificate":return g.jsx(T3,{});case"achievement":return g.jsx(g1,{});default:return g.jsx(CI,{})}},u=f=>{switch(f){case"project":return"blue";case"certificate":return"green";case"achievement":return"gold";default:return"default"}},d=f=>{switch(f){case"project":return"Проект";case"certificate":return"Сертификат";case"achievement":return"Достижение";default:return f}};return r?g.jsx("div",{className:"max-w-4xl mx-auto p-6",children:g.jsx(ka,{active:!0,avatar:!0,paragraph:{rows:4}})}):i||!t?g.jsxs("div",{className:"max-w-4xl mx-auto p-6 text-center",children:[g.jsx(Mi,{description:i||"Профиль не найден"}),g.jsx(gt,{type:"primary",onClick:()=>s("/"),className:"mt-4",children:"На главную"})]}):g.jsxs("div",{className:"max-w-4xl mx-auto pb-20 md:pb-8",children:[g.jsx("div",{className:"bg-white rounded-2xl p-8 shadow-sm border border-gray-100 mb-8 text-center md:text-left",children:g.jsxs("div",{className:"flex flex-col md:flex-row items-center space-y-4 md:space-y-0 md:space-x-8",children:[g.jsx("div",{className:"w-32 h-32 rounded-full overflow-hidden border-4 border-white shadow-lg bg-gray-100 flex items-center justify-center",children:t.user.avatar_url?g.jsx("img",{src:t.user.avatar_url,alt:t.user.full_name,className:"w-full h-full object-cover"}):g.jsx("span",{className:"text-3xl font-bold text-gray-400",children:_ne(t.user.full_name)})}),g.jsxs("div",{className:"flex-1",children:[g.jsx("h1",{className:"text-3xl font-bold text-gray-900 mb-2",children:t.user.full_name}),g.jsxs("div",{className:"flex flex-wrap justify-center md:justify-start gap-3 mb-4",children:[g.jsx(zn,{color:"blue",className:"px-3 py-1 text-sm rounded-full",children:t.user.role==="student"?"УЧЕНИК":t.user.role.toUpperCase()}),g.jsxs(zn,{color:"purple",className:"px-3 py-1 text-sm rounded-full",children:["Класс ",t.student.grade,t.student.grade_letter]}),g.jsxs("div",{className:"flex items-center text-gray-500 text-sm",children:[g.jsx(rl,{className:"mr-1"}),"В системе с ",d7(t.user.created_at,"month-year")]})]})]})]})}),g.jsxs("div",{className:"mb-8",children:[g.jsxs("h2",{className:"text-2xl font-bold text-gray-800 mb-6 flex items-center",children:[g.jsx(g1,{className:"mr-3 text-yellow-500"}),"Портфолио и достижения"]}),t.portfolio.length===0?g.jsx(Mi,{description:"Нет публичных элементов портфолио."}):g.jsx(ts,{gutter:[24,24],children:t.portfolio.map(f=>g.jsx(Mr,{xs:24,sm:12,lg:8,children:g.jsxs(Gt,{className:"h-full rounded-xl shadow-sm hover:shadow-md transition-all duration-300 border-gray-200",cover:f.image_url?g.jsx("div",{className:"h-48 overflow-hidden rounded-t-xl bg-gray-100 relative group",children:g.jsx("img",{alt:f.title,src:f.image_url,className:"w-full h-full object-cover transition-transform duration-500 group-hover:scale-105"})}):null,children:[g.jsxs("div",{className:"flex items-center mb-3",children:[g.jsx("div",{className:`p-2 rounded-lg bg-${u(f.category)}-50 text-${u(f.category)}-600 mr-3`,children:l(f.category)}),g.jsx("div",{className:"text-xs text-gray-400 uppercase font-bold tracking-wide",children:d(f.category)})]}),g.jsx("h3",{className:"text-lg font-bold text-gray-900 mb-2 line-clamp-1",title:f.title,children:f.title}),g.jsx("div",{className:"text-sm text-gray-600 mb-4 line-clamp-3 min-h-[60px]",children:f.description}),g.jsxs("div",{className:"flex justify-between items-center pt-4 border-t border-gray-100",children:[g.jsx("span",{className:"text-xs text-gray-400",children:d7(f.date_completed,"short-month-year")}),f.link_url&&g.jsx(gt,{type:"link",href:f.link_url,target:"_blank",className:"p-0 h-auto",children:"View Project →"})]})]})},f.id))})]})]})},{Option:mp}=pr;function rQe(){const{user:e}=nc(),[t,n]=c.useState(!1),[r,o]=c.useState([]),[i,a]=c.useState("pushups"),s=c.useRef(null),l=c.useRef(null),u=c.useRef(null);c.useEffect(()=>{const m=()=>{const h=new WebSocket("ws://localhost:8000/ws/group");h.onopen=()=>{console.log("Connected to Group WS"),n(!0)},h.onmessage=p=>{try{const b=JSON.parse(p.data);o(b.people),d(b.people)}catch(b){console.error("Failed to parse WS message",b)}},h.onclose=()=>{console.log("Group WS disconnected"),n(!1),setTimeout(m,2e3)},s.current=h};return m(),()=>{var h;(h=s.current)==null||h.close()}},[]);const d=m=>{const h=l.current;if(!h)return;const p=h.getContext("2d");p&&(p.clearRect(0,0,h.width,h.height),m.forEach(b=>{var O,P;const[v,y,x,w]=b.bbox,C=x-v,S=w-y;let $="#FFC107";b.state==="ready"&&($="#2196F3"),b.state==="running"&&($="#4CAF50"),p.strokeStyle=$,p.lineWidth=3,p.strokeRect(v,y,C,S),p.fillStyle=$,p.fillRect(v,y-25,C,25),p.fillStyle="#fff",p.font="14px sans-serif";const E=b.user_id?`${b.user_id} (${((O=b.metrics)==null?void 0:O.count)||0})`:`ID:${b.track_id}`;p.fillText(E,v+5,y-7),(P=b.metrics)!=null&&P.feedback&&(p.fillStyle="rgba(0,0,0,0.7)",p.fillRect(v,w+5,C,20),p.fillStyle="#fff",p.fillText(b.metrics.feedback,v+5,w+20))}))},f=m=>{a(m),s.current&&s.current.readyState===WebSocket.OPEN&&s.current.send(JSON.stringify({type:"set_exercise",value:m}))};return g.jsxs("div",{className:"p-6 space-y-6",children:[g.jsxs("div",{className:"flex justify-between items-center",children:[g.jsxs("div",{children:[g.jsx("h1",{className:"text-2xl font-bold tracking-tight",children:"Групповая тренировка"}),g.jsx("p",{className:"text-muted-foreground",children:"Отслеживание и оценка в реальном времени"})]}),g.jsxs("div",{className:"flex items-center gap-4",children:[g.jsx(Km,{status:t?"success":"error",text:t?"Подключено":"Отключено"}),g.jsxs(pr,{value:i,onChange:f,style:{width:180},children:[g.jsx(mp,{value:"pushups",children:"Отжимания"}),g.jsx(mp,{value:"squats",children:"Приседания"}),g.jsx(mp,{value:"situps",children:"Пресс"}),g.jsx(mp,{value:"pullups",children:"Подтягивания"}),g.jsx(mp,{value:"flexibility",children:"Гибкость"})]})]})]}),g.jsxs("div",{className:"grid grid-cols-1 lg:grid-cols-3 gap-6",children:[g.jsx(Gt,{className:"lg:col-span-2",bodyStyle:{padding:0},children:g.jsxs("div",{className:"relative aspect-video bg-black overflow-hidden rounded-lg",children:[g.jsx("img",{ref:u,src:"http://localhost:8000/video_feed",alt:"Live Feed",className:"w-full h-full object-cover",onLoad:m=>{l.current&&(l.current.width=m.currentTarget.naturalWidth,l.current.height=m.currentTarget.naturalHeight)}}),g.jsx("canvas",{ref:l,className:"absolute top-0 left-0 w-full h-full pointer-events-none"})]})}),g.jsxs("div",{className:"space-y-6",children:[g.jsx(Gt,{title:g.jsxs(g.Fragment,{children:[g.jsx(rl,{className:"mr-2"})," Активные участники (",r.length,")"]}),children:g.jsxs("div",{className:"space-y-4",children:[r.length===0&&g.jsx("div",{className:"text-center text-muted-foreground py-8",children:"Ожидание участников..."}),r.map(m=>{var h;return g.jsxs("div",{className:"flex items-center justify-between p-3 bg-gray-100 rounded-lg border",children:[g.jsxs("div",{children:[g.jsx("div",{className:"font-medium",children:m.user_id||`Неизвестный (ID:${m.track_id})`}),g.jsx("div",{className:"text-xs text-muted-foreground capitalize",children:m.state})]}),g.jsxs("div",{className:"text-right",children:[g.jsx("div",{className:"text-2xl font-bold",children:((h=m.metrics)==null?void 0:h.count)||0}),g.jsx("div",{className:"text-xs text-muted-foreground",children:"Повторений"})]})]},m.track_id)})]})}),g.jsx(Gt,{title:g.jsxs(g.Fragment,{children:[g.jsx(uZe,{className:"mr-2"})," Управление сессией"]}),children:g.jsxs("div",{className:"space-y-2",children:[g.jsx(gt,{type:"primary",className:"w-full",icon:g.jsx(UZe,{}),children:"Начать все"}),g.jsx(gt,{className:"w-full",icon:g.jsx(bJe,{}),children:"Остановить все"})]})})]})]})]})}const{Title:oQe,Text:Z2}=dn,{Option:Lit}=pr,m7="http://localhost:9000/api/v1",iQe="http://localhost:8000";function aQe(){var C;const[e,t]=c.useState([]),[n,r]=c.useState(null),[o,i]=c.useState(!1),[a,s]=c.useState(null),[l,u]=c.useState(!1),[d,f]=c.useState(!1),m=c.useRef(null),h=c.useRef(null);c.useEffect(()=>{p()},[]);const p=async()=>{u(!0);try{const S=await Or.get(`${m7}/profiles/`);t(S.data)}catch(S){console.error(S),Pt.error("Failed to load profiles")}finally{u(!1)}},b=async()=>{try{const S=await navigator.mediaDevices.getUserMedia({video:!0});m.current&&(m.current.srcObject=S,i(!0))}catch(S){console.error(S),Pt.error("Failed to access camera")}},v=()=>{m.current&&m.current.srcObject&&(m.current.srcObject.getTracks().forEach($=>$.stop()),m.current.srcObject=null,i(!1))},y=()=>{if(m.current&&h.current){const S=h.current.getContext("2d");if(S){const{videoWidth:$,videoHeight:E}=m.current;h.current.width=$,h.current.height=E,S.drawImage(m.current,0,0,$,E);const O=h.current.toDataURL("image/jpeg");s(O),v()}}},x=()=>{s(null),b()},w=async()=>{var S,$;if(!(!n||!a)){f(!0);try{const E=await(await fetch(a)).blob(),O=new FormData;O.append("file",E,"face.jpg");const P=await Or.post(`${iQe}/face/embedding`,O,{headers:{"Content-Type":"multipart/form-data"}});if(P.data.error)throw new Error(P.data.error);const j=P.data.embedding;await Or.put(`${m7}/profiles/${n}`,{face_embedding:j,is_face_registered:!0}),Pt.success("Face registered successfully!"),s(null),r(null),p()}catch(E){console.error(E);const O=(($=(S=E.response)==null?void 0:S.data)==null?void 0:$.error)||E.message||"Unknown error";Pt.error(`Failed to register face: ${O}`)}finally{f(!1)}}};return c.useEffect(()=>()=>{v()},[]),g.jsxs("div",{className:"p-6 max-w-4xl mx-auto",children:[g.jsx(Gt,{title:"Регистрация лица",extra:g.jsx(gt,{onClick:p,icon:g.jsx(c7,{}),children:"Обновить"}),children:g.jsxs(ts,{gutter:24,children:[g.jsx(Mr,{span:12,children:g.jsxs(pn,{direction:"vertical",className:"w-full",children:[g.jsx(Z2,{strong:!0,children:"1. Выберите ученика"}),g.jsx(pr,{showSearch:!0,style:{width:"100%"},placeholder:"Выберите ученика",optionFilterProp:"children",onChange:S=>{r(S),!o&&!a&&b()},value:n,loading:l,filterOption:(S,$)=>(($==null?void 0:$.label)??"").toLowerCase().includes(S.toLowerCase()),options:e.map(S=>({value:S.id,label:`${S.full_name} ${S.class_name?`(${S.class_name})`:""} ${S.is_face_registered?"✅":""}`}))}),n&&g.jsxs("div",{className:"mt-4",children:[g.jsx(Z2,{strong:!0,children:"2. Сделайте фото"}),g.jsx("div",{className:"mt-2",children:a?g.jsx("div",{className:"relative border rounded h-[300px] flex items-center justify-center bg-gray-100",children:g.jsx("img",{src:a,alt:"Captured",className:"h-full object-contain"})}):g.jsx("div",{className:"relative border rounded bg-black h-[300px] flex items-center justify-center overflow-hidden",children:o?g.jsx("video",{ref:m,autoPlay:!0,playsInline:!0,className:"w-full h-full object-contain"}):g.jsx(gt,{onClick:b,icon:g.jsx(sI,{}),children:"Включить камеру"})})}),g.jsxs("div",{className:"mt-4 flex gap-2 justify-center",children:[!a&&o&&g.jsx(gt,{type:"primary",onClick:y,icon:g.jsx(sI,{}),children:"Снять"}),a&&g.jsx(gt,{onClick:x,icon:g.jsx(c7,{}),children:"Переснять"})]})]})]})}),g.jsx(Mr,{span:12,children:g.jsx("div",{className:"h-full flex flex-col justify-center items-center",children:n&&a?g.jsx(Gt,{className:"w-full bg-gray-50",children:g.jsxs(pn,{direction:"vertical",className:"w-full items-center",children:[g.jsx(oQe,{level:4,children:"Подтверждение регистрации"}),g.jsxs(Z2,{children:["Ученик: ",(C=e.find(S=>S.id===n))==null?void 0:C.full_name]}),g.jsx(gt,{type:"primary",size:"large",icon:g.jsx(rJe,{}),loading:d,onClick:w,children:"Сохранить данные лица"})]})}):g.jsxs("div",{className:"text-center text-gray-400",children:[g.jsx(rl,{style:{fontSize:48}}),g.jsx("p",{children:"Выберите ученика и сделайте фото для продолжения"})]})})})]})}),g.jsx("canvas",{ref:h,style:{display:"none"}})]})}const Ui={getHealth:async()=>(await Dt.get("/diagnostics/health")).data,getHardware:async()=>(await Dt.get("/diagnostics/hardware")).data,getYOLO:async()=>(await Dt.get("/diagnostics/yolo")).data,yoloInfer:async e=>{const t=new FormData;return t.append("file",e),(await Dt.post("/diagnostics/yolo/infer",t,{headers:{"Content-Type":"multipart/form-data"}})).data},poseInfer:async e=>{const t=new FormData;return t.append("file",e),(await Dt.post("/diagnostics/pose/infer",t,{headers:{"Content-Type":"multipart/form-data"}})).data},poseInferVideo:async e=>{const t=new FormData;return t.append("file",e),(await Dt.post("/diagnostics/pose/infer-video",t,{headers:{"Content-Type":"multipart/form-data"}})).data},listExercises:async()=>(await Dt.get("/diagnostics/exercises")).data,runExerciseTest:async(e,t)=>(await Dt.post("/diagnostics/exercises/run",{exercise_id:e,test_id:t})).data,generateReport:async e=>(await Dt.post("/diagnostics/reports/generate",{results:e})).data,saveReport:async e=>(await Dt.post("/diagnostics/reports/save",e)).data,exportCSV:async e=>(await Dt.post("/diagnostics/reports/export/csv",{results:e},{responseType:"blob"})).data,exportXLSX:async e=>(await Dt.post("/diagnostics/reports/export/xlsx",{results:e},{responseType:"blob"})).data,ingestMetrics:async(e,t,n)=>(await Dt.post("/diagnostics/ingest-metrics",{module_id:e,metrics:t,student_id:n})).data},{Title:h7,Paragraph:p7}=dn;function sQe(){var A,M;const[e,t]=c.useState(null),[n,r]=c.useState(null),[o,i]=c.useState(null),[a,s]=c.useState({exercises:{}}),[l,u]=c.useState([]),[d,f]=c.useState(null),[m,h]=c.useState(null),[p,b]=c.useState(!1),v=async()=>{b(!0);try{const[T,k,D,L]=await Promise.all([Ui.getHealth(),Ui.getHardware(),Ui.getYOLO(),Ui.listExercises()]);t(T),r(k),i(D),s(L)}catch(T){Pt.error((T==null?void 0:T.message)||"Ошибка загрузки диагностики")}finally{b(!1)}};c.useEffect(()=>{v()},[]);const[y,x]=c.useState("image"),[w,C]=c.useState("jump"),[S,$]=c.useState([]),[E,O]=c.useState(null);c.useEffect(()=>{if(y==="video"&&S.length>0){const T=document.getElementById("videoCanvas");if(!T)return;const k=T.getContext("2d");if(!k)return;T.width=640,T.height=480,k.fillStyle="#1f1f1f",k.fillRect(0,0,T.width,T.height);const D=[],L=[];S.forEach(B=>{var F;const H=((F=B.keypoints)==null?void 0:F[0])||[];H.length>12&&(k.globalAlpha=.15,k.fillStyle="#ff3366",H.forEach(W=>{W&&W.length>=2&&W[0]>0&&(k.beginPath(),k.arc(W[0],W[1],3,0,Math.PI*2),k.fill())}),H[11]&&H[11][2]>.3&&D.push(H[11]),H[15]&&H[15][2]>.3&&L.push(H[15]))}),k.globalAlpha=1,k.strokeStyle="#00ff88",k.lineWidth=2,[D,L].forEach(B=>{if(!(B.length<2)){k.beginPath(),k.moveTo(B[0][0],B[0][1]);for(let H=1;H<B.length;H++)k.lineTo(B[H][0],B[H][1]);k.stroke()}})}else if(y==="image"&&m&&d){const T=document.getElementById("poseCanvas");if(!T)return;const k=T.getContext("2d");if(!k)return;const D=new Image;D.onload=()=>{k.clearRect(0,0,T.width,T.height),k.drawImage(D,0,0,T.width,T.height);const L=[[5,7],[7,9],[6,8],[8,10],[11,13],[13,15],[12,14],[14,16],[5,6],[11,12],[5,11],[6,12],[0,1],[1,2],[2,3],[3,4],[0,5],[0,6]],B=d.keypoints||[];k.lineWidth=2,k.strokeStyle="#00ff88",k.fillStyle="#ff3366",B.forEach(H=>{L.forEach(([F,W])=>{const q=H[F],G=H[W];q&&G&&(k.beginPath(),k.moveTo(q[0],q[1]),k.lineTo(G[0],G[1]),k.stroke())}),H.forEach(F=>{F&&(k.beginPath(),k.arc(F[0],F[1],3,0,Math.PI*2),k.fill())})})},D.src=m}},[m,d,y,S]);const P={accept:"video/*",customRequest:async({file:T,onSuccess:k,onError:D})=>{try{Pt.loading({content:"Обработка видео...",key:"vidProc"});const L=await Ui.poseInferVideo(T);$(L.frames||[]),Pt.success({content:`Видео обработано: ${L.total_frames} кадров`,key:"vidProc"}),k&&k(L)}catch(L){Pt.error({content:(L==null?void 0:L.message)||"Ошибка обработки видео",key:"vidProc"}),D&&D(L)}}},j={accept:"image/*",customRequest:async({file:T,onSuccess:k,onError:D})=>{try{const L=await Ui.yoloInfer(T);u(B=>[...B,{type:"yolo_infer",...L.metrics}]),Pt.success("Инференс YOLO выполнен"),k&&k(L)}catch(L){Pt.error((L==null?void 0:L.message)||"Ошибка инференса"),D&&D(L)}}},I={accept:"image/*",customRequest:async({file:T,onSuccess:k,onError:D})=>{try{const L=await Ui.poseInfer(T);f(L);const B=URL.createObjectURL(T);h(B),u(H=>[...H,{type:"pose_infer",duration_sec:L.duration_sec}]),Pt.success("Инференс Pose выполнен"),k&&k(L)}catch(L){Pt.error((L==null?void 0:L.message)||"Ошибка инференса поз"),D&&D(L)}}},_=async(T,k)=>{try{const D=await Ui.runExerciseTest(T,k);u(L=>[...L,{type:"exercise",...D.report}]),Pt.success("Тест выполнен")}catch(D){Pt.error((D==null?void 0:D.message)||"Ошибка выполнения теста")}},R=async()=>{try{const T=await Ui.generateReport(l),k=new Blob([JSON.stringify(T,null,2)],{type:"application/json"}),D=URL.createObjectURL(k),L=document.createElement("a");L.href=D,L.download=`diagnostics-report-${Date.now()}.json`,L.click(),URL.revokeObjectURL(D),Pt.success("Отчёт сгенерирован и скачан")}catch(T){Pt.error((T==null?void 0:T.message)||"Ошибка генерации отчёта")}},N=[{title:"Тип",dataIndex:"type"},{title:"Статус",dataIndex:"passed",render:T=>T===void 0?"-":T?g.jsx(zn,{color:"green",children:"OK"}):g.jsx(zn,{color:"red",children:"FAIL"})},{title:"Длительность (с)",dataIndex:"duration_sec"},{title:"Сообщения",dataIndex:"messages",render:(T=[])=>T==null?void 0:T.join("; ")}];return g.jsxs("div",{className:"p-6 space-y-16",children:[g.jsx(h7,{level:2,children:"Система диагностики"}),g.jsx(p7,{children:"Автоматические проверки оборудования, CUDA/GPU, конфигурации YOLO и инструменты тестирования упражнений."}),g.jsxs(pn,{direction:"vertical",style:{width:"100%"},size:"large",children:[g.jsx(Gt,{title:"Аппаратные проверки",extra:g.jsx(gt,{onClick:v,loading:p,children:"Обновить"}),children:g.jsx("pre",{style:{whiteSpace:"pre-wrap"},children:JSON.stringify(n,null,2)})}),g.jsxs(Gt,{title:"Статус YOLO",children:[g.jsx("pre",{style:{whiteSpace:"pre-wrap"},children:JSON.stringify(o,null,2)}),g.jsx(qp,{...j,children:g.jsx(gt,{type:"primary",children:"Загрузить изображение и выполнить инференс"})})]}),g.jsxs(Gt,{title:"Поза и траектории (визуализация)",children:[g.jsxs(Kc.Group,{value:y,onChange:T=>x(T.target.value),buttonStyle:"solid",className:"mb-4",children:[g.jsx(Kc.Button,{value:"image",children:"Изображение"}),g.jsx(Kc.Button,{value:"video",children:"Видео (Траектории)"})]}),g.jsx("div",{className:"mt-4",children:y==="image"?g.jsxs(g.Fragment,{children:[g.jsx(qp,{...I,children:g.jsx(gt,{type:"primary",children:"Загрузить изображение для поз"})}),m&&d&&g.jsx("div",{className:"mt-4",children:g.jsx("canvas",{id:"poseCanvas",width:((A=d.image_size)==null?void 0:A.width)||640,height:((M=d.image_size)==null?void 0:M.height)||480})})]}):g.jsxs(g.Fragment,{children:[g.jsx(qp,{...P,children:g.jsx(gt,{type:"primary",children:"Загрузить видео для анализа траекторий"})}),S.length>0&&g.jsxs("div",{className:"mt-4",children:[g.jsx("canvas",{id:"videoCanvas"}),g.jsx(p7,{children:"Визуализация траекторий (Бедро, Лодыжка) и тепловая карта движений."})]})]})}),g.jsx(Ol,{}),g.jsxs(pn,{direction:"vertical",style:{width:"100%"},children:[g.jsxs(pn,{children:[g.jsx(dn.Text,{strong:!0,children:"Тип активности:"}),g.jsx(pr,{value:w,onChange:C,options:[{label:"Прыжок (Jump)",value:"jump"},{label:"Присед (Squat)",value:"squat"},{label:"Отжимание (Pushup)",value:"pushup"}],style:{width:150}}),g.jsx(gt,{type:"primary",onClick:async()=>{var T;if(y==="image"&&(!d||!d.keypoints)){Pt.warning("Нет данных позы");return}if(y==="video"){Pt.warning("Анализ видео пока только визуальный. Используйте изображение для метрик.");return}try{const k={movement:w,keypoints:d.keypoints},D=`activity.${w}`,L=await Ui.ingestMetrics(D,k);O(((T=L.result)==null?void 0:T.analysis)||L.result),Pt.success(`Метрики отправлены в модуль ${w}`)}catch(k){Pt.error((k==null?void 0:k.message)||"Ошибка отправки метрик")}},children:"Анализировать и отправить"})]}),E&&g.jsx(mT,{message:"Результат анализа",description:g.jsx("pre",{children:JSON.stringify(E,null,2)}),type:"info",showIcon:!0})]})]}),g.jsx(Gt,{title:"Интеграция упражнений",children:Object.entries(a.exercises||{}).map(([T,k])=>g.jsxs("div",{className:"mb-4",children:[g.jsx(h7,{level:4,children:k.name}),g.jsx(pn,{wrap:!0,children:k.tests.map(D=>g.jsxs(gt,{onClick:()=>_(T,D.id),children:["Запустить: ",D.title]},D.id))})]},T))}),g.jsxs(Gt,{title:"Результаты и отчёт",children:[g.jsx(Si,{rowKey:T=>`${T.type}-${T.timestamp||T.duration_sec}-${Math.random()}`,columns:N,dataSource:l,pagination:!1}),g.jsx("div",{className:"mt-4",children:g.jsxs(pn,{children:[g.jsx(gt,{type:"primary",onClick:R,children:"Сгенерировать отчёт (JSON)"}),g.jsx(gt,{onClick:async()=>{const T=await Ui.exportCSV(l),k=URL.createObjectURL(T),D=document.createElement("a");D.href=k,D.download=`diagnostics-${Date.now()}.csv`,D.click(),URL.revokeObjectURL(k)},children:"Экспорт CSV"}),g.jsx(gt,{onClick:async()=>{const T=await Ui.exportXLSX(l),k=URL.createObjectURL(T),D=document.createElement("a");D.href=k,D.download=`diagnostics-${Date.now()}.xlsx`,D.click(),URL.revokeObjectURL(k)},children:"Экспорт XLSX"}),g.jsx(gt,{onClick:async()=>{try{const T=await Ui.generateReport(l);await Ui.saveReport(T),Pt.success("Отчёт сохранён в БД")}catch(T){Pt.error((T==null?void 0:T.message)||"Ошибка сохранения отчёта")}},children:"Сохранить отчёт в БД"})]})})]})]})]})}class lQe extends c.Component{constructor(){super(...arguments);li(this,"state",{hasError:!1,error:null})}static getDerivedStateFromError(n){return{hasError:!0,error:n}}componentDidCatch(n,r){console.error("Uncaught error:",n,r)}render(){return this.state.hasError?g.jsx("div",{className:"min-h-screen bg-gray-50 flex flex-col justify-center py-12 sm:px-6 lg:px-8",children:g.jsx("div",{className:"sm:mx-auto sm:w-full sm:max-w-md",children:g.jsxs("div",{className:"bg-white py-8 px-4 shadow sm:rounded-lg sm:px-10 text-center",children:[g.jsx("h2",{className:"text-2xl font-bold text-red-600 mb-4",children:"Something went wrong"}),g.jsx("p",{className:"text-gray-600 mb-6",children:"We encountered an unexpected error. Please try refreshing the page."}),g.jsx("button",{onClick:()=>window.location.reload(),className:"w-full flex justify-center py-2 px-4 border border-transparent rounded-md shadow-sm text-sm font-medium text-white bg-indigo-600 hover:bg-indigo-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500",children:"Reload Page"}),this.state.error&&g.jsxs("details",{className:"mt-4 text-left text-xs text-gray-400",children:[g.jsx("summary",{children:"Error Details"}),g.jsx("pre",{className:"mt-2 whitespace-pre-wrap",children:this.state.error.toString()})]})]})})}):this.props.children}}const M3=c.createContext({});function k3(e){const t=c.useRef(null);return t.current===null&&(t.current=e()),t.current}const A3=typeof window<"u",Nne=A3?c.useLayoutEffect:c.useEffect,gC=c.createContext(null);function D3(e,t){e.indexOf(t)===-1&&e.push(t)}function L3(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}const Ql=(e,t,n)=>n>t?t:n<e?e:n;let z3=()=>{};const ec={},Rne=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e);function Tne(e){return typeof e=="object"&&e!==null}const Mne=e=>/^0[^.\s]+$/u.test(e);function F3(e){let t;return()=>(t===void 0&&(t=e()),t)}const ns=e=>e,cQe=(e,t)=>n=>t(e(n)),f0=(...e)=>e.reduce(cQe),tv=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r};class B3{constructor(){this.subscriptions=[]}add(t){return D3(this.subscriptions,t),()=>L3(this.subscriptions,t)}notify(t,n,r){const o=this.subscriptions.length;if(o)if(o===1)this.subscriptions[0](t,n,r);else for(let i=0;i<o;i++){const a=this.subscriptions[i];a&&a(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}const sl=e=>e*1e3,Qa=e=>e/1e3;function kne(e,t){return t?e*(1e3/t):0}const Ane=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,uQe=1e-7,dQe=12;function fQe(e,t,n,r,o){let i,a,s=0;do a=t+(n-t)/2,i=Ane(a,r,o)-e,i>0?n=a:t=a;while(Math.abs(i)>uQe&&++s<dQe);return a}function m0(e,t,n,r){if(e===t&&n===r)return ns;const o=i=>fQe(i,0,1,e,n);return i=>i===0||i===1?i:Ane(o(i),t,r)}const Dne=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,Lne=e=>t=>1-e(1-t),zne=m0(.33,1.53,.69,.99),H3=Lne(zne),Fne=Dne(H3),Bne=e=>(e*=2)<1?.5*H3(e):.5*(2-Math.pow(2,-10*(e-1))),V3=e=>1-Math.sin(Math.acos(e)),Hne=Lne(V3),Vne=Dne(V3),mQe=m0(.42,0,1,1),hQe=m0(0,0,.58,1),Wne=m0(.42,0,.58,1),pQe=e=>Array.isArray(e)&&typeof e[0]!="number",Une=e=>Array.isArray(e)&&typeof e[0]=="number",gQe={linear:ns,easeIn:mQe,easeInOut:Wne,easeOut:hQe,circIn:V3,circInOut:Vne,circOut:Hne,backIn:H3,backInOut:Fne,backOut:zne,anticipate:Bne},vQe=e=>typeof e=="string",g7=e=>{if(Une(e)){z3(e.length===4);const[t,n,r,o]=e;return m0(t,n,r,o)}else if(vQe(e))return gQe[e];return e},_y=["setup","read","resolveKeyframes","preUpdate","update","preRender","render","postRender"];function yQe(e,t){let n=new Set,r=new Set,o=!1,i=!1;const a=new WeakSet;let s={delta:0,timestamp:0,isProcessing:!1};function l(d){a.has(d)&&(u.schedule(d),e()),d(s)}const u={schedule:(d,f=!1,m=!1)=>{const p=m&&o?n:r;return f&&a.add(d),p.has(d)||p.add(d),d},cancel:d=>{r.delete(d),a.delete(d)},process:d=>{if(s=d,o){i=!0;return}o=!0,[n,r]=[r,n],n.forEach(l),n.clear(),o=!1,i&&(i=!1,u.process(d))}};return u}const bQe=40;function Kne(e,t){let n=!1,r=!0;const o={delta:0,timestamp:0,isProcessing:!1},i=()=>n=!0,a=_y.reduce((w,C)=>(w[C]=yQe(i),w),{}),{setup:s,read:l,resolveKeyframes:u,preUpdate:d,update:f,preRender:m,render:h,postRender:p}=a,b=()=>{const w=ec.useManualTiming?o.timestamp:performance.now();n=!1,ec.useManualTiming||(o.delta=r?1e3/60:Math.max(Math.min(w-o.timestamp,bQe),1)),o.timestamp=w,o.isProcessing=!0,s.process(o),l.process(o),u.process(o),d.process(o),f.process(o),m.process(o),h.process(o),p.process(o),o.isProcessing=!1,n&&t&&(r=!1,e(b))},v=()=>{n=!0,r=!0,o.isProcessing||e(b)};return{schedule:_y.reduce((w,C)=>{const S=a[C];return w[C]=($,E=!1,O=!1)=>(n||v(),S.schedule($,E,O)),w},{}),cancel:w=>{for(let C=0;C<_y.length;C++)a[_y[C]].cancel(w)},state:o,steps:a}}const{schedule:$r,cancel:ru,state:Qo,steps:J2}=Kne(typeof requestAnimationFrame<"u"?requestAnimationFrame:ns,!0);let bb;function xQe(){bb=void 0}const Qi={now:()=>(bb===void 0&&Qi.set(Qo.isProcessing||ec.useManualTiming?Qo.timestamp:performance.now()),bb),set:e=>{bb=e,queueMicrotask(xQe)}},qne=e=>t=>typeof t=="string"&&t.startsWith(e),Gne=qne("--"),wQe=qne("var(--"),W3=e=>wQe(e)?SQe.test(e.split("/*")[0].trim()):!1,SQe=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,Th={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},nv={...Th,transform:e=>Ql(0,1,e)},Ny={...Th,default:1},Xp=e=>Math.round(e*1e5)/1e5,U3=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function CQe(e){return e==null}const $Qe=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,K3=(e,t)=>n=>!!(typeof n=="string"&&$Qe.test(n)&&n.startsWith(e)||t&&!CQe(n)&&Object.prototype.hasOwnProperty.call(n,t)),Xne=(e,t,n)=>r=>{if(typeof r!="string")return r;const[o,i,a,s]=r.match(U3);return{[e]:parseFloat(o),[t]:parseFloat(i),[n]:parseFloat(a),alpha:s!==void 0?parseFloat(s):1}},EQe=e=>Ql(0,255,e),Q2={...Th,transform:e=>Math.round(EQe(e))},Yu={test:K3("rgb","red"),parse:Xne("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+Q2.transform(e)+", "+Q2.transform(t)+", "+Q2.transform(n)+", "+Xp(nv.transform(r))+")"};function OQe(e){let t="",n="",r="",o="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),o=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),o=e.substring(4,5),t+=t,n+=n,r+=r,o+=o),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:o?parseInt(o,16)/255:1}}const n_={test:K3("#"),parse:OQe,transform:Yu.transform},h0=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),xc=h0("deg"),ll=h0("%"),hn=h0("px"),PQe=h0("vh"),jQe=h0("vw"),v7={...ll,parse:e=>ll.parse(e)/100,transform:e=>ll.transform(e*100)},Kf={test:K3("hsl","hue"),parse:Xne("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+ll.transform(Xp(t))+", "+ll.transform(Xp(n))+", "+Xp(nv.transform(r))+")"},ao={test:e=>Yu.test(e)||n_.test(e)||Kf.test(e),parse:e=>Yu.test(e)?Yu.parse(e):Kf.test(e)?Kf.parse(e):n_.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?Yu.transform(e):Kf.transform(e),getAnimatableNone:e=>{const t=ao.parse(e);return t.alpha=0,ao.transform(t)}},IQe=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function _Qe(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(U3))==null?void 0:t.length)||0)+(((n=e.match(IQe))==null?void 0:n.length)||0)>0}const Yne="number",Zne="color",NQe="var",RQe="var(",y7="${}",TQe=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function rv(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},o=[];let i=0;const s=t.replace(TQe,l=>(ao.test(l)?(r.color.push(i),o.push(Zne),n.push(ao.parse(l))):l.startsWith(RQe)?(r.var.push(i),o.push(NQe),n.push(l)):(r.number.push(i),o.push(Yne),n.push(parseFloat(l))),++i,y7)).split(y7);return{values:n,split:s,indexes:r,types:o}}function Jne(e){return rv(e).values}function Qne(e){const{split:t,types:n}=rv(e),r=t.length;return o=>{let i="";for(let a=0;a<r;a++)if(i+=t[a],o[a]!==void 0){const s=n[a];s===Yne?i+=Xp(o[a]):s===Zne?i+=ao.transform(o[a]):i+=o[a]}return i}}const MQe=e=>typeof e=="number"?0:ao.test(e)?ao.getAnimatableNone(e):e;function kQe(e){const t=Jne(e);return Qne(e)(t.map(MQe))}const ou={test:_Qe,parse:Jne,createTransformer:Qne,getAnimatableNone:kQe};function eE(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function AQe({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let o=0,i=0,a=0;if(!t)o=i=a=n;else{const s=n<.5?n*(1+t):n+t-n*t,l=2*n-s;o=eE(l,s,e+1/3),i=eE(l,s,e),a=eE(l,s,e-1/3)}return{red:Math.round(o*255),green:Math.round(i*255),blue:Math.round(a*255),alpha:r}}function v1(e,t){return n=>n>0?t:e}const kr=(e,t,n)=>e+(t-e)*n,tE=(e,t,n)=>{const r=e*e,o=n*(t*t-r)+r;return o<0?0:Math.sqrt(o)},DQe=[n_,Yu,Kf],LQe=e=>DQe.find(t=>t.test(e));function b7(e){const t=LQe(e);if(!t)return!1;let n=t.parse(e);return t===Kf&&(n=AQe(n)),n}const x7=(e,t)=>{const n=b7(e),r=b7(t);if(!n||!r)return v1(e,t);const o={...n};return i=>(o.red=tE(n.red,r.red,i),o.green=tE(n.green,r.green,i),o.blue=tE(n.blue,r.blue,i),o.alpha=kr(n.alpha,r.alpha,i),Yu.transform(o))},r_=new Set(["none","hidden"]);function zQe(e,t){return r_.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function FQe(e,t){return n=>kr(e,t,n)}function q3(e){return typeof e=="number"?FQe:typeof e=="string"?W3(e)?v1:ao.test(e)?x7:VQe:Array.isArray(e)?ere:typeof e=="object"?ao.test(e)?x7:BQe:v1}function ere(e,t){const n=[...e],r=n.length,o=e.map((i,a)=>q3(i)(i,t[a]));return i=>{for(let a=0;a<r;a++)n[a]=o[a](i);return n}}function BQe(e,t){const n={...e,...t},r={};for(const o in n)e[o]!==void 0&&t[o]!==void 0&&(r[o]=q3(e[o])(e[o],t[o]));return o=>{for(const i in r)n[i]=r[i](o);return n}}function HQe(e,t){const n=[],r={color:0,var:0,number:0};for(let o=0;o<t.values.length;o++){const i=t.types[o],a=e.indexes[i][r[i]],s=e.values[a]??0;n[o]=s,r[i]++}return n}const VQe=(e,t)=>{const n=ou.createTransformer(t),r=rv(e),o=rv(t);return r.indexes.var.length===o.indexes.var.length&&r.indexes.color.length===o.indexes.color.length&&r.indexes.number.length>=o.indexes.number.length?r_.has(e)&&!o.values.length||r_.has(t)&&!r.values.length?zQe(e,t):f0(ere(HQe(r,o),o.values),n):v1(e,t)};function tre(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?kr(e,t,n):q3(e)(e,t)}const WQe=e=>{const t=({timestamp:n})=>e(n);return{start:(n=!0)=>$r.update(t,n),stop:()=>ru(t),now:()=>Qo.isProcessing?Qo.timestamp:Qi.now()}},nre=(e,t,n=10)=>{let r="";const o=Math.max(Math.round(t/n),2);for(let i=0;i<o;i++)r+=Math.round(e(i/(o-1))*1e4)/1e4+", ";return`linear(${r.substring(0,r.length-2)})`},y1=2e4;function G3(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<y1;)t+=n,r=e.next(t);return t>=y1?1/0:t}function UQe(e,t=100,n){const r=n({...e,keyframes:[0,t]}),o=Math.min(G3(r),y1);return{type:"keyframes",ease:i=>r.next(o*i).value/t,duration:Qa(o)}}const KQe=5;function rre(e,t,n){const r=Math.max(t-KQe,0);return kne(n-e(r),t-r)}const Wr={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},nE=.001;function qQe({duration:e=Wr.duration,bounce:t=Wr.bounce,velocity:n=Wr.velocity,mass:r=Wr.mass}){let o,i,a=1-t;a=Ql(Wr.minDamping,Wr.maxDamping,a),e=Ql(Wr.minDuration,Wr.maxDuration,Qa(e)),a<1?(o=u=>{const d=u*a,f=d*e,m=d-n,h=o_(u,a),p=Math.exp(-f);return nE-m/h*p},i=u=>{const f=u*a*e,m=f*n+n,h=Math.pow(a,2)*Math.pow(u,2)*e,p=Math.exp(-f),b=o_(Math.pow(u,2),a);return(-o(u)+nE>0?-1:1)*((m-h)*p)/b}):(o=u=>{const d=Math.exp(-u*e),f=(u-n)*e+1;return-nE+d*f},i=u=>{const d=Math.exp(-u*e),f=(n-u)*(e*e);return d*f});const s=5/e,l=XQe(o,i,s);if(e=sl(e),isNaN(l))return{stiffness:Wr.stiffness,damping:Wr.damping,duration:e};{const u=Math.pow(l,2)*r;return{stiffness:u,damping:a*2*Math.sqrt(r*u),duration:e}}}const GQe=12;function XQe(e,t,n){let r=n;for(let o=1;o<GQe;o++)r=r-e(r)/t(r);return r}function o_(e,t){return e*Math.sqrt(1-t*t)}const YQe=["duration","bounce"],ZQe=["stiffness","damping","mass"];function w7(e,t){return t.some(n=>e[n]!==void 0)}function JQe(e){let t={velocity:Wr.velocity,stiffness:Wr.stiffness,damping:Wr.damping,mass:Wr.mass,isResolvedFromDuration:!1,...e};if(!w7(e,ZQe)&&w7(e,YQe))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),o=r*r,i=2*Ql(.05,1,1-(e.bounce||0))*Math.sqrt(o);t={...t,mass:Wr.mass,stiffness:o,damping:i}}else{const n=qQe(e);t={...t,...n,mass:Wr.mass},t.isResolvedFromDuration=!0}return t}function b1(e=Wr.visualDuration,t=Wr.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:o}=n;const i=n.keyframes[0],a=n.keyframes[n.keyframes.length-1],s={done:!1,value:i},{stiffness:l,damping:u,mass:d,duration:f,velocity:m,isResolvedFromDuration:h}=JQe({...n,velocity:-Qa(n.velocity||0)}),p=m||0,b=u/(2*Math.sqrt(l*d)),v=a-i,y=Qa(Math.sqrt(l/d)),x=Math.abs(v)<5;r||(r=x?Wr.restSpeed.granular:Wr.restSpeed.default),o||(o=x?Wr.restDelta.granular:Wr.restDelta.default);let w;if(b<1){const S=o_(y,b);w=$=>{const E=Math.exp(-b*y*$);return a-E*((p+b*y*v)/S*Math.sin(S*$)+v*Math.cos(S*$))}}else if(b===1)w=S=>a-Math.exp(-y*S)*(v+(p+y*v)*S);else{const S=y*Math.sqrt(b*b-1);w=$=>{const E=Math.exp(-b*y*$),O=Math.min(S*$,300);return a-E*((p+b*y*v)*Math.sinh(O)+S*v*Math.cosh(O))/S}}const C={calculatedDuration:h&&f||null,next:S=>{const $=w(S);if(h)s.done=S>=f;else{let E=S===0?p:0;b<1&&(E=S===0?sl(p):rre(w,S,$));const O=Math.abs(E)<=r,P=Math.abs(a-$)<=o;s.done=O&&P}return s.value=s.done?a:$,s},toString:()=>{const S=Math.min(G3(C),y1),$=nre(E=>C.next(S*E).value,S,30);return S+"ms "+$},toTransition:()=>{}};return C}b1.applyToOptions=e=>{const t=UQe(e,100,b1);return e.ease=t.ease,e.duration=sl(t.duration),e.type="keyframes",e};function i_({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:o=10,bounceStiffness:i=500,modifyTarget:a,min:s,max:l,restDelta:u=.5,restSpeed:d}){const f=e[0],m={done:!1,value:f},h=O=>s!==void 0&&O<s||l!==void 0&&O>l,p=O=>s===void 0?l:l===void 0||Math.abs(s-O)<Math.abs(l-O)?s:l;let b=n*t;const v=f+b,y=a===void 0?v:a(v);y!==v&&(b=y-f);const x=O=>-b*Math.exp(-O/r),w=O=>y+x(O),C=O=>{const P=x(O),j=w(O);m.done=Math.abs(P)<=u,m.value=m.done?y:j};let S,$;const E=O=>{h(m.value)&&(S=O,$=b1({keyframes:[m.value,p(m.value)],velocity:rre(w,O,m.value),damping:o,stiffness:i,restDelta:u,restSpeed:d}))};return E(0),{calculatedDuration:null,next:O=>{let P=!1;return!$&&S===void 0&&(P=!0,C(O),E(O)),S!==void 0&&O>=S?$.next(O-S):(!P&&C(O),m)}}}function QQe(e,t,n){const r=[],o=n||ec.mix||tre,i=e.length-1;for(let a=0;a<i;a++){let s=o(e[a],e[a+1]);if(t){const l=Array.isArray(t)?t[a]||ns:t;s=f0(l,s)}r.push(s)}return r}function eet(e,t,{clamp:n=!0,ease:r,mixer:o}={}){const i=e.length;if(z3(i===t.length),i===1)return()=>t[0];if(i===2&&t[0]===t[1])return()=>t[1];const a=e[0]===e[1];e[0]>e[i-1]&&(e=[...e].reverse(),t=[...t].reverse());const s=QQe(t,r,o),l=s.length,u=d=>{if(a&&d<e[0])return t[0];let f=0;if(l>1)for(;f<e.length-2&&!(d<e[f+1]);f++);const m=tv(e[f],e[f+1],d);return s[f](m)};return n?d=>u(Ql(e[0],e[i-1],d)):u}function tet(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const o=tv(0,t,r);e.push(kr(n,1,o))}}function net(e){const t=[0];return tet(t,e.length-1),t}function ret(e,t){return e.map(n=>n*t)}function oet(e,t){return e.map(()=>t||Wne).splice(0,e.length-1)}function Yp({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const o=pQe(r)?r.map(g7):g7(r),i={done:!1,value:t[0]},a=ret(n&&n.length===t.length?n:net(t),e),s=eet(a,t,{ease:Array.isArray(o)?o:oet(t,o)});return{calculatedDuration:e,next:l=>(i.value=s(l),i.done=l>=e,i)}}const iet=e=>e!==null;function X3(e,{repeat:t,repeatType:n="loop"},r,o=1){const i=e.filter(iet),s=o<0||t&&n!=="loop"&&t%2===1?0:i.length-1;return!s||r===void 0?i[s]:r}const aet={decay:i_,inertia:i_,tween:Yp,keyframes:Yp,spring:b1};function ore(e){typeof e.type=="string"&&(e.type=aet[e.type])}class Y3{constructor(){this.updateFinished()}get finished(){return this._finished}updateFinished(){this._finished=new Promise(t=>{this.resolve=t})}notifyFinished(){this.resolve()}then(t,n){return this.finished.then(t,n)}}const set=e=>e/100;class Z3 extends Y3{constructor(t){super(),this.state="idle",this.startTime=null,this.isStopped=!1,this.currentTime=0,this.holdTime=null,this.playbackSpeed=1,this.stop=()=>{var r,o;const{motionValue:n}=this.options;n&&n.updatedAt!==Qi.now()&&this.tick(Qi.now()),this.isStopped=!0,this.state!=="idle"&&(this.teardown(),(o=(r=this.options).onStop)==null||o.call(r))},this.options=t,this.initAnimation(),this.play(),t.autoplay===!1&&this.pause()}initAnimation(){const{options:t}=this;ore(t);const{type:n=Yp,repeat:r=0,repeatDelay:o=0,repeatType:i,velocity:a=0}=t;let{keyframes:s}=t;const l=n||Yp;l!==Yp&&typeof s[0]!="number"&&(this.mixKeyframes=f0(set,tre(s[0],s[1])),s=[0,100]);const u=l({...t,keyframes:s});i==="mirror"&&(this.mirroredGenerator=l({...t,keyframes:[...s].reverse(),velocity:-a})),u.calculatedDuration===null&&(u.calculatedDuration=G3(u));const{calculatedDuration:d}=u;this.calculatedDuration=d,this.resolvedDuration=d+o,this.totalDuration=this.resolvedDuration*(r+1)-o,this.generator=u}updateTime(t){const n=Math.round(t-this.startTime)*this.playbackSpeed;this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=n}tick(t,n=!1){const{generator:r,totalDuration:o,mixKeyframes:i,mirroredGenerator:a,resolvedDuration:s,calculatedDuration:l}=this;if(this.startTime===null)return r.next(0);const{delay:u=0,keyframes:d,repeat:f,repeatType:m,repeatDelay:h,type:p,onUpdate:b,finalKeyframe:v}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-o/this.speed,this.startTime)),n?this.currentTime=t:this.updateTime(t);const y=this.currentTime-u*(this.playbackSpeed>=0?1:-1),x=this.playbackSpeed>=0?y<0:y>o;this.currentTime=Math.max(y,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=o);let w=this.currentTime,C=r;if(f){const O=Math.min(this.currentTime,o)/s;let P=Math.floor(O),j=O%1;!j&&O>=1&&(j=1),j===1&&P--,P=Math.min(P,f+1),!!(P%2)&&(m==="reverse"?(j=1-j,h&&(j-=h/s)):m==="mirror"&&(C=a)),w=Ql(0,1,j)*s}const S=x?{done:!1,value:d[0]}:C.next(w);i&&(S.value=i(S.value));let{done:$}=S;!x&&l!==null&&($=this.playbackSpeed>=0?this.currentTime>=o:this.currentTime<=0);const E=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&$);return E&&p!==i_&&(S.value=X3(d,this.options,v,this.speed)),b&&b(S.value),E&&this.finish(),S}then(t,n){return this.finished.then(t,n)}get duration(){return Qa(this.calculatedDuration)}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+Qa(t)}get time(){return Qa(this.currentTime)}set time(t){var n;t=sl(t),this.currentTime=t,this.startTime===null||this.holdTime!==null||this.playbackSpeed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.playbackSpeed),(n=this.driver)==null||n.start(!1)}get speed(){return this.playbackSpeed}set speed(t){this.updateTime(Qi.now());const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=Qa(this.currentTime))}play(){var o,i;if(this.isStopped)return;const{driver:t=WQe,startTime:n}=this.options;this.driver||(this.driver=t(a=>this.tick(a))),(i=(o=this.options).onPlay)==null||i.call(o);const r=this.driver.now();this.state==="finished"?(this.updateFinished(),this.startTime=r):this.holdTime!==null?this.startTime=r-this.holdTime:this.startTime||(this.startTime=n??r),this.state==="finished"&&this.speed<0&&(this.startTime+=this.calculatedDuration),this.holdTime=null,this.state="running",this.driver.start()}pause(){this.state="paused",this.updateTime(Qi.now()),this.holdTime=this.currentTime}complete(){this.state!=="running"&&this.play(),this.state="finished",this.holdTime=null}finish(){var t,n;this.notifyFinished(),this.teardown(),this.state="finished",(n=(t=this.options).onComplete)==null||n.call(t)}cancel(){var t,n;this.holdTime=null,this.startTime=0,this.tick(0),this.teardown(),(n=(t=this.options).onCancel)==null||n.call(t)}teardown(){this.state="idle",this.stopDriver(),this.startTime=this.holdTime=null}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}attachTimeline(t){var n;return this.options.allowFlatten&&(this.options.type="keyframes",this.options.ease="linear",this.initAnimation()),(n=this.driver)==null||n.stop(),t.observe(this)}}function cet(e){for(let t=1;t<e.length;t++)e[t]??(e[t]=e[t-1])}const Zu=e=>e*180/Math.PI,a_=e=>{const t=Zu(Math.atan2(e[1],e[0]));return s_(t)},uet={x:4,y:5,translateX:4,translateY:5,scaleX:0,scaleY:3,scale:e=>(Math.abs(e[0])+Math.abs(e[3]))/2,rotate:a_,rotateZ:a_,skewX:e=>Zu(Math.atan(e[1])),skewY:e=>Zu(Math.atan(e[2])),skew:e=>(Math.abs(e[1])+Math.abs(e[2]))/2},s_=e=>(e=e%360,e<0&&(e+=360),e),S7=a_,C7=e=>Math.sqrt(e[0]*e[0]+e[1]*e[1]),$7=e=>Math.sqrt(e[4]*e[4]+e[5]*e[5]),det={x:12,y:13,z:14,translateX:12,translateY:13,translateZ:14,scaleX:C7,scaleY:$7,scale:e=>(C7(e)+$7(e))/2,rotateX:e=>s_(Zu(Math.atan2(e[6],e[5]))),rotateY:e=>s_(Zu(Math.atan2(-e[2],e[0]))),rotateZ:S7,rotate:S7,skewX:e=>Zu(Math.atan(e[4])),skewY:e=>Zu(Math.atan(e[1])),skew:e=>(Math.abs(e[1])+Math.abs(e[4]))/2};function l_(e){return e.includes("scale")?1:0}function c_(e,t){if(!e||e==="none")return l_(t);const n=e.match(/^matrix3d\(([-\d.e\s,]+)\)$/u);let r,o;if(n)r=det,o=n;else{const s=e.match(/^matrix\(([-\d.e\s,]+)\)$/u);r=uet,o=s}if(!o)return l_(t);const i=r[t],a=o[1].split(",").map(met);return typeof i=="function"?i(a):a[i]}const fet=(e,t)=>{const{transform:n="none"}=getComputedStyle(e);return c_(n,t)};function met(e){return parseFloat(e.trim())}const Mh=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],kh=new Set(Mh),E7=e=>e===Th||e===hn,het=new Set(["x","y","z"]),pet=Mh.filter(e=>!het.has(e));function get(e){const t=[];return pet.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const sd={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:(e,{transform:t})=>c_(t,"x"),y:(e,{transform:t})=>c_(t,"y")};sd.translateX=sd.x;sd.translateY=sd.y;const ld=new Set;let u_=!1,d_=!1,f_=!1;function ire(){if(d_){const e=Array.from(ld).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const o=get(r);o.length&&(n.set(r,o),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const o=n.get(r);o&&o.forEach(([i,a])=>{var s;(s=r.getValue(i))==null||s.set(a)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}d_=!1,u_=!1,ld.forEach(e=>e.complete(f_)),ld.clear()}function are(){ld.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(d_=!0)})}function vet(){f_=!0,are(),ire(),f_=!1}class J3{constructor(t,n,r,o,i,a=!1){this.state="pending",this.isAsync=!1,this.needsMeasurement=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=o,this.element=i,this.isAsync=a}scheduleResolve(){this.state="scheduled",this.isAsync?(ld.add(this),u_||(u_=!0,$r.read(are),$r.resolveKeyframes(ire))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:o}=this;if(t[0]===null){const i=o==null?void 0:o.get(),a=t[t.length-1];if(i!==void 0)t[0]=i;else if(r&&n){const s=r.readValue(n,a);s!=null&&(t[0]=s)}t[0]===void 0&&(t[0]=a),o&&i===void 0&&o.set(t[0])}cet(t)}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(t=!1){this.state="complete",this.onComplete(this.unresolvedKeyframes,this.finalKeyframe,t),ld.delete(this)}cancel(){this.state==="scheduled"&&(ld.delete(this),this.state="pending")}resume(){this.state==="pending"&&this.scheduleResolve()}}const yet=e=>e.startsWith("--");function bet(e,t,n){yet(t)?e.style.setProperty(t,n):e.style[t]=n}const xet=F3(()=>window.ScrollTimeline!==void 0),wet={};function Cet(e,t){const n=F3(e);return()=>wet[t]??n()}const sre=Cet(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),Ip=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,O7={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:Ip([0,.65,.55,1]),circOut:Ip([.55,0,1,.45]),backIn:Ip([.31,.01,.66,-.59]),backOut:Ip([.33,1.53,.69,.99])};function lre(e,t){if(e)return typeof e=="function"?sre()?nre(e,t):"ease-out":Une(e)?Ip(e):Array.isArray(e)?e.map(n=>lre(n,t)||O7.easeOut):O7[e]}function $et(e,t,n,{delay:r=0,duration:o=300,repeat:i=0,repeatType:a="loop",ease:s="easeOut",times:l}={},u=void 0){const d={[t]:n};l&&(d.offset=l);const f=lre(s,o);Array.isArray(f)&&(d.easing=f);const m={delay:r,duration:o,easing:Array.isArray(f)?"linear":f,fill:"both",iterations:i+1,direction:a==="reverse"?"alternate":"normal"};return u&&(m.pseudoElement=u),e.animate(d,m)}function cre(e){return typeof e=="function"&&"applyToOptions"in e}function Eet({type:e,...t}){return cre(e)&&sre()?e.applyToOptions(t):(t.duration??(t.duration=300),t.ease??(t.ease="easeOut"),t)}class Oet extends Y3{constructor(t){if(super(),this.finishedTime=null,this.isStopped=!1,!t)return;const{element:n,name:r,keyframes:o,pseudoElement:i,allowFlatten:a=!1,finalKeyframe:s,onComplete:l}=t;this.isPseudoElement=!!i,this.allowFlatten=a,this.options=t,z3(typeof t.type!="string");const u=Eet(t);this.animation=$et(n,r,o,u,i),u.autoplay===!1&&this.animation.pause(),this.animation.onfinish=()=>{if(this.finishedTime=this.time,!i){const d=X3(o,this.options,s,this.speed);this.updateMotionValue?this.updateMotionValue(d):bet(n,r,d),this.animation.cancel()}l==null||l(),this.notifyFinished()}}play(){this.isStopped||(this.animation.play(),this.state==="finished"&&this.updateFinished())}pause(){this.animation.pause()}complete(){var t,n;(n=(t=this.animation).finish)==null||n.call(t)}cancel(){try{this.animation.cancel()}catch{}}stop(){if(this.isStopped)return;this.isStopped=!0;const{state:t}=this;t==="idle"||t==="finished"||(this.updateMotionValue?this.updateMotionValue():this.commitStyles(),this.isPseudoElement||this.cancel())}commitStyles(){var t,n;this.isPseudoElement||(n=(t=this.animation).commitStyles)==null||n.call(t)}get duration(){var n,r;const t=((r=(n=this.animation.effect)==null?void 0:n.getComputedTiming)==null?void 0:r.call(n).duration)||0;return Qa(Number(t))}get iterationDuration(){const{delay:t=0}=this.options||{};return this.duration+Qa(t)}get time(){return Qa(Number(this.animation.currentTime)||0)}set time(t){this.finishedTime=null,this.animation.currentTime=sl(t)}get speed(){return this.animation.playbackRate}set speed(t){t<0&&(this.finishedTime=null),this.animation.playbackRate=t}get state(){return this.finishedTime!==null?"finished":this.animation.playState}get startTime(){return Number(this.animation.startTime)}set startTime(t){this.animation.startTime=t}attachTimeline({timeline:t,observe:n}){var r;return this.allowFlatten&&((r=this.animation.effect)==null||r.updateTiming({easing:"linear"})),this.animation.onfinish=null,t&&xet()?(this.animation.timeline=t,ns):n(this)}}const ure={anticipate:Bne,backInOut:Fne,circInOut:Vne};function Pet(e){return e in ure}function jet(e){typeof e.ease=="string"&&Pet(e.ease)&&(e.ease=ure[e.ease])}const P7=10;class Iet extends Oet{constructor(t){jet(t),ore(t),super(t),t.startTime&&(this.startTime=t.startTime),this.options=t}updateMotionValue(t){const{motionValue:n,onUpdate:r,onComplete:o,element:i,...a}=this.options;if(!n)return;if(t!==void 0){n.set(t);return}const s=new Z3({...a,autoplay:!1}),l=sl(this.finishedTime??this.time);n.setWithVelocity(s.sample(l-P7).value,s.sample(l).value,P7),s.stop()}}const j7=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(ou.test(e)||e==="0")&&!e.startsWith("url("));function _et(e){const t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function Net(e,t,n,r){const o=e[0];if(o===null)return!1;if(t==="display"||t==="visibility")return!0;const i=e[e.length-1],a=j7(o,t),s=j7(i,t);return!a||!s?!1:_et(e)||(n==="spring"||cre(n))&&r}function m_(e){e.duration=0,e.type="keyframes"}const Ret=new Set(["opacity","clipPath","filter","transform"]),Tet=F3(()=>Object.hasOwnProperty.call(Element.prototype,"animate"));function Met(e){var d;const{motionValue:t,name:n,repeatDelay:r,repeatType:o,damping:i,type:a}=e;if(!(((d=t==null?void 0:t.owner)==null?void 0:d.current)instanceof HTMLElement))return!1;const{onUpdate:l,transformTemplate:u}=t.owner.getProps();return Tet()&&n&&Ret.has(n)&&(n!=="transform"||!u)&&!l&&!r&&o!=="mirror"&&i!==0&&a!=="inertia"}const ket=40;class Aet extends Y3{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:o=0,repeatDelay:i=0,repeatType:a="loop",keyframes:s,name:l,motionValue:u,element:d,...f}){var p;super(),this.stop=()=>{var b,v;this._animation&&(this._animation.stop(),(b=this.stopTimeline)==null||b.call(this)),(v=this.keyframeResolver)==null||v.cancel()},this.createdAt=Qi.now();const m={autoplay:t,delay:n,type:r,repeat:o,repeatDelay:i,repeatType:a,name:l,motionValue:u,element:d,...f},h=(d==null?void 0:d.KeyframeResolver)||J3;this.keyframeResolver=new h(s,(b,v,y)=>this.onKeyframesResolved(b,v,m,!y),l,u,d),(p=this.keyframeResolver)==null||p.scheduleResolve()}onKeyframesResolved(t,n,r,o){this.keyframeResolver=void 0;const{name:i,type:a,velocity:s,delay:l,isHandoff:u,onUpdate:d}=r;this.resolvedAt=Qi.now(),Net(t,i,a,s)||((ec.instantAnimations||!l)&&(d==null||d(X3(t,r,n))),t[0]=t[t.length-1],m_(r),r.repeat=0);const m={startTime:o?this.resolvedAt?this.resolvedAt-this.createdAt>ket?this.resolvedAt:this.createdAt:this.createdAt:void 0,finalKeyframe:n,...r,keyframes:t},h=!u&&Met(m)?new Iet({...m,element:m.motionValue.owner.current}):new Z3(m);h.finished.then(()=>this.notifyFinished()).catch(ns),this.pendingTimeline&&(this.stopTimeline=h.attachTimeline(this.pendingTimeline),this.pendingTimeline=void 0),this._animation=h}get finished(){return this._animation?this.animation.finished:this._finished}then(t,n){return this.finished.finally(t).then(()=>{})}get animation(){var t;return this._animation||((t=this.keyframeResolver)==null||t.resume(),vet()),this._animation}get duration(){return this.animation.duration}get iterationDuration(){return this.animation.iterationDuration}get time(){return this.animation.time}set time(t){this.animation.time=t}get speed(){return this.animation.speed}get state(){return this.animation.state}set speed(t){this.animation.speed=t}get startTime(){return this.animation.startTime}attachTimeline(t){return this._animation?this.stopTimeline=this.animation.attachTimeline(t):this.pendingTimeline=t,()=>this.stop()}play(){this.animation.play()}pause(){this.animation.pause()}complete(){this.animation.complete()}cancel(){var t;this._animation&&this.animation.cancel(),(t=this.keyframeResolver)==null||t.cancel()}}const Det=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function Let(e){const t=Det.exec(e);if(!t)return[,];const[,n,r,o]=t;return[`--${n??r}`,o]}function dre(e,t,n=1){const[r,o]=Let(e);if(!r)return;const i=window.getComputedStyle(t).getPropertyValue(r);if(i){const a=i.trim();return Rne(a)?parseFloat(a):a}return W3(o)?dre(o,t,n+1):o}function Q3(e,t){return(e==null?void 0:e[t])??(e==null?void 0:e.default)??e}const fre=new Set(["width","height","top","left","right","bottom",...Mh]),zet={test:e=>e==="auto",parse:e=>e},mre=e=>t=>t.test(e),hre=[Th,hn,ll,xc,jQe,PQe,zet],I7=e=>hre.find(mre(e));function Fet(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||Mne(e):!0}const Bet=new Set(["brightness","contrast","saturate","opacity"]);function Het(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(U3)||[];if(!r)return e;const o=n.replace(r,"");let i=Bet.has(t)?1:0;return r!==n&&(i*=100),t+"("+i+o+")"}const Vet=/\b([a-z-]*)\(.*?\)/gu,h_={...ou,getAnimatableNone:e=>{const t=e.match(Vet);return t?t.map(Het).join(" "):e}},_7={...Th,transform:Math.round},Wet={rotate:xc,rotateX:xc,rotateY:xc,rotateZ:xc,scale:Ny,scaleX:Ny,scaleY:Ny,scaleZ:Ny,skew:xc,skewX:xc,skewY:xc,distance:hn,translateX:hn,translateY:hn,translateZ:hn,x:hn,y:hn,z:hn,perspective:hn,transformPerspective:hn,opacity:nv,originX:v7,originY:v7,originZ:hn},eM={borderWidth:hn,borderTopWidth:hn,borderRightWidth:hn,borderBottomWidth:hn,borderLeftWidth:hn,borderRadius:hn,radius:hn,borderTopLeftRadius:hn,borderTopRightRadius:hn,borderBottomRightRadius:hn,borderBottomLeftRadius:hn,width:hn,maxWidth:hn,height:hn,maxHeight:hn,top:hn,right:hn,bottom:hn,left:hn,padding:hn,paddingTop:hn,paddingRight:hn,paddingBottom:hn,paddingLeft:hn,margin:hn,marginTop:hn,marginRight:hn,marginBottom:hn,marginLeft:hn,backgroundPositionX:hn,backgroundPositionY:hn,...Wet,zIndex:_7,fillOpacity:nv,strokeOpacity:nv,numOctaves:_7},Uet={...eM,color:ao,backgroundColor:ao,outlineColor:ao,fill:ao,stroke:ao,borderColor:ao,borderTopColor:ao,borderRightColor:ao,borderBottomColor:ao,borderLeftColor:ao,filter:h_,WebkitFilter:h_},pre=e=>Uet[e];function gre(e,t){let n=pre(e);return n!==h_&&(n=ou),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const Ket=new Set(["auto","none","0"]);function qet(e,t,n){let r=0,o;for(;r<e.length&&!o;){const i=e[r];typeof i=="string"&&!Ket.has(i)&&rv(i).values.length&&(o=e[r]),r++}if(o&&n)for(const i of t)e[i]=gre(n,o)}class Get extends J3{constructor(t,n,r,o,i){super(t,n,r,o,i,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:r}=this;if(!n||!n.current)return;super.readKeyframes();for(let l=0;l<t.length;l++){let u=t[l];if(typeof u=="string"&&(u=u.trim(),W3(u))){const d=dre(u,n.current);d!==void 0&&(t[l]=d),l===t.length-1&&(this.finalKeyframe=u)}}if(this.resolveNoneKeyframes(),!fre.has(r)||t.length!==2)return;const[o,i]=t,a=I7(o),s=I7(i);if(a!==s)if(E7(a)&&E7(s))for(let l=0;l<t.length;l++){const u=t[l];typeof u=="string"&&(t[l]=parseFloat(u))}else sd[r]&&(this.needsMeasurement=!0)}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,r=[];for(let o=0;o<t.length;o++)(t[o]===null||Fet(t[o]))&&r.push(o);r.length&&qet(t,r,n)}measureInitialState(){const{element:t,unresolvedKeyframes:n,name:r}=this;if(!t||!t.current)return;r==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=sd[r](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;const o=n[n.length-1];o!==void 0&&t.getValue(r,o).jump(o,!1)}measureEndState(){var s;const{element:t,name:n,unresolvedKeyframes:r}=this;if(!t||!t.current)return;const o=t.getValue(n);o&&o.jump(this.measuredOrigin,!1);const i=r.length-1,a=r[i];r[i]=sd[n](t.measureViewportBox(),window.getComputedStyle(t.current)),a!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=a),(s=this.removedTransforms)!=null&&s.length&&this.removedTransforms.forEach(([l,u])=>{t.getValue(l).set(u)}),this.resolveNoneKeyframes()}}function Xet(e,t,n){if(e instanceof EventTarget)return[e];if(typeof e=="string"){let r=document;const o=(n==null?void 0:n[e])??r.querySelectorAll(e);return o?Array.from(o):[]}return Array.from(e)}const vre=(e,t)=>t&&typeof e=="number"?t.transform(e):e;function yre(e){return Tne(e)&&"offsetHeight"in e}const N7=30,Yet=e=>!isNaN(parseFloat(e));class Zet{constructor(t,n={}){this.canTrackVelocity=null,this.events={},this.updateAndNotify=r=>{var i;const o=Qi.now();if(this.updatedAt!==o&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&((i=this.events.change)==null||i.notify(this.current),this.dependents))for(const a of this.dependents)a.dirty()},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=Qi.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=Yet(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new B3);const r=this.events[t].add(n);return t==="change"?()=>{r(),$r.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t){this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t)}setWithVelocity(t,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}dirty(){var t;(t=this.events.change)==null||t.notify(this.current)}addDependent(t){this.dependents||(this.dependents=new Set),this.dependents.add(t)}removeDependent(t){this.dependents&&this.dependents.delete(t)}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const t=Qi.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>N7)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,N7);return kne(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){var t,n;(t=this.dependents)==null||t.clear(),(n=this.events.destroy)==null||n.notify(),this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Gm(e,t){return new Zet(e,t)}const{schedule:tM}=Kne(queueMicrotask,!1),ws={x:!1,y:!1};function bre(){return ws.x||ws.y}function Jet(e){return e==="x"||e==="y"?ws[e]?null:(ws[e]=!0,()=>{ws[e]=!1}):ws.x||ws.y?null:(ws.x=ws.y=!0,()=>{ws.x=ws.y=!1})}function xre(e,t){const n=Xet(e),r=new AbortController,o={passive:!0,...t,signal:r.signal};return[n,o,()=>r.abort()]}function R7(e){return!(e.pointerType==="touch"||bre())}function Qet(e,t,n={}){const[r,o,i]=xre(e,n),a=s=>{if(!R7(s))return;const{target:l}=s,u=t(l,s);if(typeof u!="function"||!l)return;const d=f=>{R7(f)&&(u(f),l.removeEventListener("pointerleave",d))};l.addEventListener("pointerleave",d,o)};return r.forEach(s=>{s.addEventListener("pointerenter",a,o)}),i}const wre=(e,t)=>t?e===t?!0:wre(e,t.parentElement):!1,nM=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,ett=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function ttt(e){return ett.has(e.tagName)||e.tabIndex!==-1}const xb=new WeakSet;function T7(e){return t=>{t.key==="Enter"&&e(t)}}function rE(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const ntt=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=T7(()=>{if(xb.has(n))return;rE(n,"down");const o=T7(()=>{rE(n,"up")}),i=()=>rE(n,"cancel");n.addEventListener("keyup",o,t),n.addEventListener("blur",i,t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)};function M7(e){return nM(e)&&!bre()}function rtt(e,t,n={}){const[r,o,i]=xre(e,n),a=s=>{const l=s.currentTarget;if(!M7(s))return;xb.add(l);const u=t(l,s),d=(h,p)=>{window.removeEventListener("pointerup",f),window.removeEventListener("pointercancel",m),xb.has(l)&&xb.delete(l),M7(h)&&typeof u=="function"&&u(h,{success:p})},f=h=>{d(h,l===window||l===document||n.useGlobalTarget||wre(l,h.target))},m=h=>{d(h,!1)};window.addEventListener("pointerup",f,o),window.addEventListener("pointercancel",m,o)};return r.forEach(s=>{(n.useGlobalTarget?window:s).addEventListener("pointerdown",a,o),yre(s)&&(s.addEventListener("focus",u=>ntt(u,o)),!ttt(s)&&!s.hasAttribute("tabindex")&&(s.tabIndex=0))}),i}function Sre(e){return Tne(e)&&"ownerSVGElement"in e}function ott(e){return Sre(e)&&e.tagName==="svg"}const bi=e=>!!(e&&e.getVelocity),itt=[...hre,ao,ou],att=e=>itt.find(mre(e)),rM=c.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});function k7(e,t){if(typeof e=="function")return e(t);e!=null&&(e.current=t)}function stt(...e){return t=>{let n=!1;const r=e.map(o=>{const i=k7(o,t);return!n&&typeof i=="function"&&(n=!0),i});if(n)return()=>{for(let o=0;o<r.length;o++){const i=r[o];typeof i=="function"?i():k7(e[o],null)}}}}function ltt(...e){return c.useCallback(stt(...e),e)}class ctt extends c.Component{getSnapshotBeforeUpdate(t){const n=this.props.childRef.current;if(n&&t.isPresent&&!this.props.isPresent){const r=n.offsetParent,o=yre(r)&&r.offsetWidth||0,i=this.props.sizeRef.current;i.height=n.offsetHeight||0,i.width=n.offsetWidth||0,i.top=n.offsetTop,i.left=n.offsetLeft,i.right=o-i.width-i.left}return null}componentDidUpdate(){}render(){return this.props.children}}function utt({children:e,isPresent:t,anchorX:n,root:r}){const o=c.useId(),i=c.useRef(null),a=c.useRef({width:0,height:0,top:0,left:0,right:0}),{nonce:s}=c.useContext(rM),l=ltt(i,e==null?void 0:e.ref);return c.useInsertionEffect(()=>{const{width:u,height:d,top:f,left:m,right:h}=a.current;if(t||!i.current||!u||!d)return;const p=n==="left"?`left: ${m}`:`right: ${h}`;i.current.dataset.motionPopId=o;const b=document.createElement("style");s&&(b.nonce=s);const v=r??document.head;return v.appendChild(b),b.sheet&&b.sheet.insertRule(`
          [data-motion-pop-id="${o}"] {
            position: absolute !important;
            width: ${u}px !important;
            height: ${d}px !important;
            ${p}px !important;
            top: ${f}px !important;
          }
        `),()=>{v.contains(b)&&v.removeChild(b)}},[t]),g.jsx(ctt,{isPresent:t,childRef:i,sizeRef:a,children:c.cloneElement(e,{ref:l})})}const dtt=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:o,presenceAffectsLayout:i,mode:a,anchorX:s,root:l})=>{const u=k3(ftt),d=c.useId();let f=!0,m=c.useMemo(()=>(f=!1,{id:d,initial:t,isPresent:n,custom:o,onExitComplete:h=>{u.set(h,!0);for(const p of u.values())if(!p)return;r&&r()},register:h=>(u.set(h,!1),()=>u.delete(h))}),[n,u,r]);return i&&f&&(m={...m}),c.useMemo(()=>{u.forEach((h,p)=>u.set(p,!1))},[n]),c.useEffect(()=>{!n&&!u.size&&r&&r()},[n]),a==="popLayout"&&(e=g.jsx(utt,{isPresent:n,anchorX:s,root:l,children:e})),g.jsx(gC.Provider,{value:m,children:e})};function ftt(){return new Map}function Cre(e=!0){const t=c.useContext(gC);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:o}=t,i=c.useId();c.useEffect(()=>{if(e)return o(i)},[e]);const a=c.useCallback(()=>e&&r&&r(i),[i,r,e]);return!n&&r?[!1,a]:[!0]}const Ry=e=>e.key||"";function A7(e){const t=[];return c.Children.forEach(e,n=>{c.isValidElement(n)&&t.push(n)}),t}const mtt=({children:e,custom:t,initial:n=!0,onExitComplete:r,presenceAffectsLayout:o=!0,mode:i="sync",propagate:a=!1,anchorX:s="left",root:l})=>{const[u,d]=Cre(a),f=c.useMemo(()=>A7(e),[e]),m=a&&!u?[]:f.map(Ry),h=c.useRef(!0),p=c.useRef(f),b=k3(()=>new Map),[v,y]=c.useState(f),[x,w]=c.useState(f);Nne(()=>{h.current=!1,p.current=f;for(let $=0;$<x.length;$++){const E=Ry(x[$]);m.includes(E)?b.delete(E):b.get(E)!==!0&&b.set(E,!1)}},[x,m.length,m.join("-")]);const C=[];if(f!==v){let $=[...f];for(let E=0;E<x.length;E++){const O=x[E],P=Ry(O);m.includes(P)||($.splice(E,0,O),C.push(O))}return i==="wait"&&C.length&&($=C),w(A7($)),y(f),null}const{forceRender:S}=c.useContext(M3);return g.jsx(g.Fragment,{children:x.map($=>{const E=Ry($),O=a&&!u?!1:f===x||m.includes(E),P=()=>{if(b.has(E))b.set(E,!0);else return;let j=!0;b.forEach(I=>{I||(j=!1)}),j&&(S==null||S(),w(p.current),a&&(d==null||d()),r&&r())};return g.jsx(dtt,{isPresent:O,initial:!h.current||n?void 0:!1,custom:t,presenceAffectsLayout:o,mode:i,root:l,onExitComplete:O?void 0:P,anchorX:s,children:$},E)})})},$re=c.createContext({strict:!1}),D7={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},Xm={};for(const e in D7)Xm[e]={isEnabled:t=>D7[e].some(n=>!!t[n])};function htt(e){for(const t in e)Xm[t]={...Xm[t],...e[t]}}const ptt=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function x1(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||ptt.has(e)}let Ere=e=>!x1(e);function gtt(e){typeof e=="function"&&(Ere=t=>t.startsWith("on")?!x1(t):e(t))}try{gtt(require("@emotion/is-prop-valid").default)}catch{}function vtt(e,t,n){const r={};for(const o in e)o==="values"&&typeof e.values=="object"||(Ere(o)||n===!0&&x1(o)||!t&&!x1(o)||e.draggable&&o.startsWith("onDrag"))&&(r[o]=e[o]);return r}const vC=c.createContext({});function yC(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}function ov(e){return typeof e=="string"||Array.isArray(e)}const oM=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],iM=["initial",...oM];function bC(e){return yC(e.animate)||iM.some(t=>ov(e[t]))}function Ore(e){return!!(bC(e)||e.variants)}function ytt(e,t){if(bC(e)){const{initial:n,animate:r}=e;return{initial:n===!1||ov(n)?n:void 0,animate:ov(r)?r:void 0}}return e.inherit!==!1?t:{}}function btt(e){const{initial:t,animate:n}=ytt(e,c.useContext(vC));return c.useMemo(()=>({initial:t,animate:n}),[L7(t),L7(n)])}function L7(e){return Array.isArray(e)?e.join(" "):e}function z7(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const hp={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(hn.test(e))e=parseFloat(e);else return e;const n=z7(e,t.target.x),r=z7(e,t.target.y);return`${n}% ${r}%`}},xtt={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,o=ou.parse(e);if(o.length>5)return r;const i=ou.createTransformer(e),a=typeof o[0]!="number"?1:0,s=n.x.scale*t.x,l=n.y.scale*t.y;o[0+a]/=s,o[1+a]/=l;const u=kr(s,l,.5);return typeof o[2+a]=="number"&&(o[2+a]/=u),typeof o[3+a]=="number"&&(o[3+a]/=u),i(o)}},p_={borderRadius:{...hp,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:hp,borderTopRightRadius:hp,borderBottomLeftRadius:hp,borderBottomRightRadius:hp,boxShadow:xtt};function Pre(e,{layout:t,layoutId:n}){return kh.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!p_[e]||e==="opacity")}const wtt={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Stt=Mh.length;function Ctt(e,t,n){let r="",o=!0;for(let i=0;i<Stt;i++){const a=Mh[i],s=e[a];if(s===void 0)continue;let l=!0;if(typeof s=="number"?l=s===(a.startsWith("scale")?1:0):l=parseFloat(s)===0,!l||n){const u=vre(s,eM[a]);if(!l){o=!1;const d=wtt[a]||a;r+=`${d}(${u}) `}n&&(t[a]=u)}}return r=r.trim(),n?r=n(t,o?"":r):o&&(r="none"),r}function aM(e,t,n){const{style:r,vars:o,transformOrigin:i}=e;let a=!1,s=!1;for(const l in t){const u=t[l];if(kh.has(l)){a=!0;continue}else if(Gne(l)){o[l]=u;continue}else{const d=vre(u,eM[l]);l.startsWith("origin")?(s=!0,i[l]=d):r[l]=d}}if(t.transform||(a||n?r.transform=Ctt(t,e.transform,n):r.transform&&(r.transform="none")),s){const{originX:l="50%",originY:u="50%",originZ:d=0}=i;r.transformOrigin=`${l} ${u} ${d}`}}const sM=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function jre(e,t,n){for(const r in t)!bi(t[r])&&!Pre(r,n)&&(e[r]=t[r])}function $tt({transformTemplate:e},t){return c.useMemo(()=>{const n=sM();return aM(n,t,e),Object.assign({},n.vars,n.style)},[t])}function Ett(e,t){const n=e.style||{},r={};return jre(r,n,e),Object.assign(r,$tt(e,t)),r}function Ott(e,t){const n={},r=Ett(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}const Ptt={offset:"stroke-dashoffset",array:"stroke-dasharray"},jtt={offset:"strokeDashoffset",array:"strokeDasharray"};function Itt(e,t,n=1,r=0,o=!0){e.pathLength=1;const i=o?Ptt:jtt;e[i.offset]=hn.transform(-r);const a=hn.transform(t),s=hn.transform(n);e[i.array]=`${a} ${s}`}function Ire(e,{attrX:t,attrY:n,attrScale:r,pathLength:o,pathSpacing:i=1,pathOffset:a=0,...s},l,u,d){if(aM(e,s,u),l){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:f,style:m}=e;f.transform&&(m.transform=f.transform,delete f.transform),(m.transform||f.transformOrigin)&&(m.transformOrigin=f.transformOrigin??"50% 50%",delete f.transformOrigin),m.transform&&(m.transformBox=(d==null?void 0:d.transformBox)??"fill-box",delete f.transformBox),t!==void 0&&(f.x=t),n!==void 0&&(f.y=n),r!==void 0&&(f.scale=r),o!==void 0&&Itt(f,o,i,a,!1)}const _re=()=>({...sM(),attrs:{}}),Nre=e=>typeof e=="string"&&e.toLowerCase()==="svg";function _tt(e,t,n,r){const o=c.useMemo(()=>{const i=_re();return Ire(i,t,Nre(r),e.transformTemplate,e.style),{...i.attrs,style:{...i.style}}},[t]);if(e.style){const i={};jre(i,e.style,e),o.style={...i,...o.style}}return o}const Ntt=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function lM(e){return typeof e!="string"||e.includes("-")?!1:!!(Ntt.indexOf(e)>-1||/[A-Z]/u.test(e))}function Rtt(e,t,n,{latestValues:r},o,i=!1){const s=(lM(e)?_tt:Ott)(t,r,o,e),l=vtt(t,typeof e=="string",i),u=e!==c.Fragment?{...l,...s,ref:n}:{},{children:d}=t,f=c.useMemo(()=>bi(d)?d.get():d,[d]);return c.createElement(e,{...u,children:f})}function F7(e){const t=[{},{}];return e==null||e.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function cM(e,t,n,r){if(typeof t=="function"){const[o,i]=F7(r);t=t(n!==void 0?n:e.custom,o,i)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[o,i]=F7(r);t=t(n!==void 0?n:e.custom,o,i)}return t}function wb(e){return bi(e)?e.get():e}function Ttt({scrapeMotionValuesFromProps:e,createRenderState:t},n,r,o){return{latestValues:Mtt(n,r,o,e),renderState:t()}}function Mtt(e,t,n,r){const o={},i=r(e,{});for(const m in i)o[m]=wb(i[m]);let{initial:a,animate:s}=e;const l=bC(e),u=Ore(e);t&&u&&!l&&e.inherit!==!1&&(a===void 0&&(a=t.initial),s===void 0&&(s=t.animate));let d=n?n.initial===!1:!1;d=d||a===!1;const f=d?s:a;if(f&&typeof f!="boolean"&&!yC(f)){const m=Array.isArray(f)?f:[f];for(let h=0;h<m.length;h++){const p=cM(e,m[h]);if(p){const{transitionEnd:b,transition:v,...y}=p;for(const x in y){let w=y[x];if(Array.isArray(w)){const C=d?w.length-1:0;w=w[C]}w!==null&&(o[x]=w)}for(const x in b)o[x]=b[x]}}}return o}const Rre=e=>(t,n)=>{const r=c.useContext(vC),o=c.useContext(gC),i=()=>Ttt(e,t,r,o);return n?i():k3(i)};function uM(e,t,n){var i;const{style:r}=e,o={};for(const a in r)(bi(r[a])||t.style&&bi(t.style[a])||Pre(a,e)||((i=n==null?void 0:n.getValue(a))==null?void 0:i.liveStyle)!==void 0)&&(o[a]=r[a]);return o}const ktt=Rre({scrapeMotionValuesFromProps:uM,createRenderState:sM});function Tre(e,t,n){const r=uM(e,t,n);for(const o in e)if(bi(e[o])||bi(t[o])){const i=Mh.indexOf(o)!==-1?"attr"+o.charAt(0).toUpperCase()+o.substring(1):o;r[i]=e[o]}return r}const Att=Rre({scrapeMotionValuesFromProps:Tre,createRenderState:_re}),Dtt=Symbol.for("motionComponentSymbol");function qf(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function Ltt(e,t,n){return c.useCallback(r=>{r&&e.onMount&&e.onMount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):qf(n)&&(n.current=r))},[t])}const dM=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),ztt="framerAppearId",Mre="data-"+dM(ztt),kre=c.createContext({});function Ftt(e,t,n,r,o){var b,v;const{visualElement:i}=c.useContext(vC),a=c.useContext($re),s=c.useContext(gC),l=c.useContext(rM).reducedMotion,u=c.useRef(null);r=r||a.renderer,!u.current&&r&&(u.current=r(e,{visualState:t,parent:i,props:n,presenceContext:s,blockInitialAnimation:s?s.initial===!1:!1,reducedMotionConfig:l}));const d=u.current,f=c.useContext(kre);d&&!d.projection&&o&&(d.type==="html"||d.type==="svg")&&Btt(u.current,n,o,f);const m=c.useRef(!1);c.useInsertionEffect(()=>{d&&m.current&&d.update(n,s)});const h=n[Mre],p=c.useRef(!!h&&!((b=window.MotionHandoffIsComplete)!=null&&b.call(window,h))&&((v=window.MotionHasOptimisedAnimation)==null?void 0:v.call(window,h)));return Nne(()=>{d&&(m.current=!0,window.MotionIsMounted=!0,d.updateFeatures(),d.scheduleRenderMicrotask(),p.current&&d.animationState&&d.animationState.animateChanges())}),c.useEffect(()=>{d&&(!p.current&&d.animationState&&d.animationState.animateChanges(),p.current&&(queueMicrotask(()=>{var y;(y=window.MotionHandoffMarkAsComplete)==null||y.call(window,h)}),p.current=!1),d.enteringChildren=void 0)}),d}function Btt(e,t,n,r){const{layoutId:o,layout:i,drag:a,dragConstraints:s,layoutScroll:l,layoutRoot:u,layoutCrossfade:d}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:Are(e.parent)),e.projection.setOptions({layoutId:o,layout:i,alwaysMeasureLayout:!!a||s&&qf(s),visualElement:e,animationType:typeof i=="string"?i:"both",initialPromotionConfig:r,crossfade:d,layoutScroll:l,layoutRoot:u})}function Are(e){if(e)return e.options.allowProjection!==!1?e.projection:Are(e.parent)}function oE(e,{forwardMotionProps:t=!1}={},n,r){n&&htt(n);const o=lM(e)?Att:ktt;function i(s,l){let u;const d={...c.useContext(rM),...s,layoutId:Htt(s)},{isStatic:f}=d,m=btt(s),h=o(s,f);if(!f&&A3){Vtt();const p=Wtt(d);u=p.MeasureLayout,m.visualElement=Ftt(e,h,d,r,p.ProjectionNode)}return g.jsxs(vC.Provider,{value:m,children:[u&&m.visualElement?g.jsx(u,{visualElement:m.visualElement,...d}):null,Rtt(e,s,Ltt(h,m.visualElement,l),h,f,t)]})}i.displayName=`motion.${typeof e=="string"?e:`create(${e.displayName??e.name??""})`}`;const a=c.forwardRef(i);return a[Dtt]=e,a}function Htt({layoutId:e}){const t=c.useContext(M3).id;return t&&e!==void 0?t+"-"+e:e}function Vtt(e,t){c.useContext($re).strict}function Wtt(e){const{drag:t,layout:n}=Xm;if(!t&&!n)return{};const r={...t,...n};return{MeasureLayout:t!=null&&t.isEnabled(e)||n!=null&&n.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}function Utt(e,t){if(typeof Proxy>"u")return oE;const n=new Map,r=(i,a)=>oE(i,a,e,t),o=(i,a)=>r(i,a);return new Proxy(o,{get:(i,a)=>a==="create"?r:(n.has(a)||n.set(a,oE(a,void 0,e,t)),n.get(a))})}function Dre({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function Ktt({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function qtt(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function iE(e){return e===void 0||e===1}function g_({scale:e,scaleX:t,scaleY:n}){return!iE(e)||!iE(t)||!iE(n)}function Tu(e){return g_(e)||Lre(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function Lre(e){return B7(e.x)||B7(e.y)}function B7(e){return e&&e!=="0%"}function w1(e,t,n){const r=e-n,o=t*r;return n+o}function H7(e,t,n,r,o){return o!==void 0&&(e=w1(e,o,r)),w1(e,n,r)+t}function v_(e,t=0,n=1,r,o){e.min=H7(e.min,t,n,r,o),e.max=H7(e.max,t,n,r,o)}function zre(e,{x:t,y:n}){v_(e.x,t.translate,t.scale,t.originPoint),v_(e.y,n.translate,n.scale,n.originPoint)}const V7=.999999999999,W7=1.0000000000001;function Gtt(e,t,n,r=!1){const o=n.length;if(!o)return;t.x=t.y=1;let i,a;for(let s=0;s<o;s++){i=n[s],a=i.projectionDelta;const{visualElement:l}=i.options;l&&l.props.style&&l.props.style.display==="contents"||(r&&i.options.layoutScroll&&i.scroll&&i!==i.root&&Xf(e,{x:-i.scroll.offset.x,y:-i.scroll.offset.y}),a&&(t.x*=a.x.scale,t.y*=a.y.scale,zre(e,a)),r&&Tu(i.latestValues)&&Xf(e,i.latestValues))}t.x<W7&&t.x>V7&&(t.x=1),t.y<W7&&t.y>V7&&(t.y=1)}function Gf(e,t){e.min=e.min+t,e.max=e.max+t}function U7(e,t,n,r,o=.5){const i=kr(e.min,e.max,o);v_(e,t,n,i,r)}function Xf(e,t){U7(e.x,t.x,t.scaleX,t.scale,t.originX),U7(e.y,t.y,t.scaleY,t.scale,t.originY)}function Fre(e,t){return Dre(qtt(e.getBoundingClientRect(),t))}function Xtt(e,t,n){const r=Fre(e,n),{scroll:o}=t;return o&&(Gf(r.x,o.offset.x),Gf(r.y,o.offset.y)),r}const K7=()=>({translate:0,scale:1,origin:0,originPoint:0}),Yf=()=>({x:K7(),y:K7()}),q7=()=>({min:0,max:0}),yo=()=>({x:q7(),y:q7()}),y_={current:null},Bre={current:!1};function Ytt(){if(Bre.current=!0,!!A3)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>y_.current=e.matches;e.addEventListener("change",t),t()}else y_.current=!1}const Ztt=new WeakMap;function Jtt(e,t,n){for(const r in t){const o=t[r],i=n[r];if(bi(o))e.addValue(r,o);else if(bi(i))e.addValue(r,Gm(o,{owner:e}));else if(i!==o)if(e.hasValue(r)){const a=e.getValue(r);a.liveStyle===!0?a.jump(o):a.hasAnimated||a.set(o)}else{const a=e.getStaticValue(r);e.addValue(r,Gm(a!==void 0?a:o,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const G7=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class Qtt{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:o,blockInitialAnimation:i,visualState:a},s={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=J3,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const m=Qi.now();this.renderScheduledAt<m&&(this.renderScheduledAt=m,$r.render(this.render,!1,!0))};const{latestValues:l,renderState:u}=a;this.latestValues=l,this.baseTarget={...l},this.initialValues=n.initial?{...l}:{},this.renderState=u,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=o,this.options=s,this.blockInitialAnimation=!!i,this.isControllingVariants=bC(n),this.isVariantNode=Ore(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:d,...f}=this.scrapeMotionValuesFromProps(n,{},this);for(const m in f){const h=f[m];l[m]!==void 0&&bi(h)&&h.set(l[m])}}mount(t){var n;this.current=t,Ztt.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((r,o)=>this.bindToMotionValue(o,r)),Bre.current||Ytt(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:y_.current,(n=this.parent)==null||n.addChild(this),this.update(this.props,this.presenceContext)}unmount(){var t;this.projection&&this.projection.unmount(),ru(this.notifyUpdate),ru(this.render),this.valueSubscriptions.forEach(n=>n()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),(t=this.parent)==null||t.removeChild(this);for(const n in this.events)this.events[n].clear();for(const n in this.features){const r=this.features[n];r&&(r.unmount(),r.isMounted=!1)}this.current=null}addChild(t){this.children.add(t),this.enteringChildren??(this.enteringChildren=new Set),this.enteringChildren.add(t)}removeChild(t){this.children.delete(t),this.enteringChildren&&this.enteringChildren.delete(t)}bindToMotionValue(t,n){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const r=kh.has(t);r&&this.onBindTransform&&this.onBindTransform();const o=n.on("change",a=>{this.latestValues[t]=a,this.props.onUpdate&&$r.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0),this.scheduleRender()});let i;window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{o(),i&&i(),n.owner&&n.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in Xm){const n=Xm[t];if(!n)continue;const{isEnabled:r,Feature:o}=n;if(!this.features[t]&&o&&r(this.props)&&(this.features[t]=new o(this)),this.features[t]){const i=this.features[t];i.isMounted?i.update():(i.mount(),i.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):yo()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;r<G7.length;r++){const o=G7[r];this.propEventSubscriptions[o]&&(this.propEventSubscriptions[o](),delete this.propEventSubscriptions[o]);const i="on"+o,a=t[i];a&&(this.propEventSubscriptions[o]=this.on(o,a))}this.prevMotionValues=Jtt(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue()}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(t),()=>n.variantChildren.delete(t)}addValue(t,n){const r=this.values.get(t);n!==r&&(r&&this.removeValue(t),this.bindToMotionValue(t,n),this.values.set(t,n),this.latestValues[t]=n.get())}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=Gm(n===null?void 0:n,{owner:this}),this.addValue(t,r)),r}readValue(t,n){let r=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:this.getBaseTargetFromProps(this.props,t)??this.readValueFromInstance(this.current,t,this.options);return r!=null&&(typeof r=="string"&&(Rne(r)||Mne(r))?r=parseFloat(r):!att(r)&&ou.test(n)&&(r=gre(t,n)),this.setBaseTarget(t,bi(r)?r.get():r)),bi(r)?r.get():r}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var i;const{initial:n}=this.props;let r;if(typeof n=="string"||typeof n=="object"){const a=cM(this.props,n,(i=this.presenceContext)==null?void 0:i.custom);a&&(r=a[t])}if(n&&r!==void 0)return r;const o=this.getBaseTargetFromProps(this.props,t);return o!==void 0&&!bi(o)?o:this.initialValues[t]!==void 0&&r===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new B3),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}scheduleRenderMicrotask(){tM.render(this.render)}}class Hre extends Qtt{constructor(){super(...arguments),this.KeyframeResolver=Get}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){return t.style?t.style[n]:void 0}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;bi(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function Vre(e,{style:t,vars:n},r,o){const i=e.style;let a;for(a in t)i[a]=t[a];o==null||o.applyProjectionStyles(i,r);for(a in n)i.setProperty(a,n[a])}function ent(e){return window.getComputedStyle(e)}class tnt extends Hre{constructor(){super(...arguments),this.type="html",this.renderInstance=Vre}readValueFromInstance(t,n){var r;if(kh.has(n))return(r=this.projection)!=null&&r.isProjecting?l_(n):fet(t,n);{const o=ent(t),i=(Gne(n)?o.getPropertyValue(n):o[n])||0;return typeof i=="string"?i.trim():i}}measureInstanceViewportBox(t,{transformPagePoint:n}){return Fre(t,n)}build(t,n,r){aM(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return uM(t,n,r)}}const Wre=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function nnt(e,t,n,r){Vre(e,t,void 0,r);for(const o in t.attrs)e.setAttribute(Wre.has(o)?o:dM(o),t.attrs[o])}class rnt extends Hre{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=yo}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(kh.has(n)){const r=pre(n);return r&&r.default||0}return n=Wre.has(n)?n:dM(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return Tre(t,n,r)}build(t,n,r){Ire(t,n,this.isSVGTag,r.transformTemplate,r.style)}renderInstance(t,n,r,o){nnt(t,n,r,o)}mount(t){this.isSVGTag=Nre(t.tagName),super.mount(t)}}const ont=(e,t)=>lM(e)?new rnt(t):new tnt(t,{allowProjection:e!==c.Fragment});function hm(e,t,n){const r=e.getProps();return cM(r,t,n!==void 0?n:r.custom,e)}const b_=e=>Array.isArray(e);function int(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Gm(n))}function ant(e){return b_(e)?e[e.length-1]||0:e}function snt(e,t){const n=hm(e,t);let{transitionEnd:r={},transition:o={},...i}=n||{};i={...i,...r};for(const a in i){const s=ant(i[a]);int(e,a,s)}}function lnt(e){return!!(bi(e)&&e.add)}function x_(e,t){const n=e.getValue("willChange");if(lnt(n))return n.add(t);if(!n&&ec.WillChange){const r=new ec.WillChange("auto");e.addValue("willChange",r),r.add(t)}}function Ure(e){return e.props[Mre]}const cnt=e=>e!==null;function unt(e,{repeat:t,repeatType:n="loop"},r){const o=e.filter(cnt),i=t&&n!=="loop"&&t%2===1?0:o.length-1;return o[i]}const dnt={type:"spring",stiffness:500,damping:25,restSpeed:10},fnt=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),mnt={type:"keyframes",duration:.8},hnt={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},pnt=(e,{keyframes:t})=>t.length>2?mnt:kh.has(e)?e.startsWith("scale")?fnt(t[1]):dnt:hnt;function gnt({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:o,repeat:i,repeatType:a,repeatDelay:s,from:l,elapsed:u,...d}){return!!Object.keys(d).length}const fM=(e,t,n,r={},o,i)=>a=>{const s=Q3(r,e)||{},l=s.delay||r.delay||0;let{elapsed:u=0}=r;u=u-sl(l);const d={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...s,delay:-u,onUpdate:m=>{t.set(m),s.onUpdate&&s.onUpdate(m)},onComplete:()=>{a(),s.onComplete&&s.onComplete()},name:e,motionValue:t,element:i?void 0:o};gnt(s)||Object.assign(d,pnt(e,d)),d.duration&&(d.duration=sl(d.duration)),d.repeatDelay&&(d.repeatDelay=sl(d.repeatDelay)),d.from!==void 0&&(d.keyframes[0]=d.from);let f=!1;if((d.type===!1||d.duration===0&&!d.repeatDelay)&&(m_(d),d.delay===0&&(f=!0)),(ec.instantAnimations||ec.skipAnimations)&&(f=!0,m_(d),d.delay=0),d.allowFlatten=!s.type&&!s.ease,f&&!i&&t.get()!==void 0){const m=unt(d.keyframes,s);if(m!==void 0){$r.update(()=>{d.onUpdate(m),d.onComplete()});return}}return s.isSync?new Z3(d):new Aet(d)};function vnt({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function Kre(e,t,{delay:n=0,transitionOverride:r,type:o}={}){let{transition:i=e.getDefaultTransition(),transitionEnd:a,...s}=t;r&&(i=r);const l=[],u=o&&e.animationState&&e.animationState.getState()[o];for(const d in s){const f=e.getValue(d,e.latestValues[d]??null),m=s[d];if(m===void 0||u&&vnt(u,d))continue;const h={delay:n,...Q3(i||{},d)},p=f.get();if(p!==void 0&&!f.isAnimating&&!Array.isArray(m)&&m===p&&!h.velocity)continue;let b=!1;if(window.MotionHandoffAnimation){const y=Ure(e);if(y){const x=window.MotionHandoffAnimation(y,d,$r);x!==null&&(h.startTime=x,b=!0)}}x_(e,d),f.start(fM(d,f,m,e.shouldReduceMotion&&fre.has(d)?{type:!1}:h,e,b));const v=f.animation;v&&l.push(v)}return a&&Promise.all(l).then(()=>{$r.update(()=>{a&&snt(e,a)})}),l}function qre(e,t,n,r=0,o=1){const i=Array.from(e).sort((u,d)=>u.sortNodePosition(d)).indexOf(t),a=e.size,s=(a-1)*r;return typeof n=="function"?n(i,a):o===1?i*r:s-i*r}function w_(e,t,n={}){var l;const r=hm(e,t,n.type==="exit"?(l=e.presenceContext)==null?void 0:l.custom:void 0);let{transition:o=e.getDefaultTransition()||{}}=r||{};n.transitionOverride&&(o=n.transitionOverride);const i=r?()=>Promise.all(Kre(e,r,n)):()=>Promise.resolve(),a=e.variantChildren&&e.variantChildren.size?(u=0)=>{const{delayChildren:d=0,staggerChildren:f,staggerDirection:m}=o;return ynt(e,t,u,d,f,m,n)}:()=>Promise.resolve(),{when:s}=o;if(s){const[u,d]=s==="beforeChildren"?[i,a]:[a,i];return u().then(()=>d())}else return Promise.all([i(),a(n.delay)])}function ynt(e,t,n=0,r=0,o=0,i=1,a){const s=[];for(const l of e.variantChildren)l.notify("AnimationStart",t),s.push(w_(l,t,{...a,delay:n+(typeof r=="function"?0:r)+qre(e.variantChildren,l,r,o,i)}).then(()=>l.notify("AnimationComplete",t)));return Promise.all(s)}function bnt(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const o=t.map(i=>w_(e,i,n));r=Promise.all(o)}else if(typeof t=="string")r=w_(e,t,n);else{const o=typeof t=="function"?hm(e,t,n.custom):t;r=Promise.all(Kre(e,o,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}function Gre(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}const xnt=iM.length;function Xre(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?Xre(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<xnt;n++){const r=iM[n],o=e.props[r];(ov(o)||o===!1)&&(t[r]=o)}return t}const wnt=[...oM].reverse(),Snt=oM.length;function Cnt(e){return t=>Promise.all(t.map(({animation:n,options:r})=>bnt(e,n,r)))}function $nt(e){let t=Cnt(e),n=X7(),r=!0;const o=l=>(u,d)=>{var m;const f=hm(e,d,l==="exit"?(m=e.presenceContext)==null?void 0:m.custom:void 0);if(f){const{transition:h,transitionEnd:p,...b}=f;u={...u,...b,...p}}return u};function i(l){t=l(e)}function a(l){const{props:u}=e,d=Xre(e.parent)||{},f=[],m=new Set;let h={},p=1/0;for(let v=0;v<Snt;v++){const y=wnt[v],x=n[y],w=u[y]!==void 0?u[y]:d[y],C=ov(w),S=y===l?x.isActive:null;S===!1&&(p=v);let $=w===d[y]&&w!==u[y]&&C;if($&&r&&e.manuallyAnimateOnMount&&($=!1),x.protectedKeys={...h},!x.isActive&&S===null||!w&&!x.prevProp||yC(w)||typeof w=="boolean")continue;const E=Ent(x.prevProp,w);let O=E||y===l&&x.isActive&&!$&&C||v>p&&C,P=!1;const j=Array.isArray(w)?w:[w];let I=j.reduce(o(y),{});S===!1&&(I={});const{prevResolvedValues:_={}}=x,R={..._,...I},N=T=>{O=!0,m.has(T)&&(P=!0,m.delete(T)),x.needsAnimating[T]=!0;const k=e.getValue(T);k&&(k.liveStyle=!1)};for(const T in R){const k=I[T],D=_[T];if(h.hasOwnProperty(T))continue;let L=!1;b_(k)&&b_(D)?L=!Gre(k,D):L=k!==D,L?k!=null?N(T):m.add(T):k!==void 0&&m.has(T)?N(T):x.protectedKeys[T]=!0}x.prevProp=w,x.prevResolvedValues=I,x.isActive&&(h={...h,...I}),r&&e.blockInitialAnimation&&(O=!1);const A=$&&E;O&&(!A||P)&&f.push(...j.map(T=>{const k={type:y};if(typeof T=="string"&&r&&!A&&e.manuallyAnimateOnMount&&e.parent){const{parent:D}=e,L=hm(D,T);if(D.enteringChildren&&L){const{delayChildren:B}=L.transition||{};k.delay=qre(D.enteringChildren,e,B)}}return{animation:T,options:k}}))}if(m.size){const v={};if(typeof u.initial!="boolean"){const y=hm(e,Array.isArray(u.initial)?u.initial[0]:u.initial);y&&y.transition&&(v.transition=y.transition)}m.forEach(y=>{const x=e.getBaseTarget(y),w=e.getValue(y);w&&(w.liveStyle=!0),v[y]=x??null}),f.push({animation:v})}let b=!!f.length;return r&&(u.initial===!1||u.initial===u.animate)&&!e.manuallyAnimateOnMount&&(b=!1),r=!1,b?t(f):Promise.resolve()}function s(l,u){var f;if(n[l].isActive===u)return Promise.resolve();(f=e.variantChildren)==null||f.forEach(m=>{var h;return(h=m.animationState)==null?void 0:h.setActive(l,u)}),n[l].isActive=u;const d=a(l);for(const m in n)n[m].protectedKeys={};return d}return{animateChanges:a,setActive:s,setAnimateFunction:i,getState:()=>n,reset:()=>{n=X7()}}}function Ent(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!Gre(t,e):!1}function Pu(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function X7(){return{animate:Pu(!0),whileInView:Pu(),whileHover:Pu(),whileTap:Pu(),whileDrag:Pu(),whileFocus:Pu(),exit:Pu()}}class wu{constructor(t){this.isMounted=!1,this.node=t}update(){}}class Ont extends wu{constructor(t){super(t),t.animationState||(t.animationState=$nt(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();yC(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),(t=this.unmountControls)==null||t.call(this)}}let Pnt=0;class jnt extends wu{constructor(){super(...arguments),this.id=Pnt++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===r)return;const o=this.node.animationState.setActive("exit",!t);n&&!t&&o.then(()=>{n(this.id)})}mount(){const{register:t,onExitComplete:n}=this.node.presenceContext||{};n&&n(this.id),t&&(this.unmount=t(this.id))}unmount(){}}const Int={animation:{Feature:Ont},exit:{Feature:jnt}};function iv(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function p0(e){return{point:{x:e.pageX,y:e.pageY}}}const _nt=e=>t=>nM(t)&&e(t,p0(t));function Zp(e,t,n,r){return iv(e,t,_nt(n),r)}const Yre=1e-4,Nnt=1-Yre,Rnt=1+Yre,Zre=.01,Tnt=0-Zre,Mnt=0+Zre;function Li(e){return e.max-e.min}function knt(e,t,n){return Math.abs(e-t)<=n}function Y7(e,t,n,r=.5){e.origin=r,e.originPoint=kr(t.min,t.max,e.origin),e.scale=Li(n)/Li(t),e.translate=kr(n.min,n.max,e.origin)-e.originPoint,(e.scale>=Nnt&&e.scale<=Rnt||isNaN(e.scale))&&(e.scale=1),(e.translate>=Tnt&&e.translate<=Mnt||isNaN(e.translate))&&(e.translate=0)}function Jp(e,t,n,r){Y7(e.x,t.x,n.x,r?r.originX:void 0),Y7(e.y,t.y,n.y,r?r.originY:void 0)}function Z7(e,t,n){e.min=n.min+t.min,e.max=e.min+Li(t)}function Ant(e,t,n){Z7(e.x,t.x,n.x),Z7(e.y,t.y,n.y)}function J7(e,t,n){e.min=t.min-n.min,e.max=e.min+Li(t)}function S1(e,t,n){J7(e.x,t.x,n.x),J7(e.y,t.y,n.y)}function Wa(e){return[e("x"),e("y")]}const Jre=({current:e})=>e?e.ownerDocument.defaultView:null,Q7=(e,t)=>Math.abs(e-t);function Dnt(e,t){const n=Q7(e.x,t.x),r=Q7(e.y,t.y);return Math.sqrt(n**2+r**2)}class Qre{constructor(t,n,{transformPagePoint:r,contextWindow:o=window,dragSnapToOrigin:i=!1,distanceThreshold:a=3}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const m=sE(this.lastMoveEventInfo,this.history),h=this.startEvent!==null,p=Dnt(m.offset,{x:0,y:0})>=this.distanceThreshold;if(!h&&!p)return;const{point:b}=m,{timestamp:v}=Qo;this.history.push({...b,timestamp:v});const{onStart:y,onMove:x}=this.handlers;h||(y&&y(this.lastMoveEvent,m),this.startEvent=this.lastMoveEvent),x&&x(this.lastMoveEvent,m)},this.handlePointerMove=(m,h)=>{this.lastMoveEvent=m,this.lastMoveEventInfo=aE(h,this.transformPagePoint),$r.update(this.updatePoint,!0)},this.handlePointerUp=(m,h)=>{this.end();const{onEnd:p,onSessionEnd:b,resumeAnimation:v}=this.handlers;if(this.dragSnapToOrigin&&v&&v(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const y=sE(m.type==="pointercancel"?this.lastMoveEventInfo:aE(h,this.transformPagePoint),this.history);this.startEvent&&p&&p(m,y),b&&b(m,y)},!nM(t))return;this.dragSnapToOrigin=i,this.handlers=n,this.transformPagePoint=r,this.distanceThreshold=a,this.contextWindow=o||window;const s=p0(t),l=aE(s,this.transformPagePoint),{point:u}=l,{timestamp:d}=Qo;this.history=[{...u,timestamp:d}];const{onSessionStart:f}=n;f&&f(t,sE(l,this.history)),this.removeListeners=f0(Zp(this.contextWindow,"pointermove",this.handlePointerMove),Zp(this.contextWindow,"pointerup",this.handlePointerUp),Zp(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),ru(this.updatePoint)}}function aE(e,t){return t?{point:t(e.point)}:e}function eB(e,t){return{x:e.x-t.x,y:e.y-t.y}}function sE({point:e},t){return{point:e,delta:eB(e,eoe(t)),offset:eB(e,Lnt(t)),velocity:znt(t,.1)}}function Lnt(e){return e[0]}function eoe(e){return e[e.length-1]}function znt(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const o=eoe(e);for(;n>=0&&(r=e[n],!(o.timestamp-r.timestamp>sl(t)));)n--;if(!r)return{x:0,y:0};const i=Qa(o.timestamp-r.timestamp);if(i===0)return{x:0,y:0};const a={x:(o.x-r.x)/i,y:(o.y-r.y)/i};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}function Fnt(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?kr(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?kr(n,e,r.max):Math.min(e,n)),e}function tB(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function Bnt(e,{top:t,left:n,bottom:r,right:o}){return{x:tB(e.x,n,o),y:tB(e.y,t,r)}}function nB(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function Hnt(e,t){return{x:nB(e.x,t.x),y:nB(e.y,t.y)}}function Vnt(e,t){let n=.5;const r=Li(e),o=Li(t);return o>r?n=tv(t.min,t.max-r,e.min):r>o&&(n=tv(e.min,e.max-o,t.min)),Ql(0,1,n)}function Wnt(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const S_=.35;function Unt(e=S_){return e===!1?e=0:e===!0&&(e=S_),{x:rB(e,"left","right"),y:rB(e,"top","bottom")}}function rB(e,t,n){return{min:oB(e,t),max:oB(e,n)}}function oB(e,t){return typeof e=="number"?e:e[t]||0}const Knt=new WeakMap;class qnt{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=yo(),this.latestPointerEvent=null,this.latestPanInfo=null,this.visualElement=t}start(t,{snapToCursor:n=!1,distanceThreshold:r}={}){const{presenceContext:o}=this.visualElement;if(o&&o.isPresent===!1)return;const i=f=>{const{dragSnapToOrigin:m}=this.getProps();m?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(p0(f).point)},a=(f,m)=>{const{drag:h,dragPropagation:p,onDragStart:b}=this.getProps();if(h&&!p&&(this.openDragLock&&this.openDragLock(),this.openDragLock=Jet(h),!this.openDragLock))return;this.latestPointerEvent=f,this.latestPanInfo=m,this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Wa(y=>{let x=this.getAxisMotionValue(y).get()||0;if(ll.test(x)){const{projection:w}=this.visualElement;if(w&&w.layout){const C=w.layout.layoutBox[y];C&&(x=Li(C)*(parseFloat(x)/100))}}this.originPoint[y]=x}),b&&$r.postRender(()=>b(f,m)),x_(this.visualElement,"transform");const{animationState:v}=this.visualElement;v&&v.setActive("whileDrag",!0)},s=(f,m)=>{this.latestPointerEvent=f,this.latestPanInfo=m;const{dragPropagation:h,dragDirectionLock:p,onDirectionLock:b,onDrag:v}=this.getProps();if(!h&&!this.openDragLock)return;const{offset:y}=m;if(p&&this.currentDirection===null){this.currentDirection=Gnt(y),this.currentDirection!==null&&b&&b(this.currentDirection);return}this.updateAxis("x",m.point,y),this.updateAxis("y",m.point,y),this.visualElement.render(),v&&v(f,m)},l=(f,m)=>{this.latestPointerEvent=f,this.latestPanInfo=m,this.stop(f,m),this.latestPointerEvent=null,this.latestPanInfo=null},u=()=>Wa(f=>{var m;return this.getAnimationState(f)==="paused"&&((m=this.getAxisMotionValue(f).animation)==null?void 0:m.play())}),{dragSnapToOrigin:d}=this.getProps();this.panSession=new Qre(t,{onSessionStart:i,onStart:a,onMove:s,onSessionEnd:l,resumeAnimation:u},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:d,distanceThreshold:r,contextWindow:Jre(this.visualElement)})}stop(t,n){const r=t||this.latestPointerEvent,o=n||this.latestPanInfo,i=this.isDragging;if(this.cancel(),!i||!o||!r)return;const{velocity:a}=o;this.startAnimation(a);const{onDragEnd:s}=this.getProps();s&&$r.postRender(()=>s(r,o))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,r){const{drag:o}=this.getProps();if(!r||!Ty(t,o,this.currentDirection))return;const i=this.getAxisMotionValue(t);let a=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(a=Fnt(a,this.constraints[t],this.elastic[t])),i.set(a)}resolveConstraints(){var i;const{dragConstraints:t,dragElastic:n}=this.getProps(),r=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(i=this.visualElement.projection)==null?void 0:i.layout,o=this.constraints;t&&qf(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):t&&r?this.constraints=Bnt(r.layoutBox,t):this.constraints=!1,this.elastic=Unt(n),o!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&Wa(a=>{this.constraints!==!1&&this.getAxisMotionValue(a)&&(this.constraints[a]=Wnt(r.layoutBox[a],this.constraints[a]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!qf(t))return!1;const r=t.current,{projection:o}=this.visualElement;if(!o||!o.layout)return!1;const i=Xtt(r,o.root,this.visualElement.getTransformPagePoint());let a=Hnt(o.layout.layoutBox,i);if(n){const s=n(Ktt(a));this.hasMutatedConstraints=!!s,s&&(a=Dre(s))}return a}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:o,dragTransition:i,dragSnapToOrigin:a,onDragTransitionEnd:s}=this.getProps(),l=this.constraints||{},u=Wa(d=>{if(!Ty(d,n,this.currentDirection))return;let f=l&&l[d]||{};a&&(f={min:0,max:0});const m=o?200:1e6,h=o?40:1e7,p={type:"inertia",velocity:r?t[d]:0,bounceStiffness:m,bounceDamping:h,timeConstant:750,restDelta:1,restSpeed:10,...i,...f};return this.startAxisValueAnimation(d,p)});return Promise.all(u).then(s)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return x_(this.visualElement,t),r.start(fM(t,r,0,n,this.visualElement,!1))}stopAnimation(){Wa(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){Wa(t=>{var n;return(n=this.getAxisMotionValue(t).animation)==null?void 0:n.pause()})}getAnimationState(t){var n;return(n=this.getAxisMotionValue(t).animation)==null?void 0:n.state}getAxisMotionValue(t){const n=`_drag${t.toUpperCase()}`,r=this.visualElement.getProps(),o=r[n];return o||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){Wa(n=>{const{drag:r}=this.getProps();if(!Ty(n,r,this.currentDirection))return;const{projection:o}=this.visualElement,i=this.getAxisMotionValue(n);if(o&&o.layout){const{min:a,max:s}=o.layout.layoutBox[n];i.set(t[n]-kr(a,s,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!qf(n)||!r||!this.constraints)return;this.stopAnimation();const o={x:0,y:0};Wa(a=>{const s=this.getAxisMotionValue(a);if(s&&this.constraints!==!1){const l=s.get();o[a]=Vnt({min:l,max:l},this.constraints[a])}});const{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),Wa(a=>{if(!Ty(a,t,null))return;const s=this.getAxisMotionValue(a),{min:l,max:u}=this.constraints[a];s.set(kr(l,u,o[a]))})}addListeners(){if(!this.visualElement.current)return;Knt.set(this.visualElement,this);const t=this.visualElement.current,n=Zp(t,"pointerdown",l=>{const{drag:u,dragListener:d=!0}=this.getProps();u&&d&&this.start(l)}),r=()=>{const{dragConstraints:l}=this.getProps();qf(l)&&l.current&&(this.constraints=this.resolveRefConstraints())},{projection:o}=this.visualElement,i=o.addEventListener("measure",r);o&&!o.layout&&(o.root&&o.root.updateScroll(),o.updateLayout()),$r.read(r);const a=iv(window,"resize",()=>this.scalePositionWithinConstraints()),s=o.addEventListener("didUpdate",({delta:l,hasLayoutChanged:u})=>{this.isDragging&&u&&(Wa(d=>{const f=this.getAxisMotionValue(d);f&&(this.originPoint[d]+=l[d].translate,f.set(f.get()+l[d].translate))}),this.visualElement.render())});return()=>{a(),n(),i(),s&&s()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:o=!1,dragConstraints:i=!1,dragElastic:a=S_,dragMomentum:s=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:o,dragConstraints:i,dragElastic:a,dragMomentum:s}}}function Ty(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function Gnt(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class Xnt extends wu{constructor(t){super(t),this.removeGroupControls=ns,this.removeListeners=ns,this.controls=new qnt(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||ns}unmount(){this.removeGroupControls(),this.removeListeners()}}const iB=e=>(t,n)=>{e&&$r.postRender(()=>e(t,n))};class Ynt extends wu{constructor(){super(...arguments),this.removePointerDownListener=ns}onPointerDown(t){this.session=new Qre(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Jre(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:o}=this.node.getProps();return{onSessionStart:iB(t),onStart:iB(n),onMove:r,onEnd:(i,a)=>{delete this.session,o&&$r.postRender(()=>o(i,a))}}}mount(){this.removePointerDownListener=Zp(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const Sb={hasAnimatedSinceResize:!0,hasEverUpdated:!1};let lE=!1;class Znt extends c.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:o}=this.props,{projection:i}=t;i&&(n.group&&n.group.add(i),r&&r.register&&o&&r.register(i),lE&&i.root.didUpdate(),i.addEventListener("animationComplete",()=>{this.safeToRemove()}),i.setOptions({...i.options,onExitComplete:()=>this.safeToRemove()})),Sb.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:o,isPresent:i}=this.props,{projection:a}=r;return a&&(a.isPresent=i,lE=!0,o||t.layoutDependency!==n||n===void 0||t.isPresent!==i?a.willUpdate():this.safeToRemove(),t.isPresent!==i&&(i?a.promote():a.relegate()||$r.postRender(()=>{const s=a.getStack();(!s||!s.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),tM.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:o}=t;lE=!0,o&&(o.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(o),r&&r.deregister&&r.deregister(o))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function toe(e){const[t,n]=Cre(),r=c.useContext(M3);return g.jsx(Znt,{...e,layoutGroup:r,switchLayoutGroup:c.useContext(kre),isPresent:t,safeToRemove:n})}function Jnt(e,t,n){const r=bi(e)?e:Gm(e);return r.start(fM("",r,t,n)),r.animation}const Qnt=(e,t)=>e.depth-t.depth;class ert{constructor(){this.children=[],this.isDirty=!1}add(t){D3(this.children,t),this.isDirty=!0}remove(t){L3(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(Qnt),this.isDirty=!1,this.children.forEach(t)}}function trt(e,t){const n=Qi.now(),r=({timestamp:o})=>{const i=o-n;i>=t&&(ru(r),e(i-t))};return $r.setup(r,!0),()=>ru(r)}const noe=["TopLeft","TopRight","BottomLeft","BottomRight"],nrt=noe.length,aB=e=>typeof e=="string"?parseFloat(e):e,sB=e=>typeof e=="number"||hn.test(e);function rrt(e,t,n,r,o,i){o?(e.opacity=kr(0,n.opacity??1,ort(r)),e.opacityExit=kr(t.opacity??1,0,irt(r))):i&&(e.opacity=kr(t.opacity??1,n.opacity??1,r));for(let a=0;a<nrt;a++){const s=`border${noe[a]}Radius`;let l=lB(t,s),u=lB(n,s);if(l===void 0&&u===void 0)continue;l||(l=0),u||(u=0),l===0||u===0||sB(l)===sB(u)?(e[s]=Math.max(kr(aB(l),aB(u),r),0),(ll.test(u)||ll.test(l))&&(e[s]+="%")):e[s]=u}(t.rotate||n.rotate)&&(e.rotate=kr(t.rotate||0,n.rotate||0,r))}function lB(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const ort=roe(0,.5,Hne),irt=roe(.5,.95,ns);function roe(e,t,n){return r=>r<e?0:r>t?1:n(tv(e,t,r))}function cB(e,t){e.min=t.min,e.max=t.max}function bs(e,t){cB(e.x,t.x),cB(e.y,t.y)}function uB(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function dB(e,t,n,r,o){return e-=t,e=w1(e,1/n,r),o!==void 0&&(e=w1(e,1/o,r)),e}function art(e,t=0,n=1,r=.5,o,i=e,a=e){if(ll.test(t)&&(t=parseFloat(t),t=kr(a.min,a.max,t/100)-a.min),typeof t!="number")return;let s=kr(i.min,i.max,r);e===i&&(s-=t),e.min=dB(e.min,t,n,s,o),e.max=dB(e.max,t,n,s,o)}function fB(e,t,[n,r,o],i,a){art(e,t[n],t[r],t[o],t.scale,i,a)}const srt=["x","scaleX","originX"],lrt=["y","scaleY","originY"];function mB(e,t,n,r){fB(e.x,t,srt,n?n.x:void 0,r?r.x:void 0),fB(e.y,t,lrt,n?n.y:void 0,r?r.y:void 0)}function hB(e){return e.translate===0&&e.scale===1}function ooe(e){return hB(e.x)&&hB(e.y)}function pB(e,t){return e.min===t.min&&e.max===t.max}function crt(e,t){return pB(e.x,t.x)&&pB(e.y,t.y)}function gB(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function ioe(e,t){return gB(e.x,t.x)&&gB(e.y,t.y)}function vB(e){return Li(e.x)/Li(e.y)}function yB(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class urt{constructor(){this.members=[]}add(t){D3(this.members,t),t.scheduleRender()}remove(t){if(L3(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){const n=this.members.findIndex(o=>t===o);if(n===0)return!1;let r;for(let o=n;o>=0;o--){const i=this.members[o];if(i.isPresent!==!1){r=i;break}}return r?(this.promote(r),!0):!1}promote(t,n){const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.instance&&r.scheduleRender(),t.scheduleRender(),t.resumeFrom=r,n&&(t.resumeFrom.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:o}=t.options;o===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:r}=t;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function drt(e,t,n){let r="";const o=e.x.translate/t.x,i=e.y.translate/t.y,a=(n==null?void 0:n.z)||0;if((o||i||a)&&(r=`translate3d(${o}px, ${i}px, ${a}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:u,rotate:d,rotateX:f,rotateY:m,skewX:h,skewY:p}=n;u&&(r=`perspective(${u}px) ${r}`),d&&(r+=`rotate(${d}deg) `),f&&(r+=`rotateX(${f}deg) `),m&&(r+=`rotateY(${m}deg) `),h&&(r+=`skewX(${h}deg) `),p&&(r+=`skewY(${p}deg) `)}const s=e.x.scale*t.x,l=e.y.scale*t.y;return(s!==1||l!==1)&&(r+=`scale(${s}, ${l})`),r||"none"}const cE=["","X","Y","Z"],frt=1e3;let mrt=0;function uE(e,t,n,r){const{latestValues:o}=t;o[e]&&(n[e]=o[e],t.setStaticValue(e,0),r&&(r[e]=0))}function aoe(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=Ure(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:o,layoutId:i}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",$r,!(o||i))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&aoe(r)}function soe({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:o}){return class{constructor(a={},s=t==null?void 0:t()){this.id=mrt++,this.animationId=0,this.animationCommitId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.layoutVersion=0,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,this.nodes.forEach(grt),this.nodes.forEach(xrt),this.nodes.forEach(wrt),this.nodes.forEach(vrt)},this.resolvedRelativeTargetAt=0,this.linkedParentVersion=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=a,this.root=s?s.root||s:this,this.path=s?[...s.path,s]:[],this.parent=s,this.depth=s?s.depth+1:0;for(let l=0;l<this.path.length;l++)this.path[l].shouldResetTransform=!0;this.root===this&&(this.nodes=new ert)}addEventListener(a,s){return this.eventHandlers.has(a)||this.eventHandlers.set(a,new B3),this.eventHandlers.get(a).add(s)}notifyListeners(a,...s){const l=this.eventHandlers.get(a);l&&l.notify(...s)}hasListeners(a){return this.eventHandlers.has(a)}mount(a){if(this.instance)return;this.isSVG=Sre(a)&&!ott(a),this.instance=a;const{layoutId:s,layout:l,visualElement:u}=this.options;if(u&&!u.current&&u.mount(a),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),this.root.hasTreeAnimated&&(l||s)&&(this.isLayoutDirty=!0),e){let d,f=0;const m=()=>this.root.updateBlockedByResize=!1;$r.read(()=>{f=window.innerWidth}),e(a,()=>{const h=window.innerWidth;h!==f&&(f=h,this.root.updateBlockedByResize=!0,d&&d(),d=trt(m,250),Sb.hasAnimatedSinceResize&&(Sb.hasAnimatedSinceResize=!1,this.nodes.forEach(wB)))})}s&&this.root.registerSharedNode(s,this),this.options.animate!==!1&&u&&(s||l)&&this.addEventListener("didUpdate",({delta:d,hasLayoutChanged:f,hasRelativeLayoutChanged:m,layout:h})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const p=this.options.transition||u.getDefaultTransition()||Ort,{onLayoutAnimationStart:b,onLayoutAnimationComplete:v}=u.getProps(),y=!this.targetLayout||!ioe(this.targetLayout,h),x=!f&&m;if(this.options.layoutRoot||this.resumeFrom||x||f&&(y||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0);const w={...Q3(p,"layout"),onPlay:b,onComplete:v};(u.shouldReduceMotion||this.options.layoutRoot)&&(w.delay=0,w.type=!1),this.startAnimation(w),this.setAnimationOrigin(d,x)}else f||wB(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=h})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const a=this.getStack();a&&a.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,this.eventHandlers.clear(),ru(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(Srt),this.animationId++)}getTransformTemplate(){const{visualElement:a}=this.options;return a&&a.getProps().transformTemplate}willUpdate(a=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&aoe(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let d=0;d<this.path.length;d++){const f=this.path[d];f.shouldResetTransform=!0,f.updateScroll("snapshot"),f.options.layoutRoot&&f.willUpdate(!1)}const{layoutId:s,layout:l}=this.options;if(s===void 0&&!l)return;const u=this.getTransformTemplate();this.prevTransformTemplateValue=u?u(this.latestValues,""):void 0,this.updateSnapshot(),a&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(bB);return}if(this.animationId<=this.animationCommitId){this.nodes.forEach(xB);return}this.animationCommitId=this.animationId,this.isUpdating?(this.isUpdating=!1,this.nodes.forEach(brt),this.nodes.forEach(hrt),this.nodes.forEach(prt)):this.nodes.forEach(xB),this.clearAllSnapshots();const s=Qi.now();Qo.delta=Ql(0,1e3/60,s-Qo.timestamp),Qo.timestamp=s,Qo.isProcessing=!0,J2.update.process(Qo),J2.preRender.process(Qo),J2.render.process(Qo),Qo.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,tM.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(yrt),this.sharedNodes.forEach(Crt)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,$r.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){$r.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure(),this.snapshot&&!Li(this.snapshot.measuredBox.x)&&!Li(this.snapshot.measuredBox.y)&&(this.snapshot=void 0))}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let l=0;l<this.path.length;l++)this.path[l].updateScroll();const a=this.layout;this.layout=this.measure(!1),this.layoutVersion++,this.layoutCorrected=yo(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:s}=this.options;s&&s.notify("LayoutMeasure",this.layout.layoutBox,a?a.layoutBox:void 0)}updateScroll(a="measure"){let s=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===a&&(s=!1),s&&this.instance){const l=r(this.instance);this.scroll={animationId:this.root.animationId,phase:a,isRoot:l,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:l}}}resetTransform(){if(!o)return;const a=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,s=this.projectionDelta&&!ooe(this.projectionDelta),l=this.getTransformTemplate(),u=l?l(this.latestValues,""):void 0,d=u!==this.prevTransformTemplateValue;a&&this.instance&&(s||Tu(this.latestValues)||d)&&(o(this.instance,u),this.shouldResetTransform=!1,this.scheduleRender())}measure(a=!0){const s=this.measurePageBox();let l=this.removeElementScroll(s);return a&&(l=this.removeTransform(l)),Prt(l),{animationId:this.root.animationId,measuredBox:s,layoutBox:l,latestValues:{},source:this.id}}measurePageBox(){var u;const{visualElement:a}=this.options;if(!a)return yo();const s=a.measureViewportBox();if(!(((u=this.scroll)==null?void 0:u.wasRoot)||this.path.some(jrt))){const{scroll:d}=this.root;d&&(Gf(s.x,d.offset.x),Gf(s.y,d.offset.y))}return s}removeElementScroll(a){var l;const s=yo();if(bs(s,a),(l=this.scroll)!=null&&l.wasRoot)return s;for(let u=0;u<this.path.length;u++){const d=this.path[u],{scroll:f,options:m}=d;d!==this.root&&f&&m.layoutScroll&&(f.wasRoot&&bs(s,a),Gf(s.x,f.offset.x),Gf(s.y,f.offset.y))}return s}applyTransform(a,s=!1){const l=yo();bs(l,a);for(let u=0;u<this.path.length;u++){const d=this.path[u];!s&&d.options.layoutScroll&&d.scroll&&d!==d.root&&Xf(l,{x:-d.scroll.offset.x,y:-d.scroll.offset.y}),Tu(d.latestValues)&&Xf(l,d.latestValues)}return Tu(this.latestValues)&&Xf(l,this.latestValues),l}removeTransform(a){const s=yo();bs(s,a);for(let l=0;l<this.path.length;l++){const u=this.path[l];if(!u.instance||!Tu(u.latestValues))continue;g_(u.latestValues)&&u.updateSnapshot();const d=yo(),f=u.measurePageBox();bs(d,f),mB(s,u.latestValues,u.snapshot?u.snapshot.layoutBox:void 0,d)}return Tu(this.latestValues)&&mB(s,this.latestValues),s}setTargetDelta(a){this.targetDelta=a,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(a){this.options={...this.options,...a,crossfade:a.crossfade!==void 0?a.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==Qo.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(a=!1){var h;const s=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=s.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=s.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=s.isSharedProjectionDirty);const l=!!this.resumingFrom||this!==s;if(!(a||l&&this.isSharedProjectionDirty||this.isProjectionDirty||(h=this.parent)!=null&&h.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:d,layoutId:f}=this.options;if(!this.layout||!(d||f))return;this.resolvedRelativeTargetAt=Qo.timestamp;const m=this.getClosestProjectingParent();m&&this.linkedParentVersion!==m.layoutVersion&&!m.options.layoutRoot&&this.removeRelativeTarget(),!this.targetDelta&&!this.relativeTarget&&(m&&m.layout?this.createRelativeTarget(m,this.layout.layoutBox,m.layout.layoutBox):this.removeRelativeTarget()),!(!this.relativeTarget&&!this.targetDelta)&&(this.target||(this.target=yo(),this.targetWithTransforms=yo()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),Ant(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):bs(this.target,this.layout.layoutBox),zre(this.target,this.targetDelta)):bs(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget&&(this.attemptToResolveRelativeTarget=!1,m&&!!m.resumingFrom==!!this.resumingFrom&&!m.options.layoutScroll&&m.target&&this.animationProgress!==1?this.createRelativeTarget(m,this.target,m.target):this.relativeParent=this.relativeTarget=void 0))}getClosestProjectingParent(){if(!(!this.parent||g_(this.parent.latestValues)||Lre(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}createRelativeTarget(a,s,l){this.relativeParent=a,this.linkedParentVersion=a.layoutVersion,this.forceRelativeParentToResolveTarget(),this.relativeTarget=yo(),this.relativeTargetOrigin=yo(),S1(this.relativeTargetOrigin,s,l),bs(this.relativeTarget,this.relativeTargetOrigin)}removeRelativeTarget(){this.relativeParent=this.relativeTarget=void 0}calcProjection(){var p;const a=this.getLead(),s=!!this.resumingFrom||this!==a;let l=!0;if((this.isProjectionDirty||(p=this.parent)!=null&&p.isProjectionDirty)&&(l=!1),s&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(l=!1),this.resolvedRelativeTargetAt===Qo.timestamp&&(l=!1),l)return;const{layout:u,layoutId:d}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(u||d))return;bs(this.layoutCorrected,this.layout.layoutBox);const f=this.treeScale.x,m=this.treeScale.y;Gtt(this.layoutCorrected,this.treeScale,this.path,s),a.layout&&!a.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(a.target=a.layout.layoutBox,a.targetWithTransforms=yo());const{target:h}=a;if(!h){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(uB(this.prevProjectionDelta.x,this.projectionDelta.x),uB(this.prevProjectionDelta.y,this.projectionDelta.y)),Jp(this.projectionDelta,this.layoutCorrected,h,this.latestValues),(this.treeScale.x!==f||this.treeScale.y!==m||!yB(this.projectionDelta.x,this.prevProjectionDelta.x)||!yB(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",h))}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(a=!0){var s;if((s=this.options.visualElement)==null||s.scheduleRender(),a){const l=this.getStack();l&&l.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=Yf(),this.projectionDelta=Yf(),this.projectionDeltaWithTransform=Yf()}setAnimationOrigin(a,s=!1){const l=this.snapshot,u=l?l.latestValues:{},d={...this.latestValues},f=Yf();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!s;const m=yo(),h=l?l.source:void 0,p=this.layout?this.layout.source:void 0,b=h!==p,v=this.getStack(),y=!v||v.members.length<=1,x=!!(b&&!y&&this.options.crossfade===!0&&!this.path.some(Ert));this.animationProgress=0;let w;this.mixTargetDelta=C=>{const S=C/1e3;SB(f.x,a.x,S),SB(f.y,a.y,S),this.setTargetDelta(f),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(S1(m,this.layout.layoutBox,this.relativeParent.layout.layoutBox),$rt(this.relativeTarget,this.relativeTargetOrigin,m,S),w&&crt(this.relativeTarget,w)&&(this.isProjectionDirty=!1),w||(w=yo()),bs(w,this.relativeTarget)),b&&(this.animationValues=d,rrt(d,u,this.latestValues,S,x,y)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=S},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(a){var s,l,u;this.notifyListeners("animationStart"),(s=this.currentAnimation)==null||s.stop(),(u=(l=this.resumingFrom)==null?void 0:l.currentAnimation)==null||u.stop(),this.pendingAnimation&&(ru(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=$r.update(()=>{Sb.hasAnimatedSinceResize=!0,this.motionValue||(this.motionValue=Gm(0)),this.currentAnimation=Jnt(this.motionValue,[0,1e3],{...a,velocity:0,isSync:!0,onUpdate:d=>{this.mixTargetDelta(d),a.onUpdate&&a.onUpdate(d)},onStop:()=>{},onComplete:()=>{a.onComplete&&a.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const a=this.getStack();a&&a.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(frt),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const a=this.getLead();let{targetWithTransforms:s,target:l,layout:u,latestValues:d}=a;if(!(!s||!l||!u)){if(this!==a&&this.layout&&u&&loe(this.options.animationType,this.layout.layoutBox,u.layoutBox)){l=this.target||yo();const f=Li(this.layout.layoutBox.x);l.x.min=a.target.x.min,l.x.max=l.x.min+f;const m=Li(this.layout.layoutBox.y);l.y.min=a.target.y.min,l.y.max=l.y.min+m}bs(s,l),Xf(s,d),Jp(this.projectionDeltaWithTransform,this.layoutCorrected,s,d)}}registerSharedNode(a,s){this.sharedNodes.has(a)||this.sharedNodes.set(a,new urt),this.sharedNodes.get(a).add(s);const u=s.options.initialPromotionConfig;s.promote({transition:u?u.transition:void 0,preserveFollowOpacity:u&&u.shouldPreserveFollowOpacity?u.shouldPreserveFollowOpacity(s):void 0})}isLead(){const a=this.getStack();return a?a.lead===this:!0}getLead(){var s;const{layoutId:a}=this.options;return a?((s=this.getStack())==null?void 0:s.lead)||this:this}getPrevLead(){var s;const{layoutId:a}=this.options;return a?(s=this.getStack())==null?void 0:s.prevLead:void 0}getStack(){const{layoutId:a}=this.options;if(a)return this.root.sharedNodes.get(a)}promote({needsReset:a,transition:s,preserveFollowOpacity:l}={}){const u=this.getStack();u&&u.promote(this,l),a&&(this.projectionDelta=void 0,this.needsReset=!0),s&&this.setOptions({transition:s})}relegate(){const a=this.getStack();return a?a.relegate(this):!1}resetSkewAndRotation(){const{visualElement:a}=this.options;if(!a)return;let s=!1;const{latestValues:l}=a;if((l.z||l.rotate||l.rotateX||l.rotateY||l.rotateZ||l.skewX||l.skewY)&&(s=!0),!s)return;const u={};l.z&&uE("z",a,u,this.animationValues);for(let d=0;d<cE.length;d++)uE(`rotate${cE[d]}`,a,u,this.animationValues),uE(`skew${cE[d]}`,a,u,this.animationValues);a.render();for(const d in u)a.setStaticValue(d,u[d]),this.animationValues&&(this.animationValues[d]=u[d]);a.scheduleRender()}applyProjectionStyles(a,s){if(!this.instance||this.isSVG)return;if(!this.isVisible){a.visibility="hidden";return}const l=this.getTransformTemplate();if(this.needsReset){this.needsReset=!1,a.visibility="",a.opacity="",a.pointerEvents=wb(s==null?void 0:s.pointerEvents)||"",a.transform=l?l(this.latestValues,""):"none";return}const u=this.getLead();if(!this.projectionDelta||!this.layout||!u.target){this.options.layoutId&&(a.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,a.pointerEvents=wb(s==null?void 0:s.pointerEvents)||""),this.hasProjected&&!Tu(this.latestValues)&&(a.transform=l?l({},""):"none",this.hasProjected=!1);return}a.visibility="";const d=u.animationValues||u.latestValues;this.applyTransformsToTarget();let f=drt(this.projectionDeltaWithTransform,this.treeScale,d);l&&(f=l(d,f)),a.transform=f;const{x:m,y:h}=this.projectionDelta;a.transformOrigin=`${m.origin*100}% ${h.origin*100}% 0`,u.animationValues?a.opacity=u===this?d.opacity??this.latestValues.opacity??1:this.preserveOpacity?this.latestValues.opacity:d.opacityExit:a.opacity=u===this?d.opacity!==void 0?d.opacity:"":d.opacityExit!==void 0?d.opacityExit:0;for(const p in p_){if(d[p]===void 0)continue;const{correct:b,applyTo:v,isCSSVariable:y}=p_[p],x=f==="none"?d[p]:b(d[p],u);if(v){const w=v.length;for(let C=0;C<w;C++)a[v[C]]=x}else y?this.options.visualElement.renderState.vars[p]=x:a[p]=x}this.options.layoutId&&(a.pointerEvents=u===this?wb(s==null?void 0:s.pointerEvents)||"":"none")}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(a=>{var s;return(s=a.currentAnimation)==null?void 0:s.stop()}),this.root.nodes.forEach(bB),this.root.sharedNodes.clear()}}}function hrt(e){e.updateLayout()}function prt(e){var n;const t=((n=e.resumeFrom)==null?void 0:n.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&t&&e.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:o}=e.layout,{animationType:i}=e.options,a=t.source!==e.layout.source;i==="size"?Wa(f=>{const m=a?t.measuredBox[f]:t.layoutBox[f],h=Li(m);m.min=r[f].min,m.max=m.min+h}):loe(i,t.layoutBox,r)&&Wa(f=>{const m=a?t.measuredBox[f]:t.layoutBox[f],h=Li(r[f]);m.max=m.min+h,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[f].max=e.relativeTarget[f].min+h)});const s=Yf();Jp(s,r,t.layoutBox);const l=Yf();a?Jp(l,e.applyTransform(o,!0),t.measuredBox):Jp(l,r,t.layoutBox);const u=!ooe(s);let d=!1;if(!e.resumeFrom){const f=e.getClosestProjectingParent();if(f&&!f.resumeFrom){const{snapshot:m,layout:h}=f;if(m&&h){const p=yo();S1(p,t.layoutBox,m.layoutBox);const b=yo();S1(b,r,h.layoutBox),ioe(p,b)||(d=!0),f.options.layoutRoot&&(e.relativeTarget=b,e.relativeTargetOrigin=p,e.relativeParent=f)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:t,delta:l,layoutDelta:s,hasLayoutChanged:u,hasRelativeLayoutChanged:d})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function grt(e){e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function vrt(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function yrt(e){e.clearSnapshot()}function bB(e){e.clearMeasurements()}function xB(e){e.isLayoutDirty=!1}function brt(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function wB(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function xrt(e){e.resolveTargetDelta()}function wrt(e){e.calcProjection()}function Srt(e){e.resetSkewAndRotation()}function Crt(e){e.removeLeadSnapshot()}function SB(e,t,n){e.translate=kr(t.translate,0,n),e.scale=kr(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function CB(e,t,n,r){e.min=kr(t.min,n.min,r),e.max=kr(t.max,n.max,r)}function $rt(e,t,n,r){CB(e.x,t.x,n.x,r),CB(e.y,t.y,n.y,r)}function Ert(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const Ort={duration:.45,ease:[.4,0,.1,1]},$B=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),EB=$B("applewebkit/")&&!$B("chrome/")?Math.round:ns;function OB(e){e.min=EB(e.min),e.max=EB(e.max)}function Prt(e){OB(e.x),OB(e.y)}function loe(e,t,n){return e==="position"||e==="preserve-aspect"&&!knt(vB(t),vB(n),.2)}function jrt(e){var t;return e!==e.root&&((t=e.scroll)==null?void 0:t.wasRoot)}const Irt=soe({attachResizeListener:(e,t)=>iv(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),dE={current:void 0},coe=soe({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!dE.current){const e=new Irt({});e.mount(window),e.setOptions({layoutScroll:!0}),dE.current=e}return dE.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),_rt={pan:{Feature:Ynt},drag:{Feature:Xnt,ProjectionNode:coe,MeasureLayout:toe}};function PB(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover",n==="Start");const o="onHover"+n,i=r[o];i&&$r.postRender(()=>i(t,p0(t)))}class Nrt extends wu{mount(){const{current:t}=this.node;t&&(this.unmount=Qet(t,(n,r)=>(PB(this.node,r,"Start"),o=>PB(this.node,o,"End"))))}unmount(){}}class Rrt extends wu{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=f0(iv(this.node.current,"focus",()=>this.onFocus()),iv(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function jB(e,t,n){const{props:r}=e;if(e.current instanceof HTMLButtonElement&&e.current.disabled)return;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap",n==="Start");const o="onTap"+(n==="End"?"":n),i=r[o];i&&$r.postRender(()=>i(t,p0(t)))}class Trt extends wu{mount(){const{current:t}=this.node;t&&(this.unmount=rtt(t,(n,r)=>(jB(this.node,r,"Start"),(o,{success:i})=>jB(this.node,o,i?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const C_=new WeakMap,fE=new WeakMap,Mrt=e=>{const t=C_.get(e.target);t&&t(e)},krt=e=>{e.forEach(Mrt)};function Art({root:e,...t}){const n=e||document;fE.has(n)||fE.set(n,{});const r=fE.get(n),o=JSON.stringify(t);return r[o]||(r[o]=new IntersectionObserver(krt,{root:e,...t})),r[o]}function Drt(e,t,n){const r=Art(t);return C_.set(e,n),r.observe(e),()=>{C_.delete(e),r.unobserve(e)}}const Lrt={some:0,all:1};class zrt extends wu{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:o="some",once:i}=t,a={root:n?n.current:void 0,rootMargin:r,threshold:typeof o=="number"?o:Lrt[o]},s=l=>{const{isIntersecting:u}=l;if(this.isInView===u||(this.isInView=u,i&&!u&&this.hasEnteredView))return;u&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",u);const{onViewportEnter:d,onViewportLeave:f}=this.node.getProps(),m=u?d:f;m&&m(l)};return Drt(this.node.current,a,s)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(Frt(t,n))&&this.startObserver()}unmount(){}}function Frt({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const Brt={inView:{Feature:zrt},tap:{Feature:Trt},focus:{Feature:Rrt},hover:{Feature:Nrt}},Hrt={layout:{ProjectionNode:coe,MeasureLayout:toe}},Vrt={...Int,...Brt,..._rt,...Hrt},Wrt=Utt(Vrt,ont),Urt={token:{colorPrimary:"#4F46E5",colorSuccess:"#10B981",colorWarning:"#F59E0B",colorError:"#EF4444",colorInfo:"#3B82F6",borderRadius:8,fontFamily:'ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif'},components:{Layout:{bodyBg:"#F3F4F6",headerBg:"#FFFFFF",siderBg:"#111827"},Menu:{darkItemBg:"#111827",darkItemColor:"#9CA3AF",darkItemSelectedBg:"#3730A3",darkItemSelectedColor:"#FFFFFF"},Card:{boxShadow:"0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06)"}}},{Header:Krt,Sider:qrt,Content:Grt}=Ni,Xrt=()=>{var f;const[e,t]=c.useState(!1),{user:n,logout:r}=nc(),o=nh(),i=fs(),{token:a}=lGe.useToken(),s=[{key:"/admin",icon:g.jsx(WYe,{}),label:"Дашборд"},{key:"/admin/analytics",icon:g.jsx(PYe,{}),label:"Аналитика"},{key:"/admin/finance",icon:g.jsx(MJe,{}),label:"Финансы"},{key:"/admin/users",icon:g.jsx(rl,{}),label:"Пользователи"},{key:"/admin/schools",icon:g.jsx(_3,{}),label:"Школы"},{key:"/admin/integrations",icon:g.jsx(mC,{}),label:"Интеграции"},{key:"/admin/settings",icon:g.jsx(jne,{}),label:"Настройки"}],l=({key:m})=>{o(m)},u=()=>{r(),o("/login")},d={items:[{key:"profile",label:"Профиль",onClick:()=>o("/profile")},{type:"divider"},{key:"logout",icon:g.jsx(R3,{}),label:"Выйти",danger:!0,onClick:u}]};return g.jsx(Ma,{theme:Urt,children:g.jsxs(Ni,{style:{minHeight:"100vh"},children:[g.jsxs(qrt,{trigger:null,collapsible:!0,collapsed:e,width:250,style:{overflow:"auto",height:"100vh",position:"fixed",left:0,top:0,bottom:0,zIndex:100},children:[g.jsx("div",{style:{height:64,display:"flex",alignItems:"center",justifyContent:"center",color:"white",fontSize:20,fontWeight:"bold",background:"rgba(255, 255, 255, 0.1)",margin:16,borderRadius:8},children:e?"ИИ":"Админ‑панель ИИ‑Школа"}),g.jsx(yu,{theme:"dark",mode:"inline",selectedKeys:[i.pathname],items:s,onClick:l})]}),g.jsxs(Ni,{style:{marginLeft:e?80:250,transition:"all 0.2s"},children:[g.jsxs(Krt,{style:{padding:"0 24px",background:a.colorBgContainer,display:"flex",alignItems:"center",justifyContent:"space-between",position:"sticky",top:0,zIndex:99,boxShadow:"0 1px 4px rgba(0,21,41,0.08)"},children:[g.jsx(gt,{type:"text",icon:e?g.jsx(TZe,{}):g.jsx(_Ze,{}),onClick:()=>t(!e),style:{fontSize:"16px",width:64,height:64}}),g.jsx("div",{style:{display:"flex",alignItems:"center",gap:16},children:g.jsx(oC,{menu:d,placement:"bottomRight",arrow:!0,children:g.jsxs("div",{style:{display:"flex",alignItems:"center",gap:8,cursor:"pointer"},children:[g.jsx(Ja,{style:{backgroundColor:a.colorPrimary},children:((f=n==null?void 0:n.full_name)==null?void 0:f.charAt(0))||"А"}),g.jsx("span",{style:{fontWeight:500},children:n==null?void 0:n.full_name})]})})})]}),g.jsx(Grt,{style:{margin:"24px 16px",padding:24,minHeight:280,background:a.colorBgContainer,borderRadius:a.borderRadiusLG,overflow:"initial"},children:g.jsx(mtt,{mode:"wait",children:g.jsx(Wrt.div,{initial:{opacity:0,y:20},animate:{opacity:1,y:0},exit:{opacity:0,y:-20},transition:{duration:.3},children:g.jsx(uV,{})},i.pathname)})})]})]})})},{Title:Yrt}=dn,{RangePicker:Zrt}=xu,Jrt=[{name:"Янв",uv:4e3,pv:2400,amt:2400},{name:"Фев",uv:3e3,pv:1398,amt:2210},{name:"Мар",uv:2e3,pv:9800,amt:2290},{name:"Апр",uv:2780,pv:3908,amt:2e3},{name:"Май",uv:1890,pv:4800,amt:2181},{name:"Июн",uv:2390,pv:3800,amt:2500},{name:"Июл",uv:3490,pv:4300,amt:2100}],Qrt=[{title:'Новая школа "Лицей №1" зарегистрирована',time:"10 мин назад",type:"success"},{title:"Платеж #12345 обработан",time:"1 час назад",type:"info"},{title:"Ошибка синхронизации с 1С",time:"2 часа назад",type:"error"},{title:"Пользователь Admin обновил настройки",time:"5 часов назад",type:"warning"}],IB=()=>{const[e,t]=c.useState(!1),n=()=>{t(!0),setTimeout(()=>{t(!1),Pt.success("Данные обновлены за выбранный период")},1e3)};return g.jsxs("div",{className:"space-y-6",children:[g.jsxs("div",{className:"flex justify-between items-center",children:[g.jsx(Yrt,{level:2,style:{marginBottom:0},children:"Обзор системы"}),g.jsxs(pn,{children:[g.jsx(Zrt,{}),g.jsx(gt,{type:"primary",icon:g.jsx(One,{}),loading:e,onClick:n,children:"Применить"})]})]}),g.jsxs(ts,{gutter:[16,16],children:[g.jsx(Mr,{xs:24,sm:8,children:g.jsx(Gt,{variant:"borderless",children:g.jsx(Ll,{title:"Активные пользователи",value:1128,precision:0,valueStyle:{color:"#3f8600"},prefix:g.jsx(SYe,{}),suffix:g.jsx(rl,{})})})}),g.jsx(Mr,{xs:24,sm:8,children:g.jsx(Gt,{variant:"borderless",children:g.jsx(Ll,{title:"Выручка за месяц",value:934250,precision:2,valueStyle:{color:"#cf1322"},prefix:g.jsx(bYe,{}),suffix:g.jsx(GYe,{})})})}),g.jsx(Mr,{xs:24,sm:8,children:g.jsx(Gt,{variant:"borderless",children:g.jsx(Ll,{title:"Подключенные школы",value:42,precision:0,valueStyle:{color:"#1890ff"},prefix:g.jsx(_3,{})})})})]}),g.jsxs(ts,{gutter:[16,16],children:[g.jsx(Mr,{xs:24,lg:16,children:g.jsx(Gt,{title:"Динамика посещаемости",variant:"borderless",children:g.jsx("div",{style:{height:300},children:g.jsx(wd,{width:"100%",height:"100%",children:g.jsxs(uS,{data:Jrt,children:[g.jsx(Hv,{strokeDasharray:"3 3"}),g.jsx(Uv,{dataKey:"name"}),g.jsx(Kv,{}),g.jsx(Od,{}),g.jsx(Wc,{dataKey:"uv",fill:"#8884d8"}),g.jsx(Wc,{dataKey:"pv",fill:"#82ca9d"})]})})})})}),g.jsx(Mr,{xs:24,lg:8,children:g.jsx(Gt,{title:"Последняя активность",variant:"borderless",children:g.jsx(Yn,{itemLayout:"horizontal",dataSource:Qrt,renderItem:r=>g.jsx(Yn.Item,{children:g.jsx(Yn.Item.Meta,{title:r.title,description:g.jsxs("div",{style:{display:"flex",justifyContent:"space-between"},children:[g.jsx("span",{children:r.time}),g.jsx(zn,{color:r.type==="error"?"red":r.type==="success"?"green":r.type==="warning"?"orange":"blue",children:r.type})]})})})})})})]})]})},{Title:eot,Text:tot}=dn,{RangePicker:not}=xu,{Option:Sf}=pr,mE={RUB:"₽",USD:"$",EUR:"€"},rot=()=>{const[e,t]=c.useState("RUB"),[n,r]=c.useState(!1),o=()=>{r(!0),setTimeout(()=>{r(!1),Pt.success("Отчет для 1С успешно сформирован и отправлен на почту бухгалтерии")},2e3)},i=[{title:"ID",dataIndex:"id",key:"id",render:h=>g.jsx("a",{children:h})},{title:"Дата",dataIndex:"date",key:"date"},{title:"Описание",dataIndex:"description",key:"description"},{title:"Тип",key:"type",dataIndex:"type",render:(h,{type:p})=>{let b="geekblue";return p==="refund"&&(b="volcano"),p==="payout"&&(b="purple"),g.jsx(zn,{color:b,children:p.toUpperCase()},p)}},{title:"Сумма",key:"amount",render:(h,p)=>`${(p.currency===e?p.amount:p.currency==="RUB"&&e==="USD"?p.amount/90:p.currency==="RUB"&&e==="EUR"?p.amount/100:p.currency==="USD"&&e==="RUB"?p.amount*90:p.currency==="EUR"&&e==="RUB"?p.amount*100:p.amount).toLocaleString("ru-RU",{style:"currency",currency:e})}`},{title:"Статус",key:"status",dataIndex:"status",render:(h,{status:p})=>{let b="green";return p==="failed"&&(b="red"),p==="pending"&&(b="gold"),g.jsx(zn,{color:b,children:p.toUpperCase()},p)}},{title:"Действия",key:"action",render:(h,p)=>g.jsx(pn,{size:"middle",children:g.jsx("a",{children:"Детали"})})}],a=[{key:"1",id:"TRX-9871",date:"2025-01-15 14:32",amount:15e3,currency:"RUB",status:"success",type:"payment",description:'Оплата курса "Python Basics"'},{key:"2",id:"TRX-9872",date:"2025-01-15 12:10",amount:-5e3,currency:"RUB",status:"success",type:"payout",description:"Выплата преподавателю"},{key:"3",id:"TRX-9873",date:"2025-01-14 09:15",amount:2500,currency:"RUB",status:"failed",type:"payment",description:"Оплата подписки"},{key:"4",id:"TRX-9874",date:"2025-01-14 08:00",amount:100,currency:"USD",status:"success",type:"payment",description:"Consultation (International)"}],s=g.jsxs("div",{className:"space-y-6",children:[e==="USD"&&g.jsx(mT,{message:"Критический баланс USD",description:"На счету недостаточно средств для автоматических выплат партнерам. Пожалуйста, пополните баланс.",type:"error",showIcon:!0,icon:g.jsx(eZe,{}),action:g.jsx(gt,{size:"small",type:"primary",danger:!0,children:"Пополнить"})}),g.jsxs("div",{className:"flex justify-between items-center",children:[g.jsxs(pn,{children:[g.jsxs(pr,{defaultValue:"RUB",style:{width:120},onChange:h=>t(h),children:[g.jsx(Sf,{value:"RUB",children:"RUB (₽)"}),g.jsx(Sf,{value:"USD",children:"USD ($)"}),g.jsx(Sf,{value:"EUR",children:"EUR (€)"})]}),g.jsx(not,{}),g.jsx(gt,{icon:g.jsx(One,{}),children:"Фильтр"})]}),g.jsx(gt,{type:"primary",icon:g.jsx(YYe,{}),loading:n,onClick:o,children:"Экспорт (1C)"})]}),g.jsxs(ts,{gutter:16,children:[g.jsx(Mr,{span:8,children:g.jsx(Gt,{children:g.jsx(Ll,{title:"Текущий баланс",value:e==="RUB"?112893:e==="USD"?1254:1128,precision:2,suffix:mE[e]})})}),g.jsx(Mr,{span:8,children:g.jsx(Gt,{children:g.jsx(Ll,{title:"В ожидании",value:e==="RUB"?5400:e==="USD"?60:54,precision:2,suffix:mE[e],valueStyle:{color:"#faad14"}})})}),g.jsx(Mr,{span:8,children:g.jsx(Gt,{children:g.jsx(Ll,{title:"Расходы за месяц",value:e==="RUB"?34500:e==="USD"?383:345,precision:2,suffix:mE[e],valueStyle:{color:"#cf1322"}})})})]}),g.jsx(Gt,{title:"История транзакций",children:g.jsx(Si,{columns:i,dataSource:a})})]}),l=g.jsx("div",{className:"space-y-6",children:g.jsxs(ts,{gutter:[24,24],children:[g.jsx(Mr,{xs:24,lg:12,children:g.jsx(Gt,{title:"Подключенные шлюзы",extra:g.jsx(gt,{type:"primary",children:"Добавить"}),children:g.jsx(Yn,{itemLayout:"horizontal",dataSource:[{title:"Yookassa",status:!0,description:"Основной шлюз для РФ (RUB)"},{title:"Stripe",status:!0,description:"Международные платежи (USD, EUR)"},{title:"PayPal",status:!1,description:"Резервный шлюз"}],renderItem:h=>g.jsx(Yn.Item,{actions:[g.jsx(fm,{checked:h.status}),g.jsx("a",{children:"Настроить"})],children:g.jsx(Yn.Item.Meta,{avatar:g.jsx(Ja,{icon:g.jsx(_3,{}),style:{backgroundColor:h.status?"#87d068":"#fde3cf"}}),title:h.title,description:h.description})})})})}),g.jsx(Mr,{xs:24,lg:12,children:g.jsx(Gt,{title:"Настройки API",children:g.jsxs(Lt,{layout:"vertical",children:[g.jsx(Lt.Item,{label:"Webhook URL для уведомлений",children:g.jsx(Sn,{value:"https://api.aischool.com/webhooks/payments",readOnly:!0,suffix:g.jsx(mC,{})})}),g.jsx(Lt.Item,{label:"Секретный ключ подписи",children:g.jsx(Sn.Password,{value:"whsec_..."})}),g.jsx(gt,{children:"Обновить ключи"})]})})})]})}),[u,d]=c.useState(!1),f=()=>{d(!1),Pt.success("Правило распределения добавлено")},m=g.jsxs("div",{className:"space-y-6",children:[g.jsxs(Gt,{title:"Правила автоматического распределения",children:[g.jsx(tot,{type:"secondary",className:"mb-4 block",children:"Настройте автоматическое расщепление платежей между платформой, преподавателями и партнерами."}),g.jsx(Si,{dataSource:[{key:"1",rule:"Базовая комиссия платформы",value:"15%",type:"Фиксированный процент",priority:1},{key:"2",rule:"Выплата преподавателю",value:"85%",type:"Остаток",priority:2},{key:"3",rule:"Партнерская программа",value:"500 ₽",type:"Фиксированная сумма",priority:0}],columns:[{title:"Приоритет",dataIndex:"priority",key:"priority",render:h=>g.jsx(zn,{children:h})},{title:"Название правила",dataIndex:"rule",key:"rule",render:h=>g.jsx("strong",{children:h})},{title:"Значение",dataIndex:"value",key:"value"},{title:"Тип",dataIndex:"type",key:"type"},{title:"Действия",key:"actions",render:()=>g.jsx("a",{children:"Изменить"})}],pagination:!1}),g.jsx(gt,{type:"dashed",block:!0,className:"mt-4",icon:g.jsx(zZe,{}),onClick:()=>d(!0),children:"Добавить правило распределения"})]}),g.jsx(Gt,{title:"Тестирование распределения",children:g.jsxs(ts,{gutter:24,children:[g.jsx(Mr,{span:12,children:g.jsxs(Lt,{layout:"inline",children:[g.jsx(Lt.Item,{label:"Сумма платежа",children:g.jsx(un,{defaultValue:1e4,addonAfter:"₽"})}),g.jsx(gt,{type:"primary",children:"Рассчитать"})]})}),g.jsx(Mr,{span:12,children:g.jsxs("div",{className:"bg-gray-50 p-4 rounded",children:[g.jsxs("p",{children:["Платформа: ",g.jsx("strong",{children:"1 500 ₽"})]}),g.jsxs("p",{children:["Преподаватель: ",g.jsx("strong",{children:"8 500 ₽"})]})]})})]})}),g.jsx(Po,{title:"Новое правило распределения",open:u,onCancel:()=>d(!1),onOk:f,children:g.jsxs(Lt,{layout:"vertical",children:[g.jsx(Lt.Item,{label:"Название правила",required:!0,children:g.jsx(Sn,{placeholder:"Например, Комиссия платформы"})}),g.jsx(Lt.Item,{label:"Тип значения",children:g.jsxs(pr,{defaultValue:"percent",children:[g.jsx(Sf,{value:"percent",children:"Процент (%)"}),g.jsx(Sf,{value:"fixed",children:"Фиксированная сумма (₽)"}),g.jsx(Sf,{value:"remainder",children:"Остаток"})]})}),g.jsx(Lt.Item,{label:"Значение",children:g.jsx(un,{className:"w-full",placeholder:"15"})}),g.jsx(Lt.Item,{label:"Приоритет выполнения",children:g.jsx(un,{className:"w-full",defaultValue:1})})]})})]});return g.jsxs("div",{className:"space-y-6",children:[g.jsx(eot,{level:2,children:"Финансы"}),g.jsx(tf,{defaultActiveKey:"1",items:[{key:"1",label:"Транзакции и Баланс",children:s},{key:"2",label:"Платежные шлюзы",children:l},{key:"3",label:"Распределение (Сплитование)",children:m}]})]})},{Title:_B,Text:oot,Paragraph:hE}=dn,{Meta:iot}=Gt,{Option:NB}=pr,aot=[{id:"edo",name:"Контур.Диадок",description:"Электронный документооборот. Подписание актов и счетов.",icon:g.jsx(iZe,{style:{fontSize:24,color:"#1890ff"}}),connected:!0,status:"active"},{id:"1c",name:"1С:Бухгалтерия",description:"Автоматическая выгрузка транзакций и сверка остатков.",icon:g.jsx(T3,{style:{fontSize:24,color:"#faad14"}}),connected:!0,status:"active"},{id:"stripe",name:"Stripe Payments",description:"Международные платежи. Карты Visa/Mastercard.",icon:g.jsx(mC,{style:{fontSize:24,color:"#722ed1"}}),connected:!1,status:"maintenance"},{id:"s3",name:"S3 Storage (MinIO)",description:"Хранение медиафайлов и резервных копий.",icon:g.jsx(BYe,{style:{fontSize:24,color:"#52c41a"}}),connected:!0,status:"active"}],sot=()=>{const[e,t]=c.useState(aot),[n,r]=c.useState([{key:"1",number:"Акт-245",date:"2025-01-15",type:"Акт выполненных работ",counterparty:'ООО "Вектор"',status:"pending",amount:"45 000 ₽"},{key:"2",number:"Сч-112",date:"2025-01-14",type:"Счет на оплату",counterparty:"ИП Иванов А.А.",status:"signed",amount:"12 500 ₽"},{key:"3",number:"Д-09",date:"2024-12-20",type:"Договор",counterparty:'ЗАО "ТехноПарк"',status:"archived",amount:"-"}]),[o,i]=c.useState(!1),[a,s]=c.useState(null),l=v=>{t(y=>y.map(x=>x.id===v?{...x,connected:!x.connected}:x)),Pt.success("Статус интеграции обновлен")},u=v=>{Po.confirm({title:"Подписать документ?",content:"Вы собираетесь подписать документ своей электронной подписью. Это действие юридически значимо.",okText:"Подписать",cancelText:"Отмена",onOk:()=>{r(y=>y.map(x=>x.key===v?{...x,status:"signed"}:x)),Pt.success("Документ успешно подписан и отправлен контрагенту")}})},d=v=>{r(y=>y.map(x=>x.key===v?{...x,status:"archived"}:x)),Pt.info("Документ перемещен в архив")},f=v=>{s(v),i(!0)},m=g.jsxs("div",{className:"space-y-6",children:[g.jsx(hE,{children:"Управление внешними подключениями, API ключами и статусами синхронизации."}),g.jsx(ts,{gutter:[16,16],children:e.map(v=>g.jsx(Mr,{xs:24,sm:12,lg:8,children:g.jsx(Gt,{actions:[g.jsx(fm,{checkedChildren:"ВКЛ",unCheckedChildren:"ВЫКЛ",checked:v.connected,onChange:()=>l(v.id)}),g.jsx(gt,{type:"link",icon:g.jsx(jne,{}),onClick:()=>f(v),children:"Настройки"})],children:g.jsx(iot,{avatar:g.jsx(Ja,{size:"large",icon:v.icon,style:{backgroundColor:"#f0f5ff"}}),title:g.jsxs("div",{style:{display:"flex",justifyContent:"space-between"},children:[v.name,v.connected&&g.jsx(zn,{color:v.status==="active"?"success":"error",children:v.status.toUpperCase()})]}),description:v.description})})},v.id))}),g.jsx(Ol,{}),g.jsx(_B,{level:3,children:"Журнал событий API"}),g.jsx(Gt,{children:g.jsxs("div",{style:{textAlign:"center",padding:20,color:"#999"},children:[g.jsx(mC,{style:{fontSize:48,marginBottom:16}}),g.jsx("p",{children:"Логи запросов будут отображаться здесь"})]})}),g.jsx(Po,{title:`Настройки интеграции: ${a==null?void 0:a.name}`,open:o,onCancel:()=>i(!1),onOk:()=>{Pt.success("Настройки сохранены"),i(!1)},children:g.jsxs(Lt,{layout:"vertical",children:[g.jsx(Lt.Item,{label:"API Key / Token",children:g.jsx(Sn.Password,{placeholder:"Введите ключ API"})}),g.jsx(Lt.Item,{label:"Webhook URL",children:g.jsx(Sn,{placeholder:"https://api.aischool.com/webhooks/..."})}),g.jsx(Lt.Item,{label:"Режим работы",children:g.jsxs(pr,{defaultValue:"prod",children:[g.jsx(NB,{value:"prod",children:"Production"}),g.jsx(NB,{value:"test",children:"Sandbox / Test"})]})})]})})]}),h=[{title:"Номер",dataIndex:"number",key:"number",render:v=>g.jsx("a",{children:v})},{title:"Дата",dataIndex:"date",key:"date"},{title:"Тип",dataIndex:"type",key:"type",render:v=>g.jsx(zn,{color:"blue",children:v})},{title:"Контрагент",dataIndex:"counterparty",key:"counterparty"},{title:"Сумма",dataIndex:"amount",key:"amount"},{title:"Статус",dataIndex:"status",key:"status",render:v=>{const y={signed:"green",pending:"orange",rejected:"red",archived:"default"},x={signed:"Подписан",pending:"Ожидает",rejected:"Отклонен",archived:"Архив"};return g.jsx(Km,{status:v==="pending"?"processing":"default",color:y[v],text:x[v]})}},{title:"Действия",key:"actions",render:(v,y)=>g.jsxs(pn,{children:[y.status==="pending"&&g.jsx(gt,{size:"small",type:"primary",icon:g.jsx(Ene,{}),onClick:()=>u(y.key),children:"Подписать"}),g.jsx(gt,{size:"small",icon:g.jsx(rZe,{})}),y.status!=="archived"&&g.jsx(gt,{size:"small",onClick:()=>d(y.key),children:"В архив"})]})}],p=g.jsxs("div",{className:"space-y-6",children:[g.jsxs("div",{className:"flex justify-between",children:[g.jsxs(pn,{children:[g.jsx(gt,{icon:g.jsx(SJe,{}),onClick:()=>Pt.loading("Синхронизация с Диадок...",1.5),children:"Синхронизировать с Диадок"}),g.jsx(gt,{children:"Загрузить документ"})]}),g.jsx(gt,{children:"Архив документов"})]}),g.jsx(Si,{columns:h,dataSource:n})]}),b=g.jsx("div",{className:"space-y-6",children:g.jsxs(ts,{gutter:24,children:[g.jsx(Mr,{span:16,children:g.jsx(Gt,{title:"Права доступа к модулям",children:g.jsx(Yn,{itemLayout:"horizontal",dataSource:[{title:"Администраторы",desc:"Полный доступ ко всем интеграциям",roles:["admin"]},{title:"Бухгалтерия",desc:"Доступ к 1С и ЭДО",roles:["accountant"]},{title:"Менеджеры",desc:"Только просмотр статусов",roles:["manager"]}],renderItem:v=>g.jsx(Yn.Item,{actions:[g.jsx("a",{children:"Настроить"})],children:g.jsx(Yn.Item.Meta,{avatar:g.jsx(Ja,{icon:g.jsx(NJe,{}),style:{backgroundColor:"#87d068"}}),title:v.title,description:g.jsxs(pn,{direction:"vertical",children:[g.jsx(oot,{type:"secondary",children:v.desc}),g.jsx("div",{children:v.roles.map(y=>g.jsx(zn,{children:y},y))})]})})})})})}),g.jsx(Mr,{span:8,children:g.jsxs(Gt,{title:"Безопасность API",children:[g.jsx(hE,{children:"Настройка ограничений по IP и лимитов запросов."}),g.jsx(fm,{checkedChildren:"IP Whitelist",unCheckedChildren:"Все IP",defaultChecked:!0}),g.jsx(Ol,{}),g.jsx(hE,{children:"Ротация ключей доступа каждые 90 дней."}),g.jsx(fm,{checkedChildren:"Авто",unCheckedChildren:"Ручная",defaultChecked:!0})]})})]})});return g.jsxs("div",{className:"space-y-6",children:[g.jsx(_B,{level:2,children:"Интеграции и Сервисы"}),g.jsx(tf,{defaultActiveKey:"1",items:[{key:"1",label:"Сервисы",children:m},{key:"2",label:"ЭДО (Документы)",children:p},{key:"3",label:"Права доступа",children:b}]})]})},lot=cl({full_name:Wn().min(2,"ФИО должно содержать минимум 2 символа"),phone:Wn().min(10,"Номер телефона должен содержать минимум 10 символов"),role:vd(["student","trainer","school_admin"]),email:Wn().email("Некорректный email").optional().or(Om("")),grade:nx().min(1).max(11).optional(),student_code:Wn().optional()}),{Option:pE}=pr;function cot({isOpen:e,onClose:t,onSuccess:n,user:r}){var m,h,p,b,v,y;const{control:o,handleSubmit:i,reset:a,watch:s,formState:{errors:l,isSubmitting:u}}=cu({resolver:du(lot),defaultValues:{full_name:"",phone:"",role:"student",email:"",grade:1,student_code:""}}),d=s("role");c.useEffect(()=>{e&&a(r?{full_name:r.full_name,phone:r.phone||"",role:r.role,email:r.email||"",grade:r.grade||1,student_code:r.student_code||""}:{full_name:"",phone:"",role:"student",email:"",grade:1,student_code:""})},[e,r,a]);const f=async x=>{var w,C;try{const S={...x,email:x.email===""?null:x.email,student_code:x.student_code===""?null:x.student_code};r?(await Bn.updateUser(r.id,S),Pt.success("Пользователь успешно обновлен")):(await Bn.createUser(S),Pt.success("Пользователь успешно создан")),n(),t()}catch(S){console.error("Failed to save user",S);const $=((C=(w=S.response)==null?void 0:w.data)==null?void 0:C.detail)||"Не удалось сохранить пользователя";Pt.error($)}};return g.jsx(Po,{title:r?"Редактировать пользователя":"Создать пользователя",open:e,onCancel:t,footer:null,destroyOnClose:!0,children:g.jsxs(Lt,{layout:"vertical",onFinish:i(f),children:[g.jsx(Lt.Item,{label:"ФИО",validateStatus:l.full_name?"error":"",help:(m=l.full_name)==null?void 0:m.message,required:!0,children:g.jsx(Bo,{name:"full_name",control:o,render:({field:x})=>g.jsx(Sn,{...x})})}),g.jsx(Lt.Item,{label:"Телефон",validateStatus:l.phone?"error":"",help:(h=l.phone)==null?void 0:h.message,required:!0,children:g.jsx(Bo,{name:"phone",control:o,render:({field:x})=>g.jsx(Sn,{...x,type:"tel"})})}),g.jsx(Lt.Item,{label:"Роль",validateStatus:l.role?"error":"",help:(p=l.role)==null?void 0:p.message,required:!0,children:g.jsx(Bo,{name:"role",control:o,render:({field:x})=>g.jsxs(pr,{...x,children:[g.jsx(pE,{value:"student",children:"Ученик"}),g.jsx(pE,{value:"trainer",children:"Тренер"}),g.jsx(pE,{value:"school_admin",children:"Админ школы"})]})})}),g.jsx(Lt.Item,{label:"Email",validateStatus:l.email?"error":"",help:(b=l.email)==null?void 0:b.message,children:g.jsx(Bo,{name:"email",control:o,render:({field:x})=>g.jsx(Sn,{...x,type:"email"})})}),d==="student"&&g.jsxs(g.Fragment,{children:[g.jsx(Lt.Item,{label:"Класс",validateStatus:l.grade?"error":"",help:(v=l.grade)==null?void 0:v.message,children:g.jsx(Bo,{name:"grade",control:o,render:({field:x})=>g.jsx(un,{...x,min:1,max:11,className:"w-full"})})}),g.jsx(Lt.Item,{label:"Код ученика",validateStatus:l.student_code?"error":"",help:(y=l.student_code)==null?void 0:y.message,children:g.jsx(Bo,{name:"student_code",control:o,render:({field:x})=>g.jsx(Sn,{...x})})})]}),g.jsxs("div",{className:"flex justify-end gap-2 mt-4",children:[g.jsx(gt,{onClick:t,children:"Отмена"}),g.jsx(gt,{type:"primary",htmlType:"submit",loading:u,children:"Сохранить"})]})]})})}const{Title:uot}=dn,{Option:My}=pr;function dot({onEdit:e}){const[t,n]=c.useState([]),[r,o]=c.useState(!0),[i,a]=c.useState(1),[s,l]=c.useState(0),[u,d]=c.useState(""),[f,m]=c.useState(void 0),[h,p]=c.useState(!1),[b,v]=c.useState(null),y=async()=>{o(!0);try{const S={skip:(i-1)*50,limit:50,search:u||void 0,role:f||void 0},$=await Bn.getUsers(S);n($.items),l($.total)}catch(S){console.error("Failed to fetch users",S),Pt.error("Не удалось загрузить пользователей")}finally{o(!1)}};c.useEffect(()=>{y()},[i,u,f]);const x=async S=>{try{await Bn.deleteUser(S),Pt.success("Пользователь успешно деактивирован"),y()}catch{Pt.error("Не удалось деактивировать пользователя")}},w=S=>{v(S),p(!0)},C=[{title:"Имя / Email",key:"name_email",render:(S,$)=>g.jsxs("div",{children:[g.jsx("div",{className:"font-medium",children:$.full_name}),g.jsx("div",{className:"text-gray-500 text-sm",children:$.email})]})},{title:"Телефон",dataIndex:"phone",key:"phone"},{title:"Роль",dataIndex:"role",key:"role",render:S=>{let $="blue",E=S;return S==="admin"?($="purple",E="Админ"):S==="trainer"?($="green",E="Тренер"):S==="student"?($="default",E="Ученик"):S==="school_admin"&&($="cyan",E="Админ школы"),g.jsx(zn,{color:$,children:E})}},{title:"Статус",dataIndex:"is_active",key:"is_active",render:S=>g.jsx(zn,{color:S?"success":"error",children:S?"Активен":"Неактивен"})},{title:"Действия",key:"actions",render:(S,$)=>g.jsxs(pn,{children:[g.jsx(gt,{type:"text",icon:g.jsx(N3,{}),onClick:()=>w($),className:"text-indigo-600 hover:text-indigo-900"}),g.jsx(jte,{title:"Вы уверены, что хотите деактивировать этого пользователя?",onConfirm:()=>x($.id),okText:"Да",cancelText:"Нет",children:g.jsx(gt,{type:"text",danger:!0,icon:g.jsx(hC,{})})})]})}];return g.jsxs("div",{className:"space-y-6",children:[g.jsxs("div",{className:"flex justify-between items-center",children:[g.jsx(uot,{level:2,style:{marginBottom:0},children:"Пользователи"}),g.jsx(gt,{type:"primary",icon:g.jsx(pC,{}),onClick:()=>p(!0),children:"Создать пользователя"})]}),g.jsxs(Gt,{children:[g.jsxs("div",{className:"mb-4 flex gap-4",children:[g.jsx(Sn,{placeholder:"Поиск...",prefix:g.jsx(iJe,{}),value:u,onChange:S=>d(S.target.value),style:{width:300}}),g.jsxs(pr,{placeholder:"Все роли",value:f,onChange:S=>m(S),style:{width:200},allowClear:!0,children:[g.jsx(My,{value:"student",children:"Ученик"}),g.jsx(My,{value:"trainer",children:"Тренер"}),g.jsx(My,{value:"admin",children:"Админ"}),g.jsx(My,{value:"school_admin",children:"Админ школы"})]})]}),g.jsx(Si,{columns:C,dataSource:t,rowKey:"id",loading:r,pagination:{current:i,pageSize:50,total:s,onChange:S=>a(S)}})]}),g.jsx(cot,{isOpen:h,onClose:()=>{p(!1),v(null)},onSuccess:y,user:b})]})}const fot=cl({name:Wn().min(3,"Название должно содержать минимум 3 символа"),description:Wn().optional(),address:Wn().optional(),phone:Wn().optional(),email:Wn().email("Некорректный email").optional().or(Om("")),website:Wn().url("Некорректный URL").optional().or(Om(""))});function mot({isOpen:e,onClose:t,onSuccess:n,school:r}){var f,m,h,p,b,v;const[o,i]=c.useState(!1),{control:a,handleSubmit:s,reset:l,formState:{errors:u}}=cu({resolver:du(fot),defaultValues:{name:"",description:"",address:"",phone:"",email:"",website:""}});c.useEffect(()=>{e&&l(r?{name:r.name,description:r.description||"",address:r.address||"",phone:r.phone||"",email:r.email||"",website:r.website||""}:{name:"",description:"",address:"",phone:"",email:"",website:""})},[e,r,l]);const d=async y=>{var x,w;i(!0);try{r?(await Bn.updateSchool(r.id,y),Pt.success("Школа успешно обновлена")):(await Bn.createSchool(y),Pt.success("Школа успешно создана")),l(),n(),t()}catch(C){console.error("Failed to save school",C);const S=((w=(x=C.response)==null?void 0:x.data)==null?void 0:w.detail)||"Не удалось сохранить школу";Pt.error(S)}finally{i(!1)}};return g.jsx(Po,{title:r?"Редактировать школу":"Создать школу",open:e,onCancel:t,footer:null,destroyOnClose:!0,children:g.jsxs(Lt,{layout:"vertical",onFinish:s(d),children:[g.jsx(Lt.Item,{label:"Название школы",validateStatus:u.name?"error":"",help:(f=u.name)==null?void 0:f.message,required:!0,children:g.jsx(Bo,{name:"name",control:a,render:({field:y})=>g.jsx(Sn,{...y})})}),g.jsx(Lt.Item,{label:"Описание",validateStatus:u.description?"error":"",help:(m=u.description)==null?void 0:m.message,children:g.jsx(Bo,{name:"description",control:a,render:({field:y})=>g.jsx(Sn.TextArea,{rows:2,...y})})}),g.jsx(Lt.Item,{label:"Адрес",validateStatus:u.address?"error":"",help:(h=u.address)==null?void 0:h.message,children:g.jsx(Bo,{name:"address",control:a,render:({field:y})=>g.jsx(Sn,{...y})})}),g.jsxs("div",{className:"grid grid-cols-2 gap-4",children:[g.jsx(Lt.Item,{label:"Телефон",validateStatus:u.phone?"error":"",help:(p=u.phone)==null?void 0:p.message,children:g.jsx(Bo,{name:"phone",control:a,render:({field:y})=>g.jsx(Sn,{...y})})}),g.jsx(Lt.Item,{label:"Email",validateStatus:u.email?"error":"",help:(b=u.email)==null?void 0:b.message,children:g.jsx(Bo,{name:"email",control:a,render:({field:y})=>g.jsx(Sn,{...y,type:"email"})})})]}),g.jsx(Lt.Item,{label:"Веб-сайт",validateStatus:u.website?"error":"",help:(v=u.website)==null?void 0:v.message,children:g.jsx(Bo,{name:"website",control:a,render:({field:y})=>g.jsx(Sn,{...y,placeholder:"https://..."})})}),g.jsxs("div",{className:"flex justify-end space-x-2 pt-4",children:[g.jsx(gt,{onClick:t,children:"Отмена"}),g.jsx(gt,{type:"primary",htmlType:"submit",loading:o,children:r?"Сохранить":"Создать"})]})]})})}const{Title:hot}=dn;function pot(){const[e,t]=c.useState([]),[n,r]=c.useState(!0),[o,i]=c.useState(!1),[a,s]=c.useState(null),l=async()=>{r(!0);try{const f=await Bn.getSchools();t(f.items)}catch(f){console.error("Failed to fetch schools",f),Pt.error("Не удалось загрузить список школ")}finally{r(!1)}};c.useEffect(()=>{l()},[]);const u=f=>{s(f),i(!0)},d=[{title:"Название",key:"name",render:(f,m)=>g.jsxs("div",{children:[g.jsx("div",{className:"font-medium",children:m.name}),g.jsx("div",{className:"text-gray-500 text-sm",children:m.description})]})},{title:"Контакты",key:"contacts",render:(f,m)=>g.jsxs("div",{children:[g.jsx("div",{children:m.email}),g.jsx("div",{children:m.phone})]})},{title:"Адрес",dataIndex:"address",key:"address"},{title:"Статус",dataIndex:"is_active",key:"is_active",render:f=>g.jsx(zn,{color:f?"success":"error",children:f?"Активен":"Неактивен"})},{title:"Действия",key:"action",render:(f,m)=>g.jsx(gt,{type:"text",icon:g.jsx(N3,{}),onClick:()=>u(m),className:"text-indigo-600 hover:text-indigo-900"})}];return g.jsxs("div",{className:"space-y-6",children:[g.jsxs("div",{className:"flex justify-between items-center",children:[g.jsx(hot,{level:2,style:{marginBottom:0},children:"Школы"}),g.jsx(gt,{type:"primary",icon:g.jsx(pC,{}),onClick:()=>i(!0),children:"Создать школу"})]}),g.jsx(Gt,{children:g.jsx(Si,{columns:d,dataSource:e,rowKey:"id",loading:n})}),g.jsx(mot,{isOpen:o,onClose:()=>{i(!1),s(null)},onSuccess:l,school:a})]})}const{Title:got,Paragraph:RB}=dn,vot=cl({max_students_per_group:nx().min(1,"Минимум 1"),max_groups_per_trainer:nx().min(1,"Минимум 1"),diary_entry_required:Em(),attendance_tracking:Em(),custom_setting:Wn().optional()});function yot(){var u,d,f,m,h;const{user:e}=nc(),[t,n]=c.useState(!1),{control:r,handleSubmit:o,reset:i,formState:{errors:a}}=cu({resolver:du(vot),defaultValues:{max_students_per_group:30,max_groups_per_trainer:10,diary_entry_required:!1,attendance_tracking:!0,custom_setting:""}});c.useEffect(()=>{e!=null&&e.school_id&&s()},[e==null?void 0:e.school_id]);const s=async()=>{if(e!=null&&e.school_id){n(!0);try{const p=await Bn.getSchoolSettings(e.school_id);p.settings&&i(p.settings)}catch(p){console.error("Failed to fetch settings",p),Pt.error("Не удалось загрузить настройки")}finally{n(!1)}}},l=async p=>{if(e!=null&&e.school_id){n(!0);try{await Bn.updateSchoolSettings(e.school_id,p),Pt.success("Настройки успешно обновлены")}catch(b){console.error("Failed to update settings",b),Pt.error("Не удалось обновить настройки")}finally{n(!1)}}};return e!=null&&e.school_id?g.jsxs(Gt,{children:[g.jsxs("div",{className:"mb-6",children:[g.jsx(got,{level:3,children:"Конфигурация школы"}),g.jsx(RB,{type:"secondary",children:"Общие настройки работы школы."})]}),g.jsxs(Lt,{layout:"vertical",onFinish:o(l),children:[g.jsxs(ts,{gutter:24,children:[g.jsx(Mr,{span:12,xs:24,sm:12,children:g.jsx(Lt.Item,{label:"Макс. учеников в группе",validateStatus:a.max_students_per_group?"error":"",help:(u=a.max_students_per_group)==null?void 0:u.message,children:g.jsx(Bo,{name:"max_students_per_group",control:r,render:({field:p})=>g.jsx(un,{...p,className:"w-full"})})})}),g.jsx(Mr,{span:12,xs:24,sm:12,children:g.jsx(Lt.Item,{label:"Макс. групп на тренера",validateStatus:a.max_groups_per_trainer?"error":"",help:(d=a.max_groups_per_trainer)==null?void 0:d.message,children:g.jsx(Bo,{name:"max_groups_per_trainer",control:r,render:({field:p})=>g.jsx(un,{...p,className:"w-full"})})})})]}),g.jsxs(Lt.Item,{validateStatus:a.diary_entry_required?"error":"",help:(f=a.diary_entry_required)==null?void 0:f.message,children:[g.jsx(Bo,{name:"diary_entry_required",control:r,render:({field:p})=>g.jsx(tu,{checked:p.value,...p,children:"Обязательное заполнение дневника"})}),g.jsx("div",{className:"text-gray-500 text-sm mt-1",children:"Если включено, тренеры должны заполнять дневник для каждого занятия."})]}),g.jsxs(Lt.Item,{validateStatus:a.attendance_tracking?"error":"",help:(m=a.attendance_tracking)==null?void 0:m.message,children:[g.jsx(Bo,{name:"attendance_tracking",control:r,render:({field:p})=>g.jsx(tu,{checked:p.value,...p,children:"Включить отслеживание посещаемости"})}),g.jsx("div",{className:"text-gray-500 text-sm mt-1",children:"Разрешить тренерам отмечать посещаемость учеников."})]}),g.jsx(Lt.Item,{label:"Пользовательская конфигурация (JSON/String)",validateStatus:a.custom_setting?"error":"",help:(h=a.custom_setting)==null?void 0:h.message,children:g.jsx(Bo,{name:"custom_setting",control:r,render:({field:p})=>g.jsx(Sn,{...p})})}),g.jsx("div",{className:"flex justify-end mt-4",children:g.jsx(gt,{type:"primary",htmlType:"submit",loading:t,children:"Сохранить настройки"})})]})]}):g.jsx(Gt,{children:g.jsx(RB,{type:"secondary",children:"Пожалуйста, выберите школу для управления настройками."})})}function TB({children:e}){const{isAuthenticated:t,isLoading:n}=nc(),r=fs();return n?g.jsx("div",{className:"flex items-center justify-center min-h-screen",children:"Loading..."}):t?e:g.jsx(cV,{to:"/login",state:{from:r},replace:!0})}function bot(){return g.jsx(lQe,{children:g.jsx(Ele,{children:g.jsx(Ole,{children:g.jsx(ple,{children:g.jsxs(Use,{children:[g.jsx(Rr,{path:"/login",element:g.jsx(Y_e,{})}),g.jsxs(Rr,{path:"/",element:g.jsx(TB,{children:g.jsx(wue,{})}),children:[g.jsx(Rr,{index:!0,element:g.jsx(Sue,{})}),g.jsx(Rr,{path:"schedule",element:g.jsx(Npe,{})}),g.jsx(Rr,{path:"materials",element:g.jsx(Mpe,{})}),g.jsx(Rr,{path:"diary",element:g.jsx(Dpe,{})}),g.jsx(Rr,{path:"reports",element:g.jsx(X_e,{})}),g.jsx(Rr,{path:"diagnostics",element:g.jsx(sQe,{})}),g.jsx(Rr,{path:"profile",element:g.jsx(tQe,{})}),g.jsx(Rr,{path:"u/:userId",element:g.jsx(nQe,{})}),g.jsx(Rr,{path:"group/face-registration",element:g.jsx(aQe,{})}),g.jsx(Rr,{path:"group/session",element:g.jsx(rQe,{})}),g.jsx(Rr,{path:"activity",element:g.jsx(zJe,{})})]}),g.jsxs(Rr,{path:"/admin",element:g.jsx(TB,{children:g.jsx(Xrt,{})}),children:[g.jsx(Rr,{index:!0,element:g.jsx(IB,{})}),g.jsx(Rr,{path:"analytics",element:g.jsx(IB,{})}),g.jsx(Rr,{path:"finance",element:g.jsx(rot,{})}),g.jsx(Rr,{path:"users",element:g.jsx(dot,{})}),g.jsx(Rr,{path:"schools",element:g.jsx(pot,{})}),g.jsx(Rr,{path:"integrations",element:g.jsx(sot,{})}),g.jsx(Rr,{path:"settings",element:g.jsx(yot,{})})]}),g.jsx(Rr,{path:"*",element:g.jsx(cV,{to:"/",replace:!0})})]})})})})})}var xC={},uoe={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})(uoe);var wC=uoe.exports,SC={};Object.defineProperty(SC,"__esModule",{value:!0});SC.default=void 0;var xot={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:"размер страницы"};SC.default=xot;var CC={},g0={},$C={},doe={exports:{}},foe={exports:{}},moe={exports:{}},hoe={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})(hoe);var poe=hoe.exports,goe={exports:{}};(function(e){var t=poe.default;function n(r,o){if(t(r)!="object"||!r)return r;var i=r[Symbol.toPrimitive];if(i!==void 0){var a=i.call(r,o||"default");if(t(a)!="object")return a;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})(goe);var wot=goe.exports;(function(e){var t=poe.default,n=wot;function r(o){var i=n(o,"string");return t(i)=="symbol"?i:i+""}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports})(moe);var Sot=moe.exports;(function(e){var t=Sot;function n(r,o,i){return(o=t(o))in r?Object.defineProperty(r,o,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[o]=i,r}e.exports=n,e.exports.__esModule=!0,e.exports.default=e.exports})(foe);var Cot=foe.exports;(function(e){var t=Cot;function n(o,i){var a=Object.keys(o);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(o);i&&(s=s.filter(function(l){return Object.getOwnPropertyDescriptor(o,l).enumerable})),a.push.apply(a,s)}return a}function r(o){for(var i=1;i<arguments.length;i++){var a=arguments[i]!=null?arguments[i]:{};i%2?n(Object(a),!0).forEach(function(s){t(o,s,a[s])}):Object.getOwnPropertyDescriptors?Object.defineProperties(o,Object.getOwnPropertyDescriptors(a)):n(Object(a)).forEach(function(s){Object.defineProperty(o,s,Object.getOwnPropertyDescriptor(a,s))})}return o}e.exports=r,e.exports.__esModule=!0,e.exports.default=e.exports})(doe);var $ot=doe.exports,EC={};Object.defineProperty(EC,"__esModule",{value:!0});EC.commonLocale=void 0;EC.commonLocale={yearFormat:"YYYY",dayFormat:"D",cellMeridiemFormat:"A",monthBeforeYear:!0};var Eot=wC.default;Object.defineProperty($C,"__esModule",{value:!0});$C.default=void 0;var MB=Eot($ot),Oot=EC,Pot=(0,MB.default)((0,MB.default)({},Oot.commonLocale),{},{locale:"ru_RU",today:"Сегодня",now:"Сейчас",backToToday:"Текущая дата",ok:"ОК",clear:"Очистить",week:"Неделя",month:"Месяц",year:"Год",timeSelect:"Выбрать время",dateSelect:"Выбрать дату",monthSelect:"Выбрать месяц",yearSelect:"Выбрать год",decadeSelect:"Выбрать десятилетие",dateFormat:"D-M-YYYY",dateTimeFormat:"D-M-YYYY HH:mm:ss",previousMonth:"Предыдущий месяц (PageUp)",nextMonth:"Следующий месяц (PageDown)",previousYear:"Предыдущий год (Control + left)",nextYear:"Следующий год (Control + right)",previousDecade:"Предыдущее десятилетие",nextDecade:"Следущее десятилетие",previousCentury:"Предыдущий век",nextCentury:"Следующий век"});$C.default=Pot;var v0={};Object.defineProperty(v0,"__esModule",{value:!0});v0.default=void 0;const jot={placeholder:"Выберите время",rangePlaceholder:["Время начала","Время окончания"]};v0.default=jot;var voe=wC.default;Object.defineProperty(g0,"__esModule",{value:!0});g0.default=void 0;var Iot=voe($C),_ot=voe(v0);const Not={lang:Object.assign({placeholder:"Выберите дату",yearPlaceholder:"Выберите год",quarterPlaceholder:"Выберите квартал",monthPlaceholder:"Выберите месяц",weekPlaceholder:"Выберите неделю",rangePlaceholder:["Начальная дата","Конечная дата"],rangeYearPlaceholder:["Начальный год","Год окончания"],rangeMonthPlaceholder:["Начальный месяц","Конечный месяц"],rangeWeekPlaceholder:["Начальная неделя","Конечная неделя"],shortWeekDays:["Вс","Пн","Вт","Ср","Чт","Пт","Сб"],shortMonths:["Янв","Фев","Мар","Апр","Май","Июн","Июл","Авг","Сен","Окт","Ноя","Дек"]},Iot.default),timePickerLocale:Object.assign({},_ot.default)};g0.default=Not;var Rot=wC.default;Object.defineProperty(CC,"__esModule",{value:!0});CC.default=void 0;var Tot=Rot(g0);CC.default=Tot.default;var OC=wC.default;Object.defineProperty(xC,"__esModule",{value:!0});xC.default=void 0;var Mot=OC(SC),kot=OC(CC),Aot=OC(g0),Dot=OC(v0);const va="${label} не является типом ${type}",Lot={locale:"ru",Pagination:Mot.default,DatePicker:Aot.default,TimePicker:Dot.default,Calendar:kot.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:"Удалить",selectAll:"Выбрать все данные",deselectAll:"Очистить все данные",selectCurrent:"Выбрать текущую страницу",selectInvert:"Инвертировать выбор",removeAll:"Удалить все данные",removeCurrent:"Удалить текущую страницу"},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:va,method:va,array:va,object:va,number:va,date:va,boolean:va,integer:va,float:va,regexp:va,email:va,url:va,hex:va},string:{len:"${label} должна быть ${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:"Обновить"},ColorPicker:{presetEmpty:"Пустой",transparent:"Прозрачный",singleColor:"Один цвет",gradientColor:"Градиент"}};xC.default=Lot;var zot=xC;const Fot=ho(zot);var Bot={exports:{}};(function(e,t){(function(n,r){e.exports=r(IQ)})(iu,function(n){function r(p){return p&&typeof p=="object"&&"default"in p?p:{default:p}}var o=r(n),i="января_февраля_марта_апреля_мая_июня_июля_августа_сентября_октября_ноября_декабря".split("_"),a="январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь".split("_"),s="янв._февр._мар._апр._мая_июня_июля_авг._сент._окт._нояб._дек.".split("_"),l="янв._февр._март_апр._май_июнь_июль_авг._сент._окт._нояб._дек.".split("_"),u=/D[oD]?(\[[^[\]]*\]|\s)+MMMM?/;function d(p,b,v){var y,x;return v==="m"?b?"минута":"минуту":p+" "+(y=+p,x={mm:b?"минута_минуты_минут":"минуту_минуты_минут",hh:"час_часа_часов",dd:"день_дня_дней",MM:"месяц_месяца_месяцев",yy:"год_года_лет"}[v].split("_"),y%10==1&&y%100!=11?x[0]:y%10>=2&&y%10<=4&&(y%100<10||y%100>=20)?x[1]:x[2])}var f=function(p,b){return u.test(b)?i[p.month()]:a[p.month()]};f.s=a,f.f=i;var m=function(p,b){return u.test(b)?s[p.month()]:l[p.month()]};m.s=l,m.f=s;var h={name:"ru",weekdays:"воскресенье_понедельник_вторник_среда_четверг_пятница_суббота".split("_"),weekdaysShort:"вск_пнд_втр_срд_чтв_птн_сбт".split("_"),weekdaysMin:"вс_пн_вт_ср_чт_пт_сб".split("_"),months:f,monthsShort:m,weekStart:1,yearStart:4,formats:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY г.",LLL:"D MMMM YYYY г., H:mm",LLLL:"dddd, D MMMM YYYY г., H:mm"},relativeTime:{future:"через %s",past:"%s назад",s:"несколько секунд",m:d,mm:d,h:"час",hh:d,d:"день",dd:d,M:"месяц",MM:d,y:"год",yy:d},ordinal:function(p){return p},meridiem:function(p){return p<4?"ночи":p<12?"утра":p<17?"дня":"вечера"}};return o.default.locale(h,null,!0),h})})(Bot);ti.locale("ru");GH(document.getElementById("root")).render(g.jsx(ce.StrictMode,{children:g.jsx(Ma,{locale:Fot,children:g.jsx(bot,{})})}));export{eo as $,uo as A,iU as B,qN as C,Co as D,ho as E,qo as F,gr as G,yit as H,bit as I,xa as J,git as K,Bi as L,xg as M,wv as N,dit as O,pit as P,xit as Q,wit as R,Pl as S,Xw as T,la as U,uit as V,Sit as W,sit as X,Ed as Y,qs as Z,Oit as _,Vr as a,Lw as a0,mX as a1,Bd as a2,vx as a3,CX as a4,gOe as a5,nOe as a6,bw as a7,SX as a8,hr as a9,Od as aA,Hv as aB,Uv as aC,Kv as aD,K4 as aE,cS as aF,Wd as aG,jv as aH,Dt as aI,mEe as aa,Nw as ab,_w as ac,fX as ad,yEe as ae,xo as af,km as ag,Mm as ah,Cq as ai,e4 as aj,H4 as ak,tOe as al,pOe as am,MX as an,PX as ao,Ov as ap,hje as aq,mje as ar,cit as as,wX as at,R_e as au,UG as av,z_e as aw,QX as ax,g as ay,wd as az,Bge as b,Zn as c,Ds as d,Fe as e,dh as f,vit as g,m4 as h,Jt as i,Kn as j,PEe as k,v4 as l,aCe as m,XR as n,GR as o,Ir as p,mit as q,c as r,ia as s,fit as t,$Ee as u,kv as v,gG as w,sCe as x,Qt as y,Kq as z};
