import{g as qr,a as m5}from"./dexie-Cs2B7S_s.js";function qk(n,e){for(var t=0;t<e.length;t++){const r=e[t];if(typeof r!="string"&&!Array.isArray(r)){for(const a in r)if(a!=="default"&&!(a in n)){const i=Object.getOwnPropertyDescriptor(r,a);i&&Object.defineProperty(n,a,i.get?i:{enumerable:!0,get:()=>r[a]})}}}return Object.freeze(Object.defineProperty(n,Symbol.toStringTag,{value:"Module"}))}var H0={exports:{}},Zd={};/**
 * @license React
 * react-jsx-runtime.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 tT;function v5(){if(tT)return Zd;tT=1;var n=Symbol.for("react.transitional.element"),e=Symbol.for("react.fragment");function t(r,a,i){var s=null;if(i!==void 0&&(s=""+i),a.key!==void 0&&(s=""+a.key),"key"in a){i={};for(var o in a)o!=="key"&&(i[o]=a[o])}else i=a;return a=i.ref,{$$typeof:n,type:r,key:s,ref:a!==void 0?a:null,props:i}}return Zd.Fragment=e,Zd.jsx=t,Zd.jsxs=t,Zd}var nT;function Xk(){return nT||(nT=1,H0.exports=v5()),H0.exports}var Re=Xk(),z0={exports:{}},Pt={};/**
 * @license React
 * react.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 rT;function b5(){if(rT)return Pt;rT=1;var n=Symbol.for("react.transitional.element"),e=Symbol.for("react.portal"),t=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),i=Symbol.for("react.consumer"),s=Symbol.for("react.context"),o=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),u=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),f=Symbol.iterator;function g(z){return z===null||typeof z!="object"?null:(z=f&&z[f]||z["@@iterator"],typeof z=="function"?z:null)}var p={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},b=Object.assign,y={};function x(z,V,j){this.props=z,this.context=V,this.refs=y,this.updater=j||p}x.prototype.isReactComponent={},x.prototype.setState=function(z,V){if(typeof z!="object"&&typeof z!="function"&&z!=null)throw Error("takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,z,V,"setState")},x.prototype.forceUpdate=function(z){this.updater.enqueueForceUpdate(this,z,"forceUpdate")};function S(){}S.prototype=x.prototype;function C(z,V,j){this.props=z,this.context=V,this.refs=y,this.updater=j||p}var O=C.prototype=new S;O.constructor=C,b(O,x.prototype),O.isPureReactComponent=!0;var D=Array.isArray,M={H:null,A:null,T:null,S:null,V:null},A=Object.prototype.hasOwnProperty;function T(z,V,j,q,G,U){return j=U.ref,{$$typeof:n,type:z,key:V,ref:j!==void 0?j:null,props:U}}function P(z,V){return T(z.type,V,void 0,void 0,void 0,z.props)}function R(z){return typeof z=="object"&&z!==null&&z.$$typeof===n}function N(z){var V={"=":"=0",":":"=2"};return"$"+z.replace(/[=:]/g,function(j){return V[j]})}var I=/\/+/g;function $(z,V){return typeof z=="object"&&z!==null&&z.key!=null?N(""+z.key):V.toString(36)}function Y(){}function k(z){switch(z.status){case"fulfilled":return z.value;case"rejected":throw z.reason;default:switch(typeof z.status=="string"?z.then(Y,Y):(z.status="pending",z.then(function(V){z.status==="pending"&&(z.status="fulfilled",z.value=V)},function(V){z.status==="pending"&&(z.status="rejected",z.reason=V)})),z.status){case"fulfilled":return z.value;case"rejected":throw z.reason}}throw z}function H(z,V,j,q,G){var U=typeof z;(U==="undefined"||U==="boolean")&&(z=null);var K=!1;if(z===null)K=!0;else switch(U){case"bigint":case"string":case"number":K=!0;break;case"object":switch(z.$$typeof){case n:case e:K=!0;break;case d:return K=z._init,H(K(z._payload),V,j,q,G)}}if(K)return G=G(z),K=q===""?"."+$(z,0):q,D(G)?(j="",K!=null&&(j=K.replace(I,"$&/")+"/"),H(G,V,j,"",function(ie){return ie})):G!=null&&(R(G)&&(G=P(G,j+(G.key==null||z&&z.key===G.key?"":(""+G.key).replace(I,"$&/")+"/")+K)),V.push(G)),1;K=0;var te=q===""?".":q+":";if(D(z))for(var ne=0;ne<z.length;ne++)q=z[ne],U=te+$(q,ne),K+=H(q,V,j,U,G);else if(ne=g(z),typeof ne=="function")for(z=ne.call(z),ne=0;!(q=z.next()).done;)q=q.value,U=te+$(q,ne++),K+=H(q,V,j,U,G);else if(U==="object"){if(typeof z.then=="function")return H(k(z),V,j,q,G);throw V=String(z),Error("Objects are not valid as a React child (found: "+(V==="[object Object]"?"object with keys {"+Object.keys(z).join(", ")+"}":V)+"). If you meant to render a collection of children, use an array instead.")}return K}function F(z,V,j){if(z==null)return z;var q=[],G=0;return H(z,q,"","",function(U){return V.call(j,U,G++)}),q}function B(z){if(z._status===-1){var V=z._result;V=V(),V.then(function(j){(z._status===0||z._status===-1)&&(z._status=1,z._result=j)},function(j){(z._status===0||z._status===-1)&&(z._status=2,z._result=j)}),z._status===-1&&(z._status=0,z._result=V)}if(z._status===1)return z._result.default;throw z._result}var X=typeof reportError=="function"?reportError:function(z){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var V=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof z=="object"&&z!==null&&typeof z.message=="string"?String(z.message):String(z),error:z});if(!window.dispatchEvent(V))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",z);return}console.error(z)};function Q(){}return Pt.Children={map:F,forEach:function(z,V,j){F(z,function(){V.apply(this,arguments)},j)},count:function(z){var V=0;return F(z,function(){V++}),V},toArray:function(z){return F(z,function(V){return V})||[]},only:function(z){if(!R(z))throw Error("React.Children.only expected to receive a single React element child.");return z}},Pt.Component=x,Pt.Fragment=t,Pt.Profiler=a,Pt.PureComponent=C,Pt.StrictMode=r,Pt.Suspense=l,Pt.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=M,Pt.__COMPILER_RUNTIME={__proto__:null,c:function(z){return M.H.useMemoCache(z)}},Pt.cache=function(z){return function(){return z.apply(null,arguments)}},Pt.cloneElement=function(z,V,j){if(z==null)throw Error("The argument must be a React element, but you passed "+z+".");var q=b({},z.props),G=z.key,U=void 0;if(V!=null)for(K in V.ref!==void 0&&(U=void 0),V.key!==void 0&&(G=""+V.key),V)!A.call(V,K)||K==="key"||K==="__self"||K==="__source"||K==="ref"&&V.ref===void 0||(q[K]=V[K]);var K=arguments.length-2;if(K===1)q.children=j;else if(1<K){for(var te=Array(K),ne=0;ne<K;ne++)te[ne]=arguments[ne+2];q.children=te}return T(z.type,G,void 0,void 0,U,q)},Pt.createContext=function(z){return z={$$typeof:s,_currentValue:z,_currentValue2:z,_threadCount:0,Provider:null,Consumer:null},z.Provider=z,z.Consumer={$$typeof:i,_context:z},z},Pt.createElement=function(z,V,j){var q,G={},U=null;if(V!=null)for(q in V.key!==void 0&&(U=""+V.key),V)A.call(V,q)&&q!=="key"&&q!=="__self"&&q!=="__source"&&(G[q]=V[q]);var K=arguments.length-2;if(K===1)G.children=j;else if(1<K){for(var te=Array(K),ne=0;ne<K;ne++)te[ne]=arguments[ne+2];G.children=te}if(z&&z.defaultProps)for(q in K=z.defaultProps,K)G[q]===void 0&&(G[q]=K[q]);return T(z,U,void 0,void 0,null,G)},Pt.createRef=function(){return{current:null}},Pt.forwardRef=function(z){return{$$typeof:o,render:z}},Pt.isValidElement=R,Pt.lazy=function(z){return{$$typeof:d,_payload:{_status:-1,_result:z},_init:B}},Pt.memo=function(z,V){return{$$typeof:u,type:z,compare:V===void 0?null:V}},Pt.startTransition=function(z){var V=M.T,j={};M.T=j;try{var q=z(),G=M.S;G!==null&&G(j,q),typeof q=="object"&&q!==null&&typeof q.then=="function"&&q.then(Q,X)}catch(U){X(U)}finally{M.T=V}},Pt.unstable_useCacheRefresh=function(){return M.H.useCacheRefresh()},Pt.use=function(z){return M.H.use(z)},Pt.useActionState=function(z,V,j){return M.H.useActionState(z,V,j)},Pt.useCallback=function(z,V){return M.H.useCallback(z,V)},Pt.useContext=function(z){return M.H.useContext(z)},Pt.useDebugValue=function(){},Pt.useDeferredValue=function(z,V){return M.H.useDeferredValue(z,V)},Pt.useEffect=function(z,V,j){var q=M.H;if(typeof j=="function")throw Error("useEffect CRUD overload is not enabled in this build of React.");return q.useEffect(z,V)},Pt.useId=function(){return M.H.useId()},Pt.useImperativeHandle=function(z,V,j){return M.H.useImperativeHandle(z,V,j)},Pt.useInsertionEffect=function(z,V){return M.H.useInsertionEffect(z,V)},Pt.useLayoutEffect=function(z,V){return M.H.useLayoutEffect(z,V)},Pt.useMemo=function(z,V){return M.H.useMemo(z,V)},Pt.useOptimistic=function(z,V){return M.H.useOptimistic(z,V)},Pt.useReducer=function(z,V,j){return M.H.useReducer(z,V,j)},Pt.useRef=function(z){return M.H.useRef(z)},Pt.useState=function(z){return M.H.useState(z)},Pt.useSyncExternalStore=function(z,V,j){return M.H.useSyncExternalStore(z,V,j)},Pt.useTransition=function(){return M.H.useTransition()},Pt.version="19.1.1",Pt}var aT;function ii(){return aT||(aT=1,z0.exports=b5()),z0.exports}var E=ii();const pe=qr(E),av=qk({__proto__:null,default:pe},[E]);var B0={exports:{}},Qd={},Y0={exports:{}},j0={};/**
 * @license React
 * scheduler.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 iT;function y5(){return iT||(iT=1,(function(n){function e(F,B){var X=F.length;F.push(B);e:for(;0<X;){var Q=X-1>>>1,z=F[Q];if(0<a(z,B))F[Q]=B,F[X]=z,X=Q;else break e}}function t(F){return F.length===0?null:F[0]}function r(F){if(F.length===0)return null;var B=F[0],X=F.pop();if(X!==B){F[0]=X;e:for(var Q=0,z=F.length,V=z>>>1;Q<V;){var j=2*(Q+1)-1,q=F[j],G=j+1,U=F[G];if(0>a(q,X))G<z&&0>a(U,q)?(F[Q]=U,F[G]=X,Q=G):(F[Q]=q,F[j]=X,Q=j);else if(G<z&&0>a(U,X))F[Q]=U,F[G]=X,Q=G;else break e}}return B}function a(F,B){var X=F.sortIndex-B.sortIndex;return X!==0?X:F.id-B.id}if(n.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var i=performance;n.unstable_now=function(){return i.now()}}else{var s=Date,o=s.now();n.unstable_now=function(){return s.now()-o}}var l=[],u=[],d=1,f=null,g=3,p=!1,b=!1,y=!1,x=!1,S=typeof setTimeout=="function"?setTimeout:null,C=typeof clearTimeout=="function"?clearTimeout:null,O=typeof setImmediate<"u"?setImmediate:null;function D(F){for(var B=t(u);B!==null;){if(B.callback===null)r(u);else if(B.startTime<=F)r(u),B.sortIndex=B.expirationTime,e(l,B);else break;B=t(u)}}function M(F){if(y=!1,D(F),!b)if(t(l)!==null)b=!0,A||(A=!0,$());else{var B=t(u);B!==null&&H(M,B.startTime-F)}}var A=!1,T=-1,P=5,R=-1;function N(){return x?!0:!(n.unstable_now()-R<P)}function I(){if(x=!1,A){var F=n.unstable_now();R=F;var B=!0;try{e:{b=!1,y&&(y=!1,C(T),T=-1),p=!0;var X=g;try{t:{for(D(F),f=t(l);f!==null&&!(f.expirationTime>F&&N());){var Q=f.callback;if(typeof Q=="function"){f.callback=null,g=f.priorityLevel;var z=Q(f.expirationTime<=F);if(F=n.unstable_now(),typeof z=="function"){f.callback=z,D(F),B=!0;break t}f===t(l)&&r(l),D(F)}else r(l);f=t(l)}if(f!==null)B=!0;else{var V=t(u);V!==null&&H(M,V.startTime-F),B=!1}}break e}finally{f=null,g=X,p=!1}B=void 0}}finally{B?$():A=!1}}}var $;if(typeof O=="function")$=function(){O(I)};else if(typeof MessageChannel<"u"){var Y=new MessageChannel,k=Y.port2;Y.port1.onmessage=I,$=function(){k.postMessage(null)}}else $=function(){S(I,0)};function H(F,B){T=S(function(){F(n.unstable_now())},B)}n.unstable_IdlePriority=5,n.unstable_ImmediatePriority=1,n.unstable_LowPriority=4,n.unstable_NormalPriority=3,n.unstable_Profiling=null,n.unstable_UserBlockingPriority=2,n.unstable_cancelCallback=function(F){F.callback=null},n.unstable_forceFrameRate=function(F){0>F||125<F?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):P=0<F?Math.floor(1e3/F):5},n.unstable_getCurrentPriorityLevel=function(){return g},n.unstable_next=function(F){switch(g){case 1:case 2:case 3:var B=3;break;default:B=g}var X=g;g=B;try{return F()}finally{g=X}},n.unstable_requestPaint=function(){x=!0},n.unstable_runWithPriority=function(F,B){switch(F){case 1:case 2:case 3:case 4:case 5:break;default:F=3}var X=g;g=F;try{return B()}finally{g=X}},n.unstable_scheduleCallback=function(F,B,X){var Q=n.unstable_now();switch(typeof X=="object"&&X!==null?(X=X.delay,X=typeof X=="number"&&0<X?Q+X:Q):X=Q,F){case 1:var z=-1;break;case 2:z=250;break;case 5:z=1073741823;break;case 4:z=1e4;break;default:z=5e3}return z=X+z,F={id:d++,callback:B,priorityLevel:F,startTime:X,expirationTime:z,sortIndex:-1},X>Q?(F.sortIndex=X,e(u,F),t(l)===null&&F===t(u)&&(y?(C(T),T=-1):y=!0,H(M,X-Q))):(F.sortIndex=z,e(l,F),b||p||(b=!0,A||(A=!0,$()))),F},n.unstable_shouldYield=N,n.unstable_wrapCallback=function(F){var B=g;return function(){var X=g;g=B;try{return F.apply(this,arguments)}finally{g=X}}}})(j0)),j0}var sT;function x5(){return sT||(sT=1,Y0.exports=y5()),Y0.exports}var W0={exports:{}},Kr={};/**
 * @license React
 * react-dom.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 oT;function w5(){if(oT)return Kr;oT=1;var n=ii();function e(l){var u="https://react.dev/errors/"+l;if(1<arguments.length){u+="?args[]="+encodeURIComponent(arguments[1]);for(var d=2;d<arguments.length;d++)u+="&args[]="+encodeURIComponent(arguments[d])}return"Minified React error #"+l+"; visit "+u+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function t(){}var r={d:{f:t,r:function(){throw Error(e(522))},D:t,C:t,L:t,m:t,X:t,S:t,M:t},p:0,findDOMNode:null},a=Symbol.for("react.portal");function i(l,u,d){var f=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:a,key:f==null?null:""+f,children:l,containerInfo:u,implementation:d}}var s=n.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function o(l,u){if(l==="font")return"";if(typeof u=="string")return u==="use-credentials"?u:""}return Kr.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=r,Kr.createPortal=function(l,u){var d=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!u||u.nodeType!==1&&u.nodeType!==9&&u.nodeType!==11)throw Error(e(299));return i(l,u,null,d)},Kr.flushSync=function(l){var u=s.T,d=r.p;try{if(s.T=null,r.p=2,l)return l()}finally{s.T=u,r.p=d,r.d.f()}},Kr.preconnect=function(l,u){typeof l=="string"&&(u?(u=u.crossOrigin,u=typeof u=="string"?u==="use-credentials"?u:"":void 0):u=null,r.d.C(l,u))},Kr.prefetchDNS=function(l){typeof l=="string"&&r.d.D(l)},Kr.preinit=function(l,u){if(typeof l=="string"&&u&&typeof u.as=="string"){var d=u.as,f=o(d,u.crossOrigin),g=typeof u.integrity=="string"?u.integrity:void 0,p=typeof u.fetchPriority=="string"?u.fetchPriority:void 0;d==="style"?r.d.S(l,typeof u.precedence=="string"?u.precedence:void 0,{crossOrigin:f,integrity:g,fetchPriority:p}):d==="script"&&r.d.X(l,{crossOrigin:f,integrity:g,fetchPriority:p,nonce:typeof u.nonce=="string"?u.nonce:void 0})}},Kr.preinitModule=function(l,u){if(typeof l=="string")if(typeof u=="object"&&u!==null){if(u.as==null||u.as==="script"){var d=o(u.as,u.crossOrigin);r.d.M(l,{crossOrigin:d,integrity:typeof u.integrity=="string"?u.integrity:void 0,nonce:typeof u.nonce=="string"?u.nonce:void 0})}}else u==null&&r.d.M(l)},Kr.preload=function(l,u){if(typeof l=="string"&&typeof u=="object"&&u!==null&&typeof u.as=="string"){var d=u.as,f=o(d,u.crossOrigin);r.d.L(l,d,{crossOrigin:f,integrity:typeof u.integrity=="string"?u.integrity:void 0,nonce:typeof u.nonce=="string"?u.nonce:void 0,type:typeof u.type=="string"?u.type:void 0,fetchPriority:typeof u.fetchPriority=="string"?u.fetchPriority:void 0,referrerPolicy:typeof u.referrerPolicy=="string"?u.referrerPolicy:void 0,imageSrcSet:typeof u.imageSrcSet=="string"?u.imageSrcSet:void 0,imageSizes:typeof u.imageSizes=="string"?u.imageSizes:void 0,media:typeof u.media=="string"?u.media:void 0})}},Kr.preloadModule=function(l,u){if(typeof l=="string")if(u){var d=o(u.as,u.crossOrigin);r.d.m(l,{as:typeof u.as=="string"&&u.as!=="script"?u.as:void 0,crossOrigin:d,integrity:typeof u.integrity=="string"?u.integrity:void 0})}else r.d.m(l)},Kr.requestFormReset=function(l){r.d.r(l)},Kr.unstable_batchedUpdates=function(l,u){return l(u)},Kr.useFormState=function(l,u,d){return s.H.useFormState(l,u,d)},Kr.useFormStatus=function(){return s.H.useHostTransitionStatus()},Kr.version="19.1.1",Kr}var lT;function Vk(){if(lT)return W0.exports;lT=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}return n(),W0.exports=w5(),W0.exports}/**
 * @license React
 * react-dom-client.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 cT;function S5(){if(cT)return Qd;cT=1;var n=x5(),e=ii(),t=Vk();function r(c){var h="https://react.dev/errors/"+c;if(1<arguments.length){h+="?args[]="+encodeURIComponent(arguments[1]);for(var m=2;m<arguments.length;m++)h+="&args[]="+encodeURIComponent(arguments[m])}return"Minified React error #"+c+"; visit "+h+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function a(c){return!(!c||c.nodeType!==1&&c.nodeType!==9&&c.nodeType!==11)}function i(c){var h=c,m=c;if(c.alternate)for(;h.return;)h=h.return;else{c=h;do h=c,(h.flags&4098)!==0&&(m=h.return),c=h.return;while(c)}return h.tag===3?m:null}function s(c){if(c.tag===13){var h=c.memoizedState;if(h===null&&(c=c.alternate,c!==null&&(h=c.memoizedState)),h!==null)return h.dehydrated}return null}function o(c){if(i(c)!==c)throw Error(r(188))}function l(c){var h=c.alternate;if(!h){if(h=i(c),h===null)throw Error(r(188));return h!==c?null:c}for(var m=c,w=h;;){var _=m.return;if(_===null)break;var L=_.alternate;if(L===null){if(w=_.return,w!==null){m=w;continue}break}if(_.child===L.child){for(L=_.child;L;){if(L===m)return o(_),c;if(L===w)return o(_),h;L=L.sibling}throw Error(r(188))}if(m.return!==w.return)m=_,w=L;else{for(var W=!1,Z=_.child;Z;){if(Z===m){W=!0,m=_,w=L;break}if(Z===w){W=!0,w=_,m=L;break}Z=Z.sibling}if(!W){for(Z=L.child;Z;){if(Z===m){W=!0,m=L,w=_;break}if(Z===w){W=!0,w=L,m=_;break}Z=Z.sibling}if(!W)throw Error(r(189))}}if(m.alternate!==w)throw Error(r(190))}if(m.tag!==3)throw Error(r(188));return m.stateNode.current===m?c:h}function u(c){var h=c.tag;if(h===5||h===26||h===27||h===6)return c;for(c=c.child;c!==null;){if(h=u(c),h!==null)return h;c=c.sibling}return null}var d=Object.assign,f=Symbol.for("react.element"),g=Symbol.for("react.transitional.element"),p=Symbol.for("react.portal"),b=Symbol.for("react.fragment"),y=Symbol.for("react.strict_mode"),x=Symbol.for("react.profiler"),S=Symbol.for("react.provider"),C=Symbol.for("react.consumer"),O=Symbol.for("react.context"),D=Symbol.for("react.forward_ref"),M=Symbol.for("react.suspense"),A=Symbol.for("react.suspense_list"),T=Symbol.for("react.memo"),P=Symbol.for("react.lazy"),R=Symbol.for("react.activity"),N=Symbol.for("react.memo_cache_sentinel"),I=Symbol.iterator;function $(c){return c===null||typeof c!="object"?null:(c=I&&c[I]||c["@@iterator"],typeof c=="function"?c:null)}var Y=Symbol.for("react.client.reference");function k(c){if(c==null)return null;if(typeof c=="function")return c.$$typeof===Y?null:c.displayName||c.name||null;if(typeof c=="string")return c;switch(c){case b:return"Fragment";case x:return"Profiler";case y:return"StrictMode";case M:return"Suspense";case A:return"SuspenseList";case R:return"Activity"}if(typeof c=="object")switch(c.$$typeof){case p:return"Portal";case O:return(c.displayName||"Context")+".Provider";case C:return(c._context.displayName||"Context")+".Consumer";case D:var h=c.render;return c=c.displayName,c||(c=h.displayName||h.name||"",c=c!==""?"ForwardRef("+c+")":"ForwardRef"),c;case T:return h=c.displayName||null,h!==null?h:k(c.type)||"Memo";case P:h=c._payload,c=c._init;try{return k(c(h))}catch{}}return null}var H=Array.isArray,F=e.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,B=t.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,X={pending:!1,data:null,method:null,action:null},Q=[],z=-1;function V(c){return{current:c}}function j(c){0>z||(c.current=Q[z],Q[z]=null,z--)}function q(c,h){z++,Q[z]=c.current,c.current=h}var G=V(null),U=V(null),K=V(null),te=V(null);function ne(c,h){switch(q(K,h),q(U,c),q(G,null),h.nodeType){case 9:case 11:c=(c=h.documentElement)&&(c=c.namespaceURI)?AA(c):0;break;default:if(c=h.tagName,h=h.namespaceURI)h=AA(h),c=TA(h,c);else switch(c){case"svg":c=1;break;case"math":c=2;break;default:c=0}}j(G),q(G,c)}function ie(){j(G),j(U),j(K)}function ce(c){c.memoizedState!==null&&q(te,c);var h=G.current,m=TA(h,c.type);h!==m&&(q(U,c),q(G,m))}function ue(c){U.current===c&&(j(G),j(U)),te.current===c&&(j(te),qd._currentValue=X)}var be=Object.prototype.hasOwnProperty,me=n.unstable_scheduleCallback,ye=n.unstable_cancelCallback,De=n.unstable_shouldYield,Ce=n.unstable_requestPaint,Le=n.unstable_now,Ne=n.unstable_getCurrentPriorityLevel,Ve=n.unstable_ImmediatePriority,ze=n.unstable_UserBlockingPriority,$e=n.unstable_NormalPriority,Be=n.unstable_LowPriority,ut=n.unstable_IdlePriority,He=n.log,Qe=n.unstable_setDisableYieldValue,Ee=null,st=null;function ht(c){if(typeof He=="function"&&Qe(c),st&&typeof st.setStrictMode=="function")try{st.setStrictMode(Ee,c)}catch{}}var at=Math.clz32?Math.clz32:Ue,Ut=Math.log,Nt=Math.LN2;function Ue(c){return c>>>=0,c===0?32:31-(Ut(c)/Nt|0)|0}var yt=256,Pe=4194304;function Fe(c){var h=c&42;if(h!==0)return h;switch(c&-c){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return c&4194048;case 4194304:case 8388608:case 16777216:case 33554432:return c&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return c}}function We(c,h,m){var w=c.pendingLanes;if(w===0)return 0;var _=0,L=c.suspendedLanes,W=c.pingedLanes;c=c.warmLanes;var Z=w&134217727;return Z!==0?(w=Z&~L,w!==0?_=Fe(w):(W&=Z,W!==0?_=Fe(W):m||(m=Z&~c,m!==0&&(_=Fe(m))))):(Z=w&~L,Z!==0?_=Fe(Z):W!==0?_=Fe(W):m||(m=w&~c,m!==0&&(_=Fe(m)))),_===0?0:h!==0&&h!==_&&(h&L)===0&&(L=_&-_,m=h&-h,L>=m||L===32&&(m&4194048)!==0)?h:_}function we(c,h){return(c.pendingLanes&~(c.suspendedLanes&~c.pingedLanes)&h)===0}function Ie(c,h){switch(c){case 1:case 2:case 4:case 8:case 64:return h+250;case 16:case 32:case 128:case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:return h+5e3;case 4194304:case 8388608:case 16777216:case 33554432:return-1;case 67108864:case 134217728:case 268435456:case 536870912:case 1073741824:return-1;default:return-1}}function Dt(){var c=yt;return yt<<=1,(yt&4194048)===0&&(yt=256),c}function At(){var c=Pe;return Pe<<=1,(Pe&62914560)===0&&(Pe=4194304),c}function Tt(c){for(var h=[],m=0;31>m;m++)h.push(c);return h}function vn(c,h){c.pendingLanes|=h,h!==268435456&&(c.suspendedLanes=0,c.pingedLanes=0,c.warmLanes=0)}function un(c,h,m,w,_,L){var W=c.pendingLanes;c.pendingLanes=m,c.suspendedLanes=0,c.pingedLanes=0,c.warmLanes=0,c.expiredLanes&=m,c.entangledLanes&=m,c.errorRecoveryDisabledLanes&=m,c.shellSuspendCounter=0;var Z=c.entanglements,J=c.expirationTimes,fe=c.hiddenUpdates;for(m=W&~m;0<m;){var Se=31-at(m),Me=1<<Se;Z[Se]=0,J[Se]=-1;var he=fe[Se];if(he!==null)for(fe[Se]=null,Se=0;Se<he.length;Se++){var ge=he[Se];ge!==null&&(ge.lane&=-536870913)}m&=~Me}w!==0&&Jt(c,w,0),L!==0&&_===0&&c.tag!==0&&(c.suspendedLanes|=L&~(W&~h))}function Jt(c,h,m){c.pendingLanes|=h,c.suspendedLanes&=~h;var w=31-at(h);c.entangledLanes|=h,c.entanglements[w]=c.entanglements[w]|1073741824|m&4194090}function It(c,h){var m=c.entangledLanes|=h;for(c=c.entanglements;m;){var w=31-at(m),_=1<<w;_&h|c[w]&h&&(c[w]|=h),m&=~_}}function Ct(c){switch(c){case 2:c=1;break;case 8:c=4;break;case 32:c=16;break;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:case 262144:case 524288:case 1048576:case 2097152:case 4194304:case 8388608:case 16777216:case 33554432:c=128;break;case 268435456:c=134217728;break;default:c=0}return c}function Ge(c){return c&=-c,2<c?8<c?(c&134217727)!==0?32:268435456:8:2}function ot(){var c=B.p;return c!==0?c:(c=window.event,c===void 0?32:GA(c.type))}function it(c,h){var m=B.p;try{return B.p=c,h()}finally{B.p=m}}var nt=Math.random().toString(36).slice(2),gt="__reactFiber$"+nt,jt="__reactProps$"+nt,rn="__reactContainer$"+nt,en="__reactEvents$"+nt,dr="__reactListeners$"+nt,fr="__reactHandles$"+nt,zt="__reactResources$"+nt,Gt="__reactMarker$"+nt;function Sn(c){delete c[gt],delete c[jt],delete c[en],delete c[dr],delete c[fr]}function sn(c){var h=c[gt];if(h)return h;for(var m=c.parentNode;m;){if(h=m[rn]||m[gt]){if(m=h.alternate,h.child!==null||m!==null&&m.child!==null)for(c=NA(c);c!==null;){if(m=c[gt])return m;c=NA(c)}return h}c=m,m=c.parentNode}return null}function Pn(c){if(c=c[gt]||c[rn]){var h=c.tag;if(h===5||h===6||h===13||h===26||h===27||h===3)return c}return null}function Ln(c){var h=c.tag;if(h===5||h===26||h===27||h===6)return c.stateNode;throw Error(r(33))}function Cn(c){var h=c[zt];return h||(h=c[zt]={hoistableStyles:new Map,hoistableScripts:new Map}),h}function Et(c){c[Gt]=!0}var Qn=new Set,Bn={};function qn(c,h){Rt(c,h),Rt(c+"Capture",h)}function Rt(c,h){for(Bn[c]=h,c=0;c<h.length;c++)Qn.add(h[c])}var Pr=RegExp("^[:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD][:A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD\\-.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040]*$"),Lr={},rr={};function ar(c){return be.call(rr,c)?!0:be.call(Lr,c)?!1:Pr.test(c)?rr[c]=!0:(Lr[c]=!0,!1)}function ir(c,h,m){if(ar(h))if(m===null)c.removeAttribute(h);else{switch(typeof m){case"undefined":case"function":case"symbol":c.removeAttribute(h);return;case"boolean":var w=h.toLowerCase().slice(0,5);if(w!=="data-"&&w!=="aria-"){c.removeAttribute(h);return}}c.setAttribute(h,""+m)}}function Sr(c,h,m){if(m===null)c.removeAttribute(h);else{switch(typeof m){case"undefined":case"function":case"symbol":case"boolean":c.removeAttribute(h);return}c.setAttribute(h,""+m)}}function Yn(c,h,m,w){if(w===null)c.removeAttribute(m);else{switch(typeof w){case"undefined":case"function":case"symbol":case"boolean":c.removeAttribute(m);return}c.setAttributeNS(h,m,""+w)}}var Xr,sr;function Xn(c){if(Xr===void 0)try{throw Error()}catch(m){var h=m.stack.trim().match(/\n( *(at )?)/);Xr=h&&h[1]||"",sr=-1<m.stack.indexOf(`
    at`)?" (<anonymous>)":-1<m.stack.indexOf("@")?"@unknown:0:0":""}return`
`+Xr+c+sr}var Nr=!1;function hr(c,h){if(!c||Nr)return"";Nr=!0;var m=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var w={DetermineComponentFrameRoot:function(){try{if(h){var Me=function(){throw Error()};if(Object.defineProperty(Me.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(Me,[])}catch(ge){var he=ge}Reflect.construct(c,[],Me)}else{try{Me.call()}catch(ge){he=ge}c.call(Me.prototype)}}else{try{throw Error()}catch(ge){he=ge}(Me=c())&&typeof Me.catch=="function"&&Me.catch(function(){})}}catch(ge){if(ge&&he&&typeof ge.stack=="string")return[ge.stack,he.stack]}return[null,null]}};w.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var _=Object.getOwnPropertyDescriptor(w.DetermineComponentFrameRoot,"name");_&&_.configurable&&Object.defineProperty(w.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var L=w.DetermineComponentFrameRoot(),W=L[0],Z=L[1];if(W&&Z){var J=W.split(`
`),fe=Z.split(`
`);for(_=w=0;w<J.length&&!J[w].includes("DetermineComponentFrameRoot");)w++;for(;_<fe.length&&!fe[_].includes("DetermineComponentFrameRoot");)_++;if(w===J.length||_===fe.length)for(w=J.length-1,_=fe.length-1;1<=w&&0<=_&&J[w]!==fe[_];)_--;for(;1<=w&&0<=_;w--,_--)if(J[w]!==fe[_]){if(w!==1||_!==1)do if(w--,_--,0>_||J[w]!==fe[_]){var Se=`
`+J[w].replace(" at new "," at ");return c.displayName&&Se.includes("<anonymous>")&&(Se=Se.replace("<anonymous>",c.displayName)),Se}while(1<=w&&0<=_);break}}}finally{Nr=!1,Error.prepareStackTrace=m}return(m=c?c.displayName||c.name:"")?Xn(m):""}function aa(c){switch(c.tag){case 26:case 27:case 5:return Xn(c.type);case 16:return Xn("Lazy");case 13:return Xn("Suspense");case 19:return Xn("SuspenseList");case 0:case 15:return hr(c.type,!1);case 11:return hr(c.type.render,!1);case 1:return hr(c.type,!0);case 31:return Xn("Activity");default:return""}}function Ir(c){try{var h="";do h+=aa(c),c=c.return;while(c);return h}catch(m){return`
Error generating stack: `+m.message+`
`+m.stack}}function on(c){switch(typeof c){case"bigint":case"boolean":case"number":case"string":case"undefined":return c;case"object":return c;default:return""}}function gr(c){var h=c.type;return(c=c.nodeName)&&c.toLowerCase()==="input"&&(h==="checkbox"||h==="radio")}function Cr(c){var h=gr(c)?"checked":"value",m=Object.getOwnPropertyDescriptor(c.constructor.prototype,h),w=""+c[h];if(!c.hasOwnProperty(h)&&typeof m<"u"&&typeof m.get=="function"&&typeof m.set=="function"){var _=m.get,L=m.set;return Object.defineProperty(c,h,{configurable:!0,get:function(){return _.call(this)},set:function(W){w=""+W,L.call(this,W)}}),Object.defineProperty(c,h,{enumerable:m.enumerable}),{getValue:function(){return w},setValue:function(W){w=""+W},stopTracking:function(){c._valueTracker=null,delete c[h]}}}}function Kn(c){c._valueTracker||(c._valueTracker=Cr(c))}function Vr(c){if(!c)return!1;var h=c._valueTracker;if(!h)return!0;var m=h.getValue(),w="";return c&&(w=gr(c)?c.checked?"true":"false":c.value),c=w,c!==m?(h.setValue(c),!0):!1}function Ur(c){if(c=c||(typeof document<"u"?document:void 0),typeof c>"u")return null;try{return c.activeElement||c.body}catch{return c.body}}var fa=/[\n"\\]/g;function In(c){return c.replace(fa,function(h){return"\\"+h.charCodeAt(0).toString(16)+" "})}function Gr(c,h,m,w,_,L,W,Z){c.name="",W!=null&&typeof W!="function"&&typeof W!="symbol"&&typeof W!="boolean"?c.type=W:c.removeAttribute("type"),h!=null?W==="number"?(h===0&&c.value===""||c.value!=h)&&(c.value=""+on(h)):c.value!==""+on(h)&&(c.value=""+on(h)):W!=="submit"&&W!=="reset"||c.removeAttribute("value"),h!=null?lt(c,W,on(h)):m!=null?lt(c,W,on(m)):w!=null&&c.removeAttribute("value"),_==null&&L!=null&&(c.defaultChecked=!!L),_!=null&&(c.checked=_&&typeof _!="function"&&typeof _!="symbol"),Z!=null&&typeof Z!="function"&&typeof Z!="symbol"&&typeof Z!="boolean"?c.name=""+on(Z):c.removeAttribute("name")}function pt(c,h,m,w,_,L,W,Z){if(L!=null&&typeof L!="function"&&typeof L!="symbol"&&typeof L!="boolean"&&(c.type=L),h!=null||m!=null){if(!(L!=="submit"&&L!=="reset"||h!=null))return;m=m!=null?""+on(m):"",h=h!=null?""+on(h):m,Z||h===c.value||(c.value=h),c.defaultValue=h}w=w??_,w=typeof w!="function"&&typeof w!="symbol"&&!!w,c.checked=Z?c.checked:!!w,c.defaultChecked=!!w,W!=null&&typeof W!="function"&&typeof W!="symbol"&&typeof W!="boolean"&&(c.name=W)}function lt(c,h,m){h==="number"&&Ur(c.ownerDocument)===c||c.defaultValue===""+m||(c.defaultValue=""+m)}function gn(c,h,m,w){if(c=c.options,h){h={};for(var _=0;_<m.length;_++)h["$"+m[_]]=!0;for(m=0;m<c.length;m++)_=h.hasOwnProperty("$"+c[m].value),c[m].selected!==_&&(c[m].selected=_),_&&w&&(c[m].defaultSelected=!0)}else{for(m=""+on(m),h=null,_=0;_<c.length;_++){if(c[_].value===m){c[_].selected=!0,w&&(c[_].defaultSelected=!0);return}h!==null||c[_].disabled||(h=c[_])}h!==null&&(h.selected=!0)}}function Jn(c,h,m){if(h!=null&&(h=""+on(h),h!==c.value&&(c.value=h),m==null)){c.defaultValue!==h&&(c.defaultValue=h);return}c.defaultValue=m!=null?""+on(m):""}function ia(c,h,m,w){if(h==null){if(w!=null){if(m!=null)throw Error(r(92));if(H(w)){if(1<w.length)throw Error(r(93));w=w[0]}m=w}m==null&&(m=""),h=m}m=on(h),c.defaultValue=m,w=c.textContent,w===m&&w!==""&&w!==null&&(c.value=w)}function $r(c,h){if(h){var m=c.firstChild;if(m&&m===c.lastChild&&m.nodeType===3){m.nodeValue=h;return}}c.textContent=h}var si=new Set("animationIterationCount aspectRatio borderImageOutset borderImageSlice borderImageWidth boxFlex boxFlexGroup boxOrdinalGroup columnCount columns flex flexGrow flexPositive flexShrink flexNegative flexOrder gridArea gridRow gridRowEnd gridRowSpan gridRowStart gridColumn gridColumnEnd gridColumnSpan gridColumnStart fontWeight lineClamp lineHeight opacity order orphans scale tabSize widows zIndex zoom fillOpacity floodOpacity stopOpacity strokeDasharray strokeDashoffset strokeMiterlimit strokeOpacity strokeWidth MozAnimationIterationCount MozBoxFlex MozBoxFlexGroup MozLineClamp msAnimationIterationCount msFlex msZoom msFlexGrow msFlexNegative msFlexOrder msFlexPositive msFlexShrink msGridColumn msGridColumnSpan msGridRow msGridRowSpan WebkitAnimationIterationCount WebkitBoxFlex WebKitBoxFlexGroup WebkitBoxOrdinalGroup WebkitColumnCount WebkitColumns WebkitFlex WebkitFlexGrow WebkitFlexPositive WebkitFlexShrink WebkitLineClamp".split(" "));function za(c,h,m){var w=h.indexOf("--")===0;m==null||typeof m=="boolean"||m===""?w?c.setProperty(h,""):h==="float"?c.cssFloat="":c[h]="":w?c.setProperty(h,m):typeof m!="number"||m===0||si.has(h)?h==="float"?c.cssFloat=m:c[h]=(""+m).trim():c[h]=m+"px"}function Mt(c,h,m){if(h!=null&&typeof h!="object")throw Error(r(62));if(c=c.style,m!=null){for(var w in m)!m.hasOwnProperty(w)||h!=null&&h.hasOwnProperty(w)||(w.indexOf("--")===0?c.setProperty(w,""):w==="float"?c.cssFloat="":c[w]="");for(var _ in h)w=h[_],h.hasOwnProperty(_)&&m[_]!==w&&za(c,_,w)}else for(var L in h)h.hasOwnProperty(L)&&za(c,L,h[L])}function Ke(c){if(c.indexOf("-")===-1)return!1;switch(c){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var xt=new Map([["acceptCharset","accept-charset"],["htmlFor","for"],["httpEquiv","http-equiv"],["crossOrigin","crossorigin"],["accentHeight","accent-height"],["alignmentBaseline","alignment-baseline"],["arabicForm","arabic-form"],["baselineShift","baseline-shift"],["capHeight","cap-height"],["clipPath","clip-path"],["clipRule","clip-rule"],["colorInterpolation","color-interpolation"],["colorInterpolationFilters","color-interpolation-filters"],["colorProfile","color-profile"],["colorRendering","color-rendering"],["dominantBaseline","dominant-baseline"],["enableBackground","enable-background"],["fillOpacity","fill-opacity"],["fillRule","fill-rule"],["floodColor","flood-color"],["floodOpacity","flood-opacity"],["fontFamily","font-family"],["fontSize","font-size"],["fontSizeAdjust","font-size-adjust"],["fontStretch","font-stretch"],["fontStyle","font-style"],["fontVariant","font-variant"],["fontWeight","font-weight"],["glyphName","glyph-name"],["glyphOrientationHorizontal","glyph-orientation-horizontal"],["glyphOrientationVertical","glyph-orientation-vertical"],["horizAdvX","horiz-adv-x"],["horizOriginX","horiz-origin-x"],["imageRendering","image-rendering"],["letterSpacing","letter-spacing"],["lightingColor","lighting-color"],["markerEnd","marker-end"],["markerMid","marker-mid"],["markerStart","marker-start"],["overlinePosition","overline-position"],["overlineThickness","overline-thickness"],["paintOrder","paint-order"],["panose-1","panose-1"],["pointerEvents","pointer-events"],["renderingIntent","rendering-intent"],["shapeRendering","shape-rendering"],["stopColor","stop-color"],["stopOpacity","stop-opacity"],["strikethroughPosition","strikethrough-position"],["strikethroughThickness","strikethrough-thickness"],["strokeDasharray","stroke-dasharray"],["strokeDashoffset","stroke-dashoffset"],["strokeLinecap","stroke-linecap"],["strokeLinejoin","stroke-linejoin"],["strokeMiterlimit","stroke-miterlimit"],["strokeOpacity","stroke-opacity"],["strokeWidth","stroke-width"],["textAnchor","text-anchor"],["textDecoration","text-decoration"],["textRendering","text-rendering"],["transformOrigin","transform-origin"],["underlinePosition","underline-position"],["underlineThickness","underline-thickness"],["unicodeBidi","unicode-bidi"],["unicodeRange","unicode-range"],["unitsPerEm","units-per-em"],["vAlphabetic","v-alphabetic"],["vHanging","v-hanging"],["vIdeographic","v-ideographic"],["vMathematical","v-mathematical"],["vectorEffect","vector-effect"],["vertAdvY","vert-adv-y"],["vertOriginX","vert-origin-x"],["vertOriginY","vert-origin-y"],["wordSpacing","word-spacing"],["writingMode","writing-mode"],["xmlnsXlink","xmlns:xlink"],["xHeight","x-height"]]),an=/^[\u0000-\u001F ]*j[\r\n\t]*a[\r\n\t]*v[\r\n\t]*a[\r\n\t]*s[\r\n\t]*c[\r\n\t]*r[\r\n\t]*i[\r\n\t]*p[\r\n\t]*t[\r\n\t]*:/i;function $t(c){return an.test(""+c)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":c}var Zr=null;function Oa(c){return c=c.target||c.srcElement||window,c.correspondingUseElement&&(c=c.correspondingUseElement),c.nodeType===3?c.parentNode:c}var or=null,pr=null;function Ba(c){var h=Pn(c);if(h&&(c=h.stateNode)){var m=c[jt]||null;e:switch(c=h.stateNode,h.type){case"input":if(Gr(c,m.value,m.defaultValue,m.defaultValue,m.checked,m.defaultChecked,m.type,m.name),h=m.name,m.type==="radio"&&h!=null){for(m=c;m.parentNode;)m=m.parentNode;for(m=m.querySelectorAll('input[name="'+In(""+h)+'"][type="radio"]'),h=0;h<m.length;h++){var w=m[h];if(w!==c&&w.form===c.form){var _=w[jt]||null;if(!_)throw Error(r(90));Gr(w,_.value,_.defaultValue,_.defaultValue,_.checked,_.defaultChecked,_.type,_.name)}}for(h=0;h<m.length;h++)w=m[h],w.form===c.form&&Vr(w)}break e;case"textarea":Jn(c,m.value,m.defaultValue);break e;case"select":h=m.value,h!=null&&gn(c,!!m.multiple,h,!1)}}}var Ya=!1;function Di(c,h,m){if(Ya)return c(h,m);Ya=!0;try{var w=c(h);return w}finally{if(Ya=!1,(or!==null||pr!==null)&&(Tg(),or&&(h=or,c=pr,pr=or=null,Ba(h),c)))for(h=0;h<c.length;h++)Ba(c[h])}}function Ea(c,h){var m=c.stateNode;if(m===null)return null;var w=m[jt]||null;if(w===null)return null;m=w[h];e:switch(h){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(w=!w.disabled)||(c=c.type,w=!(c==="button"||c==="input"||c==="select"||c==="textarea")),c=!w;break e;default:c=!1}if(c)return null;if(m&&typeof m!="function")throw Error(r(231,h,typeof m));return m}var Fr=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Ye=!1;if(Fr)try{var dt={};Object.defineProperty(dt,"passive",{get:function(){Ye=!0}}),window.addEventListener("test",dt,dt),window.removeEventListener("test",dt,dt)}catch{Ye=!1}var Wt=null,An=null,dn=null;function oi(){if(dn)return dn;var c,h=An,m=h.length,w,_="value"in Wt?Wt.value:Wt.textContent,L=_.length;for(c=0;c<m&&h[c]===_[c];c++);var W=m-c;for(w=1;w<=W&&h[m-w]===_[L-w];w++);return dn=_.slice(c,1<w?1-w:void 0)}function ja(c){var h=c.keyCode;return"charCode"in c?(c=c.charCode,c===0&&h===13&&(c=13)):c=h,c===10&&(c=13),32<=c||c===13?c:0}function li(){return!0}function ci(){return!1}function Or(c){function h(m,w,_,L,W){this._reactName=m,this._targetInst=_,this.type=w,this.nativeEvent=L,this.target=W,this.currentTarget=null;for(var Z in c)c.hasOwnProperty(Z)&&(m=c[Z],this[Z]=m?m(L):L[Z]);return this.isDefaultPrevented=(L.defaultPrevented!=null?L.defaultPrevented:L.returnValue===!1)?li:ci,this.isPropagationStopped=ci,this}return d(h.prototype,{preventDefault:function(){this.defaultPrevented=!0;var m=this.nativeEvent;m&&(m.preventDefault?m.preventDefault():typeof m.returnValue!="unknown"&&(m.returnValue=!1),this.isDefaultPrevented=li)},stopPropagation:function(){var m=this.nativeEvent;m&&(m.stopPropagation?m.stopPropagation():typeof m.cancelBubble!="unknown"&&(m.cancelBubble=!0),this.isPropagationStopped=li)},persist:function(){},isPersistent:li}),h}var ui={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(c){return c.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},Ns=Or(ui),Ki=d({},ui,{view:0,detail:0}),Ru=Or(Ki),Po,Lo,Ji,Is=d({},Ki,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:Io,button:0,buttons:0,relatedTarget:function(c){return c.relatedTarget===void 0?c.fromElement===c.srcElement?c.toElement:c.fromElement:c.relatedTarget},movementX:function(c){return"movementX"in c?c.movementX:(c!==Ji&&(Ji&&c.type==="mousemove"?(Po=c.screenX-Ji.screenX,Lo=c.screenY-Ji.screenY):Lo=Po=0,Ji=c),Po)},movementY:function(c){return"movementY"in c?c.movementY:Lo}}),$l=Or(Is),Pu=d({},Is,{dataTransfer:0}),Lu=Or(Pu),Nu=d({},Ki,{relatedTarget:0}),No=Or(Nu),Iu=d({},ui,{animationName:0,elapsedTime:0,pseudoElement:0}),$u=Or(Iu),Fu=d({},ui,{clipboardData:function(c){return"clipboardData"in c?c.clipboardData:window.clipboardData}}),ku=Or(Fu),Hu=d({},ui,{data:0}),Fl=Or(Hu),zu={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},Bu={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"},Yu={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function ju(c){var h=this.nativeEvent;return h.getModifierState?h.getModifierState(c):(c=Yu[c])?!!h[c]:!1}function Io(){return ju}var Wu=d({},Ki,{key:function(c){if(c.key){var h=zu[c.key]||c.key;if(h!=="Unidentified")return h}return c.type==="keypress"?(c=ja(c),c===13?"Enter":String.fromCharCode(c)):c.type==="keydown"||c.type==="keyup"?Bu[c.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:Io,charCode:function(c){return c.type==="keypress"?ja(c):0},keyCode:function(c){return c.type==="keydown"||c.type==="keyup"?c.keyCode:0},which:function(c){return c.type==="keypress"?ja(c):c.type==="keydown"||c.type==="keyup"?c.keyCode:0}}),qu=Or(Wu),Xu=d({},Is,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),kl=Or(Xu),Vu=d({},Ki,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:Io}),Uu=Or(Vu),Gu=d({},ui,{propertyName:0,elapsedTime:0,pseudoElement:0}),Zu=Or(Gu),Qu=d({},Is,{deltaX:function(c){return"deltaX"in c?c.deltaX:"wheelDeltaX"in c?-c.wheelDeltaX:0},deltaY:function(c){return"deltaY"in c?c.deltaY:"wheelDeltaY"in c?-c.wheelDeltaY:"wheelDelta"in c?-c.wheelDelta:0},deltaZ:0,deltaMode:0}),Ku=Or(Qu),Ju=d({},ui,{newState:0,oldState:0}),ed=Or(Ju),td=[9,13,27,32],$o=Fr&&"CompositionEvent"in window,es=null;Fr&&"documentMode"in document&&(es=document.documentMode);var nd=Fr&&"TextEvent"in window&&!es,Hl=Fr&&(!$o||es&&8<es&&11>=es),zl=" ",Bl=!1;function Yl(c,h){switch(c){case"keyup":return td.indexOf(h.keyCode)!==-1;case"keydown":return h.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function jl(c){return c=c.detail,typeof c=="object"&&"data"in c?c.data:null}var _i=!1;function rd(c,h){switch(c){case"compositionend":return jl(h);case"keypress":return h.which!==32?null:(Bl=!0,zl);case"textInput":return c=h.data,c===zl&&Bl?null:c;default:return null}}function ad(c,h){if(_i)return c==="compositionend"||!$o&&Yl(c,h)?(c=oi(),dn=An=Wt=null,_i=!1,c):null;switch(c){case"paste":return null;case"keypress":if(!(h.ctrlKey||h.altKey||h.metaKey)||h.ctrlKey&&h.altKey){if(h.char&&1<h.char.length)return h.char;if(h.which)return String.fromCharCode(h.which)}return null;case"compositionend":return Hl&&h.locale!=="ko"?null:h.data;default:return null}}var id={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 Wl(c){var h=c&&c.nodeName&&c.nodeName.toLowerCase();return h==="input"?!!id[c.type]:h==="textarea"}function ql(c,h,m,w){or?pr?pr.push(w):pr=[w]:or=w,h=$g(h,"onChange"),0<h.length&&(m=new Ns("onChange","change",null,m,w),c.push({event:m,listeners:h}))}var ts=null,ns=null;function sd(c){OA(c,0)}function $s(c){var h=Ln(c);if(Vr(h))return c}function Xl(c,h){if(c==="change")return h}var Vl=!1;if(Fr){var Fo;if(Fr){var ko="oninput"in document;if(!ko){var Ul=document.createElement("div");Ul.setAttribute("oninput","return;"),ko=typeof Ul.oninput=="function"}Fo=ko}else Fo=!1;Vl=Fo&&(!document.documentMode||9<document.documentMode)}function Gl(){ts&&(ts.detachEvent("onpropertychange",Zl),ns=ts=null)}function Zl(c){if(c.propertyName==="value"&&$s(ns)){var h=[];ql(h,ns,c,Oa(c)),Di(sd,h)}}function od(c,h,m){c==="focusin"?(Gl(),ts=h,ns=m,ts.attachEvent("onpropertychange",Zl)):c==="focusout"&&Gl()}function ld(c){if(c==="selectionchange"||c==="keyup"||c==="keydown")return $s(ns)}function cd(c,h){if(c==="click")return $s(h)}function ud(c,h){if(c==="input"||c==="change")return $s(h)}function dd(c,h){return c===h&&(c!==0||1/c===1/h)||c!==c&&h!==h}var kr=typeof Object.is=="function"?Object.is:dd;function rs(c,h){if(kr(c,h))return!0;if(typeof c!="object"||c===null||typeof h!="object"||h===null)return!1;var m=Object.keys(c),w=Object.keys(h);if(m.length!==w.length)return!1;for(w=0;w<m.length;w++){var _=m[w];if(!be.call(h,_)||!kr(c[_],h[_]))return!1}return!0}function Ql(c){for(;c&&c.firstChild;)c=c.firstChild;return c}function Kl(c,h){var m=Ql(c);c=0;for(var w;m;){if(m.nodeType===3){if(w=c+m.textContent.length,c<=h&&w>=h)return{node:m,offset:h-c};c=w}e:{for(;m;){if(m.nextSibling){m=m.nextSibling;break e}m=m.parentNode}m=void 0}m=Ql(m)}}function Jl(c,h){return c&&h?c===h?!0:c&&c.nodeType===3?!1:h&&h.nodeType===3?Jl(c,h.parentNode):"contains"in c?c.contains(h):c.compareDocumentPosition?!!(c.compareDocumentPosition(h)&16):!1:!1}function ec(c){c=c!=null&&c.ownerDocument!=null&&c.ownerDocument.defaultView!=null?c.ownerDocument.defaultView:window;for(var h=Ur(c.document);h instanceof c.HTMLIFrameElement;){try{var m=typeof h.contentWindow.location.href=="string"}catch{m=!1}if(m)c=h.contentWindow;else break;h=Ur(c.document)}return h}function Ho(c){var h=c&&c.nodeName&&c.nodeName.toLowerCase();return h&&(h==="input"&&(c.type==="text"||c.type==="search"||c.type==="tel"||c.type==="url"||c.type==="password")||h==="textarea"||c.contentEditable==="true")}var fd=Fr&&"documentMode"in document&&11>=document.documentMode,Ai=null,zo=null,as=null,Bo=!1;function tc(c,h,m){var w=m.window===m?m.document:m.nodeType===9?m:m.ownerDocument;Bo||Ai==null||Ai!==Ur(w)||(w=Ai,"selectionStart"in w&&Ho(w)?w={start:w.selectionStart,end:w.selectionEnd}:(w=(w.ownerDocument&&w.ownerDocument.defaultView||window).getSelection(),w={anchorNode:w.anchorNode,anchorOffset:w.anchorOffset,focusNode:w.focusNode,focusOffset:w.focusOffset}),as&&rs(as,w)||(as=w,w=$g(zo,"onSelect"),0<w.length&&(h=new Ns("onSelect","select",null,h,m),c.push({event:h,listeners:w}),h.target=Ai)))}function di(c,h){var m={};return m[c.toLowerCase()]=h.toLowerCase(),m["Webkit"+c]="webkit"+h,m["Moz"+c]="moz"+h,m}var Ti={animationend:di("Animation","AnimationEnd"),animationiteration:di("Animation","AnimationIteration"),animationstart:di("Animation","AnimationStart"),transitionrun:di("Transition","TransitionRun"),transitionstart:di("Transition","TransitionStart"),transitioncancel:di("Transition","TransitionCancel"),transitionend:di("Transition","TransitionEnd")},Yo={},nc={};Fr&&(nc=document.createElement("div").style,"AnimationEvent"in window||(delete Ti.animationend.animation,delete Ti.animationiteration.animation,delete Ti.animationstart.animation),"TransitionEvent"in window||delete Ti.transitionend.transition);function fi(c){if(Yo[c])return Yo[c];if(!Ti[c])return c;var h=Ti[c],m;for(m in h)if(h.hasOwnProperty(m)&&m in nc)return Yo[c]=h[m];return c}var rc=fi("animationend"),v=fi("animationiteration"),aD=fi("animationstart"),KW=fi("transitionrun"),JW=fi("transitionstart"),e4=fi("transitioncancel"),iD=fi("transitionend"),sD=new Map,tb="abort auxClick beforeToggle cancel canPlay canPlayThrough click close contextMenu copy cut drag dragEnd dragEnter dragExit dragLeave dragOver dragStart drop durationChange emptied encrypted ended error gotPointerCapture input invalid keyDown keyPress keyUp load loadedData loadedMetadata loadStart lostPointerCapture mouseDown mouseMove mouseOut mouseOver mouseUp paste pause play playing pointerCancel pointerDown pointerMove pointerOut pointerOver pointerUp progress rateChange reset resize seeked seeking stalled submit suspend timeUpdate touchCancel touchEnd touchStart volumeChange scroll toggle touchMove waiting wheel".split(" ");tb.push("scrollEnd");function hi(c,h){sD.set(c,h),qn(h,[c])}var oD=new WeakMap;function Wa(c,h){if(typeof c=="object"&&c!==null){var m=oD.get(c);return m!==void 0?m:(h={value:c,source:h,stack:Ir(h)},oD.set(c,h),h)}return{value:c,source:h,stack:Ir(h)}}var qa=[],ac=0,nb=0;function Kh(){for(var c=ac,h=nb=ac=0;h<c;){var m=qa[h];qa[h++]=null;var w=qa[h];qa[h++]=null;var _=qa[h];qa[h++]=null;var L=qa[h];if(qa[h++]=null,w!==null&&_!==null){var W=w.pending;W===null?_.next=_:(_.next=W.next,W.next=_),w.pending=_}L!==0&&lD(m,_,L)}}function Jh(c,h,m,w){qa[ac++]=c,qa[ac++]=h,qa[ac++]=m,qa[ac++]=w,nb|=w,c.lanes|=w,c=c.alternate,c!==null&&(c.lanes|=w)}function rb(c,h,m,w){return Jh(c,h,m,w),eg(c)}function ic(c,h){return Jh(c,null,null,h),eg(c)}function lD(c,h,m){c.lanes|=m;var w=c.alternate;w!==null&&(w.lanes|=m);for(var _=!1,L=c.return;L!==null;)L.childLanes|=m,w=L.alternate,w!==null&&(w.childLanes|=m),L.tag===22&&(c=L.stateNode,c===null||c._visibility&1||(_=!0)),c=L,L=L.return;return c.tag===3?(L=c.stateNode,_&&h!==null&&(_=31-at(m),c=L.hiddenUpdates,w=c[_],w===null?c[_]=[h]:w.push(h),h.lane=m|536870912),L):null}function eg(c){if(50<Fd)throw Fd=0,c0=null,Error(r(185));for(var h=c.return;h!==null;)c=h,h=c.return;return c.tag===3?c.stateNode:null}var sc={};function t4(c,h,m,w){this.tag=c,this.key=m,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=h,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=w,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function Ma(c,h,m,w){return new t4(c,h,m,w)}function ab(c){return c=c.prototype,!(!c||!c.isReactComponent)}function is(c,h){var m=c.alternate;return m===null?(m=Ma(c.tag,h,c.key,c.mode),m.elementType=c.elementType,m.type=c.type,m.stateNode=c.stateNode,m.alternate=c,c.alternate=m):(m.pendingProps=h,m.type=c.type,m.flags=0,m.subtreeFlags=0,m.deletions=null),m.flags=c.flags&65011712,m.childLanes=c.childLanes,m.lanes=c.lanes,m.child=c.child,m.memoizedProps=c.memoizedProps,m.memoizedState=c.memoizedState,m.updateQueue=c.updateQueue,h=c.dependencies,m.dependencies=h===null?null:{lanes:h.lanes,firstContext:h.firstContext},m.sibling=c.sibling,m.index=c.index,m.ref=c.ref,m.refCleanup=c.refCleanup,m}function cD(c,h){c.flags&=65011714;var m=c.alternate;return m===null?(c.childLanes=0,c.lanes=h,c.child=null,c.subtreeFlags=0,c.memoizedProps=null,c.memoizedState=null,c.updateQueue=null,c.dependencies=null,c.stateNode=null):(c.childLanes=m.childLanes,c.lanes=m.lanes,c.child=m.child,c.subtreeFlags=0,c.deletions=null,c.memoizedProps=m.memoizedProps,c.memoizedState=m.memoizedState,c.updateQueue=m.updateQueue,c.type=m.type,h=m.dependencies,c.dependencies=h===null?null:{lanes:h.lanes,firstContext:h.firstContext}),c}function tg(c,h,m,w,_,L){var W=0;if(w=c,typeof c=="function")ab(c)&&(W=1);else if(typeof c=="string")W=r5(c,m,G.current)?26:c==="html"||c==="head"||c==="body"?27:5;else e:switch(c){case R:return c=Ma(31,m,h,_),c.elementType=R,c.lanes=L,c;case b:return jo(m.children,_,L,h);case y:W=8,_|=24;break;case x:return c=Ma(12,m,h,_|2),c.elementType=x,c.lanes=L,c;case M:return c=Ma(13,m,h,_),c.elementType=M,c.lanes=L,c;case A:return c=Ma(19,m,h,_),c.elementType=A,c.lanes=L,c;default:if(typeof c=="object"&&c!==null)switch(c.$$typeof){case S:case O:W=10;break e;case C:W=9;break e;case D:W=11;break e;case T:W=14;break e;case P:W=16,w=null;break e}W=29,m=Error(r(130,c===null?"null":typeof c,"")),w=null}return h=Ma(W,m,h,_),h.elementType=c,h.type=w,h.lanes=L,h}function jo(c,h,m,w){return c=Ma(7,c,w,h),c.lanes=m,c}function ib(c,h,m){return c=Ma(6,c,null,h),c.lanes=m,c}function sb(c,h,m){return h=Ma(4,c.children!==null?c.children:[],c.key,h),h.lanes=m,h.stateNode={containerInfo:c.containerInfo,pendingChildren:null,implementation:c.implementation},h}var oc=[],lc=0,ng=null,rg=0,Xa=[],Va=0,Wo=null,ss=1,os="";function qo(c,h){oc[lc++]=rg,oc[lc++]=ng,ng=c,rg=h}function uD(c,h,m){Xa[Va++]=ss,Xa[Va++]=os,Xa[Va++]=Wo,Wo=c;var w=ss;c=os;var _=32-at(w)-1;w&=~(1<<_),m+=1;var L=32-at(h)+_;if(30<L){var W=_-_%5;L=(w&(1<<W)-1).toString(32),w>>=W,_-=W,ss=1<<32-at(h)+_|m<<_|w,os=L+c}else ss=1<<L|m<<_|w,os=c}function ob(c){c.return!==null&&(qo(c,1),uD(c,1,0))}function lb(c){for(;c===ng;)ng=oc[--lc],oc[lc]=null,rg=oc[--lc],oc[lc]=null;for(;c===Wo;)Wo=Xa[--Va],Xa[Va]=null,os=Xa[--Va],Xa[Va]=null,ss=Xa[--Va],Xa[Va]=null}var sa=null,Vn=null,fn=!1,Xo=null,Ri=!1,cb=Error(r(519));function Vo(c){var h=Error(r(418,""));throw pd(Wa(h,c)),cb}function dD(c){var h=c.stateNode,m=c.type,w=c.memoizedProps;switch(h[gt]=c,h[jt]=w,m){case"dialog":Xt("cancel",h),Xt("close",h);break;case"iframe":case"object":case"embed":Xt("load",h);break;case"video":case"audio":for(m=0;m<Hd.length;m++)Xt(Hd[m],h);break;case"source":Xt("error",h);break;case"img":case"image":case"link":Xt("error",h),Xt("load",h);break;case"details":Xt("toggle",h);break;case"input":Xt("invalid",h),pt(h,w.value,w.defaultValue,w.checked,w.defaultChecked,w.type,w.name,!0),Kn(h);break;case"select":Xt("invalid",h);break;case"textarea":Xt("invalid",h),ia(h,w.value,w.defaultValue,w.children),Kn(h)}m=w.children,typeof m!="string"&&typeof m!="number"&&typeof m!="bigint"||h.textContent===""+m||w.suppressHydrationWarning===!0||_A(h.textContent,m)?(w.popover!=null&&(Xt("beforetoggle",h),Xt("toggle",h)),w.onScroll!=null&&Xt("scroll",h),w.onScrollEnd!=null&&Xt("scrollend",h),w.onClick!=null&&(h.onclick=Fg),h=!0):h=!1,h||Vo(c)}function fD(c){for(sa=c.return;sa;)switch(sa.tag){case 5:case 13:Ri=!1;return;case 27:case 3:Ri=!0;return;default:sa=sa.return}}function hd(c){if(c!==sa)return!1;if(!fn)return fD(c),fn=!0,!1;var h=c.tag,m;if((m=h!==3&&h!==27)&&((m=h===5)&&(m=c.type,m=!(m!=="form"&&m!=="button")||E0(c.type,c.memoizedProps)),m=!m),m&&Vn&&Vo(c),fD(c),h===13){if(c=c.memoizedState,c=c!==null?c.dehydrated:null,!c)throw Error(r(317));e:{for(c=c.nextSibling,h=0;c;){if(c.nodeType===8)if(m=c.data,m==="/$"){if(h===0){Vn=pi(c.nextSibling);break e}h--}else m!=="$"&&m!=="$!"&&m!=="$?"||h++;c=c.nextSibling}Vn=null}}else h===27?(h=Vn,Ks(c.type)?(c=A0,A0=null,Vn=c):Vn=h):Vn=sa?pi(c.stateNode.nextSibling):null;return!0}function gd(){Vn=sa=null,fn=!1}function hD(){var c=Xo;return c!==null&&(pa===null?pa=c:pa.push.apply(pa,c),Xo=null),c}function pd(c){Xo===null?Xo=[c]:Xo.push(c)}var ub=V(null),Uo=null,ls=null;function Fs(c,h,m){q(ub,h._currentValue),h._currentValue=m}function cs(c){c._currentValue=ub.current,j(ub)}function db(c,h,m){for(;c!==null;){var w=c.alternate;if((c.childLanes&h)!==h?(c.childLanes|=h,w!==null&&(w.childLanes|=h)):w!==null&&(w.childLanes&h)!==h&&(w.childLanes|=h),c===m)break;c=c.return}}function fb(c,h,m,w){var _=c.child;for(_!==null&&(_.return=c);_!==null;){var L=_.dependencies;if(L!==null){var W=_.child;L=L.firstContext;e:for(;L!==null;){var Z=L;L=_;for(var J=0;J<h.length;J++)if(Z.context===h[J]){L.lanes|=m,Z=L.alternate,Z!==null&&(Z.lanes|=m),db(L.return,m,c),w||(W=null);break e}L=Z.next}}else if(_.tag===18){if(W=_.return,W===null)throw Error(r(341));W.lanes|=m,L=W.alternate,L!==null&&(L.lanes|=m),db(W,m,c),W=null}else W=_.child;if(W!==null)W.return=_;else for(W=_;W!==null;){if(W===c){W=null;break}if(_=W.sibling,_!==null){_.return=W.return,W=_;break}W=W.return}_=W}}function md(c,h,m,w){c=null;for(var _=h,L=!1;_!==null;){if(!L){if((_.flags&524288)!==0)L=!0;else if((_.flags&262144)!==0)break}if(_.tag===10){var W=_.alternate;if(W===null)throw Error(r(387));if(W=W.memoizedProps,W!==null){var Z=_.type;kr(_.pendingProps.value,W.value)||(c!==null?c.push(Z):c=[Z])}}else if(_===te.current){if(W=_.alternate,W===null)throw Error(r(387));W.memoizedState.memoizedState!==_.memoizedState.memoizedState&&(c!==null?c.push(qd):c=[qd])}_=_.return}c!==null&&fb(h,c,m,w),h.flags|=262144}function ag(c){for(c=c.firstContext;c!==null;){if(!kr(c.context._currentValue,c.memoizedValue))return!0;c=c.next}return!1}function Go(c){Uo=c,ls=null,c=c.dependencies,c!==null&&(c.firstContext=null)}function Qr(c){return gD(Uo,c)}function ig(c,h){return Uo===null&&Go(c),gD(c,h)}function gD(c,h){var m=h._currentValue;if(h={context:h,memoizedValue:m,next:null},ls===null){if(c===null)throw Error(r(308));ls=h,c.dependencies={lanes:0,firstContext:h},c.flags|=524288}else ls=ls.next=h;return m}var n4=typeof AbortController<"u"?AbortController:function(){var c=[],h=this.signal={aborted:!1,addEventListener:function(m,w){c.push(w)}};this.abort=function(){h.aborted=!0,c.forEach(function(m){return m()})}},r4=n.unstable_scheduleCallback,a4=n.unstable_NormalPriority,mr={$$typeof:O,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function hb(){return{controller:new n4,data:new Map,refCount:0}}function vd(c){c.refCount--,c.refCount===0&&r4(a4,function(){c.controller.abort()})}var bd=null,gb=0,cc=0,uc=null;function i4(c,h){if(bd===null){var m=bd=[];gb=0,cc=m0(),uc={status:"pending",value:void 0,then:function(w){m.push(w)}}}return gb++,h.then(pD,pD),h}function pD(){if(--gb===0&&bd!==null){uc!==null&&(uc.status="fulfilled");var c=bd;bd=null,cc=0,uc=null;for(var h=0;h<c.length;h++)(0,c[h])()}}function s4(c,h){var m=[],w={status:"pending",value:null,reason:null,then:function(_){m.push(_)}};return c.then(function(){w.status="fulfilled",w.value=h;for(var _=0;_<m.length;_++)(0,m[_])(h)},function(_){for(w.status="rejected",w.reason=_,_=0;_<m.length;_++)(0,m[_])(void 0)}),w}var mD=F.S;F.S=function(c,h){typeof h=="object"&&h!==null&&typeof h.then=="function"&&i4(c,h),mD!==null&&mD(c,h)};var Zo=V(null);function pb(){var c=Zo.current;return c!==null?c:Nn.pooledCache}function sg(c,h){h===null?q(Zo,Zo.current):q(Zo,h.pool)}function vD(){var c=pb();return c===null?null:{parent:mr._currentValue,pool:c}}var yd=Error(r(460)),bD=Error(r(474)),og=Error(r(542)),mb={then:function(){}};function yD(c){return c=c.status,c==="fulfilled"||c==="rejected"}function lg(){}function xD(c,h,m){switch(m=c[m],m===void 0?c.push(h):m!==h&&(h.then(lg,lg),h=m),h.status){case"fulfilled":return h.value;case"rejected":throw c=h.reason,SD(c),c;default:if(typeof h.status=="string")h.then(lg,lg);else{if(c=Nn,c!==null&&100<c.shellSuspendCounter)throw Error(r(482));c=h,c.status="pending",c.then(function(w){if(h.status==="pending"){var _=h;_.status="fulfilled",_.value=w}},function(w){if(h.status==="pending"){var _=h;_.status="rejected",_.reason=w}})}switch(h.status){case"fulfilled":return h.value;case"rejected":throw c=h.reason,SD(c),c}throw xd=h,yd}}var xd=null;function wD(){if(xd===null)throw Error(r(459));var c=xd;return xd=null,c}function SD(c){if(c===yd||c===og)throw Error(r(483))}var ks=!1;function vb(c){c.updateQueue={baseState:c.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function bb(c,h){c=c.updateQueue,h.updateQueue===c&&(h.updateQueue={baseState:c.baseState,firstBaseUpdate:c.firstBaseUpdate,lastBaseUpdate:c.lastBaseUpdate,shared:c.shared,callbacks:null})}function Hs(c){return{lane:c,tag:0,payload:null,callback:null,next:null}}function zs(c,h,m){var w=c.updateQueue;if(w===null)return null;if(w=w.shared,(bn&2)!==0){var _=w.pending;return _===null?h.next=h:(h.next=_.next,_.next=h),w.pending=h,h=eg(c),lD(c,null,m),h}return Jh(c,w,h,m),eg(c)}function wd(c,h,m){if(h=h.updateQueue,h!==null&&(h=h.shared,(m&4194048)!==0)){var w=h.lanes;w&=c.pendingLanes,m|=w,h.lanes=m,It(c,m)}}function yb(c,h){var m=c.updateQueue,w=c.alternate;if(w!==null&&(w=w.updateQueue,m===w)){var _=null,L=null;if(m=m.firstBaseUpdate,m!==null){do{var W={lane:m.lane,tag:m.tag,payload:m.payload,callback:null,next:null};L===null?_=L=W:L=L.next=W,m=m.next}while(m!==null);L===null?_=L=h:L=L.next=h}else _=L=h;m={baseState:w.baseState,firstBaseUpdate:_,lastBaseUpdate:L,shared:w.shared,callbacks:w.callbacks},c.updateQueue=m;return}c=m.lastBaseUpdate,c===null?m.firstBaseUpdate=h:c.next=h,m.lastBaseUpdate=h}var xb=!1;function Sd(){if(xb){var c=uc;if(c!==null)throw c}}function Cd(c,h,m,w){xb=!1;var _=c.updateQueue;ks=!1;var L=_.firstBaseUpdate,W=_.lastBaseUpdate,Z=_.shared.pending;if(Z!==null){_.shared.pending=null;var J=Z,fe=J.next;J.next=null,W===null?L=fe:W.next=fe,W=J;var Se=c.alternate;Se!==null&&(Se=Se.updateQueue,Z=Se.lastBaseUpdate,Z!==W&&(Z===null?Se.firstBaseUpdate=fe:Z.next=fe,Se.lastBaseUpdate=J))}if(L!==null){var Me=_.baseState;W=0,Se=fe=J=null,Z=L;do{var he=Z.lane&-536870913,ge=he!==Z.lane;if(ge?(tn&he)===he:(w&he)===he){he!==0&&he===cc&&(xb=!0),Se!==null&&(Se=Se.next={lane:0,tag:Z.tag,payload:Z.payload,callback:null,next:null});e:{var Ot=c,bt=Z;he=h;var Mn=m;switch(bt.tag){case 1:if(Ot=bt.payload,typeof Ot=="function"){Me=Ot.call(Mn,Me,he);break e}Me=Ot;break e;case 3:Ot.flags=Ot.flags&-65537|128;case 0:if(Ot=bt.payload,he=typeof Ot=="function"?Ot.call(Mn,Me,he):Ot,he==null)break e;Me=d({},Me,he);break e;case 2:ks=!0}}he=Z.callback,he!==null&&(c.flags|=64,ge&&(c.flags|=8192),ge=_.callbacks,ge===null?_.callbacks=[he]:ge.push(he))}else ge={lane:he,tag:Z.tag,payload:Z.payload,callback:Z.callback,next:null},Se===null?(fe=Se=ge,J=Me):Se=Se.next=ge,W|=he;if(Z=Z.next,Z===null){if(Z=_.shared.pending,Z===null)break;ge=Z,Z=ge.next,ge.next=null,_.lastBaseUpdate=ge,_.shared.pending=null}}while(!0);Se===null&&(J=Me),_.baseState=J,_.firstBaseUpdate=fe,_.lastBaseUpdate=Se,L===null&&(_.shared.lanes=0),Us|=W,c.lanes=W,c.memoizedState=Me}}function CD(c,h){if(typeof c!="function")throw Error(r(191,c));c.call(h)}function OD(c,h){var m=c.callbacks;if(m!==null)for(c.callbacks=null,c=0;c<m.length;c++)CD(m[c],h)}var dc=V(null),cg=V(0);function ED(c,h){c=ms,q(cg,c),q(dc,h),ms=c|h.baseLanes}function wb(){q(cg,ms),q(dc,dc.current)}function Sb(){ms=cg.current,j(dc),j(cg)}var Bs=0,Ft=null,On=null,lr=null,ug=!1,fc=!1,Qo=!1,dg=0,Od=0,hc=null,o4=0;function er(){throw Error(r(321))}function Cb(c,h){if(h===null)return!1;for(var m=0;m<h.length&&m<c.length;m++)if(!kr(c[m],h[m]))return!1;return!0}function Ob(c,h,m,w,_,L){return Bs=L,Ft=h,h.memoizedState=null,h.updateQueue=null,h.lanes=0,F.H=c===null||c.memoizedState===null?l_:c_,Qo=!1,L=m(w,_),Qo=!1,fc&&(L=DD(h,m,w,_)),MD(c),L}function MD(c){F.H=vg;var h=On!==null&&On.next!==null;if(Bs=0,lr=On=Ft=null,ug=!1,Od=0,hc=null,h)throw Error(r(300));c===null||Er||(c=c.dependencies,c!==null&&ag(c)&&(Er=!0))}function DD(c,h,m,w){Ft=c;var _=0;do{if(fc&&(hc=null),Od=0,fc=!1,25<=_)throw Error(r(301));if(_+=1,lr=On=null,c.updateQueue!=null){var L=c.updateQueue;L.lastEffect=null,L.events=null,L.stores=null,L.memoCache!=null&&(L.memoCache.index=0)}F.H=g4,L=h(m,w)}while(fc);return L}function l4(){var c=F.H,h=c.useState()[0];return h=typeof h.then=="function"?Ed(h):h,c=c.useState()[0],(On!==null?On.memoizedState:null)!==c&&(Ft.flags|=1024),h}function Eb(){var c=dg!==0;return dg=0,c}function Mb(c,h,m){h.updateQueue=c.updateQueue,h.flags&=-2053,c.lanes&=~m}function Db(c){if(ug){for(c=c.memoizedState;c!==null;){var h=c.queue;h!==null&&(h.pending=null),c=c.next}ug=!1}Bs=0,lr=On=Ft=null,fc=!1,Od=dg=0,hc=null}function ha(){var c={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return lr===null?Ft.memoizedState=lr=c:lr=lr.next=c,lr}function cr(){if(On===null){var c=Ft.alternate;c=c!==null?c.memoizedState:null}else c=On.next;var h=lr===null?Ft.memoizedState:lr.next;if(h!==null)lr=h,On=c;else{if(c===null)throw Ft.alternate===null?Error(r(467)):Error(r(310));On=c,c={memoizedState:On.memoizedState,baseState:On.baseState,baseQueue:On.baseQueue,queue:On.queue,next:null},lr===null?Ft.memoizedState=lr=c:lr=lr.next=c}return lr}function _b(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function Ed(c){var h=Od;return Od+=1,hc===null&&(hc=[]),c=xD(hc,c,h),h=Ft,(lr===null?h.memoizedState:lr.next)===null&&(h=h.alternate,F.H=h===null||h.memoizedState===null?l_:c_),c}function fg(c){if(c!==null&&typeof c=="object"){if(typeof c.then=="function")return Ed(c);if(c.$$typeof===O)return Qr(c)}throw Error(r(438,String(c)))}function Ab(c){var h=null,m=Ft.updateQueue;if(m!==null&&(h=m.memoCache),h==null){var w=Ft.alternate;w!==null&&(w=w.updateQueue,w!==null&&(w=w.memoCache,w!=null&&(h={data:w.data.map(function(_){return _.slice()}),index:0})))}if(h==null&&(h={data:[],index:0}),m===null&&(m=_b(),Ft.updateQueue=m),m.memoCache=h,m=h.data[h.index],m===void 0)for(m=h.data[h.index]=Array(c),w=0;w<c;w++)m[w]=N;return h.index++,m}function us(c,h){return typeof h=="function"?h(c):h}function hg(c){var h=cr();return Tb(h,On,c)}function Tb(c,h,m){var w=c.queue;if(w===null)throw Error(r(311));w.lastRenderedReducer=m;var _=c.baseQueue,L=w.pending;if(L!==null){if(_!==null){var W=_.next;_.next=L.next,L.next=W}h.baseQueue=_=L,w.pending=null}if(L=c.baseState,_===null)c.memoizedState=L;else{h=_.next;var Z=W=null,J=null,fe=h,Se=!1;do{var Me=fe.lane&-536870913;if(Me!==fe.lane?(tn&Me)===Me:(Bs&Me)===Me){var he=fe.revertLane;if(he===0)J!==null&&(J=J.next={lane:0,revertLane:0,action:fe.action,hasEagerState:fe.hasEagerState,eagerState:fe.eagerState,next:null}),Me===cc&&(Se=!0);else if((Bs&he)===he){fe=fe.next,he===cc&&(Se=!0);continue}else Me={lane:0,revertLane:fe.revertLane,action:fe.action,hasEagerState:fe.hasEagerState,eagerState:fe.eagerState,next:null},J===null?(Z=J=Me,W=L):J=J.next=Me,Ft.lanes|=he,Us|=he;Me=fe.action,Qo&&m(L,Me),L=fe.hasEagerState?fe.eagerState:m(L,Me)}else he={lane:Me,revertLane:fe.revertLane,action:fe.action,hasEagerState:fe.hasEagerState,eagerState:fe.eagerState,next:null},J===null?(Z=J=he,W=L):J=J.next=he,Ft.lanes|=Me,Us|=Me;fe=fe.next}while(fe!==null&&fe!==h);if(J===null?W=L:J.next=Z,!kr(L,c.memoizedState)&&(Er=!0,Se&&(m=uc,m!==null)))throw m;c.memoizedState=L,c.baseState=W,c.baseQueue=J,w.lastRenderedState=L}return _===null&&(w.lanes=0),[c.memoizedState,w.dispatch]}function Rb(c){var h=cr(),m=h.queue;if(m===null)throw Error(r(311));m.lastRenderedReducer=c;var w=m.dispatch,_=m.pending,L=h.memoizedState;if(_!==null){m.pending=null;var W=_=_.next;do L=c(L,W.action),W=W.next;while(W!==_);kr(L,h.memoizedState)||(Er=!0),h.memoizedState=L,h.baseQueue===null&&(h.baseState=L),m.lastRenderedState=L}return[L,w]}function _D(c,h,m){var w=Ft,_=cr(),L=fn;if(L){if(m===void 0)throw Error(r(407));m=m()}else m=h();var W=!kr((On||_).memoizedState,m);W&&(_.memoizedState=m,Er=!0),_=_.queue;var Z=RD.bind(null,w,_,c);if(Md(2048,8,Z,[c]),_.getSnapshot!==h||W||lr!==null&&lr.memoizedState.tag&1){if(w.flags|=2048,gc(9,gg(),TD.bind(null,w,_,m,h),null),Nn===null)throw Error(r(349));L||(Bs&124)!==0||AD(w,h,m)}return m}function AD(c,h,m){c.flags|=16384,c={getSnapshot:h,value:m},h=Ft.updateQueue,h===null?(h=_b(),Ft.updateQueue=h,h.stores=[c]):(m=h.stores,m===null?h.stores=[c]:m.push(c))}function TD(c,h,m,w){h.value=m,h.getSnapshot=w,PD(h)&&LD(c)}function RD(c,h,m){return m(function(){PD(h)&&LD(c)})}function PD(c){var h=c.getSnapshot;c=c.value;try{var m=h();return!kr(c,m)}catch{return!0}}function LD(c){var h=ic(c,2);h!==null&&Ra(h,c,2)}function Pb(c){var h=ha();if(typeof c=="function"){var m=c;if(c=m(),Qo){ht(!0);try{m()}finally{ht(!1)}}}return h.memoizedState=h.baseState=c,h.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:us,lastRenderedState:c},h}function ND(c,h,m,w){return c.baseState=m,Tb(c,On,typeof w=="function"?w:us)}function c4(c,h,m,w,_){if(mg(c))throw Error(r(485));if(c=h.action,c!==null){var L={payload:_,action:c,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(W){L.listeners.push(W)}};F.T!==null?m(!0):L.isTransition=!1,w(L),m=h.pending,m===null?(L.next=h.pending=L,ID(h,L)):(L.next=m.next,h.pending=m.next=L)}}function ID(c,h){var m=h.action,w=h.payload,_=c.state;if(h.isTransition){var L=F.T,W={};F.T=W;try{var Z=m(_,w),J=F.S;J!==null&&J(W,Z),$D(c,h,Z)}catch(fe){Lb(c,h,fe)}finally{F.T=L}}else try{L=m(_,w),$D(c,h,L)}catch(fe){Lb(c,h,fe)}}function $D(c,h,m){m!==null&&typeof m=="object"&&typeof m.then=="function"?m.then(function(w){FD(c,h,w)},function(w){return Lb(c,h,w)}):FD(c,h,m)}function FD(c,h,m){h.status="fulfilled",h.value=m,kD(h),c.state=m,h=c.pending,h!==null&&(m=h.next,m===h?c.pending=null:(m=m.next,h.next=m,ID(c,m)))}function Lb(c,h,m){var w=c.pending;if(c.pending=null,w!==null){w=w.next;do h.status="rejected",h.reason=m,kD(h),h=h.next;while(h!==w)}c.action=null}function kD(c){c=c.listeners;for(var h=0;h<c.length;h++)(0,c[h])()}function HD(c,h){return h}function zD(c,h){if(fn){var m=Nn.formState;if(m!==null){e:{var w=Ft;if(fn){if(Vn){t:{for(var _=Vn,L=Ri;_.nodeType!==8;){if(!L){_=null;break t}if(_=pi(_.nextSibling),_===null){_=null;break t}}L=_.data,_=L==="F!"||L==="F"?_:null}if(_){Vn=pi(_.nextSibling),w=_.data==="F!";break e}}Vo(w)}w=!1}w&&(h=m[0])}}return m=ha(),m.memoizedState=m.baseState=h,w={pending:null,lanes:0,dispatch:null,lastRenderedReducer:HD,lastRenderedState:h},m.queue=w,m=i_.bind(null,Ft,w),w.dispatch=m,w=Pb(!1),L=kb.bind(null,Ft,!1,w.queue),w=ha(),_={state:h,dispatch:null,action:c,pending:null},w.queue=_,m=c4.bind(null,Ft,_,L,m),_.dispatch=m,w.memoizedState=c,[h,m,!1]}function BD(c){var h=cr();return YD(h,On,c)}function YD(c,h,m){if(h=Tb(c,h,HD)[0],c=hg(us)[0],typeof h=="object"&&h!==null&&typeof h.then=="function")try{var w=Ed(h)}catch(W){throw W===yd?og:W}else w=h;h=cr();var _=h.queue,L=_.dispatch;return m!==h.memoizedState&&(Ft.flags|=2048,gc(9,gg(),u4.bind(null,_,m),null)),[w,L,c]}function u4(c,h){c.action=h}function jD(c){var h=cr(),m=On;if(m!==null)return YD(h,m,c);cr(),h=h.memoizedState,m=cr();var w=m.queue.dispatch;return m.memoizedState=c,[h,w,!1]}function gc(c,h,m,w){return c={tag:c,create:m,deps:w,inst:h,next:null},h=Ft.updateQueue,h===null&&(h=_b(),Ft.updateQueue=h),m=h.lastEffect,m===null?h.lastEffect=c.next=c:(w=m.next,m.next=c,c.next=w,h.lastEffect=c),c}function gg(){return{destroy:void 0,resource:void 0}}function WD(){return cr().memoizedState}function pg(c,h,m,w){var _=ha();w=w===void 0?null:w,Ft.flags|=c,_.memoizedState=gc(1|h,gg(),m,w)}function Md(c,h,m,w){var _=cr();w=w===void 0?null:w;var L=_.memoizedState.inst;On!==null&&w!==null&&Cb(w,On.memoizedState.deps)?_.memoizedState=gc(h,L,m,w):(Ft.flags|=c,_.memoizedState=gc(1|h,L,m,w))}function qD(c,h){pg(8390656,8,c,h)}function XD(c,h){Md(2048,8,c,h)}function VD(c,h){return Md(4,2,c,h)}function UD(c,h){return Md(4,4,c,h)}function GD(c,h){if(typeof h=="function"){c=c();var m=h(c);return function(){typeof m=="function"?m():h(null)}}if(h!=null)return c=c(),h.current=c,function(){h.current=null}}function ZD(c,h,m){m=m!=null?m.concat([c]):null,Md(4,4,GD.bind(null,h,c),m)}function Nb(){}function QD(c,h){var m=cr();h=h===void 0?null:h;var w=m.memoizedState;return h!==null&&Cb(h,w[1])?w[0]:(m.memoizedState=[c,h],c)}function KD(c,h){var m=cr();h=h===void 0?null:h;var w=m.memoizedState;if(h!==null&&Cb(h,w[1]))return w[0];if(w=c(),Qo){ht(!0);try{c()}finally{ht(!1)}}return m.memoizedState=[w,h],w}function Ib(c,h,m){return m===void 0||(Bs&1073741824)!==0?c.memoizedState=h:(c.memoizedState=m,c=tA(),Ft.lanes|=c,Us|=c,m)}function JD(c,h,m,w){return kr(m,h)?m:dc.current!==null?(c=Ib(c,m,w),kr(c,h)||(Er=!0),c):(Bs&42)===0?(Er=!0,c.memoizedState=m):(c=tA(),Ft.lanes|=c,Us|=c,h)}function e_(c,h,m,w,_){var L=B.p;B.p=L!==0&&8>L?L:8;var W=F.T,Z={};F.T=Z,kb(c,!1,h,m);try{var J=_(),fe=F.S;if(fe!==null&&fe(Z,J),J!==null&&typeof J=="object"&&typeof J.then=="function"){var Se=s4(J,w);Dd(c,h,Se,Ta(c))}else Dd(c,h,w,Ta(c))}catch(Me){Dd(c,h,{then:function(){},status:"rejected",reason:Me},Ta())}finally{B.p=L,F.T=W}}function d4(){}function $b(c,h,m,w){if(c.tag!==5)throw Error(r(476));var _=t_(c).queue;e_(c,_,h,X,m===null?d4:function(){return n_(c),m(w)})}function t_(c){var h=c.memoizedState;if(h!==null)return h;h={memoizedState:X,baseState:X,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:us,lastRenderedState:X},next:null};var m={};return h.next={memoizedState:m,baseState:m,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:us,lastRenderedState:m},next:null},c.memoizedState=h,c=c.alternate,c!==null&&(c.memoizedState=h),h}function n_(c){var h=t_(c).next.queue;Dd(c,h,{},Ta())}function Fb(){return Qr(qd)}function r_(){return cr().memoizedState}function a_(){return cr().memoizedState}function f4(c){for(var h=c.return;h!==null;){switch(h.tag){case 24:case 3:var m=Ta();c=Hs(m);var w=zs(h,c,m);w!==null&&(Ra(w,h,m),wd(w,h,m)),h={cache:hb()},c.payload=h;return}h=h.return}}function h4(c,h,m){var w=Ta();m={lane:w,revertLane:0,action:m,hasEagerState:!1,eagerState:null,next:null},mg(c)?s_(h,m):(m=rb(c,h,m,w),m!==null&&(Ra(m,c,w),o_(m,h,w)))}function i_(c,h,m){var w=Ta();Dd(c,h,m,w)}function Dd(c,h,m,w){var _={lane:w,revertLane:0,action:m,hasEagerState:!1,eagerState:null,next:null};if(mg(c))s_(h,_);else{var L=c.alternate;if(c.lanes===0&&(L===null||L.lanes===0)&&(L=h.lastRenderedReducer,L!==null))try{var W=h.lastRenderedState,Z=L(W,m);if(_.hasEagerState=!0,_.eagerState=Z,kr(Z,W))return Jh(c,h,_,0),Nn===null&&Kh(),!1}catch{}finally{}if(m=rb(c,h,_,w),m!==null)return Ra(m,c,w),o_(m,h,w),!0}return!1}function kb(c,h,m,w){if(w={lane:2,revertLane:m0(),action:w,hasEagerState:!1,eagerState:null,next:null},mg(c)){if(h)throw Error(r(479))}else h=rb(c,m,w,2),h!==null&&Ra(h,c,2)}function mg(c){var h=c.alternate;return c===Ft||h!==null&&h===Ft}function s_(c,h){fc=ug=!0;var m=c.pending;m===null?h.next=h:(h.next=m.next,m.next=h),c.pending=h}function o_(c,h,m){if((m&4194048)!==0){var w=h.lanes;w&=c.pendingLanes,m|=w,h.lanes=m,It(c,m)}}var vg={readContext:Qr,use:fg,useCallback:er,useContext:er,useEffect:er,useImperativeHandle:er,useLayoutEffect:er,useInsertionEffect:er,useMemo:er,useReducer:er,useRef:er,useState:er,useDebugValue:er,useDeferredValue:er,useTransition:er,useSyncExternalStore:er,useId:er,useHostTransitionStatus:er,useFormState:er,useActionState:er,useOptimistic:er,useMemoCache:er,useCacheRefresh:er},l_={readContext:Qr,use:fg,useCallback:function(c,h){return ha().memoizedState=[c,h===void 0?null:h],c},useContext:Qr,useEffect:qD,useImperativeHandle:function(c,h,m){m=m!=null?m.concat([c]):null,pg(4194308,4,GD.bind(null,h,c),m)},useLayoutEffect:function(c,h){return pg(4194308,4,c,h)},useInsertionEffect:function(c,h){pg(4,2,c,h)},useMemo:function(c,h){var m=ha();h=h===void 0?null:h;var w=c();if(Qo){ht(!0);try{c()}finally{ht(!1)}}return m.memoizedState=[w,h],w},useReducer:function(c,h,m){var w=ha();if(m!==void 0){var _=m(h);if(Qo){ht(!0);try{m(h)}finally{ht(!1)}}}else _=h;return w.memoizedState=w.baseState=_,c={pending:null,lanes:0,dispatch:null,lastRenderedReducer:c,lastRenderedState:_},w.queue=c,c=c.dispatch=h4.bind(null,Ft,c),[w.memoizedState,c]},useRef:function(c){var h=ha();return c={current:c},h.memoizedState=c},useState:function(c){c=Pb(c);var h=c.queue,m=i_.bind(null,Ft,h);return h.dispatch=m,[c.memoizedState,m]},useDebugValue:Nb,useDeferredValue:function(c,h){var m=ha();return Ib(m,c,h)},useTransition:function(){var c=Pb(!1);return c=e_.bind(null,Ft,c.queue,!0,!1),ha().memoizedState=c,[!1,c]},useSyncExternalStore:function(c,h,m){var w=Ft,_=ha();if(fn){if(m===void 0)throw Error(r(407));m=m()}else{if(m=h(),Nn===null)throw Error(r(349));(tn&124)!==0||AD(w,h,m)}_.memoizedState=m;var L={value:m,getSnapshot:h};return _.queue=L,qD(RD.bind(null,w,L,c),[c]),w.flags|=2048,gc(9,gg(),TD.bind(null,w,L,m,h),null),m},useId:function(){var c=ha(),h=Nn.identifierPrefix;if(fn){var m=os,w=ss;m=(w&~(1<<32-at(w)-1)).toString(32)+m,h="«"+h+"R"+m,m=dg++,0<m&&(h+="H"+m.toString(32)),h+="»"}else m=o4++,h="«"+h+"r"+m.toString(32)+"»";return c.memoizedState=h},useHostTransitionStatus:Fb,useFormState:zD,useActionState:zD,useOptimistic:function(c){var h=ha();h.memoizedState=h.baseState=c;var m={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return h.queue=m,h=kb.bind(null,Ft,!0,m),m.dispatch=h,[c,h]},useMemoCache:Ab,useCacheRefresh:function(){return ha().memoizedState=f4.bind(null,Ft)}},c_={readContext:Qr,use:fg,useCallback:QD,useContext:Qr,useEffect:XD,useImperativeHandle:ZD,useInsertionEffect:VD,useLayoutEffect:UD,useMemo:KD,useReducer:hg,useRef:WD,useState:function(){return hg(us)},useDebugValue:Nb,useDeferredValue:function(c,h){var m=cr();return JD(m,On.memoizedState,c,h)},useTransition:function(){var c=hg(us)[0],h=cr().memoizedState;return[typeof c=="boolean"?c:Ed(c),h]},useSyncExternalStore:_D,useId:r_,useHostTransitionStatus:Fb,useFormState:BD,useActionState:BD,useOptimistic:function(c,h){var m=cr();return ND(m,On,c,h)},useMemoCache:Ab,useCacheRefresh:a_},g4={readContext:Qr,use:fg,useCallback:QD,useContext:Qr,useEffect:XD,useImperativeHandle:ZD,useInsertionEffect:VD,useLayoutEffect:UD,useMemo:KD,useReducer:Rb,useRef:WD,useState:function(){return Rb(us)},useDebugValue:Nb,useDeferredValue:function(c,h){var m=cr();return On===null?Ib(m,c,h):JD(m,On.memoizedState,c,h)},useTransition:function(){var c=Rb(us)[0],h=cr().memoizedState;return[typeof c=="boolean"?c:Ed(c),h]},useSyncExternalStore:_D,useId:r_,useHostTransitionStatus:Fb,useFormState:jD,useActionState:jD,useOptimistic:function(c,h){var m=cr();return On!==null?ND(m,On,c,h):(m.baseState=c,[c,m.queue.dispatch])},useMemoCache:Ab,useCacheRefresh:a_},pc=null,_d=0;function bg(c){var h=_d;return _d+=1,pc===null&&(pc=[]),xD(pc,c,h)}function Ad(c,h){h=h.props.ref,c.ref=h!==void 0?h:null}function yg(c,h){throw h.$$typeof===f?Error(r(525)):(c=Object.prototype.toString.call(h),Error(r(31,c==="[object Object]"?"object with keys {"+Object.keys(h).join(", ")+"}":c)))}function u_(c){var h=c._init;return h(c._payload)}function d_(c){function h(oe,re){if(c){var de=oe.deletions;de===null?(oe.deletions=[re],oe.flags|=16):de.push(re)}}function m(oe,re){if(!c)return null;for(;re!==null;)h(oe,re),re=re.sibling;return null}function w(oe){for(var re=new Map;oe!==null;)oe.key!==null?re.set(oe.key,oe):re.set(oe.index,oe),oe=oe.sibling;return re}function _(oe,re){return oe=is(oe,re),oe.index=0,oe.sibling=null,oe}function L(oe,re,de){return oe.index=de,c?(de=oe.alternate,de!==null?(de=de.index,de<re?(oe.flags|=67108866,re):de):(oe.flags|=67108866,re)):(oe.flags|=1048576,re)}function W(oe){return c&&oe.alternate===null&&(oe.flags|=67108866),oe}function Z(oe,re,de,Oe){return re===null||re.tag!==6?(re=ib(de,oe.mode,Oe),re.return=oe,re):(re=_(re,de),re.return=oe,re)}function J(oe,re,de,Oe){var Je=de.type;return Je===b?Se(oe,re,de.props.children,Oe,de.key):re!==null&&(re.elementType===Je||typeof Je=="object"&&Je!==null&&Je.$$typeof===P&&u_(Je)===re.type)?(re=_(re,de.props),Ad(re,de),re.return=oe,re):(re=tg(de.type,de.key,de.props,null,oe.mode,Oe),Ad(re,de),re.return=oe,re)}function fe(oe,re,de,Oe){return re===null||re.tag!==4||re.stateNode.containerInfo!==de.containerInfo||re.stateNode.implementation!==de.implementation?(re=sb(de,oe.mode,Oe),re.return=oe,re):(re=_(re,de.children||[]),re.return=oe,re)}function Se(oe,re,de,Oe,Je){return re===null||re.tag!==7?(re=jo(de,oe.mode,Oe,Je),re.return=oe,re):(re=_(re,de),re.return=oe,re)}function Me(oe,re,de){if(typeof re=="string"&&re!==""||typeof re=="number"||typeof re=="bigint")return re=ib(""+re,oe.mode,de),re.return=oe,re;if(typeof re=="object"&&re!==null){switch(re.$$typeof){case g:return de=tg(re.type,re.key,re.props,null,oe.mode,de),Ad(de,re),de.return=oe,de;case p:return re=sb(re,oe.mode,de),re.return=oe,re;case P:var Oe=re._init;return re=Oe(re._payload),Me(oe,re,de)}if(H(re)||$(re))return re=jo(re,oe.mode,de,null),re.return=oe,re;if(typeof re.then=="function")return Me(oe,bg(re),de);if(re.$$typeof===O)return Me(oe,ig(oe,re),de);yg(oe,re)}return null}function he(oe,re,de,Oe){var Je=re!==null?re.key:null;if(typeof de=="string"&&de!==""||typeof de=="number"||typeof de=="bigint")return Je!==null?null:Z(oe,re,""+de,Oe);if(typeof de=="object"&&de!==null){switch(de.$$typeof){case g:return de.key===Je?J(oe,re,de,Oe):null;case p:return de.key===Je?fe(oe,re,de,Oe):null;case P:return Je=de._init,de=Je(de._payload),he(oe,re,de,Oe)}if(H(de)||$(de))return Je!==null?null:Se(oe,re,de,Oe,null);if(typeof de.then=="function")return he(oe,re,bg(de),Oe);if(de.$$typeof===O)return he(oe,re,ig(oe,de),Oe);yg(oe,de)}return null}function ge(oe,re,de,Oe,Je){if(typeof Oe=="string"&&Oe!==""||typeof Oe=="number"||typeof Oe=="bigint")return oe=oe.get(de)||null,Z(re,oe,""+Oe,Je);if(typeof Oe=="object"&&Oe!==null){switch(Oe.$$typeof){case g:return oe=oe.get(Oe.key===null?de:Oe.key)||null,J(re,oe,Oe,Je);case p:return oe=oe.get(Oe.key===null?de:Oe.key)||null,fe(re,oe,Oe,Je);case P:var Bt=Oe._init;return Oe=Bt(Oe._payload),ge(oe,re,de,Oe,Je)}if(H(Oe)||$(Oe))return oe=oe.get(de)||null,Se(re,oe,Oe,Je,null);if(typeof Oe.then=="function")return ge(oe,re,de,bg(Oe),Je);if(Oe.$$typeof===O)return ge(oe,re,de,ig(re,Oe),Je);yg(re,Oe)}return null}function Ot(oe,re,de,Oe){for(var Je=null,Bt=null,ft=re,wt=re=0,Dr=null;ft!==null&&wt<de.length;wt++){ft.index>wt?(Dr=ft,ft=null):Dr=ft.sibling;var ln=he(oe,ft,de[wt],Oe);if(ln===null){ft===null&&(ft=Dr);break}c&&ft&&ln.alternate===null&&h(oe,ft),re=L(ln,re,wt),Bt===null?Je=ln:Bt.sibling=ln,Bt=ln,ft=Dr}if(wt===de.length)return m(oe,ft),fn&&qo(oe,wt),Je;if(ft===null){for(;wt<de.length;wt++)ft=Me(oe,de[wt],Oe),ft!==null&&(re=L(ft,re,wt),Bt===null?Je=ft:Bt.sibling=ft,Bt=ft);return fn&&qo(oe,wt),Je}for(ft=w(ft);wt<de.length;wt++)Dr=ge(ft,oe,wt,de[wt],Oe),Dr!==null&&(c&&Dr.alternate!==null&&ft.delete(Dr.key===null?wt:Dr.key),re=L(Dr,re,wt),Bt===null?Je=Dr:Bt.sibling=Dr,Bt=Dr);return c&&ft.forEach(function(ro){return h(oe,ro)}),fn&&qo(oe,wt),Je}function bt(oe,re,de,Oe){if(de==null)throw Error(r(151));for(var Je=null,Bt=null,ft=re,wt=re=0,Dr=null,ln=de.next();ft!==null&&!ln.done;wt++,ln=de.next()){ft.index>wt?(Dr=ft,ft=null):Dr=ft.sibling;var ro=he(oe,ft,ln.value,Oe);if(ro===null){ft===null&&(ft=Dr);break}c&&ft&&ro.alternate===null&&h(oe,ft),re=L(ro,re,wt),Bt===null?Je=ro:Bt.sibling=ro,Bt=ro,ft=Dr}if(ln.done)return m(oe,ft),fn&&qo(oe,wt),Je;if(ft===null){for(;!ln.done;wt++,ln=de.next())ln=Me(oe,ln.value,Oe),ln!==null&&(re=L(ln,re,wt),Bt===null?Je=ln:Bt.sibling=ln,Bt=ln);return fn&&qo(oe,wt),Je}for(ft=w(ft);!ln.done;wt++,ln=de.next())ln=ge(ft,oe,wt,ln.value,Oe),ln!==null&&(c&&ln.alternate!==null&&ft.delete(ln.key===null?wt:ln.key),re=L(ln,re,wt),Bt===null?Je=ln:Bt.sibling=ln,Bt=ln);return c&&ft.forEach(function(p5){return h(oe,p5)}),fn&&qo(oe,wt),Je}function Mn(oe,re,de,Oe){if(typeof de=="object"&&de!==null&&de.type===b&&de.key===null&&(de=de.props.children),typeof de=="object"&&de!==null){switch(de.$$typeof){case g:e:{for(var Je=de.key;re!==null;){if(re.key===Je){if(Je=de.type,Je===b){if(re.tag===7){m(oe,re.sibling),Oe=_(re,de.props.children),Oe.return=oe,oe=Oe;break e}}else if(re.elementType===Je||typeof Je=="object"&&Je!==null&&Je.$$typeof===P&&u_(Je)===re.type){m(oe,re.sibling),Oe=_(re,de.props),Ad(Oe,de),Oe.return=oe,oe=Oe;break e}m(oe,re);break}else h(oe,re);re=re.sibling}de.type===b?(Oe=jo(de.props.children,oe.mode,Oe,de.key),Oe.return=oe,oe=Oe):(Oe=tg(de.type,de.key,de.props,null,oe.mode,Oe),Ad(Oe,de),Oe.return=oe,oe=Oe)}return W(oe);case p:e:{for(Je=de.key;re!==null;){if(re.key===Je)if(re.tag===4&&re.stateNode.containerInfo===de.containerInfo&&re.stateNode.implementation===de.implementation){m(oe,re.sibling),Oe=_(re,de.children||[]),Oe.return=oe,oe=Oe;break e}else{m(oe,re);break}else h(oe,re);re=re.sibling}Oe=sb(de,oe.mode,Oe),Oe.return=oe,oe=Oe}return W(oe);case P:return Je=de._init,de=Je(de._payload),Mn(oe,re,de,Oe)}if(H(de))return Ot(oe,re,de,Oe);if($(de)){if(Je=$(de),typeof Je!="function")throw Error(r(150));return de=Je.call(de),bt(oe,re,de,Oe)}if(typeof de.then=="function")return Mn(oe,re,bg(de),Oe);if(de.$$typeof===O)return Mn(oe,re,ig(oe,de),Oe);yg(oe,de)}return typeof de=="string"&&de!==""||typeof de=="number"||typeof de=="bigint"?(de=""+de,re!==null&&re.tag===6?(m(oe,re.sibling),Oe=_(re,de),Oe.return=oe,oe=Oe):(m(oe,re),Oe=ib(de,oe.mode,Oe),Oe.return=oe,oe=Oe),W(oe)):m(oe,re)}return function(oe,re,de,Oe){try{_d=0;var Je=Mn(oe,re,de,Oe);return pc=null,Je}catch(ft){if(ft===yd||ft===og)throw ft;var Bt=Ma(29,ft,null,oe.mode);return Bt.lanes=Oe,Bt.return=oe,Bt}finally{}}}var mc=d_(!0),f_=d_(!1),Ua=V(null),Pi=null;function Ys(c){var h=c.alternate;q(vr,vr.current&1),q(Ua,c),Pi===null&&(h===null||dc.current!==null||h.memoizedState!==null)&&(Pi=c)}function h_(c){if(c.tag===22){if(q(vr,vr.current),q(Ua,c),Pi===null){var h=c.alternate;h!==null&&h.memoizedState!==null&&(Pi=c)}}else js()}function js(){q(vr,vr.current),q(Ua,Ua.current)}function ds(c){j(Ua),Pi===c&&(Pi=null),j(vr)}var vr=V(0);function xg(c){for(var h=c;h!==null;){if(h.tag===13){var m=h.memoizedState;if(m!==null&&(m=m.dehydrated,m===null||m.data==="$?"||_0(m)))return h}else if(h.tag===19&&h.memoizedProps.revealOrder!==void 0){if((h.flags&128)!==0)return h}else if(h.child!==null){h.child.return=h,h=h.child;continue}if(h===c)break;for(;h.sibling===null;){if(h.return===null||h.return===c)return null;h=h.return}h.sibling.return=h.return,h=h.sibling}return null}function Hb(c,h,m,w){h=c.memoizedState,m=m(w,h),m=m==null?h:d({},h,m),c.memoizedState=m,c.lanes===0&&(c.updateQueue.baseState=m)}var zb={enqueueSetState:function(c,h,m){c=c._reactInternals;var w=Ta(),_=Hs(w);_.payload=h,m!=null&&(_.callback=m),h=zs(c,_,w),h!==null&&(Ra(h,c,w),wd(h,c,w))},enqueueReplaceState:function(c,h,m){c=c._reactInternals;var w=Ta(),_=Hs(w);_.tag=1,_.payload=h,m!=null&&(_.callback=m),h=zs(c,_,w),h!==null&&(Ra(h,c,w),wd(h,c,w))},enqueueForceUpdate:function(c,h){c=c._reactInternals;var m=Ta(),w=Hs(m);w.tag=2,h!=null&&(w.callback=h),h=zs(c,w,m),h!==null&&(Ra(h,c,m),wd(h,c,m))}};function g_(c,h,m,w,_,L,W){return c=c.stateNode,typeof c.shouldComponentUpdate=="function"?c.shouldComponentUpdate(w,L,W):h.prototype&&h.prototype.isPureReactComponent?!rs(m,w)||!rs(_,L):!0}function p_(c,h,m,w){c=h.state,typeof h.componentWillReceiveProps=="function"&&h.componentWillReceiveProps(m,w),typeof h.UNSAFE_componentWillReceiveProps=="function"&&h.UNSAFE_componentWillReceiveProps(m,w),h.state!==c&&zb.enqueueReplaceState(h,h.state,null)}function Ko(c,h){var m=h;if("ref"in h){m={};for(var w in h)w!=="ref"&&(m[w]=h[w])}if(c=c.defaultProps){m===h&&(m=d({},m));for(var _ in c)m[_]===void 0&&(m[_]=c[_])}return m}var wg=typeof reportError=="function"?reportError:function(c){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var h=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof c=="object"&&c!==null&&typeof c.message=="string"?String(c.message):String(c),error:c});if(!window.dispatchEvent(h))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",c);return}console.error(c)};function m_(c){wg(c)}function v_(c){console.error(c)}function b_(c){wg(c)}function Sg(c,h){try{var m=c.onUncaughtError;m(h.value,{componentStack:h.stack})}catch(w){setTimeout(function(){throw w})}}function y_(c,h,m){try{var w=c.onCaughtError;w(m.value,{componentStack:m.stack,errorBoundary:h.tag===1?h.stateNode:null})}catch(_){setTimeout(function(){throw _})}}function Bb(c,h,m){return m=Hs(m),m.tag=3,m.payload={element:null},m.callback=function(){Sg(c,h)},m}function x_(c){return c=Hs(c),c.tag=3,c}function w_(c,h,m,w){var _=m.type.getDerivedStateFromError;if(typeof _=="function"){var L=w.value;c.payload=function(){return _(L)},c.callback=function(){y_(h,m,w)}}var W=m.stateNode;W!==null&&typeof W.componentDidCatch=="function"&&(c.callback=function(){y_(h,m,w),typeof _!="function"&&(Gs===null?Gs=new Set([this]):Gs.add(this));var Z=w.stack;this.componentDidCatch(w.value,{componentStack:Z!==null?Z:""})})}function p4(c,h,m,w,_){if(m.flags|=32768,w!==null&&typeof w=="object"&&typeof w.then=="function"){if(h=m.alternate,h!==null&&md(h,m,_,!0),m=Ua.current,m!==null){switch(m.tag){case 13:return Pi===null?d0():m.alternate===null&&Un===0&&(Un=3),m.flags&=-257,m.flags|=65536,m.lanes=_,w===mb?m.flags|=16384:(h=m.updateQueue,h===null?m.updateQueue=new Set([w]):h.add(w),h0(c,w,_)),!1;case 22:return m.flags|=65536,w===mb?m.flags|=16384:(h=m.updateQueue,h===null?(h={transitions:null,markerInstances:null,retryQueue:new Set([w])},m.updateQueue=h):(m=h.retryQueue,m===null?h.retryQueue=new Set([w]):m.add(w)),h0(c,w,_)),!1}throw Error(r(435,m.tag))}return h0(c,w,_),d0(),!1}if(fn)return h=Ua.current,h!==null?((h.flags&65536)===0&&(h.flags|=256),h.flags|=65536,h.lanes=_,w!==cb&&(c=Error(r(422),{cause:w}),pd(Wa(c,m)))):(w!==cb&&(h=Error(r(423),{cause:w}),pd(Wa(h,m))),c=c.current.alternate,c.flags|=65536,_&=-_,c.lanes|=_,w=Wa(w,m),_=Bb(c.stateNode,w,_),yb(c,_),Un!==4&&(Un=2)),!1;var L=Error(r(520),{cause:w});if(L=Wa(L,m),$d===null?$d=[L]:$d.push(L),Un!==4&&(Un=2),h===null)return!0;w=Wa(w,m),m=h;do{switch(m.tag){case 3:return m.flags|=65536,c=_&-_,m.lanes|=c,c=Bb(m.stateNode,w,c),yb(m,c),!1;case 1:if(h=m.type,L=m.stateNode,(m.flags&128)===0&&(typeof h.getDerivedStateFromError=="function"||L!==null&&typeof L.componentDidCatch=="function"&&(Gs===null||!Gs.has(L))))return m.flags|=65536,_&=-_,m.lanes|=_,_=x_(_),w_(_,c,m,w),yb(m,_),!1}m=m.return}while(m!==null);return!1}var S_=Error(r(461)),Er=!1;function Hr(c,h,m,w){h.child=c===null?f_(h,null,m,w):mc(h,c.child,m,w)}function C_(c,h,m,w,_){m=m.render;var L=h.ref;if("ref"in w){var W={};for(var Z in w)Z!=="ref"&&(W[Z]=w[Z])}else W=w;return Go(h),w=Ob(c,h,m,W,L,_),Z=Eb(),c!==null&&!Er?(Mb(c,h,_),fs(c,h,_)):(fn&&Z&&ob(h),h.flags|=1,Hr(c,h,w,_),h.child)}function O_(c,h,m,w,_){if(c===null){var L=m.type;return typeof L=="function"&&!ab(L)&&L.defaultProps===void 0&&m.compare===null?(h.tag=15,h.type=L,E_(c,h,L,w,_)):(c=tg(m.type,null,w,h,h.mode,_),c.ref=h.ref,c.return=h,h.child=c)}if(L=c.child,!Gb(c,_)){var W=L.memoizedProps;if(m=m.compare,m=m!==null?m:rs,m(W,w)&&c.ref===h.ref)return fs(c,h,_)}return h.flags|=1,c=is(L,w),c.ref=h.ref,c.return=h,h.child=c}function E_(c,h,m,w,_){if(c!==null){var L=c.memoizedProps;if(rs(L,w)&&c.ref===h.ref)if(Er=!1,h.pendingProps=w=L,Gb(c,_))(c.flags&131072)!==0&&(Er=!0);else return h.lanes=c.lanes,fs(c,h,_)}return Yb(c,h,m,w,_)}function M_(c,h,m){var w=h.pendingProps,_=w.children,L=c!==null?c.memoizedState:null;if(w.mode==="hidden"){if((h.flags&128)!==0){if(w=L!==null?L.baseLanes|m:m,c!==null){for(_=h.child=c.child,L=0;_!==null;)L=L|_.lanes|_.childLanes,_=_.sibling;h.childLanes=L&~w}else h.childLanes=0,h.child=null;return D_(c,h,w,m)}if((m&536870912)!==0)h.memoizedState={baseLanes:0,cachePool:null},c!==null&&sg(h,L!==null?L.cachePool:null),L!==null?ED(h,L):wb(),h_(h);else return h.lanes=h.childLanes=536870912,D_(c,h,L!==null?L.baseLanes|m:m,m)}else L!==null?(sg(h,L.cachePool),ED(h,L),js(),h.memoizedState=null):(c!==null&&sg(h,null),wb(),js());return Hr(c,h,_,m),h.child}function D_(c,h,m,w){var _=pb();return _=_===null?null:{parent:mr._currentValue,pool:_},h.memoizedState={baseLanes:m,cachePool:_},c!==null&&sg(h,null),wb(),h_(h),c!==null&&md(c,h,w,!0),null}function Cg(c,h){var m=h.ref;if(m===null)c!==null&&c.ref!==null&&(h.flags|=4194816);else{if(typeof m!="function"&&typeof m!="object")throw Error(r(284));(c===null||c.ref!==m)&&(h.flags|=4194816)}}function Yb(c,h,m,w,_){return Go(h),m=Ob(c,h,m,w,void 0,_),w=Eb(),c!==null&&!Er?(Mb(c,h,_),fs(c,h,_)):(fn&&w&&ob(h),h.flags|=1,Hr(c,h,m,_),h.child)}function __(c,h,m,w,_,L){return Go(h),h.updateQueue=null,m=DD(h,w,m,_),MD(c),w=Eb(),c!==null&&!Er?(Mb(c,h,L),fs(c,h,L)):(fn&&w&&ob(h),h.flags|=1,Hr(c,h,m,L),h.child)}function A_(c,h,m,w,_){if(Go(h),h.stateNode===null){var L=sc,W=m.contextType;typeof W=="object"&&W!==null&&(L=Qr(W)),L=new m(w,L),h.memoizedState=L.state!==null&&L.state!==void 0?L.state:null,L.updater=zb,h.stateNode=L,L._reactInternals=h,L=h.stateNode,L.props=w,L.state=h.memoizedState,L.refs={},vb(h),W=m.contextType,L.context=typeof W=="object"&&W!==null?Qr(W):sc,L.state=h.memoizedState,W=m.getDerivedStateFromProps,typeof W=="function"&&(Hb(h,m,W,w),L.state=h.memoizedState),typeof m.getDerivedStateFromProps=="function"||typeof L.getSnapshotBeforeUpdate=="function"||typeof L.UNSAFE_componentWillMount!="function"&&typeof L.componentWillMount!="function"||(W=L.state,typeof L.componentWillMount=="function"&&L.componentWillMount(),typeof L.UNSAFE_componentWillMount=="function"&&L.UNSAFE_componentWillMount(),W!==L.state&&zb.enqueueReplaceState(L,L.state,null),Cd(h,w,L,_),Sd(),L.state=h.memoizedState),typeof L.componentDidMount=="function"&&(h.flags|=4194308),w=!0}else if(c===null){L=h.stateNode;var Z=h.memoizedProps,J=Ko(m,Z);L.props=J;var fe=L.context,Se=m.contextType;W=sc,typeof Se=="object"&&Se!==null&&(W=Qr(Se));var Me=m.getDerivedStateFromProps;Se=typeof Me=="function"||typeof L.getSnapshotBeforeUpdate=="function",Z=h.pendingProps!==Z,Se||typeof L.UNSAFE_componentWillReceiveProps!="function"&&typeof L.componentWillReceiveProps!="function"||(Z||fe!==W)&&p_(h,L,w,W),ks=!1;var he=h.memoizedState;L.state=he,Cd(h,w,L,_),Sd(),fe=h.memoizedState,Z||he!==fe||ks?(typeof Me=="function"&&(Hb(h,m,Me,w),fe=h.memoizedState),(J=ks||g_(h,m,J,w,he,fe,W))?(Se||typeof L.UNSAFE_componentWillMount!="function"&&typeof L.componentWillMount!="function"||(typeof L.componentWillMount=="function"&&L.componentWillMount(),typeof L.UNSAFE_componentWillMount=="function"&&L.UNSAFE_componentWillMount()),typeof L.componentDidMount=="function"&&(h.flags|=4194308)):(typeof L.componentDidMount=="function"&&(h.flags|=4194308),h.memoizedProps=w,h.memoizedState=fe),L.props=w,L.state=fe,L.context=W,w=J):(typeof L.componentDidMount=="function"&&(h.flags|=4194308),w=!1)}else{L=h.stateNode,bb(c,h),W=h.memoizedProps,Se=Ko(m,W),L.props=Se,Me=h.pendingProps,he=L.context,fe=m.contextType,J=sc,typeof fe=="object"&&fe!==null&&(J=Qr(fe)),Z=m.getDerivedStateFromProps,(fe=typeof Z=="function"||typeof L.getSnapshotBeforeUpdate=="function")||typeof L.UNSAFE_componentWillReceiveProps!="function"&&typeof L.componentWillReceiveProps!="function"||(W!==Me||he!==J)&&p_(h,L,w,J),ks=!1,he=h.memoizedState,L.state=he,Cd(h,w,L,_),Sd();var ge=h.memoizedState;W!==Me||he!==ge||ks||c!==null&&c.dependencies!==null&&ag(c.dependencies)?(typeof Z=="function"&&(Hb(h,m,Z,w),ge=h.memoizedState),(Se=ks||g_(h,m,Se,w,he,ge,J)||c!==null&&c.dependencies!==null&&ag(c.dependencies))?(fe||typeof L.UNSAFE_componentWillUpdate!="function"&&typeof L.componentWillUpdate!="function"||(typeof L.componentWillUpdate=="function"&&L.componentWillUpdate(w,ge,J),typeof L.UNSAFE_componentWillUpdate=="function"&&L.UNSAFE_componentWillUpdate(w,ge,J)),typeof L.componentDidUpdate=="function"&&(h.flags|=4),typeof L.getSnapshotBeforeUpdate=="function"&&(h.flags|=1024)):(typeof L.componentDidUpdate!="function"||W===c.memoizedProps&&he===c.memoizedState||(h.flags|=4),typeof L.getSnapshotBeforeUpdate!="function"||W===c.memoizedProps&&he===c.memoizedState||(h.flags|=1024),h.memoizedProps=w,h.memoizedState=ge),L.props=w,L.state=ge,L.context=J,w=Se):(typeof L.componentDidUpdate!="function"||W===c.memoizedProps&&he===c.memoizedState||(h.flags|=4),typeof L.getSnapshotBeforeUpdate!="function"||W===c.memoizedProps&&he===c.memoizedState||(h.flags|=1024),w=!1)}return L=w,Cg(c,h),w=(h.flags&128)!==0,L||w?(L=h.stateNode,m=w&&typeof m.getDerivedStateFromError!="function"?null:L.render(),h.flags|=1,c!==null&&w?(h.child=mc(h,c.child,null,_),h.child=mc(h,null,m,_)):Hr(c,h,m,_),h.memoizedState=L.state,c=h.child):c=fs(c,h,_),c}function T_(c,h,m,w){return gd(),h.flags|=256,Hr(c,h,m,w),h.child}var jb={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Wb(c){return{baseLanes:c,cachePool:vD()}}function qb(c,h,m){return c=c!==null?c.childLanes&~m:0,h&&(c|=Ga),c}function R_(c,h,m){var w=h.pendingProps,_=!1,L=(h.flags&128)!==0,W;if((W=L)||(W=c!==null&&c.memoizedState===null?!1:(vr.current&2)!==0),W&&(_=!0,h.flags&=-129),W=(h.flags&32)!==0,h.flags&=-33,c===null){if(fn){if(_?Ys(h):js(),fn){var Z=Vn,J;if(J=Z){e:{for(J=Z,Z=Ri;J.nodeType!==8;){if(!Z){Z=null;break e}if(J=pi(J.nextSibling),J===null){Z=null;break e}}Z=J}Z!==null?(h.memoizedState={dehydrated:Z,treeContext:Wo!==null?{id:ss,overflow:os}:null,retryLane:536870912,hydrationErrors:null},J=Ma(18,null,null,0),J.stateNode=Z,J.return=h,h.child=J,sa=h,Vn=null,J=!0):J=!1}J||Vo(h)}if(Z=h.memoizedState,Z!==null&&(Z=Z.dehydrated,Z!==null))return _0(Z)?h.lanes=32:h.lanes=536870912,null;ds(h)}return Z=w.children,w=w.fallback,_?(js(),_=h.mode,Z=Og({mode:"hidden",children:Z},_),w=jo(w,_,m,null),Z.return=h,w.return=h,Z.sibling=w,h.child=Z,_=h.child,_.memoizedState=Wb(m),_.childLanes=qb(c,W,m),h.memoizedState=jb,w):(Ys(h),Xb(h,Z))}if(J=c.memoizedState,J!==null&&(Z=J.dehydrated,Z!==null)){if(L)h.flags&256?(Ys(h),h.flags&=-257,h=Vb(c,h,m)):h.memoizedState!==null?(js(),h.child=c.child,h.flags|=128,h=null):(js(),_=w.fallback,Z=h.mode,w=Og({mode:"visible",children:w.children},Z),_=jo(_,Z,m,null),_.flags|=2,w.return=h,_.return=h,w.sibling=_,h.child=w,mc(h,c.child,null,m),w=h.child,w.memoizedState=Wb(m),w.childLanes=qb(c,W,m),h.memoizedState=jb,h=_);else if(Ys(h),_0(Z)){if(W=Z.nextSibling&&Z.nextSibling.dataset,W)var fe=W.dgst;W=fe,w=Error(r(419)),w.stack="",w.digest=W,pd({value:w,source:null,stack:null}),h=Vb(c,h,m)}else if(Er||md(c,h,m,!1),W=(m&c.childLanes)!==0,Er||W){if(W=Nn,W!==null&&(w=m&-m,w=(w&42)!==0?1:Ct(w),w=(w&(W.suspendedLanes|m))!==0?0:w,w!==0&&w!==J.retryLane))throw J.retryLane=w,ic(c,w),Ra(W,c,w),S_;Z.data==="$?"||d0(),h=Vb(c,h,m)}else Z.data==="$?"?(h.flags|=192,h.child=c.child,h=null):(c=J.treeContext,Vn=pi(Z.nextSibling),sa=h,fn=!0,Xo=null,Ri=!1,c!==null&&(Xa[Va++]=ss,Xa[Va++]=os,Xa[Va++]=Wo,ss=c.id,os=c.overflow,Wo=h),h=Xb(h,w.children),h.flags|=4096);return h}return _?(js(),_=w.fallback,Z=h.mode,J=c.child,fe=J.sibling,w=is(J,{mode:"hidden",children:w.children}),w.subtreeFlags=J.subtreeFlags&65011712,fe!==null?_=is(fe,_):(_=jo(_,Z,m,null),_.flags|=2),_.return=h,w.return=h,w.sibling=_,h.child=w,w=_,_=h.child,Z=c.child.memoizedState,Z===null?Z=Wb(m):(J=Z.cachePool,J!==null?(fe=mr._currentValue,J=J.parent!==fe?{parent:fe,pool:fe}:J):J=vD(),Z={baseLanes:Z.baseLanes|m,cachePool:J}),_.memoizedState=Z,_.childLanes=qb(c,W,m),h.memoizedState=jb,w):(Ys(h),m=c.child,c=m.sibling,m=is(m,{mode:"visible",children:w.children}),m.return=h,m.sibling=null,c!==null&&(W=h.deletions,W===null?(h.deletions=[c],h.flags|=16):W.push(c)),h.child=m,h.memoizedState=null,m)}function Xb(c,h){return h=Og({mode:"visible",children:h},c.mode),h.return=c,c.child=h}function Og(c,h){return c=Ma(22,c,null,h),c.lanes=0,c.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null},c}function Vb(c,h,m){return mc(h,c.child,null,m),c=Xb(h,h.pendingProps.children),c.flags|=2,h.memoizedState=null,c}function P_(c,h,m){c.lanes|=h;var w=c.alternate;w!==null&&(w.lanes|=h),db(c.return,h,m)}function Ub(c,h,m,w,_){var L=c.memoizedState;L===null?c.memoizedState={isBackwards:h,rendering:null,renderingStartTime:0,last:w,tail:m,tailMode:_}:(L.isBackwards=h,L.rendering=null,L.renderingStartTime=0,L.last=w,L.tail=m,L.tailMode=_)}function L_(c,h,m){var w=h.pendingProps,_=w.revealOrder,L=w.tail;if(Hr(c,h,w.children,m),w=vr.current,(w&2)!==0)w=w&1|2,h.flags|=128;else{if(c!==null&&(c.flags&128)!==0)e:for(c=h.child;c!==null;){if(c.tag===13)c.memoizedState!==null&&P_(c,m,h);else if(c.tag===19)P_(c,m,h);else if(c.child!==null){c.child.return=c,c=c.child;continue}if(c===h)break e;for(;c.sibling===null;){if(c.return===null||c.return===h)break e;c=c.return}c.sibling.return=c.return,c=c.sibling}w&=1}switch(q(vr,w),_){case"forwards":for(m=h.child,_=null;m!==null;)c=m.alternate,c!==null&&xg(c)===null&&(_=m),m=m.sibling;m=_,m===null?(_=h.child,h.child=null):(_=m.sibling,m.sibling=null),Ub(h,!1,_,m,L);break;case"backwards":for(m=null,_=h.child,h.child=null;_!==null;){if(c=_.alternate,c!==null&&xg(c)===null){h.child=_;break}c=_.sibling,_.sibling=m,m=_,_=c}Ub(h,!0,m,null,L);break;case"together":Ub(h,!1,null,null,void 0);break;default:h.memoizedState=null}return h.child}function fs(c,h,m){if(c!==null&&(h.dependencies=c.dependencies),Us|=h.lanes,(m&h.childLanes)===0)if(c!==null){if(md(c,h,m,!1),(m&h.childLanes)===0)return null}else return null;if(c!==null&&h.child!==c.child)throw Error(r(153));if(h.child!==null){for(c=h.child,m=is(c,c.pendingProps),h.child=m,m.return=h;c.sibling!==null;)c=c.sibling,m=m.sibling=is(c,c.pendingProps),m.return=h;m.sibling=null}return h.child}function Gb(c,h){return(c.lanes&h)!==0?!0:(c=c.dependencies,!!(c!==null&&ag(c)))}function m4(c,h,m){switch(h.tag){case 3:ne(h,h.stateNode.containerInfo),Fs(h,mr,c.memoizedState.cache),gd();break;case 27:case 5:ce(h);break;case 4:ne(h,h.stateNode.containerInfo);break;case 10:Fs(h,h.type,h.memoizedProps.value);break;case 13:var w=h.memoizedState;if(w!==null)return w.dehydrated!==null?(Ys(h),h.flags|=128,null):(m&h.child.childLanes)!==0?R_(c,h,m):(Ys(h),c=fs(c,h,m),c!==null?c.sibling:null);Ys(h);break;case 19:var _=(c.flags&128)!==0;if(w=(m&h.childLanes)!==0,w||(md(c,h,m,!1),w=(m&h.childLanes)!==0),_){if(w)return L_(c,h,m);h.flags|=128}if(_=h.memoizedState,_!==null&&(_.rendering=null,_.tail=null,_.lastEffect=null),q(vr,vr.current),w)break;return null;case 22:case 23:return h.lanes=0,M_(c,h,m);case 24:Fs(h,mr,c.memoizedState.cache)}return fs(c,h,m)}function N_(c,h,m){if(c!==null)if(c.memoizedProps!==h.pendingProps)Er=!0;else{if(!Gb(c,m)&&(h.flags&128)===0)return Er=!1,m4(c,h,m);Er=(c.flags&131072)!==0}else Er=!1,fn&&(h.flags&1048576)!==0&&uD(h,rg,h.index);switch(h.lanes=0,h.tag){case 16:e:{c=h.pendingProps;var w=h.elementType,_=w._init;if(w=_(w._payload),h.type=w,typeof w=="function")ab(w)?(c=Ko(w,c),h.tag=1,h=A_(null,h,w,c,m)):(h.tag=0,h=Yb(null,h,w,c,m));else{if(w!=null){if(_=w.$$typeof,_===D){h.tag=11,h=C_(null,h,w,c,m);break e}else if(_===T){h.tag=14,h=O_(null,h,w,c,m);break e}}throw h=k(w)||w,Error(r(306,h,""))}}return h;case 0:return Yb(c,h,h.type,h.pendingProps,m);case 1:return w=h.type,_=Ko(w,h.pendingProps),A_(c,h,w,_,m);case 3:e:{if(ne(h,h.stateNode.containerInfo),c===null)throw Error(r(387));w=h.pendingProps;var L=h.memoizedState;_=L.element,bb(c,h),Cd(h,w,null,m);var W=h.memoizedState;if(w=W.cache,Fs(h,mr,w),w!==L.cache&&fb(h,[mr],m,!0),Sd(),w=W.element,L.isDehydrated)if(L={element:w,isDehydrated:!1,cache:W.cache},h.updateQueue.baseState=L,h.memoizedState=L,h.flags&256){h=T_(c,h,w,m);break e}else if(w!==_){_=Wa(Error(r(424)),h),pd(_),h=T_(c,h,w,m);break e}else{switch(c=h.stateNode.containerInfo,c.nodeType){case 9:c=c.body;break;default:c=c.nodeName==="HTML"?c.ownerDocument.body:c}for(Vn=pi(c.firstChild),sa=h,fn=!0,Xo=null,Ri=!0,m=f_(h,null,w,m),h.child=m;m;)m.flags=m.flags&-3|4096,m=m.sibling}else{if(gd(),w===_){h=fs(c,h,m);break e}Hr(c,h,w,m)}h=h.child}return h;case 26:return Cg(c,h),c===null?(m=kA(h.type,null,h.pendingProps,null))?h.memoizedState=m:fn||(m=h.type,c=h.pendingProps,w=kg(K.current).createElement(m),w[gt]=h,w[jt]=c,Br(w,m,c),Et(w),h.stateNode=w):h.memoizedState=kA(h.type,c.memoizedProps,h.pendingProps,c.memoizedState),null;case 27:return ce(h),c===null&&fn&&(w=h.stateNode=IA(h.type,h.pendingProps,K.current),sa=h,Ri=!0,_=Vn,Ks(h.type)?(A0=_,Vn=pi(w.firstChild)):Vn=_),Hr(c,h,h.pendingProps.children,m),Cg(c,h),c===null&&(h.flags|=4194304),h.child;case 5:return c===null&&fn&&((_=w=Vn)&&(w=W4(w,h.type,h.pendingProps,Ri),w!==null?(h.stateNode=w,sa=h,Vn=pi(w.firstChild),Ri=!1,_=!0):_=!1),_||Vo(h)),ce(h),_=h.type,L=h.pendingProps,W=c!==null?c.memoizedProps:null,w=L.children,E0(_,L)?w=null:W!==null&&E0(_,W)&&(h.flags|=32),h.memoizedState!==null&&(_=Ob(c,h,l4,null,null,m),qd._currentValue=_),Cg(c,h),Hr(c,h,w,m),h.child;case 6:return c===null&&fn&&((c=m=Vn)&&(m=q4(m,h.pendingProps,Ri),m!==null?(h.stateNode=m,sa=h,Vn=null,c=!0):c=!1),c||Vo(h)),null;case 13:return R_(c,h,m);case 4:return ne(h,h.stateNode.containerInfo),w=h.pendingProps,c===null?h.child=mc(h,null,w,m):Hr(c,h,w,m),h.child;case 11:return C_(c,h,h.type,h.pendingProps,m);case 7:return Hr(c,h,h.pendingProps,m),h.child;case 8:return Hr(c,h,h.pendingProps.children,m),h.child;case 12:return Hr(c,h,h.pendingProps.children,m),h.child;case 10:return w=h.pendingProps,Fs(h,h.type,w.value),Hr(c,h,w.children,m),h.child;case 9:return _=h.type._context,w=h.pendingProps.children,Go(h),_=Qr(_),w=w(_),h.flags|=1,Hr(c,h,w,m),h.child;case 14:return O_(c,h,h.type,h.pendingProps,m);case 15:return E_(c,h,h.type,h.pendingProps,m);case 19:return L_(c,h,m);case 31:return w=h.pendingProps,m=h.mode,w={mode:w.mode,children:w.children},c===null?(m=Og(w,m),m.ref=h.ref,h.child=m,m.return=h,h=m):(m=is(c.child,w),m.ref=h.ref,h.child=m,m.return=h,h=m),h;case 22:return M_(c,h,m);case 24:return Go(h),w=Qr(mr),c===null?(_=pb(),_===null&&(_=Nn,L=hb(),_.pooledCache=L,L.refCount++,L!==null&&(_.pooledCacheLanes|=m),_=L),h.memoizedState={parent:w,cache:_},vb(h),Fs(h,mr,_)):((c.lanes&m)!==0&&(bb(c,h),Cd(h,null,null,m),Sd()),_=c.memoizedState,L=h.memoizedState,_.parent!==w?(_={parent:w,cache:w},h.memoizedState=_,h.lanes===0&&(h.memoizedState=h.updateQueue.baseState=_),Fs(h,mr,w)):(w=L.cache,Fs(h,mr,w),w!==_.cache&&fb(h,[mr],m,!0))),Hr(c,h,h.pendingProps.children,m),h.child;case 29:throw h.pendingProps}throw Error(r(156,h.tag))}function hs(c){c.flags|=4}function I_(c,h){if(h.type!=="stylesheet"||(h.state.loading&4)!==0)c.flags&=-16777217;else if(c.flags|=16777216,!jA(h)){if(h=Ua.current,h!==null&&((tn&4194048)===tn?Pi!==null:(tn&62914560)!==tn&&(tn&536870912)===0||h!==Pi))throw xd=mb,bD;c.flags|=8192}}function Eg(c,h){h!==null&&(c.flags|=4),c.flags&16384&&(h=c.tag!==22?At():536870912,c.lanes|=h,xc|=h)}function Td(c,h){if(!fn)switch(c.tailMode){case"hidden":h=c.tail;for(var m=null;h!==null;)h.alternate!==null&&(m=h),h=h.sibling;m===null?c.tail=null:m.sibling=null;break;case"collapsed":m=c.tail;for(var w=null;m!==null;)m.alternate!==null&&(w=m),m=m.sibling;w===null?h||c.tail===null?c.tail=null:c.tail.sibling=null:w.sibling=null}}function jn(c){var h=c.alternate!==null&&c.alternate.child===c.child,m=0,w=0;if(h)for(var _=c.child;_!==null;)m|=_.lanes|_.childLanes,w|=_.subtreeFlags&65011712,w|=_.flags&65011712,_.return=c,_=_.sibling;else for(_=c.child;_!==null;)m|=_.lanes|_.childLanes,w|=_.subtreeFlags,w|=_.flags,_.return=c,_=_.sibling;return c.subtreeFlags|=w,c.childLanes=m,h}function v4(c,h,m){var w=h.pendingProps;switch(lb(h),h.tag){case 31:case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return jn(h),null;case 1:return jn(h),null;case 3:return m=h.stateNode,w=null,c!==null&&(w=c.memoizedState.cache),h.memoizedState.cache!==w&&(h.flags|=2048),cs(mr),ie(),m.pendingContext&&(m.context=m.pendingContext,m.pendingContext=null),(c===null||c.child===null)&&(hd(h)?hs(h):c===null||c.memoizedState.isDehydrated&&(h.flags&256)===0||(h.flags|=1024,hD())),jn(h),null;case 26:return m=h.memoizedState,c===null?(hs(h),m!==null?(jn(h),I_(h,m)):(jn(h),h.flags&=-16777217)):m?m!==c.memoizedState?(hs(h),jn(h),I_(h,m)):(jn(h),h.flags&=-16777217):(c.memoizedProps!==w&&hs(h),jn(h),h.flags&=-16777217),null;case 27:ue(h),m=K.current;var _=h.type;if(c!==null&&h.stateNode!=null)c.memoizedProps!==w&&hs(h);else{if(!w){if(h.stateNode===null)throw Error(r(166));return jn(h),null}c=G.current,hd(h)?dD(h):(c=IA(_,w,m),h.stateNode=c,hs(h))}return jn(h),null;case 5:if(ue(h),m=h.type,c!==null&&h.stateNode!=null)c.memoizedProps!==w&&hs(h);else{if(!w){if(h.stateNode===null)throw Error(r(166));return jn(h),null}if(c=G.current,hd(h))dD(h);else{switch(_=kg(K.current),c){case 1:c=_.createElementNS("http://www.w3.org/2000/svg",m);break;case 2:c=_.createElementNS("http://www.w3.org/1998/Math/MathML",m);break;default:switch(m){case"svg":c=_.createElementNS("http://www.w3.org/2000/svg",m);break;case"math":c=_.createElementNS("http://www.w3.org/1998/Math/MathML",m);break;case"script":c=_.createElement("div"),c.innerHTML="<script><\/script>",c=c.removeChild(c.firstChild);break;case"select":c=typeof w.is=="string"?_.createElement("select",{is:w.is}):_.createElement("select"),w.multiple?c.multiple=!0:w.size&&(c.size=w.size);break;default:c=typeof w.is=="string"?_.createElement(m,{is:w.is}):_.createElement(m)}}c[gt]=h,c[jt]=w;e:for(_=h.child;_!==null;){if(_.tag===5||_.tag===6)c.appendChild(_.stateNode);else if(_.tag!==4&&_.tag!==27&&_.child!==null){_.child.return=_,_=_.child;continue}if(_===h)break e;for(;_.sibling===null;){if(_.return===null||_.return===h)break e;_=_.return}_.sibling.return=_.return,_=_.sibling}h.stateNode=c;e:switch(Br(c,m,w),m){case"button":case"input":case"select":case"textarea":c=!!w.autoFocus;break e;case"img":c=!0;break e;default:c=!1}c&&hs(h)}}return jn(h),h.flags&=-16777217,null;case 6:if(c&&h.stateNode!=null)c.memoizedProps!==w&&hs(h);else{if(typeof w!="string"&&h.stateNode===null)throw Error(r(166));if(c=K.current,hd(h)){if(c=h.stateNode,m=h.memoizedProps,w=null,_=sa,_!==null)switch(_.tag){case 27:case 5:w=_.memoizedProps}c[gt]=h,c=!!(c.nodeValue===m||w!==null&&w.suppressHydrationWarning===!0||_A(c.nodeValue,m)),c||Vo(h)}else c=kg(c).createTextNode(w),c[gt]=h,h.stateNode=c}return jn(h),null;case 13:if(w=h.memoizedState,c===null||c.memoizedState!==null&&c.memoizedState.dehydrated!==null){if(_=hd(h),w!==null&&w.dehydrated!==null){if(c===null){if(!_)throw Error(r(318));if(_=h.memoizedState,_=_!==null?_.dehydrated:null,!_)throw Error(r(317));_[gt]=h}else gd(),(h.flags&128)===0&&(h.memoizedState=null),h.flags|=4;jn(h),_=!1}else _=hD(),c!==null&&c.memoizedState!==null&&(c.memoizedState.hydrationErrors=_),_=!0;if(!_)return h.flags&256?(ds(h),h):(ds(h),null)}if(ds(h),(h.flags&128)!==0)return h.lanes=m,h;if(m=w!==null,c=c!==null&&c.memoizedState!==null,m){w=h.child,_=null,w.alternate!==null&&w.alternate.memoizedState!==null&&w.alternate.memoizedState.cachePool!==null&&(_=w.alternate.memoizedState.cachePool.pool);var L=null;w.memoizedState!==null&&w.memoizedState.cachePool!==null&&(L=w.memoizedState.cachePool.pool),L!==_&&(w.flags|=2048)}return m!==c&&m&&(h.child.flags|=8192),Eg(h,h.updateQueue),jn(h),null;case 4:return ie(),c===null&&x0(h.stateNode.containerInfo),jn(h),null;case 10:return cs(h.type),jn(h),null;case 19:if(j(vr),_=h.memoizedState,_===null)return jn(h),null;if(w=(h.flags&128)!==0,L=_.rendering,L===null)if(w)Td(_,!1);else{if(Un!==0||c!==null&&(c.flags&128)!==0)for(c=h.child;c!==null;){if(L=xg(c),L!==null){for(h.flags|=128,Td(_,!1),c=L.updateQueue,h.updateQueue=c,Eg(h,c),h.subtreeFlags=0,c=m,m=h.child;m!==null;)cD(m,c),m=m.sibling;return q(vr,vr.current&1|2),h.child}c=c.sibling}_.tail!==null&&Le()>_g&&(h.flags|=128,w=!0,Td(_,!1),h.lanes=4194304)}else{if(!w)if(c=xg(L),c!==null){if(h.flags|=128,w=!0,c=c.updateQueue,h.updateQueue=c,Eg(h,c),Td(_,!0),_.tail===null&&_.tailMode==="hidden"&&!L.alternate&&!fn)return jn(h),null}else 2*Le()-_.renderingStartTime>_g&&m!==536870912&&(h.flags|=128,w=!0,Td(_,!1),h.lanes=4194304);_.isBackwards?(L.sibling=h.child,h.child=L):(c=_.last,c!==null?c.sibling=L:h.child=L,_.last=L)}return _.tail!==null?(h=_.tail,_.rendering=h,_.tail=h.sibling,_.renderingStartTime=Le(),h.sibling=null,c=vr.current,q(vr,w?c&1|2:c&1),h):(jn(h),null);case 22:case 23:return ds(h),Sb(),w=h.memoizedState!==null,c!==null?c.memoizedState!==null!==w&&(h.flags|=8192):w&&(h.flags|=8192),w?(m&536870912)!==0&&(h.flags&128)===0&&(jn(h),h.subtreeFlags&6&&(h.flags|=8192)):jn(h),m=h.updateQueue,m!==null&&Eg(h,m.retryQueue),m=null,c!==null&&c.memoizedState!==null&&c.memoizedState.cachePool!==null&&(m=c.memoizedState.cachePool.pool),w=null,h.memoizedState!==null&&h.memoizedState.cachePool!==null&&(w=h.memoizedState.cachePool.pool),w!==m&&(h.flags|=2048),c!==null&&j(Zo),null;case 24:return m=null,c!==null&&(m=c.memoizedState.cache),h.memoizedState.cache!==m&&(h.flags|=2048),cs(mr),jn(h),null;case 25:return null;case 30:return null}throw Error(r(156,h.tag))}function b4(c,h){switch(lb(h),h.tag){case 1:return c=h.flags,c&65536?(h.flags=c&-65537|128,h):null;case 3:return cs(mr),ie(),c=h.flags,(c&65536)!==0&&(c&128)===0?(h.flags=c&-65537|128,h):null;case 26:case 27:case 5:return ue(h),null;case 13:if(ds(h),c=h.memoizedState,c!==null&&c.dehydrated!==null){if(h.alternate===null)throw Error(r(340));gd()}return c=h.flags,c&65536?(h.flags=c&-65537|128,h):null;case 19:return j(vr),null;case 4:return ie(),null;case 10:return cs(h.type),null;case 22:case 23:return ds(h),Sb(),c!==null&&j(Zo),c=h.flags,c&65536?(h.flags=c&-65537|128,h):null;case 24:return cs(mr),null;case 25:return null;default:return null}}function $_(c,h){switch(lb(h),h.tag){case 3:cs(mr),ie();break;case 26:case 27:case 5:ue(h);break;case 4:ie();break;case 13:ds(h);break;case 19:j(vr);break;case 10:cs(h.type);break;case 22:case 23:ds(h),Sb(),c!==null&&j(Zo);break;case 24:cs(mr)}}function Rd(c,h){try{var m=h.updateQueue,w=m!==null?m.lastEffect:null;if(w!==null){var _=w.next;m=_;do{if((m.tag&c)===c){w=void 0;var L=m.create,W=m.inst;w=L(),W.destroy=w}m=m.next}while(m!==_)}}catch(Z){Tn(h,h.return,Z)}}function Ws(c,h,m){try{var w=h.updateQueue,_=w!==null?w.lastEffect:null;if(_!==null){var L=_.next;w=L;do{if((w.tag&c)===c){var W=w.inst,Z=W.destroy;if(Z!==void 0){W.destroy=void 0,_=h;var J=m,fe=Z;try{fe()}catch(Se){Tn(_,J,Se)}}}w=w.next}while(w!==L)}}catch(Se){Tn(h,h.return,Se)}}function F_(c){var h=c.updateQueue;if(h!==null){var m=c.stateNode;try{OD(h,m)}catch(w){Tn(c,c.return,w)}}}function k_(c,h,m){m.props=Ko(c.type,c.memoizedProps),m.state=c.memoizedState;try{m.componentWillUnmount()}catch(w){Tn(c,h,w)}}function Pd(c,h){try{var m=c.ref;if(m!==null){switch(c.tag){case 26:case 27:case 5:var w=c.stateNode;break;case 30:w=c.stateNode;break;default:w=c.stateNode}typeof m=="function"?c.refCleanup=m(w):m.current=w}}catch(_){Tn(c,h,_)}}function Li(c,h){var m=c.ref,w=c.refCleanup;if(m!==null)if(typeof w=="function")try{w()}catch(_){Tn(c,h,_)}finally{c.refCleanup=null,c=c.alternate,c!=null&&(c.refCleanup=null)}else if(typeof m=="function")try{m(null)}catch(_){Tn(c,h,_)}else m.current=null}function H_(c){var h=c.type,m=c.memoizedProps,w=c.stateNode;try{e:switch(h){case"button":case"input":case"select":case"textarea":m.autoFocus&&w.focus();break e;case"img":m.src?w.src=m.src:m.srcSet&&(w.srcset=m.srcSet)}}catch(_){Tn(c,c.return,_)}}function Zb(c,h,m){try{var w=c.stateNode;H4(w,c.type,m,h),w[jt]=h}catch(_){Tn(c,c.return,_)}}function z_(c){return c.tag===5||c.tag===3||c.tag===26||c.tag===27&&Ks(c.type)||c.tag===4}function Qb(c){e:for(;;){for(;c.sibling===null;){if(c.return===null||z_(c.return))return null;c=c.return}for(c.sibling.return=c.return,c=c.sibling;c.tag!==5&&c.tag!==6&&c.tag!==18;){if(c.tag===27&&Ks(c.type)||c.flags&2||c.child===null||c.tag===4)continue e;c.child.return=c,c=c.child}if(!(c.flags&2))return c.stateNode}}function Kb(c,h,m){var w=c.tag;if(w===5||w===6)c=c.stateNode,h?(m.nodeType===9?m.body:m.nodeName==="HTML"?m.ownerDocument.body:m).insertBefore(c,h):(h=m.nodeType===9?m.body:m.nodeName==="HTML"?m.ownerDocument.body:m,h.appendChild(c),m=m._reactRootContainer,m!=null||h.onclick!==null||(h.onclick=Fg));else if(w!==4&&(w===27&&Ks(c.type)&&(m=c.stateNode,h=null),c=c.child,c!==null))for(Kb(c,h,m),c=c.sibling;c!==null;)Kb(c,h,m),c=c.sibling}function Mg(c,h,m){var w=c.tag;if(w===5||w===6)c=c.stateNode,h?m.insertBefore(c,h):m.appendChild(c);else if(w!==4&&(w===27&&Ks(c.type)&&(m=c.stateNode),c=c.child,c!==null))for(Mg(c,h,m),c=c.sibling;c!==null;)Mg(c,h,m),c=c.sibling}function B_(c){var h=c.stateNode,m=c.memoizedProps;try{for(var w=c.type,_=h.attributes;_.length;)h.removeAttributeNode(_[0]);Br(h,w,m),h[gt]=c,h[jt]=m}catch(L){Tn(c,c.return,L)}}var gs=!1,tr=!1,Jb=!1,Y_=typeof WeakSet=="function"?WeakSet:Set,Mr=null;function y4(c,h){if(c=c.containerInfo,C0=Wg,c=ec(c),Ho(c)){if("selectionStart"in c)var m={start:c.selectionStart,end:c.selectionEnd};else e:{m=(m=c.ownerDocument)&&m.defaultView||window;var w=m.getSelection&&m.getSelection();if(w&&w.rangeCount!==0){m=w.anchorNode;var _=w.anchorOffset,L=w.focusNode;w=w.focusOffset;try{m.nodeType,L.nodeType}catch{m=null;break e}var W=0,Z=-1,J=-1,fe=0,Se=0,Me=c,he=null;t:for(;;){for(var ge;Me!==m||_!==0&&Me.nodeType!==3||(Z=W+_),Me!==L||w!==0&&Me.nodeType!==3||(J=W+w),Me.nodeType===3&&(W+=Me.nodeValue.length),(ge=Me.firstChild)!==null;)he=Me,Me=ge;for(;;){if(Me===c)break t;if(he===m&&++fe===_&&(Z=W),he===L&&++Se===w&&(J=W),(ge=Me.nextSibling)!==null)break;Me=he,he=Me.parentNode}Me=ge}m=Z===-1||J===-1?null:{start:Z,end:J}}else m=null}m=m||{start:0,end:0}}else m=null;for(O0={focusedElem:c,selectionRange:m},Wg=!1,Mr=h;Mr!==null;)if(h=Mr,c=h.child,(h.subtreeFlags&1024)!==0&&c!==null)c.return=h,Mr=c;else for(;Mr!==null;){switch(h=Mr,L=h.alternate,c=h.flags,h.tag){case 0:break;case 11:case 15:break;case 1:if((c&1024)!==0&&L!==null){c=void 0,m=h,_=L.memoizedProps,L=L.memoizedState,w=m.stateNode;try{var Ot=Ko(m.type,_,m.elementType===m.type);c=w.getSnapshotBeforeUpdate(Ot,L),w.__reactInternalSnapshotBeforeUpdate=c}catch(bt){Tn(m,m.return,bt)}}break;case 3:if((c&1024)!==0){if(c=h.stateNode.containerInfo,m=c.nodeType,m===9)D0(c);else if(m===1)switch(c.nodeName){case"HEAD":case"HTML":case"BODY":D0(c);break;default:c.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if((c&1024)!==0)throw Error(r(163))}if(c=h.sibling,c!==null){c.return=h.return,Mr=c;break}Mr=h.return}}function j_(c,h,m){var w=m.flags;switch(m.tag){case 0:case 11:case 15:qs(c,m),w&4&&Rd(5,m);break;case 1:if(qs(c,m),w&4)if(c=m.stateNode,h===null)try{c.componentDidMount()}catch(W){Tn(m,m.return,W)}else{var _=Ko(m.type,h.memoizedProps);h=h.memoizedState;try{c.componentDidUpdate(_,h,c.__reactInternalSnapshotBeforeUpdate)}catch(W){Tn(m,m.return,W)}}w&64&&F_(m),w&512&&Pd(m,m.return);break;case 3:if(qs(c,m),w&64&&(c=m.updateQueue,c!==null)){if(h=null,m.child!==null)switch(m.child.tag){case 27:case 5:h=m.child.stateNode;break;case 1:h=m.child.stateNode}try{OD(c,h)}catch(W){Tn(m,m.return,W)}}break;case 27:h===null&&w&4&&B_(m);case 26:case 5:qs(c,m),h===null&&w&4&&H_(m),w&512&&Pd(m,m.return);break;case 12:qs(c,m);break;case 13:qs(c,m),w&4&&X_(c,m),w&64&&(c=m.memoizedState,c!==null&&(c=c.dehydrated,c!==null&&(m=_4.bind(null,m),X4(c,m))));break;case 22:if(w=m.memoizedState!==null||gs,!w){h=h!==null&&h.memoizedState!==null||tr,_=gs;var L=tr;gs=w,(tr=h)&&!L?Xs(c,m,(m.subtreeFlags&8772)!==0):qs(c,m),gs=_,tr=L}break;case 30:break;default:qs(c,m)}}function W_(c){var h=c.alternate;h!==null&&(c.alternate=null,W_(h)),c.child=null,c.deletions=null,c.sibling=null,c.tag===5&&(h=c.stateNode,h!==null&&Sn(h)),c.stateNode=null,c.return=null,c.dependencies=null,c.memoizedProps=null,c.memoizedState=null,c.pendingProps=null,c.stateNode=null,c.updateQueue=null}var Fn=null,ga=!1;function ps(c,h,m){for(m=m.child;m!==null;)q_(c,h,m),m=m.sibling}function q_(c,h,m){if(st&&typeof st.onCommitFiberUnmount=="function")try{st.onCommitFiberUnmount(Ee,m)}catch{}switch(m.tag){case 26:tr||Li(m,h),ps(c,h,m),m.memoizedState?m.memoizedState.count--:m.stateNode&&(m=m.stateNode,m.parentNode.removeChild(m));break;case 27:tr||Li(m,h);var w=Fn,_=ga;Ks(m.type)&&(Fn=m.stateNode,ga=!1),ps(c,h,m),Bd(m.stateNode),Fn=w,ga=_;break;case 5:tr||Li(m,h);case 6:if(w=Fn,_=ga,Fn=null,ps(c,h,m),Fn=w,ga=_,Fn!==null)if(ga)try{(Fn.nodeType===9?Fn.body:Fn.nodeName==="HTML"?Fn.ownerDocument.body:Fn).removeChild(m.stateNode)}catch(L){Tn(m,h,L)}else try{Fn.removeChild(m.stateNode)}catch(L){Tn(m,h,L)}break;case 18:Fn!==null&&(ga?(c=Fn,LA(c.nodeType===9?c.body:c.nodeName==="HTML"?c.ownerDocument.body:c,m.stateNode),Gd(c)):LA(Fn,m.stateNode));break;case 4:w=Fn,_=ga,Fn=m.stateNode.containerInfo,ga=!0,ps(c,h,m),Fn=w,ga=_;break;case 0:case 11:case 14:case 15:tr||Ws(2,m,h),tr||Ws(4,m,h),ps(c,h,m);break;case 1:tr||(Li(m,h),w=m.stateNode,typeof w.componentWillUnmount=="function"&&k_(m,h,w)),ps(c,h,m);break;case 21:ps(c,h,m);break;case 22:tr=(w=tr)||m.memoizedState!==null,ps(c,h,m),tr=w;break;default:ps(c,h,m)}}function X_(c,h){if(h.memoizedState===null&&(c=h.alternate,c!==null&&(c=c.memoizedState,c!==null&&(c=c.dehydrated,c!==null))))try{Gd(c)}catch(m){Tn(h,h.return,m)}}function x4(c){switch(c.tag){case 13:case 19:var h=c.stateNode;return h===null&&(h=c.stateNode=new Y_),h;case 22:return c=c.stateNode,h=c._retryCache,h===null&&(h=c._retryCache=new Y_),h;default:throw Error(r(435,c.tag))}}function e0(c,h){var m=x4(c);h.forEach(function(w){var _=A4.bind(null,c,w);m.has(w)||(m.add(w),w.then(_,_))})}function Da(c,h){var m=h.deletions;if(m!==null)for(var w=0;w<m.length;w++){var _=m[w],L=c,W=h,Z=W;e:for(;Z!==null;){switch(Z.tag){case 27:if(Ks(Z.type)){Fn=Z.stateNode,ga=!1;break e}break;case 5:Fn=Z.stateNode,ga=!1;break e;case 3:case 4:Fn=Z.stateNode.containerInfo,ga=!0;break e}Z=Z.return}if(Fn===null)throw Error(r(160));q_(L,W,_),Fn=null,ga=!1,L=_.alternate,L!==null&&(L.return=null),_.return=null}if(h.subtreeFlags&13878)for(h=h.child;h!==null;)V_(h,c),h=h.sibling}var gi=null;function V_(c,h){var m=c.alternate,w=c.flags;switch(c.tag){case 0:case 11:case 14:case 15:Da(h,c),_a(c),w&4&&(Ws(3,c,c.return),Rd(3,c),Ws(5,c,c.return));break;case 1:Da(h,c),_a(c),w&512&&(tr||m===null||Li(m,m.return)),w&64&&gs&&(c=c.updateQueue,c!==null&&(w=c.callbacks,w!==null&&(m=c.shared.hiddenCallbacks,c.shared.hiddenCallbacks=m===null?w:m.concat(w))));break;case 26:var _=gi;if(Da(h,c),_a(c),w&512&&(tr||m===null||Li(m,m.return)),w&4){var L=m!==null?m.memoizedState:null;if(w=c.memoizedState,m===null)if(w===null)if(c.stateNode===null){e:{w=c.type,m=c.memoizedProps,_=_.ownerDocument||_;t:switch(w){case"title":L=_.getElementsByTagName("title")[0],(!L||L[Gt]||L[gt]||L.namespaceURI==="http://www.w3.org/2000/svg"||L.hasAttribute("itemprop"))&&(L=_.createElement(w),_.head.insertBefore(L,_.querySelector("head > title"))),Br(L,w,m),L[gt]=c,Et(L),w=L;break e;case"link":var W=BA("link","href",_).get(w+(m.href||""));if(W){for(var Z=0;Z<W.length;Z++)if(L=W[Z],L.getAttribute("href")===(m.href==null||m.href===""?null:m.href)&&L.getAttribute("rel")===(m.rel==null?null:m.rel)&&L.getAttribute("title")===(m.title==null?null:m.title)&&L.getAttribute("crossorigin")===(m.crossOrigin==null?null:m.crossOrigin)){W.splice(Z,1);break t}}L=_.createElement(w),Br(L,w,m),_.head.appendChild(L);break;case"meta":if(W=BA("meta","content",_).get(w+(m.content||""))){for(Z=0;Z<W.length;Z++)if(L=W[Z],L.getAttribute("content")===(m.content==null?null:""+m.content)&&L.getAttribute("name")===(m.name==null?null:m.name)&&L.getAttribute("property")===(m.property==null?null:m.property)&&L.getAttribute("http-equiv")===(m.httpEquiv==null?null:m.httpEquiv)&&L.getAttribute("charset")===(m.charSet==null?null:m.charSet)){W.splice(Z,1);break t}}L=_.createElement(w),Br(L,w,m),_.head.appendChild(L);break;default:throw Error(r(468,w))}L[gt]=c,Et(L),w=L}c.stateNode=w}else YA(_,c.type,c.stateNode);else c.stateNode=zA(_,w,c.memoizedProps);else L!==w?(L===null?m.stateNode!==null&&(m=m.stateNode,m.parentNode.removeChild(m)):L.count--,w===null?YA(_,c.type,c.stateNode):zA(_,w,c.memoizedProps)):w===null&&c.stateNode!==null&&Zb(c,c.memoizedProps,m.memoizedProps)}break;case 27:Da(h,c),_a(c),w&512&&(tr||m===null||Li(m,m.return)),m!==null&&w&4&&Zb(c,c.memoizedProps,m.memoizedProps);break;case 5:if(Da(h,c),_a(c),w&512&&(tr||m===null||Li(m,m.return)),c.flags&32){_=c.stateNode;try{$r(_,"")}catch(ge){Tn(c,c.return,ge)}}w&4&&c.stateNode!=null&&(_=c.memoizedProps,Zb(c,_,m!==null?m.memoizedProps:_)),w&1024&&(Jb=!0);break;case 6:if(Da(h,c),_a(c),w&4){if(c.stateNode===null)throw Error(r(162));w=c.memoizedProps,m=c.stateNode;try{m.nodeValue=w}catch(ge){Tn(c,c.return,ge)}}break;case 3:if(Bg=null,_=gi,gi=Hg(h.containerInfo),Da(h,c),gi=_,_a(c),w&4&&m!==null&&m.memoizedState.isDehydrated)try{Gd(h.containerInfo)}catch(ge){Tn(c,c.return,ge)}Jb&&(Jb=!1,U_(c));break;case 4:w=gi,gi=Hg(c.stateNode.containerInfo),Da(h,c),_a(c),gi=w;break;case 12:Da(h,c),_a(c);break;case 13:Da(h,c),_a(c),c.child.flags&8192&&c.memoizedState!==null!=(m!==null&&m.memoizedState!==null)&&(s0=Le()),w&4&&(w=c.updateQueue,w!==null&&(c.updateQueue=null,e0(c,w)));break;case 22:_=c.memoizedState!==null;var J=m!==null&&m.memoizedState!==null,fe=gs,Se=tr;if(gs=fe||_,tr=Se||J,Da(h,c),tr=Se,gs=fe,_a(c),w&8192)e:for(h=c.stateNode,h._visibility=_?h._visibility&-2:h._visibility|1,_&&(m===null||J||gs||tr||Jo(c)),m=null,h=c;;){if(h.tag===5||h.tag===26){if(m===null){J=m=h;try{if(L=J.stateNode,_)W=L.style,typeof W.setProperty=="function"?W.setProperty("display","none","important"):W.display="none";else{Z=J.stateNode;var Me=J.memoizedProps.style,he=Me!=null&&Me.hasOwnProperty("display")?Me.display:null;Z.style.display=he==null||typeof he=="boolean"?"":(""+he).trim()}}catch(ge){Tn(J,J.return,ge)}}}else if(h.tag===6){if(m===null){J=h;try{J.stateNode.nodeValue=_?"":J.memoizedProps}catch(ge){Tn(J,J.return,ge)}}}else if((h.tag!==22&&h.tag!==23||h.memoizedState===null||h===c)&&h.child!==null){h.child.return=h,h=h.child;continue}if(h===c)break e;for(;h.sibling===null;){if(h.return===null||h.return===c)break e;m===h&&(m=null),h=h.return}m===h&&(m=null),h.sibling.return=h.return,h=h.sibling}w&4&&(w=c.updateQueue,w!==null&&(m=w.retryQueue,m!==null&&(w.retryQueue=null,e0(c,m))));break;case 19:Da(h,c),_a(c),w&4&&(w=c.updateQueue,w!==null&&(c.updateQueue=null,e0(c,w)));break;case 30:break;case 21:break;default:Da(h,c),_a(c)}}function _a(c){var h=c.flags;if(h&2){try{for(var m,w=c.return;w!==null;){if(z_(w)){m=w;break}w=w.return}if(m==null)throw Error(r(160));switch(m.tag){case 27:var _=m.stateNode,L=Qb(c);Mg(c,L,_);break;case 5:var W=m.stateNode;m.flags&32&&($r(W,""),m.flags&=-33);var Z=Qb(c);Mg(c,Z,W);break;case 3:case 4:var J=m.stateNode.containerInfo,fe=Qb(c);Kb(c,fe,J);break;default:throw Error(r(161))}}catch(Se){Tn(c,c.return,Se)}c.flags&=-3}h&4096&&(c.flags&=-4097)}function U_(c){if(c.subtreeFlags&1024)for(c=c.child;c!==null;){var h=c;U_(h),h.tag===5&&h.flags&1024&&h.stateNode.reset(),c=c.sibling}}function qs(c,h){if(h.subtreeFlags&8772)for(h=h.child;h!==null;)j_(c,h.alternate,h),h=h.sibling}function Jo(c){for(c=c.child;c!==null;){var h=c;switch(h.tag){case 0:case 11:case 14:case 15:Ws(4,h,h.return),Jo(h);break;case 1:Li(h,h.return);var m=h.stateNode;typeof m.componentWillUnmount=="function"&&k_(h,h.return,m),Jo(h);break;case 27:Bd(h.stateNode);case 26:case 5:Li(h,h.return),Jo(h);break;case 22:h.memoizedState===null&&Jo(h);break;case 30:Jo(h);break;default:Jo(h)}c=c.sibling}}function Xs(c,h,m){for(m=m&&(h.subtreeFlags&8772)!==0,h=h.child;h!==null;){var w=h.alternate,_=c,L=h,W=L.flags;switch(L.tag){case 0:case 11:case 15:Xs(_,L,m),Rd(4,L);break;case 1:if(Xs(_,L,m),w=L,_=w.stateNode,typeof _.componentDidMount=="function")try{_.componentDidMount()}catch(fe){Tn(w,w.return,fe)}if(w=L,_=w.updateQueue,_!==null){var Z=w.stateNode;try{var J=_.shared.hiddenCallbacks;if(J!==null)for(_.shared.hiddenCallbacks=null,_=0;_<J.length;_++)CD(J[_],Z)}catch(fe){Tn(w,w.return,fe)}}m&&W&64&&F_(L),Pd(L,L.return);break;case 27:B_(L);case 26:case 5:Xs(_,L,m),m&&w===null&&W&4&&H_(L),Pd(L,L.return);break;case 12:Xs(_,L,m);break;case 13:Xs(_,L,m),m&&W&4&&X_(_,L);break;case 22:L.memoizedState===null&&Xs(_,L,m),Pd(L,L.return);break;case 30:break;default:Xs(_,L,m)}h=h.sibling}}function t0(c,h){var m=null;c!==null&&c.memoizedState!==null&&c.memoizedState.cachePool!==null&&(m=c.memoizedState.cachePool.pool),c=null,h.memoizedState!==null&&h.memoizedState.cachePool!==null&&(c=h.memoizedState.cachePool.pool),c!==m&&(c!=null&&c.refCount++,m!=null&&vd(m))}function n0(c,h){c=null,h.alternate!==null&&(c=h.alternate.memoizedState.cache),h=h.memoizedState.cache,h!==c&&(h.refCount++,c!=null&&vd(c))}function Ni(c,h,m,w){if(h.subtreeFlags&10256)for(h=h.child;h!==null;)G_(c,h,m,w),h=h.sibling}function G_(c,h,m,w){var _=h.flags;switch(h.tag){case 0:case 11:case 15:Ni(c,h,m,w),_&2048&&Rd(9,h);break;case 1:Ni(c,h,m,w);break;case 3:Ni(c,h,m,w),_&2048&&(c=null,h.alternate!==null&&(c=h.alternate.memoizedState.cache),h=h.memoizedState.cache,h!==c&&(h.refCount++,c!=null&&vd(c)));break;case 12:if(_&2048){Ni(c,h,m,w),c=h.stateNode;try{var L=h.memoizedProps,W=L.id,Z=L.onPostCommit;typeof Z=="function"&&Z(W,h.alternate===null?"mount":"update",c.passiveEffectDuration,-0)}catch(J){Tn(h,h.return,J)}}else Ni(c,h,m,w);break;case 13:Ni(c,h,m,w);break;case 23:break;case 22:L=h.stateNode,W=h.alternate,h.memoizedState!==null?L._visibility&2?Ni(c,h,m,w):Ld(c,h):L._visibility&2?Ni(c,h,m,w):(L._visibility|=2,vc(c,h,m,w,(h.subtreeFlags&10256)!==0)),_&2048&&t0(W,h);break;case 24:Ni(c,h,m,w),_&2048&&n0(h.alternate,h);break;default:Ni(c,h,m,w)}}function vc(c,h,m,w,_){for(_=_&&(h.subtreeFlags&10256)!==0,h=h.child;h!==null;){var L=c,W=h,Z=m,J=w,fe=W.flags;switch(W.tag){case 0:case 11:case 15:vc(L,W,Z,J,_),Rd(8,W);break;case 23:break;case 22:var Se=W.stateNode;W.memoizedState!==null?Se._visibility&2?vc(L,W,Z,J,_):Ld(L,W):(Se._visibility|=2,vc(L,W,Z,J,_)),_&&fe&2048&&t0(W.alternate,W);break;case 24:vc(L,W,Z,J,_),_&&fe&2048&&n0(W.alternate,W);break;default:vc(L,W,Z,J,_)}h=h.sibling}}function Ld(c,h){if(h.subtreeFlags&10256)for(h=h.child;h!==null;){var m=c,w=h,_=w.flags;switch(w.tag){case 22:Ld(m,w),_&2048&&t0(w.alternate,w);break;case 24:Ld(m,w),_&2048&&n0(w.alternate,w);break;default:Ld(m,w)}h=h.sibling}}var Nd=8192;function bc(c){if(c.subtreeFlags&Nd)for(c=c.child;c!==null;)Z_(c),c=c.sibling}function Z_(c){switch(c.tag){case 26:bc(c),c.flags&Nd&&c.memoizedState!==null&&i5(gi,c.memoizedState,c.memoizedProps);break;case 5:bc(c);break;case 3:case 4:var h=gi;gi=Hg(c.stateNode.containerInfo),bc(c),gi=h;break;case 22:c.memoizedState===null&&(h=c.alternate,h!==null&&h.memoizedState!==null?(h=Nd,Nd=16777216,bc(c),Nd=h):bc(c));break;default:bc(c)}}function Q_(c){var h=c.alternate;if(h!==null&&(c=h.child,c!==null)){h.child=null;do h=c.sibling,c.sibling=null,c=h;while(c!==null)}}function Id(c){var h=c.deletions;if((c.flags&16)!==0){if(h!==null)for(var m=0;m<h.length;m++){var w=h[m];Mr=w,J_(w,c)}Q_(c)}if(c.subtreeFlags&10256)for(c=c.child;c!==null;)K_(c),c=c.sibling}function K_(c){switch(c.tag){case 0:case 11:case 15:Id(c),c.flags&2048&&Ws(9,c,c.return);break;case 3:Id(c);break;case 12:Id(c);break;case 22:var h=c.stateNode;c.memoizedState!==null&&h._visibility&2&&(c.return===null||c.return.tag!==13)?(h._visibility&=-3,Dg(c)):Id(c);break;default:Id(c)}}function Dg(c){var h=c.deletions;if((c.flags&16)!==0){if(h!==null)for(var m=0;m<h.length;m++){var w=h[m];Mr=w,J_(w,c)}Q_(c)}for(c=c.child;c!==null;){switch(h=c,h.tag){case 0:case 11:case 15:Ws(8,h,h.return),Dg(h);break;case 22:m=h.stateNode,m._visibility&2&&(m._visibility&=-3,Dg(h));break;default:Dg(h)}c=c.sibling}}function J_(c,h){for(;Mr!==null;){var m=Mr;switch(m.tag){case 0:case 11:case 15:Ws(8,m,h);break;case 23:case 22:if(m.memoizedState!==null&&m.memoizedState.cachePool!==null){var w=m.memoizedState.cachePool.pool;w!=null&&w.refCount++}break;case 24:vd(m.memoizedState.cache)}if(w=m.child,w!==null)w.return=m,Mr=w;else e:for(m=c;Mr!==null;){w=Mr;var _=w.sibling,L=w.return;if(W_(w),w===m){Mr=null;break e}if(_!==null){_.return=L,Mr=_;break e}Mr=L}}}var w4={getCacheForType:function(c){var h=Qr(mr),m=h.data.get(c);return m===void 0&&(m=c(),h.data.set(c,m)),m}},S4=typeof WeakMap=="function"?WeakMap:Map,bn=0,Nn=null,qt=null,tn=0,yn=0,Aa=null,Vs=!1,yc=!1,r0=!1,ms=0,Un=0,Us=0,el=0,a0=0,Ga=0,xc=0,$d=null,pa=null,i0=!1,s0=0,_g=1/0,Ag=null,Gs=null,zr=0,Zs=null,wc=null,Sc=0,o0=0,l0=null,eA=null,Fd=0,c0=null;function Ta(){if((bn&2)!==0&&tn!==0)return tn&-tn;if(F.T!==null){var c=cc;return c!==0?c:m0()}return ot()}function tA(){Ga===0&&(Ga=(tn&536870912)===0||fn?Dt():536870912);var c=Ua.current;return c!==null&&(c.flags|=32),Ga}function Ra(c,h,m){(c===Nn&&(yn===2||yn===9)||c.cancelPendingCommit!==null)&&(Cc(c,0),Qs(c,tn,Ga,!1)),vn(c,m),((bn&2)===0||c!==Nn)&&(c===Nn&&((bn&2)===0&&(el|=m),Un===4&&Qs(c,tn,Ga,!1)),Ii(c))}function nA(c,h,m){if((bn&6)!==0)throw Error(r(327));var w=!m&&(h&124)===0&&(h&c.expiredLanes)===0||we(c,h),_=w?E4(c,h):f0(c,h,!0),L=w;do{if(_===0){yc&&!w&&Qs(c,h,0,!1);break}else{if(m=c.current.alternate,L&&!C4(m)){_=f0(c,h,!1),L=!1;continue}if(_===2){if(L=h,c.errorRecoveryDisabledLanes&L)var W=0;else W=c.pendingLanes&-536870913,W=W!==0?W:W&536870912?536870912:0;if(W!==0){h=W;e:{var Z=c;_=$d;var J=Z.current.memoizedState.isDehydrated;if(J&&(Cc(Z,W).flags|=256),W=f0(Z,W,!1),W!==2){if(r0&&!J){Z.errorRecoveryDisabledLanes|=L,el|=L,_=4;break e}L=pa,pa=_,L!==null&&(pa===null?pa=L:pa.push.apply(pa,L))}_=W}if(L=!1,_!==2)continue}}if(_===1){Cc(c,0),Qs(c,h,0,!0);break}e:{switch(w=c,L=_,L){case 0:case 1:throw Error(r(345));case 4:if((h&4194048)!==h)break;case 6:Qs(w,h,Ga,!Vs);break e;case 2:pa=null;break;case 3:case 5:break;default:throw Error(r(329))}if((h&62914560)===h&&(_=s0+300-Le(),10<_)){if(Qs(w,h,Ga,!Vs),We(w,0,!0)!==0)break e;w.timeoutHandle=RA(rA.bind(null,w,m,pa,Ag,i0,h,Ga,el,xc,Vs,L,2,-0,0),_);break e}rA(w,m,pa,Ag,i0,h,Ga,el,xc,Vs,L,0,-0,0)}}break}while(!0);Ii(c)}function rA(c,h,m,w,_,L,W,Z,J,fe,Se,Me,he,ge){if(c.timeoutHandle=-1,Me=h.subtreeFlags,(Me&8192||(Me&16785408)===16785408)&&(Wd={stylesheets:null,count:0,unsuspend:a5},Z_(h),Me=s5(),Me!==null)){c.cancelPendingCommit=Me(uA.bind(null,c,h,L,m,w,_,W,Z,J,Se,1,he,ge)),Qs(c,L,W,!fe);return}uA(c,h,L,m,w,_,W,Z,J)}function C4(c){for(var h=c;;){var m=h.tag;if((m===0||m===11||m===15)&&h.flags&16384&&(m=h.updateQueue,m!==null&&(m=m.stores,m!==null)))for(var w=0;w<m.length;w++){var _=m[w],L=_.getSnapshot;_=_.value;try{if(!kr(L(),_))return!1}catch{return!1}}if(m=h.child,h.subtreeFlags&16384&&m!==null)m.return=h,h=m;else{if(h===c)break;for(;h.sibling===null;){if(h.return===null||h.return===c)return!0;h=h.return}h.sibling.return=h.return,h=h.sibling}}return!0}function Qs(c,h,m,w){h&=~a0,h&=~el,c.suspendedLanes|=h,c.pingedLanes&=~h,w&&(c.warmLanes|=h),w=c.expirationTimes;for(var _=h;0<_;){var L=31-at(_),W=1<<L;w[L]=-1,_&=~W}m!==0&&Jt(c,m,h)}function Tg(){return(bn&6)===0?(kd(0),!1):!0}function u0(){if(qt!==null){if(yn===0)var c=qt.return;else c=qt,ls=Uo=null,Db(c),pc=null,_d=0,c=qt;for(;c!==null;)$_(c.alternate,c),c=c.return;qt=null}}function Cc(c,h){var m=c.timeoutHandle;m!==-1&&(c.timeoutHandle=-1,B4(m)),m=c.cancelPendingCommit,m!==null&&(c.cancelPendingCommit=null,m()),u0(),Nn=c,qt=m=is(c.current,null),tn=h,yn=0,Aa=null,Vs=!1,yc=we(c,h),r0=!1,xc=Ga=a0=el=Us=Un=0,pa=$d=null,i0=!1,(h&8)!==0&&(h|=h&32);var w=c.entangledLanes;if(w!==0)for(c=c.entanglements,w&=h;0<w;){var _=31-at(w),L=1<<_;h|=c[_],w&=~L}return ms=h,Kh(),m}function aA(c,h){Ft=null,F.H=vg,h===yd||h===og?(h=wD(),yn=3):h===bD?(h=wD(),yn=4):yn=h===S_?8:h!==null&&typeof h=="object"&&typeof h.then=="function"?6:1,Aa=h,qt===null&&(Un=1,Sg(c,Wa(h,c.current)))}function iA(){var c=F.H;return F.H=vg,c===null?vg:c}function sA(){var c=F.A;return F.A=w4,c}function d0(){Un=4,Vs||(tn&4194048)!==tn&&Ua.current!==null||(yc=!0),(Us&134217727)===0&&(el&134217727)===0||Nn===null||Qs(Nn,tn,Ga,!1)}function f0(c,h,m){var w=bn;bn|=2;var _=iA(),L=sA();(Nn!==c||tn!==h)&&(Ag=null,Cc(c,h)),h=!1;var W=Un;e:do try{if(yn!==0&&qt!==null){var Z=qt,J=Aa;switch(yn){case 8:u0(),W=6;break e;case 3:case 2:case 9:case 6:Ua.current===null&&(h=!0);var fe=yn;if(yn=0,Aa=null,Oc(c,Z,J,fe),m&&yc){W=0;break e}break;default:fe=yn,yn=0,Aa=null,Oc(c,Z,J,fe)}}O4(),W=Un;break}catch(Se){aA(c,Se)}while(!0);return h&&c.shellSuspendCounter++,ls=Uo=null,bn=w,F.H=_,F.A=L,qt===null&&(Nn=null,tn=0,Kh()),W}function O4(){for(;qt!==null;)oA(qt)}function E4(c,h){var m=bn;bn|=2;var w=iA(),_=sA();Nn!==c||tn!==h?(Ag=null,_g=Le()+500,Cc(c,h)):yc=we(c,h);e:do try{if(yn!==0&&qt!==null){h=qt;var L=Aa;t:switch(yn){case 1:yn=0,Aa=null,Oc(c,h,L,1);break;case 2:case 9:if(yD(L)){yn=0,Aa=null,lA(h);break}h=function(){yn!==2&&yn!==9||Nn!==c||(yn=7),Ii(c)},L.then(h,h);break e;case 3:yn=7;break e;case 4:yn=5;break e;case 7:yD(L)?(yn=0,Aa=null,lA(h)):(yn=0,Aa=null,Oc(c,h,L,7));break;case 5:var W=null;switch(qt.tag){case 26:W=qt.memoizedState;case 5:case 27:var Z=qt;if(!W||jA(W)){yn=0,Aa=null;var J=Z.sibling;if(J!==null)qt=J;else{var fe=Z.return;fe!==null?(qt=fe,Rg(fe)):qt=null}break t}}yn=0,Aa=null,Oc(c,h,L,5);break;case 6:yn=0,Aa=null,Oc(c,h,L,6);break;case 8:u0(),Un=6;break e;default:throw Error(r(462))}}M4();break}catch(Se){aA(c,Se)}while(!0);return ls=Uo=null,F.H=w,F.A=_,bn=m,qt!==null?0:(Nn=null,tn=0,Kh(),Un)}function M4(){for(;qt!==null&&!De();)oA(qt)}function oA(c){var h=N_(c.alternate,c,ms);c.memoizedProps=c.pendingProps,h===null?Rg(c):qt=h}function lA(c){var h=c,m=h.alternate;switch(h.tag){case 15:case 0:h=__(m,h,h.pendingProps,h.type,void 0,tn);break;case 11:h=__(m,h,h.pendingProps,h.type.render,h.ref,tn);break;case 5:Db(h);default:$_(m,h),h=qt=cD(h,ms),h=N_(m,h,ms)}c.memoizedProps=c.pendingProps,h===null?Rg(c):qt=h}function Oc(c,h,m,w){ls=Uo=null,Db(h),pc=null,_d=0;var _=h.return;try{if(p4(c,_,h,m,tn)){Un=1,Sg(c,Wa(m,c.current)),qt=null;return}}catch(L){if(_!==null)throw qt=_,L;Un=1,Sg(c,Wa(m,c.current)),qt=null;return}h.flags&32768?(fn||w===1?c=!0:yc||(tn&536870912)!==0?c=!1:(Vs=c=!0,(w===2||w===9||w===3||w===6)&&(w=Ua.current,w!==null&&w.tag===13&&(w.flags|=16384))),cA(h,c)):Rg(h)}function Rg(c){var h=c;do{if((h.flags&32768)!==0){cA(h,Vs);return}c=h.return;var m=v4(h.alternate,h,ms);if(m!==null){qt=m;return}if(h=h.sibling,h!==null){qt=h;return}qt=h=c}while(h!==null);Un===0&&(Un=5)}function cA(c,h){do{var m=b4(c.alternate,c);if(m!==null){m.flags&=32767,qt=m;return}if(m=c.return,m!==null&&(m.flags|=32768,m.subtreeFlags=0,m.deletions=null),!h&&(c=c.sibling,c!==null)){qt=c;return}qt=c=m}while(c!==null);Un=6,qt=null}function uA(c,h,m,w,_,L,W,Z,J){c.cancelPendingCommit=null;do Pg();while(zr!==0);if((bn&6)!==0)throw Error(r(327));if(h!==null){if(h===c.current)throw Error(r(177));if(L=h.lanes|h.childLanes,L|=nb,un(c,m,L,W,Z,J),c===Nn&&(qt=Nn=null,tn=0),wc=h,Zs=c,Sc=m,o0=L,l0=_,eA=w,(h.subtreeFlags&10256)!==0||(h.flags&10256)!==0?(c.callbackNode=null,c.callbackPriority=0,T4($e,function(){return pA(),null})):(c.callbackNode=null,c.callbackPriority=0),w=(h.flags&13878)!==0,(h.subtreeFlags&13878)!==0||w){w=F.T,F.T=null,_=B.p,B.p=2,W=bn,bn|=4;try{y4(c,h,m)}finally{bn=W,B.p=_,F.T=w}}zr=1,dA(),fA(),hA()}}function dA(){if(zr===1){zr=0;var c=Zs,h=wc,m=(h.flags&13878)!==0;if((h.subtreeFlags&13878)!==0||m){m=F.T,F.T=null;var w=B.p;B.p=2;var _=bn;bn|=4;try{V_(h,c);var L=O0,W=ec(c.containerInfo),Z=L.focusedElem,J=L.selectionRange;if(W!==Z&&Z&&Z.ownerDocument&&Jl(Z.ownerDocument.documentElement,Z)){if(J!==null&&Ho(Z)){var fe=J.start,Se=J.end;if(Se===void 0&&(Se=fe),"selectionStart"in Z)Z.selectionStart=fe,Z.selectionEnd=Math.min(Se,Z.value.length);else{var Me=Z.ownerDocument||document,he=Me&&Me.defaultView||window;if(he.getSelection){var ge=he.getSelection(),Ot=Z.textContent.length,bt=Math.min(J.start,Ot),Mn=J.end===void 0?bt:Math.min(J.end,Ot);!ge.extend&&bt>Mn&&(W=Mn,Mn=bt,bt=W);var oe=Kl(Z,bt),re=Kl(Z,Mn);if(oe&&re&&(ge.rangeCount!==1||ge.anchorNode!==oe.node||ge.anchorOffset!==oe.offset||ge.focusNode!==re.node||ge.focusOffset!==re.offset)){var de=Me.createRange();de.setStart(oe.node,oe.offset),ge.removeAllRanges(),bt>Mn?(ge.addRange(de),ge.extend(re.node,re.offset)):(de.setEnd(re.node,re.offset),ge.addRange(de))}}}}for(Me=[],ge=Z;ge=ge.parentNode;)ge.nodeType===1&&Me.push({element:ge,left:ge.scrollLeft,top:ge.scrollTop});for(typeof Z.focus=="function"&&Z.focus(),Z=0;Z<Me.length;Z++){var Oe=Me[Z];Oe.element.scrollLeft=Oe.left,Oe.element.scrollTop=Oe.top}}Wg=!!C0,O0=C0=null}finally{bn=_,B.p=w,F.T=m}}c.current=h,zr=2}}function fA(){if(zr===2){zr=0;var c=Zs,h=wc,m=(h.flags&8772)!==0;if((h.subtreeFlags&8772)!==0||m){m=F.T,F.T=null;var w=B.p;B.p=2;var _=bn;bn|=4;try{j_(c,h.alternate,h)}finally{bn=_,B.p=w,F.T=m}}zr=3}}function hA(){if(zr===4||zr===3){zr=0,Ce();var c=Zs,h=wc,m=Sc,w=eA;(h.subtreeFlags&10256)!==0||(h.flags&10256)!==0?zr=5:(zr=0,wc=Zs=null,gA(c,c.pendingLanes));var _=c.pendingLanes;if(_===0&&(Gs=null),Ge(m),h=h.stateNode,st&&typeof st.onCommitFiberRoot=="function")try{st.onCommitFiberRoot(Ee,h,void 0,(h.current.flags&128)===128)}catch{}if(w!==null){h=F.T,_=B.p,B.p=2,F.T=null;try{for(var L=c.onRecoverableError,W=0;W<w.length;W++){var Z=w[W];L(Z.value,{componentStack:Z.stack})}}finally{F.T=h,B.p=_}}(Sc&3)!==0&&Pg(),Ii(c),_=c.pendingLanes,(m&4194090)!==0&&(_&42)!==0?c===c0?Fd++:(Fd=0,c0=c):Fd=0,kd(0)}}function gA(c,h){(c.pooledCacheLanes&=h)===0&&(h=c.pooledCache,h!=null&&(c.pooledCache=null,vd(h)))}function Pg(c){return dA(),fA(),hA(),pA()}function pA(){if(zr!==5)return!1;var c=Zs,h=o0;o0=0;var m=Ge(Sc),w=F.T,_=B.p;try{B.p=32>m?32:m,F.T=null,m=l0,l0=null;var L=Zs,W=Sc;if(zr=0,wc=Zs=null,Sc=0,(bn&6)!==0)throw Error(r(331));var Z=bn;if(bn|=4,K_(L.current),G_(L,L.current,W,m),bn=Z,kd(0,!1),st&&typeof st.onPostCommitFiberRoot=="function")try{st.onPostCommitFiberRoot(Ee,L)}catch{}return!0}finally{B.p=_,F.T=w,gA(c,h)}}function mA(c,h,m){h=Wa(m,h),h=Bb(c.stateNode,h,2),c=zs(c,h,2),c!==null&&(vn(c,2),Ii(c))}function Tn(c,h,m){if(c.tag===3)mA(c,c,m);else for(;h!==null;){if(h.tag===3){mA(h,c,m);break}else if(h.tag===1){var w=h.stateNode;if(typeof h.type.getDerivedStateFromError=="function"||typeof w.componentDidCatch=="function"&&(Gs===null||!Gs.has(w))){c=Wa(m,c),m=x_(2),w=zs(h,m,2),w!==null&&(w_(m,w,h,c),vn(w,2),Ii(w));break}}h=h.return}}function h0(c,h,m){var w=c.pingCache;if(w===null){w=c.pingCache=new S4;var _=new Set;w.set(h,_)}else _=w.get(h),_===void 0&&(_=new Set,w.set(h,_));_.has(m)||(r0=!0,_.add(m),c=D4.bind(null,c,h,m),h.then(c,c))}function D4(c,h,m){var w=c.pingCache;w!==null&&w.delete(h),c.pingedLanes|=c.suspendedLanes&m,c.warmLanes&=~m,Nn===c&&(tn&m)===m&&(Un===4||Un===3&&(tn&62914560)===tn&&300>Le()-s0?(bn&2)===0&&Cc(c,0):a0|=m,xc===tn&&(xc=0)),Ii(c)}function vA(c,h){h===0&&(h=At()),c=ic(c,h),c!==null&&(vn(c,h),Ii(c))}function _4(c){var h=c.memoizedState,m=0;h!==null&&(m=h.retryLane),vA(c,m)}function A4(c,h){var m=0;switch(c.tag){case 13:var w=c.stateNode,_=c.memoizedState;_!==null&&(m=_.retryLane);break;case 19:w=c.stateNode;break;case 22:w=c.stateNode._retryCache;break;default:throw Error(r(314))}w!==null&&w.delete(h),vA(c,m)}function T4(c,h){return me(c,h)}var Lg=null,Ec=null,g0=!1,Ng=!1,p0=!1,tl=0;function Ii(c){c!==Ec&&c.next===null&&(Ec===null?Lg=Ec=c:Ec=Ec.next=c),Ng=!0,g0||(g0=!0,P4())}function kd(c,h){if(!p0&&Ng){p0=!0;do for(var m=!1,w=Lg;w!==null;){if(c!==0){var _=w.pendingLanes;if(_===0)var L=0;else{var W=w.suspendedLanes,Z=w.pingedLanes;L=(1<<31-at(42|c)+1)-1,L&=_&~(W&~Z),L=L&201326741?L&201326741|1:L?L|2:0}L!==0&&(m=!0,wA(w,L))}else L=tn,L=We(w,w===Nn?L:0,w.cancelPendingCommit!==null||w.timeoutHandle!==-1),(L&3)===0||we(w,L)||(m=!0,wA(w,L));w=w.next}while(m);p0=!1}}function R4(){bA()}function bA(){Ng=g0=!1;var c=0;tl!==0&&(z4()&&(c=tl),tl=0);for(var h=Le(),m=null,w=Lg;w!==null;){var _=w.next,L=yA(w,h);L===0?(w.next=null,m===null?Lg=_:m.next=_,_===null&&(Ec=m)):(m=w,(c!==0||(L&3)!==0)&&(Ng=!0)),w=_}kd(c)}function yA(c,h){for(var m=c.suspendedLanes,w=c.pingedLanes,_=c.expirationTimes,L=c.pendingLanes&-62914561;0<L;){var W=31-at(L),Z=1<<W,J=_[W];J===-1?((Z&m)===0||(Z&w)!==0)&&(_[W]=Ie(Z,h)):J<=h&&(c.expiredLanes|=Z),L&=~Z}if(h=Nn,m=tn,m=We(c,c===h?m:0,c.cancelPendingCommit!==null||c.timeoutHandle!==-1),w=c.callbackNode,m===0||c===h&&(yn===2||yn===9)||c.cancelPendingCommit!==null)return w!==null&&w!==null&&ye(w),c.callbackNode=null,c.callbackPriority=0;if((m&3)===0||we(c,m)){if(h=m&-m,h===c.callbackPriority)return h;switch(w!==null&&ye(w),Ge(m)){case 2:case 8:m=ze;break;case 32:m=$e;break;case 268435456:m=ut;break;default:m=$e}return w=xA.bind(null,c),m=me(m,w),c.callbackPriority=h,c.callbackNode=m,h}return w!==null&&w!==null&&ye(w),c.callbackPriority=2,c.callbackNode=null,2}function xA(c,h){if(zr!==0&&zr!==5)return c.callbackNode=null,c.callbackPriority=0,null;var m=c.callbackNode;if(Pg()&&c.callbackNode!==m)return null;var w=tn;return w=We(c,c===Nn?w:0,c.cancelPendingCommit!==null||c.timeoutHandle!==-1),w===0?null:(nA(c,w,h),yA(c,Le()),c.callbackNode!=null&&c.callbackNode===m?xA.bind(null,c):null)}function wA(c,h){if(Pg())return null;nA(c,h,!0)}function P4(){Y4(function(){(bn&6)!==0?me(Ve,R4):bA()})}function m0(){return tl===0&&(tl=Dt()),tl}function SA(c){return c==null||typeof c=="symbol"||typeof c=="boolean"?null:typeof c=="function"?c:$t(""+c)}function CA(c,h){var m=h.ownerDocument.createElement("input");return m.name=h.name,m.value=h.value,c.id&&m.setAttribute("form",c.id),h.parentNode.insertBefore(m,h),c=new FormData(c),m.parentNode.removeChild(m),c}function L4(c,h,m,w,_){if(h==="submit"&&m&&m.stateNode===_){var L=SA((_[jt]||null).action),W=w.submitter;W&&(h=(h=W[jt]||null)?SA(h.formAction):W.getAttribute("formAction"),h!==null&&(L=h,W=null));var Z=new Ns("action","action",null,w,_);c.push({event:Z,listeners:[{instance:null,listener:function(){if(w.defaultPrevented){if(tl!==0){var J=W?CA(_,W):new FormData(_);$b(m,{pending:!0,data:J,method:_.method,action:L},null,J)}}else typeof L=="function"&&(Z.preventDefault(),J=W?CA(_,W):new FormData(_),$b(m,{pending:!0,data:J,method:_.method,action:L},L,J))},currentTarget:_}]})}}for(var v0=0;v0<tb.length;v0++){var b0=tb[v0],N4=b0.toLowerCase(),I4=b0[0].toUpperCase()+b0.slice(1);hi(N4,"on"+I4)}hi(rc,"onAnimationEnd"),hi(v,"onAnimationIteration"),hi(aD,"onAnimationStart"),hi("dblclick","onDoubleClick"),hi("focusin","onFocus"),hi("focusout","onBlur"),hi(KW,"onTransitionRun"),hi(JW,"onTransitionStart"),hi(e4,"onTransitionCancel"),hi(iD,"onTransitionEnd"),Rt("onMouseEnter",["mouseout","mouseover"]),Rt("onMouseLeave",["mouseout","mouseover"]),Rt("onPointerEnter",["pointerout","pointerover"]),Rt("onPointerLeave",["pointerout","pointerover"]),qn("onChange","change click focusin focusout input keydown keyup selectionchange".split(" ")),qn("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" ")),qn("onBeforeInput",["compositionend","keypress","textInput","paste"]),qn("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" ")),qn("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" ")),qn("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var Hd="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(" "),$4=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(Hd));function OA(c,h){h=(h&4)!==0;for(var m=0;m<c.length;m++){var w=c[m],_=w.event;w=w.listeners;e:{var L=void 0;if(h)for(var W=w.length-1;0<=W;W--){var Z=w[W],J=Z.instance,fe=Z.currentTarget;if(Z=Z.listener,J!==L&&_.isPropagationStopped())break e;L=Z,_.currentTarget=fe;try{L(_)}catch(Se){wg(Se)}_.currentTarget=null,L=J}else for(W=0;W<w.length;W++){if(Z=w[W],J=Z.instance,fe=Z.currentTarget,Z=Z.listener,J!==L&&_.isPropagationStopped())break e;L=Z,_.currentTarget=fe;try{L(_)}catch(Se){wg(Se)}_.currentTarget=null,L=J}}}}function Xt(c,h){var m=h[en];m===void 0&&(m=h[en]=new Set);var w=c+"__bubble";m.has(w)||(EA(h,c,2,!1),m.add(w))}function y0(c,h,m){var w=0;h&&(w|=4),EA(m,c,w,h)}var Ig="_reactListening"+Math.random().toString(36).slice(2);function x0(c){if(!c[Ig]){c[Ig]=!0,Qn.forEach(function(m){m!=="selectionchange"&&($4.has(m)||y0(m,!1,c),y0(m,!0,c))});var h=c.nodeType===9?c:c.ownerDocument;h===null||h[Ig]||(h[Ig]=!0,y0("selectionchange",!1,h))}}function EA(c,h,m,w){switch(GA(h)){case 2:var _=c5;break;case 8:_=u5;break;default:_=N0}m=_.bind(null,h,m,c),_=void 0,!Ye||h!=="touchstart"&&h!=="touchmove"&&h!=="wheel"||(_=!0),w?_!==void 0?c.addEventListener(h,m,{capture:!0,passive:_}):c.addEventListener(h,m,!0):_!==void 0?c.addEventListener(h,m,{passive:_}):c.addEventListener(h,m,!1)}function w0(c,h,m,w,_){var L=w;if((h&1)===0&&(h&2)===0&&w!==null)e:for(;;){if(w===null)return;var W=w.tag;if(W===3||W===4){var Z=w.stateNode.containerInfo;if(Z===_)break;if(W===4)for(W=w.return;W!==null;){var J=W.tag;if((J===3||J===4)&&W.stateNode.containerInfo===_)return;W=W.return}for(;Z!==null;){if(W=sn(Z),W===null)return;if(J=W.tag,J===5||J===6||J===26||J===27){w=L=W;continue e}Z=Z.parentNode}}w=w.return}Di(function(){var fe=L,Se=Oa(m),Me=[];e:{var he=sD.get(c);if(he!==void 0){var ge=Ns,Ot=c;switch(c){case"keypress":if(ja(m)===0)break e;case"keydown":case"keyup":ge=qu;break;case"focusin":Ot="focus",ge=No;break;case"focusout":Ot="blur",ge=No;break;case"beforeblur":case"afterblur":ge=No;break;case"click":if(m.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":ge=$l;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":ge=Lu;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":ge=Uu;break;case rc:case v:case aD:ge=$u;break;case iD:ge=Zu;break;case"scroll":case"scrollend":ge=Ru;break;case"wheel":ge=Ku;break;case"copy":case"cut":case"paste":ge=ku;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":ge=kl;break;case"toggle":case"beforetoggle":ge=ed}var bt=(h&4)!==0,Mn=!bt&&(c==="scroll"||c==="scrollend"),oe=bt?he!==null?he+"Capture":null:he;bt=[];for(var re=fe,de;re!==null;){var Oe=re;if(de=Oe.stateNode,Oe=Oe.tag,Oe!==5&&Oe!==26&&Oe!==27||de===null||oe===null||(Oe=Ea(re,oe),Oe!=null&&bt.push(zd(re,Oe,de))),Mn)break;re=re.return}0<bt.length&&(he=new ge(he,Ot,null,m,Se),Me.push({event:he,listeners:bt}))}}if((h&7)===0){e:{if(he=c==="mouseover"||c==="pointerover",ge=c==="mouseout"||c==="pointerout",he&&m!==Zr&&(Ot=m.relatedTarget||m.fromElement)&&(sn(Ot)||Ot[rn]))break e;if((ge||he)&&(he=Se.window===Se?Se:(he=Se.ownerDocument)?he.defaultView||he.parentWindow:window,ge?(Ot=m.relatedTarget||m.toElement,ge=fe,Ot=Ot?sn(Ot):null,Ot!==null&&(Mn=i(Ot),bt=Ot.tag,Ot!==Mn||bt!==5&&bt!==27&&bt!==6)&&(Ot=null)):(ge=null,Ot=fe),ge!==Ot)){if(bt=$l,Oe="onMouseLeave",oe="onMouseEnter",re="mouse",(c==="pointerout"||c==="pointerover")&&(bt=kl,Oe="onPointerLeave",oe="onPointerEnter",re="pointer"),Mn=ge==null?he:Ln(ge),de=Ot==null?he:Ln(Ot),he=new bt(Oe,re+"leave",ge,m,Se),he.target=Mn,he.relatedTarget=de,Oe=null,sn(Se)===fe&&(bt=new bt(oe,re+"enter",Ot,m,Se),bt.target=de,bt.relatedTarget=Mn,Oe=bt),Mn=Oe,ge&&Ot)t:{for(bt=ge,oe=Ot,re=0,de=bt;de;de=Mc(de))re++;for(de=0,Oe=oe;Oe;Oe=Mc(Oe))de++;for(;0<re-de;)bt=Mc(bt),re--;for(;0<de-re;)oe=Mc(oe),de--;for(;re--;){if(bt===oe||oe!==null&&bt===oe.alternate)break t;bt=Mc(bt),oe=Mc(oe)}bt=null}else bt=null;ge!==null&&MA(Me,he,ge,bt,!1),Ot!==null&&Mn!==null&&MA(Me,Mn,Ot,bt,!0)}}e:{if(he=fe?Ln(fe):window,ge=he.nodeName&&he.nodeName.toLowerCase(),ge==="select"||ge==="input"&&he.type==="file")var Je=Xl;else if(Wl(he))if(Vl)Je=ud;else{Je=ld;var Bt=od}else ge=he.nodeName,!ge||ge.toLowerCase()!=="input"||he.type!=="checkbox"&&he.type!=="radio"?fe&&Ke(fe.elementType)&&(Je=Xl):Je=cd;if(Je&&(Je=Je(c,fe))){ql(Me,Je,m,Se);break e}Bt&&Bt(c,he,fe),c==="focusout"&&fe&&he.type==="number"&&fe.memoizedProps.value!=null&&lt(he,"number",he.value)}switch(Bt=fe?Ln(fe):window,c){case"focusin":(Wl(Bt)||Bt.contentEditable==="true")&&(Ai=Bt,zo=fe,as=null);break;case"focusout":as=zo=Ai=null;break;case"mousedown":Bo=!0;break;case"contextmenu":case"mouseup":case"dragend":Bo=!1,tc(Me,m,Se);break;case"selectionchange":if(fd)break;case"keydown":case"keyup":tc(Me,m,Se)}var ft;if($o)e:{switch(c){case"compositionstart":var wt="onCompositionStart";break e;case"compositionend":wt="onCompositionEnd";break e;case"compositionupdate":wt="onCompositionUpdate";break e}wt=void 0}else _i?Yl(c,m)&&(wt="onCompositionEnd"):c==="keydown"&&m.keyCode===229&&(wt="onCompositionStart");wt&&(Hl&&m.locale!=="ko"&&(_i||wt!=="onCompositionStart"?wt==="onCompositionEnd"&&_i&&(ft=oi()):(Wt=Se,An="value"in Wt?Wt.value:Wt.textContent,_i=!0)),Bt=$g(fe,wt),0<Bt.length&&(wt=new Fl(wt,c,null,m,Se),Me.push({event:wt,listeners:Bt}),ft?wt.data=ft:(ft=jl(m),ft!==null&&(wt.data=ft)))),(ft=nd?rd(c,m):ad(c,m))&&(wt=$g(fe,"onBeforeInput"),0<wt.length&&(Bt=new Fl("onBeforeInput","beforeinput",null,m,Se),Me.push({event:Bt,listeners:wt}),Bt.data=ft)),L4(Me,c,fe,m,Se)}OA(Me,h)})}function zd(c,h,m){return{instance:c,listener:h,currentTarget:m}}function $g(c,h){for(var m=h+"Capture",w=[];c!==null;){var _=c,L=_.stateNode;if(_=_.tag,_!==5&&_!==26&&_!==27||L===null||(_=Ea(c,m),_!=null&&w.unshift(zd(c,_,L)),_=Ea(c,h),_!=null&&w.push(zd(c,_,L))),c.tag===3)return w;c=c.return}return[]}function Mc(c){if(c===null)return null;do c=c.return;while(c&&c.tag!==5&&c.tag!==27);return c||null}function MA(c,h,m,w,_){for(var L=h._reactName,W=[];m!==null&&m!==w;){var Z=m,J=Z.alternate,fe=Z.stateNode;if(Z=Z.tag,J!==null&&J===w)break;Z!==5&&Z!==26&&Z!==27||fe===null||(J=fe,_?(fe=Ea(m,L),fe!=null&&W.unshift(zd(m,fe,J))):_||(fe=Ea(m,L),fe!=null&&W.push(zd(m,fe,J)))),m=m.return}W.length!==0&&c.push({event:h,listeners:W})}var F4=/\r\n?/g,k4=/\u0000|\uFFFD/g;function DA(c){return(typeof c=="string"?c:""+c).replace(F4,`
`).replace(k4,"")}function _A(c,h){return h=DA(h),DA(c)===h}function Fg(){}function En(c,h,m,w,_,L){switch(m){case"children":typeof w=="string"?h==="body"||h==="textarea"&&w===""||$r(c,w):(typeof w=="number"||typeof w=="bigint")&&h!=="body"&&$r(c,""+w);break;case"className":Sr(c,"class",w);break;case"tabIndex":Sr(c,"tabindex",w);break;case"dir":case"role":case"viewBox":case"width":case"height":Sr(c,m,w);break;case"style":Mt(c,w,L);break;case"data":if(h!=="object"){Sr(c,"data",w);break}case"src":case"href":if(w===""&&(h!=="a"||m!=="href")){c.removeAttribute(m);break}if(w==null||typeof w=="function"||typeof w=="symbol"||typeof w=="boolean"){c.removeAttribute(m);break}w=$t(""+w),c.setAttribute(m,w);break;case"action":case"formAction":if(typeof w=="function"){c.setAttribute(m,"javascript:throw new Error('A React form was unexpectedly submitted. If you called form.submit() manually, consider using form.requestSubmit() instead. If you\\'re trying to use event.stopPropagation() in a submit event handler, consider also calling event.preventDefault().')");break}else typeof L=="function"&&(m==="formAction"?(h!=="input"&&En(c,h,"name",_.name,_,null),En(c,h,"formEncType",_.formEncType,_,null),En(c,h,"formMethod",_.formMethod,_,null),En(c,h,"formTarget",_.formTarget,_,null)):(En(c,h,"encType",_.encType,_,null),En(c,h,"method",_.method,_,null),En(c,h,"target",_.target,_,null)));if(w==null||typeof w=="symbol"||typeof w=="boolean"){c.removeAttribute(m);break}w=$t(""+w),c.setAttribute(m,w);break;case"onClick":w!=null&&(c.onclick=Fg);break;case"onScroll":w!=null&&Xt("scroll",c);break;case"onScrollEnd":w!=null&&Xt("scrollend",c);break;case"dangerouslySetInnerHTML":if(w!=null){if(typeof w!="object"||!("__html"in w))throw Error(r(61));if(m=w.__html,m!=null){if(_.children!=null)throw Error(r(60));c.innerHTML=m}}break;case"multiple":c.multiple=w&&typeof w!="function"&&typeof w!="symbol";break;case"muted":c.muted=w&&typeof w!="function"&&typeof w!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(w==null||typeof w=="function"||typeof w=="boolean"||typeof w=="symbol"){c.removeAttribute("xlink:href");break}m=$t(""+w),c.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",m);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":w!=null&&typeof w!="function"&&typeof w!="symbol"?c.setAttribute(m,""+w):c.removeAttribute(m);break;case"inert":case"allowFullScreen":case"async":case"autoPlay":case"controls":case"default":case"defer":case"disabled":case"disablePictureInPicture":case"disableRemotePlayback":case"formNoValidate":case"hidden":case"loop":case"noModule":case"noValidate":case"open":case"playsInline":case"readOnly":case"required":case"reversed":case"scoped":case"seamless":case"itemScope":w&&typeof w!="function"&&typeof w!="symbol"?c.setAttribute(m,""):c.removeAttribute(m);break;case"capture":case"download":w===!0?c.setAttribute(m,""):w!==!1&&w!=null&&typeof w!="function"&&typeof w!="symbol"?c.setAttribute(m,w):c.removeAttribute(m);break;case"cols":case"rows":case"size":case"span":w!=null&&typeof w!="function"&&typeof w!="symbol"&&!isNaN(w)&&1<=w?c.setAttribute(m,w):c.removeAttribute(m);break;case"rowSpan":case"start":w==null||typeof w=="function"||typeof w=="symbol"||isNaN(w)?c.removeAttribute(m):c.setAttribute(m,w);break;case"popover":Xt("beforetoggle",c),Xt("toggle",c),ir(c,"popover",w);break;case"xlinkActuate":Yn(c,"http://www.w3.org/1999/xlink","xlink:actuate",w);break;case"xlinkArcrole":Yn(c,"http://www.w3.org/1999/xlink","xlink:arcrole",w);break;case"xlinkRole":Yn(c,"http://www.w3.org/1999/xlink","xlink:role",w);break;case"xlinkShow":Yn(c,"http://www.w3.org/1999/xlink","xlink:show",w);break;case"xlinkTitle":Yn(c,"http://www.w3.org/1999/xlink","xlink:title",w);break;case"xlinkType":Yn(c,"http://www.w3.org/1999/xlink","xlink:type",w);break;case"xmlBase":Yn(c,"http://www.w3.org/XML/1998/namespace","xml:base",w);break;case"xmlLang":Yn(c,"http://www.w3.org/XML/1998/namespace","xml:lang",w);break;case"xmlSpace":Yn(c,"http://www.w3.org/XML/1998/namespace","xml:space",w);break;case"is":ir(c,"is",w);break;case"innerText":case"textContent":break;default:(!(2<m.length)||m[0]!=="o"&&m[0]!=="O"||m[1]!=="n"&&m[1]!=="N")&&(m=xt.get(m)||m,ir(c,m,w))}}function S0(c,h,m,w,_,L){switch(m){case"style":Mt(c,w,L);break;case"dangerouslySetInnerHTML":if(w!=null){if(typeof w!="object"||!("__html"in w))throw Error(r(61));if(m=w.__html,m!=null){if(_.children!=null)throw Error(r(60));c.innerHTML=m}}break;case"children":typeof w=="string"?$r(c,w):(typeof w=="number"||typeof w=="bigint")&&$r(c,""+w);break;case"onScroll":w!=null&&Xt("scroll",c);break;case"onScrollEnd":w!=null&&Xt("scrollend",c);break;case"onClick":w!=null&&(c.onclick=Fg);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!Bn.hasOwnProperty(m))e:{if(m[0]==="o"&&m[1]==="n"&&(_=m.endsWith("Capture"),h=m.slice(2,_?m.length-7:void 0),L=c[jt]||null,L=L!=null?L[m]:null,typeof L=="function"&&c.removeEventListener(h,L,_),typeof w=="function")){typeof L!="function"&&L!==null&&(m in c?c[m]=null:c.hasAttribute(m)&&c.removeAttribute(m)),c.addEventListener(h,w,_);break e}m in c?c[m]=w:w===!0?c.setAttribute(m,""):ir(c,m,w)}}}function Br(c,h,m){switch(h){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Xt("error",c),Xt("load",c);var w=!1,_=!1,L;for(L in m)if(m.hasOwnProperty(L)){var W=m[L];if(W!=null)switch(L){case"src":w=!0;break;case"srcSet":_=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(r(137,h));default:En(c,h,L,W,m,null)}}_&&En(c,h,"srcSet",m.srcSet,m,null),w&&En(c,h,"src",m.src,m,null);return;case"input":Xt("invalid",c);var Z=L=W=_=null,J=null,fe=null;for(w in m)if(m.hasOwnProperty(w)){var Se=m[w];if(Se!=null)switch(w){case"name":_=Se;break;case"type":W=Se;break;case"checked":J=Se;break;case"defaultChecked":fe=Se;break;case"value":L=Se;break;case"defaultValue":Z=Se;break;case"children":case"dangerouslySetInnerHTML":if(Se!=null)throw Error(r(137,h));break;default:En(c,h,w,Se,m,null)}}pt(c,L,Z,J,fe,W,_,!1),Kn(c);return;case"select":Xt("invalid",c),w=W=L=null;for(_ in m)if(m.hasOwnProperty(_)&&(Z=m[_],Z!=null))switch(_){case"value":L=Z;break;case"defaultValue":W=Z;break;case"multiple":w=Z;default:En(c,h,_,Z,m,null)}h=L,m=W,c.multiple=!!w,h!=null?gn(c,!!w,h,!1):m!=null&&gn(c,!!w,m,!0);return;case"textarea":Xt("invalid",c),L=_=w=null;for(W in m)if(m.hasOwnProperty(W)&&(Z=m[W],Z!=null))switch(W){case"value":w=Z;break;case"defaultValue":_=Z;break;case"children":L=Z;break;case"dangerouslySetInnerHTML":if(Z!=null)throw Error(r(91));break;default:En(c,h,W,Z,m,null)}ia(c,w,_,L),Kn(c);return;case"option":for(J in m)if(m.hasOwnProperty(J)&&(w=m[J],w!=null))switch(J){case"selected":c.selected=w&&typeof w!="function"&&typeof w!="symbol";break;default:En(c,h,J,w,m,null)}return;case"dialog":Xt("beforetoggle",c),Xt("toggle",c),Xt("cancel",c),Xt("close",c);break;case"iframe":case"object":Xt("load",c);break;case"video":case"audio":for(w=0;w<Hd.length;w++)Xt(Hd[w],c);break;case"image":Xt("error",c),Xt("load",c);break;case"details":Xt("toggle",c);break;case"embed":case"source":case"link":Xt("error",c),Xt("load",c);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(fe in m)if(m.hasOwnProperty(fe)&&(w=m[fe],w!=null))switch(fe){case"children":case"dangerouslySetInnerHTML":throw Error(r(137,h));default:En(c,h,fe,w,m,null)}return;default:if(Ke(h)){for(Se in m)m.hasOwnProperty(Se)&&(w=m[Se],w!==void 0&&S0(c,h,Se,w,m,void 0));return}}for(Z in m)m.hasOwnProperty(Z)&&(w=m[Z],w!=null&&En(c,h,Z,w,m,null))}function H4(c,h,m,w){switch(h){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var _=null,L=null,W=null,Z=null,J=null,fe=null,Se=null;for(ge in m){var Me=m[ge];if(m.hasOwnProperty(ge)&&Me!=null)switch(ge){case"checked":break;case"value":break;case"defaultValue":J=Me;default:w.hasOwnProperty(ge)||En(c,h,ge,null,w,Me)}}for(var he in w){var ge=w[he];if(Me=m[he],w.hasOwnProperty(he)&&(ge!=null||Me!=null))switch(he){case"type":L=ge;break;case"name":_=ge;break;case"checked":fe=ge;break;case"defaultChecked":Se=ge;break;case"value":W=ge;break;case"defaultValue":Z=ge;break;case"children":case"dangerouslySetInnerHTML":if(ge!=null)throw Error(r(137,h));break;default:ge!==Me&&En(c,h,he,ge,w,Me)}}Gr(c,W,Z,J,fe,Se,L,_);return;case"select":ge=W=Z=he=null;for(L in m)if(J=m[L],m.hasOwnProperty(L)&&J!=null)switch(L){case"value":break;case"multiple":ge=J;default:w.hasOwnProperty(L)||En(c,h,L,null,w,J)}for(_ in w)if(L=w[_],J=m[_],w.hasOwnProperty(_)&&(L!=null||J!=null))switch(_){case"value":he=L;break;case"defaultValue":Z=L;break;case"multiple":W=L;default:L!==J&&En(c,h,_,L,w,J)}h=Z,m=W,w=ge,he!=null?gn(c,!!m,he,!1):!!w!=!!m&&(h!=null?gn(c,!!m,h,!0):gn(c,!!m,m?[]:"",!1));return;case"textarea":ge=he=null;for(Z in m)if(_=m[Z],m.hasOwnProperty(Z)&&_!=null&&!w.hasOwnProperty(Z))switch(Z){case"value":break;case"children":break;default:En(c,h,Z,null,w,_)}for(W in w)if(_=w[W],L=m[W],w.hasOwnProperty(W)&&(_!=null||L!=null))switch(W){case"value":he=_;break;case"defaultValue":ge=_;break;case"children":break;case"dangerouslySetInnerHTML":if(_!=null)throw Error(r(91));break;default:_!==L&&En(c,h,W,_,w,L)}Jn(c,he,ge);return;case"option":for(var Ot in m)if(he=m[Ot],m.hasOwnProperty(Ot)&&he!=null&&!w.hasOwnProperty(Ot))switch(Ot){case"selected":c.selected=!1;break;default:En(c,h,Ot,null,w,he)}for(J in w)if(he=w[J],ge=m[J],w.hasOwnProperty(J)&&he!==ge&&(he!=null||ge!=null))switch(J){case"selected":c.selected=he&&typeof he!="function"&&typeof he!="symbol";break;default:En(c,h,J,he,w,ge)}return;case"img":case"link":case"area":case"base":case"br":case"col":case"embed":case"hr":case"keygen":case"meta":case"param":case"source":case"track":case"wbr":case"menuitem":for(var bt in m)he=m[bt],m.hasOwnProperty(bt)&&he!=null&&!w.hasOwnProperty(bt)&&En(c,h,bt,null,w,he);for(fe in w)if(he=w[fe],ge=m[fe],w.hasOwnProperty(fe)&&he!==ge&&(he!=null||ge!=null))switch(fe){case"children":case"dangerouslySetInnerHTML":if(he!=null)throw Error(r(137,h));break;default:En(c,h,fe,he,w,ge)}return;default:if(Ke(h)){for(var Mn in m)he=m[Mn],m.hasOwnProperty(Mn)&&he!==void 0&&!w.hasOwnProperty(Mn)&&S0(c,h,Mn,void 0,w,he);for(Se in w)he=w[Se],ge=m[Se],!w.hasOwnProperty(Se)||he===ge||he===void 0&&ge===void 0||S0(c,h,Se,he,w,ge);return}}for(var oe in m)he=m[oe],m.hasOwnProperty(oe)&&he!=null&&!w.hasOwnProperty(oe)&&En(c,h,oe,null,w,he);for(Me in w)he=w[Me],ge=m[Me],!w.hasOwnProperty(Me)||he===ge||he==null&&ge==null||En(c,h,Me,he,w,ge)}var C0=null,O0=null;function kg(c){return c.nodeType===9?c:c.ownerDocument}function AA(c){switch(c){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function TA(c,h){if(c===0)switch(h){case"svg":return 1;case"math":return 2;default:return 0}return c===1&&h==="foreignObject"?0:c}function E0(c,h){return c==="textarea"||c==="noscript"||typeof h.children=="string"||typeof h.children=="number"||typeof h.children=="bigint"||typeof h.dangerouslySetInnerHTML=="object"&&h.dangerouslySetInnerHTML!==null&&h.dangerouslySetInnerHTML.__html!=null}var M0=null;function z4(){var c=window.event;return c&&c.type==="popstate"?c===M0?!1:(M0=c,!0):(M0=null,!1)}var RA=typeof setTimeout=="function"?setTimeout:void 0,B4=typeof clearTimeout=="function"?clearTimeout:void 0,PA=typeof Promise=="function"?Promise:void 0,Y4=typeof queueMicrotask=="function"?queueMicrotask:typeof PA<"u"?function(c){return PA.resolve(null).then(c).catch(j4)}:RA;function j4(c){setTimeout(function(){throw c})}function Ks(c){return c==="head"}function LA(c,h){var m=h,w=0,_=0;do{var L=m.nextSibling;if(c.removeChild(m),L&&L.nodeType===8)if(m=L.data,m==="/$"){if(0<w&&8>w){m=w;var W=c.ownerDocument;if(m&1&&Bd(W.documentElement),m&2&&Bd(W.body),m&4)for(m=W.head,Bd(m),W=m.firstChild;W;){var Z=W.nextSibling,J=W.nodeName;W[Gt]||J==="SCRIPT"||J==="STYLE"||J==="LINK"&&W.rel.toLowerCase()==="stylesheet"||m.removeChild(W),W=Z}}if(_===0){c.removeChild(L),Gd(h);return}_--}else m==="$"||m==="$?"||m==="$!"?_++:w=m.charCodeAt(0)-48;else w=0;m=L}while(m);Gd(h)}function D0(c){var h=c.firstChild;for(h&&h.nodeType===10&&(h=h.nextSibling);h;){var m=h;switch(h=h.nextSibling,m.nodeName){case"HTML":case"HEAD":case"BODY":D0(m),Sn(m);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(m.rel.toLowerCase()==="stylesheet")continue}c.removeChild(m)}}function W4(c,h,m,w){for(;c.nodeType===1;){var _=m;if(c.nodeName.toLowerCase()!==h.toLowerCase()){if(!w&&(c.nodeName!=="INPUT"||c.type!=="hidden"))break}else if(w){if(!c[Gt])switch(h){case"meta":if(!c.hasAttribute("itemprop"))break;return c;case"link":if(L=c.getAttribute("rel"),L==="stylesheet"&&c.hasAttribute("data-precedence"))break;if(L!==_.rel||c.getAttribute("href")!==(_.href==null||_.href===""?null:_.href)||c.getAttribute("crossorigin")!==(_.crossOrigin==null?null:_.crossOrigin)||c.getAttribute("title")!==(_.title==null?null:_.title))break;return c;case"style":if(c.hasAttribute("data-precedence"))break;return c;case"script":if(L=c.getAttribute("src"),(L!==(_.src==null?null:_.src)||c.getAttribute("type")!==(_.type==null?null:_.type)||c.getAttribute("crossorigin")!==(_.crossOrigin==null?null:_.crossOrigin))&&L&&c.hasAttribute("async")&&!c.hasAttribute("itemprop"))break;return c;default:return c}}else if(h==="input"&&c.type==="hidden"){var L=_.name==null?null:""+_.name;if(_.type==="hidden"&&c.getAttribute("name")===L)return c}else return c;if(c=pi(c.nextSibling),c===null)break}return null}function q4(c,h,m){if(h==="")return null;for(;c.nodeType!==3;)if((c.nodeType!==1||c.nodeName!=="INPUT"||c.type!=="hidden")&&!m||(c=pi(c.nextSibling),c===null))return null;return c}function _0(c){return c.data==="$!"||c.data==="$?"&&c.ownerDocument.readyState==="complete"}function X4(c,h){var m=c.ownerDocument;if(c.data!=="$?"||m.readyState==="complete")h();else{var w=function(){h(),m.removeEventListener("DOMContentLoaded",w)};m.addEventListener("DOMContentLoaded",w),c._reactRetry=w}}function pi(c){for(;c!=null;c=c.nextSibling){var h=c.nodeType;if(h===1||h===3)break;if(h===8){if(h=c.data,h==="$"||h==="$!"||h==="$?"||h==="F!"||h==="F")break;if(h==="/$")return null}}return c}var A0=null;function NA(c){c=c.previousSibling;for(var h=0;c;){if(c.nodeType===8){var m=c.data;if(m==="$"||m==="$!"||m==="$?"){if(h===0)return c;h--}else m==="/$"&&h++}c=c.previousSibling}return null}function IA(c,h,m){switch(h=kg(m),c){case"html":if(c=h.documentElement,!c)throw Error(r(452));return c;case"head":if(c=h.head,!c)throw Error(r(453));return c;case"body":if(c=h.body,!c)throw Error(r(454));return c;default:throw Error(r(451))}}function Bd(c){for(var h=c.attributes;h.length;)c.removeAttributeNode(h[0]);Sn(c)}var Za=new Map,$A=new Set;function Hg(c){return typeof c.getRootNode=="function"?c.getRootNode():c.nodeType===9?c:c.ownerDocument}var vs=B.d;B.d={f:V4,r:U4,D:G4,C:Z4,L:Q4,m:K4,X:e5,S:J4,M:t5};function V4(){var c=vs.f(),h=Tg();return c||h}function U4(c){var h=Pn(c);h!==null&&h.tag===5&&h.type==="form"?n_(h):vs.r(c)}var Dc=typeof document>"u"?null:document;function FA(c,h,m){var w=Dc;if(w&&typeof h=="string"&&h){var _=In(h);_='link[rel="'+c+'"][href="'+_+'"]',typeof m=="string"&&(_+='[crossorigin="'+m+'"]'),$A.has(_)||($A.add(_),c={rel:c,crossOrigin:m,href:h},w.querySelector(_)===null&&(h=w.createElement("link"),Br(h,"link",c),Et(h),w.head.appendChild(h)))}}function G4(c){vs.D(c),FA("dns-prefetch",c,null)}function Z4(c,h){vs.C(c,h),FA("preconnect",c,h)}function Q4(c,h,m){vs.L(c,h,m);var w=Dc;if(w&&c&&h){var _='link[rel="preload"][as="'+In(h)+'"]';h==="image"&&m&&m.imageSrcSet?(_+='[imagesrcset="'+In(m.imageSrcSet)+'"]',typeof m.imageSizes=="string"&&(_+='[imagesizes="'+In(m.imageSizes)+'"]')):_+='[href="'+In(c)+'"]';var L=_;switch(h){case"style":L=_c(c);break;case"script":L=Ac(c)}Za.has(L)||(c=d({rel:"preload",href:h==="image"&&m&&m.imageSrcSet?void 0:c,as:h},m),Za.set(L,c),w.querySelector(_)!==null||h==="style"&&w.querySelector(Yd(L))||h==="script"&&w.querySelector(jd(L))||(h=w.createElement("link"),Br(h,"link",c),Et(h),w.head.appendChild(h)))}}function K4(c,h){vs.m(c,h);var m=Dc;if(m&&c){var w=h&&typeof h.as=="string"?h.as:"script",_='link[rel="modulepreload"][as="'+In(w)+'"][href="'+In(c)+'"]',L=_;switch(w){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":L=Ac(c)}if(!Za.has(L)&&(c=d({rel:"modulepreload",href:c},h),Za.set(L,c),m.querySelector(_)===null)){switch(w){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(m.querySelector(jd(L)))return}w=m.createElement("link"),Br(w,"link",c),Et(w),m.head.appendChild(w)}}}function J4(c,h,m){vs.S(c,h,m);var w=Dc;if(w&&c){var _=Cn(w).hoistableStyles,L=_c(c);h=h||"default";var W=_.get(L);if(!W){var Z={loading:0,preload:null};if(W=w.querySelector(Yd(L)))Z.loading=5;else{c=d({rel:"stylesheet",href:c,"data-precedence":h},m),(m=Za.get(L))&&T0(c,m);var J=W=w.createElement("link");Et(J),Br(J,"link",c),J._p=new Promise(function(fe,Se){J.onload=fe,J.onerror=Se}),J.addEventListener("load",function(){Z.loading|=1}),J.addEventListener("error",function(){Z.loading|=2}),Z.loading|=4,zg(W,h,w)}W={type:"stylesheet",instance:W,count:1,state:Z},_.set(L,W)}}}function e5(c,h){vs.X(c,h);var m=Dc;if(m&&c){var w=Cn(m).hoistableScripts,_=Ac(c),L=w.get(_);L||(L=m.querySelector(jd(_)),L||(c=d({src:c,async:!0},h),(h=Za.get(_))&&R0(c,h),L=m.createElement("script"),Et(L),Br(L,"link",c),m.head.appendChild(L)),L={type:"script",instance:L,count:1,state:null},w.set(_,L))}}function t5(c,h){vs.M(c,h);var m=Dc;if(m&&c){var w=Cn(m).hoistableScripts,_=Ac(c),L=w.get(_);L||(L=m.querySelector(jd(_)),L||(c=d({src:c,async:!0,type:"module"},h),(h=Za.get(_))&&R0(c,h),L=m.createElement("script"),Et(L),Br(L,"link",c),m.head.appendChild(L)),L={type:"script",instance:L,count:1,state:null},w.set(_,L))}}function kA(c,h,m,w){var _=(_=K.current)?Hg(_):null;if(!_)throw Error(r(446));switch(c){case"meta":case"title":return null;case"style":return typeof m.precedence=="string"&&typeof m.href=="string"?(h=_c(m.href),m=Cn(_).hoistableStyles,w=m.get(h),w||(w={type:"style",instance:null,count:0,state:null},m.set(h,w)),w):{type:"void",instance:null,count:0,state:null};case"link":if(m.rel==="stylesheet"&&typeof m.href=="string"&&typeof m.precedence=="string"){c=_c(m.href);var L=Cn(_).hoistableStyles,W=L.get(c);if(W||(_=_.ownerDocument||_,W={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},L.set(c,W),(L=_.querySelector(Yd(c)))&&!L._p&&(W.instance=L,W.state.loading=5),Za.has(c)||(m={rel:"preload",as:"style",href:m.href,crossOrigin:m.crossOrigin,integrity:m.integrity,media:m.media,hrefLang:m.hrefLang,referrerPolicy:m.referrerPolicy},Za.set(c,m),L||n5(_,c,m,W.state))),h&&w===null)throw Error(r(528,""));return W}if(h&&w!==null)throw Error(r(529,""));return null;case"script":return h=m.async,m=m.src,typeof m=="string"&&h&&typeof h!="function"&&typeof h!="symbol"?(h=Ac(m),m=Cn(_).hoistableScripts,w=m.get(h),w||(w={type:"script",instance:null,count:0,state:null},m.set(h,w)),w):{type:"void",instance:null,count:0,state:null};default:throw Error(r(444,c))}}function _c(c){return'href="'+In(c)+'"'}function Yd(c){return'link[rel="stylesheet"]['+c+"]"}function HA(c){return d({},c,{"data-precedence":c.precedence,precedence:null})}function n5(c,h,m,w){c.querySelector('link[rel="preload"][as="style"]['+h+"]")?w.loading=1:(h=c.createElement("link"),w.preload=h,h.addEventListener("load",function(){return w.loading|=1}),h.addEventListener("error",function(){return w.loading|=2}),Br(h,"link",m),Et(h),c.head.appendChild(h))}function Ac(c){return'[src="'+In(c)+'"]'}function jd(c){return"script[async]"+c}function zA(c,h,m){if(h.count++,h.instance===null)switch(h.type){case"style":var w=c.querySelector('style[data-href~="'+In(m.href)+'"]');if(w)return h.instance=w,Et(w),w;var _=d({},m,{"data-href":m.href,"data-precedence":m.precedence,href:null,precedence:null});return w=(c.ownerDocument||c).createElement("style"),Et(w),Br(w,"style",_),zg(w,m.precedence,c),h.instance=w;case"stylesheet":_=_c(m.href);var L=c.querySelector(Yd(_));if(L)return h.state.loading|=4,h.instance=L,Et(L),L;w=HA(m),(_=Za.get(_))&&T0(w,_),L=(c.ownerDocument||c).createElement("link"),Et(L);var W=L;return W._p=new Promise(function(Z,J){W.onload=Z,W.onerror=J}),Br(L,"link",w),h.state.loading|=4,zg(L,m.precedence,c),h.instance=L;case"script":return L=Ac(m.src),(_=c.querySelector(jd(L)))?(h.instance=_,Et(_),_):(w=m,(_=Za.get(L))&&(w=d({},m),R0(w,_)),c=c.ownerDocument||c,_=c.createElement("script"),Et(_),Br(_,"link",w),c.head.appendChild(_),h.instance=_);case"void":return null;default:throw Error(r(443,h.type))}else h.type==="stylesheet"&&(h.state.loading&4)===0&&(w=h.instance,h.state.loading|=4,zg(w,m.precedence,c));return h.instance}function zg(c,h,m){for(var w=m.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),_=w.length?w[w.length-1]:null,L=_,W=0;W<w.length;W++){var Z=w[W];if(Z.dataset.precedence===h)L=Z;else if(L!==_)break}L?L.parentNode.insertBefore(c,L.nextSibling):(h=m.nodeType===9?m.head:m,h.insertBefore(c,h.firstChild))}function T0(c,h){c.crossOrigin==null&&(c.crossOrigin=h.crossOrigin),c.referrerPolicy==null&&(c.referrerPolicy=h.referrerPolicy),c.title==null&&(c.title=h.title)}function R0(c,h){c.crossOrigin==null&&(c.crossOrigin=h.crossOrigin),c.referrerPolicy==null&&(c.referrerPolicy=h.referrerPolicy),c.integrity==null&&(c.integrity=h.integrity)}var Bg=null;function BA(c,h,m){if(Bg===null){var w=new Map,_=Bg=new Map;_.set(m,w)}else _=Bg,w=_.get(m),w||(w=new Map,_.set(m,w));if(w.has(c))return w;for(w.set(c,null),m=m.getElementsByTagName(c),_=0;_<m.length;_++){var L=m[_];if(!(L[Gt]||L[gt]||c==="link"&&L.getAttribute("rel")==="stylesheet")&&L.namespaceURI!=="http://www.w3.org/2000/svg"){var W=L.getAttribute(h)||"";W=c+W;var Z=w.get(W);Z?Z.push(L):w.set(W,[L])}}return w}function YA(c,h,m){c=c.ownerDocument||c,c.head.insertBefore(m,h==="title"?c.querySelector("head > title"):null)}function r5(c,h,m){if(m===1||h.itemProp!=null)return!1;switch(c){case"meta":case"title":return!0;case"style":if(typeof h.precedence!="string"||typeof h.href!="string"||h.href==="")break;return!0;case"link":if(typeof h.rel!="string"||typeof h.href!="string"||h.href===""||h.onLoad||h.onError)break;switch(h.rel){case"stylesheet":return c=h.disabled,typeof h.precedence=="string"&&c==null;default:return!0}case"script":if(h.async&&typeof h.async!="function"&&typeof h.async!="symbol"&&!h.onLoad&&!h.onError&&h.src&&typeof h.src=="string")return!0}return!1}function jA(c){return!(c.type==="stylesheet"&&(c.state.loading&3)===0)}var Wd=null;function a5(){}function i5(c,h,m){if(Wd===null)throw Error(r(475));var w=Wd;if(h.type==="stylesheet"&&(typeof m.media!="string"||matchMedia(m.media).matches!==!1)&&(h.state.loading&4)===0){if(h.instance===null){var _=_c(m.href),L=c.querySelector(Yd(_));if(L){c=L._p,c!==null&&typeof c=="object"&&typeof c.then=="function"&&(w.count++,w=Yg.bind(w),c.then(w,w)),h.state.loading|=4,h.instance=L,Et(L);return}L=c.ownerDocument||c,m=HA(m),(_=Za.get(_))&&T0(m,_),L=L.createElement("link"),Et(L);var W=L;W._p=new Promise(function(Z,J){W.onload=Z,W.onerror=J}),Br(L,"link",m),h.instance=L}w.stylesheets===null&&(w.stylesheets=new Map),w.stylesheets.set(h,c),(c=h.state.preload)&&(h.state.loading&3)===0&&(w.count++,h=Yg.bind(w),c.addEventListener("load",h),c.addEventListener("error",h))}}function s5(){if(Wd===null)throw Error(r(475));var c=Wd;return c.stylesheets&&c.count===0&&P0(c,c.stylesheets),0<c.count?function(h){var m=setTimeout(function(){if(c.stylesheets&&P0(c,c.stylesheets),c.unsuspend){var w=c.unsuspend;c.unsuspend=null,w()}},6e4);return c.unsuspend=h,function(){c.unsuspend=null,clearTimeout(m)}}:null}function Yg(){if(this.count--,this.count===0){if(this.stylesheets)P0(this,this.stylesheets);else if(this.unsuspend){var c=this.unsuspend;this.unsuspend=null,c()}}}var jg=null;function P0(c,h){c.stylesheets=null,c.unsuspend!==null&&(c.count++,jg=new Map,h.forEach(o5,c),jg=null,Yg.call(c))}function o5(c,h){if(!(h.state.loading&4)){var m=jg.get(c);if(m)var w=m.get(null);else{m=new Map,jg.set(c,m);for(var _=c.querySelectorAll("link[data-precedence],style[data-precedence]"),L=0;L<_.length;L++){var W=_[L];(W.nodeName==="LINK"||W.getAttribute("media")!=="not all")&&(m.set(W.dataset.precedence,W),w=W)}w&&m.set(null,w)}_=h.instance,W=_.getAttribute("data-precedence"),L=m.get(W)||w,L===w&&m.set(null,_),m.set(W,_),this.count++,w=Yg.bind(this),_.addEventListener("load",w),_.addEventListener("error",w),L?L.parentNode.insertBefore(_,L.nextSibling):(c=c.nodeType===9?c.head:c,c.insertBefore(_,c.firstChild)),h.state.loading|=4}}var qd={$$typeof:O,Provider:null,Consumer:null,_currentValue:X,_currentValue2:X,_threadCount:0};function l5(c,h,m,w,_,L,W,Z){this.tag=1,this.containerInfo=c,this.pingCache=this.current=this.pendingChildren=null,this.timeoutHandle=-1,this.callbackNode=this.next=this.pendingContext=this.context=this.cancelPendingCommit=null,this.callbackPriority=0,this.expirationTimes=Tt(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Tt(0),this.hiddenUpdates=Tt(null),this.identifierPrefix=w,this.onUncaughtError=_,this.onCaughtError=L,this.onRecoverableError=W,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=Z,this.incompleteTransitions=new Map}function WA(c,h,m,w,_,L,W,Z,J,fe,Se,Me){return c=new l5(c,h,m,W,Z,J,fe,Me),h=1,L===!0&&(h|=24),L=Ma(3,null,null,h),c.current=L,L.stateNode=c,h=hb(),h.refCount++,c.pooledCache=h,h.refCount++,L.memoizedState={element:w,isDehydrated:m,cache:h},vb(L),c}function qA(c){return c?(c=sc,c):sc}function XA(c,h,m,w,_,L){_=qA(_),w.context===null?w.context=_:w.pendingContext=_,w=Hs(h),w.payload={element:m},L=L===void 0?null:L,L!==null&&(w.callback=L),m=zs(c,w,h),m!==null&&(Ra(m,c,h),wd(m,c,h))}function VA(c,h){if(c=c.memoizedState,c!==null&&c.dehydrated!==null){var m=c.retryLane;c.retryLane=m!==0&&m<h?m:h}}function L0(c,h){VA(c,h),(c=c.alternate)&&VA(c,h)}function UA(c){if(c.tag===13){var h=ic(c,67108864);h!==null&&Ra(h,c,67108864),L0(c,67108864)}}var Wg=!0;function c5(c,h,m,w){var _=F.T;F.T=null;var L=B.p;try{B.p=2,N0(c,h,m,w)}finally{B.p=L,F.T=_}}function u5(c,h,m,w){var _=F.T;F.T=null;var L=B.p;try{B.p=8,N0(c,h,m,w)}finally{B.p=L,F.T=_}}function N0(c,h,m,w){if(Wg){var _=I0(w);if(_===null)w0(c,h,w,qg,m),ZA(c,w);else if(f5(_,c,h,m,w))w.stopPropagation();else if(ZA(c,w),h&4&&-1<d5.indexOf(c)){for(;_!==null;){var L=Pn(_);if(L!==null)switch(L.tag){case 3:if(L=L.stateNode,L.current.memoizedState.isDehydrated){var W=Fe(L.pendingLanes);if(W!==0){var Z=L;for(Z.pendingLanes|=2,Z.entangledLanes|=2;W;){var J=1<<31-at(W);Z.entanglements[1]|=J,W&=~J}Ii(L),(bn&6)===0&&(_g=Le()+500,kd(0))}}break;case 13:Z=ic(L,2),Z!==null&&Ra(Z,L,2),Tg(),L0(L,2)}if(L=I0(w),L===null&&w0(c,h,w,qg,m),L===_)break;_=L}_!==null&&w.stopPropagation()}else w0(c,h,w,null,m)}}function I0(c){return c=Oa(c),$0(c)}var qg=null;function $0(c){if(qg=null,c=sn(c),c!==null){var h=i(c);if(h===null)c=null;else{var m=h.tag;if(m===13){if(c=s(h),c!==null)return c;c=null}else if(m===3){if(h.stateNode.current.memoizedState.isDehydrated)return h.tag===3?h.stateNode.containerInfo:null;c=null}else h!==c&&(c=null)}}return qg=c,null}function GA(c){switch(c){case"beforetoggle":case"cancel":case"click":case"close":case"contextmenu":case"copy":case"cut":case"auxclick":case"dblclick":case"dragend":case"dragstart":case"drop":case"focusin":case"focusout":case"input":case"invalid":case"keydown":case"keypress":case"keyup":case"mousedown":case"mouseup":case"paste":case"pause":case"play":case"pointercancel":case"pointerdown":case"pointerup":case"ratechange":case"reset":case"resize":case"seeked":case"submit":case"toggle":case"touchcancel":case"touchend":case"touchstart":case"volumechange":case"change":case"selectionchange":case"textInput":case"compositionstart":case"compositionend":case"compositionupdate":case"beforeblur":case"afterblur":case"beforeinput":case"blur":case"fullscreenchange":case"focus":case"hashchange":case"popstate":case"select":case"selectstart":return 2;case"drag":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"mousemove":case"mouseout":case"mouseover":case"pointermove":case"pointerout":case"pointerover":case"scroll":case"touchmove":case"wheel":case"mouseenter":case"mouseleave":case"pointerenter":case"pointerleave":return 8;case"message":switch(Ne()){case Ve:return 2;case ze:return 8;case $e:case Be:return 32;case ut:return 268435456;default:return 32}default:return 32}}var F0=!1,Js=null,eo=null,to=null,Xd=new Map,Vd=new Map,no=[],d5="mousedown mouseup touchcancel touchend touchstart auxclick dblclick pointercancel pointerdown pointerup dragend dragstart drop compositionend compositionstart keydown keypress keyup input textInput copy cut paste click change contextmenu reset".split(" ");function ZA(c,h){switch(c){case"focusin":case"focusout":Js=null;break;case"dragenter":case"dragleave":eo=null;break;case"mouseover":case"mouseout":to=null;break;case"pointerover":case"pointerout":Xd.delete(h.pointerId);break;case"gotpointercapture":case"lostpointercapture":Vd.delete(h.pointerId)}}function Ud(c,h,m,w,_,L){return c===null||c.nativeEvent!==L?(c={blockedOn:h,domEventName:m,eventSystemFlags:w,nativeEvent:L,targetContainers:[_]},h!==null&&(h=Pn(h),h!==null&&UA(h)),c):(c.eventSystemFlags|=w,h=c.targetContainers,_!==null&&h.indexOf(_)===-1&&h.push(_),c)}function f5(c,h,m,w,_){switch(h){case"focusin":return Js=Ud(Js,c,h,m,w,_),!0;case"dragenter":return eo=Ud(eo,c,h,m,w,_),!0;case"mouseover":return to=Ud(to,c,h,m,w,_),!0;case"pointerover":var L=_.pointerId;return Xd.set(L,Ud(Xd.get(L)||null,c,h,m,w,_)),!0;case"gotpointercapture":return L=_.pointerId,Vd.set(L,Ud(Vd.get(L)||null,c,h,m,w,_)),!0}return!1}function QA(c){var h=sn(c.target);if(h!==null){var m=i(h);if(m!==null){if(h=m.tag,h===13){if(h=s(m),h!==null){c.blockedOn=h,it(c.priority,function(){if(m.tag===13){var w=Ta();w=Ct(w);var _=ic(m,w);_!==null&&Ra(_,m,w),L0(m,w)}});return}}else if(h===3&&m.stateNode.current.memoizedState.isDehydrated){c.blockedOn=m.tag===3?m.stateNode.containerInfo:null;return}}}c.blockedOn=null}function Xg(c){if(c.blockedOn!==null)return!1;for(var h=c.targetContainers;0<h.length;){var m=I0(c.nativeEvent);if(m===null){m=c.nativeEvent;var w=new m.constructor(m.type,m);Zr=w,m.target.dispatchEvent(w),Zr=null}else return h=Pn(m),h!==null&&UA(h),c.blockedOn=m,!1;h.shift()}return!0}function KA(c,h,m){Xg(c)&&m.delete(h)}function h5(){F0=!1,Js!==null&&Xg(Js)&&(Js=null),eo!==null&&Xg(eo)&&(eo=null),to!==null&&Xg(to)&&(to=null),Xd.forEach(KA),Vd.forEach(KA)}function Vg(c,h){c.blockedOn===h&&(c.blockedOn=null,F0||(F0=!0,n.unstable_scheduleCallback(n.unstable_NormalPriority,h5)))}var Ug=null;function JA(c){Ug!==c&&(Ug=c,n.unstable_scheduleCallback(n.unstable_NormalPriority,function(){Ug===c&&(Ug=null);for(var h=0;h<c.length;h+=3){var m=c[h],w=c[h+1],_=c[h+2];if(typeof w!="function"){if($0(w||m)===null)continue;break}var L=Pn(m);L!==null&&(c.splice(h,3),h-=3,$b(L,{pending:!0,data:_,method:m.method,action:w},w,_))}}))}function Gd(c){function h(J){return Vg(J,c)}Js!==null&&Vg(Js,c),eo!==null&&Vg(eo,c),to!==null&&Vg(to,c),Xd.forEach(h),Vd.forEach(h);for(var m=0;m<no.length;m++){var w=no[m];w.blockedOn===c&&(w.blockedOn=null)}for(;0<no.length&&(m=no[0],m.blockedOn===null);)QA(m),m.blockedOn===null&&no.shift();if(m=(c.ownerDocument||c).$$reactFormReplay,m!=null)for(w=0;w<m.length;w+=3){var _=m[w],L=m[w+1],W=_[jt]||null;if(typeof L=="function")W||JA(m);else if(W){var Z=null;if(L&&L.hasAttribute("formAction")){if(_=L,W=L[jt]||null)Z=W.formAction;else if($0(_)!==null)continue}else Z=W.action;typeof Z=="function"?m[w+1]=Z:(m.splice(w,3),w-=3),JA(m)}}}function k0(c){this._internalRoot=c}Gg.prototype.render=k0.prototype.render=function(c){var h=this._internalRoot;if(h===null)throw Error(r(409));var m=h.current,w=Ta();XA(m,w,c,h,null,null)},Gg.prototype.unmount=k0.prototype.unmount=function(){var c=this._internalRoot;if(c!==null){this._internalRoot=null;var h=c.containerInfo;XA(c.current,2,null,c,null,null),Tg(),h[rn]=null}};function Gg(c){this._internalRoot=c}Gg.prototype.unstable_scheduleHydration=function(c){if(c){var h=ot();c={blockedOn:null,target:c,priority:h};for(var m=0;m<no.length&&h!==0&&h<no[m].priority;m++);no.splice(m,0,c),m===0&&QA(c)}};var eT=e.version;if(eT!=="19.1.1")throw Error(r(527,eT,"19.1.1"));B.findDOMNode=function(c){var h=c._reactInternals;if(h===void 0)throw typeof c.render=="function"?Error(r(188)):(c=Object.keys(c).join(","),Error(r(268,c)));return c=l(h),c=c!==null?u(c):null,c=c===null?null:c.stateNode,c};var g5={bundleType:0,version:"19.1.1",rendererPackageName:"react-dom",currentDispatcherRef:F,reconcilerVersion:"19.1.1"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var Zg=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!Zg.isDisabled&&Zg.supportsFiber)try{Ee=Zg.inject(g5),st=Zg}catch{}}return Qd.createRoot=function(c,h){if(!a(c))throw Error(r(299));var m=!1,w="",_=m_,L=v_,W=b_,Z=null;return h!=null&&(h.unstable_strictMode===!0&&(m=!0),h.identifierPrefix!==void 0&&(w=h.identifierPrefix),h.onUncaughtError!==void 0&&(_=h.onUncaughtError),h.onCaughtError!==void 0&&(L=h.onCaughtError),h.onRecoverableError!==void 0&&(W=h.onRecoverableError),h.unstable_transitionCallbacks!==void 0&&(Z=h.unstable_transitionCallbacks)),h=WA(c,1,!1,null,null,m,w,_,L,W,Z,null),c[rn]=h.current,x0(c),new k0(h)},Qd.hydrateRoot=function(c,h,m){if(!a(c))throw Error(r(299));var w=!1,_="",L=m_,W=v_,Z=b_,J=null,fe=null;return m!=null&&(m.unstable_strictMode===!0&&(w=!0),m.identifierPrefix!==void 0&&(_=m.identifierPrefix),m.onUncaughtError!==void 0&&(L=m.onUncaughtError),m.onCaughtError!==void 0&&(W=m.onCaughtError),m.onRecoverableError!==void 0&&(Z=m.onRecoverableError),m.unstable_transitionCallbacks!==void 0&&(J=m.unstable_transitionCallbacks),m.formState!==void 0&&(fe=m.formState)),h=WA(c,1,!0,h,m??null,w,_,L,W,Z,J,fe),h.context=qA(null),m=h.current,w=Ta(),w=Ct(w),_=Hs(w),_.callback=null,zs(m,_,w),m=w,h.current.lanes=m,vn(h,m),Ii(h),c[rn]=h.current,x0(c),new Gg(h)},Qd.version="19.1.1",Qd}var uT;function C5(){if(uT)return B0.exports;uT=1;function n(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(n)}catch(e){console.error(e)}}return n(),B0.exports=S5(),B0.exports}var nde=C5();/**
 * react-router v7.8.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 dT="popstate";function O5(n={}){function e(a,i){let{pathname:s="/",search:o="",hash:l=""}=Ml(a.location.hash.substring(1));return!s.startsWith("/")&&!s.startsWith(".")&&(s="/"+s),HC("",{pathname:s,search:o,hash:l},i.state&&i.state.usr||null,i.state&&i.state.key||"default")}function t(a,i){let s=a.document.querySelector("base"),o="";if(s&&s.getAttribute("href")){let l=a.location.href,u=l.indexOf("#");o=u===-1?l:l.slice(0,u)}return o+"#"+(typeof i=="string"?i:Gf(i))}function r(a,i){$a(a.pathname.charAt(0)==="/",`relative pathnames are not supported in hash history.push(${JSON.stringify(i)})`)}return M5(e,t,r,n)}function Hn(n,e){if(n===!1||n===null||typeof n>"u")throw new Error(e)}function $a(n,e){if(!n){typeof console<"u"&&console.warn(e);try{throw new Error(e)}catch{}}}function E5(){return Math.random().toString(36).substring(2,10)}function fT(n,e){return{usr:n.state,key:n.key,idx:e}}function HC(n,e,t=null,r){return{pathname:typeof n=="string"?n:n.pathname,search:"",hash:"",...typeof e=="string"?Ml(e):e,state:t,key:e&&e.key||r||E5()}}function Gf({pathname:n="/",search:e="",hash:t=""}){return e&&e!=="?"&&(n+=e.charAt(0)==="?"?e:"?"+e),t&&t!=="#"&&(n+=t.charAt(0)==="#"?t:"#"+t),n}function Ml(n){let e={};if(n){let t=n.indexOf("#");t>=0&&(e.hash=n.substring(t),n=n.substring(0,t));let r=n.indexOf("?");r>=0&&(e.search=n.substring(r),n=n.substring(0,r)),n&&(e.pathname=n)}return e}function M5(n,e,t,r={}){let{window:a=document.defaultView,v5Compat:i=!1}=r,s=a.history,o="POP",l=null,u=d();u==null&&(u=0,s.replaceState({...s.state,idx:u},""));function d(){return(s.state||{idx:null}).idx}function f(){o="POP";let x=d(),S=x==null?null:x-u;u=x,l&&l({action:o,location:y.location,delta:S})}function g(x,S){o="PUSH";let C=HC(y.location,x,S);t&&t(C,x),u=d()+1;let O=fT(C,u),D=y.createHref(C);try{s.pushState(O,"",D)}catch(M){if(M instanceof DOMException&&M.name==="DataCloneError")throw M;a.location.assign(D)}i&&l&&l({action:o,location:y.location,delta:1})}function p(x,S){o="REPLACE";let C=HC(y.location,x,S);t&&t(C,x),u=d();let O=fT(C,u),D=y.createHref(C);s.replaceState(O,"",D),i&&l&&l({action:o,location:y.location,delta:0})}function b(x){return D5(x)}let y={get action(){return o},get location(){return n(a,s)},listen(x){if(l)throw new Error("A history only accepts one active listener");return a.addEventListener(dT,f),l=x,()=>{a.removeEventListener(dT,f),l=null}},createHref(x){return e(a,x)},createURL:b,encodeLocation(x){let S=b(x);return{pathname:S.pathname,search:S.search,hash:S.hash}},push:g,replace:p,go(x){return s.go(x)}};return y}function D5(n,e=!1){let t="http://localhost";typeof window<"u"&&(t=window.location.origin!=="null"?window.location.origin:window.location.href),Hn(t,"No window.location.(origin|href) available to create URL");let r=typeof n=="string"?n:Gf(n);return r=r.replace(/ $/,"%20"),!e&&r.startsWith("//")&&(r=t+r),new URL(r,t)}function Uk(n,e,t="/"){return _5(n,e,t,!1)}function _5(n,e,t,r){let a=typeof e=="string"?Ml(e):e,i=Ms(a.pathname||"/",t);if(i==null)return null;let s=Gk(n);A5(s);let o=null;for(let l=0;o==null&&l<s.length;++l){let u=z5(i);o=k5(s[l],u,r)}return o}function Gk(n,e=[],t=[],r=""){let a=(i,s,o)=>{let l={relativePath:o===void 0?i.path||"":o,caseSensitive:i.caseSensitive===!0,childrenIndex:s,route:i};l.relativePath.startsWith("/")&&(Hn(l.relativePath.startsWith(r),`Absolute route path "${l.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),l.relativePath=l.relativePath.slice(r.length));let u=Ss([r,l.relativePath]),d=t.concat(l);i.children&&i.children.length>0&&(Hn(i.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${u}".`),Gk(i.children,e,d,u)),!(i.path==null&&!i.index)&&e.push({path:u,score:$5(u,i.index),routesMeta:d})};return n.forEach((i,s)=>{if(i.path===""||!i.path?.includes("?"))a(i,s);else for(let o of Zk(i.path))a(i,s,o)}),e}function Zk(n){let e=n.split("/");if(e.length===0)return[];let[t,...r]=e,a=t.endsWith("?"),i=t.replace(/\?$/,"");if(r.length===0)return a?[i,""]:[i];let s=Zk(r.join("/")),o=[];return o.push(...s.map(l=>l===""?i:[i,l].join("/"))),a&&o.push(...s),o.map(l=>n.startsWith("/")&&l===""?"/":l)}function A5(n){n.sort((e,t)=>e.score!==t.score?t.score-e.score:F5(e.routesMeta.map(r=>r.childrenIndex),t.routesMeta.map(r=>r.childrenIndex)))}var T5=/^:[\w-]+$/,R5=3,P5=2,L5=1,N5=10,I5=-2,hT=n=>n==="*";function $5(n,e){let t=n.split("/"),r=t.length;return t.some(hT)&&(r+=I5),e&&(r+=P5),t.filter(a=>!hT(a)).reduce((a,i)=>a+(T5.test(i)?R5:i===""?L5:N5),r)}function F5(n,e){return n.length===e.length&&n.slice(0,-1).every((r,a)=>r===e[a])?n[n.length-1]-e[e.length-1]:0}function k5(n,e,t=!1){let{routesMeta:r}=n,a={},i="/",s=[];for(let o=0;o<r.length;++o){let l=r[o],u=o===r.length-1,d=i==="/"?e:e.slice(i.length)||"/",f=Am({path:l.relativePath,caseSensitive:l.caseSensitive,end:u},d),g=l.route;if(!f&&u&&t&&!r[r.length-1].route.index&&(f=Am({path:l.relativePath,caseSensitive:l.caseSensitive,end:!1},d)),!f)return null;Object.assign(a,f.params),s.push({params:a,pathname:Ss([i,f.pathname]),pathnameBase:W5(Ss([i,f.pathnameBase])),route:g}),f.pathnameBase!=="/"&&(i=Ss([i,f.pathnameBase]))}return s}function Am(n,e){typeof n=="string"&&(n={path:n,caseSensitive:!1,end:!0});let[t,r]=H5(n.path,n.caseSensitive,n.end),a=e.match(t);if(!a)return null;let i=a[0],s=i.replace(/(.)\/+$/,"$1"),o=a.slice(1);return{params:r.reduce((u,{paramName:d,isOptional:f},g)=>{if(d==="*"){let b=o[g]||"";s=i.slice(0,i.length-b.length).replace(/(.)\/+$/,"$1")}const p=o[g];return f&&!p?u[d]=void 0:u[d]=(p||"").replace(/%2F/g,"/"),u},{}),pathname:i,pathnameBase:s,pattern:n}}function H5(n,e=!1,t=!0){$a(n==="*"||!n.endsWith("*")||n.endsWith("/*"),`Route path "${n}" will be treated as if it were "${n.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${n.replace(/\*$/,"/*")}".`);let r=[],a="^"+n.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(s,o,l)=>(r.push({paramName:o,isOptional:l!=null}),l?"/?([^\\/]+)?":"/([^\\/]+)"));return n.endsWith("*")?(r.push({paramName:"*"}),a+=n==="*"||n==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):t?a+="\\/*$":n!==""&&n!=="/"&&(a+="(?:(?=\\/|$))"),[new RegExp(a,e?void 0:"i"),r]}function z5(n){try{return n.split("/").map(e=>decodeURIComponent(e).replace(/\//g,"%2F")).join("/")}catch(e){return $a(!1,`The URL path "${n}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${e}).`),n}}function Ms(n,e){if(e==="/")return n;if(!n.toLowerCase().startsWith(e.toLowerCase()))return null;let t=e.endsWith("/")?e.length-1:e.length,r=n.charAt(t);return r&&r!=="/"?null:n.slice(t)||"/"}function B5(n,e="/"){let{pathname:t,search:r="",hash:a=""}=typeof n=="string"?Ml(n):n;return{pathname:t?t.startsWith("/")?t:Y5(t,e):e,search:q5(r),hash:X5(a)}}function Y5(n,e){let t=e.replace(/\/+$/,"").split("/");return n.split("/").forEach(a=>{a===".."?t.length>1&&t.pop():a!=="."&&t.push(a)}),t.length>1?t.join("/"):"/"}function q0(n,e,t,r){return`Cannot include a '${n}' character in a manually specified \`to.${e}\` field [${JSON.stringify(r)}].  Please separate it out to the \`to.${t}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function j5(n){return n.filter((e,t)=>t===0||e.route.path&&e.route.path.length>0)}function bE(n){let e=j5(n);return e.map((t,r)=>r===e.length-1?t.pathname:t.pathnameBase)}function yE(n,e,t,r=!1){let a;typeof n=="string"?a=Ml(n):(a={...n},Hn(!a.pathname||!a.pathname.includes("?"),q0("?","pathname","search",a)),Hn(!a.pathname||!a.pathname.includes("#"),q0("#","pathname","hash",a)),Hn(!a.search||!a.search.includes("#"),q0("#","search","hash",a)));let i=n===""||a.pathname==="",s=i?"/":a.pathname,o;if(s==null)o=t;else{let f=e.length-1;if(!r&&s.startsWith("..")){let g=s.split("/");for(;g[0]==="..";)g.shift(),f-=1;a.pathname=g.join("/")}o=f>=0?e[f]:"/"}let l=B5(a,o),u=s&&s!=="/"&&s.endsWith("/"),d=(i||s===".")&&t.endsWith("/");return!l.pathname.endsWith("/")&&(u||d)&&(l.pathname+="/"),l}var Ss=n=>n.join("/").replace(/\/\/+/g,"/"),W5=n=>n.replace(/\/+$/,"").replace(/^\/*/,"/"),q5=n=>!n||n==="?"?"":n.startsWith("?")?n:"?"+n,X5=n=>!n||n==="#"?"":n.startsWith("#")?n:"#"+n;function V5(n){return n!=null&&typeof n.status=="number"&&typeof n.statusText=="string"&&typeof n.internal=="boolean"&&"data"in n}var Qk=["POST","PUT","PATCH","DELETE"];new Set(Qk);var U5=["GET",...Qk];new Set(U5);var hu=E.createContext(null);hu.displayName="DataRouter";var iv=E.createContext(null);iv.displayName="DataRouterState";E.createContext(!1);var Kk=E.createContext({isTransitioning:!1});Kk.displayName="ViewTransition";var G5=E.createContext(new Map);G5.displayName="Fetchers";var Z5=E.createContext(null);Z5.displayName="Await";var Ci=E.createContext(null);Ci.displayName="Navigation";var wh=E.createContext(null);wh.displayName="Location";var Ui=E.createContext({outlet:null,matches:[],isDataRoute:!1});Ui.displayName="Route";var xE=E.createContext(null);xE.displayName="RouteError";function Q5(n,{relative:e}={}){Hn(gu(),"useHref() may be used only in the context of a <Router> component.");let{basename:t,navigator:r}=E.useContext(Ci),{hash:a,pathname:i,search:s}=Sh(n,{relative:e}),o=i;return t!=="/"&&(o=i==="/"?t:Ss([t,i])),r.createHref({pathname:o,search:s,hash:a})}function gu(){return E.useContext(wh)!=null}function As(){return Hn(gu(),"useLocation() may be used only in the context of a <Router> component."),E.useContext(wh).location}var Jk="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function eH(n){E.useContext(Ci).static||E.useLayoutEffect(n)}function wE(){let{isDataRoute:n}=E.useContext(Ui);return n?u6():K5()}function K5(){Hn(gu(),"useNavigate() may be used only in the context of a <Router> component.");let n=E.useContext(hu),{basename:e,navigator:t}=E.useContext(Ci),{matches:r}=E.useContext(Ui),{pathname:a}=As(),i=JSON.stringify(bE(r)),s=E.useRef(!1);return eH(()=>{s.current=!0}),E.useCallback((l,u={})=>{if($a(s.current,Jk),!s.current)return;if(typeof l=="number"){t.go(l);return}let d=yE(l,JSON.parse(i),a,u.relative==="path");n==null&&e!=="/"&&(d.pathname=d.pathname==="/"?e:Ss([e,d.pathname])),(u.replace?t.replace:t.push)(d,u.state,u)},[e,t,i,a,n])}E.createContext(null);function Sh(n,{relative:e}={}){let{matches:t}=E.useContext(Ui),{pathname:r}=As(),a=JSON.stringify(bE(t));return E.useMemo(()=>yE(n,JSON.parse(a),r,e==="path"),[n,a,r,e])}function J5(n,e){return tH(n,e)}function tH(n,e,t,r){Hn(gu(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:a}=E.useContext(Ci),{matches:i}=E.useContext(Ui),s=i[i.length-1],o=s?s.params:{},l=s?s.pathname:"/",u=s?s.pathnameBase:"/",d=s&&s.route;{let S=d&&d.path||"";nH(l,!d||S.endsWith("*")||S.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${l}" (under <Route path="${S}">) but the parent route path has no trailing "*". This means if you navigate deeper, the parent won't match anymore and therefore the child routes will never render.

Please change the parent <Route path="${S}"> to <Route path="${S==="/"?"*":`${S}/*`}">.`)}let f=As(),g;if(e){let S=typeof e=="string"?Ml(e):e;Hn(u==="/"||S.pathname?.startsWith(u),`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 "${u}" but pathname "${S.pathname}" was given in the \`location\` prop.`),g=S}else g=f;let p=g.pathname||"/",b=p;if(u!=="/"){let S=u.replace(/^\//,"").split("/");b="/"+p.replace(/^\//,"").split("/").slice(S.length).join("/")}let y=Uk(n,{pathname:b});$a(d||y!=null,`No routes matched location "${g.pathname}${g.search}${g.hash}" `),$a(y==null||y[y.length-1].route.element!==void 0||y[y.length-1].route.Component!==void 0||y[y.length-1].route.lazy!==void 0,`Matched leaf route at location "${g.pathname}${g.search}${g.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 x=a6(y&&y.map(S=>Object.assign({},S,{params:Object.assign({},o,S.params),pathname:Ss([u,a.encodeLocation?a.encodeLocation(S.pathname).pathname:S.pathname]),pathnameBase:S.pathnameBase==="/"?u:Ss([u,a.encodeLocation?a.encodeLocation(S.pathnameBase).pathname:S.pathnameBase])})),i,t,r);return e&&x?E.createElement(wh.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",...g},navigationType:"POP"}},x):x}function e6(){let n=c6(),e=V5(n)?`${n.status} ${n.statusText}`:n instanceof Error?n.message:JSON.stringify(n),t=n instanceof Error?n.stack:null,r="rgba(200,200,200, 0.5)",a={padding:"0.5rem",backgroundColor:r},i={padding:"2px 4px",backgroundColor:r},s=null;return console.error("Error handled by React Router default ErrorBoundary:",n),s=E.createElement(E.Fragment,null,E.createElement("p",null,"💿 Hey developer 👋"),E.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",E.createElement("code",{style:i},"ErrorBoundary")," or"," ",E.createElement("code",{style:i},"errorElement")," prop on your route.")),E.createElement(E.Fragment,null,E.createElement("h2",null,"Unexpected Application Error!"),E.createElement("h3",{style:{fontStyle:"italic"}},e),t?E.createElement("pre",{style:a},t):null,s)}var t6=E.createElement(e6,null),n6=class extends E.Component{constructor(n){super(n),this.state={location:n.location,revalidation:n.revalidation,error:n.error}}static getDerivedStateFromError(n){return{error:n}}static getDerivedStateFromProps(n,e){return e.location!==n.location||e.revalidation!=="idle"&&n.revalidation==="idle"?{error:n.error,location:n.location,revalidation:n.revalidation}:{error:n.error!==void 0?n.error:e.error,location:e.location,revalidation:n.revalidation||e.revalidation}}componentDidCatch(n,e){console.error("React Router caught the following error during render",n,e)}render(){return this.state.error!==void 0?E.createElement(Ui.Provider,{value:this.props.routeContext},E.createElement(xE.Provider,{value:this.state.error,children:this.props.component})):this.props.children}};function r6({routeContext:n,match:e,children:t}){let r=E.useContext(hu);return r&&r.static&&r.staticContext&&(e.route.errorElement||e.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=e.route.id),E.createElement(Ui.Provider,{value:n},t)}function a6(n,e=[],t=null,r=null){if(n==null){if(!t)return null;if(t.errors)n=t.matches;else if(e.length===0&&!t.initialized&&t.matches.length>0)n=t.matches;else return null}let a=n,i=t?.errors;if(i!=null){let l=a.findIndex(u=>u.route.id&&i?.[u.route.id]!==void 0);Hn(l>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(i).join(",")}`),a=a.slice(0,Math.min(a.length,l+1))}let s=!1,o=-1;if(t)for(let l=0;l<a.length;l++){let u=a[l];if((u.route.HydrateFallback||u.route.hydrateFallbackElement)&&(o=l),u.route.id){let{loaderData:d,errors:f}=t,g=u.route.loader&&!d.hasOwnProperty(u.route.id)&&(!f||f[u.route.id]===void 0);if(u.route.lazy||g){s=!0,o>=0?a=a.slice(0,o+1):a=[a[0]];break}}}return a.reduceRight((l,u,d)=>{let f,g=!1,p=null,b=null;t&&(f=i&&u.route.id?i[u.route.id]:void 0,p=u.route.errorElement||t6,s&&(o<0&&d===0?(nH("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),g=!0,b=null):o===d&&(g=!0,b=u.route.hydrateFallbackElement||null)));let y=e.concat(a.slice(0,d+1)),x=()=>{let S;return f?S=p:g?S=b:u.route.Component?S=E.createElement(u.route.Component,null):u.route.element?S=u.route.element:S=l,E.createElement(r6,{match:u,routeContext:{outlet:l,matches:y,isDataRoute:t!=null},children:S})};return t&&(u.route.ErrorBoundary||u.route.errorElement||d===0)?E.createElement(n6,{location:t.location,revalidation:t.revalidation,component:p,error:f,children:x(),routeContext:{outlet:null,matches:y,isDataRoute:!0}}):x()},null)}function SE(n){return`${n} must be used within a data router.  See https://reactrouter.com/en/main/routers/picking-a-router.`}function i6(n){let e=E.useContext(hu);return Hn(e,SE(n)),e}function s6(n){let e=E.useContext(iv);return Hn(e,SE(n)),e}function o6(n){let e=E.useContext(Ui);return Hn(e,SE(n)),e}function CE(n){let e=o6(n),t=e.matches[e.matches.length-1];return Hn(t.route.id,`${n} can only be used on routes that contain a unique "id"`),t.route.id}function l6(){return CE("useRouteId")}function c6(){let n=E.useContext(xE),e=s6("useRouteError"),t=CE("useRouteError");return n!==void 0?n:e.errors?.[t]}function u6(){let{router:n}=i6("useNavigate"),e=CE("useNavigate"),t=E.useRef(!1);return eH(()=>{t.current=!0}),E.useCallback(async(a,i={})=>{$a(t.current,Jk),t.current&&(typeof a=="number"?n.navigate(a):await n.navigate(a,{fromRouteId:e,...i}))},[n,e])}var gT={};function nH(n,e,t){!e&&!gT[n]&&(gT[n]=!0,$a(!1,t))}E.memo(d6);function d6({routes:n,future:e,state:t}){return tH(n,void 0,t,e)}function rde({to:n,replace:e,state:t,relative:r}){Hn(gu(),"<Navigate> may be used only in the context of a <Router> component.");let{static:a}=E.useContext(Ci);$a(!a,"<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}=E.useContext(Ui),{pathname:s}=As(),o=wE(),l=yE(n,bE(i),s,r==="path"),u=JSON.stringify(l);return E.useEffect(()=>{o(JSON.parse(u),{replace:e,state:t,relative:r})},[o,u,r,e,t]),null}function f6(n){Hn(!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 h6({basename:n="/",children:e=null,location:t,navigationType:r="POP",navigator:a,static:i=!1}){Hn(!gu(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let s=n.replace(/^\/*/,"/"),o=E.useMemo(()=>({basename:s,navigator:a,static:i,future:{}}),[s,a,i]);typeof t=="string"&&(t=Ml(t));let{pathname:l="/",search:u="",hash:d="",state:f=null,key:g="default"}=t,p=E.useMemo(()=>{let b=Ms(l,s);return b==null?null:{location:{pathname:b,search:u,hash:d,state:f,key:g},navigationType:r}},[s,l,u,d,f,g,r]);return $a(p!=null,`<Router basename="${s}"> is not able to match the URL "${l}${u}${d}" because it does not start with the basename, so the <Router> won't render anything.`),p==null?null:E.createElement(Ci.Provider,{value:o},E.createElement(wh.Provider,{children:e,value:p}))}function ade({children:n,location:e}){return J5(zC(n),e)}function zC(n,e=[]){let t=[];return E.Children.forEach(n,(r,a)=>{if(!E.isValidElement(r))return;let i=[...e,a];if(r.type===E.Fragment){t.push.apply(t,zC(r.props.children,i));return}Hn(r.type===f6,`[${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>`),Hn(!r.props.index||!r.props.children,"An index route cannot have child routes.");let s={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,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&&(s.children=zC(r.props.children,i)),t.push(s)}),t}var sm="get",om="application/x-www-form-urlencoded";function sv(n){return n!=null&&typeof n.tagName=="string"}function g6(n){return sv(n)&&n.tagName.toLowerCase()==="button"}function p6(n){return sv(n)&&n.tagName.toLowerCase()==="form"}function m6(n){return sv(n)&&n.tagName.toLowerCase()==="input"}function v6(n){return!!(n.metaKey||n.altKey||n.ctrlKey||n.shiftKey)}function b6(n,e){return n.button===0&&(!e||e==="_self")&&!v6(n)}function BC(n=""){return new URLSearchParams(typeof n=="string"||Array.isArray(n)||n instanceof URLSearchParams?n:Object.keys(n).reduce((e,t)=>{let r=n[t];return e.concat(Array.isArray(r)?r.map(a=>[t,a]):[[t,r]])},[]))}function y6(n,e){let t=BC(n);return e&&e.forEach((r,a)=>{t.has(a)||e.getAll(a).forEach(i=>{t.append(a,i)})}),t}var Qg=null;function x6(){if(Qg===null)try{new FormData(document.createElement("form"),0),Qg=!1}catch{Qg=!0}return Qg}var w6=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function X0(n){return n!=null&&!w6.has(n)?($a(!1,`"${n}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${om}"`),null):n}function S6(n,e){let t,r,a,i,s;if(p6(n)){let o=n.getAttribute("action");r=o?Ms(o,e):null,t=n.getAttribute("method")||sm,a=X0(n.getAttribute("enctype"))||om,i=new FormData(n)}else if(g6(n)||m6(n)&&(n.type==="submit"||n.type==="image")){let o=n.form;if(o==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let l=n.getAttribute("formaction")||o.getAttribute("action");if(r=l?Ms(l,e):null,t=n.getAttribute("formmethod")||o.getAttribute("method")||sm,a=X0(n.getAttribute("formenctype"))||X0(o.getAttribute("enctype"))||om,i=new FormData(o,n),!x6()){let{name:u,type:d,value:f}=n;if(d==="image"){let g=u?`${u}.`:"";i.append(`${g}x`,"0"),i.append(`${g}y`,"0")}else u&&i.append(u,f)}}else{if(sv(n))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');t=sm,r=null,a=om,s=n}return i&&a==="text/plain"&&(s=i,i=void 0),{action:r,method:t.toLowerCase(),encType:a,formData:i,body:s}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function OE(n,e){if(n===!1||n===null||typeof n>"u")throw new Error(e)}function C6(n,e,t){let r=typeof n=="string"?new URL(n,typeof window>"u"?"server://singlefetch/":window.location.origin):n;return r.pathname==="/"?r.pathname=`_root.${t}`:e&&Ms(r.pathname,e)==="/"?r.pathname=`${e.replace(/\/$/,"")}/_root.${t}`:r.pathname=`${r.pathname.replace(/\/$/,"")}.${t}`,r}async function O6(n,e){if(n.id in e)return e[n.id];try{let t=await import(n.module);return e[n.id]=t,t}catch(t){return console.error(`Error loading route module \`${n.module}\`, reloading page...`),console.error(t),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function E6(n){return n==null?!1:n.href==null?n.rel==="preload"&&typeof n.imageSrcSet=="string"&&typeof n.imageSizes=="string":typeof n.rel=="string"&&typeof n.href=="string"}async function M6(n,e,t){let r=await Promise.all(n.map(async a=>{let i=e.routes[a.route.id];if(i){let s=await O6(i,t);return s.links?s.links():[]}return[]}));return T6(r.flat(1).filter(E6).filter(a=>a.rel==="stylesheet"||a.rel==="preload").map(a=>a.rel==="stylesheet"?{...a,rel:"prefetch",as:"style"}:{...a,rel:"prefetch"}))}function pT(n,e,t,r,a,i){let s=(l,u)=>t[u]?l.route.id!==t[u].route.id:!0,o=(l,u)=>t[u].pathname!==l.pathname||t[u].route.path?.endsWith("*")&&t[u].params["*"]!==l.params["*"];return i==="assets"?e.filter((l,u)=>s(l,u)||o(l,u)):i==="data"?e.filter((l,u)=>{let d=r.routes[l.route.id];if(!d||!d.hasLoader)return!1;if(s(l,u)||o(l,u))return!0;if(l.route.shouldRevalidate){let f=l.route.shouldRevalidate({currentUrl:new URL(a.pathname+a.search+a.hash,window.origin),currentParams:t[0]?.params||{},nextUrl:new URL(n,window.origin),nextParams:l.params,defaultShouldRevalidate:!0});if(typeof f=="boolean")return f}return!0}):[]}function D6(n,e,{includeHydrateFallback:t}={}){return _6(n.map(r=>{let a=e.routes[r.route.id];if(!a)return[];let i=[a.module];return a.clientActionModule&&(i=i.concat(a.clientActionModule)),a.clientLoaderModule&&(i=i.concat(a.clientLoaderModule)),t&&a.hydrateFallbackModule&&(i=i.concat(a.hydrateFallbackModule)),a.imports&&(i=i.concat(a.imports)),i}).flat(1))}function _6(n){return[...new Set(n)]}function A6(n){let e={},t=Object.keys(n).sort();for(let r of t)e[r]=n[r];return e}function T6(n,e){let t=new Set;return new Set(e),n.reduce((r,a)=>{let i=JSON.stringify(A6(a));return t.has(i)||(t.add(i),r.push({key:i,link:a})),r},[])}function rH(){let n=E.useContext(hu);return OE(n,"You must render this element inside a <DataRouterContext.Provider> element"),n}function R6(){let n=E.useContext(iv);return OE(n,"You must render this element inside a <DataRouterStateContext.Provider> element"),n}var EE=E.createContext(void 0);EE.displayName="FrameworkContext";function aH(){let n=E.useContext(EE);return OE(n,"You must render this element inside a <HydratedRouter> element"),n}function P6(n,e){let t=E.useContext(EE),[r,a]=E.useState(!1),[i,s]=E.useState(!1),{onFocus:o,onBlur:l,onMouseEnter:u,onMouseLeave:d,onTouchStart:f}=e,g=E.useRef(null);E.useEffect(()=>{if(n==="render"&&s(!0),n==="viewport"){let y=S=>{S.forEach(C=>{s(C.isIntersecting)})},x=new IntersectionObserver(y,{threshold:.5});return g.current&&x.observe(g.current),()=>{x.disconnect()}}},[n]),E.useEffect(()=>{if(r){let y=setTimeout(()=>{s(!0)},100);return()=>{clearTimeout(y)}}},[r]);let p=()=>{a(!0)},b=()=>{a(!1),s(!1)};return t?n!=="intent"?[i,g,{}]:[i,g,{onFocus:Kd(o,p),onBlur:Kd(l,b),onMouseEnter:Kd(u,p),onMouseLeave:Kd(d,b),onTouchStart:Kd(f,p)}]:[!1,g,{}]}function Kd(n,e){return t=>{n&&n(t),t.defaultPrevented||e(t)}}function L6({page:n,...e}){let{router:t}=rH(),r=E.useMemo(()=>Uk(t.routes,n,t.basename),[t.routes,n,t.basename]);return r?E.createElement(I6,{page:n,matches:r,...e}):null}function N6(n){let{manifest:e,routeModules:t}=aH(),[r,a]=E.useState([]);return E.useEffect(()=>{let i=!1;return M6(n,e,t).then(s=>{i||a(s)}),()=>{i=!0}},[n,e,t]),r}function I6({page:n,matches:e,...t}){let r=As(),{manifest:a,routeModules:i}=aH(),{basename:s}=rH(),{loaderData:o,matches:l}=R6(),u=E.useMemo(()=>pT(n,e,l,a,r,"data"),[n,e,l,a,r]),d=E.useMemo(()=>pT(n,e,l,a,r,"assets"),[n,e,l,a,r]),f=E.useMemo(()=>{if(n===r.pathname+r.search+r.hash)return[];let b=new Set,y=!1;if(e.forEach(S=>{let C=a.routes[S.route.id];!C||!C.hasLoader||(!u.some(O=>O.route.id===S.route.id)&&S.route.id in o&&i[S.route.id]?.shouldRevalidate||C.hasClientLoader?y=!0:b.add(S.route.id))}),b.size===0)return[];let x=C6(n,s,"data");return y&&b.size>0&&x.searchParams.set("_routes",e.filter(S=>b.has(S.route.id)).map(S=>S.route.id).join(",")),[x.pathname+x.search]},[s,o,r,a,u,e,n,i]),g=E.useMemo(()=>D6(d,a),[d,a]),p=N6(d);return E.createElement(E.Fragment,null,f.map(b=>E.createElement("link",{key:b,rel:"prefetch",as:"fetch",href:b,...t})),g.map(b=>E.createElement("link",{key:b,rel:"modulepreload",href:b,...t})),p.map(({key:b,link:y})=>E.createElement("link",{key:b,nonce:t.nonce,...y})))}function $6(...n){return e=>{n.forEach(t=>{typeof t=="function"?t(e):t!=null&&(t.current=e)})}}var iH=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{iH&&(window.__reactRouterVersion="7.8.0")}catch{}function ide({basename:n,children:e,window:t}){let r=E.useRef();r.current==null&&(r.current=O5({window:t,v5Compat:!0}));let a=r.current,[i,s]=E.useState({action:a.action,location:a.location}),o=E.useCallback(l=>{E.startTransition(()=>s(l))},[s]);return E.useLayoutEffect(()=>a.listen(o),[a,o]),E.createElement(h6,{basename:n,children:e,location:i.location,navigationType:i.action,navigator:a})}var sH=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,oH=E.forwardRef(function({onClick:e,discover:t="render",prefetch:r="none",relative:a,reloadDocument:i,replace:s,state:o,target:l,to:u,preventScrollReset:d,viewTransition:f,...g},p){let{basename:b}=E.useContext(Ci),y=typeof u=="string"&&sH.test(u),x,S=!1;if(typeof u=="string"&&y&&(x=u,iH))try{let R=new URL(window.location.href),N=u.startsWith("//")?new URL(R.protocol+u):new URL(u),I=Ms(N.pathname,b);N.origin===R.origin&&I!=null?u=I+N.search+N.hash:S=!0}catch{$a(!1,`<Link to="${u}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}let C=Q5(u,{relative:a}),[O,D,M]=P6(r,g),A=z6(u,{replace:s,state:o,target:l,preventScrollReset:d,relative:a,viewTransition:f});function T(R){e&&e(R),R.defaultPrevented||A(R)}let P=E.createElement("a",{...g,...M,href:x||C,onClick:S||i?e:T,ref:$6(p,D),target:l,"data-discover":!y&&t==="render"?"true":void 0});return O&&!y?E.createElement(E.Fragment,null,P,E.createElement(L6,{page:C})):P});oH.displayName="Link";var F6=E.forwardRef(function({"aria-current":e="page",caseSensitive:t=!1,className:r="",end:a=!1,style:i,to:s,viewTransition:o,children:l,...u},d){let f=Sh(s,{relative:u.relative}),g=As(),p=E.useContext(iv),{navigator:b,basename:y}=E.useContext(Ci),x=p!=null&&q6(f)&&o===!0,S=b.encodeLocation?b.encodeLocation(f).pathname:f.pathname,C=g.pathname,O=p&&p.navigation&&p.navigation.location?p.navigation.location.pathname:null;t||(C=C.toLowerCase(),O=O?O.toLowerCase():null,S=S.toLowerCase()),O&&y&&(O=Ms(O,y)||O);const D=S!=="/"&&S.endsWith("/")?S.length-1:S.length;let M=C===S||!a&&C.startsWith(S)&&C.charAt(D)==="/",A=O!=null&&(O===S||!a&&O.startsWith(S)&&O.charAt(S.length)==="/"),T={isActive:M,isPending:A,isTransitioning:x},P=M?e:void 0,R;typeof r=="function"?R=r(T):R=[r,M?"active":null,A?"pending":null,x?"transitioning":null].filter(Boolean).join(" ");let N=typeof i=="function"?i(T):i;return E.createElement(oH,{...u,"aria-current":P,className:R,ref:d,style:N,to:s,viewTransition:o},typeof l=="function"?l(T):l)});F6.displayName="NavLink";var k6=E.forwardRef(({discover:n="render",fetcherKey:e,navigate:t,reloadDocument:r,replace:a,state:i,method:s=sm,action:o,onSubmit:l,relative:u,preventScrollReset:d,viewTransition:f,...g},p)=>{let b=j6(),y=W6(o,{relative:u}),x=s.toLowerCase()==="get"?"get":"post",S=typeof o=="string"&&sH.test(o),C=O=>{if(l&&l(O),O.defaultPrevented)return;O.preventDefault();let D=O.nativeEvent.submitter,M=D?.getAttribute("formmethod")||s;b(D||O.currentTarget,{fetcherKey:e,method:M,navigate:t,replace:a,state:i,relative:u,preventScrollReset:d,viewTransition:f})};return E.createElement("form",{ref:p,method:x,action:y,onSubmit:r?l:C,...g,"data-discover":!S&&n==="render"?"true":void 0})});k6.displayName="Form";function H6(n){return`${n} must be used within a data router.  See https://reactrouter.com/en/main/routers/picking-a-router.`}function lH(n){let e=E.useContext(hu);return Hn(e,H6(n)),e}function z6(n,{target:e,replace:t,state:r,preventScrollReset:a,relative:i,viewTransition:s}={}){let o=wE(),l=As(),u=Sh(n,{relative:i});return E.useCallback(d=>{if(b6(d,e)){d.preventDefault();let f=t!==void 0?t:Gf(l)===Gf(u);o(n,{replace:f,state:r,preventScrollReset:a,relative:i,viewTransition:s})}},[l,o,u,t,r,e,n,a,i,s])}function sde(n){$a(typeof URLSearchParams<"u","You cannot use the `useSearchParams` hook in a browser that does not support the URLSearchParams API. If you need to support Internet Explorer 11, we recommend you load a polyfill such as https://github.com/ungap/url-search-params.");let e=E.useRef(BC(n)),t=E.useRef(!1),r=As(),a=E.useMemo(()=>y6(r.search,t.current?null:e.current),[r.search]),i=wE(),s=E.useCallback((o,l)=>{const u=BC(typeof o=="function"?o(new URLSearchParams(a)):o);t.current=!0,i("?"+u,l)},[i,a]);return[a,s]}var B6=0,Y6=()=>`__${String(++B6)}__`;function j6(){let{router:n}=lH("useSubmit"),{basename:e}=E.useContext(Ci),t=l6();return E.useCallback(async(r,a={})=>{let{action:i,method:s,encType:o,formData:l,body:u}=S6(r,e);if(a.navigate===!1){let d=a.fetcherKey||Y6();await n.fetch(d,t,a.action||i,{preventScrollReset:a.preventScrollReset,formData:l,body:u,formMethod:a.method||s,formEncType:a.encType||o,flushSync:a.flushSync})}else await n.navigate(a.action||i,{preventScrollReset:a.preventScrollReset,formData:l,body:u,formMethod:a.method||s,formEncType:a.encType||o,replace:a.replace,state:a.state,fromRouteId:t,flushSync:a.flushSync,viewTransition:a.viewTransition})},[n,e,t])}function W6(n,{relative:e}={}){let{basename:t}=E.useContext(Ci),r=E.useContext(Ui);Hn(r,"useFormAction must be used inside a RouteContext");let[a]=r.matches.slice(-1),i={...Sh(n||".",{relative:e})},s=As();if(n==null){i.search=s.search;let o=new URLSearchParams(i.search),l=o.getAll("index");if(l.some(d=>d==="")){o.delete("index"),l.filter(f=>f).forEach(f=>o.append("index",f));let d=o.toString();i.search=d?`?${d}`:""}}return(!n||n===".")&&a.route.index&&(i.search=i.search?i.search.replace(/^\?/,"?index&"):"?index"),t!=="/"&&(i.pathname=i.pathname==="/"?t:Ss([t,i.pathname])),Gf(i)}function q6(n,{relative:e}={}){let t=E.useContext(Kk);Hn(t!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`.  Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=lH("useViewTransitionState"),a=Sh(n,{relative:e});if(!t.isTransitioning)return!1;let i=Ms(t.currentLocation.pathname,r)||t.currentLocation.pathname,s=Ms(t.nextLocation.pathname,r)||t.nextLocation.pathname;return Am(a.pathname,s)!=null||Am(a.pathname,i)!=null}var Cs=Vk();const ba=qr(Cs),X6=qk({__proto__:null,default:ba},[Cs]);var V0={exports:{}};/*!
	Copyright (c) 2018 Jed Watson.
	Licensed under the MIT License (MIT), see
	http://jedwatson.github.io/classnames
*/var mT;function wo(){return mT||(mT=1,(function(n){(function(){var e={}.hasOwnProperty;function t(){for(var i="",s=0;s<arguments.length;s++){var o=arguments[s];o&&(i=a(i,r(o)))}return i}function r(i){if(typeof i=="string"||typeof i=="number")return i;if(typeof i!="object")return"";if(Array.isArray(i))return t.apply(null,i);if(i.toString!==Object.prototype.toString&&!i.toString.toString().includes("[native code]"))return i.toString();var s="";for(var o in i)e.call(i,o)&&i[o]&&(s=a(s,o));return s}function a(i,s){return s?i?i+" "+s:i+s:i}n.exports?(t.default=t,n.exports=t):window.classNames=t})()})(V0)),V0.exports}var V6=wo();const Te=qr(V6);var U0={exports:{}},G0,vT;function U6(){if(vT)return G0;vT=1;var n="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return G0=n,G0}var Z0,bT;function G6(){if(bT)return Z0;bT=1;var n=U6();function e(){}function t(){}return t.resetWarningCache=e,Z0=function(){function r(s,o,l,u,d,f){if(f!==n){var g=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw g.name="Invariant Violation",g}}r.isRequired=r;function a(){return r}var i={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:a,element:r,elementType:r,instanceOf:a,node:r,objectOf:a,oneOf:a,oneOfType:a,shape:a,exact:a,checkPropTypes:t,resetWarningCache:e};return i.PropTypes=i,i},Z0}var yT;function Gi(){return yT||(yT=1,U0.exports=G6()()),U0.exports}var Z6=Gi();const Ae=qr(Z6),Q6={type:Ae.string,tooltip:Ae.bool,as:Ae.elementType},ov=E.forwardRef(({as:n="div",className:e,type:t="valid",tooltip:r=!1,...a},i)=>Re.jsx(n,{...a,ref:i,className:Te(e,`${t}-${r?"tooltip":"feedback"}`)}));ov.displayName="Feedback";ov.propTypes=Q6;const Ds=E.createContext({}),K6=["xxl","xl","lg","md","sm","xs"],J6="xs",Ch=E.createContext({prefixes:{},breakpoints:K6,minBreakpoint:J6}),{Consumer:ode,Provider:lde}=Ch;function Yt(n,e){const{prefixes:t}=E.useContext(Ch);return n||t[e]||e}function cH(){const{breakpoints:n}=E.useContext(Ch);return n}function uH(){const{minBreakpoint:n}=E.useContext(Ch);return n}function lv(){const{dir:n}=E.useContext(Ch);return n==="rtl"}const ME=E.forwardRef(({id:n,bsPrefix:e,className:t,type:r="checkbox",isValid:a=!1,isInvalid:i=!1,as:s="input",...o},l)=>{const{controlId:u}=E.useContext(Ds);return e=Yt(e,"form-check-input"),Re.jsx(s,{...o,ref:l,type:r,id:n||u,className:Te(t,e,a&&"is-valid",i&&"is-invalid")})});ME.displayName="FormCheckInput";const Tm=E.forwardRef(({bsPrefix:n,className:e,htmlFor:t,...r},a)=>{const{controlId:i}=E.useContext(Ds);return n=Yt(n,"form-check-label"),Re.jsx("label",{...r,ref:a,htmlFor:t||i,className:Te(e,n)})});Tm.displayName="FormCheckLabel";function eq(n,e){let t=0;return E.Children.map(n,r=>E.isValidElement(r)?e(r,t++):r)}function tq(n,e){return E.Children.toArray(n).some(t=>E.isValidElement(t)&&t.type===e)}const dH=E.forwardRef(({id:n,bsPrefix:e,bsSwitchPrefix:t,inline:r=!1,reverse:a=!1,disabled:i=!1,isValid:s=!1,isInvalid:o=!1,feedbackTooltip:l=!1,feedback:u,feedbackType:d,className:f,style:g,title:p="",type:b="checkbox",label:y,children:x,as:S="input",...C},O)=>{e=Yt(e,"form-check"),t=Yt(t,"form-switch");const{controlId:D}=E.useContext(Ds),M=E.useMemo(()=>({controlId:n||D}),[D,n]),A=!x&&y!=null&&y!==!1||tq(x,Tm),T=Re.jsx(ME,{...C,type:b==="switch"?"checkbox":b,ref:O,isValid:s,isInvalid:o,disabled:i,as:S});return Re.jsx(Ds.Provider,{value:M,children:Re.jsx("div",{style:g,className:Te(f,A&&e,r&&`${e}-inline`,a&&`${e}-reverse`,b==="switch"&&t),children:x||Re.jsxs(Re.Fragment,{children:[T,A&&Re.jsx(Tm,{title:p,children:y}),u&&Re.jsx(ov,{type:d,tooltip:l,children:u})]})})})});dH.displayName="FormCheck";const Rm=Object.assign(dH,{Input:ME,Label:Tm});var Q0,xT;function nq(){if(xT)return Q0;xT=1;var n=function(){};return Q0=n,Q0}var rq=nq();const aq=qr(rq),fH=E.forwardRef(({bsPrefix:n,type:e,size:t,htmlSize:r,id:a,className:i,isValid:s=!1,isInvalid:o=!1,plaintext:l,readOnly:u,as:d="input",...f},g)=>{const{controlId:p}=E.useContext(Ds);return n=Yt(n,"form-control"),Re.jsx(d,{...f,type:e,size:r,ref:g,readOnly:u,id:a||p,className:Te(i,l?`${n}-plaintext`:n,t&&`${n}-${t}`,e==="color"&&`${n}-color`,s&&"is-valid",o&&"is-invalid")})});fH.displayName="FormControl";const iq=Object.assign(fH,{Feedback:ov}),hH=E.forwardRef(({className:n,bsPrefix:e,as:t="div",...r},a)=>(e=Yt(e,"form-floating"),Re.jsx(t,{ref:a,className:Te(n,e),...r})));hH.displayName="FormFloating";const DE=E.forwardRef(({controlId:n,as:e="div",...t},r)=>{const a=E.useMemo(()=>({controlId:n}),[n]);return Re.jsx(Ds.Provider,{value:a,children:Re.jsx(e,{...t,ref:r})})});DE.displayName="FormGroup";function sq({as:n,bsPrefix:e,className:t,...r}){e=Yt(e,"col");const a=cH(),i=uH(),s=[],o=[];return a.forEach(l=>{const u=r[l];delete r[l];let d,f,g;typeof u=="object"&&u!=null?{span:d,offset:f,order:g}=u:d=u;const p=l!==i?`-${l}`:"";d&&s.push(d===!0?`${e}${p}`:`${e}${p}-${d}`),g!=null&&o.push(`order${p}-${g}`),f!=null&&o.push(`offset${p}-${f}`)}),[{...r,className:Te(t,...s,...o)},{as:n,bsPrefix:e,spans:s}]}const gH=E.forwardRef((n,e)=>{const[{className:t,...r},{as:a="div",bsPrefix:i,spans:s}]=sq(n);return Re.jsx(a,{...r,ref:e,className:Te(t,!s.length&&i)})});gH.displayName="Col";const pH=E.forwardRef(({as:n="label",bsPrefix:e,column:t=!1,visuallyHidden:r=!1,className:a,htmlFor:i,...s},o)=>{const{controlId:l}=E.useContext(Ds);e=Yt(e,"form-label");let u="col-form-label";typeof t=="string"&&(u=`${u} ${u}-${t}`);const d=Te(a,e,r&&"visually-hidden",t&&u);return i=i||l,t?Re.jsx(gH,{ref:o,as:"label",className:d,htmlFor:i,...s}):Re.jsx(n,{ref:o,className:d,htmlFor:i,...s})});pH.displayName="FormLabel";const mH=E.forwardRef(({bsPrefix:n,className:e,id:t,...r},a)=>{const{controlId:i}=E.useContext(Ds);return n=Yt(n,"form-range"),Re.jsx("input",{...r,type:"range",ref:a,className:Te(e,n),id:t||i})});mH.displayName="FormRange";const vH=E.forwardRef(({bsPrefix:n,size:e,htmlSize:t,className:r,isValid:a=!1,isInvalid:i=!1,id:s,...o},l)=>{const{controlId:u}=E.useContext(Ds);return n=Yt(n,"form-select"),Re.jsx("select",{...o,size:t,ref:l,className:Te(r,n,e&&`${n}-${e}`,a&&"is-valid",i&&"is-invalid"),id:s||u})});vH.displayName="FormSelect";const bH=E.forwardRef(({bsPrefix:n,className:e,as:t="small",muted:r,...a},i)=>(n=Yt(n,"form-text"),Re.jsx(t,{...a,ref:i,className:Te(e,n,r&&"text-muted")})));bH.displayName="FormText";const yH=E.forwardRef((n,e)=>Re.jsx(Rm,{...n,ref:e,type:"switch"}));yH.displayName="Switch";const oq=Object.assign(yH,{Input:Rm.Input,Label:Rm.Label}),xH=E.forwardRef(({bsPrefix:n,className:e,children:t,controlId:r,label:a,...i},s)=>(n=Yt(n,"form-floating"),Re.jsxs(DE,{ref:s,className:Te(e,n),controlId:r,...i,children:[t,Re.jsx("label",{htmlFor:r,children:a})]})));xH.displayName="FloatingLabel";const lq={_ref:Ae.any,validated:Ae.bool,as:Ae.elementType},_E=E.forwardRef(({className:n,validated:e,as:t="form",...r},a)=>Re.jsx(t,{...r,ref:a,className:Te(n,e&&"was-validated")}));_E.displayName="Form";_E.propTypes=lq;const cde=Object.assign(_E,{Group:DE,Control:iq,Floating:hH,Check:Rm,Switch:oq,Label:pH,Text:bH,Range:mH,Select:vH,FloatingLabel:xH});function tt(){return tt=Object.assign?Object.assign.bind():function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)({}).hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},tt.apply(null,arguments)}function AE(n,e){if(n==null)return{};var t={};for(var r in n)if({}.hasOwnProperty.call(n,r)){if(e.indexOf(r)!==-1)continue;t[r]=n[r]}return t}function wT(n){return"default"+n.charAt(0).toUpperCase()+n.substr(1)}function cq(n){var e=uq(n,"string");return typeof e=="symbol"?e:String(e)}function uq(n,e){if(typeof n!="object"||n===null)return n;var t=n[Symbol.toPrimitive];if(t!==void 0){var r=t.call(n,e);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(n)}function wH(n,e,t){var r=E.useRef(n!==void 0),a=E.useState(e),i=a[0],s=a[1],o=n!==void 0,l=r.current;return r.current=o,!o&&l&&i!==e&&s(e),[o?n:i,E.useCallback(function(u){for(var d=arguments.length,f=new Array(d>1?d-1:0),g=1;g<d;g++)f[g-1]=arguments[g];t&&t.apply(void 0,[u].concat(f)),s(u)},[t])]}function SH(n,e){return Object.keys(e).reduce(function(t,r){var a,i=t,s=i[wT(r)],o=i[r],l=AE(i,[wT(r),r].map(cq)),u=e[r],d=wH(o,s,n[u]),f=d[0],g=d[1];return tt({},l,(a={},a[r]=f,a[u]=g,a))},n)}function Vc(n,e){return Vc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,r){return t.__proto__=r,t},Vc(n,e)}function dq(n,e){n.prototype=Object.create(e.prototype),n.prototype.constructor=n,Vc(n,e)}function pu(n){return n&&n.ownerDocument||document}function fq(n){var e=pu(n);return e&&e.defaultView||window}function hq(n,e){return fq(n).getComputedStyle(n,e)}var gq=/([A-Z])/g;function pq(n){return n.replace(gq,"-$1").toLowerCase()}var mq=/^ms-/;function Kg(n){return pq(n).replace(mq,"-ms-")}var vq=/^((translate|rotate|scale)(X|Y|Z|3d)?|matrix(3d)?|perspective|skew(X|Y)?)$/i;function bq(n){return!!(n&&vq.test(n))}function ml(n,e){var t="",r="";if(typeof e=="string")return n.style.getPropertyValue(Kg(e))||hq(n).getPropertyValue(Kg(e));Object.keys(e).forEach(function(a){var i=e[a];!i&&i!==0?n.style.removeProperty(Kg(a)):bq(a)?r+=a+"("+i+") ":t+=Kg(a)+": "+i+";"}),r&&(t+="transform: "+r+";"),n.style.cssText+=";"+t}const ST={disabled:!1},CH=pe.createContext(null);var yq=function(e){return e.scrollTop},Lf="unmounted",cl="exited",fo="entering",ul="entered",YC="exiting",Ts=(function(n){dq(e,n);function e(r,a){var i;i=n.call(this,r,a)||this;var s=a,o=s&&!s.isMounting?r.enter:r.appear,l;return i.appearStatus=null,r.in?o?(l=cl,i.appearStatus=fo):l=ul:r.unmountOnExit||r.mountOnEnter?l=Lf:l=cl,i.state={status:l},i.nextCallback=null,i}e.getDerivedStateFromProps=function(a,i){var s=a.in;return s&&i.status===Lf?{status:cl}:null};var t=e.prototype;return t.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},t.componentDidUpdate=function(a){var i=null;if(a!==this.props){var s=this.state.status;this.props.in?s!==fo&&s!==ul&&(i=fo):(s===fo||s===ul)&&(i=YC)}this.updateStatus(!1,i)},t.componentWillUnmount=function(){this.cancelNextCallback()},t.getTimeouts=function(){var a=this.props.timeout,i,s,o;return i=s=o=a,a!=null&&typeof a!="number"&&(i=a.exit,s=a.enter,o=a.appear!==void 0?a.appear:s),{exit:i,enter:s,appear:o}},t.updateStatus=function(a,i){if(a===void 0&&(a=!1),i!==null)if(this.cancelNextCallback(),i===fo){if(this.props.unmountOnExit||this.props.mountOnEnter){var s=this.props.nodeRef?this.props.nodeRef.current:ba.findDOMNode(this);s&&yq(s)}this.performEnter(a)}else this.performExit();else this.props.unmountOnExit&&this.state.status===cl&&this.setState({status:Lf})},t.performEnter=function(a){var i=this,s=this.props.enter,o=this.context?this.context.isMounting:a,l=this.props.nodeRef?[o]:[ba.findDOMNode(this),o],u=l[0],d=l[1],f=this.getTimeouts(),g=o?f.appear:f.enter;if(!a&&!s||ST.disabled){this.safeSetState({status:ul},function(){i.props.onEntered(u)});return}this.props.onEnter(u,d),this.safeSetState({status:fo},function(){i.props.onEntering(u,d),i.onTransitionEnd(g,function(){i.safeSetState({status:ul},function(){i.props.onEntered(u,d)})})})},t.performExit=function(){var a=this,i=this.props.exit,s=this.getTimeouts(),o=this.props.nodeRef?void 0:ba.findDOMNode(this);if(!i||ST.disabled){this.safeSetState({status:cl},function(){a.props.onExited(o)});return}this.props.onExit(o),this.safeSetState({status:YC},function(){a.props.onExiting(o),a.onTransitionEnd(s.exit,function(){a.safeSetState({status:cl},function(){a.props.onExited(o)})})})},t.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},t.safeSetState=function(a,i){i=this.setNextCallback(i),this.setState(a,i)},t.setNextCallback=function(a){var i=this,s=!0;return this.nextCallback=function(o){s&&(s=!1,i.nextCallback=null,a(o))},this.nextCallback.cancel=function(){s=!1},this.nextCallback},t.onTransitionEnd=function(a,i){this.setNextCallback(i);var s=this.props.nodeRef?this.props.nodeRef.current:ba.findDOMNode(this),o=a==null&&!this.props.addEndListener;if(!s||o){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var l=this.props.nodeRef?[this.nextCallback]:[s,this.nextCallback],u=l[0],d=l[1];this.props.addEndListener(u,d)}a!=null&&setTimeout(this.nextCallback,a)},t.render=function(){var a=this.state.status;if(a===Lf)return null;var i=this.props,s=i.children;i.in,i.mountOnEnter,i.unmountOnExit,i.appear,i.enter,i.exit,i.timeout,i.addEndListener,i.onEnter,i.onEntering,i.onEntered,i.onExit,i.onExiting,i.onExited,i.nodeRef;var o=AE(i,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return pe.createElement(CH.Provider,{value:null},typeof s=="function"?s(a,o):pe.cloneElement(pe.Children.only(s),o))},e})(pe.Component);Ts.contextType=CH;Ts.propTypes={};function Tc(){}Ts.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Tc,onEntering:Tc,onEntered:Tc,onExit:Tc,onExiting:Tc,onExited:Tc};Ts.UNMOUNTED=Lf;Ts.EXITED=cl;Ts.ENTERING=fo;Ts.ENTERED=ul;Ts.EXITING=YC;function OH(n){return n.code==="Escape"||n.keyCode===27}function xq(){const n=E.version.split(".");return{major:+n[0],minor:+n[1],patch:+n[2]}}function Oh(n){if(!n||typeof n=="function")return null;const{major:e}=xq();return e>=19?n.props.ref:n.ref}const mu=!!(typeof window<"u"&&window.document&&window.document.createElement);var jC=!1,WC=!1;try{var K0={get passive(){return jC=!0},get once(){return WC=jC=!0}};mu&&(window.addEventListener("test",K0,K0),window.removeEventListener("test",K0,!0))}catch{}function TE(n,e,t,r){if(r&&typeof r!="boolean"&&!WC){var a=r.once,i=r.capture,s=t;!WC&&a&&(s=t.__once||function o(l){this.removeEventListener(e,o,i),t.call(this,l)},t.__once=s),n.addEventListener(e,s,jC?r:i)}n.addEventListener(e,t,r)}function qC(n,e,t,r){var a=r&&typeof r!="boolean"?r.capture:r;n.removeEventListener(e,t,a),t.__once&&n.removeEventListener(e,t.__once,a)}function xs(n,e,t,r){return TE(n,e,t,r),function(){qC(n,e,t,r)}}function wq(n,e,t,r){if(r===void 0&&(r=!0),n){var a=document.createEvent("HTMLEvents");a.initEvent(e,t,r),n.dispatchEvent(a)}}function Sq(n){var e=ml(n,"transitionDuration")||"",t=e.indexOf("ms")===-1?1e3:1;return parseFloat(e)*t}function Cq(n,e,t){t===void 0&&(t=5);var r=!1,a=setTimeout(function(){r||wq(n,"transitionend",!0)},e+t),i=xs(n,"transitionend",function(){r=!0},{once:!0});return function(){clearTimeout(a),i()}}function EH(n,e,t,r){t==null&&(t=Sq(n)||0);var a=Cq(n,t,r),i=xs(n,"transitionend",e);return function(){a(),i()}}function CT(n,e){const t=ml(n,e)||"",r=t.indexOf("ms")===-1?1e3:1;return parseFloat(t)*r}function Oq(n,e){const t=CT(n,"transitionDuration"),r=CT(n,"transitionDelay"),a=EH(n,i=>{i.target===n&&(a(),e(i))},t+r)}function Eq(n){n.offsetHeight}const OT=n=>!n||typeof n=="function"?n:e=>{n.current=e};function Mq(n,e){const t=OT(n),r=OT(e);return a=>{t&&t(a),r&&r(a)}}function vu(n,e){return E.useMemo(()=>Mq(n,e),[n,e])}function Pm(n){return n&&"setState"in n?ba.findDOMNode(n):n??null}const MH=pe.forwardRef(({onEnter:n,onEntering:e,onEntered:t,onExit:r,onExiting:a,onExited:i,addEndListener:s,children:o,childRef:l,...u},d)=>{const f=E.useRef(null),g=vu(f,l),p=A=>{g(Pm(A))},b=A=>T=>{A&&f.current&&A(f.current,T)},y=E.useCallback(b(n),[n]),x=E.useCallback(b(e),[e]),S=E.useCallback(b(t),[t]),C=E.useCallback(b(r),[r]),O=E.useCallback(b(a),[a]),D=E.useCallback(b(i),[i]),M=E.useCallback(b(s),[s]);return Re.jsx(Ts,{ref:d,...u,onEnter:y,onEntered:S,onEntering:x,onExit:C,onExited:D,onExiting:O,addEndListener:M,nodeRef:f,children:typeof o=="function"?(A,T)=>o(A,{...T,ref:p}):pe.cloneElement(o,{ref:p})})});MH.displayName="TransitionWrapper";function Dq(n){const e=E.useRef(n);return E.useEffect(()=>{e.current=n},[n]),e}function Uc(n){const e=Dq(n);return E.useCallback(function(...t){return e.current&&e.current(...t)},[e])}const _q=(n=>E.forwardRef((e,t)=>Re.jsx("div",{...e,ref:t,className:Te(e.className,n)})));function XC(){return E.useState(null)}function Aq(n){const e=E.useRef(n);return E.useEffect(()=>{e.current=n},[n]),e}function Yr(n){const e=Aq(n);return E.useCallback(function(...t){return e.current&&e.current(...t)},[e])}function Tq(n,e,t,r=!1){const a=Yr(t);E.useEffect(()=>{const i=typeof n=="function"?n():n;return i.addEventListener(e,a,r),()=>i.removeEventListener(e,a,r)},[n])}function DH(){const n=E.useRef(!0),e=E.useRef(()=>n.current);return E.useEffect(()=>(n.current=!0,()=>{n.current=!1}),[]),e.current}function _H(n){const e=E.useRef(null);return E.useEffect(()=>{e.current=n}),e.current}const Rq=typeof global<"u"&&global.navigator&&global.navigator.product==="ReactNative",Pq=typeof document<"u",ET=Pq||Rq?E.useLayoutEffect:E.useEffect,Lq=["as","disabled"];function Nq(n,e){if(n==null)return{};var t={};for(var r in n)if({}.hasOwnProperty.call(n,r)){if(e.indexOf(r)>=0)continue;t[r]=n[r]}return t}function Iq(n){return!n||n.trim()==="#"}function RE({tagName:n,disabled:e,href:t,target:r,rel:a,role:i,onClick:s,tabIndex:o=0,type:l}){n||(t!=null||r!=null||a!=null?n="a":n="button");const u={tagName:n};if(n==="button")return[{type:l||"button",disabled:e},u];const d=g=>{if((e||n==="a"&&Iq(t))&&g.preventDefault(),e){g.stopPropagation();return}s?.(g)},f=g=>{g.key===" "&&(g.preventDefault(),d(g))};return n==="a"&&(t||(t="#"),e&&(t=void 0)),[{role:i??"button",disabled:void 0,tabIndex:e?void 0:o,href:t,target:n==="a"?r:void 0,"aria-disabled":e||void 0,rel:n==="a"?a:void 0,onClick:d,onKeyDown:f},u]}const PE=E.forwardRef((n,e)=>{let{as:t,disabled:r}=n,a=Nq(n,Lq);const[i,{tagName:s}]=RE(Object.assign({tagName:t,disabled:r},a));return Re.jsx(s,Object.assign({},a,i,{ref:e}))});PE.displayName="Button";const $q=["onKeyDown"];function Fq(n,e){if(n==null)return{};var t={};for(var r in n)if({}.hasOwnProperty.call(n,r)){if(e.indexOf(r)>=0)continue;t[r]=n[r]}return t}function kq(n){return!n||n.trim()==="#"}const AH=E.forwardRef((n,e)=>{let{onKeyDown:t}=n,r=Fq(n,$q);const[a]=RE(Object.assign({tagName:"a"},r)),i=Yr(s=>{a.onKeyDown(s),t?.(s)});return kq(r.href)||r.role==="button"?Re.jsx("a",Object.assign({ref:e},r,a,{onKeyDown:i})):Re.jsx("a",Object.assign({ref:e},r,{onKeyDown:t}))});AH.displayName="Anchor";const Hq={[fo]:"show",[ul]:"show"},Zf=E.forwardRef(({className:n,children:e,transitionClasses:t={},onEnter:r,...a},i)=>{const s={in:!1,timeout:300,mountOnEnter:!1,unmountOnExit:!1,appear:!1,...a},o=E.useCallback((l,u)=>{Eq(l),r?.(l,u)},[r]);return Re.jsx(MH,{ref:i,addEndListener:Oq,...s,onEnter:o,childRef:Oh(e),children:(l,u)=>E.cloneElement(e,{...u,className:Te("fade",n,e.props.className,Hq[l],t[l])})})});Zf.displayName="Fade";const zq={"aria-label":Ae.string,onClick:Ae.func,variant:Ae.oneOf(["white"])},LE=E.forwardRef(({className:n,variant:e,"aria-label":t="Close",...r},a)=>Re.jsx("button",{ref:a,type:"button",className:Te("btn-close",e&&`btn-close-${e}`,n),"aria-label":t,...r}));LE.displayName="CloseButton";LE.propTypes=zq;const Bq=E.forwardRef(({bsPrefix:n,bg:e="primary",pill:t=!1,text:r,className:a,as:i="span",...s},o)=>{const l=Yt(n,"badge");return Re.jsx(i,{ref:o,...s,className:Te(a,l,t&&"rounded-pill",r&&`text-${r}`,e&&`bg-${e}`)})});Bq.displayName="Badge";const TH=E.forwardRef(({as:n,bsPrefix:e,variant:t="primary",size:r,active:a=!1,disabled:i=!1,className:s,...o},l)=>{const u=Yt(e,"btn"),[d,{tagName:f}]=RE({tagName:n,disabled:i,...o}),g=f;return Re.jsx(g,{...d,...o,ref:l,disabled:i,className:Te(s,u,a&&"active",t&&`${u}-${t}`,r&&`${u}-${r}`,o.href&&i&&"disabled")})});TH.displayName="Button";const Yq=E.forwardRef(({bsPrefix:n,size:e,vertical:t=!1,className:r,role:a="group",as:i="div",...s},o)=>{const l=Yt(n,"btn-group");let u=l;return t&&(u=`${l}-vertical`),Re.jsx(i,{...s,ref:o,role:a,className:Te(r,u,e&&`${l}-${e}`)})});Yq.displayName="ButtonGroup";function jq(){const n=E.useRef(!0),e=E.useRef(()=>n.current);return E.useEffect(()=>(n.current=!0,()=>{n.current=!1}),[]),e.current}function Wq(n){const e=E.useRef(n);return e.current=n,e}function RH(n){const e=Wq(n);E.useEffect(()=>()=>e.current(),[])}const VC=2**31-1;function PH(n,e,t){const r=t-Date.now();n.current=r<=VC?setTimeout(e,r):setTimeout(()=>PH(n,e,t),VC)}function qq(){const n=jq(),e=E.useRef();return RH(()=>clearTimeout(e.current)),E.useMemo(()=>{const t=()=>clearTimeout(e.current);function r(a,i=0){n()&&(t(),i<=VC?e.current=setTimeout(a,i):PH(e,a,Date.now()+i))}return{set:r,clear:t,handleRef:e}},[])}var Xq=Function.prototype.bind.call(Function.prototype.call,[].slice);function ys(n,e){return Xq(n.querySelectorAll(e))}function Vq(n,e,t){const r=E.useRef(n!==void 0),[a,i]=E.useState(e),s=n!==void 0,o=r.current;return r.current=s,!s&&o&&a!==e&&i(e),[s?n:a,E.useCallback((...l)=>{const[u,...d]=l;let f=t?.(u,...d);return i(u),f},[t])]}function LH(){const[,n]=E.useReducer(e=>e+1,0);return n}const cv=E.createContext(null);var MT=Object.prototype.hasOwnProperty;function DT(n,e,t){for(t of n.keys())if(Bf(t,e))return t}function Bf(n,e){var t,r,a;if(n===e)return!0;if(n&&e&&(t=n.constructor)===e.constructor){if(t===Date)return n.getTime()===e.getTime();if(t===RegExp)return n.toString()===e.toString();if(t===Array){if((r=n.length)===e.length)for(;r--&&Bf(n[r],e[r]););return r===-1}if(t===Set){if(n.size!==e.size)return!1;for(r of n)if(a=r,a&&typeof a=="object"&&(a=DT(e,a),!a)||!e.has(a))return!1;return!0}if(t===Map){if(n.size!==e.size)return!1;for(r of n)if(a=r[0],a&&typeof a=="object"&&(a=DT(e,a),!a)||!Bf(r[1],e.get(a)))return!1;return!0}if(t===ArrayBuffer)n=new Uint8Array(n),e=new Uint8Array(e);else if(t===DataView){if((r=n.byteLength)===e.byteLength)for(;r--&&n.getInt8(r)===e.getInt8(r););return r===-1}if(ArrayBuffer.isView(n)){if((r=n.byteLength)===e.byteLength)for(;r--&&n[r]===e[r];);return r===-1}if(!t||typeof n=="object"){r=0;for(t in n)if(MT.call(n,t)&&++r&&!MT.call(e,t)||!(t in e)||!Bf(n[t],e[t]))return!1;return Object.keys(e).length===r}}return n!==n&&e!==e}function Uq(n){const e=DH();return[n[0],E.useCallback(t=>{if(e())return n[1](t)},[e,n[1]])]}var xa="top",ni="bottom",ri="right",wa="left",NE="auto",Eh=[xa,ni,ri,wa],Gc="start",Qf="end",Gq="clippingParents",NH="viewport",Jd="popper",Zq="reference",_T=Eh.reduce(function(n,e){return n.concat([e+"-"+Gc,e+"-"+Qf])},[]),IH=[].concat(Eh,[NE]).reduce(function(n,e){return n.concat([e,e+"-"+Gc,e+"-"+Qf])},[]),Qq="beforeRead",Kq="read",Jq="afterRead",eX="beforeMain",tX="main",nX="afterMain",rX="beforeWrite",aX="write",iX="afterWrite",sX=[Qq,Kq,Jq,eX,tX,nX,rX,aX,iX];function ji(n){return n.split("-")[0]}function Fa(n){if(n==null)return window;if(n.toString()!=="[object Window]"){var e=n.ownerDocument;return e&&e.defaultView||window}return n}function wl(n){var e=Fa(n).Element;return n instanceof e||n instanceof Element}function Wi(n){var e=Fa(n).HTMLElement;return n instanceof e||n instanceof HTMLElement}function IE(n){if(typeof ShadowRoot>"u")return!1;var e=Fa(n).ShadowRoot;return n instanceof e||n instanceof ShadowRoot}var vl=Math.max,Lm=Math.min,Zc=Math.round;function UC(){var n=navigator.userAgentData;return n!=null&&n.brands&&Array.isArray(n.brands)?n.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function $H(){return!/^((?!chrome|android).)*safari/i.test(UC())}function Qc(n,e,t){e===void 0&&(e=!1),t===void 0&&(t=!1);var r=n.getBoundingClientRect(),a=1,i=1;e&&Wi(n)&&(a=n.offsetWidth>0&&Zc(r.width)/n.offsetWidth||1,i=n.offsetHeight>0&&Zc(r.height)/n.offsetHeight||1);var s=wl(n)?Fa(n):window,o=s.visualViewport,l=!$H()&&t,u=(r.left+(l&&o?o.offsetLeft:0))/a,d=(r.top+(l&&o?o.offsetTop:0))/i,f=r.width/a,g=r.height/i;return{width:f,height:g,top:d,right:u+f,bottom:d+g,left:u,x:u,y:d}}function $E(n){var e=Qc(n),t=n.offsetWidth,r=n.offsetHeight;return Math.abs(e.width-t)<=1&&(t=e.width),Math.abs(e.height-r)<=1&&(r=e.height),{x:n.offsetLeft,y:n.offsetTop,width:t,height:r}}function FH(n,e){var t=e.getRootNode&&e.getRootNode();if(n.contains(e))return!0;if(t&&IE(t)){var r=e;do{if(r&&n.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function bo(n){return n?(n.nodeName||"").toLowerCase():null}function _s(n){return Fa(n).getComputedStyle(n)}function oX(n){return["table","td","th"].indexOf(bo(n))>=0}function So(n){return((wl(n)?n.ownerDocument:n.document)||window.document).documentElement}function uv(n){return bo(n)==="html"?n:n.assignedSlot||n.parentNode||(IE(n)?n.host:null)||So(n)}function AT(n){return!Wi(n)||_s(n).position==="fixed"?null:n.offsetParent}function lX(n){var e=/firefox/i.test(UC()),t=/Trident/i.test(UC());if(t&&Wi(n)){var r=_s(n);if(r.position==="fixed")return null}var a=uv(n);for(IE(a)&&(a=a.host);Wi(a)&&["html","body"].indexOf(bo(a))<0;){var i=_s(a);if(i.transform!=="none"||i.perspective!=="none"||i.contain==="paint"||["transform","perspective"].indexOf(i.willChange)!==-1||e&&i.willChange==="filter"||e&&i.filter&&i.filter!=="none")return a;a=a.parentNode}return null}function Mh(n){for(var e=Fa(n),t=AT(n);t&&oX(t)&&_s(t).position==="static";)t=AT(t);return t&&(bo(t)==="html"||bo(t)==="body"&&_s(t).position==="static")?e:t||lX(n)||e}function FE(n){return["top","bottom"].indexOf(n)>=0?"x":"y"}function Yf(n,e,t){return vl(n,Lm(e,t))}function cX(n,e,t){var r=Yf(n,e,t);return r>t?t:r}function kH(){return{top:0,right:0,bottom:0,left:0}}function HH(n){return Object.assign({},kH(),n)}function zH(n,e){return e.reduce(function(t,r){return t[r]=n,t},{})}var uX=function(e,t){return e=typeof e=="function"?e(Object.assign({},t.rects,{placement:t.placement})):e,HH(typeof e!="number"?e:zH(e,Eh))};function dX(n){var e,t=n.state,r=n.name,a=n.options,i=t.elements.arrow,s=t.modifiersData.popperOffsets,o=ji(t.placement),l=FE(o),u=[wa,ri].indexOf(o)>=0,d=u?"height":"width";if(!(!i||!s)){var f=uX(a.padding,t),g=$E(i),p=l==="y"?xa:wa,b=l==="y"?ni:ri,y=t.rects.reference[d]+t.rects.reference[l]-s[l]-t.rects.popper[d],x=s[l]-t.rects.reference[l],S=Mh(i),C=S?l==="y"?S.clientHeight||0:S.clientWidth||0:0,O=y/2-x/2,D=f[p],M=C-g[d]-f[b],A=C/2-g[d]/2+O,T=Yf(D,A,M),P=l;t.modifiersData[r]=(e={},e[P]=T,e.centerOffset=T-A,e)}}function fX(n){var e=n.state,t=n.options,r=t.element,a=r===void 0?"[data-popper-arrow]":r;a!=null&&(typeof a=="string"&&(a=e.elements.popper.querySelector(a),!a)||FH(e.elements.popper,a)&&(e.elements.arrow=a))}const hX={name:"arrow",enabled:!0,phase:"main",fn:dX,effect:fX,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Kc(n){return n.split("-")[1]}var gX={top:"auto",right:"auto",bottom:"auto",left:"auto"};function pX(n,e){var t=n.x,r=n.y,a=e.devicePixelRatio||1;return{x:Zc(t*a)/a||0,y:Zc(r*a)/a||0}}function TT(n){var e,t=n.popper,r=n.popperRect,a=n.placement,i=n.variation,s=n.offsets,o=n.position,l=n.gpuAcceleration,u=n.adaptive,d=n.roundOffsets,f=n.isFixed,g=s.x,p=g===void 0?0:g,b=s.y,y=b===void 0?0:b,x=typeof d=="function"?d({x:p,y}):{x:p,y};p=x.x,y=x.y;var S=s.hasOwnProperty("x"),C=s.hasOwnProperty("y"),O=wa,D=xa,M=window;if(u){var A=Mh(t),T="clientHeight",P="clientWidth";if(A===Fa(t)&&(A=So(t),_s(A).position!=="static"&&o==="absolute"&&(T="scrollHeight",P="scrollWidth")),A=A,a===xa||(a===wa||a===ri)&&i===Qf){D=ni;var R=f&&A===M&&M.visualViewport?M.visualViewport.height:A[T];y-=R-r.height,y*=l?1:-1}if(a===wa||(a===xa||a===ni)&&i===Qf){O=ri;var N=f&&A===M&&M.visualViewport?M.visualViewport.width:A[P];p-=N-r.width,p*=l?1:-1}}var I=Object.assign({position:o},u&&gX),$=d===!0?pX({x:p,y},Fa(t)):{x:p,y};if(p=$.x,y=$.y,l){var Y;return Object.assign({},I,(Y={},Y[D]=C?"0":"",Y[O]=S?"0":"",Y.transform=(M.devicePixelRatio||1)<=1?"translate("+p+"px, "+y+"px)":"translate3d("+p+"px, "+y+"px, 0)",Y))}return Object.assign({},I,(e={},e[D]=C?y+"px":"",e[O]=S?p+"px":"",e.transform="",e))}function mX(n){var e=n.state,t=n.options,r=t.gpuAcceleration,a=r===void 0?!0:r,i=t.adaptive,s=i===void 0?!0:i,o=t.roundOffsets,l=o===void 0?!0:o,u={placement:ji(e.placement),variation:Kc(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:a,isFixed:e.options.strategy==="fixed"};e.modifiersData.popperOffsets!=null&&(e.styles.popper=Object.assign({},e.styles.popper,TT(Object.assign({},u,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:s,roundOffsets:l})))),e.modifiersData.arrow!=null&&(e.styles.arrow=Object.assign({},e.styles.arrow,TT(Object.assign({},u,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})}const vX={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:mX,data:{}};var Jg={passive:!0};function bX(n){var e=n.state,t=n.instance,r=n.options,a=r.scroll,i=a===void 0?!0:a,s=r.resize,o=s===void 0?!0:s,l=Fa(e.elements.popper),u=[].concat(e.scrollParents.reference,e.scrollParents.popper);return i&&u.forEach(function(d){d.addEventListener("scroll",t.update,Jg)}),o&&l.addEventListener("resize",t.update,Jg),function(){i&&u.forEach(function(d){d.removeEventListener("scroll",t.update,Jg)}),o&&l.removeEventListener("resize",t.update,Jg)}}const yX={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:bX,data:{}};var xX={left:"right",right:"left",bottom:"top",top:"bottom"};function lm(n){return n.replace(/left|right|bottom|top/g,function(e){return xX[e]})}var wX={start:"end",end:"start"};function RT(n){return n.replace(/start|end/g,function(e){return wX[e]})}function kE(n){var e=Fa(n),t=e.pageXOffset,r=e.pageYOffset;return{scrollLeft:t,scrollTop:r}}function HE(n){return Qc(So(n)).left+kE(n).scrollLeft}function SX(n,e){var t=Fa(n),r=So(n),a=t.visualViewport,i=r.clientWidth,s=r.clientHeight,o=0,l=0;if(a){i=a.width,s=a.height;var u=$H();(u||!u&&e==="fixed")&&(o=a.offsetLeft,l=a.offsetTop)}return{width:i,height:s,x:o+HE(n),y:l}}function CX(n){var e,t=So(n),r=kE(n),a=(e=n.ownerDocument)==null?void 0:e.body,i=vl(t.scrollWidth,t.clientWidth,a?a.scrollWidth:0,a?a.clientWidth:0),s=vl(t.scrollHeight,t.clientHeight,a?a.scrollHeight:0,a?a.clientHeight:0),o=-r.scrollLeft+HE(n),l=-r.scrollTop;return _s(a||t).direction==="rtl"&&(o+=vl(t.clientWidth,a?a.clientWidth:0)-i),{width:i,height:s,x:o,y:l}}function zE(n){var e=_s(n),t=e.overflow,r=e.overflowX,a=e.overflowY;return/auto|scroll|overlay|hidden/.test(t+a+r)}function BH(n){return["html","body","#document"].indexOf(bo(n))>=0?n.ownerDocument.body:Wi(n)&&zE(n)?n:BH(uv(n))}function jf(n,e){var t;e===void 0&&(e=[]);var r=BH(n),a=r===((t=n.ownerDocument)==null?void 0:t.body),i=Fa(r),s=a?[i].concat(i.visualViewport||[],zE(r)?r:[]):r,o=e.concat(s);return a?o:o.concat(jf(uv(s)))}function GC(n){return Object.assign({},n,{left:n.x,top:n.y,right:n.x+n.width,bottom:n.y+n.height})}function OX(n,e){var t=Qc(n,!1,e==="fixed");return t.top=t.top+n.clientTop,t.left=t.left+n.clientLeft,t.bottom=t.top+n.clientHeight,t.right=t.left+n.clientWidth,t.width=n.clientWidth,t.height=n.clientHeight,t.x=t.left,t.y=t.top,t}function PT(n,e,t){return e===NH?GC(SX(n,t)):wl(e)?OX(e,t):GC(CX(So(n)))}function EX(n){var e=jf(uv(n)),t=["absolute","fixed"].indexOf(_s(n).position)>=0,r=t&&Wi(n)?Mh(n):n;return wl(r)?e.filter(function(a){return wl(a)&&FH(a,r)&&bo(a)!=="body"}):[]}function MX(n,e,t,r){var a=e==="clippingParents"?EX(n):[].concat(e),i=[].concat(a,[t]),s=i[0],o=i.reduce(function(l,u){var d=PT(n,u,r);return l.top=vl(d.top,l.top),l.right=Lm(d.right,l.right),l.bottom=Lm(d.bottom,l.bottom),l.left=vl(d.left,l.left),l},PT(n,s,r));return o.width=o.right-o.left,o.height=o.bottom-o.top,o.x=o.left,o.y=o.top,o}function YH(n){var e=n.reference,t=n.element,r=n.placement,a=r?ji(r):null,i=r?Kc(r):null,s=e.x+e.width/2-t.width/2,o=e.y+e.height/2-t.height/2,l;switch(a){case xa:l={x:s,y:e.y-t.height};break;case ni:l={x:s,y:e.y+e.height};break;case ri:l={x:e.x+e.width,y:o};break;case wa:l={x:e.x-t.width,y:o};break;default:l={x:e.x,y:e.y}}var u=a?FE(a):null;if(u!=null){var d=u==="y"?"height":"width";switch(i){case Gc:l[u]=l[u]-(e[d]/2-t[d]/2);break;case Qf:l[u]=l[u]+(e[d]/2-t[d]/2);break}}return l}function Kf(n,e){e===void 0&&(e={});var t=e,r=t.placement,a=r===void 0?n.placement:r,i=t.strategy,s=i===void 0?n.strategy:i,o=t.boundary,l=o===void 0?Gq:o,u=t.rootBoundary,d=u===void 0?NH:u,f=t.elementContext,g=f===void 0?Jd:f,p=t.altBoundary,b=p===void 0?!1:p,y=t.padding,x=y===void 0?0:y,S=HH(typeof x!="number"?x:zH(x,Eh)),C=g===Jd?Zq:Jd,O=n.rects.popper,D=n.elements[b?C:g],M=MX(wl(D)?D:D.contextElement||So(n.elements.popper),l,d,s),A=Qc(n.elements.reference),T=YH({reference:A,element:O,placement:a}),P=GC(Object.assign({},O,T)),R=g===Jd?P:A,N={top:M.top-R.top+S.top,bottom:R.bottom-M.bottom+S.bottom,left:M.left-R.left+S.left,right:R.right-M.right+S.right},I=n.modifiersData.offset;if(g===Jd&&I){var $=I[a];Object.keys(N).forEach(function(Y){var k=[ri,ni].indexOf(Y)>=0?1:-1,H=[xa,ni].indexOf(Y)>=0?"y":"x";N[Y]+=$[H]*k})}return N}function DX(n,e){e===void 0&&(e={});var t=e,r=t.placement,a=t.boundary,i=t.rootBoundary,s=t.padding,o=t.flipVariations,l=t.allowedAutoPlacements,u=l===void 0?IH:l,d=Kc(r),f=d?o?_T:_T.filter(function(b){return Kc(b)===d}):Eh,g=f.filter(function(b){return u.indexOf(b)>=0});g.length===0&&(g=f);var p=g.reduce(function(b,y){return b[y]=Kf(n,{placement:y,boundary:a,rootBoundary:i,padding:s})[ji(y)],b},{});return Object.keys(p).sort(function(b,y){return p[b]-p[y]})}function _X(n){if(ji(n)===NE)return[];var e=lm(n);return[RT(n),e,RT(e)]}function AX(n){var e=n.state,t=n.options,r=n.name;if(!e.modifiersData[r]._skip){for(var a=t.mainAxis,i=a===void 0?!0:a,s=t.altAxis,o=s===void 0?!0:s,l=t.fallbackPlacements,u=t.padding,d=t.boundary,f=t.rootBoundary,g=t.altBoundary,p=t.flipVariations,b=p===void 0?!0:p,y=t.allowedAutoPlacements,x=e.options.placement,S=ji(x),C=S===x,O=l||(C||!b?[lm(x)]:_X(x)),D=[x].concat(O).reduce(function(G,U){return G.concat(ji(U)===NE?DX(e,{placement:U,boundary:d,rootBoundary:f,padding:u,flipVariations:b,allowedAutoPlacements:y}):U)},[]),M=e.rects.reference,A=e.rects.popper,T=new Map,P=!0,R=D[0],N=0;N<D.length;N++){var I=D[N],$=ji(I),Y=Kc(I)===Gc,k=[xa,ni].indexOf($)>=0,H=k?"width":"height",F=Kf(e,{placement:I,boundary:d,rootBoundary:f,altBoundary:g,padding:u}),B=k?Y?ri:wa:Y?ni:xa;M[H]>A[H]&&(B=lm(B));var X=lm(B),Q=[];if(i&&Q.push(F[$]<=0),o&&Q.push(F[B]<=0,F[X]<=0),Q.every(function(G){return G})){R=I,P=!1;break}T.set(I,Q)}if(P)for(var z=b?3:1,V=function(U){var K=D.find(function(te){var ne=T.get(te);if(ne)return ne.slice(0,U).every(function(ie){return ie})});if(K)return R=K,"break"},j=z;j>0;j--){var q=V(j);if(q==="break")break}e.placement!==R&&(e.modifiersData[r]._skip=!0,e.placement=R,e.reset=!0)}}const TX={name:"flip",enabled:!0,phase:"main",fn:AX,requiresIfExists:["offset"],data:{_skip:!1}};function LT(n,e,t){return t===void 0&&(t={x:0,y:0}),{top:n.top-e.height-t.y,right:n.right-e.width+t.x,bottom:n.bottom-e.height+t.y,left:n.left-e.width-t.x}}function NT(n){return[xa,ri,ni,wa].some(function(e){return n[e]>=0})}function RX(n){var e=n.state,t=n.name,r=e.rects.reference,a=e.rects.popper,i=e.modifiersData.preventOverflow,s=Kf(e,{elementContext:"reference"}),o=Kf(e,{altBoundary:!0}),l=LT(s,r),u=LT(o,a,i),d=NT(l),f=NT(u);e.modifiersData[t]={referenceClippingOffsets:l,popperEscapeOffsets:u,isReferenceHidden:d,hasPopperEscaped:f},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":d,"data-popper-escaped":f})}const PX={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:RX};function LX(n,e,t){var r=ji(n),a=[wa,xa].indexOf(r)>=0?-1:1,i=typeof t=="function"?t(Object.assign({},e,{placement:n})):t,s=i[0],o=i[1];return s=s||0,o=(o||0)*a,[wa,ri].indexOf(r)>=0?{x:o,y:s}:{x:s,y:o}}function NX(n){var e=n.state,t=n.options,r=n.name,a=t.offset,i=a===void 0?[0,0]:a,s=IH.reduce(function(d,f){return d[f]=LX(f,e.rects,i),d},{}),o=s[e.placement],l=o.x,u=o.y;e.modifiersData.popperOffsets!=null&&(e.modifiersData.popperOffsets.x+=l,e.modifiersData.popperOffsets.y+=u),e.modifiersData[r]=s}const IX={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:NX};function $X(n){var e=n.state,t=n.name;e.modifiersData[t]=YH({reference:e.rects.reference,element:e.rects.popper,placement:e.placement})}const FX={name:"popperOffsets",enabled:!0,phase:"read",fn:$X,data:{}};function kX(n){return n==="x"?"y":"x"}function HX(n){var e=n.state,t=n.options,r=n.name,a=t.mainAxis,i=a===void 0?!0:a,s=t.altAxis,o=s===void 0?!1:s,l=t.boundary,u=t.rootBoundary,d=t.altBoundary,f=t.padding,g=t.tether,p=g===void 0?!0:g,b=t.tetherOffset,y=b===void 0?0:b,x=Kf(e,{boundary:l,rootBoundary:u,padding:f,altBoundary:d}),S=ji(e.placement),C=Kc(e.placement),O=!C,D=FE(S),M=kX(D),A=e.modifiersData.popperOffsets,T=e.rects.reference,P=e.rects.popper,R=typeof y=="function"?y(Object.assign({},e.rects,{placement:e.placement})):y,N=typeof R=="number"?{mainAxis:R,altAxis:R}:Object.assign({mainAxis:0,altAxis:0},R),I=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,$={x:0,y:0};if(A){if(i){var Y,k=D==="y"?xa:wa,H=D==="y"?ni:ri,F=D==="y"?"height":"width",B=A[D],X=B+x[k],Q=B-x[H],z=p?-P[F]/2:0,V=C===Gc?T[F]:P[F],j=C===Gc?-P[F]:-T[F],q=e.elements.arrow,G=p&&q?$E(q):{width:0,height:0},U=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:kH(),K=U[k],te=U[H],ne=Yf(0,T[F],G[F]),ie=O?T[F]/2-z-ne-K-N.mainAxis:V-ne-K-N.mainAxis,ce=O?-T[F]/2+z+ne+te+N.mainAxis:j+ne+te+N.mainAxis,ue=e.elements.arrow&&Mh(e.elements.arrow),be=ue?D==="y"?ue.clientTop||0:ue.clientLeft||0:0,me=(Y=I?.[D])!=null?Y:0,ye=B+ie-me-be,De=B+ce-me,Ce=Yf(p?Lm(X,ye):X,B,p?vl(Q,De):Q);A[D]=Ce,$[D]=Ce-B}if(o){var Le,Ne=D==="x"?xa:wa,Ve=D==="x"?ni:ri,ze=A[M],$e=M==="y"?"height":"width",Be=ze+x[Ne],ut=ze-x[Ve],He=[xa,wa].indexOf(S)!==-1,Qe=(Le=I?.[M])!=null?Le:0,Ee=He?Be:ze-T[$e]-P[$e]-Qe+N.altAxis,st=He?ze+T[$e]+P[$e]-Qe-N.altAxis:ut,ht=p&&He?cX(Ee,ze,st):Yf(p?Ee:Be,ze,p?st:ut);A[M]=ht,$[M]=ht-ze}e.modifiersData[r]=$}}const zX={name:"preventOverflow",enabled:!0,phase:"main",fn:HX,requiresIfExists:["offset"]};function BX(n){return{scrollLeft:n.scrollLeft,scrollTop:n.scrollTop}}function YX(n){return n===Fa(n)||!Wi(n)?kE(n):BX(n)}function jX(n){var e=n.getBoundingClientRect(),t=Zc(e.width)/n.offsetWidth||1,r=Zc(e.height)/n.offsetHeight||1;return t!==1||r!==1}function WX(n,e,t){t===void 0&&(t=!1);var r=Wi(e),a=Wi(e)&&jX(e),i=So(e),s=Qc(n,a,t),o={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!t)&&((bo(e)!=="body"||zE(i))&&(o=YX(e)),Wi(e)?(l=Qc(e,!0),l.x+=e.clientLeft,l.y+=e.clientTop):i&&(l.x=HE(i))),{x:s.left+o.scrollLeft-l.x,y:s.top+o.scrollTop-l.y,width:s.width,height:s.height}}function qX(n){var e=new Map,t=new Set,r=[];n.forEach(function(i){e.set(i.name,i)});function a(i){t.add(i.name);var s=[].concat(i.requires||[],i.requiresIfExists||[]);s.forEach(function(o){if(!t.has(o)){var l=e.get(o);l&&a(l)}}),r.push(i)}return n.forEach(function(i){t.has(i.name)||a(i)}),r}function XX(n){var e=qX(n);return sX.reduce(function(t,r){return t.concat(e.filter(function(a){return a.phase===r}))},[])}function VX(n){var e;return function(){return e||(e=new Promise(function(t){Promise.resolve().then(function(){e=void 0,t(n())})})),e}}function UX(n){var e=n.reduce(function(t,r){var a=t[r.name];return t[r.name]=a?Object.assign({},a,r,{options:Object.assign({},a.options,r.options),data:Object.assign({},a.data,r.data)}):r,t},{});return Object.keys(e).map(function(t){return e[t]})}var IT={placement:"bottom",modifiers:[],strategy:"absolute"};function $T(){for(var n=arguments.length,e=new Array(n),t=0;t<n;t++)e[t]=arguments[t];return!e.some(function(r){return!(r&&typeof r.getBoundingClientRect=="function")})}function GX(n){n===void 0&&(n={});var e=n,t=e.defaultModifiers,r=t===void 0?[]:t,a=e.defaultOptions,i=a===void 0?IT:a;return function(o,l,u){u===void 0&&(u=i);var d={placement:"bottom",orderedModifiers:[],options:Object.assign({},IT,i),modifiersData:{},elements:{reference:o,popper:l},attributes:{},styles:{}},f=[],g=!1,p={state:d,setOptions:function(S){var C=typeof S=="function"?S(d.options):S;y(),d.options=Object.assign({},i,d.options,C),d.scrollParents={reference:wl(o)?jf(o):o.contextElement?jf(o.contextElement):[],popper:jf(l)};var O=XX(UX([].concat(r,d.options.modifiers)));return d.orderedModifiers=O.filter(function(D){return D.enabled}),b(),p.update()},forceUpdate:function(){if(!g){var S=d.elements,C=S.reference,O=S.popper;if($T(C,O)){d.rects={reference:WX(C,Mh(O),d.options.strategy==="fixed"),popper:$E(O)},d.reset=!1,d.placement=d.options.placement,d.orderedModifiers.forEach(function(N){return d.modifiersData[N.name]=Object.assign({},N.data)});for(var D=0;D<d.orderedModifiers.length;D++){if(d.reset===!0){d.reset=!1,D=-1;continue}var M=d.orderedModifiers[D],A=M.fn,T=M.options,P=T===void 0?{}:T,R=M.name;typeof A=="function"&&(d=A({state:d,options:P,name:R,instance:p})||d)}}}},update:VX(function(){return new Promise(function(x){p.forceUpdate(),x(d)})}),destroy:function(){y(),g=!0}};if(!$T(o,l))return p;p.setOptions(u).then(function(x){!g&&u.onFirstUpdate&&u.onFirstUpdate(x)});function b(){d.orderedModifiers.forEach(function(x){var S=x.name,C=x.options,O=C===void 0?{}:C,D=x.effect;if(typeof D=="function"){var M=D({state:d,name:S,instance:p,options:O}),A=function(){};f.push(M||A)}})}function y(){f.forEach(function(x){return x()}),f=[]}return p}}const ZX=GX({defaultModifiers:[PX,FX,vX,yX,IX,TX,zX,hX]}),QX=["enabled","placement","strategy","modifiers"];function KX(n,e){if(n==null)return{};var t={};for(var r in n)if({}.hasOwnProperty.call(n,r)){if(e.indexOf(r)>=0)continue;t[r]=n[r]}return t}const JX={name:"applyStyles",enabled:!1,phase:"afterWrite",fn:()=>{}},eV={name:"ariaDescribedBy",enabled:!0,phase:"afterWrite",effect:({state:n})=>()=>{const{reference:e,popper:t}=n.elements;if("removeAttribute"in e){const r=(e.getAttribute("aria-describedby")||"").split(",").filter(a=>a.trim()!==t.id);r.length?e.setAttribute("aria-describedby",r.join(",")):e.removeAttribute("aria-describedby")}},fn:({state:n})=>{var e;const{popper:t,reference:r}=n.elements,a=(e=t.getAttribute("role"))==null?void 0:e.toLowerCase();if(t.id&&a==="tooltip"&&"setAttribute"in r){const i=r.getAttribute("aria-describedby");if(i&&i.split(",").indexOf(t.id)!==-1)return;r.setAttribute("aria-describedby",i?`${i},${t.id}`:t.id)}}},tV=[];function jH(n,e,t={}){let{enabled:r=!0,placement:a="bottom",strategy:i="absolute",modifiers:s=tV}=t,o=KX(t,QX);const l=E.useRef(s),u=E.useRef(),d=E.useCallback(()=>{var x;(x=u.current)==null||x.update()},[]),f=E.useCallback(()=>{var x;(x=u.current)==null||x.forceUpdate()},[]),[g,p]=Uq(E.useState({placement:a,update:d,forceUpdate:f,attributes:{},styles:{popper:{},arrow:{}}})),b=E.useMemo(()=>({name:"updateStateModifier",enabled:!0,phase:"write",requires:["computeStyles"],fn:({state:x})=>{const S={},C={};Object.keys(x.elements).forEach(O=>{S[O]=x.styles[O],C[O]=x.attributes[O]}),p({state:x,styles:S,attributes:C,update:d,forceUpdate:f,placement:x.placement})}}),[d,f,p]),y=E.useMemo(()=>(Bf(l.current,s)||(l.current=s),l.current),[s]);return E.useEffect(()=>{!u.current||!r||u.current.setOptions({placement:a,strategy:i,modifiers:[...y,b,JX]})},[i,a,b,r,y]),E.useEffect(()=>{if(!(!r||n==null||e==null))return u.current=ZX(n,e,Object.assign({},o,{placement:a,strategy:i,modifiers:[...y,eV,b]})),()=>{u.current!=null&&(u.current.destroy(),u.current=void 0,p(x=>Object.assign({},x,{attributes:{},styles:{popper:{}}})))}},[r,n,e]),g}function Jf(n,e){if(n.contains)return n.contains(e);if(n.compareDocumentPosition)return n===e||!!(n.compareDocumentPosition(e)&16)}const FT=()=>{};function nV(n){return n.button===0}function rV(n){return!!(n.metaKey||n.altKey||n.ctrlKey||n.shiftKey)}const cm=n=>n&&("current"in n?n.current:n),kT={click:"mousedown",mouseup:"mousedown",pointerup:"pointerdown"};function WH(n,e=FT,{disabled:t,clickTrigger:r="click"}={}){const a=E.useRef(!1),i=E.useRef(!1),s=E.useCallback(u=>{const d=cm(n);aq(!!d,"ClickOutside captured a close event but does not have a ref to compare it to. useClickOutside(), should be passed a ref that resolves to a DOM node"),a.current=!d||rV(u)||!nV(u)||!!Jf(d,u.target)||i.current,i.current=!1},[n]),o=Yr(u=>{const d=cm(n);d&&Jf(d,u.target)?i.current=!0:i.current=!1}),l=Yr(u=>{a.current||e(u)});E.useEffect(()=>{var u,d;if(t||n==null)return;const f=pu(cm(n)),g=f.defaultView||window;let p=(u=g.event)!=null?u:(d=g.parent)==null?void 0:d.event,b=null;kT[r]&&(b=xs(f,kT[r],o,!0));const y=xs(f,r,s,!0),x=xs(f,r,C=>{if(C===p){p=void 0;return}l(C)});let S=[];return"ontouchstart"in f.documentElement&&(S=[].slice.call(f.body.children).map(C=>xs(C,"mousemove",FT))),()=>{b?.(),y(),x(),S.forEach(C=>C())}},[n,t,r,s,o,l])}function aV(n){const e={};return Array.isArray(n)?(n?.forEach(t=>{e[t.name]=t}),e):n||e}function iV(n={}){return Array.isArray(n)?n:Object.keys(n).map(e=>(n[e].name=e,n[e]))}function qH({enabled:n,enableEvents:e,placement:t,flip:r,offset:a,fixed:i,containerPadding:s,arrowElement:o,popperConfig:l={}}){var u,d,f,g,p;const b=aV(l.modifiers);return Object.assign({},l,{placement:t,enabled:n,strategy:i?"fixed":l.strategy,modifiers:iV(Object.assign({},b,{eventListeners:{enabled:e,options:(u=b.eventListeners)==null?void 0:u.options},preventOverflow:Object.assign({},b.preventOverflow,{options:s?Object.assign({padding:s},(d=b.preventOverflow)==null?void 0:d.options):(f=b.preventOverflow)==null?void 0:f.options}),offset:{options:Object.assign({offset:a},(g=b.offset)==null?void 0:g.options)},arrow:Object.assign({},b.arrow,{enabled:!!o,options:Object.assign({},(p=b.arrow)==null?void 0:p.options,{element:o})}),flip:Object.assign({enabled:!!r},b.flip)}))})}const sV=["children","usePopper"];function oV(n,e){if(n==null)return{};var t={};for(var r in n)if({}.hasOwnProperty.call(n,r)){if(e.indexOf(r)>=0)continue;t[r]=n[r]}return t}const lV=()=>{};function XH(n={}){const e=E.useContext(cv),[t,r]=XC(),a=E.useRef(!1),{flip:i,offset:s,rootCloseEvent:o,fixed:l=!1,placement:u,popperConfig:d={},enableEventListeners:f=!0,usePopper:g=!!e}=n,p=e?.show==null?!!n.show:e.show;p&&!a.current&&(a.current=!0);const b=A=>{e?.toggle(!1,A)},{placement:y,setMenu:x,menuElement:S,toggleElement:C}=e||{},O=jH(C,S,qH({placement:u||y||"bottom-start",enabled:g,enableEvents:f??p,offset:s,flip:i,fixed:l,arrowElement:t,popperConfig:d})),D=Object.assign({ref:x||lV,"aria-labelledby":C?.id},O.attributes.popper,{style:O.styles.popper}),M={show:p,placement:y,hasShown:a.current,toggle:e?.toggle,popper:g?O:null,arrowProps:g?Object.assign({ref:r},O.attributes.arrow,{style:O.styles.arrow}):{}};return WH(S,b,{clickTrigger:o,disabled:!p}),[D,M]}function VH(n){let{children:e,usePopper:t=!0}=n,r=oV(n,sV);const[a,i]=XH(Object.assign({},r,{usePopper:t}));return Re.jsx(Re.Fragment,{children:e(a,i)})}VH.displayName="DropdownMenu";const UH={prefix:String(Math.round(Math.random()*1e10)),current:0},GH=pe.createContext(UH),cV=pe.createContext(!1);let J0=new WeakMap;function uV(n=!1){let e=E.useContext(GH),t=E.useRef(null);if(t.current===null&&!n){var r,a;let i=(a=pe.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED)===null||a===void 0||(r=a.ReactCurrentOwner)===null||r===void 0?void 0:r.current;if(i){let s=J0.get(i);s==null?J0.set(i,{id:e.current,state:i.memoizedState}):i.memoizedState!==s.state&&(e.current=s.id,J0.delete(i))}t.current=++e.current}return t.current}function dV(n){let e=E.useContext(GH),t=uV(!!n),r=`react-aria${e.prefix}`;return n||`${r}-${t}`}function fV(n){let e=pe.useId(),[t]=E.useState(vV()),r=t?"react-aria":`react-aria${UH.prefix}`;return n||`${r}-${e}`}const hV=typeof pe.useId=="function"?fV:dV;function gV(){return!1}function pV(){return!0}function mV(n){return()=>{}}function vV(){return typeof pe.useSyncExternalStore=="function"?pe.useSyncExternalStore(mV,gV,pV):E.useContext(cV)}const ZH=n=>{var e;return((e=n.getAttribute("role"))==null?void 0:e.toLowerCase())==="menu"},HT=()=>{};function QH(){const n=hV(),{show:e=!1,toggle:t=HT,setToggle:r,menuElement:a}=E.useContext(cv)||{},i=E.useCallback(o=>{t(!e,o)},[e,t]),s={id:n,ref:r||HT,onClick:i,"aria-expanded":!!e};return a&&ZH(a)&&(s["aria-haspopup"]=!0),[s,{show:e,toggle:t}]}function KH({children:n}){const[e,t]=QH();return Re.jsx(Re.Fragment,{children:n(e,t)})}KH.displayName="DropdownToggle";const Jc=E.createContext(null),eh=(n,e=null)=>n!=null?String(n):e||null,dv=E.createContext(null);dv.displayName="NavContext";const bV="data-rr-ui-",yV="rrUi";function bu(n){return`${bV}${n}`}function xV(n){return`${yV}${n}`}const wV=["eventKey","disabled","onClick","active","as"];function SV(n,e){if(n==null)return{};var t={};for(var r in n)if({}.hasOwnProperty.call(n,r)){if(e.indexOf(r)>=0)continue;t[r]=n[r]}return t}function JH({key:n,href:e,active:t,disabled:r,onClick:a}){const i=E.useContext(Jc),s=E.useContext(dv),{activeKey:o}=s||{},l=eh(n,e),u=t==null&&n!=null?eh(o)===l:t;return[{onClick:Yr(f=>{r||(a?.(f),i&&!f.isPropagationStopped()&&i(l,f))}),"aria-disabled":r||void 0,"aria-selected":u,[bu("dropdown-item")]:""},{isActive:u}]}const ez=E.forwardRef((n,e)=>{let{eventKey:t,disabled:r,onClick:a,active:i,as:s=PE}=n,o=SV(n,wV);const[l]=JH({key:t,href:o.href,disabled:r,onClick:a,active:i});return Re.jsx(s,Object.assign({},o,{ref:e},l))});ez.displayName="DropdownItem";const tz=E.createContext(mu?window:void 0);tz.Provider;function fv(){return E.useContext(tz)}function zT(){const n=LH(),e=E.useRef(null),t=E.useCallback(r=>{e.current=r,n()},[n]);return[e,t]}function Dh({defaultShow:n,show:e,onSelect:t,onToggle:r,itemSelector:a=`* [${bu("dropdown-item")}]`,focusFirstItemOnShow:i,placement:s="bottom-start",children:o}){const l=fv(),[u,d]=Vq(e,n,r),[f,g]=zT(),p=f.current,[b,y]=zT(),x=b.current,S=_H(u),C=E.useRef(null),O=E.useRef(!1),D=E.useContext(Jc),M=E.useCallback((I,$,Y=$?.type)=>{d(I,{originalEvent:$,source:Y})},[d]),A=Yr((I,$)=>{t?.(I,$),M(!1,$,"select"),$.isPropagationStopped()||D?.(I,$)}),T=E.useMemo(()=>({toggle:M,placement:s,show:u,menuElement:p,toggleElement:x,setMenu:g,setToggle:y}),[M,s,u,p,x,g,y]);p&&S&&!u&&(O.current=p.contains(p.ownerDocument.activeElement));const P=Yr(()=>{x&&x.focus&&x.focus()}),R=Yr(()=>{const I=C.current;let $=i;if($==null&&($=f.current&&ZH(f.current)?"keyboard":!1),$===!1||$==="keyboard"&&!/^key.+$/.test(I))return;const Y=ys(f.current,a)[0];Y&&Y.focus&&Y.focus()});E.useEffect(()=>{u?R():O.current&&(O.current=!1,P())},[u,O,P,R]),E.useEffect(()=>{C.current=null});const N=(I,$)=>{if(!f.current)return null;const Y=ys(f.current,a);let k=Y.indexOf(I)+$;return k=Math.max(0,Math.min(k,Y.length)),Y[k]};return Tq(E.useCallback(()=>l.document,[l]),"keydown",I=>{var $,Y;const{key:k}=I,H=I.target,F=($=f.current)==null?void 0:$.contains(H),B=(Y=b.current)==null?void 0:Y.contains(H);if(/input|textarea/i.test(H.tagName)&&(k===" "||k!=="Escape"&&F||k==="Escape"&&H.type==="search")||!F&&!B||k==="Tab"&&(!f.current||!u))return;C.current=I.type;const Q={originalEvent:I,source:I.type};switch(k){case"ArrowUp":{const z=N(H,-1);z&&z.focus&&z.focus(),I.preventDefault();return}case"ArrowDown":if(I.preventDefault(),!u)d(!0,Q);else{const z=N(H,1);z&&z.focus&&z.focus()}return;case"Tab":TE(H.ownerDocument,"keyup",z=>{var V;(z.key==="Tab"&&!z.target||!((V=f.current)!=null&&V.contains(z.target)))&&d(!1,Q)},{once:!0});break;case"Escape":k==="Escape"&&(I.preventDefault(),I.stopPropagation()),d(!1,Q);break}}),Re.jsx(Jc.Provider,{value:A,children:Re.jsx(cv.Provider,{value:T,children:o})})}Dh.displayName="Dropdown";Dh.Menu=VH;Dh.Toggle=KH;Dh.Item=ez;const BE=E.createContext({});BE.displayName="DropdownContext";const nz=E.forwardRef(({className:n,bsPrefix:e,as:t="hr",role:r="separator",...a},i)=>(e=Yt(e,"dropdown-divider"),Re.jsx(t,{ref:i,className:Te(n,e),role:r,...a})));nz.displayName="DropdownDivider";const rz=E.forwardRef(({className:n,bsPrefix:e,as:t="div",role:r="heading",...a},i)=>(e=Yt(e,"dropdown-header"),Re.jsx(t,{ref:i,className:Te(n,e),role:r,...a})));rz.displayName="DropdownHeader";const az=E.forwardRef(({bsPrefix:n,className:e,eventKey:t,disabled:r=!1,onClick:a,active:i,as:s=AH,...o},l)=>{const u=Yt(n,"dropdown-item"),[d,f]=JH({key:t,href:o.href,disabled:r,onClick:a,active:i});return Re.jsx(s,{...o,...d,ref:l,className:Te(e,u,f.isActive&&"active",r&&"disabled")})});az.displayName="DropdownItem";const iz=E.forwardRef(({className:n,bsPrefix:e,as:t="span",...r},a)=>(e=Yt(e,"dropdown-item-text"),Re.jsx(t,{ref:a,className:Te(n,e),...r})));iz.displayName="DropdownItemText";const CV=typeof global<"u"&&global.navigator&&global.navigator.product==="ReactNative",OV=typeof document<"u",sz=OV||CV?E.useLayoutEffect:E.useEffect,YE=E.createContext(null);YE.displayName="InputGroupContext";const oz=E.createContext(null);oz.displayName="NavbarContext";function lz(n,e){return n}function cz(n,e,t){const r=t?"top-end":"top-start",a=t?"top-start":"top-end",i=t?"bottom-end":"bottom-start",s=t?"bottom-start":"bottom-end",o=t?"right-start":"left-start",l=t?"right-end":"left-end",u=t?"left-start":"right-start",d=t?"left-end":"right-end";let f=n?s:i;return e==="up"?f=n?a:r:e==="end"?f=n?d:u:e==="start"?f=n?l:o:e==="down-centered"?f="bottom":e==="up-centered"&&(f="top"),f}const uz=E.forwardRef(({bsPrefix:n,className:e,align:t,rootCloseEvent:r,flip:a=!0,show:i,renderOnMount:s,as:o="div",popperConfig:l,variant:u,...d},f)=>{let g=!1;const p=E.useContext(oz),b=Yt(n,"dropdown-menu"),{align:y,drop:x,isRTL:S}=E.useContext(BE);t=t||y;const C=E.useContext(YE),O=[];if(t)if(typeof t=="object"){const I=Object.keys(t);if(I.length){const $=I[0],Y=t[$];g=Y==="start",O.push(`${b}-${$}-${Y}`)}}else t==="end"&&(g=!0);const D=cz(g,x,S),[M,{hasShown:A,popper:T,show:P,toggle:R}]=XH({flip:a,rootCloseEvent:r,show:i,usePopper:!p&&O.length===0,offset:[0,2],popperConfig:l,placement:D});if(M.ref=vu(lz(f),M.ref),sz(()=>{P&&T?.update()},[P]),!A&&!s&&!C)return null;typeof o!="string"&&(M.show=P,M.close=()=>R?.(!1),M.align=t);let N=d.style;return T!=null&&T.placement&&(N={...d.style,...M.style},d["x-placement"]=T.placement),Re.jsx(o,{...d,...M,style:N,...(O.length||p)&&{"data-bs-popper":"static"},className:Te(e,b,P&&"show",g&&`${b}-end`,u&&`${b}-${u}`,...O)})});uz.displayName="DropdownMenu";const dz=E.forwardRef(({bsPrefix:n,split:e,className:t,childBsPrefix:r,as:a=TH,...i},s)=>{const o=Yt(n,"dropdown-toggle"),l=E.useContext(cv);r!==void 0&&(i.bsPrefix=r);const[u]=QH();return u.ref=vu(u.ref,lz(s)),Re.jsx(a,{className:Te(t,o,e&&`${o}-split`,l?.show&&"show"),...u,...i})});dz.displayName="DropdownToggle";const fz=E.forwardRef((n,e)=>{const{bsPrefix:t,drop:r="down",show:a,className:i,align:s="start",onSelect:o,onToggle:l,focusFirstItemOnShow:u,as:d="div",navbar:f,autoClose:g=!0,...p}=SH(n,{show:"onToggle"}),b=E.useContext(YE),y=Yt(t,"dropdown"),x=lv(),S=T=>g===!1?T==="click":g==="inside"?T!=="rootClose":g==="outside"?T!=="select":!0,C=Uc((T,P)=>{var R;!((R=P.originalEvent)==null||(R=R.target)==null)&&R.classList.contains("dropdown-toggle")&&P.source==="mousedown"||(P.originalEvent.currentTarget===document&&(P.source!=="keydown"||P.originalEvent.key==="Escape")&&(P.source="rootClose"),S(P.source)&&l?.(T,P))}),D=cz(s==="end",r,x),M=E.useMemo(()=>({align:s,drop:r,isRTL:x}),[s,r,x]),A={down:y,"down-centered":`${y}-center`,up:"dropup","up-centered":"dropup-center dropup",end:"dropend",start:"dropstart"};return Re.jsx(BE.Provider,{value:M,children:Re.jsx(Dh,{placement:D,show:a,onSelect:o,onToggle:C,focusFirstItemOnShow:u,itemSelector:`.${y}-item:not(.disabled):not(:disabled)`,children:b?p.children:Re.jsx(d,{...p,ref:e,className:Te(i,a&&"show",A[r])})})})});fz.displayName="Dropdown";const ude=Object.assign(fz,{Toggle:dz,Menu:uz,Item:az,ItemText:iz,Divider:nz,Header:rz}),BT=n=>!n||typeof n=="function"?n:e=>{n.current=e};function EV(n,e){const t=BT(n),r=BT(e);return a=>{t&&t(a),r&&r(a)}}function _h(n,e){return E.useMemo(()=>EV(n,e),[n,e])}const hz=E.createContext(null),MV=["as","active","eventKey"];function DV(n,e){if(n==null)return{};var t={};for(var r in n)if({}.hasOwnProperty.call(n,r)){if(e.indexOf(r)>=0)continue;t[r]=n[r]}return t}function gz({key:n,onClick:e,active:t,id:r,role:a,disabled:i}){const s=E.useContext(Jc),o=E.useContext(dv),l=E.useContext(hz);let u=t;const d={role:a};if(o){!a&&o.role==="tablist"&&(d.role="tab");const f=o.getControllerId(n??null),g=o.getControlledId(n??null);d[bu("event-key")]=n,d.id=f||r,u=t==null&&n!=null?o.activeKey===n:t,(u||!(l!=null&&l.unmountOnExit)&&!(l!=null&&l.mountOnEnter))&&(d["aria-controls"]=g)}return d.role==="tab"&&(d["aria-selected"]=u,u||(d.tabIndex=-1),i&&(d.tabIndex=-1,d["aria-disabled"]=!0)),d.onClick=Yr(f=>{i||(e?.(f),n!=null&&s&&!f.isPropagationStopped()&&s(n,f))}),[d,{isActive:u}]}const pz=E.forwardRef((n,e)=>{let{as:t=PE,active:r,eventKey:a}=n,i=DV(n,MV);const[s,o]=gz(Object.assign({key:eh(a,i.href),active:r},i));return s[bu("active")]=o.isActive,Re.jsx(t,Object.assign({},i,s,{ref:e}))});pz.displayName="NavItem";const _V=["as","onSelect","activeKey","role","onKeyDown"];function AV(n,e){if(n==null)return{};var t={};for(var r in n)if({}.hasOwnProperty.call(n,r)){if(e.indexOf(r)>=0)continue;t[r]=n[r]}return t}const YT=()=>{},jT=bu("event-key"),mz=E.forwardRef((n,e)=>{let{as:t="div",onSelect:r,activeKey:a,role:i,onKeyDown:s}=n,o=AV(n,_V);const l=LH(),u=E.useRef(!1),d=E.useContext(Jc),f=E.useContext(hz);let g,p;f&&(i=i||"tablist",a=f.activeKey,g=f.getControlledId,p=f.getControllerId);const b=E.useRef(null),y=O=>{const D=b.current;if(!D)return null;const M=ys(D,`[${jT}]:not([aria-disabled=true])`),A=D.querySelector("[aria-selected=true]");if(!A||A!==document.activeElement)return null;const T=M.indexOf(A);if(T===-1)return null;let P=T+O;return P>=M.length&&(P=0),P<0&&(P=M.length-1),M[P]},x=(O,D)=>{O!=null&&(r?.(O,D),d?.(O,D))},S=O=>{if(s?.(O),!f)return;let D;switch(O.key){case"ArrowLeft":case"ArrowUp":D=y(-1);break;case"ArrowRight":case"ArrowDown":D=y(1);break;default:return}D&&(O.preventDefault(),x(D.dataset[xV("EventKey")]||null,O),u.current=!0,l())};E.useEffect(()=>{if(b.current&&u.current){const O=b.current.querySelector(`[${jT}][aria-selected=true]`);O?.focus()}u.current=!1});const C=_h(e,b);return Re.jsx(Jc.Provider,{value:x,children:Re.jsx(dv.Provider,{value:{role:i,activeKey:eh(a),getControlledId:g||YT,getControllerId:p||YT},children:Re.jsx(t,Object.assign({},o,{onKeyDown:S,ref:C,role:i}))})})});mz.displayName="Nav";const TV=Object.assign(mz,{Item:pz}),vz=E.forwardRef(({bsPrefix:n,active:e,disabled:t,eventKey:r,className:a,variant:i,action:s,as:o,...l},u)=>{n=Yt(n,"list-group-item");const[d,f]=gz({key:eh(r,l.href),active:e,...l}),g=Uc(b=>{if(t){b.preventDefault(),b.stopPropagation();return}d.onClick(b)});t&&l.tabIndex===void 0&&(l.tabIndex=-1,l["aria-disabled"]=!0);const p=o||(s?l.href?"a":"button":"div");return Re.jsx(p,{ref:u,...l,...d,onClick:g,className:Te(a,n,f.isActive&&"active",t&&"disabled",i&&`${n}-${i}`,s&&`${n}-action`)})});vz.displayName="ListGroupItem";const bz=E.forwardRef((n,e)=>{const{className:t,bsPrefix:r,variant:a,horizontal:i,numbered:s,as:o="div",...l}=SH(n,{activeKey:"onSelect"}),u=Yt(r,"list-group");let d;return i&&(d=i===!0?"horizontal":`horizontal-${i}`),Re.jsx(TV,{ref:e,...l,as:o,className:Te(t,u,a&&`${u}-${a}`,d&&`${u}-${d}`,s&&`${u}-numbered`)})});bz.displayName="ListGroup";const dde=Object.assign(bz,{Item:vz});var ep;function WT(n){if((!ep&&ep!==0||n)&&mu){var e=document.createElement("div");e.style.position="absolute",e.style.top="-9999px",e.style.width="50px",e.style.height="50px",e.style.overflow="scroll",document.body.appendChild(e),ep=e.offsetWidth-e.clientWidth,document.body.removeChild(e)}return ep}function RV(){return E.useState(null)}function ey(n){n===void 0&&(n=pu());try{var e=n.activeElement;return!e||!e.nodeName?null:e}catch{return n.body}}function PV(n){const e=E.useRef(n);return e.current=n,e}function LV(n){const e=PV(n);E.useEffect(()=>()=>e.current(),[])}function NV(n=document){const e=n.defaultView;return Math.abs(e.innerWidth-n.documentElement.clientWidth)}const qT=bu("modal-open");class jE{constructor({ownerDocument:e,handleContainerOverflow:t=!0,isRTL:r=!1}={}){this.handleContainerOverflow=t,this.isRTL=r,this.modals=[],this.ownerDocument=e}getScrollbarWidth(){return NV(this.ownerDocument)}getElement(){return(this.ownerDocument||document).body}setModalAttributes(e){}removeModalAttributes(e){}setContainerStyle(e){const t={overflow:"hidden"},r=this.isRTL?"paddingLeft":"paddingRight",a=this.getElement();e.style={overflow:a.style.overflow,[r]:a.style[r]},e.scrollBarWidth&&(t[r]=`${parseInt(ml(a,r)||"0",10)+e.scrollBarWidth}px`),a.setAttribute(qT,""),ml(a,t)}reset(){[...this.modals].forEach(e=>this.remove(e))}removeContainerStyle(e){const t=this.getElement();t.removeAttribute(qT),Object.assign(t.style,e.style)}add(e){let t=this.modals.indexOf(e);return t!==-1||(t=this.modals.length,this.modals.push(e),this.setModalAttributes(e),t!==0)||(this.state={scrollBarWidth:this.getScrollbarWidth(),style:{}},this.handleContainerOverflow&&this.setContainerStyle(this.state)),t}remove(e){const t=this.modals.indexOf(e);t!==-1&&(this.modals.splice(t,1),!this.modals.length&&this.handleContainerOverflow&&this.removeContainerStyle(this.state),this.removeModalAttributes(e))}isTopModal(e){return!!this.modals.length&&this.modals[this.modals.length-1]===e}}const ty=(n,e)=>mu?n==null?(e||pu()).body:(typeof n=="function"&&(n=n()),n&&"current"in n&&(n=n.current),n&&("nodeType"in n||n.getBoundingClientRect)?n:null):null;function ZC(n,e){const t=fv(),[r,a]=E.useState(()=>ty(n,t?.document));if(!r){const i=ty(n);i&&a(i)}return E.useEffect(()=>{},[e,r]),E.useEffect(()=>{const i=ty(n);i!==r&&a(i)},[n,r]),r}function IV({children:n,in:e,onExited:t,mountOnEnter:r,unmountOnExit:a}){const i=E.useRef(null),s=E.useRef(e),o=Yr(t);E.useEffect(()=>{e?s.current=!0:o(i.current)},[e,o]);const l=_h(i,Oh(n)),u=E.cloneElement(n,{ref:l});return e?u:a||!s.current&&r?null:u}const $V=["onEnter","onEntering","onEntered","onExit","onExiting","onExited","addEndListener","children"];function FV(n,e){if(n==null)return{};var t={};for(var r in n)if({}.hasOwnProperty.call(n,r)){if(e.indexOf(r)>=0)continue;t[r]=n[r]}return t}function kV(n){let{onEnter:e,onEntering:t,onEntered:r,onExit:a,onExiting:i,onExited:s,addEndListener:o,children:l}=n,u=FV(n,$V);const d=E.useRef(null),f=_h(d,Oh(l)),g=D=>M=>{D&&d.current&&D(d.current,M)},p=E.useCallback(g(e),[e]),b=E.useCallback(g(t),[t]),y=E.useCallback(g(r),[r]),x=E.useCallback(g(a),[a]),S=E.useCallback(g(i),[i]),C=E.useCallback(g(s),[s]),O=E.useCallback(g(o),[o]);return Object.assign({},u,{nodeRef:d},e&&{onEnter:p},t&&{onEntering:b},r&&{onEntered:y},a&&{onExit:x},i&&{onExiting:S},s&&{onExited:C},o&&{addEndListener:O},{children:typeof l=="function"?(D,M)=>l(D,Object.assign({},M,{ref:f})):E.cloneElement(l,{ref:f})})}const HV=["component"];function zV(n,e){if(n==null)return{};var t={};for(var r in n)if({}.hasOwnProperty.call(n,r)){if(e.indexOf(r)>=0)continue;t[r]=n[r]}return t}const BV=E.forwardRef((n,e)=>{let{component:t}=n,r=zV(n,HV);const a=kV(r);return Re.jsx(t,Object.assign({ref:e},a))});function YV({in:n,onTransition:e}){const t=E.useRef(null),r=E.useRef(!0),a=Yr(e);return ET(()=>{if(!t.current)return;let i=!1;return a({in:n,element:t.current,initial:r.current,isStale:()=>i}),()=>{i=!0}},[n,a]),ET(()=>(r.current=!1,()=>{r.current=!0}),[]),t}function jV({children:n,in:e,onExited:t,onEntered:r,transition:a}){const[i,s]=E.useState(!e);e&&i&&s(!1);const o=YV({in:!!e,onTransition:u=>{const d=()=>{u.isStale()||(u.in?r?.(u.element,u.initial):(s(!0),t?.(u.element)))};Promise.resolve(a(u)).then(d,f=>{throw u.in||s(!0),f})}}),l=_h(o,Oh(n));return i&&!e?null:E.cloneElement(n,{ref:l})}function QC(n,e,t){return n?Re.jsx(BV,Object.assign({},t,{component:n})):e?Re.jsx(jV,Object.assign({},t,{transition:e})):Re.jsx(IV,Object.assign({},t))}const WV=["show","role","className","style","children","backdrop","keyboard","onBackdropClick","onEscapeKeyDown","transition","runTransition","backdropTransition","runBackdropTransition","autoFocus","enforceFocus","restoreFocus","restoreFocusOptions","renderDialog","renderBackdrop","manager","container","onShow","onHide","onExit","onExited","onExiting","onEnter","onEntering","onEntered"];function qV(n,e){if(n==null)return{};var t={};for(var r in n)if({}.hasOwnProperty.call(n,r)){if(e.indexOf(r)>=0)continue;t[r]=n[r]}return t}let ny;function XV(n){return ny||(ny=new jE({ownerDocument:n?.document})),ny}function VV(n){const e=fv(),t=n||XV(e),r=E.useRef({dialog:null,backdrop:null});return Object.assign(r.current,{add:()=>t.add(r.current),remove:()=>t.remove(r.current),isTopModal:()=>t.isTopModal(r.current),setDialogRef:E.useCallback(a=>{r.current.dialog=a},[]),setBackdropRef:E.useCallback(a=>{r.current.backdrop=a},[])})}const yz=E.forwardRef((n,e)=>{let{show:t=!1,role:r="dialog",className:a,style:i,children:s,backdrop:o=!0,keyboard:l=!0,onBackdropClick:u,onEscapeKeyDown:d,transition:f,runTransition:g,backdropTransition:p,runBackdropTransition:b,autoFocus:y=!0,enforceFocus:x=!0,restoreFocus:S=!0,restoreFocusOptions:C,renderDialog:O,renderBackdrop:D=De=>Re.jsx("div",Object.assign({},De)),manager:M,container:A,onShow:T,onHide:P=()=>{},onExit:R,onExited:N,onExiting:I,onEnter:$,onEntering:Y,onEntered:k}=n,H=qV(n,WV);const F=fv(),B=ZC(A),X=VV(M),Q=DH(),z=_H(t),[V,j]=E.useState(!t),q=E.useRef(null);E.useImperativeHandle(e,()=>X,[X]),mu&&!z&&t&&(q.current=ey(F?.document)),t&&V&&j(!1);const G=Yr(()=>{if(X.add(),ce.current=xs(document,"keydown",ne),ie.current=xs(document,"focus",()=>setTimeout(K),!0),T&&T(),y){var De,Ce;const Le=ey((De=(Ce=X.dialog)==null?void 0:Ce.ownerDocument)!=null?De:F?.document);X.dialog&&Le&&!Jf(X.dialog,Le)&&(q.current=Le,X.dialog.focus())}}),U=Yr(()=>{if(X.remove(),ce.current==null||ce.current(),ie.current==null||ie.current(),S){var De;(De=q.current)==null||De.focus==null||De.focus(C),q.current=null}});E.useEffect(()=>{!t||!B||G()},[t,B,G]),E.useEffect(()=>{V&&U()},[V,U]),LV(()=>{U()});const K=Yr(()=>{if(!x||!Q()||!X.isTopModal())return;const De=ey(F?.document);X.dialog&&De&&!Jf(X.dialog,De)&&X.dialog.focus()}),te=Yr(De=>{De.target===De.currentTarget&&(u?.(De),o===!0&&P())}),ne=Yr(De=>{l&&OH(De)&&X.isTopModal()&&(d?.(De),De.defaultPrevented||P())}),ie=E.useRef(),ce=E.useRef(),ue=(...De)=>{j(!0),N?.(...De)};if(!B)return null;const be=Object.assign({role:r,ref:X.setDialogRef,"aria-modal":r==="dialog"?!0:void 0},H,{style:i,className:a,tabIndex:-1});let me=O?O(be):Re.jsx("div",Object.assign({},be,{children:E.cloneElement(s,{role:"document"})}));me=QC(f,g,{unmountOnExit:!0,mountOnEnter:!0,appear:!0,in:!!t,onExit:R,onExiting:I,onExited:ue,onEnter:$,onEntering:Y,onEntered:k,children:me});let ye=null;return o&&(ye=D({ref:X.setBackdropRef,onClick:te}),ye=QC(p,b,{in:!!t,appear:!0,mountOnEnter:!0,unmountOnExit:!0,children:ye})),Re.jsx(Re.Fragment,{children:ba.createPortal(Re.jsxs(Re.Fragment,{children:[ye,me]}),B)})});yz.displayName="Modal";const UV=Object.assign(yz,{Manager:jE});function KC(n,e){return n.classList?!!e&&n.classList.contains(e):(" "+(n.className.baseVal||n.className)+" ").indexOf(" "+e+" ")!==-1}function GV(n,e){n.classList?n.classList.add(e):KC(n,e)||(typeof n.className=="string"?n.className=n.className+" "+e:n.setAttribute("class",(n.className&&n.className.baseVal||"")+" "+e))}function XT(n,e){return n.replace(new RegExp("(^|\\s)"+e+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function ZV(n,e){n.classList?n.classList.remove(e):typeof n.className=="string"?n.className=XT(n.className,e):n.setAttribute("class",XT(n.className&&n.className.baseVal||"",e))}const Rc={FIXED_CONTENT:".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",STICKY_CONTENT:".sticky-top",NAVBAR_TOGGLER:".navbar-toggler"};class QV extends jE{adjustAndStore(e,t,r){const a=t.style[e];t.dataset[e]=a,ml(t,{[e]:`${parseFloat(ml(t,e))+r}px`})}restore(e,t){const r=t.dataset[e];r!==void 0&&(delete t.dataset[e],ml(t,{[e]:r}))}setContainerStyle(e){super.setContainerStyle(e);const t=this.getElement();if(GV(t,"modal-open"),!e.scrollBarWidth)return;const r=this.isRTL?"paddingLeft":"paddingRight",a=this.isRTL?"marginLeft":"marginRight";ys(t,Rc.FIXED_CONTENT).forEach(i=>this.adjustAndStore(r,i,e.scrollBarWidth)),ys(t,Rc.STICKY_CONTENT).forEach(i=>this.adjustAndStore(a,i,-e.scrollBarWidth)),ys(t,Rc.NAVBAR_TOGGLER).forEach(i=>this.adjustAndStore(a,i,e.scrollBarWidth))}removeContainerStyle(e){super.removeContainerStyle(e);const t=this.getElement();ZV(t,"modal-open");const r=this.isRTL?"paddingLeft":"paddingRight",a=this.isRTL?"marginLeft":"marginRight";ys(t,Rc.FIXED_CONTENT).forEach(i=>this.restore(r,i)),ys(t,Rc.STICKY_CONTENT).forEach(i=>this.restore(a,i)),ys(t,Rc.NAVBAR_TOGGLER).forEach(i=>this.restore(a,i))}}let ry;function KV(n){return ry||(ry=new QV(n)),ry}const xz=E.forwardRef(({className:n,bsPrefix:e,as:t="div",...r},a)=>(e=Yt(e,"modal-body"),Re.jsx(t,{ref:a,className:Te(n,e),...r})));xz.displayName="ModalBody";const wz=E.createContext({onHide(){}}),WE=E.forwardRef(({bsPrefix:n,className:e,contentClassName:t,centered:r,size:a,fullscreen:i,children:s,scrollable:o,...l},u)=>{n=Yt(n,"modal");const d=`${n}-dialog`,f=typeof i=="string"?`${n}-fullscreen-${i}`:`${n}-fullscreen`;return Re.jsx("div",{...l,ref:u,className:Te(d,e,a&&`${n}-${a}`,r&&`${d}-centered`,o&&`${d}-scrollable`,i&&f),children:Re.jsx("div",{className:Te(`${n}-content`,t),children:s})})});WE.displayName="ModalDialog";const Sz=E.forwardRef(({className:n,bsPrefix:e,as:t="div",...r},a)=>(e=Yt(e,"modal-footer"),Re.jsx(t,{ref:a,className:Te(n,e),...r})));Sz.displayName="ModalFooter";const Cz=E.forwardRef(({closeLabel:n="Close",closeVariant:e,closeButton:t=!1,onHide:r,children:a,...i},s)=>{const o=E.useContext(wz),l=Uc(()=>{o?.onHide(),r?.()});return Re.jsxs("div",{ref:s,...i,children:[a,t&&Re.jsx(LE,{"aria-label":n,variant:e,onClick:l})]})});Cz.displayName="AbstractModalHeader";const Oz=E.forwardRef(({bsPrefix:n,className:e,closeLabel:t="Close",closeButton:r=!1,...a},i)=>(n=Yt(n,"modal-header"),Re.jsx(Cz,{ref:i,...a,className:Te(e,n),closeLabel:t,closeButton:r})));Oz.displayName="ModalHeader";const JV=_q("h4"),Ez=E.forwardRef(({className:n,bsPrefix:e,as:t=JV,...r},a)=>(e=Yt(e,"modal-title"),Re.jsx(t,{ref:a,className:Te(n,e),...r})));Ez.displayName="ModalTitle";function e8(n){return Re.jsx(Zf,{...n,timeout:null})}function t8(n){return Re.jsx(Zf,{...n,timeout:null})}const Mz=E.forwardRef(({bsPrefix:n,className:e,style:t,dialogClassName:r,contentClassName:a,children:i,dialogAs:s=WE,"data-bs-theme":o,"aria-labelledby":l,"aria-describedby":u,"aria-label":d,show:f=!1,animation:g=!0,backdrop:p=!0,keyboard:b=!0,onEscapeKeyDown:y,onShow:x,onHide:S,container:C,autoFocus:O=!0,enforceFocus:D=!0,restoreFocus:M=!0,restoreFocusOptions:A,onEntered:T,onExit:P,onExiting:R,onEnter:N,onEntering:I,onExited:$,backdropClassName:Y,manager:k,...H},F)=>{const[B,X]=E.useState({}),[Q,z]=E.useState(!1),V=E.useRef(!1),j=E.useRef(!1),q=E.useRef(null),[G,U]=RV(),K=vu(F,U),te=Uc(S),ne=lv();n=Yt(n,"modal");const ie=E.useMemo(()=>({onHide:te}),[te]);function ce(){return k||KV({isRTL:ne})}function ue(Ee){if(!mu)return;const st=ce().getScrollbarWidth()>0,ht=Ee.scrollHeight>pu(Ee).documentElement.clientHeight;X({paddingRight:st&&!ht?WT():void 0,paddingLeft:!st&&ht?WT():void 0})}const be=Uc(()=>{G&&ue(G.dialog)});RH(()=>{qC(window,"resize",be),q.current==null||q.current()});const me=()=>{V.current=!0},ye=Ee=>{V.current&&G&&Ee.target===G.dialog&&(j.current=!0),V.current=!1},De=()=>{z(!0),q.current=EH(G.dialog,()=>{z(!1)})},Ce=Ee=>{Ee.target===Ee.currentTarget&&De()},Le=Ee=>{if(p==="static"){Ce(Ee);return}if(j.current||Ee.target!==Ee.currentTarget){j.current=!1;return}S?.()},Ne=Ee=>{b?y?.(Ee):(Ee.preventDefault(),p==="static"&&De())},Ve=(Ee,st)=>{Ee&&ue(Ee),N?.(Ee,st)},ze=Ee=>{q.current==null||q.current(),P?.(Ee)},$e=(Ee,st)=>{I?.(Ee,st),TE(window,"resize",be)},Be=Ee=>{Ee&&(Ee.style.display=""),$?.(Ee),qC(window,"resize",be)},ut=E.useCallback(Ee=>Re.jsx("div",{...Ee,className:Te(`${n}-backdrop`,Y,!g&&"show")}),[g,Y,n]),He={...t,...B};He.display="block";const Qe=Ee=>Re.jsx("div",{role:"dialog",...Ee,style:He,className:Te(e,n,Q&&`${n}-static`,!g&&"show"),onClick:p?Le:void 0,onMouseUp:ye,"data-bs-theme":o,"aria-label":d,"aria-labelledby":l,"aria-describedby":u,children:Re.jsx(s,{...H,onMouseDown:me,className:r,contentClassName:a,children:i})});return Re.jsx(wz.Provider,{value:ie,children:Re.jsx(UV,{show:f,ref:K,backdrop:p,container:C,keyboard:!0,autoFocus:O,enforceFocus:D,restoreFocus:M,restoreFocusOptions:A,onEscapeKeyDown:Ne,onShow:x,onHide:S,onEnter:Ve,onEntering:$e,onEntered:T,onExit:ze,onExiting:R,onExited:Be,manager:ce(),transition:g?e8:void 0,backdropTransition:g?t8:void 0,renderBackdrop:ut,renderDialog:Qe})})});Mz.displayName="Modal";const fde=Object.assign(Mz,{Body:xz,Header:Oz,Title:Ez,Footer:Sz,Dialog:WE,TRANSITION_DURATION:300,BACKDROP_TRANSITION_DURATION:150}),n8=()=>{};function r8(n,e,{disabled:t,clickTrigger:r}={}){const a=e||n8;WH(n,a,{disabled:t,clickTrigger:r});const i=Yr(s=>{OH(s)&&a(s)});E.useEffect(()=>{if(t||n==null)return;const s=pu(cm(n));let o=(s.defaultView||window).event;const l=xs(s,"keyup",u=>{if(u===o){o=void 0;return}i(u)});return()=>{l()}},[n,t,i])}const Dz=E.forwardRef((n,e)=>{const{flip:t,offset:r,placement:a,containerPadding:i,popperConfig:s={},transition:o,runTransition:l}=n,[u,d]=XC(),[f,g]=XC(),p=_h(d,e),b=ZC(n.container),y=ZC(n.target),[x,S]=E.useState(!n.show),C=jH(y,u,qH({placement:a,enableEvents:!!n.show,containerPadding:i||5,flip:t,offset:r,arrowElement:f,popperConfig:s}));n.show&&x&&S(!1);const O=(...I)=>{S(!0),n.onExited&&n.onExited(...I)},D=n.show||!x;if(r8(u,n.onHide,{disabled:!n.rootClose||n.rootCloseDisabled,clickTrigger:n.rootCloseEvent}),!D)return null;const{onExit:M,onExiting:A,onEnter:T,onEntering:P,onEntered:R}=n;let N=n.children(Object.assign({},C.attributes.popper,{style:C.styles.popper,ref:p}),{popper:C,placement:a,show:!!n.show,arrowProps:Object.assign({},C.attributes.arrow,{style:C.styles.arrow,ref:g})});return N=QC(o,l,{in:!!n.show,appear:!0,mountOnEnter:!0,unmountOnExit:!0,children:N,onExit:M,onExiting:A,onExited:O,onEnter:T,onEntering:P,onEntered:R}),b?ba.createPortal(N,b):null});Dz.displayName="Overlay";const _z=E.forwardRef(({className:n,bsPrefix:e,as:t="div",...r},a)=>(e=Yt(e,"popover-header"),Re.jsx(t,{ref:a,className:Te(n,e),...r})));_z.displayName="PopoverHeader";const qE=E.forwardRef(({className:n,bsPrefix:e,as:t="div",...r},a)=>(e=Yt(e,"popover-body"),Re.jsx(t,{ref:a,className:Te(n,e),...r})));qE.displayName="PopoverBody";function Az(n,e){let t=n;return n==="left"?t=e?"end":"start":n==="right"&&(t=e?"start":"end"),t}function Tz(n="absolute"){return{position:n,top:"0",left:"0",opacity:"0",pointerEvents:"none"}}const Rz=E.forwardRef(({bsPrefix:n,placement:e="right",className:t,style:r,children:a,body:i,arrowProps:s,hasDoneInitialMeasure:o,popper:l,show:u,...d},f)=>{const g=Yt(n,"popover"),p=lv(),[b]=e?.split("-")||[],y=Az(b,p);let x=r;return u&&!o&&(x={...r,...Tz(l?.strategy)}),Re.jsxs("div",{ref:f,role:"tooltip",style:x,"x-placement":b,className:Te(t,g,b&&`bs-popover-${y}`),...d,children:[Re.jsx("div",{className:"popover-arrow",...s}),i?Re.jsx(qE,{children:a}):a]})});Rz.displayName="Popover";const a8=Object.assign(Rz,{Header:_z,Body:qE,POPPER_OFFSET:[0,8]}),Pz=E.forwardRef(({bsPrefix:n,placement:e="right",className:t,style:r,children:a,arrowProps:i,hasDoneInitialMeasure:s,popper:o,show:l,...u},d)=>{n=Yt(n,"tooltip");const f=lv(),[g]=e?.split("-")||[],p=Az(g,f);let b=r;return l&&!s&&(b={...r,...Tz(o?.strategy)}),Re.jsxs("div",{ref:d,style:b,role:"tooltip","x-placement":g,className:Te(t,n,`bs-tooltip-${p}`),...u,children:[Re.jsx("div",{className:"tooltip-arrow",...i}),Re.jsx("div",{className:`${n}-inner`,children:a})]})});Pz.displayName="Tooltip";const i8=Object.assign(Pz,{TOOLTIP_OFFSET:[0,6]});function s8(n){const e=E.useRef(null),t=Yt(void 0,"popover"),r=Yt(void 0,"tooltip"),a=E.useMemo(()=>({name:"offset",options:{offset:()=>{if(n)return n;if(e.current){if(KC(e.current,t))return a8.POPPER_OFFSET;if(KC(e.current,r))return i8.TOOLTIP_OFFSET}return[0,0]}}}),[n,t,r]);return[e,[a]]}function o8(n,e){const{ref:t}=n,{ref:r}=e;n.ref=t.__wrapped||(t.__wrapped=a=>t(Pm(a))),e.ref=r.__wrapped||(r.__wrapped=a=>r(Pm(a)))}const Lz=E.forwardRef(({children:n,transition:e=Zf,popperConfig:t={},rootClose:r=!1,placement:a="top",show:i=!1,...s},o)=>{const l=E.useRef({}),[u,d]=E.useState(null),[f,g]=s8(s.offset),p=vu(o,f),b=e===!0?Zf:e||void 0,y=Uc(x=>{d(x),t==null||t.onFirstUpdate==null||t.onFirstUpdate(x)});return sz(()=>{u&&s.target&&(l.current.scheduleUpdate==null||l.current.scheduleUpdate())},[u,s.target]),E.useEffect(()=>{i||d(null)},[i]),Re.jsx(Dz,{...s,ref:p,popperConfig:{...t,modifiers:g.concat(t.modifiers||[]),onFirstUpdate:y},transition:b,rootClose:r,placement:a,show:i,children:(x,{arrowProps:S,popper:C,show:O})=>{var D;o8(x,S);const M=C?.placement,A=Object.assign(l.current,{state:C?.state,scheduleUpdate:C?.update,placement:M,outOfBoundaries:(C==null||(D=C.state)==null||(D=D.modifiersData.hide)==null?void 0:D.isReferenceHidden)||!1,strategy:t.strategy}),T=!!u;return typeof n=="function"?n({...x,placement:M,show:O,...!e&&O&&{className:"show"},popper:A,arrowProps:S,hasDoneInitialMeasure:T}):E.cloneElement(n,{...x,placement:M,arrowProps:S,popper:A,hasDoneInitialMeasure:T,className:Te(n.props.className,!e&&O&&"show"),style:{...n.props.style,...x.style}})}})});Lz.displayName="Overlay";function l8(n){return n&&typeof n=="object"?n:{show:n,hide:n}}function VT(n,e,t){const[r]=e,a=r.currentTarget,i=r.relatedTarget||r.nativeEvent[t];(!i||i!==a)&&!Jf(a,i)&&n(...e)}Ae.oneOf(["click","hover","focus"]);const hde=({trigger:n=["hover","focus"],overlay:e,children:t,popperConfig:r={},show:a,defaultShow:i=!1,onToggle:s,delay:o,placement:l,flip:u=l&&l.indexOf("auto")!==-1,...d})=>{const f=E.useRef(null),g=vu(f,Oh(t)),p=qq(),b=E.useRef(""),[y,x]=wH(a,i,s),S=l8(o),{onFocus:C,onBlur:O,onClick:D}=typeof t!="function"?E.Children.only(t).props:{},M=H=>{g(Pm(H))},A=E.useCallback(()=>{if(p.clear(),b.current="show",!S.show){x(!0);return}p.set(()=>{b.current==="show"&&x(!0)},S.show)},[S.show,x,p]),T=E.useCallback(()=>{if(p.clear(),b.current="hide",!S.hide){x(!1);return}p.set(()=>{b.current==="hide"&&x(!1)},S.hide)},[S.hide,x,p]),P=E.useCallback((...H)=>{A(),C?.(...H)},[A,C]),R=E.useCallback((...H)=>{T(),O?.(...H)},[T,O]),N=E.useCallback((...H)=>{x(!y),D?.(...H)},[D,x,y]),I=E.useCallback((...H)=>{VT(A,H,"fromElement")},[A]),$=E.useCallback((...H)=>{VT(T,H,"toElement")},[T]),Y=n==null?[]:[].concat(n),k={ref:M};return Y.indexOf("click")!==-1&&(k.onClick=N),Y.indexOf("focus")!==-1&&(k.onFocus=P,k.onBlur=R),Y.indexOf("hover")!==-1&&(k.onMouseOver=I,k.onMouseOut=$),Re.jsxs(Re.Fragment,{children:[typeof t=="function"?t(k):E.cloneElement(t,k),Re.jsx(Lz,{...d,show:y,onHide:T,flip:u,placement:l,popperConfig:r,target:f.current,children:e})]})},UT=1e3;function c8(n,e,t){const r=(n-e)/(t-e)*100;return Math.round(r*UT)/UT}function GT({min:n,now:e,max:t,label:r,visuallyHidden:a,striped:i,animated:s,className:o,style:l,variant:u,bsPrefix:d,...f},g){return Re.jsx("div",{ref:g,...f,role:"progressbar",className:Te(o,`${d}-bar`,{[`bg-${u}`]:u,[`${d}-bar-animated`]:s,[`${d}-bar-striped`]:s||i}),style:{width:`${c8(e,n,t)}%`,...l},"aria-valuenow":e,"aria-valuemin":n,"aria-valuemax":t,children:a?Re.jsx("span",{className:"visually-hidden",children:r}):r})}const u8=E.forwardRef(({isChild:n=!1,...e},t)=>{const r={min:0,max:100,animated:!1,visuallyHidden:!1,striped:!1,...e};if(r.bsPrefix=Yt(r.bsPrefix,"progress"),n)return GT(r,t);const{min:a,now:i,max:s,label:o,visuallyHidden:l,striped:u,animated:d,bsPrefix:f,variant:g,className:p,children:b,...y}=r;return Re.jsx("div",{ref:t,...y,className:Te(p,f),children:b?eq(b,x=>E.cloneElement(x,{isChild:!0})):GT({min:a,now:i,max:s,label:o,visuallyHidden:l,striped:u,animated:d,bsPrefix:f,variant:g},t)})});u8.displayName="ProgressBar";const d8=E.forwardRef(({bsPrefix:n,className:e,as:t="div",...r},a)=>{const i=Yt(n,"row"),s=cH(),o=uH(),l=`${i}-cols`,u=[];return s.forEach(d=>{const f=r[d];delete r[d];let g;f!=null&&typeof f=="object"?{cols:g}=f:g=f;const p=d!==o?`-${d}`:"";g!=null&&u.push(`${l}${p}-${g}`)}),Re.jsx(t,{ref:a,...r,className:Te(e,i,...u)})});d8.displayName="Row";function Nz(n){return e=>typeof e===n}var f8=Nz("function"),h8=n=>n===null,ZT=n=>Object.prototype.toString.call(n).slice(8,-1)==="RegExp",QT=n=>!g8(n)&&!h8(n)&&(f8(n)||typeof n=="object"),g8=Nz("undefined");function p8(n,e){const{length:t}=n;if(t!==e.length)return!1;for(let r=t;r--!==0;)if(!la(n[r],e[r]))return!1;return!0}function m8(n,e){if(n.byteLength!==e.byteLength)return!1;const t=new DataView(n.buffer),r=new DataView(e.buffer);let a=n.byteLength;for(;a--;)if(t.getUint8(a)!==r.getUint8(a))return!1;return!0}function v8(n,e){if(n.size!==e.size)return!1;for(const t of n.entries())if(!e.has(t[0]))return!1;for(const t of n.entries())if(!la(t[1],e.get(t[0])))return!1;return!0}function b8(n,e){if(n.size!==e.size)return!1;for(const t of n.entries())if(!e.has(t[0]))return!1;return!0}function la(n,e){if(n===e)return!0;if(n&&QT(n)&&e&&QT(e)){if(n.constructor!==e.constructor)return!1;if(Array.isArray(n)&&Array.isArray(e))return p8(n,e);if(n instanceof Map&&e instanceof Map)return v8(n,e);if(n instanceof Set&&e instanceof Set)return b8(n,e);if(ArrayBuffer.isView(n)&&ArrayBuffer.isView(e))return m8(n,e);if(ZT(n)&&ZT(e))return n.source===e.source&&n.flags===e.flags;if(n.valueOf!==Object.prototype.valueOf)return n.valueOf()===e.valueOf();if(n.toString!==Object.prototype.toString)return n.toString()===e.toString();const t=Object.keys(n),r=Object.keys(e);if(t.length!==r.length)return!1;for(let a=t.length;a--!==0;)if(!Object.prototype.hasOwnProperty.call(e,t[a]))return!1;for(let a=t.length;a--!==0;){const i=t[a];if(!(i==="_owner"&&n.$$typeof)&&!la(n[i],e[i]))return!1}return!0}return Number.isNaN(n)&&Number.isNaN(e)?!0:n===e}var y8=["Array","ArrayBuffer","AsyncFunction","AsyncGenerator","AsyncGeneratorFunction","Date","Error","Function","Generator","GeneratorFunction","HTMLElement","Map","Object","Promise","RegExp","Set","WeakMap","WeakSet"],x8=["bigint","boolean","null","number","string","symbol","undefined"];function hv(n){const e=Object.prototype.toString.call(n).slice(8,-1);if(/HTML\w+Element/.test(e))return"HTMLElement";if(w8(e))return e}function Oi(n){return e=>hv(e)===n}function w8(n){return y8.includes(n)}function yu(n){return e=>typeof e===n}function S8(n){return x8.includes(n)}var C8=["innerHTML","ownerDocument","style","attributes","nodeValue"];function Xe(n){if(n===null)return"null";switch(typeof n){case"bigint":return"bigint";case"boolean":return"boolean";case"number":return"number";case"string":return"string";case"symbol":return"symbol";case"undefined":return"undefined"}if(Xe.array(n))return"Array";if(Xe.plainFunction(n))return"Function";const e=hv(n);return e||"Object"}Xe.array=Array.isArray;Xe.arrayOf=(n,e)=>!Xe.array(n)&&!Xe.function(e)?!1:n.every(t=>e(t));Xe.asyncGeneratorFunction=n=>hv(n)==="AsyncGeneratorFunction";Xe.asyncFunction=Oi("AsyncFunction");Xe.bigint=yu("bigint");Xe.boolean=n=>n===!0||n===!1;Xe.date=Oi("Date");Xe.defined=n=>!Xe.undefined(n);Xe.domElement=n=>Xe.object(n)&&!Xe.plainObject(n)&&n.nodeType===1&&Xe.string(n.nodeName)&&C8.every(e=>e in n);Xe.empty=n=>Xe.string(n)&&n.length===0||Xe.array(n)&&n.length===0||Xe.object(n)&&!Xe.map(n)&&!Xe.set(n)&&Object.keys(n).length===0||Xe.set(n)&&n.size===0||Xe.map(n)&&n.size===0;Xe.error=Oi("Error");Xe.function=yu("function");Xe.generator=n=>Xe.iterable(n)&&Xe.function(n.next)&&Xe.function(n.throw);Xe.generatorFunction=Oi("GeneratorFunction");Xe.instanceOf=(n,e)=>!n||!e?!1:Object.getPrototypeOf(n)===e.prototype;Xe.iterable=n=>!Xe.nullOrUndefined(n)&&Xe.function(n[Symbol.iterator]);Xe.map=Oi("Map");Xe.nan=n=>Number.isNaN(n);Xe.null=n=>n===null;Xe.nullOrUndefined=n=>Xe.null(n)||Xe.undefined(n);Xe.number=n=>yu("number")(n)&&!Xe.nan(n);Xe.numericString=n=>Xe.string(n)&&n.length>0&&!Number.isNaN(Number(n));Xe.object=n=>!Xe.nullOrUndefined(n)&&(Xe.function(n)||typeof n=="object");Xe.oneOf=(n,e)=>Xe.array(n)?n.indexOf(e)>-1:!1;Xe.plainFunction=Oi("Function");Xe.plainObject=n=>{if(hv(n)!=="Object")return!1;const e=Object.getPrototypeOf(n);return e===null||e===Object.getPrototypeOf({})};Xe.primitive=n=>Xe.null(n)||S8(typeof n);Xe.promise=Oi("Promise");Xe.propertyOf=(n,e,t)=>{if(!Xe.object(n)||!e)return!1;const r=n[e];return Xe.function(t)?t(r):Xe.defined(r)};Xe.regexp=Oi("RegExp");Xe.set=Oi("Set");Xe.string=yu("string");Xe.symbol=yu("symbol");Xe.undefined=yu("undefined");Xe.weakMap=Oi("WeakMap");Xe.weakSet=Oi("WeakSet");var et=Xe;function O8(...n){return n.every(e=>et.string(e)||et.array(e)||et.plainObject(e))}function E8(n,e,t){return Iz(n,e)?[n,e].every(et.array)?!n.some(nR(t))&&e.some(nR(t)):[n,e].every(et.plainObject)?!Object.entries(n).some(tR(t))&&Object.entries(e).some(tR(t)):e===t:!1}function KT(n,e,t){const{actual:r,key:a,previous:i,type:s}=t,o=zi(n,a),l=zi(e,a);let u=[o,l].every(et.number)&&(s==="increased"?o<l:o>l);return et.undefined(r)||(u=u&&l===r),et.undefined(i)||(u=u&&o===i),u}function JT(n,e,t){const{key:r,type:a,value:i}=t,s=zi(n,r),o=zi(e,r),l=a==="added"?s:o,u=a==="added"?o:s;if(!et.nullOrUndefined(i)){if(et.defined(l)){if(et.array(l)||et.plainObject(l))return E8(l,u,i)}else return la(u,i);return!1}return[s,o].every(et.array)?!u.every(XE(l)):[s,o].every(et.plainObject)?M8(Object.keys(l),Object.keys(u)):![s,o].every(d=>et.primitive(d)&&et.defined(d))&&(a==="added"?!et.defined(s)&&et.defined(o):et.defined(s)&&!et.defined(o))}function eR(n,e,{key:t}={}){let r=zi(n,t),a=zi(e,t);if(!Iz(r,a))throw new TypeError("Inputs have different types");if(!O8(r,a))throw new TypeError("Inputs don't have length");return[r,a].every(et.plainObject)&&(r=Object.keys(r),a=Object.keys(a)),[r,a]}function tR(n){return([e,t])=>et.array(n)?la(n,t)||n.some(r=>la(r,t)||et.array(t)&&XE(t)(r)):et.plainObject(n)&&n[e]?!!n[e]&&la(n[e],t):la(n,t)}function M8(n,e){return e.some(t=>!n.includes(t))}function nR(n){return e=>et.array(n)?n.some(t=>la(t,e)||et.array(e)&&XE(e)(t)):la(n,e)}function ef(n,e){return et.array(n)?n.some(t=>la(t,e)):la(n,e)}function XE(n){return e=>n.some(t=>la(t,e))}function Iz(...n){return n.every(et.array)||n.every(et.number)||n.every(et.plainObject)||n.every(et.string)}function zi(n,e){return et.plainObject(n)||et.array(n)?et.string(e)?e.split(".").reduce((r,a)=>r&&r[a],n):et.number(e)?n[e]:n:n}function Nm(n,e){if([n,e].some(et.nullOrUndefined))throw new Error("Missing required parameters");if(![n,e].every(d=>et.plainObject(d)||et.array(d)))throw new Error("Expected plain objects or array");return{added:(d,f)=>{try{return JT(n,e,{key:d,type:"added",value:f})}catch{return!1}},changed:(d,f,g)=>{try{const p=zi(n,d),b=zi(e,d),y=et.defined(f),x=et.defined(g);if(y||x){const S=x?ef(g,p):!ef(f,p),C=ef(f,b);return S&&C}return[p,b].every(et.array)||[p,b].every(et.plainObject)?!la(p,b):p!==b}catch{return!1}},changedFrom:(d,f,g)=>{if(!et.defined(d))return!1;try{const p=zi(n,d),b=zi(e,d),y=et.defined(g);return ef(f,p)&&(y?ef(g,b):!y)}catch{return!1}},decreased:(d,f,g)=>{if(!et.defined(d))return!1;try{return KT(n,e,{key:d,actual:f,previous:g,type:"decreased"})}catch{return!1}},emptied:d=>{try{const[f,g]=eR(n,e,{key:d});return!!f.length&&!g.length}catch{return!1}},filled:d=>{try{const[f,g]=eR(n,e,{key:d});return!f.length&&!!g.length}catch{return!1}},increased:(d,f,g)=>{if(!et.defined(d))return!1;try{return KT(n,e,{key:d,actual:f,previous:g,type:"increased"})}catch{return!1}},removed:(d,f)=>{try{return JT(n,e,{key:d,type:"removed",value:f})}catch{return!1}}}}var ay,rR;function D8(){if(rR)return ay;rR=1;var n=new Error("Element already at target scroll position"),e=new Error("Scroll cancelled"),t=Math.min,r=Date.now;ay={left:a("scrollLeft"),top:a("scrollTop")};function a(o){return function(u,d,f,g){f=f||{},typeof f=="function"&&(g=f,f={}),typeof g!="function"&&(g=s);var p=r(),b=u[o],y=f.ease||i,x=isNaN(f.duration)?350:+f.duration,S=!1;return b===d?g(n,u[o]):requestAnimationFrame(O),C;function C(){S=!0}function O(D){if(S)return g(e,u[o]);var M=r(),A=t(1,(M-p)/x),T=y(A);u[o]=T*(d-b)+b,A<1?requestAnimationFrame(O):requestAnimationFrame(function(){g(null,u[o])})}}}function i(o){return .5*(1-Math.cos(Math.PI*o))}function s(){}return ay}var _8=D8();const A8=qr(_8);var um={exports:{}},T8=um.exports,aR;function R8(){return aR||(aR=1,(function(n){(function(e,t){n.exports?n.exports=t():e.Scrollparent=t()})(T8,function(){function e(r){var a=getComputedStyle(r,null).getPropertyValue("overflow");return a.indexOf("scroll")>-1||a.indexOf("auto")>-1}function t(r){if(r instanceof HTMLElement||r instanceof SVGElement){for(var a=r.parentNode;a.parentNode;){if(e(a))return a;a=a.parentNode}return document.scrollingElement||document.documentElement}}return t})})(um)),um.exports}var P8=R8();const $z=qr(P8);var iy,iR;function L8(){if(iR)return iy;iR=1;var n=function(r){return Object.prototype.hasOwnProperty.call(r,"props")},e=function(r,a){return r+t(a)},t=function(r){return r===null||typeof r=="boolean"||typeof r>"u"?"":typeof r=="number"?r.toString():typeof r=="string"?r:Array.isArray(r)?r.reduce(e,""):n(r)&&Object.prototype.hasOwnProperty.call(r.props,"children")?t(r.props.children):""};return t.default=t,iy=t,iy}var N8=L8();const sR=qr(N8);var sy,oR;function I8(){if(oR)return sy;oR=1;var n=function(C){return e(C)&&!t(C)};function e(S){return!!S&&typeof S=="object"}function t(S){var C=Object.prototype.toString.call(S);return C==="[object RegExp]"||C==="[object Date]"||i(S)}var r=typeof Symbol=="function"&&Symbol.for,a=r?Symbol.for("react.element"):60103;function i(S){return S.$$typeof===a}function s(S){return Array.isArray(S)?[]:{}}function o(S,C){return C.clone!==!1&&C.isMergeableObject(S)?y(s(S),S,C):S}function l(S,C,O){return S.concat(C).map(function(D){return o(D,O)})}function u(S,C){if(!C.customMerge)return y;var O=C.customMerge(S);return typeof O=="function"?O:y}function d(S){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(S).filter(function(C){return Object.propertyIsEnumerable.call(S,C)}):[]}function f(S){return Object.keys(S).concat(d(S))}function g(S,C){try{return C in S}catch{return!1}}function p(S,C){return g(S,C)&&!(Object.hasOwnProperty.call(S,C)&&Object.propertyIsEnumerable.call(S,C))}function b(S,C,O){var D={};return O.isMergeableObject(S)&&f(S).forEach(function(M){D[M]=o(S[M],O)}),f(C).forEach(function(M){p(S,M)||(g(S,M)&&O.isMergeableObject(C[M])?D[M]=u(M,O)(S[M],C[M],O):D[M]=o(C[M],O))}),D}function y(S,C,O){O=O||{},O.arrayMerge=O.arrayMerge||l,O.isMergeableObject=O.isMergeableObject||n,O.cloneUnlessOtherwiseSpecified=o;var D=Array.isArray(C),M=Array.isArray(S),A=D===M;return A?D?O.arrayMerge(S,C,O):b(S,C,O):o(C,O)}y.all=function(C,O){if(!Array.isArray(C))throw new Error("first argument should be an array");return C.reduce(function(D,M){return y(D,M,O)},{})};var x=y;return sy=x,sy}var $8=I8();const xi=qr($8);/**!
 * @fileOverview Kickass library to create and place poppers near their reference elements.
 * @version 1.16.1
 * @license
 * Copyright (c) 2016 Federico Zivolo and contributors
 *
 * Permission is hereby granted, free of charge, to any person obtaining a copy
 * of this software and associated documentation files (the "Software"), to deal
 * in the Software without restriction, including without limitation the rights
 * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
 * copies of the Software, and to permit persons to whom the Software is
 * furnished to do so, subject to the following conditions:
 *
 * The above copyright notice and this permission notice shall be included in all
 * copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
 * SOFTWARE.
 */var Ah=typeof window<"u"&&typeof document<"u"&&typeof navigator<"u",F8=(function(){for(var n=["Edge","Trident","Firefox"],e=0;e<n.length;e+=1)if(Ah&&navigator.userAgent.indexOf(n[e])>=0)return 1;return 0})();function k8(n){var e=!1;return function(){e||(e=!0,window.Promise.resolve().then(function(){e=!1,n()}))}}function H8(n){var e=!1;return function(){e||(e=!0,setTimeout(function(){e=!1,n()},F8))}}var z8=Ah&&window.Promise,B8=z8?k8:H8;function Fz(n){var e={};return n&&e.toString.call(n)==="[object Function]"}function Dl(n,e){if(n.nodeType!==1)return[];var t=n.ownerDocument.defaultView,r=t.getComputedStyle(n,null);return e?r[e]:r}function VE(n){return n.nodeName==="HTML"?n:n.parentNode||n.host}function Th(n){if(!n)return document.body;switch(n.nodeName){case"HTML":case"BODY":return n.ownerDocument.body;case"#document":return n.body}var e=Dl(n),t=e.overflow,r=e.overflowX,a=e.overflowY;return/(auto|scroll|overlay)/.test(t+a+r)?n:Th(VE(n))}function kz(n){return n&&n.referenceNode?n.referenceNode:n}var lR=Ah&&!!(window.MSInputMethodContext&&document.documentMode),cR=Ah&&/MSIE 10/.test(navigator.userAgent);function xu(n){return n===11?lR:n===10?cR:lR||cR}function eu(n){if(!n)return document.documentElement;for(var e=xu(10)?document.body:null,t=n.offsetParent||null;t===e&&n.nextElementSibling;)t=(n=n.nextElementSibling).offsetParent;var r=t&&t.nodeName;return!r||r==="BODY"||r==="HTML"?n?n.ownerDocument.documentElement:document.documentElement:["TH","TD","TABLE"].indexOf(t.nodeName)!==-1&&Dl(t,"position")==="static"?eu(t):t}function Y8(n){var e=n.nodeName;return e==="BODY"?!1:e==="HTML"||eu(n.firstElementChild)===n}function JC(n){return n.parentNode!==null?JC(n.parentNode):n}function Im(n,e){if(!n||!n.nodeType||!e||!e.nodeType)return document.documentElement;var t=n.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_FOLLOWING,r=t?n:e,a=t?e:n,i=document.createRange();i.setStart(r,0),i.setEnd(a,0);var s=i.commonAncestorContainer;if(n!==s&&e!==s||r.contains(a))return Y8(s)?s:eu(s);var o=JC(n);return o.host?Im(o.host,e):Im(n,JC(e).host)}function tu(n){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"top",t=e==="top"?"scrollTop":"scrollLeft",r=n.nodeName;if(r==="BODY"||r==="HTML"){var a=n.ownerDocument.documentElement,i=n.ownerDocument.scrollingElement||a;return i[t]}return n[t]}function j8(n,e){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=tu(e,"top"),a=tu(e,"left"),i=t?-1:1;return n.top+=r*i,n.bottom+=r*i,n.left+=a*i,n.right+=a*i,n}function uR(n,e){var t=e==="x"?"Left":"Top",r=t==="Left"?"Right":"Bottom";return parseFloat(n["border"+t+"Width"])+parseFloat(n["border"+r+"Width"])}function dR(n,e,t,r){return Math.max(e["offset"+n],e["scroll"+n],t["client"+n],t["offset"+n],t["scroll"+n],xu(10)?parseInt(t["offset"+n])+parseInt(r["margin"+(n==="Height"?"Top":"Left")])+parseInt(r["margin"+(n==="Height"?"Bottom":"Right")]):0)}function Hz(n){var e=n.body,t=n.documentElement,r=xu(10)&&getComputedStyle(t);return{height:dR("Height",e,t,r),width:dR("Width",e,t,r)}}var W8=function(n,e){if(!(n instanceof e))throw new TypeError("Cannot call a class as a function")},q8=(function(){function n(e,t){for(var r=0;r<t.length;r++){var a=t[r];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(e,a.key,a)}}return function(e,t,r){return t&&n(e.prototype,t),r&&n(e,r),e}})(),nu=function(n,e,t){return e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n},ti=Object.assign||function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n};function yo(n){return ti({},n,{right:n.left+n.width,bottom:n.top+n.height})}function eO(n){var e={};try{if(xu(10)){e=n.getBoundingClientRect();var t=tu(n,"top"),r=tu(n,"left");e.top+=t,e.left+=r,e.bottom+=t,e.right+=r}else e=n.getBoundingClientRect()}catch{}var a={left:e.left,top:e.top,width:e.right-e.left,height:e.bottom-e.top},i=n.nodeName==="HTML"?Hz(n.ownerDocument):{},s=i.width||n.clientWidth||a.width,o=i.height||n.clientHeight||a.height,l=n.offsetWidth-s,u=n.offsetHeight-o;if(l||u){var d=Dl(n);l-=uR(d,"x"),u-=uR(d,"y"),a.width-=l,a.height-=u}return yo(a)}function UE(n,e){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=xu(10),a=e.nodeName==="HTML",i=eO(n),s=eO(e),o=Th(n),l=Dl(e),u=parseFloat(l.borderTopWidth),d=parseFloat(l.borderLeftWidth);t&&a&&(s.top=Math.max(s.top,0),s.left=Math.max(s.left,0));var f=yo({top:i.top-s.top-u,left:i.left-s.left-d,width:i.width,height:i.height});if(f.marginTop=0,f.marginLeft=0,!r&&a){var g=parseFloat(l.marginTop),p=parseFloat(l.marginLeft);f.top-=u-g,f.bottom-=u-g,f.left-=d-p,f.right-=d-p,f.marginTop=g,f.marginLeft=p}return(r&&!t?e.contains(o):e===o&&o.nodeName!=="BODY")&&(f=j8(f,e)),f}function X8(n){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,t=n.ownerDocument.documentElement,r=UE(n,t),a=Math.max(t.clientWidth,window.innerWidth||0),i=Math.max(t.clientHeight,window.innerHeight||0),s=e?0:tu(t),o=e?0:tu(t,"left"),l={top:s-r.top+r.marginTop,left:o-r.left+r.marginLeft,width:a,height:i};return yo(l)}function zz(n){var e=n.nodeName;if(e==="BODY"||e==="HTML")return!1;if(Dl(n,"position")==="fixed")return!0;var t=VE(n);return t?zz(t):!1}function Bz(n){if(!n||!n.parentElement||xu())return document.documentElement;for(var e=n.parentElement;e&&Dl(e,"transform")==="none";)e=e.parentElement;return e||document.documentElement}function GE(n,e,t,r){var a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1,i={top:0,left:0},s=a?Bz(n):Im(n,kz(e));if(r==="viewport")i=X8(s,a);else{var o=void 0;r==="scrollParent"?(o=Th(VE(e)),o.nodeName==="BODY"&&(o=n.ownerDocument.documentElement)):r==="window"?o=n.ownerDocument.documentElement:o=r;var l=UE(o,s,a);if(o.nodeName==="HTML"&&!zz(s)){var u=Hz(n.ownerDocument),d=u.height,f=u.width;i.top+=l.top-l.marginTop,i.bottom=d+l.top,i.left+=l.left-l.marginLeft,i.right=f+l.left}else i=l}t=t||0;var g=typeof t=="number";return i.left+=g?t:t.left||0,i.top+=g?t:t.top||0,i.right-=g?t:t.right||0,i.bottom-=g?t:t.bottom||0,i}function V8(n){var e=n.width,t=n.height;return e*t}function Yz(n,e,t,r,a){var i=arguments.length>5&&arguments[5]!==void 0?arguments[5]:0;if(n.indexOf("auto")===-1)return n;var s=GE(t,r,i,a),o={top:{width:s.width,height:e.top-s.top},right:{width:s.right-e.right,height:s.height},bottom:{width:s.width,height:s.bottom-e.bottom},left:{width:e.left-s.left,height:s.height}},l=Object.keys(o).map(function(g){return ti({key:g},o[g],{area:V8(o[g])})}).sort(function(g,p){return p.area-g.area}),u=l.filter(function(g){var p=g.width,b=g.height;return p>=t.clientWidth&&b>=t.clientHeight}),d=u.length>0?u[0].key:l[0].key,f=n.split("-")[1];return d+(f?"-"+f:"")}function jz(n,e,t){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null,a=r?Bz(e):Im(e,kz(t));return UE(t,a,r)}function Wz(n){var e=n.ownerDocument.defaultView,t=e.getComputedStyle(n),r=parseFloat(t.marginTop||0)+parseFloat(t.marginBottom||0),a=parseFloat(t.marginLeft||0)+parseFloat(t.marginRight||0),i={width:n.offsetWidth+a,height:n.offsetHeight+r};return i}function $m(n){var e={left:"right",right:"left",bottom:"top",top:"bottom"};return n.replace(/left|right|bottom|top/g,function(t){return e[t]})}function qz(n,e,t){t=t.split("-")[0];var r=Wz(n),a={width:r.width,height:r.height},i=["right","left"].indexOf(t)!==-1,s=i?"top":"left",o=i?"left":"top",l=i?"height":"width",u=i?"width":"height";return a[s]=e[s]+e[l]/2-r[l]/2,t===o?a[o]=e[o]-r[u]:a[o]=e[$m(o)],a}function Rh(n,e){return Array.prototype.find?n.find(e):n.filter(e)[0]}function U8(n,e,t){if(Array.prototype.findIndex)return n.findIndex(function(a){return a[e]===t});var r=Rh(n,function(a){return a[e]===t});return n.indexOf(r)}function Xz(n,e,t){var r=t===void 0?n:n.slice(0,U8(n,"name",t));return r.forEach(function(a){a.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var i=a.function||a.fn;a.enabled&&Fz(i)&&(e.offsets.popper=yo(e.offsets.popper),e.offsets.reference=yo(e.offsets.reference),e=i(e,a))}),e}function G8(){if(!this.state.isDestroyed){var n={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};n.offsets.reference=jz(this.state,this.popper,this.reference,this.options.positionFixed),n.placement=Yz(this.options.placement,n.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),n.originalPlacement=n.placement,n.positionFixed=this.options.positionFixed,n.offsets.popper=qz(this.popper,n.offsets.reference,n.placement),n.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",n=Xz(this.modifiers,n),this.state.isCreated?this.options.onUpdate(n):(this.state.isCreated=!0,this.options.onCreate(n))}}function Vz(n,e){return n.some(function(t){var r=t.name,a=t.enabled;return a&&r===e})}function ZE(n){for(var e=[!1,"ms","Webkit","Moz","O"],t=n.charAt(0).toUpperCase()+n.slice(1),r=0;r<e.length;r++){var a=e[r],i=a?""+a+t:n;if(typeof document.body.style[i]<"u")return i}return null}function Z8(){return this.state.isDestroyed=!0,Vz(this.modifiers,"applyStyle")&&(this.popper.removeAttribute("x-placement"),this.popper.style.position="",this.popper.style.top="",this.popper.style.left="",this.popper.style.right="",this.popper.style.bottom="",this.popper.style.willChange="",this.popper.style[ZE("transform")]=""),this.disableEventListeners(),this.options.removeOnDestroy&&this.popper.parentNode.removeChild(this.popper),this}function Uz(n){var e=n.ownerDocument;return e?e.defaultView:window}function Gz(n,e,t,r){var a=n.nodeName==="BODY",i=a?n.ownerDocument.defaultView:n;i.addEventListener(e,t,{passive:!0}),a||Gz(Th(i.parentNode),e,t,r),r.push(i)}function Q8(n,e,t,r){t.updateBound=r,Uz(n).addEventListener("resize",t.updateBound,{passive:!0});var a=Th(n);return Gz(a,"scroll",t.updateBound,t.scrollParents),t.scrollElement=a,t.eventsEnabled=!0,t}function K8(){this.state.eventsEnabled||(this.state=Q8(this.reference,this.options,this.state,this.scheduleUpdate))}function J8(n,e){return Uz(n).removeEventListener("resize",e.updateBound),e.scrollParents.forEach(function(t){t.removeEventListener("scroll",e.updateBound)}),e.updateBound=null,e.scrollParents=[],e.scrollElement=null,e.eventsEnabled=!1,e}function e9(){this.state.eventsEnabled&&(cancelAnimationFrame(this.scheduleUpdate),this.state=J8(this.reference,this.state))}function QE(n){return n!==""&&!isNaN(parseFloat(n))&&isFinite(n)}function tO(n,e){Object.keys(e).forEach(function(t){var r="";["width","height","top","right","bottom","left"].indexOf(t)!==-1&&QE(e[t])&&(r="px"),n.style[t]=e[t]+r})}function t9(n,e){Object.keys(e).forEach(function(t){var r=e[t];r!==!1?n.setAttribute(t,e[t]):n.removeAttribute(t)})}function n9(n){return tO(n.instance.popper,n.styles),t9(n.instance.popper,n.attributes),n.arrowElement&&Object.keys(n.arrowStyles).length&&tO(n.arrowElement,n.arrowStyles),n}function r9(n,e,t,r,a){var i=jz(a,e,n,t.positionFixed),s=Yz(t.placement,i,e,n,t.modifiers.flip.boundariesElement,t.modifiers.flip.padding);return e.setAttribute("x-placement",s),tO(e,{position:t.positionFixed?"fixed":"absolute"}),t}function a9(n,e){var t=n.offsets,r=t.popper,a=t.reference,i=Math.round,s=Math.floor,o=function(S){return S},l=i(a.width),u=i(r.width),d=["left","right"].indexOf(n.placement)!==-1,f=n.placement.indexOf("-")!==-1,g=l%2===u%2,p=l%2===1&&u%2===1,b=e?d||f||g?i:s:o,y=e?i:o;return{left:b(p&&!f&&e?r.left-1:r.left),top:y(r.top),bottom:y(r.bottom),right:b(r.right)}}var i9=Ah&&/Firefox/i.test(navigator.userAgent);function s9(n,e){var t=e.x,r=e.y,a=n.offsets.popper,i=Rh(n.instance.modifiers,function(O){return O.name==="applyStyle"}).gpuAcceleration;i!==void 0&&console.warn("WARNING: `gpuAcceleration` option moved to `computeStyle` modifier and will not be supported in future versions of Popper.js!");var s=i!==void 0?i:e.gpuAcceleration,o=eu(n.instance.popper),l=eO(o),u={position:a.position},d=a9(n,window.devicePixelRatio<2||!i9),f=t==="bottom"?"top":"bottom",g=r==="right"?"left":"right",p=ZE("transform"),b=void 0,y=void 0;if(f==="bottom"?o.nodeName==="HTML"?y=-o.clientHeight+d.bottom:y=-l.height+d.bottom:y=d.top,g==="right"?o.nodeName==="HTML"?b=-o.clientWidth+d.right:b=-l.width+d.right:b=d.left,s&&p)u[p]="translate3d("+b+"px, "+y+"px, 0)",u[f]=0,u[g]=0,u.willChange="transform";else{var x=f==="bottom"?-1:1,S=g==="right"?-1:1;u[f]=y*x,u[g]=b*S,u.willChange=f+", "+g}var C={"x-placement":n.placement};return n.attributes=ti({},C,n.attributes),n.styles=ti({},u,n.styles),n.arrowStyles=ti({},n.offsets.arrow,n.arrowStyles),n}function Zz(n,e,t){var r=Rh(n,function(o){var l=o.name;return l===e}),a=!!r&&n.some(function(o){return o.name===t&&o.enabled&&o.order<r.order});if(!a){var i="`"+e+"`",s="`"+t+"`";console.warn(s+" modifier is required by "+i+" modifier in order to work, be sure to include it before "+i+"!")}return a}function o9(n,e){var t;if(!Zz(n.instance.modifiers,"arrow","keepTogether"))return n;var r=e.element;if(typeof r=="string"){if(r=n.instance.popper.querySelector(r),!r)return n}else if(!n.instance.popper.contains(r))return console.warn("WARNING: `arrow.element` must be child of its popper element!"),n;var a=n.placement.split("-")[0],i=n.offsets,s=i.popper,o=i.reference,l=["left","right"].indexOf(a)!==-1,u=l?"height":"width",d=l?"Top":"Left",f=d.toLowerCase(),g=l?"left":"top",p=l?"bottom":"right",b=Wz(r)[u];o[p]-b<s[f]&&(n.offsets.popper[f]-=s[f]-(o[p]-b)),o[f]+b>s[p]&&(n.offsets.popper[f]+=o[f]+b-s[p]),n.offsets.popper=yo(n.offsets.popper);var y=o[f]+o[u]/2-b/2,x=Dl(n.instance.popper),S=parseFloat(x["margin"+d]),C=parseFloat(x["border"+d+"Width"]),O=y-n.offsets.popper[f]-S-C;return O=Math.max(Math.min(s[u]-b,O),0),n.arrowElement=r,n.offsets.arrow=(t={},nu(t,f,Math.round(O)),nu(t,g,""),t),n}function l9(n){return n==="end"?"start":n==="start"?"end":n}var Qz=["auto-start","auto","auto-end","top-start","top","top-end","right-start","right","right-end","bottom-end","bottom","bottom-start","left-end","left","left-start"],oy=Qz.slice(3);function fR(n){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,t=oy.indexOf(n),r=oy.slice(t+1).concat(oy.slice(0,t));return e?r.reverse():r}var ly={FLIP:"flip",CLOCKWISE:"clockwise",COUNTERCLOCKWISE:"counterclockwise"};function c9(n,e){if(Vz(n.instance.modifiers,"inner")||n.flipped&&n.placement===n.originalPlacement)return n;var t=GE(n.instance.popper,n.instance.reference,e.padding,e.boundariesElement,n.positionFixed),r=n.placement.split("-")[0],a=$m(r),i=n.placement.split("-")[1]||"",s=[];switch(e.behavior){case ly.FLIP:s=[r,a];break;case ly.CLOCKWISE:s=fR(r);break;case ly.COUNTERCLOCKWISE:s=fR(r,!0);break;default:s=e.behavior}return s.forEach(function(o,l){if(r!==o||s.length===l+1)return n;r=n.placement.split("-")[0],a=$m(r);var u=n.offsets.popper,d=n.offsets.reference,f=Math.floor,g=r==="left"&&f(u.right)>f(d.left)||r==="right"&&f(u.left)<f(d.right)||r==="top"&&f(u.bottom)>f(d.top)||r==="bottom"&&f(u.top)<f(d.bottom),p=f(u.left)<f(t.left),b=f(u.right)>f(t.right),y=f(u.top)<f(t.top),x=f(u.bottom)>f(t.bottom),S=r==="left"&&p||r==="right"&&b||r==="top"&&y||r==="bottom"&&x,C=["top","bottom"].indexOf(r)!==-1,O=!!e.flipVariations&&(C&&i==="start"&&p||C&&i==="end"&&b||!C&&i==="start"&&y||!C&&i==="end"&&x),D=!!e.flipVariationsByContent&&(C&&i==="start"&&b||C&&i==="end"&&p||!C&&i==="start"&&x||!C&&i==="end"&&y),M=O||D;(g||S||M)&&(n.flipped=!0,(g||S)&&(r=s[l+1]),M&&(i=l9(i)),n.placement=r+(i?"-"+i:""),n.offsets.popper=ti({},n.offsets.popper,qz(n.instance.popper,n.offsets.reference,n.placement)),n=Xz(n.instance.modifiers,n,"flip"))}),n}function u9(n){var e=n.offsets,t=e.popper,r=e.reference,a=n.placement.split("-")[0],i=Math.floor,s=["top","bottom"].indexOf(a)!==-1,o=s?"right":"bottom",l=s?"left":"top",u=s?"width":"height";return t[o]<i(r[l])&&(n.offsets.popper[l]=i(r[l])-t[u]),t[l]>i(r[o])&&(n.offsets.popper[l]=i(r[o])),n}function d9(n,e,t,r){var a=n.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),i=+a[1],s=a[2];if(!i)return n;if(s.indexOf("%")===0){var o=void 0;switch(s){case"%p":o=t;break;case"%":case"%r":default:o=r}var l=yo(o);return l[e]/100*i}else if(s==="vh"||s==="vw"){var u=void 0;return s==="vh"?u=Math.max(document.documentElement.clientHeight,window.innerHeight||0):u=Math.max(document.documentElement.clientWidth,window.innerWidth||0),u/100*i}else return i}function f9(n,e,t,r){var a=[0,0],i=["right","left"].indexOf(r)!==-1,s=n.split(/(\+|\-)/).map(function(d){return d.trim()}),o=s.indexOf(Rh(s,function(d){return d.search(/,|\s/)!==-1}));s[o]&&s[o].indexOf(",")===-1&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");var l=/\s*,\s*|\s+/,u=o!==-1?[s.slice(0,o).concat([s[o].split(l)[0]]),[s[o].split(l)[1]].concat(s.slice(o+1))]:[s];return u=u.map(function(d,f){var g=(f===1?!i:i)?"height":"width",p=!1;return d.reduce(function(b,y){return b[b.length-1]===""&&["+","-"].indexOf(y)!==-1?(b[b.length-1]=y,p=!0,b):p?(b[b.length-1]+=y,p=!1,b):b.concat(y)},[]).map(function(b){return d9(b,g,e,t)})}),u.forEach(function(d,f){d.forEach(function(g,p){QE(g)&&(a[f]+=g*(d[p-1]==="-"?-1:1))})}),a}function h9(n,e){var t=e.offset,r=n.placement,a=n.offsets,i=a.popper,s=a.reference,o=r.split("-")[0],l=void 0;return QE(+t)?l=[+t,0]:l=f9(t,i,s,o),o==="left"?(i.top+=l[0],i.left-=l[1]):o==="right"?(i.top+=l[0],i.left+=l[1]):o==="top"?(i.left+=l[0],i.top-=l[1]):o==="bottom"&&(i.left+=l[0],i.top+=l[1]),n.popper=i,n}function g9(n,e){var t=e.boundariesElement||eu(n.instance.popper);n.instance.reference===t&&(t=eu(t));var r=ZE("transform"),a=n.instance.popper.style,i=a.top,s=a.left,o=a[r];a.top="",a.left="",a[r]="";var l=GE(n.instance.popper,n.instance.reference,e.padding,t,n.positionFixed);a.top=i,a.left=s,a[r]=o,e.boundaries=l;var u=e.priority,d=n.offsets.popper,f={primary:function(p){var b=d[p];return d[p]<l[p]&&!e.escapeWithReference&&(b=Math.max(d[p],l[p])),nu({},p,b)},secondary:function(p){var b=p==="right"?"left":"top",y=d[b];return d[p]>l[p]&&!e.escapeWithReference&&(y=Math.min(d[b],l[p]-(p==="right"?d.width:d.height))),nu({},b,y)}};return u.forEach(function(g){var p=["left","top"].indexOf(g)!==-1?"primary":"secondary";d=ti({},d,f[p](g))}),n.offsets.popper=d,n}function p9(n){var e=n.placement,t=e.split("-")[0],r=e.split("-")[1];if(r){var a=n.offsets,i=a.reference,s=a.popper,o=["bottom","top"].indexOf(t)!==-1,l=o?"left":"top",u=o?"width":"height",d={start:nu({},l,i[l]),end:nu({},l,i[l]+i[u]-s[u])};n.offsets.popper=ti({},s,d[r])}return n}function m9(n){if(!Zz(n.instance.modifiers,"hide","preventOverflow"))return n;var e=n.offsets.reference,t=Rh(n.instance.modifiers,function(r){return r.name==="preventOverflow"}).boundaries;if(e.bottom<t.top||e.left>t.right||e.top>t.bottom||e.right<t.left){if(n.hide===!0)return n;n.hide=!0,n.attributes["x-out-of-boundaries"]=""}else{if(n.hide===!1)return n;n.hide=!1,n.attributes["x-out-of-boundaries"]=!1}return n}function v9(n){var e=n.placement,t=e.split("-")[0],r=n.offsets,a=r.popper,i=r.reference,s=["left","right"].indexOf(t)!==-1,o=["top","left"].indexOf(t)===-1;return a[s?"left":"top"]=i[t]-(o?a[s?"width":"height"]:0),n.placement=$m(e),n.offsets.popper=yo(a),n}var b9={shift:{order:100,enabled:!0,fn:p9},offset:{order:200,enabled:!0,fn:h9,offset:0},preventOverflow:{order:300,enabled:!0,fn:g9,priority:["left","right","top","bottom"],padding:5,boundariesElement:"scrollParent"},keepTogether:{order:400,enabled:!0,fn:u9},arrow:{order:500,enabled:!0,fn:o9,element:"[x-arrow]"},flip:{order:600,enabled:!0,fn:c9,behavior:"flip",padding:5,boundariesElement:"viewport",flipVariations:!1,flipVariationsByContent:!1},inner:{order:700,enabled:!1,fn:v9},hide:{order:800,enabled:!0,fn:m9},computeStyle:{order:850,enabled:!0,fn:s9,gpuAcceleration:!0,x:"bottom",y:"right"},applyStyle:{order:900,enabled:!0,fn:n9,onLoad:r9,gpuAcceleration:void 0}},y9={placement:"bottom",positionFixed:!1,eventsEnabled:!0,removeOnDestroy:!1,onCreate:function(){},onUpdate:function(){},modifiers:b9},th=(function(){function n(e,t){var r=this,a=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};W8(this,n),this.scheduleUpdate=function(){return requestAnimationFrame(r.update)},this.update=B8(this.update.bind(this)),this.options=ti({},n.Defaults,a),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=e&&e.jquery?e[0]:e,this.popper=t&&t.jquery?t[0]:t,this.options.modifiers={},Object.keys(ti({},n.Defaults.modifiers,a.modifiers)).forEach(function(s){r.options.modifiers[s]=ti({},n.Defaults.modifiers[s]||{},a.modifiers?a.modifiers[s]:{})}),this.modifiers=Object.keys(this.options.modifiers).map(function(s){return ti({name:s},r.options.modifiers[s])}).sort(function(s,o){return s.order-o.order}),this.modifiers.forEach(function(s){s.enabled&&Fz(s.onLoad)&&s.onLoad(r.reference,r.popper,r.options,s,r.state)}),this.update();var i=this.options.eventsEnabled;i&&this.enableEventListeners(),this.state.eventsEnabled=i}return q8(n,[{key:"update",value:function(){return G8.call(this)}},{key:"destroy",value:function(){return Z8.call(this)}},{key:"enableEventListeners",value:function(){return K8.call(this)}},{key:"disableEventListeners",value:function(){return e9.call(this)}}]),n})();th.Utils=(typeof window<"u"?window:global).PopperUtils;th.placements=Qz;th.Defaults=y9;var x9=["innerHTML","ownerDocument","style","attributes","nodeValue"],w9=["Array","ArrayBuffer","AsyncFunction","AsyncGenerator","AsyncGeneratorFunction","Date","Error","Function","Generator","GeneratorFunction","HTMLElement","Map","Object","Promise","RegExp","Set","WeakMap","WeakSet"],S9=["bigint","boolean","null","number","string","symbol","undefined"];function gv(n){var e=Object.prototype.toString.call(n).slice(8,-1);if(/HTML\w+Element/.test(e))return"HTMLElement";if(C9(e))return e}function Ei(n){return function(e){return gv(e)===n}}function C9(n){return w9.includes(n)}function wu(n){return function(e){return typeof e===n}}function O9(n){return S9.includes(n)}function xe(n){if(n===null)return"null";switch(typeof n){case"bigint":return"bigint";case"boolean":return"boolean";case"number":return"number";case"string":return"string";case"symbol":return"symbol";case"undefined":return"undefined"}if(xe.array(n))return"Array";if(xe.plainFunction(n))return"Function";var e=gv(n);return e||"Object"}xe.array=Array.isArray;xe.arrayOf=function(n,e){return!xe.array(n)&&!xe.function(e)?!1:n.every(function(t){return e(t)})};xe.asyncGeneratorFunction=function(n){return gv(n)==="AsyncGeneratorFunction"};xe.asyncFunction=Ei("AsyncFunction");xe.bigint=wu("bigint");xe.boolean=function(n){return n===!0||n===!1};xe.date=Ei("Date");xe.defined=function(n){return!xe.undefined(n)};xe.domElement=function(n){return xe.object(n)&&!xe.plainObject(n)&&n.nodeType===1&&xe.string(n.nodeName)&&x9.every(function(e){return e in n})};xe.empty=function(n){return xe.string(n)&&n.length===0||xe.array(n)&&n.length===0||xe.object(n)&&!xe.map(n)&&!xe.set(n)&&Object.keys(n).length===0||xe.set(n)&&n.size===0||xe.map(n)&&n.size===0};xe.error=Ei("Error");xe.function=wu("function");xe.generator=function(n){return xe.iterable(n)&&xe.function(n.next)&&xe.function(n.throw)};xe.generatorFunction=Ei("GeneratorFunction");xe.instanceOf=function(n,e){return!n||!e?!1:Object.getPrototypeOf(n)===e.prototype};xe.iterable=function(n){return!xe.nullOrUndefined(n)&&xe.function(n[Symbol.iterator])};xe.map=Ei("Map");xe.nan=function(n){return Number.isNaN(n)};xe.null=function(n){return n===null};xe.nullOrUndefined=function(n){return xe.null(n)||xe.undefined(n)};xe.number=function(n){return wu("number")(n)&&!xe.nan(n)};xe.numericString=function(n){return xe.string(n)&&n.length>0&&!Number.isNaN(Number(n))};xe.object=function(n){return!xe.nullOrUndefined(n)&&(xe.function(n)||typeof n=="object")};xe.oneOf=function(n,e){return xe.array(n)?n.indexOf(e)>-1:!1};xe.plainFunction=Ei("Function");xe.plainObject=function(n){if(gv(n)!=="Object")return!1;var e=Object.getPrototypeOf(n);return e===null||e===Object.getPrototypeOf({})};xe.primitive=function(n){return xe.null(n)||O9(typeof n)};xe.promise=Ei("Promise");xe.propertyOf=function(n,e,t){if(!xe.object(n)||!e)return!1;var r=n[e];return xe.function(t)?t(r):xe.defined(r)};xe.regexp=Ei("RegExp");xe.set=Ei("Set");xe.string=wu("string");xe.symbol=wu("symbol");xe.undefined=wu("undefined");xe.weakMap=Ei("WeakMap");xe.weakSet=Ei("WeakSet");function Kz(n){return function(e){return typeof e===n}}var E9=Kz("function"),M9=function(n){return n===null},hR=function(n){return Object.prototype.toString.call(n).slice(8,-1)==="RegExp"},gR=function(n){return!D9(n)&&!M9(n)&&(E9(n)||typeof n=="object")},D9=Kz("undefined"),nO=function(n){var e=typeof Symbol=="function"&&Symbol.iterator,t=e&&n[e],r=0;if(t)return t.call(n);if(n&&typeof n.length=="number")return{next:function(){return n&&r>=n.length&&(n=void 0),{value:n&&n[r++],done:!n}}};throw new TypeError(e?"Object is not iterable.":"Symbol.iterator is not defined.")};function _9(n,e){var t=n.length;if(t!==e.length)return!1;for(var r=t;r--!==0;)if(!ya(n[r],e[r]))return!1;return!0}function A9(n,e){if(n.byteLength!==e.byteLength)return!1;for(var t=new DataView(n.buffer),r=new DataView(e.buffer),a=n.byteLength;a--;)if(t.getUint8(a)!==r.getUint8(a))return!1;return!0}function T9(n,e){var t,r,a,i;if(n.size!==e.size)return!1;try{for(var s=nO(n.entries()),o=s.next();!o.done;o=s.next()){var l=o.value;if(!e.has(l[0]))return!1}}catch(f){t={error:f}}finally{try{o&&!o.done&&(r=s.return)&&r.call(s)}finally{if(t)throw t.error}}try{for(var u=nO(n.entries()),d=u.next();!d.done;d=u.next()){var l=d.value;if(!ya(l[1],e.get(l[0])))return!1}}catch(f){a={error:f}}finally{try{d&&!d.done&&(i=u.return)&&i.call(u)}finally{if(a)throw a.error}}return!0}function R9(n,e){var t,r;if(n.size!==e.size)return!1;try{for(var a=nO(n.entries()),i=a.next();!i.done;i=a.next()){var s=i.value;if(!e.has(s[0]))return!1}}catch(o){t={error:o}}finally{try{i&&!i.done&&(r=a.return)&&r.call(a)}finally{if(t)throw t.error}}return!0}function ya(n,e){if(n===e)return!0;if(n&&gR(n)&&e&&gR(e)){if(n.constructor!==e.constructor)return!1;if(Array.isArray(n)&&Array.isArray(e))return _9(n,e);if(n instanceof Map&&e instanceof Map)return T9(n,e);if(n instanceof Set&&e instanceof Set)return R9(n,e);if(ArrayBuffer.isView(n)&&ArrayBuffer.isView(e))return A9(n,e);if(hR(n)&&hR(e))return n.source===e.source&&n.flags===e.flags;if(n.valueOf!==Object.prototype.valueOf)return n.valueOf()===e.valueOf();if(n.toString!==Object.prototype.toString)return n.toString()===e.toString();var t=Object.keys(n),r=Object.keys(e);if(t.length!==r.length)return!1;for(var a=t.length;a--!==0;)if(!Object.prototype.hasOwnProperty.call(e,t[a]))return!1;for(var a=t.length;a--!==0;){var i=t[a];if(!(i==="_owner"&&n.$$typeof)&&!ya(n[i],e[i]))return!1}return!0}return Number.isNaN(n)&&Number.isNaN(e)?!0:n===e}function P9(){for(var n=[],e=0;e<arguments.length;e++)n[e]=arguments[e];return n.every(function(t){return xe.string(t)||xe.array(t)||xe.plainObject(t)})}function L9(n,e,t){return Jz(n,e)?[n,e].every(xe.array)?!n.some(yR(t))&&e.some(yR(t)):[n,e].every(xe.plainObject)?!Object.entries(n).some(bR(t))&&Object.entries(e).some(bR(t)):e===t:!1}function pR(n,e,t){var r=t.actual,a=t.key,i=t.previous,s=t.type,o=Bi(n,a),l=Bi(e,a),u=[o,l].every(xe.number)&&(s==="increased"?o<l:o>l);return xe.undefined(r)||(u=u&&l===r),xe.undefined(i)||(u=u&&o===i),u}function mR(n,e,t){var r=t.key,a=t.type,i=t.value,s=Bi(n,r),o=Bi(e,r),l=a==="added"?s:o,u=a==="added"?o:s;if(!xe.nullOrUndefined(i)){if(xe.defined(l)){if(xe.array(l)||xe.plainObject(l))return L9(l,u,i)}else return ya(u,i);return!1}return[s,o].every(xe.array)?!u.every(KE(l)):[s,o].every(xe.plainObject)?N9(Object.keys(l),Object.keys(u)):![s,o].every(function(d){return xe.primitive(d)&&xe.defined(d)})&&(a==="added"?!xe.defined(s)&&xe.defined(o):xe.defined(s)&&!xe.defined(o))}function vR(n,e,t){var r=t===void 0?{}:t,a=r.key,i=Bi(n,a),s=Bi(e,a);if(!Jz(i,s))throw new TypeError("Inputs have different types");if(!P9(i,s))throw new TypeError("Inputs don't have length");return[i,s].every(xe.plainObject)&&(i=Object.keys(i),s=Object.keys(s)),[i,s]}function bR(n){return function(e){var t=e[0],r=e[1];return xe.array(n)?ya(n,r)||n.some(function(a){return ya(a,r)||xe.array(r)&&KE(r)(a)}):xe.plainObject(n)&&n[t]?!!n[t]&&ya(n[t],r):ya(n,r)}}function N9(n,e){return e.some(function(t){return!n.includes(t)})}function yR(n){return function(e){return xe.array(n)?n.some(function(t){return ya(t,e)||xe.array(e)&&KE(e)(t)}):ya(n,e)}}function tf(n,e){return xe.array(n)?n.some(function(t){return ya(t,e)}):ya(n,e)}function KE(n){return function(e){return n.some(function(t){return ya(t,e)})}}function Jz(){for(var n=[],e=0;e<arguments.length;e++)n[e]=arguments[e];return n.every(xe.array)||n.every(xe.number)||n.every(xe.plainObject)||n.every(xe.string)}function Bi(n,e){if(xe.plainObject(n)||xe.array(n)){if(xe.string(e)){var t=e.split(".");return t.reduce(function(r,a){return r&&r[a]},n)}return xe.number(e)?n[e]:n}return n}function I9(n,e){if([n,e].some(xe.nullOrUndefined))throw new Error("Missing required parameters");if(![n,e].every(function(f){return xe.plainObject(f)||xe.array(f)}))throw new Error("Expected plain objects or array");var t=function(f,g){try{return mR(n,e,{key:f,type:"added",value:g})}catch{return!1}},r=function(f,g,p){try{var b=Bi(n,f),y=Bi(e,f),x=xe.defined(g),S=xe.defined(p);if(x||S){var C=S?tf(p,b):!tf(g,b),O=tf(g,y);return C&&O}return[b,y].every(xe.array)||[b,y].every(xe.plainObject)?!ya(b,y):b!==y}catch{return!1}},a=function(f,g,p){if(!xe.defined(f))return!1;try{var b=Bi(n,f),y=Bi(e,f),x=xe.defined(p);return tf(g,b)&&(x?tf(p,y):!x)}catch{return!1}},i=function(f,g){return xe.defined(f)?r(f,g):!1},s=function(f,g,p){if(!xe.defined(f))return!1;try{return pR(n,e,{key:f,actual:g,previous:p,type:"decreased"})}catch{return!1}},o=function(f){try{var g=vR(n,e,{key:f}),p=g[0],b=g[1];return!!p.length&&!b.length}catch{return!1}},l=function(f){try{var g=vR(n,e,{key:f}),p=g[0],b=g[1];return!p.length&&!!b.length}catch{return!1}},u=function(f,g,p){if(!xe.defined(f))return!1;try{return pR(n,e,{key:f,actual:g,previous:p,type:"increased"})}catch{return!1}},d=function(f,g){try{return mR(n,e,{key:f,type:"removed",value:g})}catch{return!1}};return{added:t,changed:r,changedFrom:a,changedTo:i,decreased:s,emptied:o,filled:l,increased:u,removed:d}}function xR(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(n,a).enumerable})),t.push.apply(t,r)}return t}function kn(n){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?xR(Object(t),!0).forEach(function(r){ta(n,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):xR(Object(t)).forEach(function(r){Object.defineProperty(n,r,Object.getOwnPropertyDescriptor(t,r))})}return n}function Ph(n,e){if(!(n instanceof e))throw new TypeError("Cannot call a class as a function")}function $9(n,e){for(var t=0;t<e.length;t++){var r=e[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(n,tB(r.key),r)}}function Lh(n,e,t){return e&&$9(n.prototype,e),Object.defineProperty(n,"prototype",{writable:!1}),n}function ta(n,e,t){return e=tB(e),e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}function Nh(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(e&&e.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),Object.defineProperty(n,"prototype",{writable:!1}),e&&rO(n,e)}function Fm(n){return Fm=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Fm(n)}function rO(n,e){return rO=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},rO(n,e)}function F9(){if(typeof Reflect>"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){})),!0}catch{return!1}}function k9(n,e){if(n==null)return{};var t={},r=Object.keys(n),a,i;for(i=0;i<r.length;i++)a=r[i],!(e.indexOf(a)>=0)&&(t[a]=n[a]);return t}function eB(n,e){if(n==null)return{};var t=k9(n,e),r,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(n);for(a=0;a<i.length;a++)r=i[a],!(e.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(n,r)&&(t[r]=n[r])}return t}function bs(n){if(n===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function H9(n,e){if(e&&(typeof e=="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return bs(n)}function Ih(n){var e=F9();return function(){var r=Fm(n),a;if(e){var i=Fm(this).constructor;a=Reflect.construct(r,arguments,i)}else a=r.apply(this,arguments);return H9(this,a)}}function z9(n,e){if(typeof n!="object"||n===null)return n;var t=n[Symbol.toPrimitive];if(t!==void 0){var r=t.call(n,e);if(typeof r!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(n)}function tB(n){var e=z9(n,"string");return typeof e=="symbol"?e:String(e)}var B9={flip:{padding:20},preventOverflow:{padding:10}},Y9="The typeValidator argument must be a function with the signature function(props, propName, componentName).",j9="The error message is optional, but must be a string if provided.";function W9(n,e,t,r){return typeof n=="boolean"?n:typeof n=="function"?n(e,t,r):n?!!n:!1}function q9(n,e){return Object.hasOwnProperty.call(n,e)}function X9(n,e,t,r){return new Error("Required ".concat(n[e]," `").concat(e,"` was not specified in `").concat(t,"`."))}function V9(n,e){if(typeof n!="function")throw new TypeError(Y9);if(e&&typeof e!="string")throw new TypeError(j9)}function wR(n,e,t){return V9(n,t),function(r,a,i){for(var s=arguments.length,o=new Array(s>3?s-3:0),l=3;l<s;l++)o[l-3]=arguments[l];return W9(e,r,a,i)?q9(r,a)?n.apply(void 0,[r,a,i].concat(o)):X9(r,a,i):n.apply(void 0,[r,a,i].concat(o))}}var nn={INIT:"init",IDLE:"idle",OPENING:"opening",OPEN:"open",CLOSING:"closing"},nf=ba.createPortal!==void 0;function ki(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function cy(){return"ontouchstart"in window&&/Mobi/.test(navigator.userAgent)}function tp(n){var e=n.title,t=n.data,r=n.warn,a=r===void 0?!1:r,i=n.debug,s=i===void 0?!1:i,o=a?console.warn||console.error:console.log;s&&e&&t&&(console.groupCollapsed("%creact-floater: ".concat(e),"color: #9b00ff; font-weight: bold; font-size: 12px;"),Array.isArray(t)?t.forEach(function(l){xe.plainObject(l)&&l.key?o.apply(console,[l.key,l.value]):o.apply(console,[l])}):o.apply(console,[t]),console.groupEnd())}function U9(n,e,t){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;n.addEventListener(e,t,r)}function G9(n,e,t){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;n.removeEventListener(e,t,r)}function Z9(n,e,t){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,a;a=function(s){t(s),G9(n,e,a)},U9(n,e,a,r)}function SR(){}var nB=(function(n){Nh(t,n);var e=Ih(t);function t(){return Ph(this,t),e.apply(this,arguments)}return Lh(t,[{key:"componentDidMount",value:function(){ki()&&(this.node||this.appendNode(),nf||this.renderPortal())}},{key:"componentDidUpdate",value:function(){ki()&&(nf||this.renderPortal())}},{key:"componentWillUnmount",value:function(){!ki()||!this.node||(nf||ba.unmountComponentAtNode(this.node),this.node&&this.node.parentNode===document.body&&(document.body.removeChild(this.node),this.node=void 0))}},{key:"appendNode",value:function(){var a=this.props,i=a.id,s=a.zIndex;this.node||(this.node=document.createElement("div"),i&&(this.node.id=i),s&&(this.node.style.zIndex=s),document.body.appendChild(this.node))}},{key:"renderPortal",value:function(){if(!ki())return null;var a=this.props,i=a.children,s=a.setRef;if(this.node||this.appendNode(),nf)return ba.createPortal(i,this.node);var o=ba.unstable_renderSubtreeIntoContainer(this,i.length>1?pe.createElement("div",null,i):i[0],this.node);return s(o),null}},{key:"renderReact16",value:function(){var a=this.props,i=a.hasChildren,s=a.placement,o=a.target;return i?this.renderPortal():o||s==="center"?this.renderPortal():null}},{key:"render",value:function(){return nf?this.renderReact16():null}}]),t})(pe.Component);ta(nB,"propTypes",{children:Ae.oneOfType([Ae.element,Ae.array]),hasChildren:Ae.bool,id:Ae.oneOfType([Ae.string,Ae.number]),placement:Ae.string,setRef:Ae.func.isRequired,target:Ae.oneOfType([Ae.object,Ae.string]),zIndex:Ae.number});var rB=(function(n){Nh(t,n);var e=Ih(t);function t(){return Ph(this,t),e.apply(this,arguments)}return Lh(t,[{key:"parentStyle",get:function(){var a=this.props,i=a.placement,s=a.styles,o=s.arrow.length,l={pointerEvents:"none",position:"absolute",width:"100%"};return i.startsWith("top")?(l.bottom=0,l.left=0,l.right=0,l.height=o):i.startsWith("bottom")?(l.left=0,l.right=0,l.top=0,l.height=o):i.startsWith("left")?(l.right=0,l.top=0,l.bottom=0):i.startsWith("right")&&(l.left=0,l.top=0),l}},{key:"render",value:function(){var a=this.props,i=a.placement,s=a.setArrowRef,o=a.styles,l=o.arrow,u=l.color,d=l.display,f=l.length,g=l.margin,p=l.position,b=l.spread,y={display:d,position:p},x,S=b,C=f;return i.startsWith("top")?(x="0,0 ".concat(S/2,",").concat(C," ").concat(S,",0"),y.bottom=0,y.marginLeft=g,y.marginRight=g):i.startsWith("bottom")?(x="".concat(S,",").concat(C," ").concat(S/2,",0 0,").concat(C),y.top=0,y.marginLeft=g,y.marginRight=g):i.startsWith("left")?(C=b,S=f,x="0,0 ".concat(S,",").concat(C/2," 0,").concat(C),y.right=0,y.marginTop=g,y.marginBottom=g):i.startsWith("right")&&(C=b,S=f,x="".concat(S,",").concat(C," ").concat(S,",0 0,").concat(C/2),y.left=0,y.marginTop=g,y.marginBottom=g),pe.createElement("div",{className:"__floater__arrow",style:this.parentStyle},pe.createElement("span",{ref:s,style:y},pe.createElement("svg",{width:S,height:C,version:"1.1",xmlns:"http://www.w3.org/2000/svg"},pe.createElement("polygon",{points:x,fill:u}))))}}]),t})(pe.Component);ta(rB,"propTypes",{placement:Ae.string.isRequired,setArrowRef:Ae.func.isRequired,styles:Ae.object.isRequired});var Q9=["color","height","width"];function aB(n){var e=n.handleClick,t=n.styles,r=t.color,a=t.height,i=t.width,s=eB(t,Q9);return pe.createElement("button",{"aria-label":"close",onClick:e,style:s,type:"button"},pe.createElement("svg",{width:"".concat(i,"px"),height:"".concat(a,"px"),viewBox:"0 0 18 18",version:"1.1",xmlns:"http://www.w3.org/2000/svg",preserveAspectRatio:"xMidYMid"},pe.createElement("g",null,pe.createElement("path",{d:"M8.13911129,9.00268191 L0.171521827,17.0258467 C-0.0498027049,17.248715 -0.0498027049,17.6098394 0.171521827,17.8327545 C0.28204354,17.9443526 0.427188206,17.9998706 0.572051765,17.9998706 C0.71714958,17.9998706 0.862013139,17.9443526 0.972581703,17.8327545 L9.0000937,9.74924618 L17.0276057,17.8327545 C17.1384085,17.9443526 17.2832721,17.9998706 17.4281356,17.9998706 C17.5729992,17.9998706 17.718097,17.9443526 17.8286656,17.8327545 C18.0499901,17.6098862 18.0499901,17.2487618 17.8286656,17.0258467 L9.86135722,9.00268191 L17.8340066,0.973848225 C18.0553311,0.750979934 18.0553311,0.389855532 17.8340066,0.16694039 C17.6126821,-0.0556467968 17.254037,-0.0556467968 17.0329467,0.16694039 L9.00042166,8.25611765 L0.967006424,0.167268345 C0.745681892,-0.0553188426 0.387317931,-0.0553188426 0.165993399,0.167268345 C-0.0553311331,0.390136635 -0.0553311331,0.751261038 0.165993399,0.974176179 L8.13920499,9.00268191 L8.13911129,9.00268191 Z",fill:r}))))}aB.propTypes={handleClick:Ae.func.isRequired,styles:Ae.object.isRequired};function iB(n){var e=n.content,t=n.footer,r=n.handleClick,a=n.open,i=n.positionWrapper,s=n.showCloseButton,o=n.title,l=n.styles,u={content:pe.isValidElement(e)?e:pe.createElement("div",{className:"__floater__content",style:l.content},e)};return o&&(u.title=pe.isValidElement(o)?o:pe.createElement("div",{className:"__floater__title",style:l.title},o)),t&&(u.footer=pe.isValidElement(t)?t:pe.createElement("div",{className:"__floater__footer",style:l.footer},t)),(s||i)&&!xe.boolean(a)&&(u.close=pe.createElement(aB,{styles:l.close,handleClick:r})),pe.createElement("div",{className:"__floater__container",style:l.container},u.close,u.title,u.content,u.footer)}iB.propTypes={content:Ae.node.isRequired,footer:Ae.node,handleClick:Ae.func.isRequired,open:Ae.bool,positionWrapper:Ae.bool.isRequired,showCloseButton:Ae.bool.isRequired,styles:Ae.object.isRequired,title:Ae.node};var sB=(function(n){Nh(t,n);var e=Ih(t);function t(){return Ph(this,t),e.apply(this,arguments)}return Lh(t,[{key:"style",get:function(){var a=this.props,i=a.disableAnimation,s=a.component,o=a.placement,l=a.hideArrow,u=a.status,d=a.styles,f=d.arrow.length,g=d.floater,p=d.floaterCentered,b=d.floaterClosing,y=d.floaterOpening,x=d.floaterWithAnimation,S=d.floaterWithComponent,C={};return l||(o.startsWith("top")?C.padding="0 0 ".concat(f,"px"):o.startsWith("bottom")?C.padding="".concat(f,"px 0 0"):o.startsWith("left")?C.padding="0 ".concat(f,"px 0 0"):o.startsWith("right")&&(C.padding="0 0 0 ".concat(f,"px"))),[nn.OPENING,nn.OPEN].indexOf(u)!==-1&&(C=kn(kn({},C),y)),u===nn.CLOSING&&(C=kn(kn({},C),b)),u===nn.OPEN&&!i&&(C=kn(kn({},C),x)),o==="center"&&(C=kn(kn({},C),p)),s&&(C=kn(kn({},C),S)),kn(kn({},g),C)}},{key:"render",value:function(){var a=this.props,i=a.component,s=a.handleClick,o=a.hideArrow,l=a.setFloaterRef,u=a.status,d={},f=["__floater"];return i?pe.isValidElement(i)?d.content=pe.cloneElement(i,{closeFn:s}):d.content=i({closeFn:s}):d.content=pe.createElement(iB,this.props),u===nn.OPEN&&f.push("__floater__open"),o||(d.arrow=pe.createElement(rB,this.props)),pe.createElement("div",{ref:l,className:f.join(" "),style:this.style},pe.createElement("div",{className:"__floater__body"},d.content,d.arrow))}}]),t})(pe.Component);ta(sB,"propTypes",{component:Ae.oneOfType([Ae.func,Ae.element]),content:Ae.node,disableAnimation:Ae.bool.isRequired,footer:Ae.node,handleClick:Ae.func.isRequired,hideArrow:Ae.bool.isRequired,open:Ae.bool,placement:Ae.string.isRequired,positionWrapper:Ae.bool.isRequired,setArrowRef:Ae.func.isRequired,setFloaterRef:Ae.func.isRequired,showCloseButton:Ae.bool,status:Ae.string.isRequired,styles:Ae.object.isRequired,title:Ae.node});var oB=(function(n){Nh(t,n);var e=Ih(t);function t(){return Ph(this,t),e.apply(this,arguments)}return Lh(t,[{key:"render",value:function(){var a=this.props,i=a.children,s=a.handleClick,o=a.handleMouseEnter,l=a.handleMouseLeave,u=a.setChildRef,d=a.setWrapperRef,f=a.style,g=a.styles,p;if(i)if(pe.Children.count(i)===1)if(!pe.isValidElement(i))p=pe.createElement("span",null,i);else{var b=xe.function(i.type)?"innerRef":"ref";p=pe.cloneElement(pe.Children.only(i),ta({},b,u))}else p=i;return p?pe.createElement("span",{ref:d,style:kn(kn({},g),f),onClick:s,onMouseEnter:o,onMouseLeave:l},p):null}}]),t})(pe.Component);ta(oB,"propTypes",{children:Ae.node,handleClick:Ae.func.isRequired,handleMouseEnter:Ae.func.isRequired,handleMouseLeave:Ae.func.isRequired,setChildRef:Ae.func.isRequired,setWrapperRef:Ae.func.isRequired,style:Ae.object,styles:Ae.object.isRequired});var K9={zIndex:100};function J9(n){var e=xi(K9,n.options||{});return{wrapper:{cursor:"help",display:"inline-flex",flexDirection:"column",zIndex:e.zIndex},wrapperPosition:{left:-1e3,position:"absolute",top:-1e3,visibility:"hidden"},floater:{display:"inline-block",filter:"drop-shadow(0 0 3px rgba(0, 0, 0, 0.3))",maxWidth:300,opacity:0,position:"relative",transition:"opacity 0.3s",visibility:"hidden",zIndex:e.zIndex},floaterOpening:{opacity:1,visibility:"visible"},floaterWithAnimation:{opacity:1,transition:"opacity 0.3s, transform 0.2s",visibility:"visible"},floaterWithComponent:{maxWidth:"100%"},floaterClosing:{opacity:0,visibility:"visible"},floaterCentered:{left:"50%",position:"fixed",top:"50%",transform:"translate(-50%, -50%)"},container:{backgroundColor:"#fff",color:"#666",minHeight:60,minWidth:200,padding:20,position:"relative",zIndex:10},title:{borderBottom:"1px solid #555",color:"#555",fontSize:18,marginBottom:5,paddingBottom:6,paddingRight:18},content:{fontSize:15},close:{backgroundColor:"transparent",border:0,borderRadius:0,color:"#555",fontSize:0,height:15,outline:"none",padding:10,position:"absolute",right:0,top:0,width:15,WebkitAppearance:"none"},footer:{borderTop:"1px solid #ccc",fontSize:13,marginTop:10,paddingTop:5},arrow:{color:"#fff",display:"inline-flex",length:16,margin:8,position:"absolute",spread:32},options:e}}var eU=["arrow","flip","offset"],tU=["position","top","right","bottom","left"],JE=(function(n){Nh(t,n);var e=Ih(t);function t(r){var a;return Ph(this,t),a=e.call(this,r),ta(bs(a),"setArrowRef",function(i){a.arrowRef=i}),ta(bs(a),"setChildRef",function(i){a.childRef=i}),ta(bs(a),"setFloaterRef",function(i){a.floaterRef=i}),ta(bs(a),"setWrapperRef",function(i){a.wrapperRef=i}),ta(bs(a),"handleTransitionEnd",function(){var i=a.state.status,s=a.props.callback;a.wrapperPopper&&a.wrapperPopper.instance.update(),a.setState({status:i===nn.OPENING?nn.OPEN:nn.IDLE},function(){var o=a.state.status;s(o===nn.OPEN?"open":"close",a.props)})}),ta(bs(a),"handleClick",function(){var i=a.props,s=i.event,o=i.open;if(!xe.boolean(o)){var l=a.state,u=l.positionWrapper,d=l.status;(a.event==="click"||a.event==="hover"&&u)&&(tp({title:"click",data:[{event:s,status:d===nn.OPEN?"closing":"opening"}],debug:a.debug}),a.toggle())}}),ta(bs(a),"handleMouseEnter",function(){var i=a.props,s=i.event,o=i.open;if(!(xe.boolean(o)||cy())){var l=a.state.status;a.event==="hover"&&l===nn.IDLE&&(tp({title:"mouseEnter",data:[{key:"originalEvent",value:s}],debug:a.debug}),clearTimeout(a.eventDelayTimeout),a.toggle())}}),ta(bs(a),"handleMouseLeave",function(){var i=a.props,s=i.event,o=i.eventDelay,l=i.open;if(!(xe.boolean(l)||cy())){var u=a.state,d=u.status,f=u.positionWrapper;a.event==="hover"&&(tp({title:"mouseLeave",data:[{key:"originalEvent",value:s}],debug:a.debug}),o?[nn.OPENING,nn.OPEN].indexOf(d)!==-1&&!f&&!a.eventDelayTimeout&&(a.eventDelayTimeout=setTimeout(function(){delete a.eventDelayTimeout,a.toggle()},o*1e3)):a.toggle(nn.IDLE))}}),a.state={currentPlacement:r.placement,needsUpdate:!1,positionWrapper:r.wrapperOptions.position&&!!r.target,status:nn.INIT,statusWrapper:nn.INIT},a._isMounted=!1,a.hasMounted=!1,ki()&&window.addEventListener("load",function(){a.popper&&a.popper.instance.update(),a.wrapperPopper&&a.wrapperPopper.instance.update()}),a}return Lh(t,[{key:"componentDidMount",value:function(){if(ki()){var a=this.state.positionWrapper,i=this.props,s=i.children,o=i.open,l=i.target;this._isMounted=!0,tp({title:"init",data:{hasChildren:!!s,hasTarget:!!l,isControlled:xe.boolean(o),positionWrapper:a,target:this.target,floater:this.floaterRef},debug:this.debug}),this.hasMounted||(this.initPopper(),this.hasMounted=!0),!s&&l&&xe.boolean(o)}}},{key:"componentDidUpdate",value:function(a,i){if(ki()){var s=this.props,o=s.autoOpen,l=s.open,u=s.target,d=s.wrapperOptions,f=I9(i,this.state),g=f.changedFrom,p=f.changed;if(a.open!==l){var b;xe.boolean(l)&&(b=l?nn.OPENING:nn.CLOSING),this.toggle(b)}(a.wrapperOptions.position!==d.position||a.target!==u)&&this.changeWrapperPosition(this.props),p("status",nn.IDLE)&&l?this.toggle(nn.OPEN):g("status",nn.INIT,nn.IDLE)&&o&&this.toggle(nn.OPEN),this.popper&&p("status",nn.OPENING)&&this.popper.instance.update(),this.floaterRef&&(p("status",nn.OPENING)||p("status",nn.CLOSING))&&Z9(this.floaterRef,"transitionend",this.handleTransitionEnd),p("needsUpdate",!0)&&this.rebuildPopper()}}},{key:"componentWillUnmount",value:function(){ki()&&(this._isMounted=!1,this.popper&&this.popper.instance.destroy(),this.wrapperPopper&&this.wrapperPopper.instance.destroy())}},{key:"initPopper",value:function(){var a=this,i=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.target,s=this.state.positionWrapper,o=this.props,l=o.disableFlip,u=o.getPopper,d=o.hideArrow,f=o.offset,g=o.placement,p=o.wrapperOptions,b=g==="top"||g==="bottom"?"flip":["right","bottom-end","top-end","left","top-start","bottom-start"];if(g==="center")this.setState({status:nn.IDLE});else if(i&&this.floaterRef){var y=this.options,x=y.arrow,S=y.flip,C=y.offset,O=eB(y,eU);new th(i,this.floaterRef,{placement:g,modifiers:kn({arrow:kn({enabled:!d,element:this.arrowRef},x),flip:kn({enabled:!l,behavior:b},S),offset:kn({offset:"0, ".concat(f,"px")},C)},O),onCreate:function(A){var T;if(a.popper=A,!((T=a.floaterRef)!==null&&T!==void 0&&T.isConnected)){a.setState({needsUpdate:!0});return}u(A,"floater"),a._isMounted&&a.setState({currentPlacement:A.placement,status:nn.IDLE}),g!==A.placement&&setTimeout(function(){A.instance.update()},1)},onUpdate:function(A){a.popper=A;var T=a.state.currentPlacement;a._isMounted&&A.placement!==T&&a.setState({currentPlacement:A.placement})}})}if(s){var D=xe.undefined(p.offset)?0:p.offset;new th(this.target,this.wrapperRef,{placement:p.placement||g,modifiers:{arrow:{enabled:!1},offset:{offset:"0, ".concat(D,"px")},flip:{enabled:!1}},onCreate:function(A){a.wrapperPopper=A,a._isMounted&&a.setState({statusWrapper:nn.IDLE}),u(A,"wrapper"),g!==A.placement&&setTimeout(function(){A.instance.update()},1)}})}}},{key:"rebuildPopper",value:function(){var a=this;this.floaterRefInterval=setInterval(function(){var i;(i=a.floaterRef)!==null&&i!==void 0&&i.isConnected&&(clearInterval(a.floaterRefInterval),a.setState({needsUpdate:!1}),a.initPopper())},50)}},{key:"changeWrapperPosition",value:function(a){var i=a.target,s=a.wrapperOptions;this.setState({positionWrapper:s.position&&!!i})}},{key:"toggle",value:function(a){var i=this.state.status,s=i===nn.OPEN?nn.CLOSING:nn.OPENING;xe.undefined(a)||(s=a),this.setState({status:s})}},{key:"debug",get:function(){var a=this.props.debug;return a||ki()&&"ReactFloaterDebug"in window&&!!window.ReactFloaterDebug}},{key:"event",get:function(){var a=this.props,i=a.disableHoverToClick,s=a.event;return s==="hover"&&cy()&&!i?"click":s}},{key:"options",get:function(){var a=this.props.options;return xi(B9,a||{})}},{key:"styles",get:function(){var a=this,i=this.state,s=i.status,o=i.positionWrapper,l=i.statusWrapper,u=this.props.styles,d=xi(J9(u),u);if(o){var f;[nn.IDLE].indexOf(s)===-1||[nn.IDLE].indexOf(l)===-1?f=d.wrapperPosition:f=this.wrapperPopper.styles,d.wrapper=kn(kn({},d.wrapper),f)}if(this.target){var g=window.getComputedStyle(this.target);this.wrapperStyles?d.wrapper=kn(kn({},d.wrapper),this.wrapperStyles):["relative","static"].indexOf(g.position)===-1&&(this.wrapperStyles={},o||(tU.forEach(function(p){a.wrapperStyles[p]=g[p]}),d.wrapper=kn(kn({},d.wrapper),this.wrapperStyles),this.target.style.position="relative",this.target.style.top="auto",this.target.style.right="auto",this.target.style.bottom="auto",this.target.style.left="auto"))}return d}},{key:"target",get:function(){if(!ki())return null;var a=this.props.target;return a?xe.domElement(a)?a:document.querySelector(a):this.childRef||this.wrapperRef}},{key:"render",value:function(){var a=this.state,i=a.currentPlacement,s=a.positionWrapper,o=a.status,l=this.props,u=l.children,d=l.component,f=l.content,g=l.disableAnimation,p=l.footer,b=l.hideArrow,y=l.id,x=l.open,S=l.showCloseButton,C=l.style,O=l.target,D=l.title,M=pe.createElement(oB,{handleClick:this.handleClick,handleMouseEnter:this.handleMouseEnter,handleMouseLeave:this.handleMouseLeave,setChildRef:this.setChildRef,setWrapperRef:this.setWrapperRef,style:C,styles:this.styles.wrapper},u),A={};return s?A.wrapperInPortal=M:A.wrapperAsChildren=M,pe.createElement("span",null,pe.createElement(nB,{hasChildren:!!u,id:y,placement:i,setRef:this.setFloaterRef,target:O,zIndex:this.styles.options.zIndex},pe.createElement(sB,{component:d,content:f,disableAnimation:g,footer:p,handleClick:this.handleClick,hideArrow:b||i==="center",open:x,placement:i,positionWrapper:s,setArrowRef:this.setArrowRef,setFloaterRef:this.setFloaterRef,showCloseButton:S,status:o,styles:this.styles,title:D}),A.wrapperInPortal),A.wrapperAsChildren)}}]),t})(pe.Component);ta(JE,"propTypes",{autoOpen:Ae.bool,callback:Ae.func,children:Ae.node,component:wR(Ae.oneOfType([Ae.func,Ae.element]),function(n){return!n.content}),content:wR(Ae.node,function(n){return!n.component}),debug:Ae.bool,disableAnimation:Ae.bool,disableFlip:Ae.bool,disableHoverToClick:Ae.bool,event:Ae.oneOf(["hover","click"]),eventDelay:Ae.number,footer:Ae.node,getPopper:Ae.func,hideArrow:Ae.bool,id:Ae.oneOfType([Ae.string,Ae.number]),offset:Ae.number,open:Ae.bool,options:Ae.object,placement:Ae.oneOf(["top","top-start","top-end","bottom","bottom-start","bottom-end","left","left-start","left-end","right","right-start","right-end","auto","center"]),showCloseButton:Ae.bool,style:Ae.object,styles:Ae.object,target:Ae.oneOfType([Ae.object,Ae.string]),title:Ae.node,wrapperOptions:Ae.shape({offset:Ae.number,placement:Ae.oneOf(["top","top-start","top-end","bottom","bottom-start","bottom-end","left","left-start","left-end","right","right-start","right-end","auto"]),position:Ae.bool})});ta(JE,"defaultProps",{autoOpen:!1,callback:SR,debug:!1,disableAnimation:!1,disableFlip:!1,disableHoverToClick:!1,event:"click",eventDelay:.4,getPopper:SR,hideArrow:!1,offset:15,placement:"bottom",showCloseButton:!1,styles:{},target:null,wrapperOptions:{position:!1}});var nU=Object.defineProperty,rU=(n,e,t)=>e in n?nU(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t,rt=(n,e,t)=>rU(n,typeof e!="symbol"?e+"":e,t),mn={INIT:"init",START:"start",STOP:"stop",RESET:"reset",PREV:"prev",NEXT:"next",GO:"go",CLOSE:"close",SKIP:"skip",UPDATE:"update"},yi={TOUR_START:"tour:start",STEP_BEFORE:"step:before",BEACON:"beacon",TOOLTIP:"tooltip",STEP_AFTER:"step:after",TOUR_END:"tour:end",TOUR_STATUS:"tour:status",TARGET_NOT_FOUND:"error:target_not_found"},_t={INIT:"init",READY:"ready",BEACON:"beacon",TOOLTIP:"tooltip",COMPLETE:"complete",ERROR:"error"},Zt={IDLE:"idle",READY:"ready",WAITING:"waiting",RUNNING:"running",PAUSED:"paused",SKIPPED:"skipped",FINISHED:"finished"};function ho(){var n;return!!(typeof window<"u"&&((n=window.document)!=null&&n.createElement))}function lB(n){return n?n.getBoundingClientRect():null}function aU(n=!1){const{body:e,documentElement:t}=document;if(!e||!t)return 0;if(n){const r=[e.scrollHeight,e.offsetHeight,t.clientHeight,t.scrollHeight,t.offsetHeight].sort((i,s)=>i-s),a=Math.floor(r.length/2);return r.length%2===0?(r[a-1]+r[a])/2:r[a]}return Math.max(e.scrollHeight,e.offsetHeight,t.clientHeight,t.scrollHeight,t.offsetHeight)}function ws(n){if(typeof n=="string")try{return document.querySelector(n)}catch{return null}return n}function iU(n){return!n||n.nodeType!==1?null:getComputedStyle(n)}function nh(n,e,t){if(!n)return hl();const r=$z(n);if(r){if(r.isSameNode(hl()))return t?document:hl();if(!(r.scrollHeight>r.offsetHeight)&&!e)return r.style.overflow="initial",hl()}return r}function pv(n,e){if(!n)return!1;const t=nh(n,e);return t?!t.isSameNode(hl()):!1}function sU(n){return n.offsetParent!==document.body}function ru(n,e="fixed"){if(!n||!(n instanceof HTMLElement))return!1;const{nodeName:t}=n,r=iU(n);return t==="BODY"||t==="HTML"?!1:r&&r.position===e?!0:n.parentNode?ru(n.parentNode,e):!1}function oU(n){var e;if(!n)return!1;let t=n;for(;t&&t!==document.body;){if(t instanceof HTMLElement){const{display:r,visibility:a}=getComputedStyle(t);if(r==="none"||a==="hidden")return!1}t=(e=t.parentElement)!=null?e:null}return!0}function lU(n,e,t){var r,a,i;const s=lB(n),o=nh(n,t),l=pv(n,t),u=ru(n);let d=0,f=(r=s?.top)!=null?r:0;if(l&&u){const g=(a=n?.offsetTop)!=null?a:0,p=(i=o?.scrollTop)!=null?i:0;f=g-p}else o instanceof HTMLElement&&(d=o.scrollTop,!l&&!ru(n)&&(f+=d),o.isSameNode(hl())||(f+=hl().scrollTop));return Math.floor(f-e)}function cU(n,e,t){var r;if(!n)return 0;const{offsetTop:a=0,scrollTop:i=0}=(r=$z(n))!=null?r:{};let s=n.getBoundingClientRect().top+i;a&&(pv(n,t)||sU(n))&&(s-=a);const o=Math.floor(s-e);return o<0?0:o}function hl(){var n;return(n=document.scrollingElement)!=null?n:document.documentElement}function uU(n,e){const{duration:t,element:r}=e;return new Promise((a,i)=>{const{scrollTop:s}=r,o=n>s?n-s:s-n;A8.top(r,n,{duration:o<100?50:t},l=>l&&l.message!=="Element already at target scroll position"?i(l):a())})}var rf=Cs.createPortal!==void 0;function cB(n=navigator.userAgent){let e=n;return typeof window>"u"?e="node":document.documentMode?e="ie":/Edge/.test(n)?e="edge":window.opera||n.includes(" OPR/")?e="opera":typeof window.InstallTrigger<"u"?e="firefox":window.chrome?e="chrome":/(Version\/([\d._]+).*Safari|CriOS|FxiOS| Mobile\/)/.test(n)&&(e="safari"),e}function dm(n){return Object.prototype.toString.call(n).slice(8,-1).toLowerCase()}function Hi(n,e={}){const{defaultValue:t,step:r,steps:a}=e;let i=sR(n);if(i)(i.includes("{step}")||i.includes("{steps}"))&&r&&a&&(i=i.replace("{step}",r.toString()).replace("{steps}",a.toString()));else if(E.isValidElement(n)&&!Object.values(n.props).length&&dm(n.type)==="function"){const s=n.type({});i=Hi(s,e)}else i=sR(t);return i}function dU(n,e){return!et.plainObject(n)||!et.array(e)?!1:Object.keys(n).every(t=>e.includes(t))}function fU(n){const e=/^#?([\da-f])([\da-f])([\da-f])$/i,t=n.replace(e,(a,i,s,o)=>i+i+s+s+o+o),r=/^#?([\da-f]{2})([\da-f]{2})([\da-f]{2})$/i.exec(t);return r?[parseInt(r[1],16),parseInt(r[2],16),parseInt(r[3],16)]:[]}function CR(n){return n.disableBeacon||n.placement==="center"}function OR(){return!["chrome","safari","firefox","opera"].includes(cB())}function Sl({data:n,debug:e=!1,title:t,warn:r=!1}){const a=r?console.warn||console.error:console.log;e&&(t&&n?(console.groupCollapsed(`%creact-joyride: ${t}`,"color: #ff0044; font-weight: bold; font-size: 12px;"),Array.isArray(n)?n.forEach(i=>{et.plainObject(i)&&i.key?a.apply(console,[i.key,i.value]):a.apply(console,[i])}):a.apply(console,[n]),console.groupEnd()):console.error("Missing title or data props"))}function hU(n){return Object.keys(n)}function uB(n,...e){if(!et.plainObject(n))throw new TypeError("Expected an object");const t={};for(const r in n)({}).hasOwnProperty.call(n,r)&&(e.includes(r)||(t[r]=n[r]));return t}function gU(n,...e){if(!et.plainObject(n))throw new TypeError("Expected an object");if(!e.length)return n;const t={};for(const r in n)({}).hasOwnProperty.call(n,r)&&e.includes(r)&&(t[r]=n[r]);return t}function aO(n,e,t){const r=i=>i.replace("{step}",String(e)).replace("{steps}",String(t));if(dm(n)==="string")return r(n);if(!E.isValidElement(n))return n;const{children:a}=n.props;if(dm(a)==="string"&&a.includes("{step}"))return E.cloneElement(n,{children:r(a)});if(Array.isArray(a))return E.cloneElement(n,{children:a.map(i=>typeof i=="string"?r(i):aO(i,e,t))});if(dm(n.type)==="function"&&!Object.values(n.props).length){const i=n.type({});return aO(i,e,t)}return n}function pU(n){const{isFirstStep:e,lifecycle:t,previousLifecycle:r,scrollToFirstStep:a,step:i,target:s}=n;return!i.disableScrolling&&(!e||a||t===_t.TOOLTIP)&&i.placement!=="center"&&(!i.isFixed||!ru(s))&&r!==t&&[_t.BEACON,_t.TOOLTIP].includes(t)}var mU={options:{preventOverflow:{boundariesElement:"scrollParent"}},wrapperOptions:{offset:-18,position:!0}},dB={back:"Back",close:"Close",last:"Last",next:"Next",nextLabelWithProgress:"Next (Step {step} of {steps})",open:"Open the dialog",skip:"Skip"},vU={event:"click",placement:"bottom",offset:10,disableBeacon:!1,disableCloseOnEsc:!1,disableOverlay:!1,disableOverlayClose:!1,disableScrollParentFix:!1,disableScrolling:!1,hideBackButton:!1,hideCloseButton:!1,hideFooter:!1,isFixed:!1,locale:dB,showProgress:!1,showSkipButton:!1,spotlightClicks:!1,spotlightPadding:10},bU={continuous:!1,debug:!1,disableCloseOnEsc:!1,disableOverlay:!1,disableOverlayClose:!1,disableScrolling:!1,disableScrollParentFix:!1,getHelpers:void 0,hideBackButton:!1,run:!0,scrollOffset:20,scrollDuration:300,scrollToFirstStep:!1,showSkipButton:!1,showProgress:!1,spotlightClicks:!1,spotlightPadding:10,steps:[]},yU={arrowColor:"#fff",backgroundColor:"#fff",beaconSize:36,overlayColor:"rgba(0, 0, 0, 0.5)",primaryColor:"#f04",spotlightShadow:"0 0 15px rgba(0, 0, 0, 0.5)",textColor:"#333",width:380,zIndex:100},af={backgroundColor:"transparent",border:0,borderRadius:0,color:"#555",cursor:"pointer",fontSize:16,lineHeight:1,padding:8,WebkitAppearance:"none"},ER={borderRadius:4,position:"absolute"};function xU(n,e){var t,r,a,i,s;const{floaterProps:o,styles:l}=n,u=xi((t=e.floaterProps)!=null?t:{},o??{}),d=xi(l??{},(r=e.styles)!=null?r:{}),f=xi(yU,d.options||{}),g=e.placement==="center"||e.disableBeacon;let{width:p}=f;window.innerWidth>480&&(p=380),"width"in f&&(p=typeof f.width=="number"&&window.innerWidth<f.width?window.innerWidth-30:f.width);const b={bottom:0,left:0,overflow:"hidden",position:"absolute",right:0,top:0,zIndex:f.zIndex},y={beacon:{...af,display:g?"none":"inline-block",height:f.beaconSize,position:"relative",width:f.beaconSize,zIndex:f.zIndex},beaconInner:{animation:"joyride-beacon-inner 1.2s infinite ease-in-out",backgroundColor:f.primaryColor,borderRadius:"50%",display:"block",height:"50%",left:"50%",opacity:.7,position:"absolute",top:"50%",transform:"translate(-50%, -50%)",width:"50%"},beaconOuter:{animation:"joyride-beacon-outer 1.2s infinite ease-in-out",backgroundColor:`rgba(${fU(f.primaryColor).join(",")}, 0.2)`,border:`2px solid ${f.primaryColor}`,borderRadius:"50%",boxSizing:"border-box",display:"block",height:"100%",left:0,opacity:.9,position:"absolute",top:0,transformOrigin:"center",width:"100%"},tooltip:{backgroundColor:f.backgroundColor,borderRadius:5,boxSizing:"border-box",color:f.textColor,fontSize:16,maxWidth:"100%",padding:15,position:"relative",width:p},tooltipContainer:{lineHeight:1.4,textAlign:"center"},tooltipTitle:{fontSize:18,margin:0},tooltipContent:{padding:"20px 10px"},tooltipFooter:{alignItems:"center",display:"flex",justifyContent:"flex-end",marginTop:15},tooltipFooterSpacer:{flex:1},buttonNext:{...af,backgroundColor:f.primaryColor,borderRadius:4,color:"#fff"},buttonBack:{...af,color:f.primaryColor,marginLeft:"auto",marginRight:5},buttonClose:{...af,color:f.textColor,height:14,padding:15,position:"absolute",right:0,top:0,width:14},buttonSkip:{...af,color:f.textColor,fontSize:14},overlay:{...b,backgroundColor:f.overlayColor,mixBlendMode:"hard-light"},overlayLegacy:{...b},overlayLegacyCenter:{...b,backgroundColor:f.overlayColor},spotlight:{...ER,backgroundColor:"gray"},spotlightLegacy:{...ER,boxShadow:`0 0 0 9999px ${f.overlayColor}, ${f.spotlightShadow}`},floaterStyles:{arrow:{color:(s=(i=(a=u?.styles)==null?void 0:a.arrow)==null?void 0:i.color)!=null?s:f.arrowColor},options:{zIndex:f.zIndex+100}},options:f};return xi(y,d)}function wU(n){return gU(n,"beaconComponent","disableCloseOnEsc","disableOverlay","disableOverlayClose","disableScrolling","disableScrollParentFix","floaterProps","hideBackButton","hideCloseButton","locale","showProgress","showSkipButton","spotlightClicks","spotlightPadding","styles","tooltipComponent")}function Pc(n,e){var t,r,a,i,s,o;const l=e??{},u=xi.all([vU,wU(n),l],{isMergeableObject:et.plainObject}),d=xU(n,u),f=pv(ws(u.target),u.disableScrollParentFix),g=xi.all([mU,(t=n.floaterProps)!=null?t:{},(r=u.floaterProps)!=null?r:{}]);return g.offset=u.offset,g.styles=xi((a=g.styles)!=null?a:{},d.floaterStyles),g.offset+=(s=(i=n.spotlightPadding)!=null?i:u.spotlightPadding)!=null?s:0,u.placementBeacon&&g.wrapperOptions&&(g.wrapperOptions.placement=u.placementBeacon),f&&g.options.preventOverflow&&(g.options.preventOverflow.boundariesElement="window"),{...u,locale:xi.all([dB,(o=n.locale)!=null?o:{},u.locale||{}]),floaterProps:g,styles:uB(d,"floaterStyles")}}function fB(n,e=!1){return et.plainObject(n)?n.target?!0:(Sl({title:"validateStep",data:"target is missing from the step",warn:!0,debug:e}),!1):(Sl({title:"validateStep",data:"step must be an object",warn:!0,debug:e}),!1)}function MR(n,e=!1){return et.array(n)?n.every(t=>fB(t,e)):(Sl({title:"validateSteps",data:"steps must be an array",warn:!0,debug:e}),!1)}var hB={action:"init",controlled:!1,index:0,lifecycle:_t.INIT,origin:null,size:0,status:Zt.IDLE},DR=hU(uB(hB,"controlled","size")),SU=class{constructor(n){rt(this,"beaconPopper"),rt(this,"tooltipPopper"),rt(this,"data",new Map),rt(this,"listener"),rt(this,"store",new Map),rt(this,"addListener",a=>{this.listener=a}),rt(this,"setSteps",a=>{const{size:i,status:s}=this.getState(),o={size:a.length,status:s};this.data.set("steps",a),s===Zt.WAITING&&!i&&a.length&&(o.status=Zt.RUNNING),this.setState(o)}),rt(this,"getPopper",a=>a==="beacon"?this.beaconPopper:this.tooltipPopper),rt(this,"setPopper",(a,i)=>{a==="beacon"?this.beaconPopper=i:this.tooltipPopper=i}),rt(this,"cleanupPoppers",()=>{this.beaconPopper=null,this.tooltipPopper=null}),rt(this,"close",(a=null)=>{const{index:i,status:s}=this.getState();s===Zt.RUNNING&&this.setState({...this.getNextState({action:mn.CLOSE,index:i+1,origin:a})})}),rt(this,"go",a=>{const{controlled:i,status:s}=this.getState();if(i||s!==Zt.RUNNING)return;const o=this.getSteps()[a];this.setState({...this.getNextState({action:mn.GO,index:a}),status:o?s:Zt.FINISHED})}),rt(this,"info",()=>this.getState()),rt(this,"next",()=>{const{index:a,status:i}=this.getState();i===Zt.RUNNING&&this.setState(this.getNextState({action:mn.NEXT,index:a+1}))}),rt(this,"open",()=>{const{status:a}=this.getState();a===Zt.RUNNING&&this.setState({...this.getNextState({action:mn.UPDATE,lifecycle:_t.TOOLTIP})})}),rt(this,"prev",()=>{const{index:a,status:i}=this.getState();i===Zt.RUNNING&&this.setState({...this.getNextState({action:mn.PREV,index:a-1})})}),rt(this,"reset",(a=!1)=>{const{controlled:i}=this.getState();i||this.setState({...this.getNextState({action:mn.RESET,index:0}),status:a?Zt.RUNNING:Zt.READY})}),rt(this,"skip",()=>{const{status:a}=this.getState();a===Zt.RUNNING&&this.setState({action:mn.SKIP,lifecycle:_t.INIT,status:Zt.SKIPPED})}),rt(this,"start",a=>{const{index:i,size:s}=this.getState();this.setState({...this.getNextState({action:mn.START,index:et.number(a)?a:i},!0),status:s?Zt.RUNNING:Zt.WAITING})}),rt(this,"stop",(a=!1)=>{const{index:i,status:s}=this.getState();[Zt.FINISHED,Zt.SKIPPED].includes(s)||this.setState({...this.getNextState({action:mn.STOP,index:i+(a?1:0)}),status:Zt.PAUSED})}),rt(this,"update",a=>{var i,s;if(!dU(a,DR))throw new Error(`State is not valid. Valid keys: ${DR.join(", ")}`);this.setState({...this.getNextState({...this.getState(),...a,action:(i=a.action)!=null?i:mn.UPDATE,origin:(s=a.origin)!=null?s:null},!0)})});const{continuous:e=!1,stepIndex:t,steps:r=[]}=n??{};this.setState({action:mn.INIT,controlled:et.number(t),continuous:e,index:et.number(t)?t:0,lifecycle:_t.INIT,origin:null,status:r.length?Zt.READY:Zt.IDLE},!0),this.beaconPopper=null,this.tooltipPopper=null,this.listener=null,this.setSteps(r)}getState(){return this.store.size?{action:this.store.get("action")||"",controlled:this.store.get("controlled")||!1,index:parseInt(this.store.get("index"),10),lifecycle:this.store.get("lifecycle")||"",origin:this.store.get("origin")||null,size:this.store.get("size")||0,status:this.store.get("status")||""}:{...hB}}getNextState(n,e=!1){var t,r,a,i,s;const{action:o,controlled:l,index:u,size:d,status:f}=this.getState(),g=et.number(n.index)?n.index:u,p=l&&!e?u:Math.min(Math.max(g,0),d);return{action:(t=n.action)!=null?t:o,controlled:l,index:p,lifecycle:(r=n.lifecycle)!=null?r:_t.INIT,origin:(a=n.origin)!=null?a:null,size:(i=n.size)!=null?i:d,status:p===d?Zt.FINISHED:(s=n.status)!=null?s:f}}getSteps(){const n=this.data.get("steps");return Array.isArray(n)?n:[]}hasUpdatedState(n){const e=JSON.stringify(n),t=JSON.stringify(this.getState());return e!==t}setState(n,e=!1){const t=this.getState(),{action:r,index:a,lifecycle:i,origin:s=null,size:o,status:l}={...t,...n};this.store.set("action",r),this.store.set("index",a),this.store.set("lifecycle",i),this.store.set("origin",s),this.store.set("size",o),this.store.set("status",l),e&&(this.store.set("controlled",n.controlled),this.store.set("continuous",n.continuous)),this.listener&&this.hasUpdatedState(t)&&this.listener(this.getState())}getHelpers(){return{close:this.close,go:this.go,info:this.info,next:this.next,open:this.open,prev:this.prev,reset:this.reset,skip:this.skip}}};function CU(n){return new SU(n)}function OU({styles:n}){return E.createElement("div",{key:"JoyrideSpotlight",className:"react-joyride__spotlight","data-test-id":"spotlight",style:n})}var EU=OU,MU=class extends E.Component{constructor(){super(...arguments),rt(this,"isActive",!1),rt(this,"resizeTimeout"),rt(this,"scrollTimeout"),rt(this,"scrollParent"),rt(this,"state",{isScrolling:!1,mouseOverSpotlight:!1,showSpotlight:!0}),rt(this,"hideSpotlight",()=>{const{continuous:n,disableOverlay:e,lifecycle:t}=this.props,r=[_t.INIT,_t.BEACON,_t.COMPLETE,_t.ERROR];return e||(n?r.includes(t):t!==_t.TOOLTIP)}),rt(this,"handleMouseMove",n=>{const{mouseOverSpotlight:e}=this.state,{height:t,left:r,position:a,top:i,width:s}=this.spotlightStyles,o=a==="fixed"?n.clientY:n.pageY,l=a==="fixed"?n.clientX:n.pageX,u=o>=i&&o<=i+t,f=l>=r&&l<=r+s&&u;f!==e&&this.updateState({mouseOverSpotlight:f})}),rt(this,"handleScroll",()=>{const{target:n}=this.props,e=ws(n);if(this.scrollParent!==document){const{isScrolling:t}=this.state;t||this.updateState({isScrolling:!0,showSpotlight:!1}),clearTimeout(this.scrollTimeout),this.scrollTimeout=window.setTimeout(()=>{this.updateState({isScrolling:!1,showSpotlight:!0})},50)}else ru(e,"sticky")&&this.updateState({})}),rt(this,"handleResize",()=>{clearTimeout(this.resizeTimeout),this.resizeTimeout=window.setTimeout(()=>{this.isActive&&this.forceUpdate()},100)})}componentDidMount(){const{debug:n,disableScrolling:e,disableScrollParentFix:t=!1,target:r}=this.props,a=ws(r);this.scrollParent=nh(a??document.body,t,!0),this.isActive=!0,window.addEventListener("resize",this.handleResize)}componentDidUpdate(n){var e;const{disableScrollParentFix:t,lifecycle:r,spotlightClicks:a,target:i}=this.props,{changed:s}=Nm(n,this.props);if(s("target")||s("disableScrollParentFix")){const o=ws(i);this.scrollParent=nh(o??document.body,t,!0)}s("lifecycle",_t.TOOLTIP)&&((e=this.scrollParent)==null||e.addEventListener("scroll",this.handleScroll,{passive:!0}),setTimeout(()=>{const{isScrolling:o}=this.state;o||this.updateState({showSpotlight:!0})},100)),(s("spotlightClicks")||s("disableOverlay")||s("lifecycle"))&&(a&&r===_t.TOOLTIP?window.addEventListener("mousemove",this.handleMouseMove,!1):r!==_t.TOOLTIP&&window.removeEventListener("mousemove",this.handleMouseMove))}componentWillUnmount(){var n;this.isActive=!1,window.removeEventListener("mousemove",this.handleMouseMove),window.removeEventListener("resize",this.handleResize),clearTimeout(this.resizeTimeout),clearTimeout(this.scrollTimeout),(n=this.scrollParent)==null||n.removeEventListener("scroll",this.handleScroll)}get overlayStyles(){const{mouseOverSpotlight:n}=this.state,{disableOverlayClose:e,placement:t,styles:r}=this.props;let a=r.overlay;return OR()&&(a=t==="center"?r.overlayLegacyCenter:r.overlayLegacy),{cursor:e?"default":"pointer",height:aU(),pointerEvents:n?"none":"auto",...a}}get spotlightStyles(){var n,e,t;const{showSpotlight:r}=this.state,{disableScrollParentFix:a=!1,spotlightClicks:i,spotlightPadding:s=0,styles:o,target:l}=this.props,u=ws(l),d=lB(u),f=ru(u),g=lU(u,s,a);return{...OR()?o.spotlightLegacy:o.spotlight,height:Math.round(((n=d?.height)!=null?n:0)+s*2),left:Math.round(((e=d?.left)!=null?e:0)-s),opacity:r?1:0,pointerEvents:i?"none":"auto",position:f?"fixed":"absolute",top:g,transition:"opacity 0.2s",width:Math.round(((t=d?.width)!=null?t:0)+s*2)}}updateState(n){this.isActive&&this.setState(e=>({...e,...n}))}render(){const{showSpotlight:n}=this.state,{onClickOverlay:e,placement:t}=this.props,{hideSpotlight:r,overlayStyles:a,spotlightStyles:i}=this;if(r())return null;let s=t!=="center"&&n&&E.createElement(EU,{styles:i});if(cB()==="safari"){const{mixBlendMode:o,zIndex:l,...u}=a;s=E.createElement("div",{style:{...u}},s),delete a.backgroundColor}return E.createElement("div",{className:"react-joyride__overlay","data-test-id":"overlay",onClick:e,role:"presentation",style:a},s)}},DU=class extends E.Component{constructor(){super(...arguments),rt(this,"node",null)}componentDidMount(){const{id:n}=this.props;ho()&&(this.node=document.createElement("div"),this.node.id=n,document.body.appendChild(this.node),rf||this.renderReact15())}componentDidUpdate(){ho()&&(rf||this.renderReact15())}componentWillUnmount(){!ho()||!this.node||(rf||Cs.unmountComponentAtNode(this.node),this.node.parentNode===document.body&&(document.body.removeChild(this.node),this.node=null))}renderReact15(){if(!ho())return;const{children:n}=this.props;this.node&&Cs.unstable_renderSubtreeIntoContainer(this,n,this.node)}renderReact16(){if(!ho()||!rf)return null;const{children:n}=this.props;return this.node?Cs.createPortal(n,this.node):null}render(){return rf?this.renderReact16():null}},_U=class{constructor(n,e){if(rt(this,"element"),rt(this,"options"),rt(this,"canBeTabbed",t=>{const{tabIndex:r}=t;return r===null||r<0?!1:this.canHaveFocus(t)}),rt(this,"canHaveFocus",t=>{const r=/input|select|textarea|button|object/,a=t.nodeName.toLowerCase();return(r.test(a)&&!t.getAttribute("disabled")||a==="a"&&!!t.getAttribute("href"))&&this.isVisible(t)}),rt(this,"findValidTabElements",()=>[].slice.call(this.element.querySelectorAll("*"),0).filter(this.canBeTabbed)),rt(this,"handleKeyDown",t=>{const{code:r="Tab"}=this.options;t.code===r&&this.interceptTab(t)}),rt(this,"interceptTab",t=>{t.preventDefault();const r=this.findValidTabElements(),{shiftKey:a}=t;if(!r.length)return;let i=document.activeElement?r.indexOf(document.activeElement):0;i===-1||!a&&i+1===r.length?i=0:a&&i===0?i=r.length-1:i+=a?-1:1,r[i].focus()}),rt(this,"isHidden",t=>{const r=t.offsetWidth<=0&&t.offsetHeight<=0,a=window.getComputedStyle(t);return r&&!t.innerHTML?!0:r&&a.getPropertyValue("overflow")!=="visible"||a.getPropertyValue("display")==="none"}),rt(this,"isVisible",t=>{let r=t;for(;r;)if(r instanceof HTMLElement){if(r===document.body)break;if(this.isHidden(r))return!1;r=r.parentNode}return!0}),rt(this,"removeScope",()=>{window.removeEventListener("keydown",this.handleKeyDown)}),rt(this,"checkFocus",t=>{document.activeElement!==t&&(t.focus(),window.requestAnimationFrame(()=>this.checkFocus(t)))}),rt(this,"setFocus",()=>{const{selector:t}=this.options;if(!t)return;const r=this.element.querySelector(t);r&&window.requestAnimationFrame(()=>this.checkFocus(r))}),!(n instanceof HTMLElement))throw new TypeError("Invalid parameter: element must be an HTMLElement");this.element=n,this.options=e,window.addEventListener("keydown",this.handleKeyDown,!1),this.setFocus()}},AU=class extends E.Component{constructor(n){if(super(n),rt(this,"beacon",null),rt(this,"setBeaconRef",a=>{this.beacon=a}),n.beaconComponent)return;const e=document.head||document.getElementsByTagName("head")[0],t=document.createElement("style");t.id="joyride-beacon-animation",n.nonce&&t.setAttribute("nonce",n.nonce),t.appendChild(document.createTextNode(`
        @keyframes joyride-beacon-inner {
          20% {
            opacity: 0.9;
          }
        
          90% {
            opacity: 0.7;
          }
        }
        
        @keyframes joyride-beacon-outer {
          0% {
            transform: scale(1);
          }
        
          45% {
            opacity: 0.7;
            transform: scale(0.75);
          }
        
          100% {
            opacity: 0.9;
            transform: scale(1);
          }
        }
      `)),e.appendChild(t)}componentDidMount(){const{shouldFocus:n}=this.props;setTimeout(()=>{et.domElement(this.beacon)&&n&&this.beacon.focus()},0)}componentWillUnmount(){const n=document.getElementById("joyride-beacon-animation");n?.parentNode&&n.parentNode.removeChild(n)}render(){const{beaconComponent:n,continuous:e,index:t,isLastStep:r,locale:a,onClickOrHover:i,size:s,step:o,styles:l}=this.props,u=Hi(a.open),d={"aria-label":u,onClick:i,onMouseEnter:i,ref:this.setBeaconRef,title:u};let f;if(n){const g=n;f=E.createElement(g,{continuous:e,index:t,isLastStep:r,size:s,step:o,...d})}else f=E.createElement("button",{key:"JoyrideBeacon",className:"react-joyride__beacon","data-test-id":"button-beacon",style:l.beacon,type:"button",...d},E.createElement("span",{style:l.beaconInner}),E.createElement("span",{style:l.beaconOuter}));return f}};function TU({styles:n,...e}){const{color:t,height:r,width:a,...i}=n;return pe.createElement("button",{style:i,type:"button",...e},pe.createElement("svg",{height:typeof r=="number"?`${r}px`:r,preserveAspectRatio:"xMidYMid",version:"1.1",viewBox:"0 0 18 18",width:typeof a=="number"?`${a}px`:a,xmlns:"http://www.w3.org/2000/svg"},pe.createElement("g",null,pe.createElement("path",{d:"M8.13911129,9.00268191 L0.171521827,17.0258467 C-0.0498027049,17.248715 -0.0498027049,17.6098394 0.171521827,17.8327545 C0.28204354,17.9443526 0.427188206,17.9998706 0.572051765,17.9998706 C0.71714958,17.9998706 0.862013139,17.9443526 0.972581703,17.8327545 L9.0000937,9.74924618 L17.0276057,17.8327545 C17.1384085,17.9443526 17.2832721,17.9998706 17.4281356,17.9998706 C17.5729992,17.9998706 17.718097,17.9443526 17.8286656,17.8327545 C18.0499901,17.6098862 18.0499901,17.2487618 17.8286656,17.0258467 L9.86135722,9.00268191 L17.8340066,0.973848225 C18.0553311,0.750979934 18.0553311,0.389855532 17.8340066,0.16694039 C17.6126821,-0.0556467968 17.254037,-0.0556467968 17.0329467,0.16694039 L9.00042166,8.25611765 L0.967006424,0.167268345 C0.745681892,-0.0553188426 0.387317931,-0.0553188426 0.165993399,0.167268345 C-0.0553311331,0.390136635 -0.0553311331,0.751261038 0.165993399,0.974176179 L8.13920499,9.00268191 L8.13911129,9.00268191 Z",fill:t}))))}var RU=TU;function PU(n){const{backProps:e,closeProps:t,index:r,isLastStep:a,primaryProps:i,skipProps:s,step:o,tooltipProps:l}=n,{content:u,hideBackButton:d,hideCloseButton:f,hideFooter:g,showSkipButton:p,styles:b,title:y}=o,x={};return x.primary=E.createElement("button",{"data-test-id":"button-primary",style:b.buttonNext,type:"button",...i}),p&&!a&&(x.skip=E.createElement("button",{"aria-live":"off","data-test-id":"button-skip",style:b.buttonSkip,type:"button",...s})),!d&&r>0&&(x.back=E.createElement("button",{"data-test-id":"button-back",style:b.buttonBack,type:"button",...e})),x.close=!f&&E.createElement(RU,{"data-test-id":"button-close",styles:b.buttonClose,...t}),E.createElement("div",{key:"JoyrideTooltip","aria-label":Hi(y??u),className:"react-joyride__tooltip",style:b.tooltip,...l},E.createElement("div",{style:b.tooltipContainer},y&&E.createElement("h1",{"aria-label":Hi(y),style:b.tooltipTitle},y),E.createElement("div",{style:b.tooltipContent},u)),!g&&E.createElement("div",{style:b.tooltipFooter},E.createElement("div",{style:b.tooltipFooterSpacer},x.skip),x.back,x.primary),x.close)}var LU=PU,NU=class extends E.Component{constructor(){super(...arguments),rt(this,"handleClickBack",n=>{n.preventDefault();const{helpers:e}=this.props;e.prev()}),rt(this,"handleClickClose",n=>{n.preventDefault();const{helpers:e}=this.props;e.close("button_close")}),rt(this,"handleClickPrimary",n=>{n.preventDefault();const{continuous:e,helpers:t}=this.props;if(!e){t.close("button_primary");return}t.next()}),rt(this,"handleClickSkip",n=>{n.preventDefault();const{helpers:e}=this.props;e.skip()}),rt(this,"getElementsProps",()=>{const{continuous:n,index:e,isLastStep:t,setTooltipRef:r,size:a,step:i}=this.props,{back:s,close:o,last:l,next:u,nextLabelWithProgress:d,skip:f}=i.locale,g=Hi(s),p=Hi(o),b=Hi(l),y=Hi(u),x=Hi(f);let S=o,C=p;if(n){if(S=u,C=y,i.showProgress&&!t){const O=Hi(d,{step:e+1,steps:a});S=aO(d,e+1,a),C=O}t&&(S=l,C=b)}return{backProps:{"aria-label":g,children:s,"data-action":"back",onClick:this.handleClickBack,role:"button",title:g},closeProps:{"aria-label":p,children:o,"data-action":"close",onClick:this.handleClickClose,role:"button",title:p},primaryProps:{"aria-label":C,children:S,"data-action":"primary",onClick:this.handleClickPrimary,role:"button",title:C},skipProps:{"aria-label":x,children:f,"data-action":"skip",onClick:this.handleClickSkip,role:"button",title:x},tooltipProps:{"aria-modal":!0,ref:r,role:"alertdialog"}}})}render(){const{continuous:n,index:e,isLastStep:t,setTooltipRef:r,size:a,step:i}=this.props,{beaconComponent:s,tooltipComponent:o,...l}=i;let u;if(o){const d={...this.getElementsProps(),continuous:n,index:e,isLastStep:t,size:a,step:l,setTooltipRef:r},f=o;u=E.createElement(f,{...d})}else u=E.createElement(LU,{...this.getElementsProps(),continuous:n,index:e,isLastStep:t,size:a,step:i});return u}},IU=class extends E.Component{constructor(){super(...arguments),rt(this,"scope",null),rt(this,"tooltip",null),rt(this,"handleClickHoverBeacon",n=>{const{step:e,store:t}=this.props;n.type==="mouseenter"&&e.event!=="hover"||t.update({lifecycle:_t.TOOLTIP})}),rt(this,"setTooltipRef",n=>{this.tooltip=n}),rt(this,"setPopper",(n,e)=>{var t;const{action:r,lifecycle:a,step:i,store:s}=this.props;e==="wrapper"?s.setPopper("beacon",n):s.setPopper("tooltip",n),s.getPopper("beacon")&&(s.getPopper("tooltip")||i.placement==="center")&&a===_t.INIT&&s.update({action:r,lifecycle:_t.READY}),(t=i.floaterProps)!=null&&t.getPopper&&i.floaterProps.getPopper(n,e)}),rt(this,"renderTooltip",n=>{const{continuous:e,helpers:t,index:r,size:a,step:i}=this.props;return E.createElement(NU,{continuous:e,helpers:t,index:r,isLastStep:r+1===a,setTooltipRef:this.setTooltipRef,size:a,step:i,...n})})}componentDidMount(){const{debug:n,index:e}=this.props;Sl({title:`step:${e}`,data:[{key:"props",value:this.props}],debug:n})}componentDidUpdate(n){var e;const{action:t,callback:r,continuous:a,controlled:i,debug:s,helpers:o,index:l,lifecycle:u,shouldScroll:d,status:f,step:g,store:p}=this.props,{changed:b,changedFrom:y}=Nm(n,this.props),x=o.info(),S=a&&t!==mn.CLOSE&&(l>0||t===mn.PREV),C=b("action")||b("index")||b("lifecycle")||b("status"),O=y("lifecycle",[_t.TOOLTIP,_t.INIT],_t.INIT),D=b("action",[mn.NEXT,mn.PREV,mn.SKIP,mn.CLOSE]),M=i&&l===n.index;if(D&&(O||M)&&r({...x,index:n.index,lifecycle:_t.COMPLETE,step:n.step,type:yi.STEP_AFTER}),g.placement==="center"&&f===Zt.RUNNING&&b("index")&&t!==mn.START&&u===_t.INIT&&p.update({lifecycle:_t.READY}),C){const A=ws(g.target),T=!!A;T&&oU(A)?(y("status",Zt.READY,Zt.RUNNING)||y("lifecycle",_t.INIT,_t.READY))&&r({...x,step:g,type:yi.STEP_BEFORE}):(console.warn(T?"Target not visible":"Target not mounted",g),r({...x,type:yi.TARGET_NOT_FOUND,step:g}),i||p.update({index:l+(t===mn.PREV?-1:1)}))}y("lifecycle",_t.INIT,_t.READY)&&p.update({lifecycle:CR(g)||S?_t.TOOLTIP:_t.BEACON}),b("index")&&Sl({title:`step:${u}`,data:[{key:"props",value:this.props}],debug:s}),b("lifecycle",_t.BEACON)&&r({...x,step:g,type:yi.BEACON}),b("lifecycle",_t.TOOLTIP)&&(r({...x,step:g,type:yi.TOOLTIP}),d&&this.tooltip&&(this.scope=new _U(this.tooltip,{selector:"[data-action=primary]"}),this.scope.setFocus())),y("lifecycle",[_t.TOOLTIP,_t.INIT],_t.INIT)&&((e=this.scope)==null||e.removeScope(),p.cleanupPoppers())}componentWillUnmount(){var n;(n=this.scope)==null||n.removeScope()}get open(){const{lifecycle:n,step:e}=this.props;return CR(e)||n===_t.TOOLTIP}render(){const{continuous:n,debug:e,index:t,nonce:r,shouldScroll:a,size:i,step:s}=this.props,o=ws(s.target);return!fB(s)||!et.domElement(o)?null:E.createElement("div",{key:`JoyrideStep-${t}`,className:"react-joyride__step"},E.createElement(JE,{...s.floaterProps,component:this.renderTooltip,debug:e,getPopper:this.setPopper,id:`react-joyride-step-${t}`,open:this.open,placement:s.placement,target:s.target},E.createElement(AU,{beaconComponent:s.beaconComponent,continuous:n,index:t,isLastStep:t+1===i,locale:s.locale,nonce:r,onClickOrHover:this.handleClickHoverBeacon,shouldFocus:a,size:i,step:s,styles:s.styles})))}},gB=class extends E.Component{constructor(n){super(n),rt(this,"helpers"),rt(this,"store"),rt(this,"callback",s=>{const{callback:o}=this.props;et.function(o)&&o(s)}),rt(this,"handleKeyboard",s=>{const{index:o,lifecycle:l}=this.state,{steps:u}=this.props,d=u[o];l===_t.TOOLTIP&&s.code==="Escape"&&d&&!d.disableCloseOnEsc&&this.store.close("keyboard")}),rt(this,"handleClickOverlay",()=>{const{index:s}=this.state,{steps:o}=this.props;Pc(this.props,o[s]).disableOverlayClose||this.helpers.close("overlay")}),rt(this,"syncState",s=>{this.setState(s)});const{debug:e,getHelpers:t,run:r=!0,stepIndex:a}=n;this.store=CU({...n,controlled:r&&et.number(a)}),this.helpers=this.store.getHelpers();const{addListener:i}=this.store;Sl({title:"init",data:[{key:"props",value:this.props},{key:"state",value:this.state}],debug:e}),i(this.syncState),t&&t(this.helpers),this.state=this.store.getState()}componentDidMount(){if(!ho())return;const{debug:n,disableCloseOnEsc:e,run:t,steps:r}=this.props,{start:a}=this.store;MR(r,n)&&t&&a(),e||document.body.addEventListener("keydown",this.handleKeyboard,{passive:!0})}componentDidUpdate(n,e){if(!ho())return;const{action:t,controlled:r,index:a,status:i}=this.state,{debug:s,run:o,stepIndex:l,steps:u}=this.props,{stepIndex:d,steps:f}=n,{reset:g,setSteps:p,start:b,stop:y,update:x}=this.store,{changed:S}=Nm(n,this.props),{changed:C,changedFrom:O}=Nm(e,this.state),D=Pc(this.props,u[a]),M=!la(f,u),A=et.number(l)&&S("stepIndex"),T=ws(D.target);if(M&&(MR(u,s)?p(u):console.warn("Steps are not valid",u)),S("run")&&(o?b(l):y()),A){let N=et.number(d)&&d<l?mn.NEXT:mn.PREV;t===mn.STOP&&(N=mn.START),[Zt.FINISHED,Zt.SKIPPED].includes(i)||x({action:t===mn.CLOSE?mn.CLOSE:N,index:l,lifecycle:_t.INIT})}!r&&i===Zt.RUNNING&&a===0&&!T&&(this.store.update({index:a+1}),this.callback({...this.state,type:yi.TARGET_NOT_FOUND,step:D}));const P={...this.state,index:a,step:D};if(C("action",[mn.NEXT,mn.PREV,mn.SKIP,mn.CLOSE])&&C("status",Zt.PAUSED)){const N=Pc(this.props,u[e.index]);this.callback({...P,index:e.index,lifecycle:_t.COMPLETE,step:N,type:yi.STEP_AFTER})}if(C("status",[Zt.FINISHED,Zt.SKIPPED])){const N=Pc(this.props,u[e.index]);r||this.callback({...P,index:e.index,lifecycle:_t.COMPLETE,step:N,type:yi.STEP_AFTER}),this.callback({...P,type:yi.TOUR_END,step:N,index:e.index}),g()}else O("status",[Zt.IDLE,Zt.READY],Zt.RUNNING)?this.callback({...P,type:yi.TOUR_START}):(C("status")||C("action",mn.RESET))&&this.callback({...P,type:yi.TOUR_STATUS});this.scrollToStep(e)}componentWillUnmount(){const{disableCloseOnEsc:n}=this.props;n||document.body.removeEventListener("keydown",this.handleKeyboard)}scrollToStep(n){const{index:e,lifecycle:t,status:r}=this.state,{debug:a,disableScrollParentFix:i=!1,scrollDuration:s,scrollOffset:o=20,scrollToFirstStep:l=!1,steps:u}=this.props,d=Pc(this.props,u[e]),f=ws(d.target),g=pU({isFirstStep:e===0,lifecycle:t,previousLifecycle:n.lifecycle,scrollToFirstStep:l,step:d,target:f});if(r===Zt.RUNNING&&g){const p=pv(f,i),b=nh(f,i);let y=Math.floor(cU(f,o,i))||0;Sl({title:"scrollToStep",data:[{key:"index",value:e},{key:"lifecycle",value:t},{key:"status",value:r}],debug:a});const x=this.store.getPopper("beacon"),S=this.store.getPopper("tooltip");if(t===_t.BEACON&&x){const{offsets:C,placement:O}=x;!["bottom"].includes(O)&&!p&&(y=Math.floor(C.popper.top-o))}else if(t===_t.TOOLTIP&&S){const{flipped:C,offsets:O,placement:D}=S;["top","right","left"].includes(D)&&!C&&!p?y=Math.floor(O.popper.top-o):y-=d.spotlightPadding}y=y>=0?y:0,r===Zt.RUNNING&&uU(y,{element:b,duration:s}).then(()=>{setTimeout(()=>{var C;(C=this.store.getPopper("tooltip"))==null||C.instance.update()},10)})}}render(){if(!ho())return null;const{index:n,lifecycle:e,status:t}=this.state,{continuous:r=!1,debug:a=!1,nonce:i,scrollToFirstStep:s=!1,steps:o}=this.props,l=t===Zt.RUNNING,u={};if(l&&o[n]){const d=Pc(this.props,o[n]);u.step=E.createElement(IU,{...this.state,callback:this.callback,continuous:r,debug:a,helpers:this.helpers,nonce:i,shouldScroll:!d.disableScrolling&&(n!==0||s),step:d,store:this.store}),u.overlay=E.createElement(DU,{id:"react-joyride-portal"},E.createElement(MU,{...d,continuous:r,debug:a,lifecycle:e,onClickOverlay:this.handleClickOverlay}))}return E.createElement("div",{className:"react-joyride"},u.step,u.overlay)}};rt(gB,"defaultProps",bU);var gde=gB;function vt(n){"@babel/helpers - typeof";return vt=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},vt(n)}var $U=Symbol.for("react.element"),FU=Symbol.for("react.transitional.element"),kU=Symbol.for("react.fragment");function pB(n){return n&&vt(n)==="object"&&(n.$$typeof===$U||n.$$typeof===FU)&&n.type===kU}function km(n){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},t=[];return pe.Children.forEach(n,function(r){r==null&&!e.keepEmpty||(Array.isArray(r)?t=t.concat(km(r)):pB(r)&&r.props?t=t.concat(km(r.props.children,e)):t.push(r))}),t}var iO={},HU=function(e){};function zU(n,e){}function BU(n,e){}function YU(){iO={}}function mB(n,e,t){!e&&!iO[t]&&(n(!1,t),iO[t]=!0)}function Sa(n,e){mB(zU,n,e)}function jU(n,e){mB(BU,n,e)}Sa.preMessage=HU;Sa.resetWarned=YU;Sa.noteOnce=jU;function WU(n,e){if(vt(n)!="object"||!n)return n;var t=n[Symbol.toPrimitive];if(t!==void 0){var r=t.call(n,e);if(vt(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(n)}function vB(n){var e=WU(n,"string");return vt(e)=="symbol"?e:e+""}function ae(n,e,t){return(e=vB(e))in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}function _R(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(n,a).enumerable})),t.push.apply(t,r)}return t}function se(n){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?_R(Object(t),!0).forEach(function(r){ae(n,r,t[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):_R(Object(t)).forEach(function(r){Object.defineProperty(n,r,Object.getOwnPropertyDescriptor(t,r))})}return n}function rh(n){return n instanceof HTMLElement||n instanceof SVGElement}function qU(n){return n&&vt(n)==="object"&&rh(n.nativeElement)?n.nativeElement:rh(n)?n:null}function fm(n){var e=qU(n);if(e)return e;if(n instanceof pe.Component){var t;return(t=ba.findDOMNode)===null||t===void 0?void 0:t.call(ba,n)}return null}var uy={exports:{}},pn={};/**
 * @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 AR;function XU(){if(AR)return pn;AR=1;var n=Symbol.for("react.element"),e=Symbol.for("react.portal"),t=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),i=Symbol.for("react.provider"),s=Symbol.for("react.context"),o=Symbol.for("react.server_context"),l=Symbol.for("react.forward_ref"),u=Symbol.for("react.suspense"),d=Symbol.for("react.suspense_list"),f=Symbol.for("react.memo"),g=Symbol.for("react.lazy"),p=Symbol.for("react.offscreen"),b;b=Symbol.for("react.module.reference");function y(x){if(typeof x=="object"&&x!==null){var S=x.$$typeof;switch(S){case n:switch(x=x.type,x){case t:case a:case r:case u:case d:return x;default:switch(x=x&&x.$$typeof,x){case o:case s:case l:case g:case f:case i:return x;default:return S}}case e:return S}}}return pn.ContextConsumer=s,pn.ContextProvider=i,pn.Element=n,pn.ForwardRef=l,pn.Fragment=t,pn.Lazy=g,pn.Memo=f,pn.Portal=e,pn.Profiler=a,pn.StrictMode=r,pn.Suspense=u,pn.SuspenseList=d,pn.isAsyncMode=function(){return!1},pn.isConcurrentMode=function(){return!1},pn.isContextConsumer=function(x){return y(x)===s},pn.isContextProvider=function(x){return y(x)===i},pn.isElement=function(x){return typeof x=="object"&&x!==null&&x.$$typeof===n},pn.isForwardRef=function(x){return y(x)===l},pn.isFragment=function(x){return y(x)===t},pn.isLazy=function(x){return y(x)===g},pn.isMemo=function(x){return y(x)===f},pn.isPortal=function(x){return y(x)===e},pn.isProfiler=function(x){return y(x)===a},pn.isStrictMode=function(x){return y(x)===r},pn.isSuspense=function(x){return y(x)===u},pn.isSuspenseList=function(x){return y(x)===d},pn.isValidElementType=function(x){return typeof x=="string"||typeof x=="function"||x===t||x===a||x===r||x===u||x===d||x===p||typeof x=="object"&&x!==null&&(x.$$typeof===g||x.$$typeof===f||x.$$typeof===i||x.$$typeof===s||x.$$typeof===l||x.$$typeof===b||x.getModuleId!==void 0)},pn.typeOf=y,pn}var TR;function VU(){return TR||(TR=1,uy.exports=XU()),uy.exports}var dy=VU();function eM(n,e,t){var r=E.useRef({});return(!("value"in r.current)||t(r.current.condition,e))&&(r.current.value=n(),r.current.condition=e),r.current.value}var UU=Number(E.version.split(".")[0]),tM=function(e,t){typeof e=="function"?e(t):vt(e)==="object"&&e&&"current"in e&&(e.current=t)},mv=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var a=t.filter(Boolean);return a.length<=1?a[0]:function(i){t.forEach(function(s){tM(s,i)})}},vv=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return eM(function(){return mv.apply(void 0,t)},t,function(a,i){return a.length!==i.length||a.every(function(s,o){return s!==i[o]})})},$h=function(e){var t,r;if(!e)return!1;if(bB(e)&&UU>=19)return!0;var a=dy.isMemo(e)?e.type.type:e.type;return!(typeof a=="function"&&!((t=a.prototype)!==null&&t!==void 0&&t.render)&&a.$$typeof!==dy.ForwardRef||typeof e=="function"&&!((r=e.prototype)!==null&&r!==void 0&&r.render)&&e.$$typeof!==dy.ForwardRef)};function bB(n){return E.isValidElement(n)&&!pB(n)}var bv=function(e){if(e&&bB(e)){var t=e;return t.props.propertyIsEnumerable("ref")?t.props.ref:t.ref}return null},sO=E.createContext(null);function GU(n){var e=n.children,t=n.onBatchResize,r=E.useRef(0),a=E.useRef([]),i=E.useContext(sO),s=E.useCallback(function(o,l,u){r.current+=1;var d=r.current;a.current.push({size:o,element:l,data:u}),Promise.resolve().then(function(){d===r.current&&(t?.(a.current),a.current=[])}),i?.(o,l,u)},[t,i]);return E.createElement(sO.Provider,{value:s},e)}var yB=(function(){if(typeof Map<"u")return Map;function n(e,t){var r=-1;return e.some(function(a,i){return a[0]===t?(r=i,!0):!1}),r}return(function(){function e(){this.__entries__=[]}return Object.defineProperty(e.prototype,"size",{get:function(){return this.__entries__.length},enumerable:!0,configurable:!0}),e.prototype.get=function(t){var r=n(this.__entries__,t),a=this.__entries__[r];return a&&a[1]},e.prototype.set=function(t,r){var a=n(this.__entries__,t);~a?this.__entries__[a][1]=r:this.__entries__.push([t,r])},e.prototype.delete=function(t){var r=this.__entries__,a=n(r,t);~a&&r.splice(a,1)},e.prototype.has=function(t){return!!~n(this.__entries__,t)},e.prototype.clear=function(){this.__entries__.splice(0)},e.prototype.forEach=function(t,r){r===void 0&&(r=null);for(var a=0,i=this.__entries__;a<i.length;a++){var s=i[a];t.call(r,s[1],s[0])}},e})()})(),oO=typeof window<"u"&&typeof document<"u"&&window.document===document,Hm=(function(){return typeof global<"u"&&global.Math===Math?global:typeof self<"u"&&self.Math===Math?self:typeof window<"u"&&window.Math===Math?window:Function("return this")()})(),ZU=(function(){return typeof requestAnimationFrame=="function"?requestAnimationFrame.bind(Hm):function(n){return setTimeout(function(){return n(Date.now())},1e3/60)}})(),QU=2;function KU(n,e){var t=!1,r=!1,a=0;function i(){t&&(t=!1,n()),r&&o()}function s(){ZU(i)}function o(){var l=Date.now();if(t){if(l-a<QU)return;r=!0}else t=!0,r=!1,setTimeout(s,e);a=l}return o}var JU=20,e7=["top","right","bottom","left","width","height","size","weight"],t7=typeof MutationObserver<"u",n7=(function(){function n(){this.connected_=!1,this.mutationEventsAdded_=!1,this.mutationsObserver_=null,this.observers_=[],this.onTransitionEnd_=this.onTransitionEnd_.bind(this),this.refresh=KU(this.refresh.bind(this),JU)}return n.prototype.addObserver=function(e){~this.observers_.indexOf(e)||this.observers_.push(e),this.connected_||this.connect_()},n.prototype.removeObserver=function(e){var t=this.observers_,r=t.indexOf(e);~r&&t.splice(r,1),!t.length&&this.connected_&&this.disconnect_()},n.prototype.refresh=function(){var e=this.updateObservers_();e&&this.refresh()},n.prototype.updateObservers_=function(){var e=this.observers_.filter(function(t){return t.gatherActive(),t.hasActive()});return e.forEach(function(t){return t.broadcastActive()}),e.length>0},n.prototype.connect_=function(){!oO||this.connected_||(document.addEventListener("transitionend",this.onTransitionEnd_),window.addEventListener("resize",this.refresh),t7?(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)},n.prototype.disconnect_=function(){!oO||!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)},n.prototype.onTransitionEnd_=function(e){var t=e.propertyName,r=t===void 0?"":t,a=e7.some(function(i){return!!~r.indexOf(i)});a&&this.refresh()},n.getInstance=function(){return this.instance_||(this.instance_=new n),this.instance_},n.instance_=null,n})(),xB=(function(n,e){for(var t=0,r=Object.keys(e);t<r.length;t++){var a=r[t];Object.defineProperty(n,a,{value:e[a],enumerable:!1,writable:!1,configurable:!0})}return n}),au=(function(n){var e=n&&n.ownerDocument&&n.ownerDocument.defaultView;return e||Hm}),wB=yv(0,0,0,0);function zm(n){return parseFloat(n)||0}function RR(n){for(var e=[],t=1;t<arguments.length;t++)e[t-1]=arguments[t];return e.reduce(function(r,a){var i=n["border-"+a+"-width"];return r+zm(i)},0)}function r7(n){for(var e=["top","right","bottom","left"],t={},r=0,a=e;r<a.length;r++){var i=a[r],s=n["padding-"+i];t[i]=zm(s)}return t}function a7(n){var e=n.getBBox();return yv(0,0,e.width,e.height)}function i7(n){var e=n.clientWidth,t=n.clientHeight;if(!e&&!t)return wB;var r=au(n).getComputedStyle(n),a=r7(r),i=a.left+a.right,s=a.top+a.bottom,o=zm(r.width),l=zm(r.height);if(r.boxSizing==="border-box"&&(Math.round(o+i)!==e&&(o-=RR(r,"left","right")+i),Math.round(l+s)!==t&&(l-=RR(r,"top","bottom")+s)),!o7(n)){var u=Math.round(o+i)-e,d=Math.round(l+s)-t;Math.abs(u)!==1&&(o-=u),Math.abs(d)!==1&&(l-=d)}return yv(a.left,a.top,o,l)}var s7=(function(){return typeof SVGGraphicsElement<"u"?function(n){return n instanceof au(n).SVGGraphicsElement}:function(n){return n instanceof au(n).SVGElement&&typeof n.getBBox=="function"}})();function o7(n){return n===au(n).document.documentElement}function l7(n){return oO?s7(n)?a7(n):i7(n):wB}function c7(n){var e=n.x,t=n.y,r=n.width,a=n.height,i=typeof DOMRectReadOnly<"u"?DOMRectReadOnly:Object,s=Object.create(i.prototype);return xB(s,{x:e,y:t,width:r,height:a,top:t,right:e+r,bottom:a+t,left:e}),s}function yv(n,e,t,r){return{x:n,y:e,width:t,height:r}}var u7=(function(){function n(e){this.broadcastWidth=0,this.broadcastHeight=0,this.contentRect_=yv(0,0,0,0),this.target=e}return n.prototype.isActive=function(){var e=l7(this.target);return this.contentRect_=e,e.width!==this.broadcastWidth||e.height!==this.broadcastHeight},n.prototype.broadcastRect=function(){var e=this.contentRect_;return this.broadcastWidth=e.width,this.broadcastHeight=e.height,e},n})(),d7=(function(){function n(e,t){var r=c7(t);xB(this,{target:e,contentRect:r})}return n})(),f7=(function(){function n(e,t,r){if(this.activeObservations_=[],this.observations_=new yB,typeof e!="function")throw new TypeError("The callback provided as parameter 1 is not a function.");this.callback_=e,this.controller_=t,this.callbackCtx_=r}return n.prototype.observe=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(e instanceof au(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)||(t.set(e,new u7(e)),this.controller_.addObserver(this),this.controller_.refresh())}},n.prototype.unobserve=function(e){if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");if(!(typeof Element>"u"||!(Element instanceof Object))){if(!(e instanceof au(e).Element))throw new TypeError('parameter 1 is not of type "Element".');var t=this.observations_;t.has(e)&&(t.delete(e),t.size||this.controller_.removeObserver(this))}},n.prototype.disconnect=function(){this.clearActive(),this.observations_.clear(),this.controller_.removeObserver(this)},n.prototype.gatherActive=function(){var e=this;this.clearActive(),this.observations_.forEach(function(t){t.isActive()&&e.activeObservations_.push(t)})},n.prototype.broadcastActive=function(){if(this.hasActive()){var e=this.callbackCtx_,t=this.activeObservations_.map(function(r){return new d7(r.target,r.broadcastRect())});this.callback_.call(e,t,e),this.clearActive()}},n.prototype.clearActive=function(){this.activeObservations_.splice(0)},n.prototype.hasActive=function(){return this.activeObservations_.length>0},n})(),SB=typeof WeakMap<"u"?new WeakMap:new yB,CB=(function(){function n(e){if(!(this instanceof n))throw new TypeError("Cannot call a class as a function.");if(!arguments.length)throw new TypeError("1 argument required, but only 0 present.");var t=n7.getInstance(),r=new f7(e,t,this);SB.set(this,r)}return n})();["observe","unobserve","disconnect"].forEach(function(n){CB.prototype[n]=function(){var e;return(e=SB.get(this))[n].apply(e,arguments)}});var h7=(function(){return typeof Hm.ResizeObserver<"u"?Hm.ResizeObserver:CB})(),go=new Map;function g7(n){n.forEach(function(e){var t,r=e.target;(t=go.get(r))===null||t===void 0||t.forEach(function(a){return a(r)})})}var OB=new h7(g7);function p7(n,e){go.has(n)||(go.set(n,new Set),OB.observe(n)),go.get(n).add(e)}function m7(n,e){go.has(n)&&(go.get(n).delete(e),go.get(n).size||(OB.unobserve(n),go.delete(n)))}function xr(n,e){if(!(n instanceof e))throw new TypeError("Cannot call a class as a function")}function PR(n,e){for(var t=0;t<e.length;t++){var r=e[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(n,vB(r.key),r)}}function wr(n,e,t){return e&&PR(n.prototype,e),t&&PR(n,t),Object.defineProperty(n,"prototype",{writable:!1}),n}function Co(n,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");n.prototype=Object.create(e&&e.prototype,{constructor:{value:n,writable:!0,configurable:!0}}),Object.defineProperty(n,"prototype",{writable:!1}),e&&Vc(n,e)}function ah(n){return ah=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},ah(n)}function nM(){try{var n=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(nM=function(){return!!n})()}function kt(n){if(n===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return n}function v7(n,e){if(e&&(vt(e)=="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return kt(n)}function Oo(n){var e=nM();return function(){var t,r=ah(n);if(e){var a=ah(this).constructor;t=Reflect.construct(r,arguments,a)}else t=r.apply(this,arguments);return v7(this,t)}}var b7=(function(n){Co(t,n);var e=Oo(t);function t(){return xr(this,t),e.apply(this,arguments)}return wr(t,[{key:"render",value:function(){return this.props.children}}]),t})(E.Component);function y7(n,e){var t=n.children,r=n.disabled,a=E.useRef(null),i=E.useRef(null),s=E.useContext(sO),o=typeof t=="function",l=o?t(a):t,u=E.useRef({width:-1,height:-1,offsetWidth:-1,offsetHeight:-1}),d=!o&&E.isValidElement(l)&&$h(l),f=d?bv(l):null,g=vv(f,a),p=function(){var S;return fm(a.current)||(a.current&&vt(a.current)==="object"?fm((S=a.current)===null||S===void 0?void 0:S.nativeElement):null)||fm(i.current)};E.useImperativeHandle(e,function(){return p()});var b=E.useRef(n);b.current=n;var y=E.useCallback(function(x){var S=b.current,C=S.onResize,O=S.data,D=x.getBoundingClientRect(),M=D.width,A=D.height,T=x.offsetWidth,P=x.offsetHeight,R=Math.floor(M),N=Math.floor(A);if(u.current.width!==R||u.current.height!==N||u.current.offsetWidth!==T||u.current.offsetHeight!==P){var I={width:R,height:N,offsetWidth:T,offsetHeight:P};u.current=I;var $=T===Math.round(M)?M:T,Y=P===Math.round(A)?A:P,k=se(se({},I),{},{offsetWidth:$,offsetHeight:Y});s?.(k,x,O),C&&Promise.resolve().then(function(){C(k,x)})}},[]);return E.useEffect(function(){var x=p();return x&&!r&&p7(x,y),function(){return m7(x,y)}},[a.current,r]),E.createElement(b7,{ref:i},d?E.cloneElement(l,{ref:g}):l)}var x7=E.forwardRef(y7),w7="rc-observer-key";function S7(n,e){var t=n.children,r=typeof t=="function"?[t]:km(t);return r.map(function(a,i){var s=a?.key||"".concat(w7,"-").concat(i);return E.createElement(x7,tt({},n,{key:s,ref:i===0?e:void 0}),a)})}var _l=E.forwardRef(S7);_l.Collection=GU;function lO(n,e){(e==null||e>n.length)&&(e=n.length);for(var t=0,r=Array(e);t<e;t++)r[t]=n[t];return r}function C7(n){if(Array.isArray(n))return lO(n)}function EB(n){if(typeof Symbol<"u"&&n[Symbol.iterator]!=null||n["@@iterator"]!=null)return Array.from(n)}function rM(n,e){if(n){if(typeof n=="string")return lO(n,e);var t={}.toString.call(n).slice(8,-1);return t==="Object"&&n.constructor&&(t=n.constructor.name),t==="Map"||t==="Set"?Array.from(n):t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?lO(n,e):void 0}}function O7(){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 je(n){return C7(n)||EB(n)||rM(n)||O7()}var MB=function(e){return+setTimeout(e,16)},DB=function(e){return clearTimeout(e)};typeof window<"u"&&"requestAnimationFrame"in window&&(MB=function(e){return window.requestAnimationFrame(e)},DB=function(e){return window.cancelAnimationFrame(e)});var LR=0,aM=new Map;function _B(n){aM.delete(n)}var Wr=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;LR+=1;var r=LR;function a(i){if(i===0)_B(r),e();else{var s=MB(function(){a(i-1)});aM.set(r,s)}}return a(t),r};Wr.cancel=function(n){var e=aM.get(n);return _B(n),DB(e)};function AB(n){if(Array.isArray(n))return n}function E7(n,e){var t=n==null?null:typeof Symbol<"u"&&n[Symbol.iterator]||n["@@iterator"];if(t!=null){var r,a,i,s,o=[],l=!0,u=!1;try{if(i=(t=t.call(n)).next,e===0){if(Object(t)!==t)return;l=!1}else for(;!(l=(r=i.call(t)).done)&&(o.push(r.value),o.length!==e);l=!0);}catch(d){u=!0,a=d}finally{try{if(!l&&t.return!=null&&(s=t.return(),Object(s)!==s))return}finally{if(u)throw a}}return o}}function TB(){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 le(n,e){return AB(n)||E7(n,e)||rM(n,e)||TB()}function ih(n){for(var e=0,t,r=0,a=n.length;a>=4;++r,a-=4)t=n.charCodeAt(r)&255|(n.charCodeAt(++r)&255)<<8|(n.charCodeAt(++r)&255)<<16|(n.charCodeAt(++r)&255)<<24,t=(t&65535)*1540483477+((t>>>16)*59797<<16),t^=t>>>24,e=(t&65535)*1540483477+((t>>>16)*59797<<16)^(e&65535)*1540483477+((e>>>16)*59797<<16);switch(a){case 3:e^=(n.charCodeAt(r+2)&255)<<16;case 2:e^=(n.charCodeAt(r+1)&255)<<8;case 1:e^=n.charCodeAt(r)&255,e=(e&65535)*1540483477+((e>>>16)*59797<<16)}return e^=e>>>13,e=(e&65535)*1540483477+((e>>>16)*59797<<16),((e^e>>>15)>>>0).toString(36)}function ka(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function M7(n,e){if(!n)return!1;if(n.contains)return n.contains(e);for(var t=e;t;){if(t===n)return!0;t=t.parentNode}return!1}var NR="data-rc-order",IR="data-rc-priority",D7="rc-util-key",cO=new Map;function RB(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e=n.mark;return e?e.startsWith("data-")?e:"data-".concat(e):D7}function xv(n){if(n.attachTo)return n.attachTo;var e=document.querySelector("head");return e||document.body}function _7(n){return n==="queue"?"prependQueue":n?"prepend":"append"}function iM(n){return Array.from((cO.get(n)||n).children).filter(function(e){return e.tagName==="STYLE"})}function PB(n){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!ka())return null;var t=e.csp,r=e.prepend,a=e.priority,i=a===void 0?0:a,s=_7(r),o=s==="prependQueue",l=document.createElement("style");l.setAttribute(NR,s),o&&i&&l.setAttribute(IR,"".concat(i)),t!=null&&t.nonce&&(l.nonce=t?.nonce),l.innerHTML=n;var u=xv(e),d=u.firstChild;if(r){if(o){var f=(e.styles||iM(u)).filter(function(g){if(!["prepend","prependQueue"].includes(g.getAttribute(NR)))return!1;var p=Number(g.getAttribute(IR)||0);return i>=p});if(f.length)return u.insertBefore(l,f[f.length-1].nextSibling),l}u.insertBefore(l,d)}else u.appendChild(l);return l}function LB(n){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},t=xv(e);return(e.styles||iM(t)).find(function(r){return r.getAttribute(RB(e))===n})}function sh(n){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},t=LB(n,e);if(t){var r=xv(e);r.removeChild(t)}}function A7(n,e){var t=cO.get(n);if(!t||!M7(document,t)){var r=PB("",e),a=r.parentNode;cO.set(n,a),n.removeChild(r)}}function Os(n,e){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=xv(t),a=iM(r),i=se(se({},t),{},{styles:a});A7(r,i);var s=LB(e,i);if(s){var o,l;if((o=i.csp)!==null&&o!==void 0&&o.nonce&&s.nonce!==((l=i.csp)===null||l===void 0?void 0:l.nonce)){var u;s.nonce=(u=i.csp)===null||u===void 0?void 0:u.nonce}return s.innerHTML!==n&&(s.innerHTML=n),s}var d=PB(n,i);return d.setAttribute(RB(i),e),d}function zn(n,e){if(n==null)return{};var t,r,a=AE(n,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(n);for(r=0;r<i.length;r++)t=i[r],e.indexOf(t)===-1&&{}.propertyIsEnumerable.call(n,t)&&(a[t]=n[t])}return a}function uO(n,e){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=new Set;function a(i,s){var o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,l=r.has(i);if(Sa(!l,"Warning: There may be circular references"),l)return!1;if(i===s)return!0;if(t&&o>1)return!1;r.add(i);var u=o+1;if(Array.isArray(i)){if(!Array.isArray(s)||i.length!==s.length)return!1;for(var d=0;d<i.length;d++)if(!a(i[d],s[d],u))return!1;return!0}if(i&&s&&vt(i)==="object"&&vt(s)==="object"){var f=Object.keys(i);return f.length!==Object.keys(s).length?!1:f.every(function(g){return a(i[g],s[g],u)})}return!1}return a(n,e)}var T7="%";function dO(n){return n.join(T7)}var R7=(function(){function n(e){xr(this,n),ae(this,"instanceId",void 0),ae(this,"cache",new Map),ae(this,"extracted",new Set),this.instanceId=e}return wr(n,[{key:"get",value:function(t){return this.opGet(dO(t))}},{key:"opGet",value:function(t){return this.cache.get(t)||null}},{key:"update",value:function(t,r){return this.opUpdate(dO(t),r)}},{key:"opUpdate",value:function(t,r){var a=this.cache.get(t),i=r(a);i===null?this.cache.delete(t):this.cache.set(t,i)}}]),n})(),iu="data-token-hash",wi="data-css-hash",po="__cssinjs_instance__";function P7(){var n=Math.random().toString(12).slice(2);if(typeof document<"u"&&document.head&&document.body){var e=document.body.querySelectorAll("style[".concat(wi,"]"))||[],t=document.head.firstChild;Array.from(e).forEach(function(a){a[po]=a[po]||n,a[po]===n&&document.head.insertBefore(a,t)});var r={};Array.from(document.querySelectorAll("style[".concat(wi,"]"))).forEach(function(a){var i=a.getAttribute(wi);if(r[i]){if(a[po]===n){var s;(s=a.parentNode)===null||s===void 0||s.removeChild(a)}}else r[i]=!0})}return new R7(n)}var Fh=E.createContext({hashPriority:"low",cache:P7(),defaultCache:!0});function L7(n,e){if(n.length!==e.length)return!1;for(var t=0;t<n.length;t++)if(n[t]!==e[t])return!1;return!0}var sM=(function(){function n(){xr(this,n),ae(this,"cache",void 0),ae(this,"keys",void 0),ae(this,"cacheCallTimes",void 0),this.cache=new Map,this.keys=[],this.cacheCallTimes=0}return wr(n,[{key:"size",value:function(){return this.keys.length}},{key:"internalGet",value:function(t){var r,a,i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,s={map:this.cache};return t.forEach(function(o){if(!s)s=void 0;else{var l;s=(l=s)===null||l===void 0||(l=l.map)===null||l===void 0?void 0:l.get(o)}}),(r=s)!==null&&r!==void 0&&r.value&&i&&(s.value[1]=this.cacheCallTimes++),(a=s)===null||a===void 0?void 0:a.value}},{key:"get",value:function(t){var r;return(r=this.internalGet(t,!0))===null||r===void 0?void 0:r[0]}},{key:"has",value:function(t){return!!this.internalGet(t)}},{key:"set",value:function(t,r){var a=this;if(!this.has(t)){if(this.size()+1>n.MAX_CACHE_SIZE+n.MAX_CACHE_OFFSET){var i=this.keys.reduce(function(u,d){var f=le(u,2),g=f[1];return a.internalGet(d)[1]<g?[d,a.internalGet(d)[1]]:u},[this.keys[0],this.cacheCallTimes]),s=le(i,1),o=s[0];this.delete(o)}this.keys.push(t)}var l=this.cache;t.forEach(function(u,d){if(d===t.length-1)l.set(u,{value:[r,a.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(t,r){var a=t.get(r[0]);if(r.length===1){var i;return a.map?t.set(r[0],{map:a.map}):t.delete(r[0]),(i=a.value)===null||i===void 0?void 0:i[0]}var s=this.deleteByPath(a.map,r.slice(1));return(!a.map||a.map.size===0)&&!a.value&&t.delete(r[0]),s}},{key:"delete",value:function(t){if(this.has(t))return this.keys=this.keys.filter(function(r){return!L7(r,t)}),this.deleteByPath(this.cache,t)}}]),n})();ae(sM,"MAX_CACHE_SIZE",20);ae(sM,"MAX_CACHE_OFFSET",5);var $R=0,NB=(function(){function n(e){xr(this,n),ae(this,"derivatives",void 0),ae(this,"id",void 0),this.derivatives=Array.isArray(e)?e:[e],this.id=$R,e.length===0&&(e.length>0,void 0),$R+=1}return wr(n,[{key:"getDerivativeToken",value:function(t){return this.derivatives.reduce(function(r,a){return a(t,r)},void 0)}}]),n})(),fy=new sM;function fO(n){var e=Array.isArray(n)?n:[n];return fy.has(e)||fy.set(e,new NB(e)),fy.get(e)}var N7=new WeakMap,hy={};function I7(n,e){for(var t=N7,r=0;r<e.length;r+=1){var a=e[r];t.has(a)||t.set(a,new WeakMap),t=t.get(a)}return t.has(hy)||t.set(hy,n()),t.get(hy)}var FR=new WeakMap;function Wf(n){var e=FR.get(n)||"";return e||(Object.keys(n).forEach(function(t){var r=n[t];e+=t,r instanceof NB?e+=r.id:r&&vt(r)==="object"?e+=Wf(r):e+=r}),e=ih(e),FR.set(n,e)),e}function kR(n,e){return ih("".concat(e,"_").concat(Wf(n)))}var hO=ka();function Ze(n){return typeof n=="number"?"".concat(n,"px"):n}function Bm(n,e,t){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1;if(a)return n;var i=se(se({},r),{},ae(ae({},iu,e),wi,t)),s=Object.keys(i).map(function(o){var l=i[o];return l?"".concat(o,'="').concat(l,'"'):null}).filter(function(o){return o}).join(" ");return"<style ".concat(s,">").concat(n,"</style>")}var hm=function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return"--".concat(t?"".concat(t,"-"):"").concat(e).replace(/([a-z0-9])([A-Z])/g,"$1-$2").replace(/([A-Z]+)([A-Z][a-z0-9]+)/g,"$1-$2").replace(/([a-z])([A-Z0-9])/g,"$1-$2").toLowerCase()},$7=function(e,t,r){return Object.keys(e).length?".".concat(t).concat(r!=null&&r.scope?".".concat(r.scope):"","{").concat(Object.entries(e).map(function(a){var i=le(a,2),s=i[0],o=i[1];return"".concat(s,":").concat(o,";")}).join(""),"}"):""},IB=function(e,t,r){var a={},i={};return Object.entries(e).forEach(function(s){var o,l,u=le(s,2),d=u[0],f=u[1];if(r!=null&&(o=r.preserve)!==null&&o!==void 0&&o[d])i[d]=f;else if((typeof f=="string"||typeof f=="number")&&!(r!=null&&(l=r.ignore)!==null&&l!==void 0&&l[d])){var g,p=hm(d,r?.prefix);a[p]=typeof f=="number"&&!(r!=null&&(g=r.unitless)!==null&&g!==void 0&&g[d])?"".concat(f,"px"):String(f),i[d]="var(".concat(p,")")}}),[i,$7(a,t,{scope:r?.scope})]},HR=ka()?E.useLayoutEffect:E.useEffect,$n=function(e,t){var r=E.useRef(!0);HR(function(){return e(r.current)},t),HR(function(){return r.current=!1,function(){r.current=!0}},[])},gO=function(e,t){$n(function(r){if(!r)return e()},t)},F7=se({},av),zR=F7.useInsertionEffect,k7=function(e,t,r){E.useMemo(e,r),$n(function(){return t(!0)},r)},H7=zR?function(n,e,t){return zR(function(){return n(),e()},t)}:k7,z7=se({},av),B7=z7.useInsertionEffect,Y7=function(e){var t=[],r=!1;function a(i){r||t.push(i)}return E.useEffect(function(){return r=!1,function(){r=!0,t.length&&t.forEach(function(i){return i()})}},e),a},j7=function(){return function(e){e()}},W7=typeof B7<"u"?Y7:j7;function oM(n,e,t,r,a){var i=E.useContext(Fh),s=i.cache,o=[n].concat(je(e)),l=dO(o),u=W7([l]),d=function(b){s.opUpdate(l,function(y){var x=y||[void 0,void 0],S=le(x,2),C=S[0],O=C===void 0?0:C,D=S[1],M=D,A=M||t(),T=[O,A];return b?b(T):T})};E.useMemo(function(){d()},[l]);var f=s.opGet(l),g=f[1];return H7(function(){a?.(g)},function(p){return d(function(b){var y=le(b,2),x=y[0],S=y[1];return p&&x===0&&a?.(g),[x+1,S]}),function(){s.opUpdate(l,function(b){var y=b||[],x=le(y,2),S=x[0],C=S===void 0?0:S,O=x[1],D=C-1;return D===0?(u(function(){(p||!s.opGet(l))&&r?.(O,!1)}),null):[C-1,O]})}},[l]),g}var q7={},X7="css",dl=new Map;function V7(n){dl.set(n,(dl.get(n)||0)+1)}function U7(n,e){if(typeof document<"u"){var t=document.querySelectorAll("style[".concat(iu,'="').concat(n,'"]'));t.forEach(function(r){if(r[po]===e){var a;(a=r.parentNode)===null||a===void 0||a.removeChild(r)}})}}var G7=0;function Z7(n,e){dl.set(n,(dl.get(n)||0)-1);var t=new Set;dl.forEach(function(r,a){r<=0&&t.add(a)}),dl.size-t.size>G7&&t.forEach(function(r){U7(r,e),dl.delete(r)})}var Q7=function(e,t,r,a){var i=r.getDerivativeToken(e),s=se(se({},i),t);return a&&(s=a(s)),s},$B="token";function K7(n,e){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},r=E.useContext(Fh),a=r.cache.instanceId,i=r.container,s=t.salt,o=s===void 0?"":s,l=t.override,u=l===void 0?q7:l,d=t.formatToken,f=t.getComputedToken,g=t.cssVar,p=I7(function(){return Object.assign.apply(Object,[{}].concat(je(e)))},e),b=Wf(p),y=Wf(u),x=g?Wf(g):"",S=oM($B,[o,n.id,b,y,x],function(){var C,O=f?f(p,u,n):Q7(p,u,n,d),D=se({},O),M="";if(g){var A=IB(O,g.key,{prefix:g.prefix,ignore:g.ignore,unitless:g.unitless,preserve:g.preserve}),T=le(A,2);O=T[0],M=T[1]}var P=kR(O,o);O._tokenKey=P,D._tokenKey=kR(D,o);var R=(C=g?.key)!==null&&C!==void 0?C:P;O._themeKey=R,V7(R);var N="".concat(X7,"-").concat(ih(P));return O._hashId=N,[O,N,D,M,g?.key||""]},function(C){Z7(C[0]._themeKey,a)},function(C){var O=le(C,4),D=O[0],M=O[3];if(g&&M){var A=Os(M,ih("css-variables-".concat(D._themeKey)),{mark:wi,prepend:"queue",attachTo:i,priority:-999});A[po]=a,A.setAttribute(iu,D._themeKey)}});return S}var J7=function(e,t,r){var a=le(e,5),i=a[2],s=a[3],o=a[4],l=r||{},u=l.plain;if(!s)return null;var d=i._tokenKey,f=-999,g={"data-rc-order":"prependQueue","data-rc-priority":"".concat(f)},p=Bm(s,o,d,g,u);return[f,d,p]},eG={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},FB="comm",kB="rule",HB="decl",tG="@import",nG="@namespace",rG="@keyframes",aG="@layer",zB=Math.abs,lM=String.fromCharCode;function BB(n){return n.trim()}function gm(n,e,t){return n.replace(e,t)}function iG(n,e,t){return n.indexOf(e,t)}function qc(n,e){return n.charCodeAt(e)|0}function su(n,e,t){return n.slice(e,t)}function Fi(n){return n.length}function sG(n){return n.length}function np(n,e){return e.push(n),n}var wv=1,ou=1,YB=0,ai=0,ur=0,Su="";function cM(n,e,t,r,a,i,s,o){return{value:n,root:e,parent:t,type:r,props:a,children:i,line:wv,column:ou,length:s,return:"",siblings:o}}function oG(){return ur}function lG(){return ur=ai>0?qc(Su,--ai):0,ou--,ur===10&&(ou=1,wv--),ur}function Si(){return ur=ai<YB?qc(Su,ai++):0,ou++,ur===10&&(ou=1,wv++),ur}function mo(){return qc(Su,ai)}function pm(){return ai}function Sv(n,e){return su(Su,n,e)}function oh(n){switch(n){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 cG(n){return wv=ou=1,YB=Fi(Su=n),ai=0,[]}function uG(n){return Su="",n}function gy(n){return BB(Sv(ai-1,pO(n===91?n+2:n===40?n+1:n)))}function dG(n){for(;(ur=mo())&&ur<33;)Si();return oh(n)>2||oh(ur)>3?"":" "}function fG(n,e){for(;--e&&Si()&&!(ur<48||ur>102||ur>57&&ur<65||ur>70&&ur<97););return Sv(n,pm()+(e<6&&mo()==32&&Si()==32))}function pO(n){for(;Si();)switch(ur){case n:return ai;case 34:case 39:n!==34&&n!==39&&pO(ur);break;case 40:n===41&&pO(n);break;case 92:Si();break}return ai}function hG(n,e){for(;Si()&&n+ur!==57;)if(n+ur===84&&mo()===47)break;return"/*"+Sv(e,ai-1)+"*"+lM(n===47?n:Si())}function gG(n){for(;!oh(mo());)Si();return Sv(n,ai)}function pG(n){return uG(mm("",null,null,null,[""],n=cG(n),0,[0],n))}function mm(n,e,t,r,a,i,s,o,l){for(var u=0,d=0,f=s,g=0,p=0,b=0,y=1,x=1,S=1,C=0,O="",D=a,M=i,A=r,T=O;x;)switch(b=C,C=Si()){case 40:if(b!=108&&qc(T,f-1)==58){iG(T+=gm(gy(C),"&","&\f"),"&\f",zB(u?o[u-1]:0))!=-1&&(S=-1);break}case 34:case 39:case 91:T+=gy(C);break;case 9:case 10:case 13:case 32:T+=dG(b);break;case 92:T+=fG(pm()-1,7);continue;case 47:switch(mo()){case 42:case 47:np(mG(hG(Si(),pm()),e,t,l),l),(oh(b||1)==5||oh(mo()||1)==5)&&Fi(T)&&su(T,-1,void 0)!==" "&&(T+=" ");break;default:T+="/"}break;case 123*y:o[u++]=Fi(T)*S;case 125*y:case 59:case 0:switch(C){case 0:case 125:x=0;case 59+d:S==-1&&(T=gm(T,/\f/g,"")),p>0&&(Fi(T)-f||y===0&&b===47)&&np(p>32?YR(T+";",r,t,f-1,l):YR(gm(T," ","")+";",r,t,f-2,l),l);break;case 59:T+=";";default:if(np(A=BR(T,e,t,u,d,a,o,O,D=[],M=[],f,i),i),C===123)if(d===0)mm(T,e,A,A,D,i,f,o,M);else{switch(g){case 99:if(qc(T,3)===110)break;case 108:if(qc(T,2)===97)break;default:d=0;case 100:case 109:case 115:}d?mm(n,A,A,r&&np(BR(n,A,A,0,0,a,o,O,a,D=[],f,M),M),a,M,f,o,r?D:M):mm(T,A,A,A,[""],M,0,o,M)}}u=d=p=0,y=S=1,O=T="",f=s;break;case 58:f=1+Fi(T),p=b;default:if(y<1){if(C==123)--y;else if(C==125&&y++==0&&lG()==125)continue}switch(T+=lM(C),C*y){case 38:S=d>0?1:(T+="\f",-1);break;case 44:o[u++]=(Fi(T)-1)*S,S=1;break;case 64:mo()===45&&(T+=gy(Si())),g=mo(),d=f=Fi(O=T+=gG(pm())),C++;break;case 45:b===45&&Fi(T)==2&&(y=0)}}return i}function BR(n,e,t,r,a,i,s,o,l,u,d,f){for(var g=a-1,p=a===0?i:[""],b=sG(p),y=0,x=0,S=0;y<r;++y)for(var C=0,O=su(n,g+1,g=zB(x=s[y])),D=n;C<b;++C)(D=BB(x>0?p[C]+" "+O:gm(O,/&\f/g,p[C])))&&(l[S++]=D);return cM(n,e,t,a===0?kB:o,l,u,d,f)}function mG(n,e,t,r){return cM(n,e,t,FB,lM(oG()),su(n,2,-2),0,r)}function YR(n,e,t,r,a){return cM(n,e,t,HB,su(n,0,r),su(n,r+1,-1),r,a)}function mO(n,e){for(var t="",r=0;r<n.length;r++)t+=e(n[r],r,n,e)||"";return t}function vG(n,e,t,r){switch(n.type){case aG:if(n.children.length)break;case tG:case nG:case HB:return n.return=n.return||n.value;case FB:return"";case rG:return n.return=n.value+"{"+mO(n.children,r)+"}";case kB:if(!Fi(n.value=n.props.join(",")))return""}return Fi(t=mO(n.children,r))?n.return=n.value+"{"+t+"}":""}var jR="data-ant-cssinjs-cache-path",jB="_FILE_STYLE__",bl,WB=!0;function bG(){if(!bl&&(bl={},ka())){var n=document.createElement("div");n.className=jR,n.style.position="fixed",n.style.visibility="hidden",n.style.top="-9999px",document.body.appendChild(n);var e=getComputedStyle(n).content||"";e=e.replace(/^"/,"").replace(/"$/,""),e.split(";").forEach(function(a){var i=a.split(":"),s=le(i,2),o=s[0],l=s[1];bl[o]=l});var t=document.querySelector("style[".concat(jR,"]"));if(t){var r;WB=!1,(r=t.parentNode)===null||r===void 0||r.removeChild(t)}document.body.removeChild(n)}}function yG(n){return bG(),!!bl[n]}function xG(n){var e=bl[n],t=null;if(e&&ka())if(WB)t=jB;else{var r=document.querySelector("style[".concat(wi,'="').concat(bl[n],'"]'));r?t=r.innerHTML:delete bl[n]}return[t,e]}var wG="_skip_check_",qB="_multi_value_";function vm(n){var e=mO(pG(n),vG);return e.replace(/\{%%%\:[^;];}/g,";")}function SG(n){return vt(n)==="object"&&n&&(wG in n||qB in n)}function WR(n,e,t){if(!e)return n;var r=".".concat(e),a=t==="low"?":where(".concat(r,")"):r,i=n.split(",").map(function(s){var o,l=s.trim().split(/\s+/),u=l[0]||"",d=((o=u.match(/^\w+/))===null||o===void 0?void 0:o[0])||"";return u="".concat(d).concat(a).concat(u.slice(d.length)),[u].concat(je(l.slice(1))).join(" ")});return i.join(",")}var CG=function n(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{root:!0,parentSelectors:[]},a=r.root,i=r.injectHash,s=r.parentSelectors,o=t.hashId,l=t.layer;t.path;var u=t.hashPriority,d=t.transformers,f=d===void 0?[]:d;t.linters;var g="",p={};function b(S){var C=S.getName(o);if(!p[C]){var O=n(S.style,t,{root:!1,parentSelectors:s}),D=le(O,1),M=D[0];p[C]="@keyframes ".concat(S.getName(o)).concat(M)}}function y(S){var C=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[];return S.forEach(function(O){Array.isArray(O)?y(O,C):O&&C.push(O)}),C}var x=y(Array.isArray(e)?e:[e]);return x.forEach(function(S){var C=typeof S=="string"&&!a?{}:S;if(typeof C=="string")g+="".concat(C,`
`);else if(C._keyframe)b(C);else{var O=f.reduce(function(D,M){var A;return(M==null||(A=M.visit)===null||A===void 0?void 0:A.call(M,D))||D},C);Object.keys(O).forEach(function(D){var M=O[D];if(vt(M)==="object"&&M&&(D!=="animationName"||!M._keyframe)&&!SG(M)){var A=!1,T=D.trim(),P=!1;(a||i)&&o?T.startsWith("@")?A=!0:T==="&"?T=WR("",o,u):T=WR(D,o,u):a&&!o&&(T==="&"||T==="")&&(T="",P=!0);var R=n(M,t,{root:P,injectHash:A,parentSelectors:[].concat(je(s),[T])}),N=le(R,2),I=N[0],$=N[1];p=se(se({},p),$),g+="".concat(T).concat(I)}else{let H=function(F,B){var X=F.replace(/[A-Z]/g,function(z){return"-".concat(z.toLowerCase())}),Q=B;!eG[F]&&typeof Q=="number"&&Q!==0&&(Q="".concat(Q,"px")),F==="animationName"&&B!==null&&B!==void 0&&B._keyframe&&(b(B),Q=B.getName(o)),g+="".concat(X,":").concat(Q,";")};var Y,k=(Y=M?.value)!==null&&Y!==void 0?Y:M;vt(M)==="object"&&M!==null&&M!==void 0&&M[qB]&&Array.isArray(k)?k.forEach(function(F){H(D,F)}):H(D,k)}})}}),a?l&&(g&&(g="@layer ".concat(l.name," {").concat(g,"}")),l.dependencies&&(p["@layer ".concat(l.name)]=l.dependencies.map(function(S){return"@layer ".concat(S,", ").concat(l.name,";")}).join(`
`))):g="{".concat(g,"}"),[g,p]};function XB(n,e){return ih("".concat(n.join("%")).concat(e))}function OG(){return null}var VB="style";function vO(n,e){var t=n.token,r=n.path,a=n.hashId,i=n.layer,s=n.nonce,o=n.clientOnly,l=n.order,u=l===void 0?0:l,d=E.useContext(Fh),f=d.autoClear;d.mock;var g=d.defaultCache,p=d.hashPriority,b=d.container,y=d.ssrInline,x=d.transformers,S=d.linters,C=d.cache,O=d.layer,D=t._tokenKey,M=[D];O&&M.push("layer"),M.push.apply(M,je(r));var A=hO,T=oM(VB,M,function(){var $=M.join("|");if(yG($)){var Y=xG($),k=le(Y,2),H=k[0],F=k[1];if(H)return[H,D,F,{},o,u]}var B=e(),X=CG(B,{hashId:a,hashPriority:p,layer:O?i:void 0,path:r.join("-"),transformers:x,linters:S}),Q=le(X,2),z=Q[0],V=Q[1],j=vm(z),q=XB(M,j);return[j,D,q,V,o,u]},function($,Y){var k=le($,3),H=k[2];(Y||f)&&hO&&sh(H,{mark:wi,attachTo:b})},function($){var Y=le($,4),k=Y[0];Y[1];var H=Y[2],F=Y[3];if(A&&k!==jB){var B={mark:wi,prepend:O?!1:"queue",attachTo:b,priority:u},X=typeof s=="function"?s():s;X&&(B.csp={nonce:X});var Q=[],z=[];Object.keys(F).forEach(function(j){j.startsWith("@layer")?Q.push(j):z.push(j)}),Q.forEach(function(j){Os(vm(F[j]),"_layer-".concat(j),se(se({},B),{},{prepend:!0}))});var V=Os(k,H,B);V[po]=C.instanceId,V.setAttribute(iu,D),z.forEach(function(j){Os(vm(F[j]),"_effect-".concat(j),B)})}}),P=le(T,3),R=P[0],N=P[1],I=P[2];return function($){var Y;return!y||A||!g?Y=E.createElement(OG,null):Y=E.createElement("style",tt({},ae(ae({},iu,N),wi,I),{dangerouslySetInnerHTML:{__html:R}})),E.createElement(E.Fragment,null,Y,$)}}var EG=function(e,t,r){var a=le(e,6),i=a[0],s=a[1],o=a[2],l=a[3],u=a[4],d=a[5],f=r||{},g=f.plain;if(u)return null;var p=i,b={"data-rc-order":"prependQueue","data-rc-priority":"".concat(d)};return p=Bm(i,s,o,b,g),l&&Object.keys(l).forEach(function(y){if(!t[y]){t[y]=!0;var x=vm(l[y]),S=Bm(x,s,"_effect-".concat(y),b,g);y.startsWith("@layer")?p=S+p:p+=S}}),[d,o,p]},UB="cssVar",MG=function(e,t){var r=e.key,a=e.prefix,i=e.unitless,s=e.ignore,o=e.token,l=e.scope,u=l===void 0?"":l,d=E.useContext(Fh),f=d.cache.instanceId,g=d.container,p=o._tokenKey,b=[].concat(je(e.path),[r,u,p]),y=oM(UB,b,function(){var x=t(),S=IB(x,r,{prefix:a,unitless:i,ignore:s,scope:u}),C=le(S,2),O=C[0],D=C[1],M=XB(b,D);return[O,D,M,r]},function(x){var S=le(x,3),C=S[2];hO&&sh(C,{mark:wi,attachTo:g})},function(x){var S=le(x,3),C=S[1],O=S[2];if(C){var D=Os(C,O,{mark:wi,prepend:"queue",attachTo:g,priority:-999});D[po]=f,D.setAttribute(iu,r)}});return y},DG=function(e,t,r){var a=le(e,4),i=a[1],s=a[2],o=a[3],l=r||{},u=l.plain;if(!i)return null;var d=-999,f={"data-rc-order":"prependQueue","data-rc-priority":"".concat(d)},g=Bm(i,o,s,f,u);return[d,s,g]};ae(ae(ae({},VB,EG),$B,J7),UB,DG);var Ar=(function(){function n(e,t){xr(this,n),ae(this,"name",void 0),ae(this,"style",void 0),ae(this,"_keyframe",!0),this.name=e,this.style=t}return wr(n,[{key:"getName",value:function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return t?"".concat(t,"-").concat(this.name):this.name}}]),n})();function Lc(n){return n.notSplit=!0,n}Lc(["borderTop","borderBottom"]),Lc(["borderTop"]),Lc(["borderBottom"]),Lc(["borderLeft","borderRight"]),Lc(["borderLeft"]),Lc(["borderRight"]);var uM=E.createContext({});function _G(n){return AB(n)||EB(n)||rM(n)||TB()}function Yi(n,e){for(var t=n,r=0;r<e.length;r+=1){if(t==null)return;t=t[e[r]]}return t}function GB(n,e,t,r){if(!e.length)return t;var a=_G(e),i=a[0],s=a.slice(1),o;return!n&&typeof i=="number"?o=[]:Array.isArray(n)?o=je(n):o=se({},n),r&&t===void 0&&s.length===1?delete o[i][s[0]]:o[i]=GB(o[i],s,t,r),o}function vi(n,e,t){var r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;return e.length&&r&&t===void 0&&!Yi(n,e.slice(0,-1))?n:GB(n,e,t,r)}function AG(n){return vt(n)==="object"&&n!==null&&Object.getPrototypeOf(n)===Object.prototype}function qR(n){return Array.isArray(n)?[]:{}}var TG=typeof Reflect>"u"?Object.keys:Reflect.ownKeys;function Bc(){for(var n=arguments.length,e=new Array(n),t=0;t<n;t++)e[t]=arguments[t];var r=qR(e[0]);return e.forEach(function(a){function i(s,o){var l=new Set(o),u=Yi(a,s),d=Array.isArray(u);if(d||AG(u)){if(!l.has(u)){l.add(u);var f=Yi(r,s);d?r=vi(r,s,[]):(!f||vt(f)!=="object")&&(r=vi(r,s,qR(u))),TG(u).forEach(function(g){i([].concat(je(s),[g]),l)})}}else r=vi(r,s,u)}i([])}),r}const RG=E.createContext({}),PG=E.createContext(void 0);var LG={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"},NG={yearFormat:"YYYY",dayFormat:"D",cellMeridiemFormat:"A",monthBeforeYear:!0},IG=se(se({},NG),{},{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 ZB={placeholder:"Select time",rangePlaceholder:["Start time","End time"]},Ym={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"]},IG),timePickerLocale:Object.assign({},ZB)},Pa="${label} is not a valid ${type}",lu={locale:"en",Pagination:LG,DatePicker:Ym,TimePicker:ZB,Calendar:Ym,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: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:"${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"}};Object.assign({},lu.Modal);let bm=[];const XR=()=>bm.reduce((n,e)=>Object.assign(Object.assign({},n),e),lu.Modal);function $G(n){if(n){const e=Object.assign({},n);return bm.push(e),XR(),()=>{bm=bm.filter(t=>t!==e),XR()}}Object.assign({},lu.Modal)}const dM=E.createContext(void 0),QB=(n,e)=>{const t=E.useContext(dM),r=E.useMemo(()=>{var i;const s=e||lu[n],o=(i=t?.[n])!==null&&i!==void 0?i:{};return Object.assign(Object.assign({},typeof s=="function"?s():s),o||{})},[n,e,t]),a=E.useMemo(()=>{const i=t?.locale;return t?.exist&&!i?lu.locale:i},[t]);return[r,a]},FG="internalMark",kG=n=>{const{locale:e={},children:t,_ANT_MARK__:r}=n;E.useEffect(()=>$G(e?.Modal),[e]);const a=E.useMemo(()=>Object.assign(Object.assign({},e),{exist:!0}),[e]);return E.createElement(dM.Provider,{value:a},t)},KB={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"},lh=Object.assign(Object.assign({},KB),{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}),_r=Math.round;function py(n,e){const t=n.replace(/^[^(]*\((.*)/,"$1").replace(/\).*/,"").match(/\d*\.?\d+%?/g)||[],r=t.map(a=>parseFloat(a));for(let a=0;a<3;a+=1)r[a]=e(r[a]||0,t[a]||"",a);return t[3]?r[3]=t[3].includes("%")?r[3]/100:r[3]:r[3]=1,r}const VR=(n,e,t)=>t===0?n:n/100;function sf(n,e){const t=e||255;return n>t?t:n<0?0:n}class Rn{constructor(e){ae(this,"isValid",!0),ae(this,"r",0),ae(this,"g",0),ae(this,"b",0),ae(this,"a",1),ae(this,"_h",void 0),ae(this,"_s",void 0),ae(this,"_l",void 0),ae(this,"_v",void 0),ae(this,"_max",void 0),ae(this,"_min",void 0),ae(this,"_brightness",void 0);function t(r){return r[0]in e&&r[1]in e&&r[2]in e}if(e)if(typeof e=="string"){let a=function(i){return r.startsWith(i)};const r=e.trim();/^#?[A-F\d]{3,8}$/i.test(r)?this.fromHexString(r):a("rgb")?this.fromRgbString(r):a("hsl")?this.fromHslString(r):(a("hsv")||a("hsb"))&&this.fromHsvString(r)}else if(e instanceof Rn)this.r=e.r,this.g=e.g,this.b=e.b,this.a=e.a,this._h=e._h,this._s=e._s,this._l=e._l,this._v=e._v;else if(t("rgb"))this.r=sf(e.r),this.g=sf(e.g),this.b=sf(e.b),this.a=typeof e.a=="number"?sf(e.a,1):1;else if(t("hsl"))this.fromHsl(e);else if(t("hsv"))this.fromHsv(e);else throw new Error("@ant-design/fast-color: unsupported input "+JSON.stringify(e))}setR(e){return this._sc("r",e)}setG(e){return this._sc("g",e)}setB(e){return this._sc("b",e)}setA(e){return this._sc("a",e,1)}setHue(e){const t=this.toHsv();return t.h=e,this._c(t)}getLuminance(){function e(i){const s=i/255;return s<=.03928?s/12.92:Math.pow((s+.055)/1.055,2.4)}const t=e(this.r),r=e(this.g),a=e(this.b);return .2126*t+.7152*r+.0722*a}getHue(){if(typeof this._h>"u"){const e=this.getMax()-this.getMin();e===0?this._h=0:this._h=_r(60*(this.r===this.getMax()?(this.g-this.b)/e+(this.g<this.b?6:0):this.g===this.getMax()?(this.b-this.r)/e+2:(this.r-this.g)/e+4))}return this._h}getSaturation(){if(typeof this._s>"u"){const e=this.getMax()-this.getMin();e===0?this._s=0:this._s=e/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(e=10){const t=this.getHue(),r=this.getSaturation();let a=this.getLightness()-e/100;return a<0&&(a=0),this._c({h:t,s:r,l:a,a:this.a})}lighten(e=10){const t=this.getHue(),r=this.getSaturation();let a=this.getLightness()+e/100;return a>1&&(a=1),this._c({h:t,s:r,l:a,a:this.a})}mix(e,t=50){const r=this._c(e),a=t/100,i=o=>(r[o]-this[o])*a+this[o],s={r:_r(i("r")),g:_r(i("g")),b:_r(i("b")),a:_r(i("a")*100)/100};return this._c(s)}tint(e=10){return this.mix({r:255,g:255,b:255,a:1},e)}shade(e=10){return this.mix({r:0,g:0,b:0,a:1},e)}onBackground(e){const t=this._c(e),r=this.a+t.a*(1-this.a),a=i=>_r((this[i]*this.a+t[i]*t.a*(1-this.a))/r);return this._c({r:a("r"),g:a("g"),b:a("b"),a:r})}isDark(){return this.getBrightness()<128}isLight(){return this.getBrightness()>=128}equals(e){return this.r===e.r&&this.g===e.g&&this.b===e.b&&this.a===e.a}clone(){return this._c(this)}toHexString(){let e="#";const t=(this.r||0).toString(16);e+=t.length===2?t:"0"+t;const r=(this.g||0).toString(16);e+=r.length===2?r:"0"+r;const a=(this.b||0).toString(16);if(e+=a.length===2?a:"0"+a,typeof this.a=="number"&&this.a>=0&&this.a<1){const i=_r(this.a*255).toString(16);e+=i.length===2?i:"0"+i}return e}toHsl(){return{h:this.getHue(),s:this.getSaturation(),l:this.getLightness(),a:this.a}}toHslString(){const e=this.getHue(),t=_r(this.getSaturation()*100),r=_r(this.getLightness()*100);return this.a!==1?`hsla(${e},${t}%,${r}%,${this.a})`:`hsl(${e},${t}%,${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(e,t,r){const a=this.clone();return a[e]=sf(t,r),a}_c(e){return new this.constructor(e)}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(e){const t=e.replace("#","");function r(a,i){return parseInt(t[a]+t[i||a],16)}t.length<6?(this.r=r(0),this.g=r(1),this.b=r(2),this.a=t[3]?r(3)/255:1):(this.r=r(0,1),this.g=r(2,3),this.b=r(4,5),this.a=t[6]?r(6,7)/255:1)}fromHsl({h:e,s:t,l:r,a}){if(this._h=e%360,this._s=t,this._l=r,this.a=typeof a=="number"?a:1,t<=0){const g=_r(r*255);this.r=g,this.g=g,this.b=g}let i=0,s=0,o=0;const l=e/60,u=(1-Math.abs(2*r-1))*t,d=u*(1-Math.abs(l%2-1));l>=0&&l<1?(i=u,s=d):l>=1&&l<2?(i=d,s=u):l>=2&&l<3?(s=u,o=d):l>=3&&l<4?(s=d,o=u):l>=4&&l<5?(i=d,o=u):l>=5&&l<6&&(i=u,o=d);const f=r-u/2;this.r=_r((i+f)*255),this.g=_r((s+f)*255),this.b=_r((o+f)*255)}fromHsv({h:e,s:t,v:r,a}){this._h=e%360,this._s=t,this._v=r,this.a=typeof a=="number"?a:1;const i=_r(r*255);if(this.r=i,this.g=i,this.b=i,t<=0)return;const s=e/60,o=Math.floor(s),l=s-o,u=_r(r*(1-t)*255),d=_r(r*(1-t*l)*255),f=_r(r*(1-t*(1-l))*255);switch(o){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(e){const t=py(e,VR);this.fromHsv({h:t[0],s:t[1],v:t[2],a:t[3]})}fromHslString(e){const t=py(e,VR);this.fromHsl({h:t[0],s:t[1],l:t[2],a:t[3]})}fromRgbString(e){const t=py(e,(r,a)=>a.includes("%")?_r(r/100*255):r);this.r=t[0],this.g=t[1],this.b=t[2],this.a=t[3]}}var rp=2,UR=.16,HG=.05,zG=.05,BG=.15,JB=5,eY=4,YG=[{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 GR(n,e,t){var r;return Math.round(n.h)>=60&&Math.round(n.h)<=240?r=t?Math.round(n.h)-rp*e:Math.round(n.h)+rp*e:r=t?Math.round(n.h)+rp*e:Math.round(n.h)-rp*e,r<0?r+=360:r>=360&&(r-=360),r}function ZR(n,e,t){if(n.h===0&&n.s===0)return n.s;var r;return t?r=n.s-UR*e:e===eY?r=n.s+UR:r=n.s+HG*e,r>1&&(r=1),t&&e===JB&&r>.1&&(r=.1),r<.06&&(r=.06),Math.round(r*100)/100}function QR(n,e,t){var r;return t?r=n.v+zG*e:r=n.v-BG*e,r=Math.max(0,Math.min(1,r)),Math.round(r*100)/100}function ch(n){for(var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},t=[],r=new Rn(n),a=r.toHsv(),i=JB;i>0;i-=1){var s=new Rn({h:GR(a,i,!0),s:ZR(a,i,!0),v:QR(a,i,!0)});t.push(s)}t.push(r);for(var o=1;o<=eY;o+=1){var l=new Rn({h:GR(a,o),s:ZR(a,o),v:QR(a,o)});t.push(l)}return e.theme==="dark"?YG.map(function(u){var d=u.index,f=u.amount;return new Rn(e.backgroundColor||"#141414").mix(t[d],f).toHexString()}):t.map(function(u){return u.toHexString()})}var my={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"},bO=["#fff1f0","#ffccc7","#ffa39e","#ff7875","#ff4d4f","#f5222d","#cf1322","#a8071a","#820014","#5c0011"];bO.primary=bO[5];var yO=["#fff2e8","#ffd8bf","#ffbb96","#ff9c6e","#ff7a45","#fa541c","#d4380d","#ad2102","#871400","#610b00"];yO.primary=yO[5];var xO=["#fff7e6","#ffe7ba","#ffd591","#ffc069","#ffa940","#fa8c16","#d46b08","#ad4e00","#873800","#612500"];xO.primary=xO[5];var wO=["#fffbe6","#fff1b8","#ffe58f","#ffd666","#ffc53d","#faad14","#d48806","#ad6800","#874d00","#613400"];wO.primary=wO[5];var SO=["#feffe6","#ffffb8","#fffb8f","#fff566","#ffec3d","#fadb14","#d4b106","#ad8b00","#876800","#614700"];SO.primary=SO[5];var CO=["#fcffe6","#f4ffb8","#eaff8f","#d3f261","#bae637","#a0d911","#7cb305","#5b8c00","#3f6600","#254000"];CO.primary=CO[5];var OO=["#f6ffed","#d9f7be","#b7eb8f","#95de64","#73d13d","#52c41a","#389e0d","#237804","#135200","#092b00"];OO.primary=OO[5];var EO=["#e6fffb","#b5f5ec","#87e8de","#5cdbd3","#36cfc9","#13c2c2","#08979c","#006d75","#00474f","#002329"];EO.primary=EO[5];var jm=["#e6f4ff","#bae0ff","#91caff","#69b1ff","#4096ff","#1677ff","#0958d9","#003eb3","#002c8c","#001d66"];jm.primary=jm[5];var MO=["#f0f5ff","#d6e4ff","#adc6ff","#85a5ff","#597ef7","#2f54eb","#1d39c4","#10239e","#061178","#030852"];MO.primary=MO[5];var DO=["#f9f0ff","#efdbff","#d3adf7","#b37feb","#9254de","#722ed1","#531dab","#391085","#22075e","#120338"];DO.primary=DO[5];var _O=["#fff0f6","#ffd6e7","#ffadd2","#ff85c0","#f759ab","#eb2f96","#c41d7f","#9e1068","#780650","#520339"];_O.primary=_O[5];var AO=["#a6a6a6","#999999","#8c8c8c","#808080","#737373","#666666","#404040","#1a1a1a","#000000","#000000"];AO.primary=AO[5];var vy={red:bO,volcano:yO,orange:xO,gold:wO,yellow:SO,lime:CO,green:OO,cyan:EO,blue:jm,geekblue:MO,purple:DO,magenta:_O,grey:AO};function jG(n,{generateColorPalettes:e,generateNeutralColorPalettes:t}){const{colorSuccess:r,colorWarning:a,colorError:i,colorInfo:s,colorPrimary:o,colorBgBase:l,colorTextBase:u}=n,d=e(o),f=e(r),g=e(a),p=e(i),b=e(s),y=t(l,u),x=n.colorLink||n.colorInfo,S=e(x),C=new Rn(p[1]).mix(new Rn(p[3]),50).toHexString();return Object.assign(Object.assign({},y),{colorPrimaryBg:d[1],colorPrimaryBgHover:d[2],colorPrimaryBorder:d[3],colorPrimaryBorderHover:d[4],colorPrimaryHover:d[5],colorPrimary:d[6],colorPrimaryActive:d[7],colorPrimaryTextHover:d[8],colorPrimaryText:d[9],colorPrimaryTextActive:d[10],colorSuccessBg:f[1],colorSuccessBgHover:f[2],colorSuccessBorder:f[3],colorSuccessBorderHover:f[4],colorSuccessHover:f[4],colorSuccess:f[6],colorSuccessActive:f[7],colorSuccessTextHover:f[8],colorSuccessText:f[9],colorSuccessTextActive:f[10],colorErrorBg:p[1],colorErrorBgHover:p[2],colorErrorBgFilledHover:C,colorErrorBgActive:p[3],colorErrorBorder:p[3],colorErrorBorderHover:p[4],colorErrorHover:p[5],colorError:p[6],colorErrorActive:p[7],colorErrorTextHover:p[8],colorErrorText:p[9],colorErrorTextActive:p[10],colorWarningBg:g[1],colorWarningBgHover:g[2],colorWarningBorder:g[3],colorWarningBorderHover:g[4],colorWarningHover:g[4],colorWarning:g[6],colorWarningActive:g[7],colorWarningTextHover:g[8],colorWarningText:g[9],colorWarningTextActive:g[10],colorInfoBg:b[1],colorInfoBgHover:b[2],colorInfoBorder:b[3],colorInfoBorderHover:b[4],colorInfoHover:b[4],colorInfo:b[6],colorInfoActive:b[7],colorInfoTextHover:b[8],colorInfoText:b[9],colorInfoTextActive:b[10],colorLinkHover:S[4],colorLink:S[6],colorLinkActive:S[7],colorBgMask:new Rn("#000").setA(.45).toRgbString(),colorWhite:"#fff"})}const WG=n=>{let e=n,t=n,r=n,a=n;return n<6&&n>=5?e=n+1:n<16&&n>=6?e=n+2:n>=16&&(e=16),n<7&&n>=5?t=4:n<8&&n>=7?t=5:n<14&&n>=8?t=6:n<16&&n>=14?t=7:n>=16&&(t=8),n<6&&n>=2?r=1:n>=6&&(r=2),n>4&&n<8?a=4:n>=8&&(a=6),{borderRadius:n,borderRadiusXS:r,borderRadiusSM:t,borderRadiusLG:e,borderRadiusOuter:a}};function qG(n){const{motionUnit:e,motionBase:t,borderRadius:r,lineWidth:a}=n;return Object.assign({motionDurationFast:`${(t+e).toFixed(1)}s`,motionDurationMid:`${(t+e*2).toFixed(1)}s`,motionDurationSlow:`${(t+e*3).toFixed(1)}s`,lineWidthBold:a+1},WG(r))}const XG=n=>{const{controlHeight:e}=n;return{controlHeightSM:e*.75,controlHeightXS:e*.5,controlHeightLG:e*1.25}};function ym(n){return(n+8)/n}function VG(n){const e=Array.from({length:10}).map((t,r)=>{const a=r-1,i=n*Math.pow(Math.E,a/5),s=r>1?Math.floor(i):Math.ceil(i);return Math.floor(s/2)*2});return e[1]=n,e.map(t=>({size:t,lineHeight:ym(t)}))}const UG=n=>{const e=VG(n),t=e.map(d=>d.size),r=e.map(d=>d.lineHeight),a=t[1],i=t[0],s=t[2],o=r[1],l=r[0],u=r[2];return{fontSizeSM:i,fontSize:a,fontSizeLG:s,fontSizeXL:t[3],fontSizeHeading1:t[6],fontSizeHeading2:t[5],fontSizeHeading3:t[4],fontSizeHeading4:t[3],fontSizeHeading5:t[2],lineHeight:o,lineHeightLG:u,lineHeightSM:l,fontHeight:Math.round(o*a),fontHeightLG:Math.round(u*s),fontHeightSM:Math.round(l*i),lineHeightHeading1:r[6],lineHeightHeading2:r[5],lineHeightHeading3:r[4],lineHeightHeading4:r[3],lineHeightHeading5:r[2]}};function GG(n){const{sizeUnit:e,sizeStep:t}=n;return{sizeXXL:e*(t+8),sizeXL:e*(t+4),sizeLG:e*(t+2),sizeMD:e*(t+1),sizeMS:e*t,size:e*t,sizeSM:e*(t-1),sizeXS:e*(t-2),sizeXXS:e*(t-3)}}const Qa=(n,e)=>new Rn(n).setA(e).toRgbString(),of=(n,e)=>new Rn(n).darken(e).toHexString(),ZG=n=>{const e=ch(n);return{1:e[0],2:e[1],3:e[2],4:e[3],5:e[4],6:e[5],7:e[6],8:e[4],9:e[5],10:e[6]}},QG=(n,e)=>{const t=n||"#fff",r=e||"#000";return{colorBgBase:t,colorTextBase:r,colorText:Qa(r,.88),colorTextSecondary:Qa(r,.65),colorTextTertiary:Qa(r,.45),colorTextQuaternary:Qa(r,.25),colorFill:Qa(r,.15),colorFillSecondary:Qa(r,.06),colorFillTertiary:Qa(r,.04),colorFillQuaternary:Qa(r,.02),colorBgSolid:Qa(r,1),colorBgSolidHover:Qa(r,.75),colorBgSolidActive:Qa(r,.95),colorBgLayout:of(t,4),colorBgContainer:of(t,0),colorBgElevated:of(t,0),colorBgSpotlight:Qa(r,.85),colorBgBlur:"transparent",colorBorder:of(t,15),colorBorderSecondary:of(t,6)}};function KG(n){my.pink=my.magenta,vy.pink=vy.magenta;const e=Object.keys(KB).map(t=>{const r=n[t]===my[t]?vy[t]:ch(n[t]);return Array.from({length:10},()=>1).reduce((a,i,s)=>(a[`${t}-${s+1}`]=r[s],a[`${t}${s+1}`]=r[s],a),{})}).reduce((t,r)=>(t=Object.assign(Object.assign({},t),r),t),{});return Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},n),e),jG(n,{generateColorPalettes:ZG,generateNeutralColorPalettes:QG})),UG(n.fontSize)),GG(n)),XG(n)),qG(n))}const tY=fO(KG),TO={token:lh,override:{override:lh},hashed:!0},nY=pe.createContext(TO),Wm="ant",Cv="anticon",JG=["outlined","borderless","filled","underlined"],eZ=(n,e)=>e||(n?`${Wm}-${n}`:Wm),Tr=E.createContext({getPrefixCls:eZ,iconPrefixCls:Cv}),{Consumer:pde}=Tr,KR={};function rY(n){const e=E.useContext(Tr),{getPrefixCls:t,direction:r,getPopupContainer:a}=e,i=e[n];return Object.assign(Object.assign({classNames:KR,styles:KR},i),{getPrefixCls:t,direction:r,getPopupContainer:a})}const tZ=`-ant-${Date.now()}-${Math.random()}`;function nZ(n,e){const t={},r=(s,o)=>{let l=s.clone();return l=o?.(l)||l,l.toRgbString()},a=(s,o)=>{const l=new Rn(s),u=ch(l.toRgbString());t[`${o}-color`]=r(l),t[`${o}-color-disabled`]=u[1],t[`${o}-color-hover`]=u[4],t[`${o}-color-active`]=u[6],t[`${o}-color-outline`]=l.clone().setA(.2).toRgbString(),t[`${o}-color-deprecated-bg`]=u[0],t[`${o}-color-deprecated-border`]=u[2]};if(e.primaryColor){a(e.primaryColor,"primary");const s=new Rn(e.primaryColor),o=ch(s.toRgbString());o.forEach((u,d)=>{t[`primary-${d+1}`]=u}),t["primary-color-deprecated-l-35"]=r(s,u=>u.lighten(35)),t["primary-color-deprecated-l-20"]=r(s,u=>u.lighten(20)),t["primary-color-deprecated-t-20"]=r(s,u=>u.tint(20)),t["primary-color-deprecated-t-50"]=r(s,u=>u.tint(50)),t["primary-color-deprecated-f-12"]=r(s,u=>u.setA(u.a*.12));const l=new Rn(o[0]);t["primary-color-active-deprecated-f-30"]=r(l,u=>u.setA(u.a*.3)),t["primary-color-active-deprecated-d-02"]=r(l,u=>u.darken(2))}return e.successColor&&a(e.successColor,"success"),e.warningColor&&a(e.warningColor,"warning"),e.errorColor&&a(e.errorColor,"error"),e.infoColor&&a(e.infoColor,"info"),`
  :root {
    ${Object.keys(t).map(s=>`--${n}-${s}: ${t[s]};`).join(`
`)}
  }
  `.trim()}function rZ(n,e){const t=nZ(n,e);ka()&&Os(t,`${tZ}-dynamic-theme`)}const cu=E.createContext(!1),aZ=({children:n,disabled:e})=>{const t=E.useContext(cu);return E.createElement(cu.Provider,{value:e??t},n)},uu=E.createContext(void 0),iZ=({children:n,size:e})=>{const t=E.useContext(uu);return E.createElement(uu.Provider,{value:e||t},n)};function sZ(){const n=E.useContext(cu),e=E.useContext(uu);return{componentDisabled:n,componentSize:e}}var aY=wr(function n(){xr(this,n)}),iY="CALC_UNIT",oZ=new RegExp(iY,"g");function by(n){return typeof n=="number"?"".concat(n).concat(iY):n}var lZ=(function(n){Co(t,n);var e=Oo(t);function t(r,a){var i;xr(this,t),i=e.call(this),ae(kt(i),"result",""),ae(kt(i),"unitlessCssVar",void 0),ae(kt(i),"lowPriority",void 0);var s=vt(r);return i.unitlessCssVar=a,r instanceof t?i.result="(".concat(r.result,")"):s==="number"?i.result=by(r):s==="string"&&(i.result=r),i}return wr(t,[{key:"add",value:function(a){return a instanceof t?this.result="".concat(this.result," + ").concat(a.getResult()):(typeof a=="number"||typeof a=="string")&&(this.result="".concat(this.result," + ").concat(by(a))),this.lowPriority=!0,this}},{key:"sub",value:function(a){return a instanceof t?this.result="".concat(this.result," - ").concat(a.getResult()):(typeof a=="number"||typeof a=="string")&&(this.result="".concat(this.result," - ").concat(by(a))),this.lowPriority=!0,this}},{key:"mul",value:function(a){return this.lowPriority&&(this.result="(".concat(this.result,")")),a instanceof t?this.result="".concat(this.result," * ").concat(a.getResult(!0)):(typeof a=="number"||typeof a=="string")&&(this.result="".concat(this.result," * ").concat(a)),this.lowPriority=!1,this}},{key:"div",value:function(a){return this.lowPriority&&(this.result="(".concat(this.result,")")),a instanceof t?this.result="".concat(this.result," / ").concat(a.getResult(!0)):(typeof a=="number"||typeof a=="string")&&(this.result="".concat(this.result," / ").concat(a)),this.lowPriority=!1,this}},{key:"getResult",value:function(a){return this.lowPriority||a?"(".concat(this.result,")"):this.result}},{key:"equal",value:function(a){var i=this,s=a||{},o=s.unit,l=!0;return typeof o=="boolean"?l=o:Array.from(this.unitlessCssVar).some(function(u){return i.result.includes(u)})&&(l=!1),this.result=this.result.replace(oZ,l?"px":""),typeof this.lowPriority<"u"?"calc(".concat(this.result,")"):this.result}}]),t})(aY),cZ=(function(n){Co(t,n);var e=Oo(t);function t(r){var a;return xr(this,t),a=e.call(this),ae(kt(a),"result",0),r instanceof t?a.result=r.result:typeof r=="number"&&(a.result=r),a}return wr(t,[{key:"add",value:function(a){return a instanceof t?this.result+=a.result:typeof a=="number"&&(this.result+=a),this}},{key:"sub",value:function(a){return a instanceof t?this.result-=a.result:typeof a=="number"&&(this.result-=a),this}},{key:"mul",value:function(a){return a instanceof t?this.result*=a.result:typeof a=="number"&&(this.result*=a),this}},{key:"div",value:function(a){return a instanceof t?this.result/=a.result:typeof a=="number"&&(this.result/=a),this}},{key:"equal",value:function(){return this.result}}]),t})(aY),uZ=function(e,t){var r=e==="css"?lZ:cZ;return function(a){return new r(a,t)}},JR=function(e,t){return"".concat([t,e.replace(/([A-Z]+)([A-Z][a-z]+)/g,"$1-$2").replace(/([a-z])([A-Z])/g,"$1-$2")].filter(Boolean).join("-"))};function cn(n){var e=E.useRef();e.current=n;var t=E.useCallback(function(){for(var r,a=arguments.length,i=new Array(a),s=0;s<a;s++)i[s]=arguments[s];return(r=e.current)===null||r===void 0?void 0:r.call.apply(r,[e].concat(i))},[]);return t}function uh(n){var e=E.useRef(!1),t=E.useState(n),r=le(t,2),a=r[0],i=r[1];E.useEffect(function(){return e.current=!1,function(){e.current=!0}},[]);function s(o,l){l&&e.current||i(o)}return[a,s]}function yy(n){return n!==void 0}function qi(n,e){var t=e||{},r=t.defaultValue,a=t.value,i=t.onChange,s=t.postState,o=uh(function(){return yy(a)?a:yy(r)?typeof r=="function"?r():r:typeof n=="function"?n():n}),l=le(o,2),u=l[0],d=l[1],f=a!==void 0?a:u,g=s?s(f):f,p=cn(i),b=uh([f]),y=le(b,2),x=y[0],S=y[1];gO(function(){var O=x[0];u!==O&&p(u,O)},[x]),gO(function(){yy(a)||d(a)},[a]);var C=cn(function(O,D){d(O,D),S([f],D)});return[g,C]}function eP(n,e,t,r){var a=se({},e[n]);if(r!=null&&r.deprecatedTokens){var i=r.deprecatedTokens;i.forEach(function(o){var l=le(o,2),u=l[0],d=l[1];if(a!=null&&a[u]||a!=null&&a[d]){var f;(f=a[d])!==null&&f!==void 0||(a[d]=a?.[u])}})}var s=se(se({},t),a);return Object.keys(s).forEach(function(o){s[o]===e[o]&&delete s[o]}),s}var sY=typeof CSSINJS_STATISTIC<"u",RO=!0;function Ca(){for(var n=arguments.length,e=new Array(n),t=0;t<n;t++)e[t]=arguments[t];if(!sY)return Object.assign.apply(Object,[{}].concat(e));RO=!1;var r={};return e.forEach(function(a){if(vt(a)==="object"){var i=Object.keys(a);i.forEach(function(s){Object.defineProperty(r,s,{configurable:!0,enumerable:!0,get:function(){return a[s]}})})}}),RO=!0,r}var tP={};function dZ(){}var fZ=function(e){var t,r=e,a=dZ;return sY&&typeof Proxy<"u"&&(t=new Set,r=new Proxy(e,{get:function(s,o){if(RO){var l;(l=t)===null||l===void 0||l.add(o)}return s[o]}}),a=function(s,o){var l;tP[s]={global:Array.from(t),component:se(se({},(l=tP[s])===null||l===void 0?void 0:l.component),o)}}),{token:r,keys:t,flush:a}};function nP(n,e,t){if(typeof t=="function"){var r;return t(Ca(e,(r=e[n])!==null&&r!==void 0?r:{}))}return t??{}}function hZ(n){return n==="js"?{max:Math.max,min:Math.min}:{max:function(){for(var t=arguments.length,r=new Array(t),a=0;a<t;a++)r[a]=arguments[a];return"max(".concat(r.map(function(i){return Ze(i)}).join(","),")")},min:function(){for(var t=arguments.length,r=new Array(t),a=0;a<t;a++)r[a]=arguments[a];return"min(".concat(r.map(function(i){return Ze(i)}).join(","),")")}}}var gZ=1e3*60*10,pZ=(function(){function n(){xr(this,n),ae(this,"map",new Map),ae(this,"objectIDMap",new WeakMap),ae(this,"nextID",0),ae(this,"lastAccessBeat",new Map),ae(this,"accessBeat",0)}return wr(n,[{key:"set",value:function(t,r){this.clear();var a=this.getCompositeKey(t);this.map.set(a,r),this.lastAccessBeat.set(a,Date.now())}},{key:"get",value:function(t){var r=this.getCompositeKey(t),a=this.map.get(r);return this.lastAccessBeat.set(r,Date.now()),this.accessBeat+=1,a}},{key:"getCompositeKey",value:function(t){var r=this,a=t.map(function(i){return i&&vt(i)==="object"?"obj_".concat(r.getObjectID(i)):"".concat(vt(i),"_").concat(i)});return a.join("|")}},{key:"getObjectID",value:function(t){if(this.objectIDMap.has(t))return this.objectIDMap.get(t);var r=this.nextID;return this.objectIDMap.set(t,r),this.nextID+=1,r}},{key:"clear",value:function(){var t=this;if(this.accessBeat>1e4){var r=Date.now();this.lastAccessBeat.forEach(function(a,i){r-a>gZ&&(t.map.delete(i),t.lastAccessBeat.delete(i))}),this.accessBeat=0}}}]),n})(),rP=new pZ;function mZ(n,e){return pe.useMemo(function(){var t=rP.get(e);if(t)return t;var r=n();return rP.set(e,r),r},e)}var vZ=function(){return{}};function bZ(n){var e=n.useCSP,t=e===void 0?vZ:e,r=n.useToken,a=n.usePrefix,i=n.getResetStyles,s=n.getCommonStyle,o=n.getCompUnitless;function l(g,p,b,y){var x=Array.isArray(g)?g[0]:g;function S(P){return"".concat(String(x)).concat(P.slice(0,1).toUpperCase()).concat(P.slice(1))}var C=y?.unitless||{},O=typeof o=="function"?o(g):{},D=se(se({},O),{},ae({},S("zIndexPopup"),!0));Object.keys(C).forEach(function(P){D[S(P)]=C[P]});var M=se(se({},y),{},{unitless:D,prefixToken:S}),A=d(g,p,b,M),T=u(x,b,M);return function(P){var R=arguments.length>1&&arguments[1]!==void 0?arguments[1]:P,N=A(P,R),I=le(N,2),$=I[1],Y=T(R),k=le(Y,2),H=k[0],F=k[1];return[H,$,F]}}function u(g,p,b){var y=b.unitless,x=b.injectStyle,S=x===void 0?!0:x,C=b.prefixToken,O=b.ignore,D=function(T){var P=T.rootCls,R=T.cssVar,N=R===void 0?{}:R,I=r(),$=I.realToken;return MG({path:[g],prefix:N.prefix,key:N.key,unitless:y,ignore:O,token:$,scope:P},function(){var Y=nP(g,$,p),k=eP(g,$,Y,{deprecatedTokens:b?.deprecatedTokens});return Object.keys(Y).forEach(function(H){k[C(H)]=k[H],delete k[H]}),k}),null},M=function(T){var P=r(),R=P.cssVar;return[function(N){return S&&R?pe.createElement(pe.Fragment,null,pe.createElement(D,{rootCls:T,cssVar:R,component:g}),N):N},R?.key]};return M}function d(g,p,b){var y=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},x=Array.isArray(g)?g:[g,g],S=le(x,1),C=S[0],O=x.join("-"),D=n.layer||{name:"antd"};return function(M){var A=arguments.length>1&&arguments[1]!==void 0?arguments[1]:M,T=r(),P=T.theme,R=T.realToken,N=T.hashId,I=T.token,$=T.cssVar,Y=a(),k=Y.rootPrefixCls,H=Y.iconPrefixCls,F=t(),B=$?"css":"js",X=mZ(function(){var G=new Set;return $&&Object.keys(y.unitless||{}).forEach(function(U){G.add(hm(U,$.prefix)),G.add(hm(U,JR(C,$.prefix)))}),uZ(B,G)},[B,C,$?.prefix]),Q=hZ(B),z=Q.max,V=Q.min,j={theme:P,token:I,hashId:N,nonce:function(){return F.nonce},clientOnly:y.clientOnly,layer:D,order:y.order||-999};typeof i=="function"&&vO(se(se({},j),{},{clientOnly:!1,path:["Shared",k]}),function(){return i(I,{prefix:{rootPrefixCls:k,iconPrefixCls:H},csp:F})});var q=vO(se(se({},j),{},{path:[O,M,H]}),function(){if(y.injectStyle===!1)return[];var G=fZ(I),U=G.token,K=G.flush,te=nP(C,R,b),ne=".".concat(M),ie=eP(C,R,te,{deprecatedTokens:y.deprecatedTokens});$&&te&&vt(te)==="object"&&Object.keys(te).forEach(function(me){te[me]="var(".concat(hm(me,JR(C,$.prefix)),")")});var ce=Ca(U,{componentCls:ne,prefixCls:M,iconCls:".".concat(H),antCls:".".concat(k),calc:X,max:z,min:V},$?te:ie),ue=p(ce,{hashId:N,prefixCls:M,rootPrefixCls:k,iconPrefixCls:H});K(C,ie);var be=typeof s=="function"?s(ce,M,A,y.resetFont):null;return[y.resetStyle===!1?null:be,ue]});return[q,N]}}function f(g,p,b){var y=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{},x=d(g,p,b,se({resetStyle:!1,order:-998},y)),S=function(O){var D=O.prefixCls,M=O.rootCls,A=M===void 0?D:M;return x(D,A),null};return S}return{genStyleHooks:l,genSubStyleComponent:f,genComponentStyleHook:d}}const fM=["blue","purple","cyan","green","magenta","pink","red","orange","yellow","volcano","geekblue","lime","gold"],yZ="5.27.2";function xy(n){return n>=0&&n<=255}function Nf(n,e){const{r:t,g:r,b:a,a:i}=new Rn(n).toRgb();if(i<1)return n;const{r:s,g:o,b:l}=new Rn(e).toRgb();for(let u=.01;u<=1;u+=.01){const d=Math.round((t-s*(1-u))/u),f=Math.round((r-o*(1-u))/u),g=Math.round((a-l*(1-u))/u);if(xy(d)&&xy(f)&&xy(g))return new Rn({r:d,g:f,b:g,a:Math.round(u*100)/100}).toRgbString()}return new Rn({r:t,g:r,b:a,a:1}).toRgbString()}var xZ=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a<r.length;a++)e.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(n,r[a])&&(t[r[a]]=n[r[a]]);return t};function oY(n){const{override:e}=n,t=xZ(n,["override"]),r=Object.assign({},e);Object.keys(lh).forEach(g=>{delete r[g]});const a=Object.assign(Object.assign({},t),r),i=480,s=576,o=768,l=992,u=1200,d=1600;return a.motion===!1&&(a.motionDurationFast="0s",a.motionDurationMid="0s",a.motionDurationSlow="0s"),Object.assign(Object.assign(Object.assign({},a),{colorFillContent:a.colorFillSecondary,colorFillContentHover:a.colorFill,colorFillAlter:a.colorFillQuaternary,colorBgContainerDisabled:a.colorFillTertiary,colorBorderBg:a.colorBgContainer,colorSplit:Nf(a.colorBorderSecondary,a.colorBgContainer),colorTextPlaceholder:a.colorTextQuaternary,colorTextDisabled:a.colorTextQuaternary,colorTextHeading:a.colorText,colorTextLabel:a.colorTextSecondary,colorTextDescription:a.colorTextTertiary,colorTextLightSolid:a.colorWhite,colorHighlight:a.colorError,colorBgTextHover:a.colorFillSecondary,colorBgTextActive:a.colorFill,colorIcon:a.colorTextTertiary,colorIconHover:a.colorText,colorErrorOutline:Nf(a.colorErrorBg,a.colorBgContainer),colorWarningOutline:Nf(a.colorWarningBg,a.colorBgContainer),fontSizeIcon:a.fontSizeSM,lineWidthFocus:a.lineWidth*3,lineWidth:a.lineWidth,controlOutlineWidth:a.lineWidth*2,controlInteractiveSize:a.controlHeight/2,controlItemBgHover:a.colorFillTertiary,controlItemBgActive:a.colorPrimaryBg,controlItemBgActiveHover:a.colorPrimaryBgHover,controlItemBgActiveDisabled:a.colorFill,controlTmpOutline:a.colorFillQuaternary,controlOutline:Nf(a.colorPrimaryBg,a.colorBgContainer),lineType:a.lineType,borderRadius:a.borderRadius,borderRadiusXS:a.borderRadiusXS,borderRadiusSM:a.borderRadiusSM,borderRadiusLG:a.borderRadiusLG,fontWeightStrong:600,opacityLoading:.65,linkDecoration:"none",linkHoverDecoration:"none",linkFocusDecoration:"none",controlPaddingHorizontal:12,controlPaddingHorizontalSM:8,paddingXXS:a.sizeXXS,paddingXS:a.sizeXS,paddingSM:a.sizeSM,padding:a.size,paddingMD:a.sizeMD,paddingLG:a.sizeLG,paddingXL:a.sizeXL,paddingContentHorizontalLG:a.sizeLG,paddingContentVerticalLG:a.sizeMS,paddingContentHorizontal:a.sizeMS,paddingContentVertical:a.sizeSM,paddingContentHorizontalSM:a.size,paddingContentVerticalSM:a.sizeXS,marginXXS:a.sizeXXS,marginXS:a.sizeXS,marginSM:a.sizeSM,margin:a.size,marginMD:a.sizeMD,marginLG:a.sizeLG,marginXL:a.sizeXL,marginXXL:a.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:s-1,screenSM:s,screenSMMin:s,screenSMMax:o-1,screenMD:o,screenMDMin:o,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 Rn("rgba(0, 0, 0, 0.16)").toRgbString()},
      0 3px 6px 0 ${new Rn("rgba(0, 0, 0, 0.12)").toRgbString()},
      0 5px 12px 4px ${new Rn("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 aP=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a<r.length;a++)e.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(n,r[a])&&(t[r[a]]=n[r[a]]);return t};const lY={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},wZ={motionBase:!0,motionUnit:!0},SZ={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},cY=(n,e,t)=>{const r=t.getDerivativeToken(n),{override:a}=e,i=aP(e,["override"]);let s=Object.assign(Object.assign({},r),{override:a});return s=oY(s),i&&Object.entries(i).forEach(([o,l])=>{const{theme:u}=l,d=aP(l,["theme"]);let f=d;u&&(f=cY(Object.assign(Object.assign({},s),d),{override:d},u)),s[o]=f}),s};function Al(){const{token:n,hashed:e,theme:t,override:r,cssVar:a}=pe.useContext(nY),i=`${yZ}-${e||""}`,s=t||tY,[o,l,u]=K7(s,[lh,n],{salt:i,override:r,getComputedToken:cY,formatToken:oY,cssVar:a&&{prefix:a.prefix,key:a.key,unitless:lY,ignore:wZ,preserve:SZ}});return[s,u,e?l:"",o,a]}const CZ={overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},dh=(n,e=!1)=>({boxSizing:"border-box",margin:0,padding:0,color:n.colorText,fontSize:n.fontSize,lineHeight:n.lineHeight,listStyle:"none",fontFamily:e?"inherit":n.fontFamily}),hM=()=>({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"}}),OZ=()=>({"&::before":{display:"table",content:'""'},"&::after":{display:"table",clear:"both",content:'""'}}),EZ=n=>({a:{color:n.colorLink,textDecoration:n.linkDecoration,backgroundColor:"transparent",outline:"none",cursor:"pointer",transition:`color ${n.motionDurationSlow}`,"-webkit-text-decoration-skip":"objects","&:hover":{color:n.colorLinkHover},"&:active":{color:n.colorLinkActive},"&:active, &:hover":{textDecoration:n.linkHoverDecoration,outline:0},"&:focus":{textDecoration:n.linkFocusDecoration,outline:0},"&[disabled]":{color:n.colorTextDisabled,cursor:"not-allowed"}}}),MZ=(n,e,t,r)=>{const a=`[class^="${e}"], [class*=" ${e}"]`,i=t?`.${t}`:a,s={boxSizing:"border-box","&::before, &::after":{boxSizing:"border-box"}};let o={};return r!==!1&&(o={fontFamily:n.fontFamily,fontSize:n.fontSize}),{[i]:Object.assign(Object.assign(Object.assign({},o),s),{[a]:s})}},DZ=(n,e)=>({outline:`${Ze(n.lineWidthFocus)} solid ${n.colorPrimaryBorder}`,outlineOffset:1,transition:"outline-offset 0s, outline 0s"}),_Z=(n,e)=>({"&:focus-visible":DZ(n)}),uY=n=>({[`.${n}`]:Object.assign(Object.assign({},hM()),{[`.${n} .${n}-icon`]:{display:"block"}})}),{genStyleHooks:kh,genComponentStyleHook:AZ,genSubStyleComponent:TZ}=bZ({usePrefix:()=>{const{getPrefixCls:n,iconPrefixCls:e}=E.useContext(Tr);return{rootPrefixCls:n(),iconPrefixCls:e}},useToken:()=>{const[n,e,t,r,a]=Al();return{theme:n,realToken:e,hashId:t,token:r,cssVar:a}},useCSP:()=>{const{csp:n}=E.useContext(Tr);return n??{}},getResetStyles:(n,e)=>{var t;const r=EZ(n);return[r,{"&":r},uY((t=e?.prefix.iconPrefixCls)!==null&&t!==void 0?t:Cv)]},getCommonStyle:MZ,getCompUnitless:()=>lY}),RZ=(n,e)=>{const[t,r]=Al();return vO({token:r,hashId:"",path:["ant-design-icons",n],nonce:()=>e?.nonce,layer:{name:"antd"}},()=>uY(n))},PZ=Object.assign({},av),{useId:iP}=PZ,LZ=()=>"",NZ=typeof iP>"u"?LZ:iP;function IZ(n,e,t){var r;const a=n||{},i=a.inherit===!1||!e?Object.assign(Object.assign({},TO),{hashed:(r=e?.hashed)!==null&&r!==void 0?r:TO.hashed,cssVar:e?.cssVar}):e,s=NZ();return eM(()=>{var o,l;if(!n)return e;const u=Object.assign({},i.components);Object.keys(n.components||{}).forEach(g=>{u[g]=Object.assign(Object.assign({},u[g]),n.components[g])});const d=`css-var-${s.replace(/:/g,"")}`,f=((o=a.cssVar)!==null&&o!==void 0?o:i.cssVar)&&Object.assign(Object.assign(Object.assign({prefix:t?.prefixCls},typeof i.cssVar=="object"?i.cssVar:{}),typeof a.cssVar=="object"?a.cssVar:{}),{key:typeof a.cssVar=="object"&&((l=a.cssVar)===null||l===void 0?void 0:l.key)||d});return Object.assign(Object.assign(Object.assign({},i),a),{token:Object.assign(Object.assign({},i.token),a.token),components:u,cssVar:f})},[a,i],(o,l)=>o.some((u,d)=>{const f=l[d];return!uO(u,f,!0)}))}var $Z=["children"],dY=E.createContext({});function FZ(n){var e=n.children,t=zn(n,$Z);return E.createElement(dY.Provider,{value:t},e)}var kZ=(function(n){Co(t,n);var e=Oo(t);function t(){return xr(this,t),e.apply(this,arguments)}return wr(t,[{key:"render",value:function(){return this.props.children}}]),t})(E.Component);function HZ(n){var e=E.useReducer(function(o){return o+1},0),t=le(e,2),r=t[1],a=E.useRef(n),i=cn(function(){return a.current}),s=cn(function(o){a.current=typeof o=="function"?o(a.current):o,r()});return[i,s]}var co="none",ap="appear",ip="enter",sp="leave",sP="none",bi="prepare",Yc="start",jc="active",gM="end",fY="prepared";function oP(n,e){var t={};return t[n.toLowerCase()]=e.toLowerCase(),t["Webkit".concat(n)]="webkit".concat(e),t["Moz".concat(n)]="moz".concat(e),t["ms".concat(n)]="MS".concat(e),t["O".concat(n)]="o".concat(e.toLowerCase()),t}function zZ(n,e){var t={animationend:oP("Animation","AnimationEnd"),transitionend:oP("Transition","TransitionEnd")};return n&&("AnimationEvent"in e||delete t.animationend.animation,"TransitionEvent"in e||delete t.transitionend.transition),t}var BZ=zZ(ka(),typeof window<"u"?window:{}),hY={};if(ka()){var YZ=document.createElement("div");hY=YZ.style}var op={};function gY(n){if(op[n])return op[n];var e=BZ[n];if(e)for(var t=Object.keys(e),r=t.length,a=0;a<r;a+=1){var i=t[a];if(Object.prototype.hasOwnProperty.call(e,i)&&i in hY)return op[n]=e[i],op[n]}return""}var pY=gY("animationend"),mY=gY("transitionend"),vY=!!(pY&&mY),lP=pY||"animationend",cP=mY||"transitionend";function uP(n,e){if(!n)return null;if(vt(n)==="object"){var t=e.replace(/-\w/g,function(r){return r[1].toUpperCase()});return n[t]}return"".concat(n,"-").concat(e)}const jZ=(function(n){var e=E.useRef();function t(a){a&&(a.removeEventListener(cP,n),a.removeEventListener(lP,n))}function r(a){e.current&&e.current!==a&&t(e.current),a&&a!==e.current&&(a.addEventListener(cP,n),a.addEventListener(lP,n),e.current=a)}return E.useEffect(function(){return function(){t(e.current)}},[]),[r,t]});var bY=ka()?E.useLayoutEffect:E.useEffect;const WZ=(function(){var n=E.useRef(null);function e(){Wr.cancel(n.current)}function t(r){var a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2;e();var i=Wr(function(){a<=1?r({isCanceled:function(){return i!==n.current}}):t(r,a-1)});n.current=i}return E.useEffect(function(){return function(){e()}},[]),[t,e]});var qZ=[bi,Yc,jc,gM],XZ=[bi,fY],yY=!1,VZ=!0;function xY(n){return n===jc||n===gM}const UZ=(function(n,e,t){var r=uh(sP),a=le(r,2),i=a[0],s=a[1],o=WZ(),l=le(o,2),u=l[0],d=l[1];function f(){s(bi,!0)}var g=e?XZ:qZ;return bY(function(){if(i!==sP&&i!==gM){var p=g.indexOf(i),b=g[p+1],y=t(i);y===yY?s(b,!0):b&&u(function(x){function S(){x.isCanceled()||s(b,!0)}y===!0?S():Promise.resolve(y).then(S)})}},[n,i]),E.useEffect(function(){return function(){d()}},[]),[f,i]});function GZ(n,e,t,r){var a=r.motionEnter,i=a===void 0?!0:a,s=r.motionAppear,o=s===void 0?!0:s,l=r.motionLeave,u=l===void 0?!0:l,d=r.motionDeadline,f=r.motionLeaveImmediately,g=r.onAppearPrepare,p=r.onEnterPrepare,b=r.onLeavePrepare,y=r.onAppearStart,x=r.onEnterStart,S=r.onLeaveStart,C=r.onAppearActive,O=r.onEnterActive,D=r.onLeaveActive,M=r.onAppearEnd,A=r.onEnterEnd,T=r.onLeaveEnd,P=r.onVisibleChanged,R=uh(),N=le(R,2),I=N[0],$=N[1],Y=HZ(co),k=le(Y,2),H=k[0],F=k[1],B=uh(null),X=le(B,2),Q=X[0],z=X[1],V=H(),j=E.useRef(!1),q=E.useRef(null);function G(){return t()}var U=E.useRef(!1);function K(){F(co),z(null,!0)}var te=cn(function($e){var Be=H();if(Be!==co){var ut=G();if(!($e&&!$e.deadline&&$e.target!==ut)){var He=U.current,Qe;Be===ap&&He?Qe=M?.(ut,$e):Be===ip&&He?Qe=A?.(ut,$e):Be===sp&&He&&(Qe=T?.(ut,$e)),He&&Qe!==!1&&K()}}}),ne=jZ(te),ie=le(ne,1),ce=ie[0],ue=function(Be){switch(Be){case ap:return ae(ae(ae({},bi,g),Yc,y),jc,C);case ip:return ae(ae(ae({},bi,p),Yc,x),jc,O);case sp:return ae(ae(ae({},bi,b),Yc,S),jc,D);default:return{}}},be=E.useMemo(function(){return ue(V)},[V]),me=UZ(V,!n,function($e){if($e===bi){var Be=be[bi];return Be?Be(G()):yY}if(Ce in be){var ut;z(((ut=be[Ce])===null||ut===void 0?void 0:ut.call(be,G(),null))||null)}return Ce===jc&&V!==co&&(ce(G()),d>0&&(clearTimeout(q.current),q.current=setTimeout(function(){te({deadline:!0})},d))),Ce===fY&&K(),VZ}),ye=le(me,2),De=ye[0],Ce=ye[1],Le=xY(Ce);U.current=Le;var Ne=E.useRef(null);bY(function(){if(!(j.current&&Ne.current===e)){$(e);var $e=j.current;j.current=!0;var Be;!$e&&e&&o&&(Be=ap),$e&&e&&i&&(Be=ip),($e&&!e&&u||!$e&&f&&!e&&u)&&(Be=sp);var ut=ue(Be);Be&&(n||ut[bi])?(F(Be),De()):F(co),Ne.current=e}},[e]),E.useEffect(function(){(V===ap&&!o||V===ip&&!i||V===sp&&!u)&&F(co)},[o,i,u]),E.useEffect(function(){return function(){j.current=!1,clearTimeout(q.current)}},[]);var Ve=E.useRef(!1);E.useEffect(function(){I&&(Ve.current=!0),I!==void 0&&V===co&&((Ve.current||I)&&P?.(I),Ve.current=!0)},[I,V]);var ze=Q;return be[bi]&&Ce===Yc&&(ze=se({transition:"none"},ze)),[V,Ce,ze,I??e]}function ZZ(n){var e=n;vt(n)==="object"&&(e=n.transitionSupport);function t(a,i){return!!(a.motionName&&e&&i!==!1)}var r=E.forwardRef(function(a,i){var s=a.visible,o=s===void 0?!0:s,l=a.removeOnLeave,u=l===void 0?!0:l,d=a.forceRender,f=a.children,g=a.motionName,p=a.leavedClassName,b=a.eventProps,y=E.useContext(dY),x=y.motion,S=t(a,x),C=E.useRef(),O=E.useRef();function D(){try{return C.current instanceof HTMLElement?C.current:fm(O.current)}catch{return null}}var M=GZ(S,o,D,a),A=le(M,4),T=A[0],P=A[1],R=A[2],N=A[3],I=E.useRef(N);N&&(I.current=!0);var $=E.useCallback(function(X){C.current=X,tM(i,X)},[i]),Y,k=se(se({},b),{},{visible:o});if(!f)Y=null;else if(T===co)N?Y=f(se({},k),$):!u&&I.current&&p?Y=f(se(se({},k),{},{className:p}),$):d||!u&&!p?Y=f(se(se({},k),{},{style:{display:"none"}}),$):Y=null;else{var H;P===bi?H="prepare":xY(P)?H="active":P===Yc&&(H="start");var F=uP(g,"".concat(T,"-").concat(H));Y=f(se(se({},k),{},{className:Te(uP(g,T),ae(ae({},F,F&&H),g,typeof g=="string")),style:R}),$)}if(E.isValidElement(Y)&&$h(Y)){var B=bv(Y);B||(Y=E.cloneElement(Y,{ref:$}))}return E.createElement(kZ,{ref:O},Y)});return r.displayName="CSSMotion",r}const Hh=ZZ(vY);var PO="add",LO="keep",NO="remove",wy="removed";function QZ(n){var e;return n&&vt(n)==="object"&&"key"in n?e=n:e={key:n},se(se({},e),{},{key:String(e.key)})}function IO(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return n.map(QZ)}function KZ(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],t=[],r=0,a=e.length,i=IO(n),s=IO(e);i.forEach(function(u){for(var d=!1,f=r;f<a;f+=1){var g=s[f];if(g.key===u.key){r<f&&(t=t.concat(s.slice(r,f).map(function(p){return se(se({},p),{},{status:PO})})),r=f),t.push(se(se({},g),{},{status:LO})),r+=1,d=!0;break}}d||t.push(se(se({},u),{},{status:NO}))}),r<a&&(t=t.concat(s.slice(r).map(function(u){return se(se({},u),{},{status:PO})})));var o={};t.forEach(function(u){var d=u.key;o[d]=(o[d]||0)+1});var l=Object.keys(o).filter(function(u){return o[u]>1});return l.forEach(function(u){t=t.filter(function(d){var f=d.key,g=d.status;return f!==u||g!==NO}),t.forEach(function(d){d.key===u&&(d.status=LO)})}),t}var JZ=["component","children","onVisibleChanged","onAllRemoved"],eQ=["status"],tQ=["eventProps","visible","children","motionName","motionAppear","motionEnter","motionLeave","motionLeaveImmediately","motionDeadline","removeOnLeave","leavedClassName","onAppearPrepare","onAppearStart","onAppearActive","onAppearEnd","onEnterStart","onEnterActive","onEnterEnd","onLeaveStart","onLeaveActive","onLeaveEnd"];function nQ(n){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:Hh,t=(function(r){Co(i,r);var a=Oo(i);function i(){var s;xr(this,i);for(var o=arguments.length,l=new Array(o),u=0;u<o;u++)l[u]=arguments[u];return s=a.call.apply(a,[this].concat(l)),ae(kt(s),"state",{keyEntities:[]}),ae(kt(s),"removeKey",function(d){s.setState(function(f){var g=f.keyEntities.map(function(p){return p.key!==d?p:se(se({},p),{},{status:wy})});return{keyEntities:g}},function(){var f=s.state.keyEntities,g=f.filter(function(p){var b=p.status;return b!==wy}).length;g===0&&s.props.onAllRemoved&&s.props.onAllRemoved()})}),s}return wr(i,[{key:"render",value:function(){var o=this,l=this.state.keyEntities,u=this.props,d=u.component,f=u.children,g=u.onVisibleChanged;u.onAllRemoved;var p=zn(u,JZ),b=d||E.Fragment,y={};return tQ.forEach(function(x){y[x]=p[x],delete p[x]}),delete p.keys,E.createElement(b,p,l.map(function(x,S){var C=x.status,O=zn(x,eQ),D=C===PO||C===LO;return E.createElement(e,tt({},y,{key:O.key,visible:D,eventProps:O,onVisibleChanged:function(A){g?.(A,{key:O.key}),A||o.removeKey(O.key)}}),function(M,A){return f(se(se({},M),{},{index:S}),A)})}))}}],[{key:"getDerivedStateFromProps",value:function(o,l){var u=o.keys,d=l.keyEntities,f=IO(u),g=KZ(d,f);return{keyEntities:g.filter(function(p){var b=d.find(function(y){var x=y.key;return p.key===x});return!(b&&b.status===wy&&p.status===NO)})}}}]),i})(E.Component);return ae(t,"defaultProps",{component:"div"}),t}const rQ=nQ(vY),dP=E.createContext(!0);function aQ(n){const e=E.useContext(dP),{children:t}=n,[,r]=Al(),{motion:a}=r,i=E.useRef(!1);return i.current||(i.current=e!==a),i.current?E.createElement(dP.Provider,{value:a},E.createElement(FZ,{motion:a},t)):t}const iQ=()=>null;var sQ=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a<r.length;a++)e.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(n,r[a])&&(t[r[a]]=n[r[a]]);return t};const oQ=["getTargetContainer","getPopupContainer","renderEmpty","input","pagination","form","select","button"];let qm,wY,SY,CY;function xm(){return qm||Wm}function lQ(){return wY||Cv}function cQ(n){return Object.keys(n).some(e=>e.endsWith("Color"))}const uQ=n=>{const{prefixCls:e,iconPrefixCls:t,theme:r,holderRender:a}=n;e!==void 0&&(qm=e),t!==void 0&&(wY=t),"holderRender"in n&&(CY=a),r&&(cQ(r)?rZ(xm(),r):SY=r)},dQ=()=>({getPrefixCls:(n,e)=>e||(n?`${xm()}-${n}`:xm()),getIconPrefixCls:lQ,getRootPrefixCls:()=>qm||xm(),getTheme:()=>SY,holderRender:CY}),fQ=n=>{const{children:e,csp:t,autoInsertSpaceInButton:r,alert:a,anchor:i,form:s,locale:o,componentSize:l,direction:u,space:d,splitter:f,virtual:g,dropdownMatchSelectWidth:p,popupMatchSelectWidth:b,popupOverflow:y,legacyLocale:x,parentContext:S,iconPrefixCls:C,theme:O,componentDisabled:D,segmented:M,statistic:A,spin:T,calendar:P,carousel:R,cascader:N,collapse:I,typography:$,checkbox:Y,descriptions:k,divider:H,drawer:F,skeleton:B,steps:X,image:Q,layout:z,list:V,mentions:j,modal:q,progress:G,result:U,slider:K,breadcrumb:te,menu:ne,pagination:ie,input:ce,textArea:ue,empty:be,badge:me,radio:ye,rate:De,switch:Ce,transfer:Le,avatar:Ne,message:Ve,tag:ze,table:$e,card:Be,tabs:ut,timeline:He,timePicker:Qe,upload:Ee,notification:st,tree:ht,colorPicker:at,datePicker:Ut,rangePicker:Nt,flex:Ue,wave:yt,dropdown:Pe,warning:Fe,tour:We,tooltip:we,popover:Ie,popconfirm:Dt,floatButton:At,floatButtonGroup:Tt,variant:vn,inputNumber:un,treeSelect:Jt}=n,It=E.useCallback((zt,Gt)=>{const{prefixCls:Sn}=n;if(Gt)return Gt;const sn=Sn||S.getPrefixCls("");return zt?`${sn}-${zt}`:sn},[S.getPrefixCls,n.prefixCls]),Ct=C||S.iconPrefixCls||Cv,Ge=t||S.csp;RZ(Ct,Ge);const ot=IZ(O,S.theme,{prefixCls:It("")}),it={csp:Ge,autoInsertSpaceInButton:r,alert:a,anchor:i,locale:o||x,direction:u,space:d,splitter:f,virtual:g,popupMatchSelectWidth:b??p,popupOverflow:y,getPrefixCls:It,iconPrefixCls:Ct,theme:ot,segmented:M,statistic:A,spin:T,calendar:P,carousel:R,cascader:N,collapse:I,typography:$,checkbox:Y,descriptions:k,divider:H,drawer:F,skeleton:B,steps:X,image:Q,input:ce,textArea:ue,layout:z,list:V,mentions:j,modal:q,progress:G,result:U,slider:K,breadcrumb:te,menu:ne,pagination:ie,empty:be,badge:me,radio:ye,rate:De,switch:Ce,transfer:Le,avatar:Ne,message:Ve,tag:ze,table:$e,card:Be,tabs:ut,timeline:He,timePicker:Qe,upload:Ee,notification:st,tree:ht,colorPicker:at,datePicker:Ut,rangePicker:Nt,flex:Ue,wave:yt,dropdown:Pe,warning:Fe,tour:We,tooltip:we,popover:Ie,popconfirm:Dt,floatButton:At,floatButtonGroup:Tt,variant:vn,inputNumber:un,treeSelect:Jt},nt=Object.assign({},S);Object.keys(it).forEach(zt=>{it[zt]!==void 0&&(nt[zt]=it[zt])}),oQ.forEach(zt=>{const Gt=n[zt];Gt&&(nt[zt]=Gt)}),typeof r<"u"&&(nt.button=Object.assign({autoInsertSpace:r},nt.button));const gt=eM(()=>nt,nt,(zt,Gt)=>{const Sn=Object.keys(zt),sn=Object.keys(Gt);return Sn.length!==sn.length||Sn.some(Pn=>zt[Pn]!==Gt[Pn])}),{layer:jt}=E.useContext(Fh),rn=E.useMemo(()=>({prefixCls:Ct,csp:Ge,layer:jt?"antd":void 0}),[Ct,Ge,jt]);let en=E.createElement(E.Fragment,null,E.createElement(iQ,{dropdownMatchSelectWidth:p}),e);const dr=E.useMemo(()=>{var zt,Gt,Sn,sn;return Bc(((zt=lu.Form)===null||zt===void 0?void 0:zt.defaultValidateMessages)||{},((Sn=(Gt=gt.locale)===null||Gt===void 0?void 0:Gt.Form)===null||Sn===void 0?void 0:Sn.defaultValidateMessages)||{},((sn=gt.form)===null||sn===void 0?void 0:sn.validateMessages)||{},s?.validateMessages||{})},[gt,s?.validateMessages]);Object.keys(dr).length>0&&(en=E.createElement(PG.Provider,{value:dr},en)),o&&(en=E.createElement(kG,{locale:o,_ANT_MARK__:FG},en)),en=E.createElement(uM.Provider,{value:rn},en),l&&(en=E.createElement(iZ,{size:l},en)),en=E.createElement(aQ,null,en);const fr=E.useMemo(()=>{const zt=ot||{},{algorithm:Gt,token:Sn,components:sn,cssVar:Pn}=zt,Ln=sQ(zt,["algorithm","token","components","cssVar"]),Cn=Gt&&(!Array.isArray(Gt)||Gt.length>0)?fO(Gt):tY,Et={};Object.entries(sn||{}).forEach(([Bn,qn])=>{const Rt=Object.assign({},qn);"algorithm"in Rt&&(Rt.algorithm===!0?Rt.theme=Cn:(Array.isArray(Rt.algorithm)||typeof Rt.algorithm=="function")&&(Rt.theme=fO(Rt.algorithm)),delete Rt.algorithm),Et[Bn]=Rt});const Qn=Object.assign(Object.assign({},lh),Sn);return Object.assign(Object.assign({},Ln),{theme:Cn,token:Qn,components:Et,override:Object.assign({override:Qn},Et),cssVar:Pn})},[ot]);return O&&(en=E.createElement(nY.Provider,{value:fr},en)),gt.warning&&(en=E.createElement(RG.Provider,{value:gt.warning},en)),D!==void 0&&(en=E.createElement(aZ,{disabled:D},en)),E.createElement(Tr.Provider,{value:gt},en)},Tl=n=>{const e=E.useContext(Tr),t=E.useContext(dM);return E.createElement(fQ,Object.assign({parentContext:e,legacyLocale:t},n))};Tl.ConfigContext=Tr;Tl.SizeContext=uu;Tl.config=uQ;Tl.useConfig=sZ;Object.defineProperty(Tl,"SizeContext",{get:()=>uu});var hQ={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 OY(n){var e;return n==null||(e=n.getRootNode)===null||e===void 0?void 0:e.call(n)}function gQ(n){return OY(n)instanceof ShadowRoot}function Xm(n){return gQ(n)?OY(n):null}function pQ(n){return n.replace(/-(.)/g,function(e,t){return t.toUpperCase()})}function mQ(n,e){Sa(n,"[@ant-design/icons] ".concat(e))}function fP(n){return vt(n)==="object"&&typeof n.name=="string"&&typeof n.theme=="string"&&(vt(n.icon)==="object"||typeof n.icon=="function")}function hP(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};return Object.keys(n).reduce(function(e,t){var r=n[t];switch(t){case"class":e.className=r,delete e.class;break;default:delete e[t],e[pQ(t)]=r}return e},{})}function $O(n,e,t){return t?pe.createElement(n.tag,se(se({key:e},hP(n.attrs)),t),(n.children||[]).map(function(r,a){return $O(r,"".concat(e,"-").concat(n.tag,"-").concat(a))})):pe.createElement(n.tag,se({key:e},hP(n.attrs)),(n.children||[]).map(function(r,a){return $O(r,"".concat(e,"-").concat(n.tag,"-").concat(a))}))}function EY(n){return ch(n)[0]}function MY(n){return n?Array.isArray(n)?n:[n]:[]}var vQ=`
.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);
  }
}
`,bQ=function(e){var t=E.useContext(uM),r=t.csp,a=t.prefixCls,i=t.layer,s=vQ;a&&(s=s.replace(/anticon/g,a)),i&&(s="@layer ".concat(i,` {
`).concat(s,`
}`)),E.useEffect(function(){var o=e.current,l=Xm(o);Os(s,"@ant-design-icons",{prepend:!i,csp:r,attachTo:l})},[])},yQ=["icon","className","onClick","style","primaryColor","secondaryColor"],qf={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};function xQ(n){var e=n.primaryColor,t=n.secondaryColor;qf.primaryColor=e,qf.secondaryColor=t||EY(e),qf.calculated=!!t}function wQ(){return se({},qf)}var Cu=function(e){var t=e.icon,r=e.className,a=e.onClick,i=e.style,s=e.primaryColor,o=e.secondaryColor,l=zn(e,yQ),u=E.useRef(),d=qf;if(s&&(d={primaryColor:s,secondaryColor:o||EY(s)}),bQ(u),mQ(fP(t),"icon should be icon definiton, but got ".concat(t)),!fP(t))return null;var f=t;return f&&typeof f.icon=="function"&&(f=se(se({},f),{},{icon:f.icon(d.primaryColor,d.secondaryColor)})),$O(f.icon,"svg-".concat(f.name),se(se({className:r,onClick:a,style:i,"data-icon":f.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},l),{},{ref:u}))};Cu.displayName="IconReact";Cu.getTwoToneColors=wQ;Cu.setTwoToneColors=xQ;function DY(n){var e=MY(n),t=le(e,2),r=t[0],a=t[1];return Cu.setTwoToneColors({primaryColor:r,secondaryColor:a})}function SQ(){var n=Cu.getTwoToneColors();return n.calculated?[n.primaryColor,n.secondaryColor]:n.primaryColor}var CQ=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];DY(jm.primary);var ca=E.forwardRef(function(n,e){var t=n.className,r=n.icon,a=n.spin,i=n.rotate,s=n.tabIndex,o=n.onClick,l=n.twoToneColor,u=zn(n,CQ),d=E.useContext(uM),f=d.prefixCls,g=f===void 0?"anticon":f,p=d.rootClassName,b=Te(p,g,ae(ae({},"".concat(g,"-").concat(r.name),!!r.name),"".concat(g,"-spin"),!!a||r.name==="loading"),t),y=s;y===void 0&&o&&(y=-1);var x=i?{msTransform:"rotate(".concat(i,"deg)"),transform:"rotate(".concat(i,"deg)")}:void 0,S=MY(l),C=le(S,2),O=C[0],D=C[1];return E.createElement("span",tt({role:"img","aria-label":r.name},u,{ref:e,tabIndex:y,onClick:o,className:b}),E.createElement(Cu,{icon:r,primaryColor:O,secondaryColor:D,style:x}))});ca.displayName="AntdIcon";ca.getTwoToneColor=SQ;ca.setTwoToneColor=DY;var OQ=function(e,t){return E.createElement(ca,tt({},e,{ref:t,icon:hQ}))},EQ=E.forwardRef(OQ),MQ={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"},DQ=function(e,t){return E.createElement(ca,tt({},e,{ref:t,icon:MQ}))},_Y=E.forwardRef(DQ),_Q={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"},AQ=function(e,t){return E.createElement(ca,tt({},e,{ref:t,icon:_Q}))},AY=E.forwardRef(AQ),TQ={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"},RQ=function(e,t){return E.createElement(ca,tt({},e,{ref:t,icon:TQ}))},PQ=E.forwardRef(RQ),LQ={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"},NQ=function(e,t){return E.createElement(ca,tt({},e,{ref:t,icon:LQ}))},IQ=E.forwardRef(NQ),$Q=`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`,FQ=`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`,kQ="".concat($Q," ").concat(FQ).split(/[\s\n]+/),HQ="aria-",zQ="data-";function gP(n,e){return n.indexOf(e)===0}function Ov(n){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,t;e===!1?t={aria:!0,data:!0,attr:!0}:e===!0?t={aria:!0}:t=se({},e);var r={};return Object.keys(n).forEach(function(a){(t.aria&&(a==="role"||gP(a,HQ))||t.data&&gP(a,zQ)||t.attr&&kQ.includes(a))&&(r[a]=n[a])}),r}function BQ(n){return n&&pe.isValidElement(n)&&n.type===pe.Fragment}const YQ=(n,e,t)=>pe.isValidElement(n)?pe.cloneElement(n,typeof t=="function"?t(n.props||{}):t):e;function TY(n,e){return YQ(n,n,e)}const Ev=n=>{const[,,,,e]=Al();return e?`${n}-css-var`:""};var jQ={ENTER:13},RY=E.forwardRef(function(n,e){var t=n.prefixCls,r=n.style,a=n.className,i=n.duration,s=i===void 0?4.5:i,o=n.showProgress,l=n.pauseOnHover,u=l===void 0?!0:l,d=n.eventKey,f=n.content,g=n.closable,p=n.closeIcon,b=p===void 0?"x":p,y=n.props,x=n.onClick,S=n.onNoticeClose,C=n.times,O=n.hovering,D=E.useState(!1),M=le(D,2),A=M[0],T=M[1],P=E.useState(0),R=le(P,2),N=R[0],I=R[1],$=E.useState(0),Y=le($,2),k=Y[0],H=Y[1],F=O||A,B=s>0&&o,X=function(){S(d)},Q=function(U){(U.key==="Enter"||U.code==="Enter"||U.keyCode===jQ.ENTER)&&X()};E.useEffect(function(){if(!F&&s>0){var G=Date.now()-k,U=setTimeout(function(){X()},s*1e3-k);return function(){u&&clearTimeout(U),H(Date.now()-G)}}},[s,F,C]),E.useEffect(function(){if(!F&&B&&(u||k===0)){var G=performance.now(),U,K=function te(){cancelAnimationFrame(U),U=requestAnimationFrame(function(ne){var ie=ne+k-G,ce=Math.min(ie/(s*1e3),1);I(ce*100),ce<1&&te()})};return K(),function(){u&&cancelAnimationFrame(U)}}},[s,k,F,B,C]);var z=E.useMemo(function(){return vt(g)==="object"&&g!==null?g:g?{closeIcon:b}:{}},[g,b]),V=Ov(z,!0),j=100-(!N||N<0?0:N>100?100:N),q="".concat(t,"-notice");return E.createElement("div",tt({},y,{ref:e,className:Te(q,a,ae({},"".concat(q,"-closable"),g)),style:r,onMouseEnter:function(U){var K;T(!0),y==null||(K=y.onMouseEnter)===null||K===void 0||K.call(y,U)},onMouseLeave:function(U){var K;T(!1),y==null||(K=y.onMouseLeave)===null||K===void 0||K.call(y,U)},onClick:x}),E.createElement("div",{className:"".concat(q,"-content")},f),g&&E.createElement("a",tt({tabIndex:0,className:"".concat(q,"-close"),onKeyDown:Q,"aria-label":"Close"},V,{onClick:function(U){U.preventDefault(),U.stopPropagation(),X()}}),z.closeIcon),B&&E.createElement("progress",{className:"".concat(q,"-progress"),max:"100",value:j},j+"%"))}),PY=pe.createContext({}),WQ=function(e){var t=e.children,r=e.classNames;return pe.createElement(PY.Provider,{value:{classNames:r}},t)},pP=8,mP=3,vP=16,qQ=function(e){var t={offset:pP,threshold:mP,gap:vP};if(e&&vt(e)==="object"){var r,a,i;t.offset=(r=e.offset)!==null&&r!==void 0?r:pP,t.threshold=(a=e.threshold)!==null&&a!==void 0?a:mP,t.gap=(i=e.gap)!==null&&i!==void 0?i:vP}return[!!e,t]},XQ=["className","style","classNames","styles"],VQ=function(e){var t=e.configList,r=e.placement,a=e.prefixCls,i=e.className,s=e.style,o=e.motion,l=e.onAllNoticeRemoved,u=e.onNoticeClose,d=e.stack,f=E.useContext(PY),g=f.classNames,p=E.useRef({}),b=E.useState(null),y=le(b,2),x=y[0],S=y[1],C=E.useState([]),O=le(C,2),D=O[0],M=O[1],A=t.map(function(F){return{config:F,key:String(F.key)}}),T=qQ(d),P=le(T,2),R=P[0],N=P[1],I=N.offset,$=N.threshold,Y=N.gap,k=R&&(D.length>0||A.length<=$),H=typeof o=="function"?o(r):o;return E.useEffect(function(){R&&D.length>1&&M(function(F){return F.filter(function(B){return A.some(function(X){var Q=X.key;return B===Q})})})},[D,A,R]),E.useEffect(function(){var F;if(R&&p.current[(F=A[A.length-1])===null||F===void 0?void 0:F.key]){var B;S(p.current[(B=A[A.length-1])===null||B===void 0?void 0:B.key])}},[A,R]),pe.createElement(rQ,tt({key:r,className:Te(a,"".concat(a,"-").concat(r),g?.list,i,ae(ae({},"".concat(a,"-stack"),!!R),"".concat(a,"-stack-expanded"),k)),style:s,keys:A,motionAppear:!0},H,{onAllRemoved:function(){l(r)}}),function(F,B){var X=F.config,Q=F.className,z=F.style,V=F.index,j=X,q=j.key,G=j.times,U=String(q),K=X,te=K.className,ne=K.style,ie=K.classNames,ce=K.styles,ue=zn(K,XQ),be=A.findIndex(function(He){return He.key===U}),me={};if(R){var ye=A.length-1-(be>-1?be:V-1),De=r==="top"||r==="bottom"?"-50%":"0";if(ye>0){var Ce,Le,Ne;me.height=k?(Ce=p.current[U])===null||Ce===void 0?void 0:Ce.offsetHeight:x?.offsetHeight;for(var Ve=0,ze=0;ze<ye;ze++){var $e;Ve+=(($e=p.current[A[A.length-1-ze].key])===null||$e===void 0?void 0:$e.offsetHeight)+Y}var Be=(k?Ve:ye*I)*(r.startsWith("top")?1:-1),ut=!k&&x!==null&&x!==void 0&&x.offsetWidth&&(Le=p.current[U])!==null&&Le!==void 0&&Le.offsetWidth?(x?.offsetWidth-I*2*(ye<3?ye:3))/((Ne=p.current[U])===null||Ne===void 0?void 0:Ne.offsetWidth):1;me.transform="translate3d(".concat(De,", ").concat(Be,"px, 0) scaleX(").concat(ut,")")}else me.transform="translate3d(".concat(De,", 0, 0)")}return pe.createElement("div",{ref:B,className:Te("".concat(a,"-notice-wrapper"),Q,ie?.wrapper),style:se(se(se({},z),me),ce?.wrapper),onMouseEnter:function(){return M(function(Qe){return Qe.includes(U)?Qe:[].concat(je(Qe),[U])})},onMouseLeave:function(){return M(function(Qe){return Qe.filter(function(Ee){return Ee!==U})})}},pe.createElement(RY,tt({},ue,{ref:function(Qe){be>-1?p.current[U]=Qe:delete p.current[U]},prefixCls:a,classNames:ie,styles:ce,className:Te(te,g?.notice),style:ne,times:G,key:q,eventKey:q,onNoticeClose:u,hovering:R&&D.length>0})))})},UQ=E.forwardRef(function(n,e){var t=n.prefixCls,r=t===void 0?"rc-notification":t,a=n.container,i=n.motion,s=n.maxCount,o=n.className,l=n.style,u=n.onAllRemoved,d=n.stack,f=n.renderNotifications,g=E.useState([]),p=le(g,2),b=p[0],y=p[1],x=function(R){var N,I=b.find(function($){return $.key===R});I==null||(N=I.onClose)===null||N===void 0||N.call(I),y(function($){return $.filter(function(Y){return Y.key!==R})})};E.useImperativeHandle(e,function(){return{open:function(R){y(function(N){var I=je(N),$=I.findIndex(function(H){return H.key===R.key}),Y=se({},R);if($>=0){var k;Y.times=(((k=N[$])===null||k===void 0?void 0:k.times)||0)+1,I[$]=Y}else Y.times=0,I.push(Y);return s>0&&I.length>s&&(I=I.slice(-s)),I})},close:function(R){x(R)},destroy:function(){y([])}}});var S=E.useState({}),C=le(S,2),O=C[0],D=C[1];E.useEffect(function(){var P={};b.forEach(function(R){var N=R.placement,I=N===void 0?"topRight":N;I&&(P[I]=P[I]||[],P[I].push(R))}),Object.keys(O).forEach(function(R){P[R]=P[R]||[]}),D(P)},[b]);var M=function(R){D(function(N){var I=se({},N),$=I[R]||[];return $.length||delete I[R],I})},A=E.useRef(!1);if(E.useEffect(function(){Object.keys(O).length>0?A.current=!0:A.current&&(u?.(),A.current=!1)},[O]),!a)return null;var T=Object.keys(O);return Cs.createPortal(E.createElement(E.Fragment,null,T.map(function(P){var R=O[P],N=E.createElement(VQ,{key:P,configList:R,placement:P,prefixCls:r,className:o?.(P),style:l?.(P),motion:i,onNoticeClose:x,onAllNoticeRemoved:M,stack:d});return f?f(N,{prefixCls:r,key:P}):N})),a)}),GQ=["getContainer","motion","prefixCls","maxCount","className","style","onAllRemoved","stack","renderNotifications"],ZQ=function(){return document.body},bP=0;function QQ(){for(var n={},e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return t.forEach(function(a){a&&Object.keys(a).forEach(function(i){var s=a[i];s!==void 0&&(n[i]=s)})}),n}function KQ(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},e=n.getContainer,t=e===void 0?ZQ:e,r=n.motion,a=n.prefixCls,i=n.maxCount,s=n.className,o=n.style,l=n.onAllRemoved,u=n.stack,d=n.renderNotifications,f=zn(n,GQ),g=E.useState(),p=le(g,2),b=p[0],y=p[1],x=E.useRef(),S=E.createElement(UQ,{container:b,ref:x,prefixCls:a,motion:r,maxCount:i,className:s,style:o,onAllRemoved:l,stack:u,renderNotifications:d}),C=E.useState([]),O=le(C,2),D=O[0],M=O[1],A=cn(function(P){var R=QQ(f,P);(R.key===null||R.key===void 0)&&(R.key="rc-notification-".concat(bP),bP+=1),M(function(N){return[].concat(je(N),[{type:"open",config:R}])})}),T=E.useMemo(function(){return{open:A,close:function(R){M(function(N){return[].concat(je(N),[{type:"close",key:R}])})},destroy:function(){M(function(R){return[].concat(je(R),[{type:"destroy"}])})}}},[]);return E.useEffect(function(){y(t())}),E.useEffect(function(){if(x.current&&D.length){D.forEach(function(N){switch(N.type){case"open":x.current.open(N.config);break;case"close":x.current.close(N.key);break;case"destroy":x.current.destroy();break}});var P,R;M(function(N){return(P!==N||!R)&&(P=N,R=N.filter(function(I){return!D.includes(I)})),R})}},[D]),[T,S]}var JQ={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"},eK=function(e,t){return E.createElement(ca,tt({},e,{ref:t,icon:JQ}))},pM=E.forwardRef(eK);const tK=pe.createContext(void 0),uo=100,nK=10,rK=uo*nK,LY={Modal:uo,Drawer:uo,Popover:uo,Popconfirm:uo,Tooltip:uo,Tour:uo,FloatButton:uo},aK={SelectLike:50,Dropdown:50,DatePicker:50,Menu:50,ImagePreview:1};function iK(n){return n in LY}const NY=(n,e)=>{const[,t]=Al(),r=pe.useContext(tK),a=iK(n);let i;if(e!==void 0)i=[e,e];else{let s=r??0;a?s+=(r?0:t.zIndexPopupBase)+LY[n]:s+=aK[n],i=[r===void 0?e:s,s]}return i},sK=n=>{const{componentCls:e,iconCls:t,boxShadow:r,colorText:a,colorSuccess:i,colorError:s,colorWarning:o,colorInfo:l,fontSizeLG:u,motionEaseInOutCirc:d,motionDurationSlow:f,marginXS:g,paddingXS:p,borderRadiusLG:b,zIndexPopup:y,contentPadding:x,contentBg:S}=n,C=`${e}-notice`,O=new Ar("MessageMoveIn",{"0%":{padding:0,transform:"translateY(-100%)",opacity:0},"100%":{padding:p,transform:"translateY(0)",opacity:1}}),D=new Ar("MessageMoveOut",{"0%":{maxHeight:n.height,padding:p,opacity:1},"100%":{maxHeight:0,padding:0,opacity:0}}),M={padding:p,textAlign:"center",[`${e}-custom-content`]:{display:"flex",alignItems:"center"},[`${e}-custom-content > ${t}`]:{marginInlineEnd:g,fontSize:u},[`${C}-content`]:{display:"inline-block",padding:x,background:S,borderRadius:b,boxShadow:r,pointerEvents:"all"},[`${e}-success > ${t}`]:{color:i},[`${e}-error > ${t}`]:{color:s},[`${e}-warning > ${t}`]:{color:o},[`${e}-info > ${t},
      ${e}-loading > ${t}`]:{color:l}};return[{[e]:Object.assign(Object.assign({},dh(n)),{color:a,position:"fixed",top:g,width:"100%",pointerEvents:"none",zIndex:y,[`${e}-move-up`]:{animationFillMode:"forwards"},[`
        ${e}-move-up-appear,
        ${e}-move-up-enter
      `]:{animationName:O,animationDuration:f,animationPlayState:"paused",animationTimingFunction:d},[`
        ${e}-move-up-appear${e}-move-up-appear-active,
        ${e}-move-up-enter${e}-move-up-enter-active
      `]:{animationPlayState:"running"},[`${e}-move-up-leave`]:{animationName:D,animationDuration:f,animationPlayState:"paused",animationTimingFunction:d},[`${e}-move-up-leave${e}-move-up-leave-active`]:{animationPlayState:"running"},"&-rtl":{direction:"rtl",span:{direction:"rtl"}}})},{[e]:{[`${C}-wrapper`]:Object.assign({},M)}},{[`${e}-notice-pure-panel`]:Object.assign(Object.assign({},M),{padding:0,textAlign:"start"})}]},oK=n=>({zIndexPopup:n.zIndexPopupBase+rK+10,contentBg:n.colorBgElevated,contentPadding:`${(n.controlHeightLG-n.fontSize*n.lineHeight)/2}px ${n.paddingSM}px`}),IY=kh("Message",n=>{const e=Ca(n,{height:150});return sK(e)},oK);var lK=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a<r.length;a++)e.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(n,r[a])&&(t[r[a]]=n[r[a]]);return t};const cK={info:E.createElement(IQ,null),success:E.createElement(EQ,null),error:E.createElement(_Y,null),warning:E.createElement(PQ,null),loading:E.createElement(pM,null)},$Y=({prefixCls:n,type:e,icon:t,children:r})=>E.createElement("div",{className:Te(`${n}-custom-content`,`${n}-${e}`)},t||cK[e],E.createElement("span",null,r)),uK=n=>{const{prefixCls:e,className:t,type:r,icon:a,content:i}=n,s=lK(n,["prefixCls","className","type","icon","content"]),{getPrefixCls:o}=E.useContext(Tr),l=e||o("message"),u=Ev(l),[d,f,g]=IY(l,u);return d(E.createElement(RY,Object.assign({},s,{prefixCls:l,className:Te(t,f,`${l}-notice-pure-panel`,g,u),eventKey:"pure",duration:null,content:E.createElement($Y,{prefixCls:l,type:r,icon:a},i)})))};function dK(n,e){return{motionName:e??`${n}-move-up`}}function mM(n){let e;const t=new Promise(a=>{e=n(()=>{a(!0)})}),r=()=>{e?.()};return r.then=(a,i)=>t.then(a,i),r.promise=t,r}var fK=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a<r.length;a++)e.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(n,r[a])&&(t[r[a]]=n[r[a]]);return t};const hK=8,gK=3,pK=({children:n,prefixCls:e})=>{const t=Ev(e),[r,a,i]=IY(e,t);return r(E.createElement(WQ,{classNames:{list:Te(a,i,t)}},n))},mK=(n,{prefixCls:e,key:t})=>E.createElement(pK,{prefixCls:e,key:t},n),vK=E.forwardRef((n,e)=>{const{top:t,prefixCls:r,getContainer:a,maxCount:i,duration:s=gK,rtl:o,transitionName:l,onAllRemoved:u}=n,{getPrefixCls:d,getPopupContainer:f,message:g,direction:p}=E.useContext(Tr),b=r||d("message"),y=()=>({left:"50%",transform:"translateX(-50%)",top:t??hK}),x=()=>Te({[`${b}-rtl`]:o??p==="rtl"}),S=()=>dK(b,l),C=E.createElement("span",{className:`${b}-close-x`},E.createElement(AY,{className:`${b}-close-icon`})),[O,D]=KQ({prefixCls:b,style:y,className:x,motion:S,closable:!1,closeIcon:C,duration:s,getContainer:()=>a?.()||f?.()||document.body,maxCount:i,onAllRemoved:u,renderNotifications:mK});return E.useImperativeHandle(e,()=>Object.assign(Object.assign({},O),{prefixCls:b,message:g})),D});let yP=0;function FY(n){const e=E.useRef(null);return[E.useMemo(()=>{const r=l=>{var u;(u=e.current)===null||u===void 0||u.close(l)},a=l=>{if(!e.current){const A=()=>{};return A.then=()=>{},A}const{open:u,prefixCls:d,message:f}=e.current,g=`${d}-notice`,{content:p,icon:b,type:y,key:x,className:S,style:C,onClose:O}=l,D=fK(l,["content","icon","type","key","className","style","onClose"]);let M=x;return M==null&&(yP+=1,M=`antd-message-${yP}`),mM(A=>(u(Object.assign(Object.assign({},D),{key:M,content:E.createElement($Y,{prefixCls:d,type:y,icon:b},p),placement:"top",className:Te(y&&`${g}-${y}`,S,f?.className),style:Object.assign(Object.assign({},f?.style),C),onClose:()=>{O?.(),A()}})),()=>{r(M)}))},s={open:a,destroy:l=>{var u;l!==void 0?r(l):(u=e.current)===null||u===void 0||u.destroy()}};return["info","success","warning","error","loading"].forEach(l=>{const u=(d,f,g)=>{let p;d&&typeof d=="object"&&"content"in d?p=d:p={content:d};let b,y;typeof f=="function"?y=f:(b=f,y=g);const x=Object.assign(Object.assign({onClose:y,duration:b},p),{type:l});return a(x)};s[l]=u}),s},[]),E.createElement(vK,Object.assign({key:"message-holder"},n,{ref:e}))]}function bK(n){return FY(n)}function kY(n,e){this.v=n,this.k=e}function ea(n,e,t,r){var a=Object.defineProperty;try{a({},"",{})}catch{a=0}ea=function(s,o,l,u){function d(f,g){ea(s,f,function(p){return this._invoke(f,g,p)})}o?a?a(s,o,{value:l,enumerable:!u,configurable:!u,writable:!u}):s[o]=l:(d("next",0),d("throw",1),d("return",2))},ea(n,e,t,r)}function vM(){/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */var n,e,t=typeof Symbol=="function"?Symbol:{},r=t.iterator||"@@iterator",a=t.toStringTag||"@@toStringTag";function i(p,b,y,x){var S=b&&b.prototype instanceof o?b:o,C=Object.create(S.prototype);return ea(C,"_invoke",(function(O,D,M){var A,T,P,R=0,N=M||[],I=!1,$={p:0,n:0,v:n,a:Y,f:Y.bind(n,4),d:function(H,F){return A=H,T=0,P=n,$.n=F,s}};function Y(k,H){for(T=k,P=H,e=0;!I&&R&&!F&&e<N.length;e++){var F,B=N[e],X=$.p,Q=B[2];k>3?(F=Q===H)&&(P=B[(T=B[4])?5:(T=3,3)],B[4]=B[5]=n):B[0]<=X&&((F=k<2&&X<B[1])?(T=0,$.v=H,$.n=B[1]):X<Q&&(F=k<3||B[0]>H||H>Q)&&(B[4]=k,B[5]=H,$.n=Q,T=0))}if(F||k>1)return s;throw I=!0,H}return function(k,H,F){if(R>1)throw TypeError("Generator is already running");for(I&&H===1&&Y(H,F),T=H,P=F;(e=T<2?n:P)||!I;){A||(T?T<3?(T>1&&($.n=-1),Y(T,P)):$.n=P:$.v=P);try{if(R=2,A){if(T||(k="next"),e=A[k]){if(!(e=e.call(A,P)))throw TypeError("iterator result is not an object");if(!e.done)return e;P=e.value,T<2&&(T=0)}else T===1&&(e=A.return)&&e.call(A),T<2&&(P=TypeError("The iterator does not provide a '"+k+"' method"),T=1);A=n}else if((e=(I=$.n<0)?P:O.call(D,$))!==s)break}catch(B){A=n,T=1,P=B}finally{R=1}}return{value:e,done:I}}})(p,y,x),!0),C}var s={};function o(){}function l(){}function u(){}e=Object.getPrototypeOf;var d=[][r]?e(e([][r]())):(ea(e={},r,function(){return this}),e),f=u.prototype=o.prototype=Object.create(d);function g(p){return Object.setPrototypeOf?Object.setPrototypeOf(p,u):(p.__proto__=u,ea(p,a,"GeneratorFunction")),p.prototype=Object.create(f),p}return l.prototype=u,ea(f,"constructor",u),ea(u,"constructor",l),l.displayName="GeneratorFunction",ea(u,a,"GeneratorFunction"),ea(f),ea(f,a,"Generator"),ea(f,r,function(){return this}),ea(f,"toString",function(){return"[object Generator]"}),(vM=function(){return{w:i,m:g}})()}function Vm(n,e){function t(a,i,s,o){try{var l=n[a](i),u=l.value;return u instanceof kY?e.resolve(u.v).then(function(d){t("next",d,s,o)},function(d){t("throw",d,s,o)}):e.resolve(u).then(function(d){l.value=d,s(l)},function(d){return t("throw",d,s,o)})}catch(d){o(d)}}var r;this.next||(ea(Vm.prototype),ea(Vm.prototype,typeof Symbol=="function"&&Symbol.asyncIterator||"@asyncIterator",function(){return this})),ea(this,"_invoke",function(a,i,s){function o(){return new e(function(l,u){t(a,s,l,u)})}return r=r?r.then(o,o):o()},!0)}function HY(n,e,t,r,a){return new Vm(vM().w(n,e,t,r),a||Promise)}function yK(n,e,t,r,a){var i=HY(n,e,t,r,a);return i.next().then(function(s){return s.done?s.value:i.next()})}function xK(n){var e=Object(n),t=[];for(var r in e)t.unshift(r);return function a(){for(;t.length;)if((r=t.pop())in e)return a.value=r,a.done=!1,a;return a.done=!0,a}}function xP(n){if(n!=null){var e=n[typeof Symbol=="function"&&Symbol.iterator||"@@iterator"],t=0;if(e)return e.call(n);if(typeof n.next=="function")return n;if(!isNaN(n.length))return{next:function(){return n&&t>=n.length&&(n=void 0),{value:n&&n[t++],done:!n}}}}throw new TypeError(vt(n)+" is not iterable")}function ra(){var n=vM(),e=n.m(ra),t=(Object.getPrototypeOf?Object.getPrototypeOf(e):e.__proto__).constructor;function r(s){var o=typeof s=="function"&&s.constructor;return!!o&&(o===t||(o.displayName||o.name)==="GeneratorFunction")}var a={throw:1,return:2,break:3,continue:3};function i(s){var o,l;return function(u){o||(o={stop:function(){return l(u.a,2)},catch:function(){return u.v},abrupt:function(f,g){return l(u.a,a[f],g)},delegateYield:function(f,g,p){return o.resultName=g,l(u.d,xP(f),p)},finish:function(f){return l(u.f,f)}},l=function(f,g,p){u.p=o.prev,u.n=o.next;try{return f(g,p)}finally{o.next=u.n}}),o.resultName&&(o[o.resultName]=u.v,o.resultName=void 0),o.sent=u.v,o.next=u.n;try{return s.call(this,o)}finally{u.p=o.prev,u.n=o.next}}}return(ra=function(){return{wrap:function(l,u,d,f){return n.w(i(l),u,d,f&&f.reverse())},isGeneratorFunction:r,mark:n.m,awrap:function(l,u){return new kY(l,u)},AsyncIterator:Vm,async:function(l,u,d,f,g){return(r(u)?HY:yK)(i(l),u,d,f,g)},keys:xK,values:xP}})()}function wP(n,e,t,r,a,i,s){try{var o=n[i](s),l=o.value}catch(u){return void t(u)}o.done?e(l):Promise.resolve(l).then(r,a)}function Rl(n){return function(){var e=this,t=arguments;return new Promise(function(r,a){var i=n.apply(e,t);function s(l){wP(i,r,a,s,o,"next",l)}function o(l){wP(i,r,a,s,o,"throw",l)}s(void 0)})}}var zh=se({},X6),wK=zh.version,Sy=zh.render,SK=zh.unmountComponentAtNode,Mv;try{var CK=Number((wK||"").split(".")[0]);CK>=18&&(Mv=zh.createRoot)}catch{}function SP(n){var e=zh.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED;e&&vt(e)==="object"&&(e.usingClientEntryPoint=n)}var Um="__rc_react_root__";function OK(n,e){SP(!0);var t=e[Um]||Mv(e);SP(!1),t.render(n),e[Um]=t}function EK(n,e){Sy?.(n,e)}function MK(n,e){if(Mv){OK(n,e);return}EK(n,e)}function DK(n){return FO.apply(this,arguments)}function FO(){return FO=Rl(ra().mark(function n(e){return ra().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",Promise.resolve().then(function(){var a;(a=e[Um])===null||a===void 0||a.unmount(),delete e[Um]}));case 1:case"end":return r.stop()}},n)})),FO.apply(this,arguments)}function _K(n){SK(n)}function AK(n){return kO.apply(this,arguments)}function kO(){return kO=Rl(ra().mark(function n(e){return ra().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:if(Mv===void 0){r.next=2;break}return r.abrupt("return",DK(e));case 2:_K(e);case 3:case"end":return r.stop()}},n)})),kO.apply(this,arguments)}const TK=(n,e)=>(MK(n,e),()=>AK(e));let RK=TK;function zY(n){return RK}function bM(n,e){var t=Object.assign({},n);return Array.isArray(e)&&e.forEach(function(r){delete t[r]}),t}const yM=(function(n){if(!n)return!1;if(n instanceof Element){if(n.offsetParent)return!0;if(n.getBBox){var e=n.getBBox(),t=e.width,r=e.height;if(t||r)return!0}if(n.getBoundingClientRect){var a=n.getBoundingClientRect(),i=a.width,s=a.height;if(i||s)return!0}}return!1}),PK=n=>{const{componentCls:e,colorPrimary:t}=n;return{[e]:{position:"absolute",background:"transparent",pointerEvents:"none",boxSizing:"border-box",color:`var(--wave-color, ${t})`,boxShadow:"0 0 0 0 currentcolor",opacity:.2,"&.wave-motion-appear":{transition:[`box-shadow 0.4s ${n.motionEaseOutCirc}`,`opacity 2s ${n.motionEaseOutCirc}`].join(","),"&-active":{boxShadow:"0 0 0 6px currentcolor",opacity:0},"&.wave-quick":{transition:[`box-shadow ${n.motionDurationSlow} ${n.motionEaseInOut}`,`opacity ${n.motionDurationSlow} ${n.motionEaseInOut}`].join(",")}}}}},LK=AZ("Wave",PK),BY=`${Wm}-wave-target`;function NK(n){return n&&n!=="#fff"&&n!=="#ffffff"&&n!=="rgb(255, 255, 255)"&&n!=="rgba(255, 255, 255, 1)"&&!/rgba\((?:\d*, ){3}0\)/.test(n)&&n!=="transparent"&&n!=="canvastext"}function IK(n){var e;const{borderTopColor:t,borderColor:r,backgroundColor:a}=getComputedStyle(n);return(e=[t,r,a].find(NK))!==null&&e!==void 0?e:null}function Cy(n){return Number.isNaN(n)?0:n}const $K=n=>{const{className:e,target:t,component:r,registerUnmount:a}=n,i=E.useRef(null),s=E.useRef(null);E.useEffect(()=>{s.current=a()},[]);const[o,l]=E.useState(null),[u,d]=E.useState([]),[f,g]=E.useState(0),[p,b]=E.useState(0),[y,x]=E.useState(0),[S,C]=E.useState(0),[O,D]=E.useState(!1),M={left:f,top:p,width:y,height:S,borderRadius:u.map(P=>`${P}px`).join(" ")};o&&(M["--wave-color"]=o);function A(){const P=getComputedStyle(t);l(IK(t));const R=P.position==="static",{borderLeftWidth:N,borderTopWidth:I}=P;g(R?t.offsetLeft:Cy(-parseFloat(N))),b(R?t.offsetTop:Cy(-parseFloat(I))),x(t.offsetWidth),C(t.offsetHeight);const{borderTopLeftRadius:$,borderTopRightRadius:Y,borderBottomLeftRadius:k,borderBottomRightRadius:H}=P;d([$,Y,H,k].map(F=>Cy(parseFloat(F))))}if(E.useEffect(()=>{if(t){const P=Wr(()=>{A(),D(!0)});let R;return typeof ResizeObserver<"u"&&(R=new ResizeObserver(A),R.observe(t)),()=>{Wr.cancel(P),R?.disconnect()}}},[]),!O)return null;const T=(r==="Checkbox"||r==="Radio")&&t?.classList.contains(BY);return E.createElement(Hh,{visible:!0,motionAppear:!0,motionName:"wave-motion",motionDeadline:5e3,onAppearEnd:(P,R)=>{var N,I;if(R.deadline||R.propertyName==="opacity"){const $=(N=i.current)===null||N===void 0?void 0:N.parentElement;(I=s.current)===null||I===void 0||I.call(s).then(()=>{$?.remove()})}return!1}},({className:P},R)=>E.createElement("div",{ref:mv(i,R),className:Te(e,P,{"wave-quick":T}),style:M}))},FK=(n,e)=>{var t;const{component:r}=e;if(r==="Checkbox"&&!(!((t=n.querySelector("input"))===null||t===void 0)&&t.checked))return;const a=document.createElement("div");a.style.position="absolute",a.style.left="0px",a.style.top="0px",n?.insertBefore(a,n?.firstChild);const i=zY();let s=null;function o(){return s}s=i(E.createElement($K,Object.assign({},e,{target:n,registerUnmount:o})),a)},kK=(n,e,t)=>{const{wave:r}=E.useContext(Tr),[,a,i]=Al(),s=cn(u=>{const d=n.current;if(r?.disabled||!d)return;const f=d.querySelector(`.${BY}`)||d,{showEffect:g}=r||{};(g||FK)(f,{className:e,token:a,component:t,event:u,hashId:i})}),o=E.useRef(null);return u=>{Wr.cancel(o.current),o.current=Wr(()=>{s(u)})}},HK=n=>{const{children:e,disabled:t,component:r}=n,{getPrefixCls:a}=E.useContext(Tr),i=E.useRef(null),s=a("wave"),[,o]=LK(s),l=kK(i,Te(s,o),r);if(pe.useEffect(()=>{const d=i.current;if(!d||d.nodeType!==1||t)return;const f=g=>{!yM(g.target)||!d.getAttribute||d.getAttribute("disabled")||d.disabled||d.className.includes("disabled")||d.className.includes("-leave")||l(g)};return d.addEventListener("click",f,!0),()=>{d.removeEventListener("click",f,!0)}},[t]),!pe.isValidElement(e))return e??null;const u=$h(e)?mv(bv(e),i):i;return TY(e,{ref:u})},xM=n=>{const e=pe.useContext(uu);return pe.useMemo(()=>n?typeof n=="string"?n??e:typeof n=="function"?n(e):e:e,[n,e])},YY=E.createContext(null),wM=(n,e)=>{const t=E.useContext(YY),r=E.useMemo(()=>{if(!t)return"";const{compactDirection:a,isFirstItem:i,isLastItem:s}=t,o=a==="vertical"?"-vertical-":"-";return Te(`${n}-compact${o}item`,{[`${n}-compact${o}first-item`]:i,[`${n}-compact${o}last-item`]:s,[`${n}-compact${o}item-rtl`]:e==="rtl"})},[n,e,t]);return{compactSize:t?.compactSize,compactDirection:t?.compactDirection,compactItemClassnames:r}},zK=n=>{const{children:e}=n;return E.createElement(YY.Provider,{value:null},e)};var BK=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a<r.length;a++)e.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(n,r[a])&&(t[r[a]]=n[r[a]]);return t};const jY=E.createContext(void 0),YK=n=>{const{getPrefixCls:e,direction:t}=E.useContext(Tr),{prefixCls:r,size:a,className:i}=n,s=BK(n,["prefixCls","size","className"]),o=e("btn-group",r),[,,l]=Al(),u=E.useMemo(()=>{switch(a){case"large":return"lg";case"small":return"sm";default:return""}},[a]),d=Te(o,{[`${o}-${u}`]:u,[`${o}-rtl`]:t==="rtl"},i,l);return E.createElement(jY.Provider,{value:a},E.createElement("div",Object.assign({},s,{className:d})))},CP=/^[\u4E00-\u9FA5]{2}$/,HO=CP.test.bind(CP);function OP(n){return typeof n=="string"}function Oy(n){return n==="text"||n==="link"}function jK(n,e){if(n==null)return;const t=e?" ":"";return typeof n!="string"&&typeof n!="number"&&OP(n.type)&&HO(n.props.children)?TY(n,{children:n.props.children.split("").join(t)}):OP(n)?HO(n)?pe.createElement("span",null,n.split("").join(t)):pe.createElement("span",null,n):BQ(n)?pe.createElement("span",null,n):n}function WK(n,e){let t=!1;const r=[];return pe.Children.forEach(n,a=>{const i=typeof a,s=i==="string"||i==="number";if(t&&s){const o=r.length-1,l=r[o];r[o]=`${l}${a}`}else r.push(a);t=s}),pe.Children.map(r,a=>jK(a,e))}["default","primary","danger"].concat(je(fM));const zO=E.forwardRef((n,e)=>{const{className:t,style:r,children:a,prefixCls:i}=n,s=Te(`${i}-icon`,t);return pe.createElement("span",{ref:e,className:s,style:r},a)}),EP=E.forwardRef((n,e)=>{const{prefixCls:t,className:r,style:a,iconClassName:i}=n,s=Te(`${t}-loading-icon`,r);return pe.createElement(zO,{prefixCls:t,className:s,style:a,ref:e},pe.createElement(pM,{className:i}))}),Ey=()=>({width:0,opacity:0,transform:"scale(0)"}),My=n=>({width:n.scrollWidth,opacity:1,transform:"scale(1)"}),qK=n=>{const{prefixCls:e,loading:t,existIcon:r,className:a,style:i,mount:s}=n,o=!!t;return r?pe.createElement(EP,{prefixCls:e,className:a,style:i}):pe.createElement(Hh,{visible:o,motionName:`${e}-loading-icon-motion`,motionAppear:!s,motionEnter:!s,motionLeave:!s,removeOnLeave:!0,onAppearStart:Ey,onAppearActive:My,onEnterStart:Ey,onEnterActive:My,onLeaveStart:My,onLeaveActive:Ey},({className:l,style:u},d)=>{const f=Object.assign(Object.assign({},i),u);return pe.createElement(EP,{prefixCls:e,className:Te(a,l),style:f,ref:d})})},MP=(n,e)=>({[`> span, > ${n}`]:{"&:not(:last-child)":{[`&, & > ${n}`]:{"&:not(:disabled)":{borderInlineEndColor:e}}},"&:not(:first-child)":{[`&, & > ${n}`]:{"&:not(:disabled)":{borderInlineStartColor:e}}}}}),XK=n=>{const{componentCls:e,fontSize:t,lineWidth:r,groupBorderColor:a,colorErrorHover:i}=n;return{[`${e}-group`]:[{position:"relative",display:"inline-flex",[`> span, > ${e}`]:{"&:not(:last-child)":{[`&, & > ${e}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},"&:not(:first-child)":{marginInlineStart:n.calc(r).mul(-1).equal(),[`&, & > ${e}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}},[e]:{position:"relative",zIndex:1,"&:hover, &:focus, &:active":{zIndex:2},"&[disabled]":{zIndex:0}},[`${e}-icon-only`]:{fontSize:t}},MP(`${e}-primary`,a),MP(`${e}-danger`,i)]}};var VK=["b"],UK=["v"],Dy=function(e){return Math.round(Number(e||0))},GK=function(e){if(e instanceof Rn)return e;if(e&&vt(e)==="object"&&"h"in e&&"b"in e){var t=e,r=t.b,a=zn(t,VK);return se(se({},a),{},{v:r})}return typeof e=="string"&&/hsb/.test(e)?e.replace(/hsb/,"hsv"):e},fh=(function(n){Co(t,n);var e=Oo(t);function t(r){return xr(this,t),e.call(this,GK(r))}return wr(t,[{key:"toHsbString",value:function(){var a=this.toHsb(),i=Dy(a.s*100),s=Dy(a.b*100),o=Dy(a.h),l=a.a,u="hsb(".concat(o,", ").concat(i,"%, ").concat(s,"%)"),d="hsba(".concat(o,", ").concat(i,"%, ").concat(s,"%, ").concat(l.toFixed(l===0?0:2),")");return l===1?u:d}},{key:"toHsb",value:function(){var a=this.toHsv(),i=a.v,s=zn(a,UK);return se(se({},s),{},{b:i,a:this.a})}}]),t})(Rn),ZK=function(e){return e instanceof fh?e:new fh(e)};ZK("#1677ff");const QK=(n,e)=>n?.replace(/[^\w/]/g,"").slice(0,e?8:6)||"",KK=(n,e)=>n?QK(n,e):"";let JK=(function(){function n(e){xr(this,n);var t;if(this.cleared=!1,e instanceof n){this.metaColor=e.metaColor.clone(),this.colors=(t=e.colors)===null||t===void 0?void 0:t.map(a=>({color:new n(a.color),percent:a.percent})),this.cleared=e.cleared;return}const r=Array.isArray(e);r&&e.length?(this.colors=e.map(({color:a,percent:i})=>({color:new n(a),percent:i})),this.metaColor=new fh(this.colors[0].color.metaColor)):this.metaColor=new fh(r?"":e),(!e||r&&!this.colors)&&(this.metaColor=this.metaColor.setA(0),this.cleared=!0)}return wr(n,[{key:"toHsb",value:function(){return this.metaColor.toHsb()}},{key:"toHsbString",value:function(){return this.metaColor.toHsbString()}},{key:"toHex",value:function(){return KK(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:t}=this;return t?`linear-gradient(90deg, ${t.map(a=>`${a.color.toRgbString()} ${a.percent}%`).join(", ")})`:this.metaColor.toRgbString()}},{key:"equals",value:function(t){return!t||this.isGradient()!==t.isGradient()?!1:this.isGradient()?this.colors.length===t.colors.length&&this.colors.every((r,a)=>{const i=t.colors[a];return r.percent===i.percent&&r.color.equals(i.color)}):this.toHexString()===t.toHexString()}}])})();const eJ=n=>({animationDuration:n,animationFillMode:"both"}),tJ=n=>({animationDuration:n,animationFillMode:"both"}),WY=(n,e,t,r,a=!1)=>{const i=a?"&":"";return{[`
      ${i}${n}-enter,
      ${i}${n}-appear
    `]:Object.assign(Object.assign({},eJ(r)),{animationPlayState:"paused"}),[`${i}${n}-leave`]:Object.assign(Object.assign({},tJ(r)),{animationPlayState:"paused"}),[`
      ${i}${n}-enter${n}-enter-active,
      ${i}${n}-appear${n}-appear-active
    `]:{animationName:e,animationPlayState:"running"},[`${i}${n}-leave${n}-leave-active`]:{animationName:t,animationPlayState:"running",pointerEvents:"none"}}},nJ=new Ar("antMoveDownIn",{"0%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),rJ=new Ar("antMoveDownOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, 100%, 0)",transformOrigin:"0 0",opacity:0}}),aJ=new Ar("antMoveLeftIn",{"0%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),iJ=new Ar("antMoveLeftOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(-100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),sJ=new Ar("antMoveRightIn",{"0%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),oJ=new Ar("antMoveRightOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(100%, 0, 0)",transformOrigin:"0 0",opacity:0}}),lJ=new Ar("antMoveUpIn",{"0%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0},"100%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1}}),cJ=new Ar("antMoveUpOut",{"0%":{transform:"translate3d(0, 0, 0)",transformOrigin:"0 0",opacity:1},"100%":{transform:"translate3d(0, -100%, 0)",transformOrigin:"0 0",opacity:0}}),uJ={"move-up":{inKeyframes:lJ,outKeyframes:cJ},"move-down":{inKeyframes:nJ,outKeyframes:rJ},"move-left":{inKeyframes:aJ,outKeyframes:iJ},"move-right":{inKeyframes:sJ,outKeyframes:oJ}},DP=(n,e)=>{const{antCls:t}=n,r=`${t}-${e}`,{inKeyframes:a,outKeyframes:i}=uJ[e];return[WY(r,a,i,n.motionDurationMid),{[`
        ${r}-enter,
        ${r}-appear
      `]:{opacity:0,animationTimingFunction:n.motionEaseOutCirc},[`${r}-leave`]:{animationTimingFunction:n.motionEaseInOutCirc}}]},qY=new Ar("antSlideUpIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1}}),XY=new Ar("antSlideUpOut",{"0%":{transform:"scaleY(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"0% 0%",opacity:0}}),VY=new Ar("antSlideDownIn",{"0%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0},"100%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1}}),UY=new Ar("antSlideDownOut",{"0%":{transform:"scaleY(1)",transformOrigin:"100% 100%",opacity:1},"100%":{transform:"scaleY(0.8)",transformOrigin:"100% 100%",opacity:0}}),dJ=new Ar("antSlideLeftIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1}}),fJ=new Ar("antSlideLeftOut",{"0%":{transform:"scaleX(1)",transformOrigin:"0% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"0% 0%",opacity:0}}),hJ=new Ar("antSlideRightIn",{"0%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0},"100%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1}}),gJ=new Ar("antSlideRightOut",{"0%":{transform:"scaleX(1)",transformOrigin:"100% 0%",opacity:1},"100%":{transform:"scaleX(0.8)",transformOrigin:"100% 0%",opacity:0}}),pJ={"slide-up":{inKeyframes:qY,outKeyframes:XY},"slide-down":{inKeyframes:VY,outKeyframes:UY},"slide-left":{inKeyframes:dJ,outKeyframes:fJ},"slide-right":{inKeyframes:hJ,outKeyframes:gJ}},_P=(n,e)=>{const{antCls:t}=n,r=`${t}-${e}`,{inKeyframes:a,outKeyframes:i}=pJ[e];return[WY(r,a,i,n.motionDurationMid),{[`
      ${r}-enter,
      ${r}-appear
    `]:{transform:"scale(0)",transformOrigin:"0% 0%",opacity:0,animationTimingFunction:n.motionEaseOutQuint,"&-prepare":{transform:"scale(1)"}},[`${r}-leave`]:{animationTimingFunction:n.motionEaseInQuint}}]},mJ=(n,e)=>{const{r:t,g:r,b:a,a:i}=n.toRgb(),s=new fh(n.toRgbString()).onBackground(e).toHsv();return i<=.5?s.v>.5:t*.299+r*.587+a*.114>192},GY=n=>{const{paddingInline:e,onlyIconSize:t}=n;return Ca(n,{buttonPaddingHorizontal:e,buttonPaddingVertical:0,buttonIconOnlyFontSize:t})},ZY=n=>{var e,t,r,a,i,s;const o=(e=n.contentFontSize)!==null&&e!==void 0?e:n.fontSize,l=(t=n.contentFontSizeSM)!==null&&t!==void 0?t:n.fontSize,u=(r=n.contentFontSizeLG)!==null&&r!==void 0?r:n.fontSizeLG,d=(a=n.contentLineHeight)!==null&&a!==void 0?a:ym(o),f=(i=n.contentLineHeightSM)!==null&&i!==void 0?i:ym(l),g=(s=n.contentLineHeightLG)!==null&&s!==void 0?s:ym(u),p=mJ(new JK(n.colorBgSolid),"#fff")?"#000":"#fff",b=fM.reduce((y,x)=>Object.assign(Object.assign({},y),{[`${x}ShadowColor`]:`0 ${Ze(n.controlOutlineWidth)} 0 ${Nf(n[`${x}1`],n.colorBgContainer)}`}),{});return Object.assign(Object.assign({},b),{fontWeight:400,iconGap:n.marginXS,defaultShadow:`0 ${n.controlOutlineWidth}px 0 ${n.controlTmpOutline}`,primaryShadow:`0 ${n.controlOutlineWidth}px 0 ${n.controlOutline}`,dangerShadow:`0 ${n.controlOutlineWidth}px 0 ${n.colorErrorOutline}`,primaryColor:n.colorTextLightSolid,dangerColor:n.colorTextLightSolid,borderColorDisabled:n.colorBorder,defaultGhostColor:n.colorBgContainer,ghostBg:"transparent",defaultGhostBorderColor:n.colorBgContainer,paddingInline:n.paddingContentHorizontal-n.lineWidth,paddingInlineLG:n.paddingContentHorizontal-n.lineWidth,paddingInlineSM:8-n.lineWidth,onlyIconSize:"inherit",onlyIconSizeSM:"inherit",onlyIconSizeLG:"inherit",groupBorderColor:n.colorPrimaryHover,linkHoverBg:"transparent",textTextColor:n.colorText,textTextHoverColor:n.colorText,textTextActiveColor:n.colorText,textHoverBg:n.colorFillTertiary,defaultColor:n.colorText,defaultBg:n.colorBgContainer,defaultBorderColor:n.colorBorder,defaultBorderColorDisabled:n.colorBorder,defaultHoverBg:n.colorBgContainer,defaultHoverColor:n.colorPrimaryHover,defaultHoverBorderColor:n.colorPrimaryHover,defaultActiveBg:n.colorBgContainer,defaultActiveColor:n.colorPrimaryActive,defaultActiveBorderColor:n.colorPrimaryActive,solidTextColor:p,contentFontSize:o,contentFontSizeSM:l,contentFontSizeLG:u,contentLineHeight:d,contentLineHeightSM:f,contentLineHeightLG:g,paddingBlock:Math.max((n.controlHeight-o*d)/2-n.lineWidth,0),paddingBlockSM:Math.max((n.controlHeightSM-l*f)/2-n.lineWidth,0),paddingBlockLG:Math.max((n.controlHeightLG-u*g)/2-n.lineWidth,0)})},vJ=n=>{const{componentCls:e,iconCls:t,fontWeight:r,opacityLoading:a,motionDurationSlow:i,motionEaseInOut:s,iconGap:o,calc:l}=n;return{[e]:{outline:"none",position:"relative",display:"inline-flex",gap:o,alignItems:"center",justifyContent:"center",fontWeight:r,whiteSpace:"nowrap",textAlign:"center",backgroundImage:"none",background:"transparent",border:`${Ze(n.lineWidth)} ${n.lineType} transparent`,cursor:"pointer",transition:`all ${n.motionDurationMid} ${n.motionEaseInOut}`,userSelect:"none",touchAction:"manipulation",color:n.colorText,"&:disabled > *":{pointerEvents:"none"},[`${e}-icon > svg`]:hM(),"> a":{color:"currentColor"},"&:not(:disabled)":_Z(n),[`&${e}-two-chinese-chars::first-letter`]:{letterSpacing:"0.34em"},[`&${e}-two-chinese-chars > *:not(${t})`]:{marginInlineEnd:"-0.34em",letterSpacing:"0.34em"},[`&${e}-icon-only`]:{paddingInline:0,[`&${e}-compact-item`]:{flex:"none"},[`&${e}-round`]:{width:"auto"}},[`&${e}-loading`]:{opacity:a,cursor:"default"},[`${e}-loading-icon`]:{transition:["width","opacity","margin"].map(u=>`${u} ${i} ${s}`).join(",")},[`&:not(${e}-icon-end)`]:{[`${e}-loading-icon-motion`]:{"&-appear-start, &-enter-start":{marginInlineEnd:l(o).mul(-1).equal()},"&-appear-active, &-enter-active":{marginInlineEnd:0},"&-leave-start":{marginInlineEnd:0},"&-leave-active":{marginInlineEnd:l(o).mul(-1).equal()}}},"&-icon-end":{flexDirection:"row-reverse",[`${e}-loading-icon-motion`]:{"&-appear-start, &-enter-start":{marginInlineStart:l(o).mul(-1).equal()},"&-appear-active, &-enter-active":{marginInlineStart:0},"&-leave-start":{marginInlineStart:0},"&-leave-active":{marginInlineStart:l(o).mul(-1).equal()}}}}}},QY=(n,e,t)=>({[`&:not(:disabled):not(${n}-disabled)`]:{"&:hover":e,"&:active":t}}),bJ=n=>({minWidth:n.controlHeight,paddingInline:0,borderRadius:"50%"}),yJ=n=>{var e;return{borderRadius:n.controlHeight,paddingInline:(e=n.paddingInline)!==null&&e!==void 0?e:n.calc(n.controlHeight).div(2).equal()}},xJ=n=>({cursor:"not-allowed",borderColor:n.borderColorDisabled,color:n.colorTextDisabled,background:n.colorBgContainerDisabled,boxShadow:"none"}),Dv=(n,e,t,r,a,i,s,o)=>({[`&${n}-background-ghost`]:Object.assign(Object.assign({color:t||void 0,background:e,borderColor:r||void 0,boxShadow:"none"},QY(n,Object.assign({background:e},s),Object.assign({background:e},o))),{"&:disabled":{cursor:"not-allowed",color:a||void 0,borderColor:i||void 0}})}),wJ=n=>({[`&:disabled, &${n.componentCls}-disabled`]:Object.assign({},xJ(n))}),SJ=n=>({[`&:disabled, &${n.componentCls}-disabled`]:{cursor:"not-allowed",color:n.colorTextDisabled}}),_v=(n,e,t,r)=>{const i=r&&["link","text"].includes(r)?SJ:wJ;return Object.assign(Object.assign({},i(n)),QY(n.componentCls,e,t))},Av=(n,e,t,r,a)=>({[`&${n.componentCls}-variant-solid`]:Object.assign({color:e,background:t},_v(n,r,a))}),Tv=(n,e,t,r,a)=>({[`&${n.componentCls}-variant-outlined, &${n.componentCls}-variant-dashed`]:Object.assign({borderColor:e,background:t},_v(n,r,a))}),Rv=n=>({[`&${n.componentCls}-variant-dashed`]:{borderStyle:"dashed"}}),Pv=(n,e,t,r)=>({[`&${n.componentCls}-variant-filled`]:Object.assign({boxShadow:"none",background:e},_v(n,t,r))}),Xi=(n,e,t,r,a)=>({[`&${n.componentCls}-variant-${t}`]:Object.assign({color:e,boxShadow:"none"},_v(n,r,a,t))}),CJ=n=>{const{componentCls:e}=n;return fM.reduce((t,r)=>{const a=n[`${r}6`],i=n[`${r}1`],s=n[`${r}5`],o=n[`${r}2`],l=n[`${r}3`],u=n[`${r}7`];return Object.assign(Object.assign({},t),{[`&${e}-color-${r}`]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:a,boxShadow:n[`${r}ShadowColor`]},Av(n,n.colorTextLightSolid,a,{background:s},{background:u})),Tv(n,a,n.colorBgContainer,{color:s,borderColor:s,background:n.colorBgContainer},{color:u,borderColor:u,background:n.colorBgContainer})),Rv(n)),Pv(n,i,{color:a,background:o},{color:a,background:l})),Xi(n,a,"link",{color:s},{color:u})),Xi(n,a,"text",{color:s,background:i},{color:u,background:l}))})},{})},OJ=n=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:n.defaultColor,boxShadow:n.defaultShadow},Av(n,n.solidTextColor,n.colorBgSolid,{color:n.solidTextColor,background:n.colorBgSolidHover},{color:n.solidTextColor,background:n.colorBgSolidActive})),Rv(n)),Pv(n,n.colorFillTertiary,{color:n.defaultColor,background:n.colorFillSecondary},{color:n.defaultColor,background:n.colorFill})),Dv(n.componentCls,n.ghostBg,n.defaultGhostColor,n.defaultGhostBorderColor,n.colorTextDisabled,n.colorBorder)),Xi(n,n.textTextColor,"link",{color:n.colorLinkHover,background:n.linkHoverBg},{color:n.colorLinkActive})),EJ=n=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:n.colorPrimary,boxShadow:n.primaryShadow},Tv(n,n.colorPrimary,n.colorBgContainer,{color:n.colorPrimaryTextHover,borderColor:n.colorPrimaryHover,background:n.colorBgContainer},{color:n.colorPrimaryTextActive,borderColor:n.colorPrimaryActive,background:n.colorBgContainer})),Rv(n)),Pv(n,n.colorPrimaryBg,{color:n.colorPrimary,background:n.colorPrimaryBgHover},{color:n.colorPrimary,background:n.colorPrimaryBorder})),Xi(n,n.colorPrimaryText,"text",{color:n.colorPrimaryTextHover,background:n.colorPrimaryBg},{color:n.colorPrimaryTextActive,background:n.colorPrimaryBorder})),Xi(n,n.colorPrimaryText,"link",{color:n.colorPrimaryTextHover,background:n.linkHoverBg},{color:n.colorPrimaryTextActive})),Dv(n.componentCls,n.ghostBg,n.colorPrimary,n.colorPrimary,n.colorTextDisabled,n.colorBorder,{color:n.colorPrimaryHover,borderColor:n.colorPrimaryHover},{color:n.colorPrimaryActive,borderColor:n.colorPrimaryActive})),MJ=n=>Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({color:n.colorError,boxShadow:n.dangerShadow},Av(n,n.dangerColor,n.colorError,{background:n.colorErrorHover},{background:n.colorErrorActive})),Tv(n,n.colorError,n.colorBgContainer,{color:n.colorErrorHover,borderColor:n.colorErrorBorderHover},{color:n.colorErrorActive,borderColor:n.colorErrorActive})),Rv(n)),Pv(n,n.colorErrorBg,{color:n.colorError,background:n.colorErrorBgFilledHover},{color:n.colorError,background:n.colorErrorBgActive})),Xi(n,n.colorError,"text",{color:n.colorErrorHover,background:n.colorErrorBg},{color:n.colorErrorHover,background:n.colorErrorBgActive})),Xi(n,n.colorError,"link",{color:n.colorErrorHover},{color:n.colorErrorActive})),Dv(n.componentCls,n.ghostBg,n.colorError,n.colorError,n.colorTextDisabled,n.colorBorder,{color:n.colorErrorHover,borderColor:n.colorErrorHover},{color:n.colorErrorActive,borderColor:n.colorErrorActive})),DJ=n=>Object.assign(Object.assign({},Xi(n,n.colorLink,"link",{color:n.colorLinkHover},{color:n.colorLinkActive})),Dv(n.componentCls,n.ghostBg,n.colorInfo,n.colorInfo,n.colorTextDisabled,n.colorBorder,{color:n.colorInfoHover,borderColor:n.colorInfoHover},{color:n.colorInfoActive,borderColor:n.colorInfoActive})),_J=n=>{const{componentCls:e}=n;return Object.assign({[`${e}-color-default`]:OJ(n),[`${e}-color-primary`]:EJ(n),[`${e}-color-dangerous`]:MJ(n),[`${e}-color-link`]:DJ(n)},CJ(n))},AJ=n=>Object.assign(Object.assign(Object.assign(Object.assign({},Tv(n,n.defaultBorderColor,n.defaultBg,{color:n.defaultHoverColor,borderColor:n.defaultHoverBorderColor,background:n.defaultHoverBg},{color:n.defaultActiveColor,borderColor:n.defaultActiveBorderColor,background:n.defaultActiveBg})),Xi(n,n.textTextColor,"text",{color:n.textTextHoverColor,background:n.textHoverBg},{color:n.textTextActiveColor,background:n.colorBgTextActive})),Av(n,n.primaryColor,n.colorPrimary,{background:n.colorPrimaryHover,color:n.primaryColor},{background:n.colorPrimaryActive,color:n.primaryColor})),Xi(n,n.colorLink,"link",{color:n.colorLinkHover,background:n.linkHoverBg},{color:n.colorLinkActive})),SM=(n,e="")=>{const{componentCls:t,controlHeight:r,fontSize:a,borderRadius:i,buttonPaddingHorizontal:s,iconCls:o,buttonPaddingVertical:l,buttonIconOnlyFontSize:u}=n;return[{[e]:{fontSize:a,height:r,padding:`${Ze(l)} ${Ze(s)}`,borderRadius:i,[`&${t}-icon-only`]:{width:r,[o]:{fontSize:u}}}},{[`${t}${t}-circle${e}`]:bJ(n)},{[`${t}${t}-round${e}`]:yJ(n)}]},TJ=n=>{const e=Ca(n,{fontSize:n.contentFontSize});return SM(e,n.componentCls)},RJ=n=>{const e=Ca(n,{controlHeight:n.controlHeightSM,fontSize:n.contentFontSizeSM,padding:n.paddingXS,buttonPaddingHorizontal:n.paddingInlineSM,buttonPaddingVertical:0,borderRadius:n.borderRadiusSM,buttonIconOnlyFontSize:n.onlyIconSizeSM});return SM(e,`${n.componentCls}-sm`)},PJ=n=>{const e=Ca(n,{controlHeight:n.controlHeightLG,fontSize:n.contentFontSizeLG,buttonPaddingHorizontal:n.paddingInlineLG,buttonPaddingVertical:0,borderRadius:n.borderRadiusLG,buttonIconOnlyFontSize:n.onlyIconSizeLG});return SM(e,`${n.componentCls}-lg`)},LJ=n=>{const{componentCls:e}=n;return{[e]:{[`&${e}-block`]:{width:"100%"}}}},NJ=kh("Button",n=>{const e=GY(n);return[vJ(e),TJ(e),RJ(e),PJ(e),LJ(e),_J(e),AJ(e),XK(e)]},ZY,{unitless:{fontWeight:!0,contentLineHeight:!0,contentLineHeightSM:!0,contentLineHeightLG:!0}});function IJ(n,e,t,r){const{focusElCls:a,focus:i,borderElCls:s}=t,o=s?"> *":"",l=["hover",i?"focus":null,"active"].filter(Boolean).map(u=>`&:${u} ${o}`).join(",");return{[`&-item:not(${e}-last-item)`]:{marginInlineEnd:n.calc(n.lineWidth).mul(-1).equal()},[`&-item:not(${r}-status-success)`]:{zIndex:2},"&-item":Object.assign(Object.assign({[l]:{zIndex:3}},a?{[`&${a}`]:{zIndex:3}}:{}),{[`&[disabled] ${o}`]:{zIndex:0}})}}function $J(n,e,t){const{borderElCls:r}=t,a=r?`> ${r}`:"";return{[`&-item:not(${e}-first-item):not(${e}-last-item) ${a}`]:{borderRadius:0},[`&-item:not(${e}-last-item)${e}-first-item`]:{[`& ${a}, &${n}-sm ${a}, &${n}-lg ${a}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&-item:not(${e}-first-item)${e}-last-item`]:{[`& ${a}, &${n}-sm ${a}, &${n}-lg ${a}`]:{borderStartStartRadius:0,borderEndStartRadius:0}}}}function CM(n,e={focus:!0}){const{componentCls:t}=n,r=`${t}-compact`;return{[r]:Object.assign(Object.assign({},IJ(n,r,e,t)),$J(t,r,e))}}function FJ(n,e,t){return{[`&-item:not(${e}-last-item)`]:{marginBottom:n.calc(n.lineWidth).mul(-1).equal()},[`&-item:not(${t}-status-success)`]:{zIndex:2},"&-item":{"&:hover,&:focus,&:active":{zIndex:3},"&[disabled]":{zIndex:0}}}}function kJ(n,e){return{[`&-item:not(${e}-first-item):not(${e}-last-item)`]:{borderRadius:0},[`&-item${e}-first-item:not(${e}-last-item)`]:{[`&, &${n}-sm, &${n}-lg`]:{borderEndEndRadius:0,borderEndStartRadius:0}},[`&-item${e}-last-item:not(${e}-first-item)`]:{[`&, &${n}-sm, &${n}-lg`]:{borderStartStartRadius:0,borderStartEndRadius:0}}}}function HJ(n){const e=`${n.componentCls}-compact-vertical`;return{[e]:Object.assign(Object.assign({},FJ(n,e,n.componentCls)),kJ(n.componentCls,e))}}const zJ=n=>{const{componentCls:e,colorPrimaryHover:t,lineWidth:r,calc:a}=n,i=a(r).mul(-1).equal(),s=o=>{const l=`${e}-compact${o?"-vertical":""}-item${e}-primary:not([disabled])`;return{[`${l} + ${l}::before`]:{position:"absolute",top:o?i:0,insetInlineStart:o?0:i,backgroundColor:t,content:'""',width:o?"100%":r,height:o?r:"100%"}}};return Object.assign(Object.assign({},s()),s(!0))},BJ=TZ(["Button","compact"],n=>{const e=GY(n);return[CM(e),HJ(e),zJ(e)]},ZY);var YJ=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a<r.length;a++)e.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(n,r[a])&&(t[r[a]]=n[r[a]]);return t};function jJ(n){if(typeof n=="object"&&n){let e=n?.delay;return e=!Number.isNaN(e)&&typeof e=="number"?e:0,{loading:e<=0,delay:e}}return{loading:!!n,delay:0}}const WJ={default:["default","outlined"],primary:["primary","solid"],dashed:["default","dashed"],link:["link","link"],text:["default","text"]},qJ=pe.forwardRef((n,e)=>{var t,r;const{loading:a=!1,prefixCls:i,color:s,variant:o,type:l,danger:u=!1,shape:d,size:f,styles:g,disabled:p,className:b,rootClassName:y,children:x,icon:S,iconPosition:C="start",ghost:O=!1,block:D=!1,htmlType:M="button",classNames:A,style:T={},autoInsertSpace:P,autoFocus:R}=n,N=YJ(n,["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:$}=pe.useContext(Tr),Y=d||$?.shape||"default",[k,H]=E.useMemo(()=>{if(s&&o)return[s,o];if(l||u){const we=WJ[I]||[];return u?["danger",we[1]]:we}return $?.color&&$?.variant?[$.color,$.variant]:["default","outlined"]},[l,s,o,u,$?.variant,$?.color]),B=k==="danger"?"dangerous":k,{getPrefixCls:X,direction:Q,autoInsertSpace:z,className:V,style:j,classNames:q,styles:G}=rY("button"),U=(t=P??z)!==null&&t!==void 0?t:!0,K=X("btn",i),[te,ne,ie]=NJ(K),ce=E.useContext(cu),ue=p??ce,be=E.useContext(jY),me=E.useMemo(()=>jJ(a),[a]),[ye,De]=E.useState(me.loading),[Ce,Le]=E.useState(!1),Ne=E.useRef(null),Ve=vv(e,Ne),ze=E.Children.count(x)===1&&!S&&!Oy(H),$e=E.useRef(!0);pe.useEffect(()=>($e.current=!1,()=>{$e.current=!0}),[]),$n(()=>{let we=null;me.delay>0?we=setTimeout(()=>{we=null,De(!0)},me.delay):De(me.loading);function Ie(){we&&(clearTimeout(we),we=null)}return Ie},[me.delay,me.loading]),E.useEffect(()=>{if(!Ne.current||!U)return;const we=Ne.current.textContent||"";ze&&HO(we)?Ce||Le(!0):Ce&&Le(!1)}),E.useEffect(()=>{R&&Ne.current&&Ne.current.focus()},[]);const Be=pe.useCallback(we=>{var Ie;if(ye||ue){we.preventDefault();return}(Ie=n.onClick)===null||Ie===void 0||Ie.call(n,("href"in n,we))},[n.onClick,ye,ue]),{compactSize:ut,compactItemClassnames:He}=wM(K,Q),Qe={large:"lg",small:"sm",middle:void 0},Ee=xM(we=>{var Ie,Dt;return(Dt=(Ie=f??ut)!==null&&Ie!==void 0?Ie:be)!==null&&Dt!==void 0?Dt:we}),st=Ee&&(r=Qe[Ee])!==null&&r!==void 0?r:"",ht=ye?"loading":S,at=bM(N,["navigate"]),Ut=Te(K,ne,ie,{[`${K}-${Y}`]:Y!=="default"&&Y,[`${K}-${I}`]:I,[`${K}-dangerous`]:u,[`${K}-color-${B}`]:B,[`${K}-variant-${H}`]:H,[`${K}-${st}`]:st,[`${K}-icon-only`]:!x&&x!==0&&!!ht,[`${K}-background-ghost`]:O&&!Oy(H),[`${K}-loading`]:ye,[`${K}-two-chinese-chars`]:Ce&&U&&!ye,[`${K}-block`]:D,[`${K}-rtl`]:Q==="rtl",[`${K}-icon-end`]:C==="end"},He,b,y,V),Nt=Object.assign(Object.assign({},j),T),Ue=Te(A?.icon,q.icon),yt=Object.assign(Object.assign({},g?.icon||{}),G.icon||{}),Pe=S&&!ye?pe.createElement(zO,{prefixCls:K,className:Ue,style:yt},S):a&&typeof a=="object"&&a.icon?pe.createElement(zO,{prefixCls:K,className:Ue,style:yt},a.icon):pe.createElement(qK,{existIcon:!!S,prefixCls:K,loading:ye,mount:$e.current}),Fe=x||x===0?WK(x,ze&&U):null;if(at.href!==void 0)return te(pe.createElement("a",Object.assign({},at,{className:Te(Ut,{[`${K}-disabled`]:ue}),href:ue?void 0:at.href,style:Nt,onClick:Be,ref:Ve,tabIndex:ue?-1:0,"aria-disabled":ue}),Pe,Fe));let We=pe.createElement("button",Object.assign({},N,{type:M,className:Ut,style:Nt,onClick:Be,disabled:ue,ref:Ve}),Pe,Fe,He&&pe.createElement(BJ,{prefixCls:K}));return Oy(H)||(We=pe.createElement(HK,{component:"Button",disabled:ye},We)),te(We)}),OM=qJ;OM.Group=YK;OM.__ANT_BUTTON=!0;var KY=E.createContext(null),AP=[];function XJ(n,e){var t=E.useState(function(){if(!ka())return null;var b=document.createElement("div");return b}),r=le(t,1),a=r[0],i=E.useRef(!1),s=E.useContext(KY),o=E.useState(AP),l=le(o,2),u=l[0],d=l[1],f=s||(i.current?void 0:function(b){d(function(y){var x=[b].concat(je(y));return x})});function g(){a.parentElement||document.body.appendChild(a),i.current=!0}function p(){var b;(b=a.parentElement)===null||b===void 0||b.removeChild(a),i.current=!1}return $n(function(){return n?s?s(g):g():p(),p},[n]),$n(function(){u.length&&(u.forEach(function(b){return b()}),d(AP))},[u]),[a,f]}function VJ(n){var e="rc-scrollbar-measure-".concat(Math.random().toString(36).substring(7)),t=document.createElement("div");t.id=e;var r=t.style;r.position="absolute",r.left="0",r.top="0",r.width="100px",r.height="100px",r.overflow="scroll";var a,i;if(n){var s=getComputedStyle(n);r.scrollbarColor=s.scrollbarColor,r.scrollbarWidth=s.scrollbarWidth;var o=getComputedStyle(n,"::-webkit-scrollbar"),l=parseInt(o.width,10),u=parseInt(o.height,10);try{var d=l?"width: ".concat(o.width,";"):"",f=u?"height: ".concat(o.height,";"):"";Os(`
#`.concat(e,`::-webkit-scrollbar {
`).concat(d,`
`).concat(f,`
}`),e)}catch(b){console.error(b),a=l,i=u}}document.body.appendChild(t);var g=n&&a&&!isNaN(a)?a:t.offsetWidth-t.clientWidth,p=n&&i&&!isNaN(i)?i:t.offsetHeight-t.clientHeight;return document.body.removeChild(t),sh(e),{width:g,height:p}}function UJ(n){return typeof document>"u"||!n||!(n instanceof Element)?{width:0,height:0}:VJ(n)}function GJ(){return document.body.scrollHeight>(window.innerHeight||document.documentElement.clientHeight)&&window.innerWidth>document.body.offsetWidth}var ZJ="rc-util-locker-".concat(Date.now()),TP=0;function QJ(n){var e=!!n,t=E.useState(function(){return TP+=1,"".concat(ZJ,"_").concat(TP)}),r=le(t,1),a=r[0];$n(function(){if(e){var i=UJ(document.body).width,s=GJ();Os(`
html body {
  overflow-y: hidden;
  `.concat(s?"width: calc(100% - ".concat(i,"px);"):"",`
}`),a)}else sh(a);return function(){sh(a)}},[e,a])}var KJ=!1;function JJ(n){return KJ}var RP=function(e){return e===!1?!1:!ka()||!e?null:typeof e=="string"?document.querySelector(e):typeof e=="function"?e():e},JY=E.forwardRef(function(n,e){var t=n.open,r=n.autoLock,a=n.getContainer;n.debug;var i=n.autoDestroy,s=i===void 0?!0:i,o=n.children,l=E.useState(t),u=le(l,2),d=u[0],f=u[1],g=d||t;E.useEffect(function(){(s||t)&&f(t)},[t,s]);var p=E.useState(function(){return RP(a)}),b=le(p,2),y=b[0],x=b[1];E.useEffect(function(){var I=RP(a);x(I??null)});var S=XJ(g&&!y),C=le(S,2),O=C[0],D=C[1],M=y??O;QJ(r&&t&&ka()&&(M===O||M===document.body));var A=null;if(o&&$h(o)&&e){var T=o;A=T.ref}var P=vv(A,e);if(!g||!ka()||y===void 0)return null;var R=M===!1||JJ(),N=o;return e&&(N=E.cloneElement(o,{ref:P})),E.createElement(KY.Provider,{value:D},R?N:Cs.createPortal(N,M))});function eee(){var n=se({},av);return n.useId}var PP=0,LP=eee();const tee=LP?(function(e){var t=LP();return e||t}):(function(e){var t=E.useState("ssr-id"),r=le(t,2),a=r[0],i=r[1];return E.useEffect(function(){var s=PP;PP+=1,i("rc_unique_".concat(s))},[]),e||a});var gl="RC_FORM_INTERNAL_HOOKS",Dn=function(){Sa(!1,"Can not find FormContext. Please make sure you wrap Field under Form.")},du=E.createContext({getFieldValue:Dn,getFieldsValue:Dn,getFieldError:Dn,getFieldWarning:Dn,getFieldsError:Dn,isFieldsTouched:Dn,isFieldTouched:Dn,isFieldValidating:Dn,isFieldsValidating:Dn,resetFields:Dn,setFields:Dn,setFieldValue:Dn,setFieldsValue:Dn,validateFields:Dn,submit:Dn,getInternalHooks:function(){return Dn(),{dispatch:Dn,initEntityValue:Dn,registerField:Dn,useSubscribe:Dn,setInitialValues:Dn,destroyForm:Dn,setCallbacks:Dn,registerWatch:Dn,getFields:Dn,setValidateMessages:Dn,setPreserve:Dn,getInitialValue:Dn}}}),Gm=E.createContext(null);function BO(n){return n==null?[]:Array.isArray(n)?n:[n]}function nee(n){return n&&!!n._init}function YO(){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 e=JSON.parse(JSON.stringify(this));return e.clone=this.clone,e}}}var jO=YO();function ree(n){try{return Function.toString.call(n).indexOf("[native code]")!==-1}catch{return typeof n=="function"}}function aee(n,e,t){if(nM())return Reflect.construct.apply(null,arguments);var r=[null];r.push.apply(r,e);var a=new(n.bind.apply(n,r));return t&&Vc(a,t.prototype),a}function WO(n){var e=typeof Map=="function"?new Map:void 0;return WO=function(r){if(r===null||!ree(r))return r;if(typeof r!="function")throw new TypeError("Super expression must either be null or a function");if(e!==void 0){if(e.has(r))return e.get(r);e.set(r,a)}function a(){return aee(r,arguments,ah(this).constructor)}return a.prototype=Object.create(r.prototype,{constructor:{value:a,enumerable:!1,writable:!0,configurable:!0}}),Vc(a,r)},WO(n)}var iee=/%[sdj%]/g,see=function(){};function qO(n){if(!n||!n.length)return null;var e={};return n.forEach(function(t){var r=t.field;e[r]=e[r]||[],e[r].push(t)}),e}function Na(n){for(var e=arguments.length,t=new Array(e>1?e-1:0),r=1;r<e;r++)t[r-1]=arguments[r];var a=0,i=t.length;if(typeof n=="function")return n.apply(null,t);if(typeof n=="string"){var s=n.replace(iee,function(o){if(o==="%%")return"%";if(a>=i)return o;switch(o){case"%s":return String(t[a++]);case"%d":return Number(t[a++]);case"%j":try{return JSON.stringify(t[a++])}catch{return"[Circular]"}break;default:return o}});return s}return n}function oee(n){return n==="string"||n==="url"||n==="hex"||n==="email"||n==="date"||n==="pattern"}function yr(n,e){return!!(n==null||e==="array"&&Array.isArray(n)&&!n.length||oee(e)&&typeof n=="string"&&!n)}function lee(n,e,t){var r=[],a=0,i=n.length;function s(o){r.push.apply(r,je(o||[])),a++,a===i&&t(r)}n.forEach(function(o){e(o,s)})}function NP(n,e,t){var r=0,a=n.length;function i(s){if(s&&s.length){t(s);return}var o=r;r=r+1,o<a?e(n[o],i):t([])}i([])}function cee(n){var e=[];return Object.keys(n).forEach(function(t){e.push.apply(e,je(n[t]||[]))}),e}var IP=(function(n){Co(t,n);var e=Oo(t);function t(r,a){var i;return xr(this,t),i=e.call(this,"Async Validation Error"),ae(kt(i),"errors",void 0),ae(kt(i),"fields",void 0),i.errors=r,i.fields=a,i}return wr(t)})(WO(Error));function uee(n,e,t,r,a){if(e.first){var i=new Promise(function(g,p){var b=function(S){return r(S),S.length?p(new IP(S,qO(S))):g(a)},y=cee(n);NP(y,t,b)});return i.catch(function(g){return g}),i}var s=e.firstFields===!0?Object.keys(n):e.firstFields||[],o=Object.keys(n),l=o.length,u=0,d=[],f=new Promise(function(g,p){var b=function(x){if(d.push.apply(d,x),u++,u===l)return r(d),d.length?p(new IP(d,qO(d))):g(a)};o.length||(r(d),g(a)),o.forEach(function(y){var x=n[y];s.indexOf(y)!==-1?NP(x,t,b):lee(x,t,b)})});return f.catch(function(g){return g}),f}function dee(n){return!!(n&&n.message!==void 0)}function fee(n,e){for(var t=n,r=0;r<e.length;r++){if(t==null)return t;t=t[e[r]]}return t}function $P(n,e){return function(t){var r;return n.fullFields?r=fee(e,n.fullFields):r=e[t.field||n.fullField],dee(t)?(t.field=t.field||n.fullField,t.fieldValue=r,t):{message:typeof t=="function"?t():t,fieldValue:r,field:t.field||n.fullField}}}function FP(n,e){if(e){for(var t in e)if(e.hasOwnProperty(t)){var r=e[t];vt(r)==="object"&&vt(n[t])==="object"?n[t]=se(se({},n[t]),r):n[t]=r}}return n}var Nc="enum",hee=function(e,t,r,a,i){e[Nc]=Array.isArray(e[Nc])?e[Nc]:[],e[Nc].indexOf(t)===-1&&a.push(Na(i.messages[Nc],e.fullField,e[Nc].join(", ")))},gee=function(e,t,r,a,i){if(e.pattern){if(e.pattern instanceof RegExp)e.pattern.lastIndex=0,e.pattern.test(t)||a.push(Na(i.messages.pattern.mismatch,e.fullField,t,e.pattern));else if(typeof e.pattern=="string"){var s=new RegExp(e.pattern);s.test(t)||a.push(Na(i.messages.pattern.mismatch,e.fullField,t,e.pattern))}}},pee=function(e,t,r,a,i){var s=typeof e.len=="number",o=typeof e.min=="number",l=typeof e.max=="number",u=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,d=t,f=null,g=typeof t=="number",p=typeof t=="string",b=Array.isArray(t);if(g?f="number":p?f="string":b&&(f="array"),!f)return!1;b&&(d=t.length),p&&(d=t.replace(u,"_").length),s?d!==e.len&&a.push(Na(i.messages[f].len,e.fullField,e.len)):o&&!l&&d<e.min?a.push(Na(i.messages[f].min,e.fullField,e.min)):l&&!o&&d>e.max?a.push(Na(i.messages[f].max,e.fullField,e.max)):o&&l&&(d<e.min||d>e.max)&&a.push(Na(i.messages[f].range,e.fullField,e.min,e.max))},e3=function(e,t,r,a,i,s){e.required&&(!r.hasOwnProperty(e.field)||yr(t,s||e.type))&&a.push(Na(i.messages.required,e.fullField))},lp;const mee=(function(){if(lp)return lp;var n="[a-fA-F\\d:]",e=function(A){return A&&A.includeBoundaries?"(?:(?<=\\s|^)(?=".concat(n,")|(?<=").concat(n,")(?=\\s|$))"):""},t="(?: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}",a=["(?:".concat(r,":){7}(?:").concat(r,"|:)"),"(?:".concat(r,":){6}(?:").concat(t,"|:").concat(r,"|:)"),"(?:".concat(r,":){5}(?::").concat(t,"|(?::").concat(r,"){1,2}|:)"),"(?:".concat(r,":){4}(?:(?::").concat(r,"){0,1}:").concat(t,"|(?::").concat(r,"){1,3}|:)"),"(?:".concat(r,":){3}(?:(?::").concat(r,"){0,2}:").concat(t,"|(?::").concat(r,"){1,4}|:)"),"(?:".concat(r,":){2}(?:(?::").concat(r,"){0,3}:").concat(t,"|(?::").concat(r,"){1,5}|:)"),"(?:".concat(r,":){1}(?:(?::").concat(r,"){0,4}:").concat(t,"|(?::").concat(r,"){1,6}|:)"),"(?::(?:(?::".concat(r,"){0,5}:").concat(t,"|(?::").concat(r,"){1,7}|:))")],i="(?:%[0-9a-zA-Z]{1,})?",s="(?:".concat(a.join("|"),")").concat(i),o=new RegExp("(?:^".concat(t,"$)|(?:^").concat(s,"$)")),l=new RegExp("^".concat(t,"$")),u=new RegExp("^".concat(s,"$")),d=function(A){return A&&A.exact?o:new RegExp("(?:".concat(e(A)).concat(t).concat(e(A),")|(?:").concat(e(A)).concat(s).concat(e(A),")"),"g")};d.v4=function(M){return M&&M.exact?l:new RegExp("".concat(e(M)).concat(t).concat(e(M)),"g")},d.v6=function(M){return M&&M.exact?u:new RegExp("".concat(e(M)).concat(s).concat(e(M)),"g")};var f="(?:(?:[a-z]+:)?//)",g="(?:\\S+(?::\\S*)?@)?",p=d.v4().source,b=d.v6().source,y="(?:(?:[a-z\\u00a1-\\uffff0-9][-_]*)*[a-z\\u00a1-\\uffff0-9]+)",x="(?:\\.(?:[a-z\\u00a1-\\uffff0-9]-*)*[a-z\\u00a1-\\uffff0-9]+)*",S="(?:\\.(?:[a-z\\u00a1-\\uffff]{2,}))",C="(?::\\d{2,5})?",O='(?:[/?#][^\\s"]*)?',D="(?:".concat(f,"|www\\.)").concat(g,"(?:localhost|").concat(p,"|").concat(b,"|").concat(y).concat(x).concat(S,")").concat(C).concat(O);return lp=new RegExp("(?:^".concat(D,"$)"),"i"),lp});var kP={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},If={integer:function(e){return If.number(e)&&parseInt(e,10)===e},float:function(e){return If.number(e)&&!If.integer(e)},array:function(e){return Array.isArray(e)},regexp:function(e){if(e instanceof RegExp)return!0;try{return!!new RegExp(e)}catch{return!1}},date:function(e){return typeof e.getTime=="function"&&typeof e.getMonth=="function"&&typeof e.getYear=="function"&&!isNaN(e.getTime())},number:function(e){return isNaN(e)?!1:typeof e=="number"},object:function(e){return vt(e)==="object"&&!If.array(e)},method:function(e){return typeof e=="function"},email:function(e){return typeof e=="string"&&e.length<=320&&!!e.match(kP.email)},url:function(e){return typeof e=="string"&&e.length<=2048&&!!e.match(mee())},hex:function(e){return typeof e=="string"&&!!e.match(kP.hex)}},vee=function(e,t,r,a,i){if(e.required&&t===void 0){e3(e,t,r,a,i);return}var s=["integer","float","array","regexp","object","method","email","number","date","url","hex"],o=e.type;s.indexOf(o)>-1?If[o](t)||a.push(Na(i.messages.types[o],e.fullField,e.type)):o&&vt(t)!==e.type&&a.push(Na(i.messages.types[o],e.fullField,e.type))},bee=function(e,t,r,a,i){(/^\s+$/.test(t)||t==="")&&a.push(Na(i.messages.whitespace,e.fullField))};const Qt={required:e3,whitespace:bee,type:vee,range:pee,enum:hee,pattern:gee};var yee=function(e,t,r,a,i){var s=[],o=e.required||!e.required&&a.hasOwnProperty(e.field);if(o){if(yr(t)&&!e.required)return r();Qt.required(e,t,a,s,i)}r(s)},xee=function(e,t,r,a,i){var s=[],o=e.required||!e.required&&a.hasOwnProperty(e.field);if(o){if(t==null&&!e.required)return r();Qt.required(e,t,a,s,i,"array"),t!=null&&(Qt.type(e,t,a,s,i),Qt.range(e,t,a,s,i))}r(s)},wee=function(e,t,r,a,i){var s=[],o=e.required||!e.required&&a.hasOwnProperty(e.field);if(o){if(yr(t)&&!e.required)return r();Qt.required(e,t,a,s,i),t!==void 0&&Qt.type(e,t,a,s,i)}r(s)},See=function(e,t,r,a,i){var s=[],o=e.required||!e.required&&a.hasOwnProperty(e.field);if(o){if(yr(t,"date")&&!e.required)return r();if(Qt.required(e,t,a,s,i),!yr(t,"date")){var l;t instanceof Date?l=t:l=new Date(t),Qt.type(e,l,a,s,i),l&&Qt.range(e,l.getTime(),a,s,i)}}r(s)},Cee="enum",Oee=function(e,t,r,a,i){var s=[],o=e.required||!e.required&&a.hasOwnProperty(e.field);if(o){if(yr(t)&&!e.required)return r();Qt.required(e,t,a,s,i),t!==void 0&&Qt[Cee](e,t,a,s,i)}r(s)},Eee=function(e,t,r,a,i){var s=[],o=e.required||!e.required&&a.hasOwnProperty(e.field);if(o){if(yr(t)&&!e.required)return r();Qt.required(e,t,a,s,i),t!==void 0&&(Qt.type(e,t,a,s,i),Qt.range(e,t,a,s,i))}r(s)},Mee=function(e,t,r,a,i){var s=[],o=e.required||!e.required&&a.hasOwnProperty(e.field);if(o){if(yr(t)&&!e.required)return r();Qt.required(e,t,a,s,i),t!==void 0&&(Qt.type(e,t,a,s,i),Qt.range(e,t,a,s,i))}r(s)},Dee=function(e,t,r,a,i){var s=[],o=e.required||!e.required&&a.hasOwnProperty(e.field);if(o){if(yr(t)&&!e.required)return r();Qt.required(e,t,a,s,i),t!==void 0&&Qt.type(e,t,a,s,i)}r(s)},_ee=function(e,t,r,a,i){var s=[],o=e.required||!e.required&&a.hasOwnProperty(e.field);if(o){if(t===""&&(t=void 0),yr(t)&&!e.required)return r();Qt.required(e,t,a,s,i),t!==void 0&&(Qt.type(e,t,a,s,i),Qt.range(e,t,a,s,i))}r(s)},Aee=function(e,t,r,a,i){var s=[],o=e.required||!e.required&&a.hasOwnProperty(e.field);if(o){if(yr(t)&&!e.required)return r();Qt.required(e,t,a,s,i),t!==void 0&&Qt.type(e,t,a,s,i)}r(s)},Tee=function(e,t,r,a,i){var s=[],o=e.required||!e.required&&a.hasOwnProperty(e.field);if(o){if(yr(t,"string")&&!e.required)return r();Qt.required(e,t,a,s,i),yr(t,"string")||Qt.pattern(e,t,a,s,i)}r(s)},Ree=function(e,t,r,a,i){var s=[],o=e.required||!e.required&&a.hasOwnProperty(e.field);if(o){if(yr(t)&&!e.required)return r();Qt.required(e,t,a,s,i),yr(t)||Qt.type(e,t,a,s,i)}r(s)},Pee=function(e,t,r,a,i){var s=[],o=Array.isArray(t)?"array":vt(t);Qt.required(e,t,a,s,i,o),r(s)},Lee=function(e,t,r,a,i){var s=[],o=e.required||!e.required&&a.hasOwnProperty(e.field);if(o){if(yr(t,"string")&&!e.required)return r();Qt.required(e,t,a,s,i,"string"),yr(t,"string")||(Qt.type(e,t,a,s,i),Qt.range(e,t,a,s,i),Qt.pattern(e,t,a,s,i),e.whitespace===!0&&Qt.whitespace(e,t,a,s,i))}r(s)},_y=function(e,t,r,a,i){var s=e.type,o=[],l=e.required||!e.required&&a.hasOwnProperty(e.field);if(l){if(yr(t,s)&&!e.required)return r();Qt.required(e,t,a,o,i,s),yr(t,s)||Qt.type(e,t,a,o,i)}r(o)};const Xf={string:Lee,method:Dee,number:_ee,boolean:wee,regexp:Ree,integer:Mee,float:Eee,array:xee,object:Aee,enum:Oee,pattern:Tee,date:See,url:_y,hex:_y,email:_y,required:Pee,any:yee};var Bh=(function(){function n(e){xr(this,n),ae(this,"rules",null),ae(this,"_messages",jO),this.define(e)}return wr(n,[{key:"define",value:function(t){var r=this;if(!t)throw new Error("Cannot configure a schema with no rules");if(vt(t)!=="object"||Array.isArray(t))throw new Error("Rules must be an object");this.rules={},Object.keys(t).forEach(function(a){var i=t[a];r.rules[a]=Array.isArray(i)?i:[i]})}},{key:"messages",value:function(t){return t&&(this._messages=FP(YO(),t)),this._messages}},{key:"validate",value:function(t){var r=this,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:function(){},s=t,o=a,l=i;if(typeof o=="function"&&(l=o,o={}),!this.rules||Object.keys(this.rules).length===0)return l&&l(null,s),Promise.resolve(s);function u(b){var y=[],x={};function S(O){if(Array.isArray(O)){var D;y=(D=y).concat.apply(D,je(O))}else y.push(O)}for(var C=0;C<b.length;C++)S(b[C]);y.length?(x=qO(y),l(y,x)):l(null,s)}if(o.messages){var d=this.messages();d===jO&&(d=YO()),FP(d,o.messages),o.messages=d}else o.messages=this.messages();var f={},g=o.keys||Object.keys(this.rules);g.forEach(function(b){var y=r.rules[b],x=s[b];y.forEach(function(S){var C=S;typeof C.transform=="function"&&(s===t&&(s=se({},s)),x=s[b]=C.transform(x),x!=null&&(C.type=C.type||(Array.isArray(x)?"array":vt(x)))),typeof C=="function"?C={validator:C}:C=se({},C),C.validator=r.getValidationMethod(C),C.validator&&(C.field=b,C.fullField=C.fullField||b,C.type=r.getType(C),f[b]=f[b]||[],f[b].push({rule:C,value:x,source:s,field:b}))})});var p={};return uee(f,o,function(b,y){var x=b.rule,S=(x.type==="object"||x.type==="array")&&(vt(x.fields)==="object"||vt(x.defaultField)==="object");S=S&&(x.required||!x.required&&b.value),x.field=b.field;function C(T,P){return se(se({},P),{},{fullField:"".concat(x.fullField,".").concat(T),fullFields:x.fullFields?[].concat(je(x.fullFields),[T]):[T]})}function O(){var T=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],P=Array.isArray(T)?T:[T];!o.suppressWarning&&P.length&&n.warning("async-validator:",P),P.length&&x.message!==void 0&&(P=[].concat(x.message));var R=P.map($P(x,s));if(o.first&&R.length)return p[x.field]=1,y(R);if(!S)y(R);else{if(x.required&&!b.value)return x.message!==void 0?R=[].concat(x.message).map($P(x,s)):o.error&&(R=[o.error(x,Na(o.messages.required,x.field))]),y(R);var N={};x.defaultField&&Object.keys(b.value).map(function(Y){N[Y]=x.defaultField}),N=se(se({},N),b.rule.fields);var I={};Object.keys(N).forEach(function(Y){var k=N[Y],H=Array.isArray(k)?k:[k];I[Y]=H.map(C.bind(null,Y))});var $=new n(I);$.messages(o.messages),b.rule.options&&(b.rule.options.messages=o.messages,b.rule.options.error=o.error),$.validate(b.value,b.rule.options||o,function(Y){var k=[];R&&R.length&&k.push.apply(k,je(R)),Y&&Y.length&&k.push.apply(k,je(Y)),y(k.length?k:null)})}}var D;if(x.asyncValidator)D=x.asyncValidator(x,b.value,O,b.source,o);else if(x.validator){try{D=x.validator(x,b.value,O,b.source,o)}catch(T){var M,A;(M=(A=console).error)===null||M===void 0||M.call(A,T),o.suppressValidatorError||setTimeout(function(){throw T},0),O(T.message)}D===!0?O():D===!1?O(typeof x.message=="function"?x.message(x.fullField||x.field):x.message||"".concat(x.fullField||x.field," fails")):D instanceof Array?O(D):D instanceof Error&&O(D.message)}D&&D.then&&D.then(function(){return O()},function(T){return O(T)})},function(b){u(b)},s)}},{key:"getType",value:function(t){if(t.type===void 0&&t.pattern instanceof RegExp&&(t.type="pattern"),typeof t.validator!="function"&&t.type&&!Xf.hasOwnProperty(t.type))throw new Error(Na("Unknown rule type %s",t.type));return t.type||"string"}},{key:"getValidationMethod",value:function(t){if(typeof t.validator=="function")return t.validator;var r=Object.keys(t),a=r.indexOf("message");return a!==-1&&r.splice(a,1),r.length===1&&r[0]==="required"?Xf.required:Xf[this.getType(t)]||void 0}}]),n})();ae(Bh,"register",function(e,t){if(typeof t!="function")throw new Error("Cannot register a validator by type, validator is not a function");Xf[e]=t});ae(Bh,"warning",see);ae(Bh,"messages",jO);ae(Bh,"validators",Xf);var La="'${name}' is not a valid ${type}",t3={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:La,method:La,array:La,object:La,number:La,date:La,boolean:La,integer:La,float:La,regexp:La,email:La,url:La,hex:La},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}"}},HP=Bh;function Nee(n,e){return n.replace(/\\?\$\{\w+\}/g,function(t){if(t.startsWith("\\"))return t.slice(1);var r=t.slice(2,-1);return e[r]})}var zP="CODE_LOGIC_ERROR";function XO(n,e,t,r,a){return VO.apply(this,arguments)}function VO(){return VO=Rl(ra().mark(function n(e,t,r,a,i){var s,o,l,u,d,f,g,p,b;return ra().wrap(function(x){for(;;)switch(x.prev=x.next){case 0:return s=se({},r),delete s.ruleIndex,HP.warning=function(){},s.validator&&(o=s.validator,s.validator=function(){try{return o.apply(void 0,arguments)}catch(S){return console.error(S),Promise.reject(zP)}}),l=null,s&&s.type==="array"&&s.defaultField&&(l=s.defaultField,delete s.defaultField),u=new HP(ae({},e,[s])),d=Bc(t3,a.validateMessages),u.messages(d),f=[],x.prev=10,x.next=13,Promise.resolve(u.validate(ae({},e,t),se({},a)));case 13:x.next=18;break;case 15:x.prev=15,x.t0=x.catch(10),x.t0.errors&&(f=x.t0.errors.map(function(S,C){var O=S.message,D=O===zP?d.default:O;return E.isValidElement(D)?E.cloneElement(D,{key:"error_".concat(C)}):D}));case 18:if(!(!f.length&&l)){x.next=23;break}return x.next=21,Promise.all(t.map(function(S,C){return XO("".concat(e,".").concat(C),S,l,a,i)}));case 21:return g=x.sent,x.abrupt("return",g.reduce(function(S,C){return[].concat(je(S),je(C))},[]));case 23:return p=se(se({},r),{},{name:e,enum:(r.enum||[]).join(", ")},i),b=f.map(function(S){return typeof S=="string"?Nee(S,p):S}),x.abrupt("return",b);case 26:case"end":return x.stop()}},n,null,[[10,15]])})),VO.apply(this,arguments)}function Iee(n,e,t,r,a,i){var s=n.join("."),o=t.map(function(d,f){var g=d.validator,p=se(se({},d),{},{ruleIndex:f});return g&&(p.validator=function(b,y,x){var S=!1,C=function(){for(var M=arguments.length,A=new Array(M),T=0;T<M;T++)A[T]=arguments[T];Promise.resolve().then(function(){Sa(!S,"Your validator function has already return a promise. `callback` will be ignored."),S||x.apply(void 0,A)})},O=g(b,y,C);S=O&&typeof O.then=="function"&&typeof O.catch=="function",Sa(S,"`callback` is deprecated. Please return a promise instead."),S&&O.then(function(){x()}).catch(function(D){x(D||" ")})}),p}).sort(function(d,f){var g=d.warningOnly,p=d.ruleIndex,b=f.warningOnly,y=f.ruleIndex;return!!g==!!b?p-y:g?1:-1}),l;if(a===!0)l=new Promise((function(){var d=Rl(ra().mark(function f(g,p){var b,y,x;return ra().wrap(function(C){for(;;)switch(C.prev=C.next){case 0:b=0;case 1:if(!(b<o.length)){C.next=12;break}return y=o[b],C.next=5,XO(s,e,y,r,i);case 5:if(x=C.sent,!x.length){C.next=9;break}return p([{errors:x,rule:y}]),C.abrupt("return");case 9:b+=1,C.next=1;break;case 12:g([]);case 13:case"end":return C.stop()}},f)}));return function(f,g){return d.apply(this,arguments)}})());else{var u=o.map(function(d){return XO(s,e,d,r,i).then(function(f){return{errors:f,rule:d}})});l=(a?Fee(u):$ee(u)).then(function(d){return Promise.reject(d)})}return l.catch(function(d){return d}),l}function $ee(n){return UO.apply(this,arguments)}function UO(){return UO=Rl(ra().mark(function n(e){return ra().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:return r.abrupt("return",Promise.all(e).then(function(a){var i,s=(i=[]).concat.apply(i,je(a));return s}));case 1:case"end":return r.stop()}},n)})),UO.apply(this,arguments)}function Fee(n){return GO.apply(this,arguments)}function GO(){return GO=Rl(ra().mark(function n(e){var t;return ra().wrap(function(a){for(;;)switch(a.prev=a.next){case 0:return t=0,a.abrupt("return",new Promise(function(i){e.forEach(function(s){s.then(function(o){o.errors.length&&i([o]),t+=1,t===e.length&&i([])})})}));case 2:case"end":return a.stop()}},n)})),GO.apply(this,arguments)}function nr(n){return BO(n)}function BP(n,e){var t={};return e.forEach(function(r){var a=Yi(n,r);t=vi(t,r,a)}),t}function Xc(n,e){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return n&&n.some(function(r){return n3(e,r,t)})}function n3(n,e){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return!n||!e||!t&&n.length!==e.length?!1:e.every(function(r,a){return n[a]===r})}function kee(n,e){if(n===e)return!0;if(!n&&e||n&&!e||!n||!e||vt(n)!=="object"||vt(e)!=="object")return!1;var t=Object.keys(n),r=Object.keys(e),a=new Set([].concat(t,r));return je(a).every(function(i){var s=n[i],o=e[i];return typeof s=="function"&&typeof o=="function"?!0:s===o})}function Hee(n){var e=arguments.length<=1?void 0:arguments[1];return e&&e.target&&vt(e.target)==="object"&&n in e.target?e.target[n]:e}function YP(n,e,t){var r=n.length;if(e<0||e>=r||t<0||t>=r)return n;var a=n[e],i=e-t;return i>0?[].concat(je(n.slice(0,t)),[a],je(n.slice(t,e)),je(n.slice(e+1,r))):i<0?[].concat(je(n.slice(0,e)),je(n.slice(e+1,t+1)),[a],je(n.slice(t+1,r))):n}var zee=["name"],Ka=[];function Ay(n,e,t,r,a,i){return typeof n=="function"?n(e,t,"source"in i?{source:i.source}:{}):r!==a}var EM=(function(n){Co(t,n);var e=Oo(t);function t(r){var a;if(xr(this,t),a=e.call(this,r),ae(kt(a),"state",{resetCount:0}),ae(kt(a),"cancelRegisterFunc",null),ae(kt(a),"mounted",!1),ae(kt(a),"touched",!1),ae(kt(a),"dirty",!1),ae(kt(a),"validatePromise",void 0),ae(kt(a),"prevValidating",void 0),ae(kt(a),"errors",Ka),ae(kt(a),"warnings",Ka),ae(kt(a),"cancelRegister",function(){var l=a.props,u=l.preserve,d=l.isListField,f=l.name;a.cancelRegisterFunc&&a.cancelRegisterFunc(d,u,nr(f)),a.cancelRegisterFunc=null}),ae(kt(a),"getNamePath",function(){var l=a.props,u=l.name,d=l.fieldContext,f=d.prefixName,g=f===void 0?[]:f;return u!==void 0?[].concat(je(g),je(u)):[]}),ae(kt(a),"getRules",function(){var l=a.props,u=l.rules,d=u===void 0?[]:u,f=l.fieldContext;return d.map(function(g){return typeof g=="function"?g(f):g})}),ae(kt(a),"refresh",function(){a.mounted&&a.setState(function(l){var u=l.resetCount;return{resetCount:u+1}})}),ae(kt(a),"metaCache",null),ae(kt(a),"triggerMetaEvent",function(l){var u=a.props.onMetaChange;if(u){var d=se(se({},a.getMeta()),{},{destroy:l});uO(a.metaCache,d)||u(d),a.metaCache=d}else a.metaCache=null}),ae(kt(a),"onStoreChange",function(l,u,d){var f=a.props,g=f.shouldUpdate,p=f.dependencies,b=p===void 0?[]:p,y=f.onReset,x=d.store,S=a.getNamePath(),C=a.getValue(l),O=a.getValue(x),D=u&&Xc(u,S);switch(d.type==="valueUpdate"&&d.source==="external"&&!uO(C,O)&&(a.touched=!0,a.dirty=!0,a.validatePromise=null,a.errors=Ka,a.warnings=Ka,a.triggerMetaEvent()),d.type){case"reset":if(!u||D){a.touched=!1,a.dirty=!1,a.validatePromise=void 0,a.errors=Ka,a.warnings=Ka,a.triggerMetaEvent(),y?.(),a.refresh();return}break;case"remove":{if(g&&Ay(g,l,x,C,O,d)){a.reRender();return}break}case"setField":{var M=d.data;if(D){"touched"in M&&(a.touched=M.touched),"validating"in M&&!("originRCField"in M)&&(a.validatePromise=M.validating?Promise.resolve([]):null),"errors"in M&&(a.errors=M.errors||Ka),"warnings"in M&&(a.warnings=M.warnings||Ka),a.dirty=!0,a.triggerMetaEvent(),a.reRender();return}else if("value"in M&&Xc(u,S,!0)){a.reRender();return}if(g&&!S.length&&Ay(g,l,x,C,O,d)){a.reRender();return}break}case"dependenciesUpdate":{var A=b.map(nr);if(A.some(function(T){return Xc(d.relatedFields,T)})){a.reRender();return}break}default:if(D||(!b.length||S.length||g)&&Ay(g,l,x,C,O,d)){a.reRender();return}break}g===!0&&a.reRender()}),ae(kt(a),"validateRules",function(l){var u=a.getNamePath(),d=a.getValue(),f=l||{},g=f.triggerName,p=f.validateOnly,b=p===void 0?!1:p,y=Promise.resolve().then(Rl(ra().mark(function x(){var S,C,O,D,M,A,T;return ra().wrap(function(R){for(;;)switch(R.prev=R.next){case 0:if(a.mounted){R.next=2;break}return R.abrupt("return",[]);case 2:if(S=a.props,C=S.validateFirst,O=C===void 0?!1:C,D=S.messageVariables,M=S.validateDebounce,A=a.getRules(),g&&(A=A.filter(function(N){return N}).filter(function(N){var I=N.validateTrigger;if(!I)return!0;var $=BO(I);return $.includes(g)})),!(M&&g)){R.next=10;break}return R.next=8,new Promise(function(N){setTimeout(N,M)});case 8:if(a.validatePromise===y){R.next=10;break}return R.abrupt("return",[]);case 10:return T=Iee(u,d,A,l,O,D),T.catch(function(N){return N}).then(function(){var N=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Ka;if(a.validatePromise===y){var I;a.validatePromise=null;var $=[],Y=[];(I=N.forEach)===null||I===void 0||I.call(N,function(k){var H=k.rule.warningOnly,F=k.errors,B=F===void 0?Ka:F;H?Y.push.apply(Y,je(B)):$.push.apply($,je(B))}),a.errors=$,a.warnings=Y,a.triggerMetaEvent(),a.reRender()}}),R.abrupt("return",T);case 13:case"end":return R.stop()}},x)})));return b||(a.validatePromise=y,a.dirty=!0,a.errors=Ka,a.warnings=Ka,a.triggerMetaEvent(),a.reRender()),y}),ae(kt(a),"isFieldValidating",function(){return!!a.validatePromise}),ae(kt(a),"isFieldTouched",function(){return a.touched}),ae(kt(a),"isFieldDirty",function(){if(a.dirty||a.props.initialValue!==void 0)return!0;var l=a.props.fieldContext,u=l.getInternalHooks(gl),d=u.getInitialValue;return d(a.getNamePath())!==void 0}),ae(kt(a),"getErrors",function(){return a.errors}),ae(kt(a),"getWarnings",function(){return a.warnings}),ae(kt(a),"isListField",function(){return a.props.isListField}),ae(kt(a),"isList",function(){return a.props.isList}),ae(kt(a),"isPreserve",function(){return a.props.preserve}),ae(kt(a),"getMeta",function(){a.prevValidating=a.isFieldValidating();var l={touched:a.isFieldTouched(),validating:a.prevValidating,errors:a.errors,warnings:a.warnings,name:a.getNamePath(),validated:a.validatePromise===null};return l}),ae(kt(a),"getOnlyChild",function(l){if(typeof l=="function"){var u=a.getMeta();return se(se({},a.getOnlyChild(l(a.getControlled(),u,a.props.fieldContext))),{},{isFunction:!0})}var d=km(l);return d.length!==1||!E.isValidElement(d[0])?{child:d,isFunction:!1}:{child:d[0],isFunction:!1}}),ae(kt(a),"getValue",function(l){var u=a.props.fieldContext.getFieldsValue,d=a.getNamePath();return Yi(l||u(!0),d)}),ae(kt(a),"getControlled",function(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},u=a.props,d=u.name,f=u.trigger,g=u.validateTrigger,p=u.getValueFromEvent,b=u.normalize,y=u.valuePropName,x=u.getValueProps,S=u.fieldContext,C=g!==void 0?g:S.validateTrigger,O=a.getNamePath(),D=S.getInternalHooks,M=S.getFieldsValue,A=D(gl),T=A.dispatch,P=a.getValue(),R=x||function(k){return ae({},y,k)},N=l[f],I=d!==void 0?R(P):{},$=se(se({},l),I);$[f]=function(){a.touched=!0,a.dirty=!0,a.triggerMetaEvent();for(var k,H=arguments.length,F=new Array(H),B=0;B<H;B++)F[B]=arguments[B];p?k=p.apply(void 0,F):k=Hee.apply(void 0,[y].concat(F)),b&&(k=b(k,P,M(!0))),k!==P&&T({type:"updateValue",namePath:O,value:k}),N&&N.apply(void 0,F)};var Y=BO(C||[]);return Y.forEach(function(k){var H=$[k];$[k]=function(){H&&H.apply(void 0,arguments);var F=a.props.rules;F&&F.length&&T({type:"validateField",namePath:O,triggerName:k})}}),$}),r.fieldContext){var i=r.fieldContext.getInternalHooks,s=i(gl),o=s.initEntityValue;o(kt(a))}return a}return wr(t,[{key:"componentDidMount",value:function(){var a=this.props,i=a.shouldUpdate,s=a.fieldContext;if(this.mounted=!0,s){var o=s.getInternalHooks,l=o(gl),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 a=this.state.resetCount,i=this.props.children,s=this.getOnlyChild(i),o=s.child,l=s.isFunction,u;return l?u=o:E.isValidElement(o)?u=E.cloneElement(o,this.getControlled(o.props)):(Sa(!o,"`children` of Field is not validate ReactElement."),u=o),E.createElement(E.Fragment,{key:a},u)}}]),t})(E.Component);ae(EM,"contextType",du);ae(EM,"defaultProps",{trigger:"onChange",valuePropName:"value"});function r3(n){var e,t=n.name,r=zn(n,zee),a=E.useContext(du),i=E.useContext(Gm),s=t!==void 0?nr(t):void 0,o=(e=r.isListField)!==null&&e!==void 0?e:!!i,l="keep";return o||(l="_".concat((s||[]).join("_"))),E.createElement(EM,tt({key:l,name:s,isListField:o},r,{fieldContext:a}))}function Bee(n){var e=n.name,t=n.initialValue,r=n.children,a=n.rules,i=n.validateTrigger,s=n.isListField,o=E.useContext(du),l=E.useContext(Gm),u=E.useRef({keys:[],id:0}),d=u.current,f=E.useMemo(function(){var y=nr(o.prefixName)||[];return[].concat(je(y),je(nr(e)))},[o.prefixName,e]),g=E.useMemo(function(){return se(se({},o),{},{prefixName:f})},[o,f]),p=E.useMemo(function(){return{getKey:function(x){var S=f.length,C=x[S];return[d.keys[C],x.slice(S+1)]}}},[f]);if(typeof r!="function")return Sa(!1,"Form.List only accepts function as children."),null;var b=function(x,S,C){var O=C.source;return O==="internal"?!1:x!==S};return E.createElement(Gm.Provider,{value:p},E.createElement(du.Provider,{value:g},E.createElement(r3,{name:[],shouldUpdate:b,rules:a,validateTrigger:i,initialValue:t,isList:!0,isListField:s??!!l},function(y,x){var S=y.value,C=S===void 0?[]:S,O=y.onChange,D=o.getFieldValue,M=function(){var R=D(f||[]);return R||[]},A={add:function(R,N){var I=M();N>=0&&N<=I.length?(d.keys=[].concat(je(d.keys.slice(0,N)),[d.id],je(d.keys.slice(N))),O([].concat(je(I.slice(0,N)),[R],je(I.slice(N))))):(d.keys=[].concat(je(d.keys),[d.id]),O([].concat(je(I),[R]))),d.id+=1},remove:function(R){var N=M(),I=new Set(Array.isArray(R)?R:[R]);I.size<=0||(d.keys=d.keys.filter(function($,Y){return!I.has(Y)}),O(N.filter(function($,Y){return!I.has(Y)})))},move:function(R,N){if(R!==N){var I=M();R<0||R>=I.length||N<0||N>=I.length||(d.keys=YP(d.keys,R,N),O(YP(I,R,N)))}}},T=C||[];return Array.isArray(T)||(T=[]),r(T.map(function(P,R){var N=d.keys[R];return N===void 0&&(d.keys[R]=d.id,N=d.keys[R],d.id+=1),{name:R,key:N,isListField:!0}}),A,x)})))}function Yee(n){var e=!1,t=n.length,r=[];return n.length?new Promise(function(a,i){n.forEach(function(s,o){s.catch(function(l){return e=!0,l}).then(function(l){t-=1,r[o]=l,!(t>0)&&(e&&i(r),a(r))})})}):Promise.resolve([])}var a3="__@field_split__";function Ty(n){return n.map(function(e){return"".concat(vt(e),":").concat(e)}).join(a3)}var Ic=(function(){function n(){xr(this,n),ae(this,"kvs",new Map)}return wr(n,[{key:"set",value:function(t,r){this.kvs.set(Ty(t),r)}},{key:"get",value:function(t){return this.kvs.get(Ty(t))}},{key:"update",value:function(t,r){var a=this.get(t),i=r(a);i?this.set(t,i):this.delete(t)}},{key:"delete",value:function(t){this.kvs.delete(Ty(t))}},{key:"map",value:function(t){return je(this.kvs.entries()).map(function(r){var a=le(r,2),i=a[0],s=a[1],o=i.split(a3);return t({key:o.map(function(l){var u=l.match(/^([^:]*):(.*)$/),d=le(u,3),f=d[1],g=d[2];return f==="number"?Number(g):g}),value:s})})}},{key:"toJSON",value:function(){var t={};return this.map(function(r){var a=r.key,i=r.value;return t[a.join(".")]=i,null}),t}}]),n})(),jee=["name"],Wee=wr(function n(e){var t=this;xr(this,n),ae(this,"formHooked",!1),ae(this,"forceRootUpdate",void 0),ae(this,"subscribable",!0),ae(this,"store",{}),ae(this,"fieldEntities",[]),ae(this,"initialValues",{}),ae(this,"callbacks",{}),ae(this,"validateMessages",null),ae(this,"preserve",null),ae(this,"lastValidatePromise",null),ae(this,"getForm",function(){return{getFieldValue:t.getFieldValue,getFieldsValue:t.getFieldsValue,getFieldError:t.getFieldError,getFieldWarning:t.getFieldWarning,getFieldsError:t.getFieldsError,isFieldsTouched:t.isFieldsTouched,isFieldTouched:t.isFieldTouched,isFieldValidating:t.isFieldValidating,isFieldsValidating:t.isFieldsValidating,resetFields:t.resetFields,setFields:t.setFields,setFieldValue:t.setFieldValue,setFieldsValue:t.setFieldsValue,validateFields:t.validateFields,submit:t.submit,_init:!0,getInternalHooks:t.getInternalHooks}}),ae(this,"getInternalHooks",function(r){return r===gl?(t.formHooked=!0,{dispatch:t.dispatch,initEntityValue:t.initEntityValue,registerField:t.registerField,useSubscribe:t.useSubscribe,setInitialValues:t.setInitialValues,destroyForm:t.destroyForm,setCallbacks:t.setCallbacks,setValidateMessages:t.setValidateMessages,getFields:t.getFields,setPreserve:t.setPreserve,getInitialValue:t.getInitialValue,registerWatch:t.registerWatch}):(Sa(!1,"`getInternalHooks` is internal usage. Should not call directly."),null)}),ae(this,"useSubscribe",function(r){t.subscribable=r}),ae(this,"prevWithoutPreserves",null),ae(this,"setInitialValues",function(r,a){if(t.initialValues=r||{},a){var i,s=Bc(r,t.store);(i=t.prevWithoutPreserves)===null||i===void 0||i.map(function(o){var l=o.key;s=vi(s,l,Yi(r,l))}),t.prevWithoutPreserves=null,t.updateStore(s)}}),ae(this,"destroyForm",function(r){if(r)t.updateStore({});else{var a=new Ic;t.getFieldEntities(!0).forEach(function(i){t.isMergedPreserve(i.isPreserve())||a.set(i.getNamePath(),!0)}),t.prevWithoutPreserves=a}}),ae(this,"getInitialValue",function(r){var a=Yi(t.initialValues,r);return r.length?Bc(a):a}),ae(this,"setCallbacks",function(r){t.callbacks=r}),ae(this,"setValidateMessages",function(r){t.validateMessages=r}),ae(this,"setPreserve",function(r){t.preserve=r}),ae(this,"watchList",[]),ae(this,"registerWatch",function(r){return t.watchList.push(r),function(){t.watchList=t.watchList.filter(function(a){return a!==r})}}),ae(this,"notifyWatch",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];if(t.watchList.length){var a=t.getFieldsValue(),i=t.getFieldsValue(!0);t.watchList.forEach(function(s){s(a,i,r)})}}),ae(this,"timeoutId",null),ae(this,"warningUnhooked",function(){}),ae(this,"updateStore",function(r){t.store=r}),ae(this,"getFieldEntities",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;return r?t.fieldEntities.filter(function(a){return a.getNamePath().length}):t.fieldEntities}),ae(this,"getFieldsMap",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1,a=new Ic;return t.getFieldEntities(r).forEach(function(i){var s=i.getNamePath();a.set(s,i)}),a}),ae(this,"getFieldEntitiesForNamePathList",function(r){if(!r)return t.getFieldEntities(!0);var a=t.getFieldsMap(!0);return r.map(function(i){var s=nr(i);return a.get(s)||{INVALIDATE_NAME_PATH:nr(i)}})}),ae(this,"getFieldsValue",function(r,a){t.warningUnhooked();var i,s,o;if(r===!0||Array.isArray(r)?(i=r,s=a):r&&vt(r)==="object"&&(o=r.strict,s=r.filter),i===!0&&!s)return t.store;var l=t.getFieldEntitiesForNamePathList(Array.isArray(i)?i:null),u=[];return l.forEach(function(d){var f,g,p="INVALIDATE_NAME_PATH"in d?d.INVALIDATE_NAME_PATH:d.getNamePath();if(o){var b,y;if((b=(y=d).isList)!==null&&b!==void 0&&b.call(y))return}else if(!i&&(f=(g=d).isListField)!==null&&f!==void 0&&f.call(g))return;if(!s)u.push(p);else{var x="getMeta"in d?d.getMeta():null;s(x)&&u.push(p)}}),BP(t.store,u.map(nr))}),ae(this,"getFieldValue",function(r){t.warningUnhooked();var a=nr(r);return Yi(t.store,a)}),ae(this,"getFieldsError",function(r){t.warningUnhooked();var a=t.getFieldEntitiesForNamePathList(r);return a.map(function(i,s){return i&&!("INVALIDATE_NAME_PATH"in i)?{name:i.getNamePath(),errors:i.getErrors(),warnings:i.getWarnings()}:{name:nr(r[s]),errors:[],warnings:[]}})}),ae(this,"getFieldError",function(r){t.warningUnhooked();var a=nr(r),i=t.getFieldsError([a])[0];return i.errors}),ae(this,"getFieldWarning",function(r){t.warningUnhooked();var a=nr(r),i=t.getFieldsError([a])[0];return i.warnings}),ae(this,"isFieldsTouched",function(){t.warningUnhooked();for(var r=arguments.length,a=new Array(r),i=0;i<r;i++)a[i]=arguments[i];var s=a[0],o=a[1],l,u=!1;a.length===0?l=null:a.length===1?Array.isArray(s)?(l=s.map(nr),u=!1):(l=null,u=s):(l=s.map(nr),u=o);var d=t.getFieldEntities(!0),f=function(x){return x.isFieldTouched()};if(!l)return u?d.every(function(y){return f(y)||y.isList()}):d.some(f);var g=new Ic;l.forEach(function(y){g.set(y,[])}),d.forEach(function(y){var x=y.getNamePath();l.forEach(function(S){S.every(function(C,O){return x[O]===C})&&g.update(S,function(C){return[].concat(je(C),[y])})})});var p=function(x){return x.some(f)},b=g.map(function(y){var x=y.value;return x});return u?b.every(p):b.some(p)}),ae(this,"isFieldTouched",function(r){return t.warningUnhooked(),t.isFieldsTouched([r])}),ae(this,"isFieldsValidating",function(r){t.warningUnhooked();var a=t.getFieldEntities();if(!r)return a.some(function(s){return s.isFieldValidating()});var i=r.map(nr);return a.some(function(s){var o=s.getNamePath();return Xc(i,o)&&s.isFieldValidating()})}),ae(this,"isFieldValidating",function(r){return t.warningUnhooked(),t.isFieldsValidating([r])}),ae(this,"resetWithFieldInitialValue",function(){var r=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},a=new Ic,i=t.getFieldEntities(!0);i.forEach(function(l){var u=l.props.initialValue,d=l.getNamePath();if(u!==void 0){var f=a.get(d)||new Set;f.add({entity:l,value:u}),a.set(d,f)}});var s=function(u){u.forEach(function(d){var f=d.props.initialValue;if(f!==void 0){var g=d.getNamePath(),p=t.getInitialValue(g);if(p!==void 0)Sa(!1,"Form already set 'initialValues' with path '".concat(g.join("."),"'. Field can not overwrite it."));else{var b=a.get(g);if(b&&b.size>1)Sa(!1,"Multiple Field with path '".concat(g.join("."),"' set 'initialValue'. Can not decide which one to pick."));else if(b){var y=t.getFieldValue(g),x=d.isListField();!x&&(!r.skipExist||y===void 0)&&t.updateStore(vi(t.store,g,je(b)[0].value))}}}})},o;r.entities?o=r.entities:r.namePathList?(o=[],r.namePathList.forEach(function(l){var u=a.get(l);if(u){var d;(d=o).push.apply(d,je(je(u).map(function(f){return f.entity})))}})):o=i,s(o)}),ae(this,"resetFields",function(r){t.warningUnhooked();var a=t.store;if(!r){t.updateStore(Bc(t.initialValues)),t.resetWithFieldInitialValue(),t.notifyObservers(a,null,{type:"reset"}),t.notifyWatch();return}var i=r.map(nr);i.forEach(function(s){var o=t.getInitialValue(s);t.updateStore(vi(t.store,s,o))}),t.resetWithFieldInitialValue({namePathList:i}),t.notifyObservers(a,i,{type:"reset"}),t.notifyWatch(i)}),ae(this,"setFields",function(r){t.warningUnhooked();var a=t.store,i=[];r.forEach(function(s){var o=s.name,l=zn(s,jee),u=nr(o);i.push(u),"value"in l&&t.updateStore(vi(t.store,u,l.value)),t.notifyObservers(a,[u],{type:"setField",data:s})}),t.notifyWatch(i)}),ae(this,"getFields",function(){var r=t.getFieldEntities(!0),a=r.map(function(i){var s=i.getNamePath(),o=i.getMeta(),l=se(se({},o),{},{name:s,value:t.getFieldValue(s)});return Object.defineProperty(l,"originRCField",{value:!0}),l});return a}),ae(this,"initEntityValue",function(r){var a=r.props.initialValue;if(a!==void 0){var i=r.getNamePath(),s=Yi(t.store,i);s===void 0&&t.updateStore(vi(t.store,i,a))}}),ae(this,"isMergedPreserve",function(r){var a=r!==void 0?r:t.preserve;return a??!0}),ae(this,"registerField",function(r){t.fieldEntities.push(r);var a=r.getNamePath();if(t.notifyWatch([a]),r.props.initialValue!==void 0){var i=t.store;t.resetWithFieldInitialValue({entities:[r],skipExist:!0}),t.notifyObservers(i,[r.getNamePath()],{type:"valueUpdate",source:"internal"})}return function(s,o){var l=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[];if(t.fieldEntities=t.fieldEntities.filter(function(f){return f!==r}),!t.isMergedPreserve(o)&&(!s||l.length>1)){var u=s?void 0:t.getInitialValue(a);if(a.length&&t.getFieldValue(a)!==u&&t.fieldEntities.every(function(f){return!n3(f.getNamePath(),a)})){var d=t.store;t.updateStore(vi(d,a,u,!0)),t.notifyObservers(d,[a],{type:"remove"}),t.triggerDependenciesUpdate(d,a)}}t.notifyWatch([a])}}),ae(this,"dispatch",function(r){switch(r.type){case"updateValue":{var a=r.namePath,i=r.value;t.updateValue(a,i);break}case"validateField":{var s=r.namePath,o=r.triggerName;t.validateFields([s],{triggerName:o});break}}}),ae(this,"notifyObservers",function(r,a,i){if(t.subscribable){var s=se(se({},i),{},{store:t.getFieldsValue(!0)});t.getFieldEntities().forEach(function(o){var l=o.onStoreChange;l(r,a,s)})}else t.forceRootUpdate()}),ae(this,"triggerDependenciesUpdate",function(r,a){var i=t.getDependencyChildrenFields(a);return i.length&&t.validateFields(i),t.notifyObservers(r,i,{type:"dependenciesUpdate",relatedFields:[a].concat(je(i))}),i}),ae(this,"updateValue",function(r,a){var i=nr(r),s=t.store;t.updateStore(vi(t.store,i,a)),t.notifyObservers(s,[i],{type:"valueUpdate",source:"internal"}),t.notifyWatch([i]);var o=t.triggerDependenciesUpdate(s,i),l=t.callbacks.onValuesChange;if(l){var u=BP(t.store,[i]);l(u,t.getFieldsValue())}t.triggerOnFieldsChange([i].concat(je(o)))}),ae(this,"setFieldsValue",function(r){t.warningUnhooked();var a=t.store;if(r){var i=Bc(t.store,r);t.updateStore(i)}t.notifyObservers(a,null,{type:"valueUpdate",source:"external"}),t.notifyWatch()}),ae(this,"setFieldValue",function(r,a){t.setFields([{name:r,value:a,errors:[],warnings:[]}])}),ae(this,"getDependencyChildrenFields",function(r){var a=new Set,i=[],s=new Ic;t.getFieldEntities().forEach(function(l){var u=l.props.dependencies;(u||[]).forEach(function(d){var f=nr(d);s.update(f,function(){var g=arguments.length>0&&arguments[0]!==void 0?arguments[0]:new Set;return g.add(l),g})})});var o=function l(u){var d=s.get(u)||new Set;d.forEach(function(f){if(!a.has(f)){a.add(f);var g=f.getNamePath();f.isFieldDirty()&&g.length&&(i.push(g),l(g))}})};return o(r),i}),ae(this,"triggerOnFieldsChange",function(r,a){var i=t.callbacks.onFieldsChange;if(i){var s=t.getFields();if(a){var o=new Ic;a.forEach(function(u){var d=u.name,f=u.errors;o.set(d,f)}),s.forEach(function(u){u.errors=o.get(u.name)||u.errors})}var l=s.filter(function(u){var d=u.name;return Xc(r,d)});l.length&&i(l,s)}}),ae(this,"validateFields",function(r,a){t.warningUnhooked();var i,s;Array.isArray(r)||typeof r=="string"||typeof a=="string"?(i=r,s=a):s=r;var o=!!i,l=o?i.map(nr):[],u=[],d=String(Date.now()),f=new Set,g=s||{},p=g.recursive,b=g.dirty;t.getFieldEntities(!0).forEach(function(C){if(o||l.push(C.getNamePath()),!(!C.props.rules||!C.props.rules.length)&&!(b&&!C.isFieldDirty())){var O=C.getNamePath();if(f.add(O.join(d)),!o||Xc(l,O,p)){var D=C.validateRules(se({validateMessages:se(se({},t3),t.validateMessages)},s));u.push(D.then(function(){return{name:O,errors:[],warnings:[]}}).catch(function(M){var A,T=[],P=[];return(A=M.forEach)===null||A===void 0||A.call(M,function(R){var N=R.rule.warningOnly,I=R.errors;N?P.push.apply(P,je(I)):T.push.apply(T,je(I))}),T.length?Promise.reject({name:O,errors:T,warnings:P}):{name:O,errors:T,warnings:P}}))}}});var y=Yee(u);t.lastValidatePromise=y,y.catch(function(C){return C}).then(function(C){var O=C.map(function(D){var M=D.name;return M});t.notifyObservers(t.store,O,{type:"validateFinish"}),t.triggerOnFieldsChange(O,C)});var x=y.then(function(){return t.lastValidatePromise===y?Promise.resolve(t.getFieldsValue(l)):Promise.reject([])}).catch(function(C){var O=C.filter(function(D){return D&&D.errors.length});return Promise.reject({values:t.getFieldsValue(l),errorFields:O,outOfDate:t.lastValidatePromise!==y})});x.catch(function(C){return C});var S=l.filter(function(C){return f.has(C.join(d))});return t.triggerOnFieldsChange(S),x}),ae(this,"submit",function(){t.warningUnhooked(),t.validateFields().then(function(r){var a=t.callbacks.onFinish;if(a)try{a(r)}catch(i){console.error(i)}}).catch(function(r){var a=t.callbacks.onFinishFailed;a&&a(r)})}),this.forceRootUpdate=e});function i3(n){var e=E.useRef(),t=E.useState({}),r=le(t,2),a=r[1];if(!e.current)if(n)e.current=n;else{var i=function(){a({})},s=new Wee(i);e.current=s.getForm()}return[e.current]}var ZO=E.createContext({triggerFormChange:function(){},triggerFormFinish:function(){},registerForm:function(){},unregisterForm:function(){}}),qee=function(e){var t=e.validateMessages,r=e.onFormChange,a=e.onFormFinish,i=e.children,s=E.useContext(ZO),o=E.useRef({});return E.createElement(ZO.Provider,{value:se(se({},s),{},{validateMessages:se(se({},s.validateMessages),t),triggerFormChange:function(u,d){r&&r(u,{changedFields:d,forms:o.current}),s.triggerFormChange(u,d)},triggerFormFinish:function(u,d){a&&a(u,{values:d,forms:o.current}),s.triggerFormFinish(u,d)},registerForm:function(u,d){u&&(o.current=se(se({},o.current),{},ae({},u,d))),s.registerForm(u,d)},unregisterForm:function(u){var d=se({},o.current);delete d[u],o.current=d,s.unregisterForm(u)}})},i)},Xee=["name","initialValues","fields","form","preserve","children","component","validateMessages","validateTrigger","onValuesChange","onFieldsChange","onFinish","onFinishFailed","clearOnDestroy"],Vee=function(e,t){var r=e.name,a=e.initialValues,i=e.fields,s=e.form,o=e.preserve,l=e.children,u=e.component,d=u===void 0?"form":u,f=e.validateMessages,g=e.validateTrigger,p=g===void 0?"onChange":g,b=e.onValuesChange,y=e.onFieldsChange,x=e.onFinish,S=e.onFinishFailed,C=e.clearOnDestroy,O=zn(e,Xee),D=E.useRef(null),M=E.useContext(ZO),A=i3(s),T=le(A,1),P=T[0],R=P.getInternalHooks(gl),N=R.useSubscribe,I=R.setInitialValues,$=R.setCallbacks,Y=R.setValidateMessages,k=R.setPreserve,H=R.destroyForm;E.useImperativeHandle(t,function(){return se(se({},P),{},{nativeElement:D.current})}),E.useEffect(function(){return M.registerForm(r,P),function(){M.unregisterForm(r)}},[M,P,r]),Y(se(se({},M.validateMessages),f)),$({onValuesChange:b,onFieldsChange:function(G){if(M.triggerFormChange(r,G),y){for(var U=arguments.length,K=new Array(U>1?U-1:0),te=1;te<U;te++)K[te-1]=arguments[te];y.apply(void 0,[G].concat(K))}},onFinish:function(G){M.triggerFormFinish(r,G),x&&x(G)},onFinishFailed:S}),k(o);var F=E.useRef(null);I(a,!F.current),F.current||(F.current=!0),E.useEffect(function(){return function(){return H(C)}},[]);var B,X=typeof l=="function";if(X){var Q=P.getFieldsValue(!0);B=l(Q,P)}else B=l;N(!X);var z=E.useRef();E.useEffect(function(){kee(z.current||[],i||[])||P.setFields(i||[]),z.current=i},[i,P]);var V=E.useMemo(function(){return se(se({},P),{},{validateTrigger:p})},[P,p]),j=E.createElement(Gm.Provider,{value:null},E.createElement(du.Provider,{value:V},B));return d===!1?j:E.createElement(d,tt({},O,{ref:D,onSubmit:function(G){G.preventDefault(),G.stopPropagation(),P.submit()},onReset:function(G){var U;G.preventDefault(),P.resetFields(),(U=O.onReset)===null||U===void 0||U.call(O,G)}}),j)};function jP(n){try{return JSON.stringify(n)}catch{return Math.random()}}function Uee(){for(var n=arguments.length,e=new Array(n),t=0;t<n;t++)e[t]=arguments[t];var r=e[0],a=e[1],i=a===void 0?{}:a,s=nee(i)?{form:i}:i,o=s.form,l=E.useState(),u=le(l,2),d=u[0],f=u[1],g=E.useMemo(function(){return jP(d)},[d]),p=E.useRef(g);p.current=g;var b=E.useContext(du),y=o||b,x=y&&y._init,S=nr(r),C=E.useRef(S);return C.current=S,E.useEffect(function(){if(x){var O=y.getFieldsValue,D=y.getInternalHooks,M=D(gl),A=M.registerWatch,T=function(I,$){var Y=s.preserve?$:I;return typeof r=="function"?r(Y):Yi(Y,C.current)},P=A(function(N,I){var $=T(N,I),Y=jP($);p.current!==Y&&(p.current=Y,f($))}),R=T(O(),O(!0));return d!==R&&f(R),P}},[x]),d}var Gee=E.forwardRef(Vee),Yh=Gee;Yh.FormProvider=qee;Yh.Field=r3;Yh.List=Bee;Yh.useForm=i3;Yh.useWatch=Uee;const Zm=E.createContext({}),Zee=({children:n,status:e,override:t})=>{const r=E.useContext(Zm),a=E.useMemo(()=>{const i=Object.assign({},r);return t&&delete i.isFormItemInput,e&&(delete i.status,delete i.hasFeedback,delete i.feedbackIcon),i},[e,t,r]);return E.createElement(Zm.Provider,{value:a},n)},Qee=E.createContext(void 0),s3=n=>{const{space:e,form:t,children:r}=n;if(r==null)return null;let a=r;return t&&(a=pe.createElement(Zee,{override:!0,status:!0},a)),e&&(a=pe.createElement(zK,null,a)),a},Kee=pe.createContext({});function Jee(n){return e=>E.createElement(Tl,{theme:{token:{motion:!1,zIndexPopupBase:0}}},E.createElement(n,Object.assign({},e)))}const o3=(n,e,t,r,a)=>Jee(s=>{const{prefixCls:o,style:l}=s,u=E.useRef(null),[d,f]=E.useState(0),[g,p]=E.useState(0),[b,y]=qi(!1,{value:s.open}),{getPrefixCls:x}=E.useContext(Tr),S=x(r,o);E.useEffect(()=>{if(y(!0),typeof ResizeObserver<"u"){const D=new ResizeObserver(A=>{const T=A[0].target;f(T.offsetHeight+8),p(T.offsetWidth)}),M=setInterval(()=>{var A;const T=`.${S}-dropdown`,P=(A=u.current)===null||A===void 0?void 0:A.querySelector(T);P&&(clearInterval(M),D.observe(P))},10);return()=>{clearInterval(M),D.disconnect()}}},[]);let C=Object.assign(Object.assign({},s),{style:Object.assign(Object.assign({},l),{margin:0}),open:b,visible:b,getPopupContainer:()=>u.current});Object.assign(C,{[e]:{overflow:{adjustX:!1,adjustY:!1}}});const O={paddingBottom:d,position:"relative",minWidth:g};return E.createElement("div",{ref:u,style:O},E.createElement(n,Object.assign({},C)))}),ete=(function(){if(typeof navigator>"u"||typeof window>"u")return!1;var n=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(n)||/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(n?.substr(0,4))});var tte=["prefixCls","invalidate","item","renderItem","responsive","responsiveDisabled","registerSize","itemKey","className","style","children","display","order","component"],$c=void 0;function nte(n,e){var t=n.prefixCls,r=n.invalidate,a=n.item,i=n.renderItem,s=n.responsive,o=n.responsiveDisabled,l=n.registerSize,u=n.itemKey,d=n.className,f=n.style,g=n.children,p=n.display,b=n.order,y=n.component,x=y===void 0?"div":y,S=zn(n,tte),C=s&&!p;function O(P){l(u,P)}E.useEffect(function(){return function(){O(null)}},[]);var D=i&&a!==$c?i(a,{index:b}):g,M;r||(M={opacity:C?0:1,height:C?0:$c,overflowY:C?"hidden":$c,order:s?b:$c,pointerEvents:C?"none":$c,position:C?"absolute":$c});var A={};C&&(A["aria-hidden"]=!0);var T=E.createElement(x,tt({className:Te(!r&&t,d),style:se(se({},M),f)},A,S,{ref:e}),D);return s&&(T=E.createElement(_l,{onResize:function(R){var N=R.offsetWidth;O(N)},disabled:o},T)),T}var Vf=E.forwardRef(nte);Vf.displayName="Item";function rte(n){if(typeof MessageChannel>"u")Wr(n);else{var e=new MessageChannel;e.port1.onmessage=function(){return n()},e.port2.postMessage(void 0)}}function ate(){var n=E.useRef(null),e=function(r){n.current||(n.current=[],rte(function(){Cs.unstable_batchedUpdates(function(){n.current.forEach(function(a){a()}),n.current=null})})),n.current.push(r)};return e}function lf(n,e){var t=E.useState(e),r=le(t,2),a=r[0],i=r[1],s=cn(function(o){n(function(){i(o)})});return[a,s]}var Qm=pe.createContext(null),ite=["component"],ste=["className"],ote=["className"],lte=function(e,t){var r=E.useContext(Qm);if(!r){var a=e.component,i=a===void 0?"div":a,s=zn(e,ite);return E.createElement(i,tt({},s,{ref:t}))}var o=r.className,l=zn(r,ste),u=e.className,d=zn(e,ote);return E.createElement(Qm.Provider,{value:null},E.createElement(Vf,tt({ref:t,className:Te(o,u)},l,d)))},l3=E.forwardRef(lte);l3.displayName="RawItem";var cte=["prefixCls","data","renderItem","renderRawItem","itemKey","itemWidth","ssr","style","className","maxCount","renderRest","renderRawRest","suffix","component","itemComponent","onVisibleChange"],c3="responsive",u3="invalidate";function ute(n){return"+ ".concat(n.length," ...")}function dte(n,e){var t=n.prefixCls,r=t===void 0?"rc-overflow":t,a=n.data,i=a===void 0?[]:a,s=n.renderItem,o=n.renderRawItem,l=n.itemKey,u=n.itemWidth,d=u===void 0?10:u,f=n.ssr,g=n.style,p=n.className,b=n.maxCount,y=n.renderRest,x=n.renderRawRest,S=n.suffix,C=n.component,O=C===void 0?"div":C,D=n.itemComponent,M=n.onVisibleChange,A=zn(n,cte),T=f==="full",P=ate(),R=lf(P,null),N=le(R,2),I=N[0],$=N[1],Y=I||0,k=lf(P,new Map),H=le(k,2),F=H[0],B=H[1],X=lf(P,0),Q=le(X,2),z=Q[0],V=Q[1],j=lf(P,0),q=le(j,2),G=q[0],U=q[1],K=lf(P,0),te=le(K,2),ne=te[0],ie=te[1],ce=E.useState(null),ue=le(ce,2),be=ue[0],me=ue[1],ye=E.useState(null),De=le(ye,2),Ce=De[0],Le=De[1],Ne=E.useMemo(function(){return Ce===null&&T?Number.MAX_SAFE_INTEGER:Ce||0},[Ce,I]),Ve=E.useState(!1),ze=le(Ve,2),$e=ze[0],Be=ze[1],ut="".concat(r,"-item"),He=Math.max(z,G),Qe=b===c3,Ee=i.length&&Qe,st=b===u3,ht=Ee||typeof b=="number"&&i.length>b,at=E.useMemo(function(){var Ge=i;return Ee?I===null&&T?Ge=i:Ge=i.slice(0,Math.min(i.length,Y/d)):typeof b=="number"&&(Ge=i.slice(0,b)),Ge},[i,d,I,b,Ee]),Ut=E.useMemo(function(){return Ee?i.slice(Ne+1):i.slice(at.length)},[i,at,Ee,Ne]),Nt=E.useCallback(function(Ge,ot){var it;return typeof l=="function"?l(Ge):(it=l&&Ge?.[l])!==null&&it!==void 0?it:ot},[l]),Ue=E.useCallback(s||function(Ge){return Ge},[s]);function yt(Ge,ot,it){Ce===Ge&&(ot===void 0||ot===be)||(Le(Ge),it||(Be(Ge<i.length-1),M?.(Ge)),ot!==void 0&&me(ot))}function Pe(Ge,ot){$(ot.clientWidth)}function Fe(Ge,ot){B(function(it){var nt=new Map(it);return ot===null?nt.delete(Ge):nt.set(Ge,ot),nt})}function We(Ge,ot){U(ot),V(G)}function we(Ge,ot){ie(ot)}function Ie(Ge){return F.get(Nt(at[Ge],Ge))}$n(function(){if(Y&&typeof He=="number"&&at){var Ge=ne,ot=at.length,it=ot-1;if(!ot){yt(0,null);return}for(var nt=0;nt<ot;nt+=1){var gt=Ie(nt);if(T&&(gt=gt||0),gt===void 0){yt(nt-1,void 0,!0);break}if(Ge+=gt,it===0&&Ge<=Y||nt===it-1&&Ge+Ie(it)<=Y){yt(it,null);break}else if(Ge+He>Y){yt(nt-1,Ge-gt-ne+G);break}}S&&Ie(0)+ne>Y&&me(null)}},[Y,F,G,ne,Nt,at]);var Dt=$e&&!!Ut.length,At={};be!==null&&Ee&&(At={position:"absolute",left:be,top:0});var Tt={prefixCls:ut,responsive:Ee,component:D,invalidate:st},vn=o?function(Ge,ot){var it=Nt(Ge,ot);return E.createElement(Qm.Provider,{key:it,value:se(se({},Tt),{},{order:ot,item:Ge,itemKey:it,registerSize:Fe,display:ot<=Ne})},o(Ge,ot))}:function(Ge,ot){var it=Nt(Ge,ot);return E.createElement(Vf,tt({},Tt,{order:ot,key:it,item:Ge,renderItem:Ue,itemKey:it,registerSize:Fe,display:ot<=Ne}))},un={order:Dt?Ne:Number.MAX_SAFE_INTEGER,className:"".concat(ut,"-rest"),registerSize:We,display:Dt},Jt=y||ute,It=x?E.createElement(Qm.Provider,{value:se(se({},Tt),un)},x(Ut)):E.createElement(Vf,tt({},Tt,un),typeof Jt=="function"?Jt(Ut):Jt),Ct=E.createElement(O,tt({className:Te(!st&&r,p),style:g,ref:e},A),at.map(vn),ht?It:null,S&&E.createElement(Vf,tt({},Tt,{responsive:Qe,responsiveDisabled:!Ee,order:Ne,className:"".concat(ut,"-suffix"),registerSize:we,display:!0,style:At}),S));return Qe?E.createElement(_l,{onResize:Pe,disabled:!Ee},Ct):Ct}var jh=E.forwardRef(dte);jh.displayName="Overflow";jh.Item=l3;jh.RESPONSIVE=c3;jh.INVALIDATE=u3;function fte(n){var e=n.prefixCls,t=n.align,r=n.arrow,a=n.arrowPos,i=r||{},s=i.className,o=i.content,l=a.x,u=l===void 0?0:l,d=a.y,f=d===void 0?0:d,g=E.useRef();if(!t||!t.points)return null;var p={position:"absolute"};if(t.autoArrow!==!1){var b=t.points[0],y=t.points[1],x=b[0],S=b[1],C=y[0],O=y[1];x===C||!["t","b"].includes(x)?p.top=f:x==="t"?p.top=0:p.bottom=0,S===O||!["l","r"].includes(S)?p.left=u:S==="l"?p.left=0:p.right=0}return E.createElement("div",{ref:g,className:Te("".concat(e,"-arrow"),s),style:p},o)}function hte(n){var e=n.prefixCls,t=n.open,r=n.zIndex,a=n.mask,i=n.motion;return a?E.createElement(Hh,tt({},i,{motionAppear:!0,visible:t,removeOnLeave:!0}),function(s){var o=s.className;return E.createElement("div",{style:{zIndex:r},className:Te("".concat(e,"-mask"),o)})}):null}var gte=E.memo(function(n){var e=n.children;return e},function(n,e){return e.cache}),pte=E.forwardRef(function(n,e){var t=n.popup,r=n.className,a=n.prefixCls,i=n.style,s=n.target,o=n.onVisibleChanged,l=n.open,u=n.keepDom,d=n.fresh,f=n.onClick,g=n.mask,p=n.arrow,b=n.arrowPos,y=n.align,x=n.motion,S=n.maskMotion,C=n.forceRender,O=n.getPopupContainer,D=n.autoDestroy,M=n.portal,A=n.zIndex,T=n.onMouseEnter,P=n.onMouseLeave,R=n.onPointerEnter,N=n.onPointerDownCapture,I=n.ready,$=n.offsetX,Y=n.offsetY,k=n.offsetR,H=n.offsetB,F=n.onAlign,B=n.onPrepare,X=n.stretch,Q=n.targetWidth,z=n.targetHeight,V=typeof t=="function"?t():t,j=l||u,q=O?.length>0,G=E.useState(!O||!q),U=le(G,2),K=U[0],te=U[1];if($n(function(){!K&&q&&s&&te(!0)},[K,q,s]),!K)return null;var ne="auto",ie={left:"-1000vw",top:"-1000vh",right:ne,bottom:ne};if(I||!l){var ce,ue=y.points,be=y.dynamicInset||((ce=y._experimental)===null||ce===void 0?void 0:ce.dynamicInset),me=be&&ue[0][1]==="r",ye=be&&ue[0][0]==="b";me?(ie.right=k,ie.left=ne):(ie.left=$,ie.right=ne),ye?(ie.bottom=H,ie.top=ne):(ie.top=Y,ie.bottom=ne)}var De={};return X&&(X.includes("height")&&z?De.height=z:X.includes("minHeight")&&z&&(De.minHeight=z),X.includes("width")&&Q?De.width=Q:X.includes("minWidth")&&Q&&(De.minWidth=Q)),l||(De.pointerEvents="none"),E.createElement(M,{open:C||j,getContainer:O&&function(){return O(s)},autoDestroy:D},E.createElement(hte,{prefixCls:a,open:l,zIndex:A,mask:g,motion:S}),E.createElement(_l,{onResize:F,disabled:!l},function(Ce){return E.createElement(Hh,tt({motionAppear:!0,motionEnter:!0,motionLeave:!0,removeOnLeave:!1,forceRender:C,leavedClassName:"".concat(a,"-hidden")},x,{onAppearPrepare:B,onEnterPrepare:B,visible:l,onVisibleChanged:function(Ne){var Ve;x==null||(Ve=x.onVisibleChanged)===null||Ve===void 0||Ve.call(x,Ne),o(Ne)}}),function(Le,Ne){var Ve=Le.className,ze=Le.style,$e=Te(a,Ve,r);return E.createElement("div",{ref:mv(Ce,e,Ne),className:$e,style:se(se(se(se({"--arrow-x":"".concat(b.x||0,"px"),"--arrow-y":"".concat(b.y||0,"px")},ie),De),ze),{},{boxSizing:"border-box",zIndex:A},i),onMouseEnter:T,onMouseLeave:P,onPointerEnter:R,onClick:f,onPointerDownCapture:N},p&&E.createElement(fte,{prefixCls:a,arrow:p,arrowPos:b,align:y}),E.createElement(gte,{cache:!l&&!d},V))})}))}),mte=E.forwardRef(function(n,e){var t=n.children,r=n.getTriggerDOMNode,a=$h(t),i=E.useCallback(function(o){tM(e,r?r(o):o)},[r]),s=vv(i,bv(t));return a?E.cloneElement(t,{ref:s}):t}),WP=E.createContext(null);function qP(n){return n?Array.isArray(n)?n:[n]:[]}function vte(n,e,t,r){return E.useMemo(function(){var a=qP(t??e),i=qP(r??e),s=new Set(a),o=new Set(i);return n&&(s.has("hover")&&(s.delete("hover"),s.add("click")),o.has("hover")&&(o.delete("hover"),o.add("click"))),[s,o]},[n,e,t,r])}function bte(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],t=arguments.length>2?arguments[2]:void 0;return t?n[0]===e[0]:n[0]===e[0]&&n[1]===e[1]}function yte(n,e,t,r){for(var a=t.points,i=Object.keys(n),s=0;s<i.length;s+=1){var o,l=i[s];if(bte((o=n[l])===null||o===void 0?void 0:o.points,a,r))return"".concat(e,"-placement-").concat(l)}return""}function XP(n,e,t,r){return e||(t?{motionName:"".concat(n,"-").concat(t)}:r?{motionName:r}:null)}function Wh(n){return n.ownerDocument.defaultView}function QO(n){for(var e=[],t=n?.parentElement,r=["hidden","scroll","clip","auto"];t;){var a=Wh(t).getComputedStyle(t),i=a.overflowX,s=a.overflowY,o=a.overflow;[i,s,o].some(function(l){return r.includes(l)})&&e.push(t),t=t.parentElement}return e}function hh(n){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1;return Number.isNaN(n)?e:n}function cf(n){return hh(parseFloat(n),0)}function VP(n,e){var t=se({},n);return(e||[]).forEach(function(r){if(!(r instanceof HTMLBodyElement||r instanceof HTMLHtmlElement)){var a=Wh(r).getComputedStyle(r),i=a.overflow,s=a.overflowClipMargin,o=a.borderTopWidth,l=a.borderBottomWidth,u=a.borderLeftWidth,d=a.borderRightWidth,f=r.getBoundingClientRect(),g=r.offsetHeight,p=r.clientHeight,b=r.offsetWidth,y=r.clientWidth,x=cf(o),S=cf(l),C=cf(u),O=cf(d),D=hh(Math.round(f.width/b*1e3)/1e3),M=hh(Math.round(f.height/g*1e3)/1e3),A=(b-y-C-O)*D,T=(g-p-x-S)*M,P=x*M,R=S*M,N=C*D,I=O*D,$=0,Y=0;if(i==="clip"){var k=cf(s);$=k*D,Y=k*M}var H=f.x+N-$,F=f.y+P-Y,B=H+f.width+2*$-N-I-A,X=F+f.height+2*Y-P-R-T;t.left=Math.max(t.left,H),t.top=Math.max(t.top,F),t.right=Math.min(t.right,B),t.bottom=Math.min(t.bottom,X)}}),t}function UP(n){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,t="".concat(e),r=t.match(/^(.*)\%$/);return r?n*(parseFloat(r[1])/100):parseFloat(t)}function GP(n,e){var t=e||[],r=le(t,2),a=r[0],i=r[1];return[UP(n.width,a),UP(n.height,i)]}function ZP(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"";return[n[0],n[1]]}function Fc(n,e){var t=e[0],r=e[1],a,i;return t==="t"?i=n.y:t==="b"?i=n.y+n.height:i=n.y+n.height/2,r==="l"?a=n.x:r==="r"?a=n.x+n.width:a=n.x+n.width/2,{x:a,y:i}}function ao(n,e){var t={t:"b",b:"t",l:"r",r:"l"};return n.map(function(r,a){return a===e?t[r]||"c":r}).join("")}function xte(n,e,t,r,a,i,s){var o=E.useState({ready:!1,offsetX:0,offsetY:0,offsetR:0,offsetB:0,arrowX:0,arrowY:0,scaleX:1,scaleY:1,align:a[r]||{}}),l=le(o,2),u=l[0],d=l[1],f=E.useRef(0),g=E.useMemo(function(){return e?QO(e):[]},[e]),p=E.useRef({}),b=function(){p.current={}};n||b();var y=cn(function(){if(e&&t&&n){let $t=function(Oa,or){var pr=arguments.length>2&&arguments[2]!==void 0?arguments[2]:Qe,Ba=j.x+Oa,Ya=j.y+or,Di=Ba+ye,Ea=Ya+me,Fr=Math.max(Ba,pr.left),Ye=Math.max(Ya,pr.top),dt=Math.min(Di,pr.right),Wt=Math.min(Ea,pr.bottom);return Math.max(0,(dt-Fr)*(Wt-Ye))},Zr=function(){Cn=j.y+nt,Et=Cn+me,Qn=j.x+it,Bn=Qn+ye};var C,O,D,M,A=e,T=A.ownerDocument,P=Wh(A),R=P.getComputedStyle(A),N=R.position,I=A.style.left,$=A.style.top,Y=A.style.right,k=A.style.bottom,H=A.style.overflow,F=se(se({},a[r]),i),B=T.createElement("div");(C=A.parentElement)===null||C===void 0||C.appendChild(B),B.style.left="".concat(A.offsetLeft,"px"),B.style.top="".concat(A.offsetTop,"px"),B.style.position=N,B.style.height="".concat(A.offsetHeight,"px"),B.style.width="".concat(A.offsetWidth,"px"),A.style.left="0",A.style.top="0",A.style.right="auto",A.style.bottom="auto",A.style.overflow="hidden";var X;if(Array.isArray(t))X={x:t[0],y:t[1],width:0,height:0};else{var Q,z,V=t.getBoundingClientRect();V.x=(Q=V.x)!==null&&Q!==void 0?Q:V.left,V.y=(z=V.y)!==null&&z!==void 0?z:V.top,X={x:V.x,y:V.y,width:V.width,height:V.height}}var j=A.getBoundingClientRect(),q=P.getComputedStyle(A),G=q.height,U=q.width;j.x=(O=j.x)!==null&&O!==void 0?O:j.left,j.y=(D=j.y)!==null&&D!==void 0?D:j.top;var K=T.documentElement,te=K.clientWidth,ne=K.clientHeight,ie=K.scrollWidth,ce=K.scrollHeight,ue=K.scrollTop,be=K.scrollLeft,me=j.height,ye=j.width,De=X.height,Ce=X.width,Le={left:0,top:0,right:te,bottom:ne},Ne={left:-be,top:-ue,right:ie-be,bottom:ce-ue},Ve=F.htmlRegion,ze="visible",$e="visibleFirst";Ve!=="scroll"&&Ve!==$e&&(Ve=ze);var Be=Ve===$e,ut=VP(Ne,g),He=VP(Le,g),Qe=Ve===ze?He:ut,Ee=Be?He:Qe;A.style.left="auto",A.style.top="auto",A.style.right="0",A.style.bottom="0";var st=A.getBoundingClientRect();A.style.left=I,A.style.top=$,A.style.right=Y,A.style.bottom=k,A.style.overflow=H,(M=A.parentElement)===null||M===void 0||M.removeChild(B);var ht=hh(Math.round(ye/parseFloat(U)*1e3)/1e3),at=hh(Math.round(me/parseFloat(G)*1e3)/1e3);if(ht===0||at===0||rh(t)&&!yM(t))return;var Ut=F.offset,Nt=F.targetOffset,Ue=GP(j,Ut),yt=le(Ue,2),Pe=yt[0],Fe=yt[1],We=GP(X,Nt),we=le(We,2),Ie=we[0],Dt=we[1];X.x-=Ie,X.y-=Dt;var At=F.points||[],Tt=le(At,2),vn=Tt[0],un=Tt[1],Jt=ZP(un),It=ZP(vn),Ct=Fc(X,Jt),Ge=Fc(j,It),ot=se({},F),it=Ct.x-Ge.x+Pe,nt=Ct.y-Ge.y+Fe,gt=$t(it,nt),jt=$t(it,nt,He),rn=Fc(X,["t","l"]),en=Fc(j,["t","l"]),dr=Fc(X,["b","r"]),fr=Fc(j,["b","r"]),zt=F.overflow||{},Gt=zt.adjustX,Sn=zt.adjustY,sn=zt.shiftX,Pn=zt.shiftY,Ln=function(or){return typeof or=="boolean"?or:or>=0},Cn,Et,Qn,Bn;Zr();var qn=Ln(Sn),Rt=It[0]===Jt[0];if(qn&&It[0]==="t"&&(Et>Ee.bottom||p.current.bt)){var Pr=nt;Rt?Pr-=me-De:Pr=rn.y-fr.y-Fe;var Lr=$t(it,Pr),rr=$t(it,Pr,He);Lr>gt||Lr===gt&&(!Be||rr>=jt)?(p.current.bt=!0,nt=Pr,Fe=-Fe,ot.points=[ao(It,0),ao(Jt,0)]):p.current.bt=!1}if(qn&&It[0]==="b"&&(Cn<Ee.top||p.current.tb)){var ar=nt;Rt?ar+=me-De:ar=dr.y-en.y-Fe;var ir=$t(it,ar),Sr=$t(it,ar,He);ir>gt||ir===gt&&(!Be||Sr>=jt)?(p.current.tb=!0,nt=ar,Fe=-Fe,ot.points=[ao(It,0),ao(Jt,0)]):p.current.tb=!1}var Yn=Ln(Gt),Xr=It[1]===Jt[1];if(Yn&&It[1]==="l"&&(Bn>Ee.right||p.current.rl)){var sr=it;Xr?sr-=ye-Ce:sr=rn.x-fr.x-Pe;var Xn=$t(sr,nt),Nr=$t(sr,nt,He);Xn>gt||Xn===gt&&(!Be||Nr>=jt)?(p.current.rl=!0,it=sr,Pe=-Pe,ot.points=[ao(It,1),ao(Jt,1)]):p.current.rl=!1}if(Yn&&It[1]==="r"&&(Qn<Ee.left||p.current.lr)){var hr=it;Xr?hr+=ye-Ce:hr=dr.x-en.x-Pe;var aa=$t(hr,nt),Ir=$t(hr,nt,He);aa>gt||aa===gt&&(!Be||Ir>=jt)?(p.current.lr=!0,it=hr,Pe=-Pe,ot.points=[ao(It,1),ao(Jt,1)]):p.current.lr=!1}Zr();var on=sn===!0?0:sn;typeof on=="number"&&(Qn<He.left&&(it-=Qn-He.left-Pe,X.x+Ce<He.left+on&&(it+=X.x-He.left+Ce-on)),Bn>He.right&&(it-=Bn-He.right-Pe,X.x>He.right-on&&(it+=X.x-He.right+on)));var gr=Pn===!0?0:Pn;typeof gr=="number"&&(Cn<He.top&&(nt-=Cn-He.top-Fe,X.y+De<He.top+gr&&(nt+=X.y-He.top+De-gr)),Et>He.bottom&&(nt-=Et-He.bottom-Fe,X.y>He.bottom-gr&&(nt+=X.y-He.bottom+gr)));var Cr=j.x+it,Kn=Cr+ye,Vr=j.y+nt,Ur=Vr+me,fa=X.x,In=fa+Ce,Gr=X.y,pt=Gr+De,lt=Math.max(Cr,fa),gn=Math.min(Kn,In),Jn=(lt+gn)/2,ia=Jn-Cr,$r=Math.max(Vr,Gr),si=Math.min(Ur,pt),za=($r+si)/2,Mt=za-Vr;s?.(e,ot);var Ke=st.right-j.x-(it+j.width),xt=st.bottom-j.y-(nt+j.height);ht===1&&(it=Math.round(it),Ke=Math.round(Ke)),at===1&&(nt=Math.round(nt),xt=Math.round(xt));var an={ready:!0,offsetX:it/ht,offsetY:nt/at,offsetR:Ke/ht,offsetB:xt/at,arrowX:ia/ht,arrowY:Mt/at,scaleX:ht,scaleY:at,align:ot};d(an)}}),x=function(){f.current+=1;var O=f.current;Promise.resolve().then(function(){f.current===O&&y()})},S=function(){d(function(O){return se(se({},O),{},{ready:!1})})};return $n(S,[r]),$n(function(){n||S()},[n]),[u.ready,u.offsetX,u.offsetY,u.offsetR,u.offsetB,u.arrowX,u.arrowY,u.scaleX,u.scaleY,u.align,x]}function wte(n,e,t,r,a){$n(function(){if(n&&e&&t){let f=function(){r(),a()};var i=e,s=t,o=QO(i),l=QO(s),u=Wh(s),d=new Set([u].concat(je(o),je(l)));return d.forEach(function(g){g.addEventListener("scroll",f,{passive:!0})}),u.addEventListener("resize",f,{passive:!0}),r(),function(){d.forEach(function(g){g.removeEventListener("scroll",f),u.removeEventListener("resize",f)})}}},[n,e,t])}function Ste(n,e,t,r,a,i,s,o){var l=E.useRef(n);l.current=n;var u=E.useRef(!1);E.useEffect(function(){if(e&&r&&(!a||i)){var f=function(){u.current=!1},g=function(x){var S;l.current&&!s(((S=x.composedPath)===null||S===void 0||(S=S.call(x))===null||S===void 0?void 0:S[0])||x.target)&&!u.current&&o(!1)},p=Wh(r);p.addEventListener("pointerdown",f,!0),p.addEventListener("mousedown",g,!0),p.addEventListener("contextmenu",g,!0);var b=Xm(t);return b&&(b.addEventListener("mousedown",g,!0),b.addEventListener("contextmenu",g,!0)),function(){p.removeEventListener("pointerdown",f,!0),p.removeEventListener("mousedown",g,!0),p.removeEventListener("contextmenu",g,!0),b&&(b.removeEventListener("mousedown",g,!0),b.removeEventListener("contextmenu",g,!0))}}},[e,t,r,a,i]);function d(){u.current=!0}return d}var Cte=["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 Ote(){var n=arguments.length>0&&arguments[0]!==void 0?arguments[0]:JY,e=E.forwardRef(function(t,r){var a=t.prefixCls,i=a===void 0?"rc-trigger-popup":a,s=t.children,o=t.action,l=o===void 0?"hover":o,u=t.showAction,d=t.hideAction,f=t.popupVisible,g=t.defaultPopupVisible,p=t.onPopupVisibleChange,b=t.afterPopupVisibleChange,y=t.mouseEnterDelay,x=t.mouseLeaveDelay,S=x===void 0?.1:x,C=t.focusDelay,O=t.blurDelay,D=t.mask,M=t.maskClosable,A=M===void 0?!0:M,T=t.getPopupContainer,P=t.forceRender,R=t.autoDestroy,N=t.destroyPopupOnHide,I=t.popup,$=t.popupClassName,Y=t.popupStyle,k=t.popupPlacement,H=t.builtinPlacements,F=H===void 0?{}:H,B=t.popupAlign,X=t.zIndex,Q=t.stretch,z=t.getPopupClassNameFromAlign,V=t.fresh,j=t.alignPoint,q=t.onPopupClick,G=t.onPopupAlign,U=t.arrow,K=t.popupMotion,te=t.maskMotion,ne=t.popupTransitionName,ie=t.popupAnimation,ce=t.maskTransitionName,ue=t.maskAnimation,be=t.className,me=t.getTriggerDOMNode,ye=zn(t,Cte),De=R||N||!1,Ce=E.useState(!1),Le=le(Ce,2),Ne=Le[0],Ve=Le[1];$n(function(){Ve(ete())},[]);var ze=E.useRef({}),$e=E.useContext(WP),Be=E.useMemo(function(){return{registerSubPopup:function(dt,Wt){ze.current[dt]=Wt,$e?.registerSubPopup(dt,Wt)}}},[$e]),ut=tee(),He=E.useState(null),Qe=le(He,2),Ee=Qe[0],st=Qe[1],ht=E.useRef(null),at=cn(function(Ye){ht.current=Ye,rh(Ye)&&Ee!==Ye&&st(Ye),$e?.registerSubPopup(ut,Ye)}),Ut=E.useState(null),Nt=le(Ut,2),Ue=Nt[0],yt=Nt[1],Pe=E.useRef(null),Fe=cn(function(Ye){rh(Ye)&&Ue!==Ye&&(yt(Ye),Pe.current=Ye)}),We=E.Children.only(s),we=We?.props||{},Ie={},Dt=cn(function(Ye){var dt,Wt,An=Ue;return An?.contains(Ye)||((dt=Xm(An))===null||dt===void 0?void 0:dt.host)===Ye||Ye===An||Ee?.contains(Ye)||((Wt=Xm(Ee))===null||Wt===void 0?void 0:Wt.host)===Ye||Ye===Ee||Object.values(ze.current).some(function(dn){return dn?.contains(Ye)||Ye===dn})}),At=XP(i,K,ie,ne),Tt=XP(i,te,ue,ce),vn=E.useState(g||!1),un=le(vn,2),Jt=un[0],It=un[1],Ct=f??Jt,Ge=cn(function(Ye){f===void 0&&It(Ye)});$n(function(){It(f||!1)},[f]);var ot=E.useRef(Ct);ot.current=Ct;var it=E.useRef([]);it.current=[];var nt=cn(function(Ye){var dt;Ge(Ye),((dt=it.current[it.current.length-1])!==null&&dt!==void 0?dt:Ct)!==Ye&&(it.current.push(Ye),p?.(Ye))}),gt=E.useRef(),jt=function(){clearTimeout(gt.current)},rn=function(dt){var Wt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;jt(),Wt===0?nt(dt):gt.current=setTimeout(function(){nt(dt)},Wt*1e3)};E.useEffect(function(){return jt},[]);var en=E.useState(!1),dr=le(en,2),fr=dr[0],zt=dr[1];$n(function(Ye){(!Ye||Ct)&&zt(!0)},[Ct]);var Gt=E.useState(null),Sn=le(Gt,2),sn=Sn[0],Pn=Sn[1],Ln=E.useState(null),Cn=le(Ln,2),Et=Cn[0],Qn=Cn[1],Bn=function(dt){Qn([dt.clientX,dt.clientY])},qn=xte(Ct,Ee,j&&Et!==null?Et:Ue,k,F,B,G),Rt=le(qn,11),Pr=Rt[0],Lr=Rt[1],rr=Rt[2],ar=Rt[3],ir=Rt[4],Sr=Rt[5],Yn=Rt[6],Xr=Rt[7],sr=Rt[8],Xn=Rt[9],Nr=Rt[10],hr=vte(Ne,l,u,d),aa=le(hr,2),Ir=aa[0],on=aa[1],gr=Ir.has("click"),Cr=on.has("click")||on.has("contextMenu"),Kn=cn(function(){fr||Nr()}),Vr=function(){ot.current&&j&&Cr&&rn(!1)};wte(Ct,Ue,Ee,Kn,Vr),$n(function(){Kn()},[Et,k]),$n(function(){Ct&&!(F!=null&&F[k])&&Kn()},[JSON.stringify(B)]);var Ur=E.useMemo(function(){var Ye=yte(F,i,Xn,j);return Te(Ye,z?.(Xn))},[Xn,z,F,i,j]);E.useImperativeHandle(r,function(){return{nativeElement:Pe.current,popupElement:ht.current,forceAlign:Kn}});var fa=E.useState(0),In=le(fa,2),Gr=In[0],pt=In[1],lt=E.useState(0),gn=le(lt,2),Jn=gn[0],ia=gn[1],$r=function(){if(Q&&Ue){var dt=Ue.getBoundingClientRect();pt(dt.width),ia(dt.height)}},si=function(){$r(),Kn()},za=function(dt){zt(!1),Nr(),b?.(dt)},Mt=function(){return new Promise(function(dt){$r(),Pn(function(){return dt})})};$n(function(){sn&&(Nr(),sn(),Pn(null))},[sn]);function Ke(Ye,dt,Wt,An){Ie[Ye]=function(dn){var oi;An?.(dn),rn(dt,Wt);for(var ja=arguments.length,li=new Array(ja>1?ja-1:0),ci=1;ci<ja;ci++)li[ci-1]=arguments[ci];(oi=we[Ye])===null||oi===void 0||oi.call.apply(oi,[we,dn].concat(li))}}(gr||Cr)&&(Ie.onClick=function(Ye){var dt;ot.current&&Cr?rn(!1):!ot.current&&gr&&(Bn(Ye),rn(!0));for(var Wt=arguments.length,An=new Array(Wt>1?Wt-1:0),dn=1;dn<Wt;dn++)An[dn-1]=arguments[dn];(dt=we.onClick)===null||dt===void 0||dt.call.apply(dt,[we,Ye].concat(An))});var xt=Ste(Ct,Cr,Ue,Ee,D,A,Dt,rn),an=Ir.has("hover"),$t=on.has("hover"),Zr,Oa;an&&(Ke("onMouseEnter",!0,y,function(Ye){Bn(Ye)}),Ke("onPointerEnter",!0,y,function(Ye){Bn(Ye)}),Zr=function(dt){(Ct||fr)&&Ee!==null&&Ee!==void 0&&Ee.contains(dt.target)&&rn(!0,y)},j&&(Ie.onMouseMove=function(Ye){var dt;(dt=we.onMouseMove)===null||dt===void 0||dt.call(we,Ye)})),$t&&(Ke("onMouseLeave",!1,S),Ke("onPointerLeave",!1,S),Oa=function(){rn(!1,S)}),Ir.has("focus")&&Ke("onFocus",!0,C),on.has("focus")&&Ke("onBlur",!1,O),Ir.has("contextMenu")&&(Ie.onContextMenu=function(Ye){var dt;ot.current&&on.has("contextMenu")?rn(!1):(Bn(Ye),rn(!0)),Ye.preventDefault();for(var Wt=arguments.length,An=new Array(Wt>1?Wt-1:0),dn=1;dn<Wt;dn++)An[dn-1]=arguments[dn];(dt=we.onContextMenu)===null||dt===void 0||dt.call.apply(dt,[we,Ye].concat(An))}),be&&(Ie.className=Te(we.className,be));var or=E.useRef(!1);or.current||(or.current=P||Ct||fr);var pr=se(se({},we),Ie),Ba={},Ya=["onContextMenu","onClick","onMouseDown","onTouchStart","onMouseEnter","onMouseLeave","onFocus","onBlur"];Ya.forEach(function(Ye){ye[Ye]&&(Ba[Ye]=function(){for(var dt,Wt=arguments.length,An=new Array(Wt),dn=0;dn<Wt;dn++)An[dn]=arguments[dn];(dt=pr[Ye])===null||dt===void 0||dt.call.apply(dt,[pr].concat(An)),ye[Ye].apply(ye,An)})});var Di=E.cloneElement(We,se(se({},pr),Ba)),Ea={x:Sr,y:Yn},Fr=U?se({},U!==!0?U:{}):null;return E.createElement(E.Fragment,null,E.createElement(_l,{disabled:!Ct,ref:Fe,onResize:si},E.createElement(mte,{getTriggerDOMNode:me},Di)),or.current&&E.createElement(WP.Provider,{value:Be},E.createElement(pte,{portal:n,ref:at,prefixCls:i,popup:I,className:Te($,Ur),style:Y,target:Ue,onMouseEnter:Zr,onMouseLeave:Oa,onPointerEnter:Zr,zIndex:X,open:Ct,keepDom:fr,fresh:V,onClick:q,onPointerDownCapture:xt,mask:D,motion:At,maskMotion:Tt,onVisibleChanged:za,onPrepare:Mt,forceRender:P,autoDestroy:De,getPopupContainer:T,align:Xn,arrow:Fr,arrowPos:Ea,ready:Pr,offsetX:Lr,offsetY:rr,offsetR:ar,offsetB:ir,onAlign:Kn,stretch:Q,targetWidth:Gr/Xr,targetHeight:Jn/sr})))});return e}const Ete=Ote(JY);function d3(n,e,t){return Te({[`${n}-status-success`]:e==="success",[`${n}-status-warning`]:e==="warning",[`${n}-status-error`]:e==="error",[`${n}-status-validating`]:e==="validating",[`${n}-has-feedback`]:t})}const f3=(n,e)=>e||n,h3=(n,e,t=void 0)=>{var r,a;const{variant:i,[n]:s}=E.useContext(Tr),o=E.useContext(Qee),l=s?.variant;let u;typeof e<"u"?u=e:t===!1?u="borderless":u=(a=(r=o??l)!==null&&r!==void 0?r:i)!==null&&a!==void 0?a:"outlined";const d=JG.includes(u);return[u,d]},Mte=n=>{const{multipleSelectItemHeight:e,paddingXXS:t,lineWidth:r,INTERNAL_FIXED_ITEM_MARGIN:a}=n,i=n.max(n.calc(t).sub(r).equal(),0),s=n.max(n.calc(i).sub(a).equal(),0);return{basePadding:i,containerPadding:s,itemHeight:Ze(e),itemLineHeight:Ze(n.calc(e).sub(n.calc(n.lineWidth).mul(2)).equal())}},Dte=n=>{const{componentCls:e,iconCls:t,borderRadiusSM:r,motionDurationSlow:a,paddingXS:i,multipleItemColorDisabled:s,multipleItemBorderColorDisabled:o,colorIcon:l,colorIconHover:u,INTERNAL_FIXED_ITEM_MARGIN:d}=n;return{[`${e}-selection-overflow`]:{position:"relative",display:"flex",flex:"auto",flexWrap:"wrap",maxWidth:"100%","&-item":{flex:"none",alignSelf:"center",maxWidth:"calc(100% - 4px)",display:"inline-flex"},[`${e}-selection-item`]:{display:"flex",alignSelf:"center",flex:"none",boxSizing:"border-box",maxWidth:"100%",marginBlock:d,borderRadius:r,cursor:"default",transition:`font-size ${a}, line-height ${a}, height ${a}`,marginInlineEnd:n.calc(d).mul(2).equal(),paddingInlineStart:i,paddingInlineEnd:n.calc(i).div(2).equal(),[`${e}-disabled&`]:{color:s,borderColor:o,cursor:"not-allowed"},"&-content":{display:"inline-block",marginInlineEnd:n.calc(i).div(2).equal(),overflow:"hidden",whiteSpace:"pre",textOverflow:"ellipsis"},"&-remove":Object.assign(Object.assign({},hM()),{display:"inline-flex",alignItems:"center",color:l,fontWeight:"bold",fontSize:10,lineHeight:"inherit",cursor:"pointer",[`> ${t}`]:{verticalAlign:"-0.2em"},"&:hover":{color:u}})}}}};var _te={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"},Ate=function(e,t){return E.createElement(ca,tt({},e,{ref:t,icon:_te}))},Tte=E.forwardRef(Ate),Rte={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"},Pte=function(e,t){return E.createElement(ca,tt({},e,{ref:t,icon:Rte}))},Lte=E.forwardRef(Pte),Nte={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"},Ite=function(e,t){return E.createElement(ca,tt({},e,{ref:t,icon:Nte}))},$te=E.forwardRef(Ite);function Fte({suffixIcon:n,clearIcon:e,menuItemSelectedIcon:t,removeIcon:r,loading:a,multiple:i,hasFeedback:s,prefixCls:o,showSuffixIcon:l,feedbackIcon:u,showArrow:d,componentName:f}){const g=e??E.createElement(_Y,null),p=S=>n===null&&!s&&!d?null:E.createElement(E.Fragment,null,l!==!1&&S,s&&u);let b=null;if(n!==void 0)b=p(n);else if(a)b=p(E.createElement(pM,{spin:!0}));else{const S=`${o}-suffix`;b=({open:C,showSearch:O})=>p(C&&O?E.createElement($te,{className:S}):E.createElement(Lte,{className:S}))}let y=null;t!==void 0?y=t:i?y=E.createElement(Tte,null):y=null;let x=null;return r!==void 0?x=r:x=E.createElement(AY,null),{clearIcon:g,suffixIcon:b,itemIcon:y,removeIcon:x}}function kte(n){const{sizePopupArrow:e,borderRadiusXS:t,borderRadiusOuter:r}=n,a=e/2,i=0,s=a,o=r*1/Math.sqrt(2),l=a-r*(1-1/Math.sqrt(2)),u=a-t*(1/Math.sqrt(2)),d=r*(Math.sqrt(2)-1)+t*(1/Math.sqrt(2)),f=2*a-u,g=d,p=2*a-o,b=l,y=2*a-i,x=s,S=a*Math.sqrt(2)+r*(Math.sqrt(2)-2),C=r*(Math.sqrt(2)-1),O=`polygon(${C}px 100%, 50% ${C}px, ${2*a-C}px 100%, ${C}px 100%)`,D=`path('M ${i} ${s} A ${r} ${r} 0 0 0 ${o} ${l} L ${u} ${d} A ${t} ${t} 0 0 1 ${f} ${g} L ${p} ${b} A ${r} ${r} 0 0 0 ${y} ${x} Z')`;return{arrowShadowWidth:S,arrowPath:D,arrowPolygon:O}}const Hte=(n,e,t)=>{const{sizePopupArrow:r,arrowPolygon:a,arrowPath:i,arrowShadowWidth:s,borderRadiusXS:o,calc:l}=n;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:e,clipPath:{_multi_value_:!0,value:[a,i]},content:'""'},"&::after":{content:'""',position:"absolute",width:s,height:s,bottom:0,insetInline:0,margin:"auto",borderRadius:{_skip_check_:!0,value:`0 0 ${Ze(o)} 0`},transform:"translateY(50%) rotate(-135deg)",boxShadow:t,zIndex:0,background:"transparent"}}};var wm={exports:{}},zte=wm.exports,QP;function Bte(){return QP||(QP=1,(function(n,e){(function(t,r){n.exports=r()})(zte,(function(){var t=1e3,r=6e4,a=36e5,i="millisecond",s="second",o="minute",l="hour",u="day",d="week",f="month",g="quarter",p="year",b="date",y="Invalid Date",x=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,S=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,C={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(k){var H=["th","st","nd","rd"],F=k%100;return"["+k+(H[(F-20)%10]||H[F]||H[0])+"]"}},O=function(k,H,F){var B=String(k);return!B||B.length>=H?k:""+Array(H+1-B.length).join(F)+k},D={s:O,z:function(k){var H=-k.utcOffset(),F=Math.abs(H),B=Math.floor(F/60),X=F%60;return(H<=0?"+":"-")+O(B,2,"0")+":"+O(X,2,"0")},m:function k(H,F){if(H.date()<F.date())return-k(F,H);var B=12*(F.year()-H.year())+(F.month()-H.month()),X=H.clone().add(B,f),Q=F-X<0,z=H.clone().add(B+(Q?-1:1),f);return+(-(B+(F-X)/(Q?X-z:z-X))||0)},a:function(k){return k<0?Math.ceil(k)||0:Math.floor(k)},p:function(k){return{M:f,y:p,w:d,d:u,D:b,h:l,m:o,s,ms:i,Q:g}[k]||String(k||"").toLowerCase().replace(/s$/,"")},u:function(k){return k===void 0}},M="en",A={};A[M]=C;var T="$isDayjsObject",P=function(k){return k instanceof $||!(!k||!k[T])},R=function k(H,F,B){var X;if(!H)return M;if(typeof H=="string"){var Q=H.toLowerCase();A[Q]&&(X=Q),F&&(A[Q]=F,X=Q);var z=H.split("-");if(!X&&z.length>1)return k(z[0])}else{var V=H.name;A[V]=H,X=V}return!B&&X&&(M=X),X||!B&&M},N=function(k,H){if(P(k))return k.clone();var F=typeof H=="object"?H:{};return F.date=k,F.args=arguments,new $(F)},I=D;I.l=R,I.i=P,I.w=function(k,H){return N(k,{locale:H.$L,utc:H.$u,x:H.$x,$offset:H.$offset})};var $=(function(){function k(F){this.$L=R(F.locale,null,!0),this.parse(F),this.$x=this.$x||F.x||{},this[T]=!0}var H=k.prototype;return H.parse=function(F){this.$d=(function(B){var X=B.date,Q=B.utc;if(X===null)return new Date(NaN);if(I.u(X))return new Date;if(X instanceof Date)return new Date(X);if(typeof X=="string"&&!/Z$/i.test(X)){var z=X.match(x);if(z){var V=z[2]-1||0,j=(z[7]||"0").substring(0,3);return Q?new Date(Date.UTC(z[1],V,z[3]||1,z[4]||0,z[5]||0,z[6]||0,j)):new Date(z[1],V,z[3]||1,z[4]||0,z[5]||0,z[6]||0,j)}}return new Date(X)})(F),this.init()},H.init=function(){var F=this.$d;this.$y=F.getFullYear(),this.$M=F.getMonth(),this.$D=F.getDate(),this.$W=F.getDay(),this.$H=F.getHours(),this.$m=F.getMinutes(),this.$s=F.getSeconds(),this.$ms=F.getMilliseconds()},H.$utils=function(){return I},H.isValid=function(){return this.$d.toString()!==y},H.isSame=function(F,B){var X=N(F);return this.startOf(B)<=X&&X<=this.endOf(B)},H.isAfter=function(F,B){return N(F)<this.startOf(B)},H.isBefore=function(F,B){return this.endOf(B)<N(F)},H.$g=function(F,B,X){return I.u(F)?this[B]:this.set(X,F)},H.unix=function(){return Math.floor(this.valueOf()/1e3)},H.valueOf=function(){return this.$d.getTime()},H.startOf=function(F,B){var X=this,Q=!!I.u(B)||B,z=I.p(F),V=function(ie,ce){var ue=I.w(X.$u?Date.UTC(X.$y,ce,ie):new Date(X.$y,ce,ie),X);return Q?ue:ue.endOf(u)},j=function(ie,ce){return I.w(X.toDate()[ie].apply(X.toDate("s"),(Q?[0,0,0,0]:[23,59,59,999]).slice(ce)),X)},q=this.$W,G=this.$M,U=this.$D,K="set"+(this.$u?"UTC":"");switch(z){case p:return Q?V(1,0):V(31,11);case f:return Q?V(1,G):V(0,G+1);case d:var te=this.$locale().weekStart||0,ne=(q<te?q+7:q)-te;return V(Q?U-ne:U+(6-ne),G);case u:case b:return j(K+"Hours",0);case l:return j(K+"Minutes",1);case o:return j(K+"Seconds",2);case s:return j(K+"Milliseconds",3);default:return this.clone()}},H.endOf=function(F){return this.startOf(F,!1)},H.$set=function(F,B){var X,Q=I.p(F),z="set"+(this.$u?"UTC":""),V=(X={},X[u]=z+"Date",X[b]=z+"Date",X[f]=z+"Month",X[p]=z+"FullYear",X[l]=z+"Hours",X[o]=z+"Minutes",X[s]=z+"Seconds",X[i]=z+"Milliseconds",X)[Q],j=Q===u?this.$D+(B-this.$W):B;if(Q===f||Q===p){var q=this.clone().set(b,1);q.$d[V](j),q.init(),this.$d=q.set(b,Math.min(this.$D,q.daysInMonth())).$d}else V&&this.$d[V](j);return this.init(),this},H.set=function(F,B){return this.clone().$set(F,B)},H.get=function(F){return this[I.p(F)]()},H.add=function(F,B){var X,Q=this;F=Number(F);var z=I.p(B),V=function(G){var U=N(Q);return I.w(U.date(U.date()+Math.round(G*F)),Q)};if(z===f)return this.set(f,this.$M+F);if(z===p)return this.set(p,this.$y+F);if(z===u)return V(1);if(z===d)return V(7);var j=(X={},X[o]=r,X[l]=a,X[s]=t,X)[z]||1,q=this.$d.getTime()+F*j;return I.w(q,this)},H.subtract=function(F,B){return this.add(-1*F,B)},H.format=function(F){var B=this,X=this.$locale();if(!this.isValid())return X.invalidDate||y;var Q=F||"YYYY-MM-DDTHH:mm:ssZ",z=I.z(this),V=this.$H,j=this.$m,q=this.$M,G=X.weekdays,U=X.months,K=X.meridiem,te=function(ce,ue,be,me){return ce&&(ce[ue]||ce(B,Q))||be[ue].slice(0,me)},ne=function(ce){return I.s(V%12||12,ce,"0")},ie=K||function(ce,ue,be){var me=ce<12?"AM":"PM";return be?me.toLowerCase():me};return Q.replace(S,(function(ce,ue){return ue||(function(be){switch(be){case"YY":return String(B.$y).slice(-2);case"YYYY":return I.s(B.$y,4,"0");case"M":return q+1;case"MM":return I.s(q+1,2,"0");case"MMM":return te(X.monthsShort,q,U,3);case"MMMM":return te(U,q);case"D":return B.$D;case"DD":return I.s(B.$D,2,"0");case"d":return String(B.$W);case"dd":return te(X.weekdaysMin,B.$W,G,2);case"ddd":return te(X.weekdaysShort,B.$W,G,3);case"dddd":return G[B.$W];case"H":return String(V);case"HH":return I.s(V,2,"0");case"h":return ne(1);case"hh":return ne(2);case"a":return ie(V,j,!0);case"A":return ie(V,j,!1);case"m":return String(j);case"mm":return I.s(j,2,"0");case"s":return String(B.$s);case"ss":return I.s(B.$s,2,"0");case"SSS":return I.s(B.$ms,3,"0");case"Z":return z}return null})(ce)||z.replace(":","")}))},H.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},H.diff=function(F,B,X){var Q,z=this,V=I.p(B),j=N(F),q=(j.utcOffset()-this.utcOffset())*r,G=this-j,U=function(){return I.m(z,j)};switch(V){case p:Q=U()/12;break;case f:Q=U();break;case g:Q=U()/3;break;case d:Q=(G-q)/6048e5;break;case u:Q=(G-q)/864e5;break;case l:Q=G/a;break;case o:Q=G/r;break;case s:Q=G/t;break;default:Q=G}return X?Q:I.a(Q)},H.daysInMonth=function(){return this.endOf(f).$D},H.$locale=function(){return A[this.$L]},H.locale=function(F,B){if(!F)return this.$L;var X=this.clone(),Q=R(F,B,!0);return Q&&(X.$L=Q),X},H.clone=function(){return I.w(this.$d,this)},H.toDate=function(){return new Date(this.valueOf())},H.toJSON=function(){return this.isValid()?this.toISOString():null},H.toISOString=function(){return this.$d.toISOString()},H.toString=function(){return this.$d.toUTCString()},k})(),Y=$.prototype;return N.prototype=Y,[["$ms",i],["$s",s],["$m",o],["$H",l],["$W",u],["$M",f],["$y",p],["$D",b]].forEach((function(k){Y[k[1]]=function(H){return this.$g(H,k[0],k[1])}})),N.extend=function(k,H){return k.$i||(k(H,$,N),k.$i=!0),N},N.locale=R,N.isDayjs=P,N.unix=function(k){return N(1e3*k)},N.en=A[M],N.Ls=A,N.p={},N}))})(wm)),wm.exports}var Yte=Bte();const ma=qr(Yte);var Sm={exports:{}},jte=Sm.exports,KP;function Wte(){return KP||(KP=1,(function(n,e){(function(t,r){n.exports=r()})(jte,(function(){return function(t,r){r.prototype.weekday=function(a){var i=this.$locale().weekStart||0,s=this.$W,o=(s<i?s+7:s)-i;return this.$utils().u(a)?o:this.subtract(o,"day").add(a,"day")}}}))})(Sm)),Sm.exports}var qte=Wte();const Xte=qr(qte);var Cm={exports:{}},Vte=Cm.exports,JP;function Ute(){return JP||(JP=1,(function(n,e){(function(t,r){n.exports=r()})(Vte,(function(){return function(t,r,a){var i=r.prototype,s=function(f){return f&&(f.indexOf?f:f.s)},o=function(f,g,p,b,y){var x=f.name?f:f.$locale(),S=s(x[g]),C=s(x[p]),O=S||C.map((function(M){return M.slice(0,b)}));if(!y)return O;var D=x.weekStart;return O.map((function(M,A){return O[(A+(D||0))%7]}))},l=function(){return a.Ls[a.locale()]},u=function(f,g){return f.formats[g]||(function(p){return p.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(b,y,x){return y||x.slice(1)}))})(f.formats[g.toUpperCase()])},d=function(){var f=this;return{months:function(g){return g?g.format("MMMM"):o(f,"months")},monthsShort:function(g){return g?g.format("MMM"):o(f,"monthsShort","months",3)},firstDayOfWeek:function(){return f.$locale().weekStart||0},weekdays:function(g){return g?g.format("dddd"):o(f,"weekdays")},weekdaysMin:function(g){return g?g.format("dd"):o(f,"weekdaysMin","weekdays",2)},weekdaysShort:function(g){return g?g.format("ddd"):o(f,"weekdaysShort","weekdays",3)},longDateFormat:function(g){return u(f.$locale(),g)},meridiem:this.$locale().meridiem,ordinal:this.$locale().ordinal}};i.localeData=function(){return d.bind(this)()},a.localeData=function(){var f=l();return{firstDayOfWeek:function(){return f.weekStart||0},weekdays:function(){return a.weekdays()},weekdaysShort:function(){return a.weekdaysShort()},weekdaysMin:function(){return a.weekdaysMin()},months:function(){return a.months()},monthsShort:function(){return a.monthsShort()},longDateFormat:function(g){return u(f,g)},meridiem:f.meridiem,ordinal:f.ordinal}},a.months=function(){return o(l(),"months")},a.monthsShort=function(){return o(l(),"monthsShort","months",3)},a.weekdays=function(f){return o(l(),"weekdays",null,null,f)},a.weekdaysShort=function(f){return o(l(),"weekdaysShort","weekdays",3,f)},a.weekdaysMin=function(f){return o(l(),"weekdaysMin","weekdays",2,f)}}}))})(Cm)),Cm.exports}var Gte=Ute();const Zte=qr(Gte);var Om={exports:{}},Qte=Om.exports,e2;function Kte(){return e2||(e2=1,(function(n,e){(function(t,r){n.exports=r()})(Qte,(function(){var t="week",r="year";return function(a,i,s){var o=i.prototype;o.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=s(this).startOf(r).add(1,r).date(u),f=s(this).endOf(t);if(d.isBefore(f))return 1}var g=s(this).startOf(r).date(u).startOf(t).subtract(1,"millisecond"),p=this.diff(g,t,!0);return p<0?s(this).startOf("week").week():Math.ceil(p)},o.weeks=function(l){return l===void 0&&(l=null),this.week(l)}}}))})(Om)),Om.exports}var Jte=Kte();const ene=qr(Jte);var Em={exports:{}},tne=Em.exports,t2;function nne(){return t2||(t2=1,(function(n,e){(function(t,r){n.exports=r()})(tne,(function(){return function(t,r){r.prototype.weekYear=function(){var a=this.month(),i=this.week(),s=this.year();return i===1&&a===11?s+1:a===0&&i>=52?s-1:s}}}))})(Em)),Em.exports}var rne=nne();const ane=qr(rne);var Mm={exports:{}},ine=Mm.exports,n2;function sne(){return n2||(n2=1,(function(n,e){(function(t,r){n.exports=r()})(ine,(function(){return function(t,r){var a=r.prototype,i=a.format;a.format=function(s){var o=this,l=this.$locale();if(!this.isValid())return i.bind(this)(s);var u=this.$utils(),d=(s||"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((o.$M+1)/3);case"Do":return l.ordinal(o.$D);case"gggg":return o.weekYear();case"GGGG":return o.isoWeekYear();case"wo":return l.ordinal(o.week(),"W");case"w":case"ww":return u.s(o.week(),f==="w"?1:2,"0");case"W":case"WW":return u.s(o.isoWeek(),f==="W"?1:2,"0");case"k":case"kk":return u.s(String(o.$H===0?24:o.$H),f==="k"?1:2,"0");case"X":return Math.floor(o.$d.getTime()/1e3);case"x":return o.$d.getTime();case"z":return"["+o.offsetName()+"]";case"zzz":return"["+o.offsetName("long")+"]";default:return f}}));return i.bind(this)(d)}}}))})(Mm)),Mm.exports}var one=sne();const lne=qr(one);var Dm={exports:{}},cne=Dm.exports,r2;function une(){return r2||(r2=1,(function(n,e){(function(t,r){n.exports=r()})(cne,(function(){var t={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,a=/\d/,i=/\d\d/,s=/\d\d?/,o=/\d*[^-_:/,()\s\d]+/,l={},u=function(x){return(x=+x)+(x>68?1900:2e3)},d=function(x){return function(S){this[x]=+S}},f=[/[+-]\d\d:?(\d\d)?|Z/,function(x){(this.zone||(this.zone={})).offset=(function(S){if(!S||S==="Z")return 0;var C=S.match(/([+-]|\d\d)/g),O=60*C[1]+(+C[2]||0);return O===0?0:C[0]==="+"?-O:O})(x)}],g=function(x){var S=l[x];return S&&(S.indexOf?S:S.s.concat(S.f))},p=function(x,S){var C,O=l.meridiem;if(O){for(var D=1;D<=24;D+=1)if(x.indexOf(O(D,0,S))>-1){C=D>12;break}}else C=x===(S?"pm":"PM");return C},b={A:[o,function(x){this.afternoon=p(x,!1)}],a:[o,function(x){this.afternoon=p(x,!0)}],Q:[a,function(x){this.month=3*(x-1)+1}],S:[a,function(x){this.milliseconds=100*+x}],SS:[i,function(x){this.milliseconds=10*+x}],SSS:[/\d{3}/,function(x){this.milliseconds=+x}],s:[s,d("seconds")],ss:[s,d("seconds")],m:[s,d("minutes")],mm:[s,d("minutes")],H:[s,d("hours")],h:[s,d("hours")],HH:[s,d("hours")],hh:[s,d("hours")],D:[s,d("day")],DD:[i,d("day")],Do:[o,function(x){var S=l.ordinal,C=x.match(/\d+/);if(this.day=C[0],S)for(var O=1;O<=31;O+=1)S(O).replace(/\[|\]/g,"")===x&&(this.day=O)}],w:[s,d("week")],ww:[i,d("week")],M:[s,d("month")],MM:[i,d("month")],MMM:[o,function(x){var S=g("months"),C=(g("monthsShort")||S.map((function(O){return O.slice(0,3)}))).indexOf(x)+1;if(C<1)throw new Error;this.month=C%12||C}],MMMM:[o,function(x){var S=g("months").indexOf(x)+1;if(S<1)throw new Error;this.month=S%12||S}],Y:[/[+-]?\d+/,d("year")],YY:[i,function(x){this.year=u(x)}],YYYY:[/\d{4}/,d("year")],Z:f,ZZ:f};function y(x){var S,C;S=x,C=l&&l.formats;for(var O=(x=S.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(N,I,$){var Y=$&&$.toUpperCase();return I||C[$]||t[$]||C[Y].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(k,H,F){return H||F.slice(1)}))}))).match(r),D=O.length,M=0;M<D;M+=1){var A=O[M],T=b[A],P=T&&T[0],R=T&&T[1];O[M]=R?{regex:P,parser:R}:A.replace(/^\[|\]$/g,"")}return function(N){for(var I={},$=0,Y=0;$<D;$+=1){var k=O[$];if(typeof k=="string")Y+=k.length;else{var H=k.regex,F=k.parser,B=N.slice(Y),X=H.exec(B)[0];F.call(I,X),N=N.replace(X,"")}}return(function(Q){var z=Q.afternoon;if(z!==void 0){var V=Q.hours;z?V<12&&(Q.hours+=12):V===12&&(Q.hours=0),delete Q.afternoon}})(I),I}}return function(x,S,C){C.p.customParseFormat=!0,x&&x.parseTwoDigitYear&&(u=x.parseTwoDigitYear);var O=S.prototype,D=O.parse;O.parse=function(M){var A=M.date,T=M.utc,P=M.args;this.$u=T;var R=P[1];if(typeof R=="string"){var N=P[2]===!0,I=P[3]===!0,$=N||I,Y=P[2];I&&(Y=P[2]),l=this.$locale(),!N&&Y&&(l=C.Ls[Y]),this.$d=(function(B,X,Q,z){try{if(["x","X"].indexOf(X)>-1)return new Date((X==="X"?1e3:1)*B);var V=y(X)(B),j=V.year,q=V.month,G=V.day,U=V.hours,K=V.minutes,te=V.seconds,ne=V.milliseconds,ie=V.zone,ce=V.week,ue=new Date,be=G||(j||q?1:ue.getDate()),me=j||ue.getFullYear(),ye=0;j&&!q||(ye=q>0?q-1:ue.getMonth());var De,Ce=U||0,Le=K||0,Ne=te||0,Ve=ne||0;return ie?new Date(Date.UTC(me,ye,be,Ce,Le,Ne,Ve+60*ie.offset*1e3)):Q?new Date(Date.UTC(me,ye,be,Ce,Le,Ne,Ve)):(De=new Date(me,ye,be,Ce,Le,Ne,Ve),ce&&(De=z(De).week(ce).toDate()),De)}catch{return new Date("")}})(A,R,T,C),this.init(),Y&&Y!==!0&&(this.$L=this.locale(Y).$L),$&&A!=this.format(R)&&(this.$d=new Date("")),l={}}else if(R instanceof Array)for(var k=R.length,H=1;H<=k;H+=1){P[1]=R[H-1];var F=C.apply(this,P);if(F.isValid()){this.$d=F.$d,this.$L=F.$L,this.init();break}H===k&&(this.$d=new Date(""))}else D.call(this,M)}}}))})(Dm)),Dm.exports}var dne=une();const fne=qr(dne);ma.extend(fne);ma.extend(lne);ma.extend(Xte);ma.extend(Zte);ma.extend(ene);ma.extend(ane);ma.extend(function(n,e){var t=e.prototype,r=t.format;t.format=function(i){var s=(i||"").replace("Wo","wo");return r.bind(this)(s)}});var hne={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"},nl=function(e){var t=hne[e];return t||e.split("_")[0]},gne={getNow:function(){var e=ma();return typeof e.tz=="function"?e.tz():e},getFixedDate:function(e){return ma(e,["YYYY-M-DD","YYYY-MM-DD"])},getEndDate:function(e){return e.endOf("month")},getWeekDay:function(e){var t=e.locale("en");return t.weekday()+t.localeData().firstDayOfWeek()},getYear:function(e){return e.year()},getMonth:function(e){return e.month()},getDate:function(e){return e.date()},getHour:function(e){return e.hour()},getMinute:function(e){return e.minute()},getSecond:function(e){return e.second()},getMillisecond:function(e){return e.millisecond()},addYear:function(e,t){return e.add(t,"year")},addMonth:function(e,t){return e.add(t,"month")},addDate:function(e,t){return e.add(t,"day")},setYear:function(e,t){return e.year(t)},setMonth:function(e,t){return e.month(t)},setDate:function(e,t){return e.date(t)},setHour:function(e,t){return e.hour(t)},setMinute:function(e,t){return e.minute(t)},setSecond:function(e,t){return e.second(t)},setMillisecond:function(e,t){return e.millisecond(t)},isAfter:function(e,t){return e.isAfter(t)},isValidate:function(e){return e.isValid()},locale:{getWeekFirstDay:function(e){return ma().locale(nl(e)).localeData().firstDayOfWeek()},getWeekFirstDate:function(e,t){return t.locale(nl(e)).weekday(0)},getWeek:function(e,t){return t.locale(nl(e)).week()},getShortWeekDays:function(e){return ma().locale(nl(e)).localeData().weekdaysMin()},getShortMonths:function(e){return ma().locale(nl(e)).localeData().monthsShort()},format:function(e,t,r){return t.locale(nl(e)).format(r)},parse:function(e,t,r){for(var a=nl(e),i=0;i<r.length;i+=1){var s=r[i],o=t;if(s.includes("wo")||s.includes("Wo")){for(var l=o.split("-")[0],u=o.split("-")[1],d=ma(l,"YYYY").startOf("year").locale(a),f=0;f<=52;f+=1){var g=d.add(f,"week");if(g.format("Wo")===u)return g}return null}var p=ma(o,s,!0).locale(a);if(p.isValid())return p}return null}}};function pne(n,e){return n!==void 0?n:e?"bottomRight":"bottomLeft"}var Mi=E.createContext(null),mne={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 g3(n){var e=n.popupElement,t=n.popupStyle,r=n.popupClassName,a=n.popupAlign,i=n.transitionName,s=n.getPopupContainer,o=n.children,l=n.range,u=n.placement,d=n.builtinPlacements,f=d===void 0?mne:d,g=n.direction,p=n.visible,b=n.onClose,y=E.useContext(Mi),x=y.prefixCls,S="".concat(x,"-dropdown"),C=pne(u,g==="rtl");return E.createElement(Ete,{showAction:[],hideAction:["click"],popupPlacement:C,builtinPlacements:f,prefixCls:S,popupTransitionName:i,popup:e,popupAlign:a,popupVisible:p,popupClassName:Te(r,ae(ae({},"".concat(S,"-range"),l),"".concat(S,"-rtl"),g==="rtl")),popupStyle:t,stretch:"minWidth",getPopupContainer:s,onPopupVisibleChange:function(D){D||b()}},o)}function MM(n,e){for(var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"0",r=String(n);r.length<e;)r="".concat(t).concat(r);return r}function Pl(n){return n==null?[]:Array.isArray(n)?n:[n]}function Uf(n,e,t){var r=je(n);return r[e]=t,r}function Lv(n,e){var t={},r=e||Object.keys(n);return r.forEach(function(a){n[a]!==void 0&&(t[a]=n[a])}),t}function p3(n,e,t){if(t)return t;switch(n){case"time":return e.fieldTimeFormat;case"datetime":return e.fieldDateTimeFormat;case"month":return e.fieldMonthFormat;case"year":return e.fieldYearFormat;case"quarter":return e.fieldQuarterFormat;case"week":return e.fieldWeekFormat;default:return e.fieldDateFormat}}function m3(n,e,t){var r=t!==void 0?t:e[e.length-1],a=e.find(function(i){return n[i]});return r!==a?n[a]:void 0}function v3(n){return Lv(n,["placement","builtinPlacements","popupAlign","getPopupContainer","transitionName","direction"])}function DM(n,e,t,r){var a=E.useMemo(function(){return n||function(s,o){var l=s;return e&&o.type==="date"?e(l,o.today):t&&o.type==="month"?t(l,o.locale):o.originNode}},[n,t,e]),i=E.useCallback(function(s,o){return a(s,se(se({},o),{},{range:r}))},[a,r]);return i}function b3(n,e){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],r=E.useState([!1,!1]),a=le(r,2),i=a[0],s=a[1],o=function(d,f){s(function(g){return Uf(g,f,d)})},l=E.useMemo(function(){return i.map(function(u,d){if(u)return!0;var f=n[d];return f?!!(!t[d]&&!f||f&&e(f,{activeIndex:d})):!1})},[n,i,e,t]);return[l,o]}function y3(n,e,t,r,a){var i="",s=[];return n&&s.push(a?"hh":"HH"),e&&s.push("mm"),t&&s.push("ss"),i=s.join(":"),r&&(i+=".SSS"),a&&(i+=" A"),i}function vne(n,e,t,r,a,i){var s=n.fieldDateTimeFormat,o=n.fieldDateFormat,l=n.fieldTimeFormat,u=n.fieldMonthFormat,d=n.fieldYearFormat,f=n.fieldWeekFormat,g=n.fieldQuarterFormat,p=n.yearFormat,b=n.cellYearFormat,y=n.cellQuarterFormat,x=n.dayFormat,S=n.cellDateFormat,C=y3(e,t,r,a,i);return se(se({},n),{},{fieldDateTimeFormat:s||"YYYY-MM-DD ".concat(C),fieldDateFormat:o||"YYYY-MM-DD",fieldTimeFormat:l||C,fieldMonthFormat:u||"YYYY-MM",fieldYearFormat:d||"YYYY",fieldWeekFormat:f||"gggg-wo",fieldQuarterFormat:g||"YYYY-[Q]Q",yearFormat:p||"YYYY",cellYearFormat:b||"YYYY",cellQuarterFormat:y||"[Q]Q",cellDateFormat:S||x||"D"})}function x3(n,e){var t=e.showHour,r=e.showMinute,a=e.showSecond,i=e.showMillisecond,s=e.use12Hours;return pe.useMemo(function(){return vne(n,t,r,a,i,s)},[n,t,r,a,i,s])}function uf(n,e,t){return t??e.some(function(r){return n.includes(r)})}var bne=["showNow","showHour","showMinute","showSecond","showMillisecond","use12Hours","hourStep","minuteStep","secondStep","millisecondStep","hideDisabledOptions","defaultValue","disabledHours","disabledMinutes","disabledSeconds","disabledMilliseconds","disabledTime","changeOnScroll","defaultOpenValue"];function yne(n){var e=Lv(n,bne),t=n.format,r=n.picker,a=null;return t&&(a=t,Array.isArray(a)&&(a=a[0]),a=vt(a)==="object"?a.format:a),r==="time"&&(e.format=a),[e,a]}function xne(n){return n&&typeof n=="string"}function w3(n,e,t,r){return[n,e,t,r].some(function(a){return a!==void 0})}function S3(n,e,t,r,a){var i=e,s=t,o=r;if(!n&&!i&&!s&&!o&&!a)i=!0,s=!0,o=!0;else if(n){var l,u,d,f=[i,s,o].some(function(b){return b===!1}),g=[i,s,o].some(function(b){return b===!0}),p=f?!0:!g;i=(l=i)!==null&&l!==void 0?l:p,s=(u=s)!==null&&u!==void 0?u:p,o=(d=o)!==null&&d!==void 0?d:p}return[i,s,o,a]}function C3(n){var e=n.showTime,t=yne(n),r=le(t,2),a=r[0],i=r[1],s=e&&vt(e)==="object"?e:{},o=se(se({defaultOpenValue:s.defaultOpenValue||s.defaultValue},a),s),l=o.showMillisecond,u=o.showHour,d=o.showMinute,f=o.showSecond,g=w3(u,d,f,l),p=S3(g,u,d,f,l),b=le(p,3);return u=b[0],d=b[1],f=b[2],[o,se(se({},o),{},{showHour:u,showMinute:d,showSecond:f,showMillisecond:l}),o.format,i]}function O3(n,e,t,r,a){var i=n==="time";if(n==="datetime"||i){for(var s=r,o=p3(n,a,null),l=o,u=[e,t],d=0;d<u.length;d+=1){var f=Pl(u[d])[0];if(xne(f)){l=f;break}}var g=s.showHour,p=s.showMinute,b=s.showSecond,y=s.showMillisecond,x=s.use12Hours,S=uf(l,["a","A","LT","LLL","LTS"],x),C=w3(g,p,b,y);C||(g=uf(l,["H","h","k","LT","LLL"]),p=uf(l,["m","LT","LLL"]),b=uf(l,["s","LTS"]),y=uf(l,["SSS"]));var O=S3(C,g,p,b,y),D=le(O,3);g=D[0],p=D[1],b=D[2];var M=e||y3(g,p,b,y,S);return se(se({},s),{},{format:M,showHour:g,showMinute:p,showSecond:b,showMillisecond:y,use12Hours:S})}return null}function wne(n,e,t){if(e===!1)return null;var r=e&&vt(e)==="object"?e:{};return r.clearIcon||t||E.createElement("span",{className:"".concat(n,"-clear-btn")})}var Ry=7;function Eo(n,e,t){return!n&&!e||n===e?!0:!n||!e?!1:t()}function KO(n,e,t){return Eo(e,t,function(){var r=Math.floor(n.getYear(e)/10),a=Math.floor(n.getYear(t)/10);return r===a})}function Cl(n,e,t){return Eo(e,t,function(){return n.getYear(e)===n.getYear(t)})}function a2(n,e){var t=Math.floor(n.getMonth(e)/3);return t+1}function Sne(n,e,t){return Eo(e,t,function(){return Cl(n,e,t)&&a2(n,e)===a2(n,t)})}function _M(n,e,t){return Eo(e,t,function(){return Cl(n,e,t)&&n.getMonth(e)===n.getMonth(t)})}function AM(n,e,t){return Eo(e,t,function(){return Cl(n,e,t)&&_M(n,e,t)&&n.getDate(e)===n.getDate(t)})}function E3(n,e,t){return Eo(e,t,function(){return n.getHour(e)===n.getHour(t)&&n.getMinute(e)===n.getMinute(t)&&n.getSecond(e)===n.getSecond(t)})}function M3(n,e,t){return Eo(e,t,function(){return AM(n,e,t)&&E3(n,e,t)&&n.getMillisecond(e)===n.getMillisecond(t)})}function $f(n,e,t,r){return Eo(t,r,function(){var a=n.locale.getWeekFirstDate(e,t),i=n.locale.getWeekFirstDate(e,r);return Cl(n,a,i)&&n.locale.getWeek(e,t)===n.locale.getWeek(e,r)})}function na(n,e,t,r,a){switch(a){case"date":return AM(n,t,r);case"week":return $f(n,e.locale,t,r);case"month":return _M(n,t,r);case"quarter":return Sne(n,t,r);case"year":return Cl(n,t,r);case"decade":return KO(n,t,r);case"time":return E3(n,t,r);default:return M3(n,t,r)}}function Nv(n,e,t,r){return!e||!t||!r?!1:n.isAfter(r,e)&&n.isAfter(t,r)}function cp(n,e,t,r,a){return na(n,e,t,r,a)?!0:n.isAfter(t,r)}function Cne(n,e,t){var r=e.locale.getWeekFirstDay(n),a=e.setDate(t,1),i=e.getWeekDay(a),s=e.addDate(a,r-i);return e.getMonth(s)===e.getMonth(t)&&e.getDate(s)>1&&(s=e.addDate(s,-7)),s}function br(n,e){var t=e.generateConfig,r=e.locale,a=e.format;return n?typeof a=="function"?a(n):t.locale.format(r.locale,n,a):""}function Km(n,e,t){var r=e,a=["getHour","getMinute","getSecond","getMillisecond"],i=["setHour","setMinute","setSecond","setMillisecond"];return i.forEach(function(s,o){t?r=n[s](r,n[a[o]](t)):r=n[s](r,0)}),r}function One(n,e,t,r,a){var i=cn(function(s,o){return!!(t&&t(s,o)||r&&n.isAfter(r,s)&&!na(n,e,r,s,o.type)||a&&n.isAfter(s,a)&&!na(n,e,a,s,o.type))});return i}function Ene(n,e,t){return E.useMemo(function(){var r=p3(n,e,t),a=Pl(r),i=a[0],s=vt(i)==="object"&&i.type==="mask"?i.format:null;return[a.map(function(o){return typeof o=="string"||typeof o=="function"?o:o.format}),s]},[n,e,t])}function Mne(n,e,t){return typeof n[0]=="function"||t?!0:e}function Dne(n,e,t,r){var a=cn(function(i,s){var o=se({type:e},s);if(delete o.activeIndex,!n.isValidate(i)||t&&t(i,o))return!0;if((e==="date"||e==="time")&&r){var l,u=s&&s.activeIndex===1?"end":"start",d=((l=r.disabledTime)===null||l===void 0?void 0:l.call(r,i,u,{from:o.from}))||{},f=d.disabledHours,g=d.disabledMinutes,p=d.disabledSeconds,b=d.disabledMilliseconds,y=r.disabledHours,x=r.disabledMinutes,S=r.disabledSeconds,C=f||y,O=g||x,D=p||S,M=n.getHour(i),A=n.getMinute(i),T=n.getSecond(i),P=n.getMillisecond(i);if(C&&C().includes(M)||O&&O(M).includes(A)||D&&D(M,A).includes(T)||b&&b(M,A,T).includes(P))return!0}return!1});return a}function up(n){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,t=E.useMemo(function(){var r=n&&Pl(n);return e&&r&&(r[1]=r[1]||r[0]),r},[n,e]);return t}function D3(n,e){var t=n.generateConfig,r=n.locale,a=n.picker,i=a===void 0?"date":a,s=n.prefixCls,o=s===void 0?"rc-picker":s,l=n.styles,u=l===void 0?{}:l,d=n.classNames,f=d===void 0?{}:d,g=n.order,p=g===void 0?!0:g,b=n.components,y=b===void 0?{}:b,x=n.inputRender,S=n.allowClear,C=n.clearIcon,O=n.needConfirm,D=n.multiple,M=n.format,A=n.inputReadOnly,T=n.disabledDate,P=n.minDate,R=n.maxDate,N=n.showTime,I=n.value,$=n.defaultValue,Y=n.pickerValue,k=n.defaultPickerValue,H=up(I),F=up($),B=up(Y),X=up(k),Q=i==="date"&&N?"datetime":i,z=Q==="time"||Q==="datetime",V=z||D,j=O??z,q=C3(n),G=le(q,4),U=G[0],K=G[1],te=G[2],ne=G[3],ie=x3(r,K),ce=E.useMemo(function(){return O3(Q,te,ne,U,ie)},[Q,te,ne,U,ie]),ue=E.useMemo(function(){return se(se({},n),{},{prefixCls:o,locale:ie,picker:i,styles:u,classNames:f,order:p,components:se({input:x},y),clearIcon:wne(o,S,C),showTime:ce,value:H,defaultValue:F,pickerValue:B,defaultPickerValue:X},e?.())},[n]),be=Ene(Q,ie,M),me=le(be,2),ye=me[0],De=me[1],Ce=Mne(ye,A,D),Le=One(t,r,T,P,R),Ne=Dne(t,i,Le,ce),Ve=E.useMemo(function(){return se(se({},ue),{},{needConfirm:j,inputReadOnly:Ce,disabledDate:Le})},[ue,j,Ce,Le]);return[Ve,Q,V,ye,De,Ne]}function _ne(n,e,t){var r=qi(e,{value:n}),a=le(r,2),i=a[0],s=a[1],o=pe.useRef(n),l=pe.useRef(),u=function(){Wr.cancel(l.current)},d=cn(function(){s(o.current),t&&i!==o.current&&t(o.current)}),f=cn(function(g,p){u(),o.current=g,g||p?d():l.current=Wr(d)});return pe.useEffect(function(){return u},[]),[i,f]}function _3(n,e){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],r=arguments.length>3?arguments[3]:void 0,a=t.every(function(d){return d})?!1:n,i=_ne(a,e||!1,r),s=le(i,2),o=s[0],l=s[1];function u(d){var f=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};(!f.inherit||o)&&l(d,f.force)}return[o,u]}function A3(n){var e=E.useRef();return E.useImperativeHandle(n,function(){var t;return{nativeElement:(t=e.current)===null||t===void 0?void 0:t.nativeElement,focus:function(a){var i;(i=e.current)===null||i===void 0||i.focus(a)},blur:function(){var a;(a=e.current)===null||a===void 0||a.blur()}}}),e}function T3(n,e){return E.useMemo(function(){return n||(e?(Sa(!1,"`ranges` is deprecated. Please use `presets` instead."),Object.entries(e).map(function(t){var r=le(t,2),a=r[0],i=r[1];return{label:a,value:i}})):[])},[n,e])}function TM(n,e){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,r=E.useRef(e);r.current=e,gO(function(){if(n)r.current(n);else{var a=Wr(function(){r.current(n)},t);return function(){Wr.cancel(a)}}},[n])}function R3(n){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,r=E.useState(0),a=le(r,2),i=a[0],s=a[1],o=E.useState(!1),l=le(o,2),u=l[0],d=l[1],f=E.useRef([]),g=E.useRef(null),p=E.useRef(null),b=function(D){g.current=D},y=function(D){return g.current===D},x=function(D){d(D)},S=function(D){return D&&(p.current=D),p.current},C=function(D){var M=f.current,A=new Set(M.filter(function(P){return D[P]||e[P]})),T=M[M.length-1]===0?1:0;return A.size>=2||n[T]?null:T};return TM(u||t,function(){u||(f.current=[],b(null))}),E.useEffect(function(){u&&f.current.push(i)},[u,i]),[u,x,S,i,s,C,f.current,b,y]}function Ane(n,e,t,r,a,i){var s=t[t.length-1],o=function(u,d){var f=le(n,2),g=f[0],p=f[1],b=se(se({},d),{},{from:m3(n,t)});return s===1&&e[0]&&g&&!na(r,a,g,u,b.type)&&r.isAfter(g,u)||s===0&&e[1]&&p&&!na(r,a,p,u,b.type)&&r.isAfter(u,p)?!0:i?.(u,b)};return o}function Ff(n,e,t,r){switch(e){case"date":case"week":return n.addMonth(t,r);case"month":case"quarter":return n.addYear(t,r);case"year":return n.addYear(t,r*10);case"decade":return n.addYear(t,r*100);default:return t}}var Py=[];function P3(n,e,t,r,a,i,s,o){var l=arguments.length>8&&arguments[8]!==void 0?arguments[8]:Py,u=arguments.length>9&&arguments[9]!==void 0?arguments[9]:Py,d=arguments.length>10&&arguments[10]!==void 0?arguments[10]:Py,f=arguments.length>11?arguments[11]:void 0,g=arguments.length>12?arguments[12]:void 0,p=arguments.length>13?arguments[13]:void 0,b=s==="time",y=i||0,x=function(B){var X=n.getNow();return b&&(X=Km(n,X)),l[B]||t[B]||X},S=le(u,2),C=S[0],O=S[1],D=qi(function(){return x(0)},{value:C}),M=le(D,2),A=M[0],T=M[1],P=qi(function(){return x(1)},{value:O}),R=le(P,2),N=R[0],I=R[1],$=E.useMemo(function(){var F=[A,N][y];return b?F:Km(n,F,d[y])},[b,A,N,y,n,d]),Y=function(B){var X=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"panel",Q=[T,I][y];Q(B);var z=[A,N];z[y]=B,f&&(!na(n,e,A,z[0],s)||!na(n,e,N,z[1],s))&&f(z,{source:X,range:y===1?"end":"start",mode:r})},k=function(B,X){if(o){var Q={date:"month",week:"month",month:"year",quarter:"year"},z=Q[s];if(z&&!na(n,e,B,X,z))return Ff(n,s,X,-1);if(s==="year"&&B){var V=Math.floor(n.getYear(B)/10),j=Math.floor(n.getYear(X)/10);if(V!==j)return Ff(n,s,X,-1)}}return X},H=E.useRef(null);return $n(function(){if(a&&!l[y]){var F=b?null:n.getNow();if(H.current!==null&&H.current!==y?F=[A,N][y^1]:t[y]?F=y===0?t[0]:k(t[0],t[1]):t[y^1]&&(F=t[y^1]),F){g&&n.isAfter(g,F)&&(F=g);var B=o?Ff(n,s,F,1):F;p&&n.isAfter(B,p)&&(F=o?Ff(n,s,p,-1):p),Y(F,"reset")}}},[a,y,t[y]]),E.useEffect(function(){a?H.current=y:H.current=null},[a,y]),$n(function(){a&&l&&l[y]&&Y(l[y],"reset")},[a,y]),[$,Y]}function L3(n,e){var t=E.useRef(n),r=E.useState({}),a=le(r,2),i=a[1],s=function(u){return u&&e!==void 0?e:t.current},o=function(u){t.current=u,i({})};return[s,o,s(!0)]}var Tne=[];function N3(n,e,t){var r=function(s){return s.map(function(o){return br(o,{generateConfig:n,locale:e,format:t[0]})})},a=function(s,o){for(var l=Math.max(s.length,o.length),u=-1,d=0;d<l;d+=1){var f=s[d]||null,g=o[d]||null;if(f!==g&&!M3(n,f,g)){u=d;break}}return[u<0,u!==0]};return[r,a]}function I3(n,e){return je(n).sort(function(t,r){return e.isAfter(t,r)?1:-1})}function Rne(n){var e=L3(n),t=le(e,2),r=t[0],a=t[1],i=cn(function(){a(n)});return E.useEffect(function(){i()},[n]),[r,a]}function $3(n,e,t,r,a,i,s,o,l){var u=qi(i,{value:s}),d=le(u,2),f=d[0],g=d[1],p=f||Tne,b=Rne(p),y=le(b,2),x=y[0],S=y[1],C=N3(n,e,t),O=le(C,2),D=O[0],M=O[1],A=cn(function(P){var R=je(P);if(r)for(var N=0;N<2;N+=1)R[N]=R[N]||null;else a&&(R=I3(R.filter(function(F){return F}),n));var I=M(x(),R),$=le(I,2),Y=$[0],k=$[1];if(!Y&&(S(R),o)){var H=D(R);o(R,H,{range:k?"end":"start"})}}),T=function(){l&&l(x())};return[p,g,x,A,T]}function F3(n,e,t,r,a,i,s,o,l,u){var d=n.generateConfig,f=n.locale,g=n.picker,p=n.onChange,b=n.allowEmpty,y=n.order,x=i.some(function(Y){return Y})?!1:y,S=N3(d,f,s),C=le(S,2),O=C[0],D=C[1],M=L3(e),A=le(M,2),T=A[0],P=A[1],R=cn(function(){P(e)});E.useEffect(function(){R()},[e]);var N=cn(function(Y){var k=Y===null,H=je(Y||T());if(k)for(var F=Math.max(i.length,H.length),B=0;B<F;B+=1)i[B]||(H[B]=null);x&&H[0]&&H[1]&&(H=I3(H,d)),a(H);var X=H,Q=le(X,2),z=Q[0],V=Q[1],j=!z,q=!V,G=b?(!j||b[0])&&(!q||b[1]):!0,U=!y||j||q||na(d,f,z,V,g)||d.isAfter(V,z),K=(i[0]||!z||!u(z,{activeIndex:0}))&&(i[1]||!V||!u(V,{from:z,activeIndex:1})),te=k||G&&U&&K;if(te){t(H);var ne=D(H,e),ie=le(ne,1),ce=ie[0];p&&!ce&&p(k&&H.every(function(ue){return!ue})?null:H,O(H))}return te}),I=cn(function(Y,k){var H=Uf(T(),Y,r()[Y]);P(H),k&&N()}),$=!o&&!l;return TM(!$,function(){$&&(N(),a(e),R())},2),[I,N]}function k3(n,e,t,r,a){return e!=="date"&&e!=="time"?!1:t!==void 0?t:r!==void 0?r:!a&&(n==="date"||n==="time")}function Pne(n,e,t,r,a,i){var s=n;function o(f,g,p){var b=i[f](s),y=p.find(function(O){return O.value===b});if(!y||y.disabled){var x=p.filter(function(O){return!O.disabled}),S=je(x).reverse(),C=S.find(function(O){return O.value<=b})||x[0];C&&(b=C.value,s=i[g](s,b))}return b}var l=o("getHour","setHour",e()),u=o("getMinute","setMinute",t(l)),d=o("getSecond","setSecond",r(l,u));return o("getMillisecond","setMillisecond",a(l,u,d)),s}function dp(){return[]}function fp(n,e){for(var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:[],i=arguments.length>5&&arguments[5]!==void 0?arguments[5]:2,s=[],o=t>=1?t|0:1,l=n;l<=e;l+=o){var u=a.includes(l);(!u||!r)&&s.push({label:MM(l,i),value:l,disabled:u})}return s}function RM(n){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},t=arguments.length>2?arguments[2]:void 0,r=e||{},a=r.use12Hours,i=r.hourStep,s=i===void 0?1:i,o=r.minuteStep,l=o===void 0?1:o,u=r.secondStep,d=u===void 0?1:u,f=r.millisecondStep,g=f===void 0?100:f,p=r.hideDisabledOptions,b=r.disabledTime,y=r.disabledHours,x=r.disabledMinutes,S=r.disabledSeconds,C=E.useMemo(function(){return t||n.getNow()},[t,n]),O=E.useCallback(function(X){var Q=b?.(X)||{};return[Q.disabledHours||y||dp,Q.disabledMinutes||x||dp,Q.disabledSeconds||S||dp,Q.disabledMilliseconds||dp]},[b,y,x,S]),D=E.useMemo(function(){return O(C)},[C,O]),M=le(D,4),A=M[0],T=M[1],P=M[2],R=M[3],N=E.useCallback(function(X,Q,z,V){var j=fp(0,23,s,p,X()),q=a?j.map(function(te){return se(se({},te),{},{label:MM(te.value%12||12,2)})}):j,G=function(ne){return fp(0,59,l,p,Q(ne))},U=function(ne,ie){return fp(0,59,d,p,z(ne,ie))},K=function(ne,ie,ce){return fp(0,999,g,p,V(ne,ie,ce),3)};return[q,G,U,K]},[p,s,a,g,l,d]),I=E.useMemo(function(){return N(A,T,P,R)},[N,A,T,P,R]),$=le(I,4),Y=$[0],k=$[1],H=$[2],F=$[3],B=function(Q,z){var V=function(){return Y},j=k,q=H,G=F;if(z){var U=O(z),K=le(U,4),te=K[0],ne=K[1],ie=K[2],ce=K[3],ue=N(te,ne,ie,ce),be=le(ue,4),me=be[0],ye=be[1],De=be[2],Ce=be[3];V=function(){return me},j=ye,q=De,G=Ce}var Le=Pne(Q,V,j,q,G,n);return Le};return[B,Y,k,H,F]}function Lne(n){var e=n.mode,t=n.internalMode,r=n.renderExtraFooter,a=n.showNow,i=n.showTime,s=n.onSubmit,o=n.onNow,l=n.invalid,u=n.needConfirm,d=n.generateConfig,f=n.disabledDate,g=E.useContext(Mi),p=g.prefixCls,b=g.locale,y=g.button,x=y===void 0?"button":y,S=d.getNow(),C=RM(d,i,S),O=le(C,1),D=O[0],M=r?.(e),A=f(S,{type:e}),T=function(){if(!A){var k=D(S);o(k)}},P="".concat(p,"-now"),R="".concat(P,"-btn"),N=a&&E.createElement("li",{className:P},E.createElement("a",{className:Te(R,A&&"".concat(R,"-disabled")),"aria-disabled":A,onClick:T},t==="date"?b.today:b.now)),I=u&&E.createElement("li",{className:"".concat(p,"-ok")},E.createElement(x,{disabled:l,onClick:s},b.ok)),$=(N||I)&&E.createElement("ul",{className:"".concat(p,"-ranges")},N,I);return!M&&!$?null:E.createElement("div",{className:"".concat(p,"-footer")},M&&E.createElement("div",{className:"".concat(p,"-footer-extra")},M),$)}function H3(n,e,t){function r(a,i){var s=a.findIndex(function(l){return na(n,e,l,i,t)});if(s===-1)return[].concat(je(a),[i]);var o=je(a);return o.splice(s,1),o}return r}var Ll=E.createContext(null);function Iv(){return E.useContext(Ll)}function Ou(n,e){var t=n.prefixCls,r=n.generateConfig,a=n.locale,i=n.disabledDate,s=n.minDate,o=n.maxDate,l=n.cellRender,u=n.hoverValue,d=n.hoverRangeValue,f=n.onHover,g=n.values,p=n.pickerValue,b=n.onSelect,y=n.prevIcon,x=n.nextIcon,S=n.superPrevIcon,C=n.superNextIcon,O=r.getNow(),D={now:O,values:g,pickerValue:p,prefixCls:t,disabledDate:i,minDate:s,maxDate:o,cellRender:l,hoverValue:u,hoverRangeValue:d,onHover:f,locale:a,generateConfig:r,onSelect:b,panelType:e,prevIcon:y,nextIcon:x,superPrevIcon:S,superNextIcon:C};return[D,O]}var vo=E.createContext({});function qh(n){for(var e=n.rowNum,t=n.colNum,r=n.baseDate,a=n.getCellDate,i=n.prefixColumn,s=n.rowClassName,o=n.titleFormat,l=n.getCellText,u=n.getCellClassName,d=n.headerCells,f=n.cellSelection,g=f===void 0?!0:f,p=n.disabledDate,b=Iv(),y=b.prefixCls,x=b.panelType,S=b.now,C=b.disabledDate,O=b.cellRender,D=b.onHover,M=b.hoverValue,A=b.hoverRangeValue,T=b.generateConfig,P=b.values,R=b.locale,N=b.onSelect,I=p||C,$="".concat(y,"-cell"),Y=E.useContext(vo),k=Y.onCellDblClick,H=function(q){return P.some(function(G){return G&&na(T,R,q,G,x)})},F=[],B=0;B<e;B+=1){for(var X=[],Q=void 0,z=function(){var q=B*t+V,G=a(r,q),U=I?.(G,{type:x});V===0&&(Q=G,i&&X.push(i(Q)));var K=!1,te=!1,ne=!1;if(g&&A){var ie=le(A,2),ce=ie[0],ue=ie[1];K=Nv(T,ce,ue,G),te=na(T,R,G,ce,x),ne=na(T,R,G,ue,x)}var be=o?br(G,{locale:R,format:o,generateConfig:T}):void 0,me=E.createElement("div",{className:"".concat($,"-inner")},l(G));X.push(E.createElement("td",{key:V,title:be,className:Te($,se(ae(ae(ae(ae(ae(ae({},"".concat($,"-disabled"),U),"".concat($,"-hover"),(M||[]).some(function(ye){return na(T,R,G,ye,x)})),"".concat($,"-in-range"),K&&!te&&!ne),"".concat($,"-range-start"),te),"".concat($,"-range-end"),ne),"".concat(y,"-cell-selected"),!A&&x!=="week"&&H(G)),u(G))),onClick:function(){U||N(G)},onDoubleClick:function(){!U&&k&&k()},onMouseEnter:function(){U||D?.(G)},onMouseLeave:function(){U||D?.(null)}},O?O(G,{prefixCls:y,originNode:me,today:S,type:x,locale:R}):me))},V=0;V<t;V+=1)z();F.push(E.createElement("tr",{key:B,className:s?.(Q)},X))}return E.createElement("div",{className:"".concat(y,"-body")},E.createElement("table",{className:"".concat(y,"-content")},d&&E.createElement("thead",null,E.createElement("tr",null,d)),E.createElement("tbody",null,F)))}var hp={visibility:"hidden"};function Eu(n){var e=n.offset,t=n.superOffset,r=n.onChange,a=n.getStart,i=n.getEnd,s=n.children,o=Iv(),l=o.prefixCls,u=o.prevIcon,d=u===void 0?"‹":u,f=o.nextIcon,g=f===void 0?"›":f,p=o.superPrevIcon,b=p===void 0?"«":p,y=o.superNextIcon,x=y===void 0?"»":y,S=o.minDate,C=o.maxDate,O=o.generateConfig,D=o.locale,M=o.pickerValue,A=o.panelType,T="".concat(l,"-header"),P=E.useContext(vo),R=P.hidePrev,N=P.hideNext,I=P.hideHeader,$=E.useMemo(function(){if(!S||!e||!i)return!1;var j=i(e(-1,M));return!cp(O,D,j,S,A)},[S,e,M,i,O,D,A]),Y=E.useMemo(function(){if(!S||!t||!i)return!1;var j=i(t(-1,M));return!cp(O,D,j,S,A)},[S,t,M,i,O,D,A]),k=E.useMemo(function(){if(!C||!e||!a)return!1;var j=a(e(1,M));return!cp(O,D,C,j,A)},[C,e,M,a,O,D,A]),H=E.useMemo(function(){if(!C||!t||!a)return!1;var j=a(t(1,M));return!cp(O,D,C,j,A)},[C,t,M,a,O,D,A]),F=function(q){e&&r(e(q,M))},B=function(q){t&&r(t(q,M))};if(I)return null;var X="".concat(T,"-prev-btn"),Q="".concat(T,"-next-btn"),z="".concat(T,"-super-prev-btn"),V="".concat(T,"-super-next-btn");return E.createElement("div",{className:T},t&&E.createElement("button",{type:"button","aria-label":D.previousYear,onClick:function(){return B(-1)},tabIndex:-1,className:Te(z,Y&&"".concat(z,"-disabled")),disabled:Y,style:R?hp:{}},b),e&&E.createElement("button",{type:"button","aria-label":D.previousMonth,onClick:function(){return F(-1)},tabIndex:-1,className:Te(X,$&&"".concat(X,"-disabled")),disabled:$,style:R?hp:{}},d),E.createElement("div",{className:"".concat(T,"-view")},s),e&&E.createElement("button",{type:"button","aria-label":D.nextMonth,onClick:function(){return F(1)},tabIndex:-1,className:Te(Q,k&&"".concat(Q,"-disabled")),disabled:k,style:N?hp:{}},g),t&&E.createElement("button",{type:"button","aria-label":D.nextYear,onClick:function(){return B(1)},tabIndex:-1,className:Te(V,H&&"".concat(V,"-disabled")),disabled:H,style:N?hp:{}},x))}function $v(n){var e=n.prefixCls,t=n.panelName,r=t===void 0?"date":t,a=n.locale,i=n.generateConfig,s=n.pickerValue,o=n.onPickerValueChange,l=n.onModeChange,u=n.mode,d=u===void 0?"date":u,f=n.disabledDate,g=n.onSelect,p=n.onHover,b=n.showWeek,y="".concat(e,"-").concat(r,"-panel"),x="".concat(e,"-cell"),S=d==="week",C=Ou(n,d),O=le(C,2),D=O[0],M=O[1],A=i.locale.getWeekFirstDay(a.locale),T=i.setDate(s,1),P=Cne(a.locale,i,T),R=i.getMonth(s),N=b===void 0?S:b,I=N?function(j){var q=f?.(j,{type:"week"});return E.createElement("td",{key:"week",className:Te(x,"".concat(x,"-week"),ae({},"".concat(x,"-disabled"),q)),onClick:function(){q||g(j)},onMouseEnter:function(){q||p?.(j)},onMouseLeave:function(){q||p?.(null)}},E.createElement("div",{className:"".concat(x,"-inner")},i.locale.getWeek(a.locale,j)))}:null,$=[],Y=a.shortWeekDays||(i.locale.getShortWeekDays?i.locale.getShortWeekDays(a.locale):[]);I&&$.push(E.createElement("th",{key:"empty"},E.createElement("span",{style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},a.week)));for(var k=0;k<Ry;k+=1)$.push(E.createElement("th",{key:k},Y[(k+A)%Ry]));var H=function(q,G){return i.addDate(q,G)},F=function(q){return br(q,{locale:a,format:a.cellDateFormat,generateConfig:i})},B=function(q){var G=ae(ae({},"".concat(e,"-cell-in-view"),_M(i,q,s)),"".concat(e,"-cell-today"),AM(i,q,M));return G},X=a.shortMonths||(i.locale.getShortMonths?i.locale.getShortMonths(a.locale):[]),Q=E.createElement("button",{type:"button","aria-label":a.yearSelect,key:"year",onClick:function(){l("year",s)},tabIndex:-1,className:"".concat(e,"-year-btn")},br(s,{locale:a,format:a.yearFormat,generateConfig:i})),z=E.createElement("button",{type:"button","aria-label":a.monthSelect,key:"month",onClick:function(){l("month",s)},tabIndex:-1,className:"".concat(e,"-month-btn")},a.monthFormat?br(s,{locale:a,format:a.monthFormat,generateConfig:i}):X[R]),V=a.monthBeforeYear?[z,Q]:[Q,z];return E.createElement(Ll.Provider,{value:D},E.createElement("div",{className:Te(y,b&&"".concat(y,"-show-week"))},E.createElement(Eu,{offset:function(q){return i.addMonth(s,q)},superOffset:function(q){return i.addYear(s,q)},onChange:o,getStart:function(q){return i.setDate(q,1)},getEnd:function(q){var G=i.setDate(q,1);return G=i.addMonth(G,1),i.addDate(G,-1)}},V),E.createElement(qh,tt({titleFormat:a.fieldDateFormat},n,{colNum:Ry,rowNum:6,baseDate:P,headerCells:$,getCellDate:H,getCellText:F,getCellClassName:B,prefixColumn:I,cellSelection:!S}))))}var Nne=1/3;function Ine(n,e){var t=E.useRef(!1),r=E.useRef(null),a=E.useRef(null),i=function(){return t.current},s=function(){Wr.cancel(r.current),t.current=!1},o=E.useRef(),l=function(){var f=n.current;if(a.current=null,o.current=0,f){var g=f.querySelector('[data-value="'.concat(e,'"]')),p=f.querySelector("li"),b=function y(){s(),t.current=!0,o.current+=1;var x=f.scrollTop,S=p.offsetTop,C=g.offsetTop,O=C-S;if(C===0&&g!==p||!yM(f)){o.current<=5&&(r.current=Wr(y));return}var D=x+(O-x)*Nne,M=Math.abs(O-D);if(a.current!==null&&a.current<M){s();return}if(a.current=M,M<=1){f.scrollTop=O,s();return}f.scrollTop=D,r.current=Wr(y)};g&&p&&b()}},u=cn(l);return[u,s,i]}var $ne=300;function Fne(n){return n.map(function(e){var t=e.value,r=e.label,a=e.disabled;return[t,r,a].join(",")}).join(";")}function df(n){var e=n.units,t=n.value,r=n.optionalValue,a=n.type,i=n.onChange,s=n.onHover,o=n.onDblClick,l=n.changeOnScroll,u=Iv(),d=u.prefixCls,f=u.cellRender,g=u.now,p=u.locale,b="".concat(d,"-time-panel"),y="".concat(d,"-time-panel-cell"),x=E.useRef(null),S=E.useRef(),C=function(){clearTimeout(S.current)},O=Ine(x,t??r),D=le(O,3),M=D[0],A=D[1],T=D[2];$n(function(){return M(),C(),function(){A(),C()}},[t,r,Fne(e)]);var P=function(I){C();var $=I.target;!T()&&l&&(S.current=setTimeout(function(){var Y=x.current,k=Y.querySelector("li").offsetTop,H=Array.from(Y.querySelectorAll("li")),F=H.map(function(V){return V.offsetTop-k}),B=F.map(function(V,j){return e[j].disabled?Number.MAX_SAFE_INTEGER:Math.abs(V-$.scrollTop)}),X=Math.min.apply(Math,je(B)),Q=B.findIndex(function(V){return V===X}),z=e[Q];z&&!z.disabled&&i(z.value)},$ne))},R="".concat(b,"-column");return E.createElement("ul",{className:R,ref:x,"data-type":a,onScroll:P},e.map(function(N){var I=N.label,$=N.value,Y=N.disabled,k=E.createElement("div",{className:"".concat(y,"-inner")},I);return E.createElement("li",{key:$,className:Te(y,ae(ae({},"".concat(y,"-selected"),t===$),"".concat(y,"-disabled"),Y)),onClick:function(){Y||i($)},onDoubleClick:function(){!Y&&o&&o()},onMouseEnter:function(){s($)},onMouseLeave:function(){s(null)},"data-value":$},f?f($,{prefixCls:d,originNode:k,today:g,type:"time",subType:a,locale:p}):k)}))}function io(n){return n<12}function kne(n){var e=n.showHour,t=n.showMinute,r=n.showSecond,a=n.showMillisecond,i=n.use12Hours,s=n.changeOnScroll,o=Iv(),l=o.prefixCls,u=o.values,d=o.generateConfig,f=o.locale,g=o.onSelect,p=o.onHover,b=p===void 0?function(){}:p,y=o.pickerValue,x=u?.[0]||null,S=E.useContext(vo),C=S.onCellDblClick,O=RM(d,n,x),D=le(O,5),M=D[0],A=D[1],T=D[2],P=D[3],R=D[4],N=function(Ie){var Dt=x&&d[Ie](x),At=y&&d[Ie](y);return[Dt,At]},I=N("getHour"),$=le(I,2),Y=$[0],k=$[1],H=N("getMinute"),F=le(H,2),B=F[0],X=F[1],Q=N("getSecond"),z=le(Q,2),V=z[0],j=z[1],q=N("getMillisecond"),G=le(q,2),U=G[0],K=G[1],te=Y===null?null:io(Y)?"am":"pm",ne=E.useMemo(function(){return i?io(Y)?A.filter(function(we){return io(we.value)}):A.filter(function(we){return!io(we.value)}):A},[Y,A,i]),ie=function(Ie,Dt){var At,Tt=Ie.filter(function(vn){return!vn.disabled});return Dt??(Tt==null||(At=Tt[0])===null||At===void 0?void 0:At.value)},ce=ie(A,Y),ue=E.useMemo(function(){return T(ce)},[T,ce]),be=ie(ue,B),me=E.useMemo(function(){return P(ce,be)},[P,ce,be]),ye=ie(me,V),De=E.useMemo(function(){return R(ce,be,ye)},[R,ce,be,ye]),Ce=ie(De,U),Le=E.useMemo(function(){if(!i)return[];var we=d.getNow(),Ie=d.setHour(we,6),Dt=d.setHour(we,18),At=function(vn,un){var Jt=f.cellMeridiemFormat;return Jt?br(vn,{generateConfig:d,locale:f,format:Jt}):un};return[{label:At(Ie,"AM"),value:"am",disabled:A.every(function(Tt){return Tt.disabled||!io(Tt.value)})},{label:At(Dt,"PM"),value:"pm",disabled:A.every(function(Tt){return Tt.disabled||io(Tt.value)})}]},[A,i,d,f]),Ne=function(Ie){var Dt=M(Ie);g(Dt)},Ve=E.useMemo(function(){var we=x||y||d.getNow(),Ie=function(At){return At!=null};return Ie(Y)?(we=d.setHour(we,Y),we=d.setMinute(we,B),we=d.setSecond(we,V),we=d.setMillisecond(we,U)):Ie(k)?(we=d.setHour(we,k),we=d.setMinute(we,X),we=d.setSecond(we,j),we=d.setMillisecond(we,K)):Ie(ce)&&(we=d.setHour(we,ce),we=d.setMinute(we,be),we=d.setSecond(we,ye),we=d.setMillisecond(we,Ce)),we},[x,y,Y,B,V,U,ce,be,ye,Ce,k,X,j,K,d]),ze=function(Ie,Dt){return Ie===null?null:d[Dt](Ve,Ie)},$e=function(Ie){return ze(Ie,"setHour")},Be=function(Ie){return ze(Ie,"setMinute")},ut=function(Ie){return ze(Ie,"setSecond")},He=function(Ie){return ze(Ie,"setMillisecond")},Qe=function(Ie){return Ie===null?null:Ie==="am"&&!io(Y)?d.setHour(Ve,Y-12):Ie==="pm"&&io(Y)?d.setHour(Ve,Y+12):Ve},Ee=function(Ie){Ne($e(Ie))},st=function(Ie){Ne(Be(Ie))},ht=function(Ie){Ne(ut(Ie))},at=function(Ie){Ne(He(Ie))},Ut=function(Ie){Ne(Qe(Ie))},Nt=function(Ie){b($e(Ie))},Ue=function(Ie){b(Be(Ie))},yt=function(Ie){b(ut(Ie))},Pe=function(Ie){b(He(Ie))},Fe=function(Ie){b(Qe(Ie))},We={onDblClick:C,changeOnScroll:s};return E.createElement("div",{className:"".concat(l,"-content")},e&&E.createElement(df,tt({units:ne,value:Y,optionalValue:k,type:"hour",onChange:Ee,onHover:Nt},We)),t&&E.createElement(df,tt({units:ue,value:B,optionalValue:X,type:"minute",onChange:st,onHover:Ue},We)),r&&E.createElement(df,tt({units:me,value:V,optionalValue:j,type:"second",onChange:ht,onHover:yt},We)),a&&E.createElement(df,tt({units:De,value:U,optionalValue:K,type:"millisecond",onChange:at,onHover:Pe},We)),i&&E.createElement(df,tt({units:Le,value:te,type:"meridiem",onChange:Ut,onHover:Fe},We)))}function z3(n){var e=n.prefixCls,t=n.value,r=n.locale,a=n.generateConfig,i=n.showTime,s=i||{},o=s.format,l="".concat(e,"-time-panel"),u=Ou(n,"time"),d=le(u,1),f=d[0];return E.createElement(Ll.Provider,{value:f},E.createElement("div",{className:Te(l)},E.createElement(Eu,null,t?br(t,{locale:r,format:o,generateConfig:a}):" "),E.createElement(kne,i)))}function Hne(n){var e=n.prefixCls,t=n.generateConfig,r=n.showTime,a=n.onSelect,i=n.value,s=n.pickerValue,o=n.onHover,l="".concat(e,"-datetime-panel"),u=RM(t,r),d=le(u,1),f=d[0],g=function(x){return i?Km(t,x,i):Km(t,x,s)},p=function(x){o?.(x&&g(x))},b=function(x){var S=g(x);a(f(S,S))};return E.createElement("div",{className:l},E.createElement($v,tt({},n,{onSelect:b,onHover:p})),E.createElement(z3,n))}function zne(n){var e=n.prefixCls,t=n.locale,r=n.generateConfig,a=n.pickerValue,i=n.disabledDate,s=n.onPickerValueChange,o="".concat(e,"-decade-panel"),l=Ou(n,"decade"),u=le(l,1),d=u[0],f=function(A){var T=Math.floor(r.getYear(A)/100)*100;return r.setYear(A,T)},g=function(A){var T=f(A);return r.addYear(T,99)},p=f(a),b=g(a),y=r.addYear(p,-10),x=function(A,T){return r.addYear(A,T*10)},S=function(A){var T=t.cellYearFormat,P=br(A,{locale:t,format:T,generateConfig:r}),R=br(r.addYear(A,9),{locale:t,format:T,generateConfig:r});return"".concat(P,"-").concat(R)},C=function(A){return ae({},"".concat(e,"-cell-in-view"),KO(r,A,p)||KO(r,A,b)||Nv(r,p,b,A))},O=i?function(M,A){var T=r.setDate(M,1),P=r.setMonth(T,0),R=r.setYear(P,Math.floor(r.getYear(P)/10)*10),N=r.addYear(R,10),I=r.addDate(N,-1);return i(R,A)&&i(I,A)}:null,D="".concat(br(p,{locale:t,format:t.yearFormat,generateConfig:r}),"-").concat(br(b,{locale:t,format:t.yearFormat,generateConfig:r}));return E.createElement(Ll.Provider,{value:d},E.createElement("div",{className:o},E.createElement(Eu,{superOffset:function(A){return r.addYear(a,A*100)},onChange:s,getStart:f,getEnd:g},D),E.createElement(qh,tt({},n,{disabledDate:O,colNum:3,rowNum:4,baseDate:y,getCellDate:x,getCellText:S,getCellClassName:C}))))}function Bne(n){var e=n.prefixCls,t=n.locale,r=n.generateConfig,a=n.pickerValue,i=n.disabledDate,s=n.onPickerValueChange,o=n.onModeChange,l="".concat(e,"-month-panel"),u=Ou(n,"month"),d=le(u,1),f=d[0],g=r.setMonth(a,0),p=t.shortMonths||(r.locale.getShortMonths?r.locale.getShortMonths(t.locale):[]),b=function(D,M){return r.addMonth(D,M)},y=function(D){var M=r.getMonth(D);return t.monthFormat?br(D,{locale:t,format:t.monthFormat,generateConfig:r}):p[M]},x=function(){return ae({},"".concat(e,"-cell-in-view"),!0)},S=i?function(O,D){var M=r.setDate(O,1),A=r.setMonth(M,r.getMonth(M)+1),T=r.addDate(A,-1);return i(M,D)&&i(T,D)}:null,C=E.createElement("button",{type:"button",key:"year","aria-label":t.yearSelect,onClick:function(){o("year")},tabIndex:-1,className:"".concat(e,"-year-btn")},br(a,{locale:t,format:t.yearFormat,generateConfig:r}));return E.createElement(Ll.Provider,{value:f},E.createElement("div",{className:l},E.createElement(Eu,{superOffset:function(D){return r.addYear(a,D)},onChange:s,getStart:function(D){return r.setMonth(D,0)},getEnd:function(D){return r.setMonth(D,11)}},C),E.createElement(qh,tt({},n,{disabledDate:S,titleFormat:t.fieldMonthFormat,colNum:3,rowNum:4,baseDate:g,getCellDate:b,getCellText:y,getCellClassName:x}))))}function Yne(n){var e=n.prefixCls,t=n.locale,r=n.generateConfig,a=n.pickerValue,i=n.onPickerValueChange,s=n.onModeChange,o="".concat(e,"-quarter-panel"),l=Ou(n,"quarter"),u=le(l,1),d=u[0],f=r.setMonth(a,0),g=function(S,C){return r.addMonth(S,C*3)},p=function(S){return br(S,{locale:t,format:t.cellQuarterFormat,generateConfig:r})},b=function(){return ae({},"".concat(e,"-cell-in-view"),!0)},y=E.createElement("button",{type:"button",key:"year","aria-label":t.yearSelect,onClick:function(){s("year")},tabIndex:-1,className:"".concat(e,"-year-btn")},br(a,{locale:t,format:t.yearFormat,generateConfig:r}));return E.createElement(Ll.Provider,{value:d},E.createElement("div",{className:o},E.createElement(Eu,{superOffset:function(S){return r.addYear(a,S)},onChange:i,getStart:function(S){return r.setMonth(S,0)},getEnd:function(S){return r.setMonth(S,11)}},y),E.createElement(qh,tt({},n,{titleFormat:t.fieldQuarterFormat,colNum:4,rowNum:1,baseDate:f,getCellDate:g,getCellText:p,getCellClassName:b}))))}function jne(n){var e=n.prefixCls,t=n.generateConfig,r=n.locale,a=n.value,i=n.hoverValue,s=n.hoverRangeValue,o=r.locale,l="".concat(e,"-week-panel-row"),u=function(f){var g={};if(s){var p=le(s,2),b=p[0],y=p[1],x=$f(t,o,b,f),S=$f(t,o,y,f);g["".concat(l,"-range-start")]=x,g["".concat(l,"-range-end")]=S,g["".concat(l,"-range-hover")]=!x&&!S&&Nv(t,b,y,f)}return i&&(g["".concat(l,"-hover")]=i.some(function(C){return $f(t,o,f,C)})),Te(l,ae({},"".concat(l,"-selected"),!s&&$f(t,o,a,f)),g)};return E.createElement($v,tt({},n,{mode:"week",panelName:"week",rowClassName:u}))}function Wne(n){var e=n.prefixCls,t=n.locale,r=n.generateConfig,a=n.pickerValue,i=n.disabledDate,s=n.onPickerValueChange,o=n.onModeChange,l="".concat(e,"-year-panel"),u=Ou(n,"year"),d=le(u,1),f=d[0],g=function(T){var P=Math.floor(r.getYear(T)/10)*10;return r.setYear(T,P)},p=function(T){var P=g(T);return r.addYear(P,9)},b=g(a),y=p(a),x=r.addYear(b,-1),S=function(T,P){return r.addYear(T,P)},C=function(T){return br(T,{locale:t,format:t.cellYearFormat,generateConfig:r})},O=function(T){return ae({},"".concat(e,"-cell-in-view"),Cl(r,T,b)||Cl(r,T,y)||Nv(r,b,y,T))},D=i?function(A,T){var P=r.setMonth(A,0),R=r.setDate(P,1),N=r.addYear(R,1),I=r.addDate(N,-1);return i(R,T)&&i(I,T)}:null,M=E.createElement("button",{type:"button",key:"decade","aria-label":t.decadeSelect,onClick:function(){o("decade")},tabIndex:-1,className:"".concat(e,"-decade-btn")},br(b,{locale:t,format:t.yearFormat,generateConfig:r}),"-",br(y,{locale:t,format:t.yearFormat,generateConfig:r}));return E.createElement(Ll.Provider,{value:f},E.createElement("div",{className:l},E.createElement(Eu,{superOffset:function(T){return r.addYear(a,T*10)},onChange:s,getStart:g,getEnd:p},M),E.createElement(qh,tt({},n,{disabledDate:D,titleFormat:t.fieldYearFormat,colNum:3,rowNum:4,baseDate:x,getCellDate:S,getCellText:C,getCellClassName:O}))))}var qne={date:$v,datetime:Hne,week:jne,month:Bne,quarter:Yne,year:Wne,decade:zne,time:z3};function Xne(n,e){var t,r=n.locale,a=n.generateConfig,i=n.direction,s=n.prefixCls,o=n.tabIndex,l=o===void 0?0:o,u=n.multiple,d=n.defaultValue,f=n.value,g=n.onChange,p=n.onSelect,b=n.defaultPickerValue,y=n.pickerValue,x=n.onPickerValueChange,S=n.mode,C=n.onPanelChange,O=n.picker,D=O===void 0?"date":O,M=n.showTime,A=n.hoverValue,T=n.hoverRangeValue,P=n.cellRender,R=n.dateRender,N=n.monthCellRender,I=n.components,$=I===void 0?{}:I,Y=n.hideHeader,k=((t=E.useContext(Mi))===null||t===void 0?void 0:t.prefixCls)||s||"rc-picker",H=E.useRef();E.useImperativeHandle(e,function(){return{nativeElement:H.current}});var F=C3(n),B=le(F,4),X=B[0],Q=B[1],z=B[2],V=B[3],j=x3(r,Q),q=D==="date"&&M?"datetime":D,G=E.useMemo(function(){return O3(q,z,V,X,j)},[q,z,V,X,j]),U=a.getNow(),K=qi(D,{value:S,postState:function(Fe){return Fe||"date"}}),te=le(K,2),ne=te[0],ie=te[1],ce=ne==="date"&&G?"datetime":ne,ue=H3(a,r,q),be=qi(d,{value:f}),me=le(be,2),ye=me[0],De=me[1],Ce=E.useMemo(function(){var Pe=Pl(ye).filter(function(Fe){return Fe});return u?Pe:Pe.slice(0,1)},[ye,u]),Le=cn(function(Pe){De(Pe),g&&(Pe===null||Ce.length!==Pe.length||Ce.some(function(Fe,We){return!na(a,r,Fe,Pe[We],q)}))&&g?.(u?Pe:Pe[0])}),Ne=cn(function(Pe){if(p?.(Pe),ne===D){var Fe=u?ue(Ce,Pe):[Pe];Le(Fe)}}),Ve=qi(b||Ce[0]||U,{value:y}),ze=le(Ve,2),$e=ze[0],Be=ze[1];E.useEffect(function(){Ce[0]&&!y&&Be(Ce[0])},[Ce[0]]);var ut=function(Fe,We){C?.(Fe||y,We||ne)},He=function(Fe){var We=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;Be(Fe),x?.(Fe),We&&ut(Fe)},Qe=function(Fe,We){ie(Fe),We&&He(We),ut(We,Fe)},Ee=function(Fe){if(Ne(Fe),He(Fe),ne!==D){var We=["decade","year"],we=[].concat(We,["month"]),Ie={quarter:[].concat(We,["quarter"]),week:[].concat(je(we),["week"]),date:[].concat(je(we),["date"])},Dt=Ie[D]||we,At=Dt.indexOf(ne),Tt=Dt[At+1];Tt&&Qe(Tt,Fe)}},st=E.useMemo(function(){var Pe,Fe;if(Array.isArray(T)){var We=le(T,2);Pe=We[0],Fe=We[1]}else Pe=T;return!Pe&&!Fe?null:(Pe=Pe||Fe,Fe=Fe||Pe,a.isAfter(Pe,Fe)?[Fe,Pe]:[Pe,Fe])},[T,a]),ht=DM(P,R,N),at=$[ce]||qne[ce]||$v,Ut=E.useContext(vo),Nt=E.useMemo(function(){return se(se({},Ut),{},{hideHeader:Y})},[Ut,Y]),Ue="".concat(k,"-panel"),yt=Lv(n,["showWeek","prevIcon","nextIcon","superPrevIcon","superNextIcon","disabledDate","minDate","maxDate","onHover"]);return E.createElement(vo.Provider,{value:Nt},E.createElement("div",{ref:H,tabIndex:l,className:Te(Ue,ae({},"".concat(Ue,"-rtl"),i==="rtl"))},E.createElement(at,tt({},yt,{showTime:G,prefixCls:k,locale:j,generateConfig:a,onModeChange:Qe,pickerValue:$e,onPickerValueChange:function(Fe){He(Fe,!0)},value:Ce[0],onSelect:Ee,values:Ce,cellRender:ht,hoverRangeValue:st,hoverValue:A}))))}var Ly=E.memo(E.forwardRef(Xne));function Vne(n){var e=n.picker,t=n.multiplePanel,r=n.pickerValue,a=n.onPickerValueChange,i=n.needConfirm,s=n.onSubmit,o=n.range,l=n.hoverValue,u=E.useContext(Mi),d=u.prefixCls,f=u.generateConfig,g=E.useCallback(function(C,O){return Ff(f,e,C,O)},[f,e]),p=E.useMemo(function(){return g(r,1)},[r,g]),b=function(O){a(g(O,-1))},y={onCellDblClick:function(){i&&s()}},x=e==="time",S=se(se({},n),{},{hoverValue:null,hoverRangeValue:null,hideHeader:x});return o?S.hoverRangeValue=l:S.hoverValue=l,t?E.createElement("div",{className:"".concat(d,"-panels")},E.createElement(vo.Provider,{value:se(se({},y),{},{hideNext:!0})},E.createElement(Ly,S)),E.createElement(vo.Provider,{value:se(se({},y),{},{hidePrev:!0})},E.createElement(Ly,tt({},S,{pickerValue:p,onPickerValueChange:b})))):E.createElement(vo.Provider,{value:se({},y)},E.createElement(Ly,S))}function i2(n){return typeof n=="function"?n():n}function Une(n){var e=n.prefixCls,t=n.presets,r=n.onClick,a=n.onHover;return t.length?E.createElement("div",{className:"".concat(e,"-presets")},E.createElement("ul",null,t.map(function(i,s){var o=i.label,l=i.value;return E.createElement("li",{key:s,onClick:function(){r(i2(l))},onMouseEnter:function(){a(i2(l))},onMouseLeave:function(){a(null)}},o)}))):null}function B3(n){var e=n.panelRender,t=n.internalMode,r=n.picker,a=n.showNow,i=n.range,s=n.multiple,o=n.activeInfo,l=o===void 0?[0,0,0]:o,u=n.presets,d=n.onPresetHover,f=n.onPresetSubmit,g=n.onFocus,p=n.onBlur,b=n.onPanelMouseDown,y=n.direction,x=n.value,S=n.onSelect,C=n.isInvalid,O=n.defaultOpenValue,D=n.onOk,M=n.onSubmit,A=E.useContext(Mi),T=A.prefixCls,P="".concat(T,"-panel"),R=y==="rtl",N=E.useRef(null),I=E.useRef(null),$=E.useState(0),Y=le($,2),k=Y[0],H=Y[1],F=E.useState(0),B=le(F,2),X=B[0],Q=B[1],z=E.useState(0),V=le(z,2),j=V[0],q=V[1],G=function(Ee){Ee.width&&H(Ee.width)},U=le(l,3),K=U[0],te=U[1],ne=U[2],ie=E.useState(0),ce=le(ie,2),ue=ce[0],be=ce[1];E.useEffect(function(){be(10)},[K]),E.useEffect(function(){if(i&&I.current){var Qe,Ee=((Qe=N.current)===null||Qe===void 0?void 0:Qe.offsetWidth)||0,st=I.current.getBoundingClientRect();if(!st.height||st.right<0){be(function(Nt){return Math.max(0,Nt-1)});return}var ht=(R?te-Ee:K)-st.left;if(q(ht),k&&k<ne){var at=R?st.right-(te-Ee+k):K+Ee-st.left-k,Ut=Math.max(0,at);Q(Ut)}else Q(0)}},[ue,R,k,K,te,ne,i]);function me(Qe){return Qe.filter(function(Ee){return Ee})}var ye=E.useMemo(function(){return me(Pl(x))},[x]),De=r==="time"&&!ye.length,Ce=E.useMemo(function(){return De?me([O]):ye},[De,ye,O]),Le=De?O:ye,Ne=E.useMemo(function(){return Ce.length?Ce.some(function(Qe){return C(Qe)}):!0},[Ce,C]),Ve=function(){De&&S(O),D(),M()},ze=E.createElement("div",{className:"".concat(T,"-panel-layout")},E.createElement(Une,{prefixCls:T,presets:u,onClick:f,onHover:d}),E.createElement("div",null,E.createElement(Vne,tt({},n,{value:Le})),E.createElement(Lne,tt({},n,{showNow:s?!1:a,invalid:Ne,onSubmit:Ve}))));e&&(ze=e(ze));var $e="".concat(P,"-container"),Be="marginLeft",ut="marginRight",He=E.createElement("div",{onMouseDown:b,tabIndex:-1,className:Te($e,"".concat(T,"-").concat(t,"-panel-container")),style:ae(ae({},R?ut:Be,X),R?Be:ut,"auto"),onFocus:g,onBlur:p},ze);return i&&(He=E.createElement("div",{onMouseDown:b,ref:I,className:Te("".concat(T,"-range-wrapper"),"".concat(T,"-").concat(r,"-range-wrapper"))},E.createElement("div",{ref:N,className:"".concat(T,"-range-arrow"),style:{left:j}}),E.createElement(_l,{onResize:G},He))),He}function Y3(n,e){var t=n.format,r=n.maskFormat,a=n.generateConfig,i=n.locale,s=n.preserveInvalidOnBlur,o=n.inputReadOnly,l=n.required,u=n["aria-required"],d=n.onSubmit,f=n.onFocus,g=n.onBlur,p=n.onInputChange,b=n.onInvalid,y=n.open,x=n.onOpenChange,S=n.onKeyDown,C=n.onChange,O=n.activeHelp,D=n.name,M=n.autoComplete,A=n.id,T=n.value,P=n.invalid,R=n.placeholder,N=n.disabled,I=n.activeIndex,$=n.allHelp,Y=n.picker,k=function(j,q){var G=a.locale.parse(i.locale,j,[q]);return G&&a.isValidate(G)?G:null},H=t[0],F=E.useCallback(function(V){return br(V,{locale:i,format:H,generateConfig:a})},[i,a,H]),B=E.useMemo(function(){return T.map(F)},[T,F]),X=E.useMemo(function(){var V=Y==="time"?8:10,j=typeof H=="function"?H(a.getNow()).length:H.length;return Math.max(V,j)+2},[H,Y,a]),Q=function(j){for(var q=0;q<t.length;q+=1){var G=t[q];if(typeof G=="string"){var U=k(j,G);if(U)return U}}return!1},z=function(j){function q(K){return j!==void 0?K[j]:K}var G=Ov(n,{aria:!0,data:!0}),U=se(se({},G),{},{format:r,validateFormat:function(te){return!!Q(te)},preserveInvalidOnBlur:s,readOnly:o,required:l,"aria-required":u,name:D,autoComplete:M,size:X,id:q(A),value:q(B)||"",invalid:q(P),placeholder:q(R),active:I===j,helped:$||O&&I===j,disabled:q(N),onFocus:function(te){f(te,j)},onBlur:function(te){g(te,j)},onSubmit:d,onChange:function(te){p();var ne=Q(te);if(ne){b(!1,j),C(ne,j);return}b(!!te,j)},onHelp:function(){x(!0,{index:j})},onKeyDown:function(te){var ne=!1;if(S?.(te,function(){ne=!0}),!te.defaultPrevented&&!ne)switch(te.key){case"Escape":x(!1,{index:j});break;case"Enter":y||x(!0);break}}},e?.({valueTexts:B}));return Object.keys(U).forEach(function(K){U[K]===void 0&&delete U[K]}),U};return[z,F]}var Gne=["onMouseEnter","onMouseLeave"];function j3(n){return E.useMemo(function(){return Lv(n,Gne)},[n])}var Zne=["icon","type"],Qne=["onClear"];function Fv(n){var e=n.icon,t=n.type,r=zn(n,Zne),a=E.useContext(Mi),i=a.prefixCls;return e?E.createElement("span",tt({className:"".concat(i,"-").concat(t)},r),e):null}function JO(n){var e=n.onClear,t=zn(n,Qne);return E.createElement(Fv,tt({},t,{type:"clear",role:"button",onMouseDown:function(a){a.preventDefault()},onClick:function(a){a.stopPropagation(),e()}}))}var Ny=["YYYY","MM","DD","HH","mm","ss","SSS"],s2="顧",Kne=(function(){function n(e){xr(this,n),ae(this,"format",void 0),ae(this,"maskFormat",void 0),ae(this,"cells",void 0),ae(this,"maskCells",void 0),this.format=e;var t=Ny.map(function(o){return"(".concat(o,")")}).join("|"),r=new RegExp(t,"g");this.maskFormat=e.replace(r,function(o){return s2.repeat(o.length)});var a=new RegExp("(".concat(Ny.join("|"),")")),i=(e.split(a)||[]).filter(function(o){return o}),s=0;this.cells=i.map(function(o){var l=Ny.includes(o),u=s,d=s+o.length;return s=d,{text:o,mask:l,start:u,end:d}}),this.maskCells=this.cells.filter(function(o){return o.mask})}return wr(n,[{key:"getSelection",value:function(t){var r=this.maskCells[t]||{},a=r.start,i=r.end;return[a||0,i||0]}},{key:"match",value:function(t){for(var r=0;r<this.maskFormat.length;r+=1){var a=this.maskFormat[r],i=t[r];if(!i||a!==s2&&a!==i)return!1}return!0}},{key:"size",value:function(){return this.maskCells.length}},{key:"getMaskCellIndex",value:function(t){for(var r=Number.MAX_SAFE_INTEGER,a=0,i=0;i<this.maskCells.length;i+=1){var s=this.maskCells[i],o=s.start,l=s.end;if(t>=o&&t<=l)return i;var u=Math.min(Math.abs(t-o),Math.abs(t-l));u<r&&(r=u,a=i)}return a}}]),n})();function Jne(n){var e={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 e[n]}var ere=["active","showActiveCls","suffixIcon","format","validateFormat","onChange","onInput","helped","onHelp","onSubmit","onKeyDown","preserveInvalidOnBlur","invalid","clearIcon"],eE=E.forwardRef(function(n,e){var t=n.active,r=n.showActiveCls,a=r===void 0?!0:r,i=n.suffixIcon,s=n.format,o=n.validateFormat,l=n.onChange;n.onInput;var u=n.helped,d=n.onHelp,f=n.onSubmit,g=n.onKeyDown,p=n.preserveInvalidOnBlur,b=p===void 0?!1:p,y=n.invalid,x=n.clearIcon,S=zn(n,ere),C=n.value,O=n.onFocus,D=n.onBlur,M=n.onMouseUp,A=E.useContext(Mi),T=A.prefixCls,P=A.input,R=P===void 0?"input":P,N="".concat(T,"-input"),I=E.useState(!1),$=le(I,2),Y=$[0],k=$[1],H=E.useState(C),F=le(H,2),B=F[0],X=F[1],Q=E.useState(""),z=le(Q,2),V=z[0],j=z[1],q=E.useState(null),G=le(q,2),U=G[0],K=G[1],te=E.useState(null),ne=le(te,2),ie=ne[0],ce=ne[1],ue=B||"";E.useEffect(function(){X(C)},[C]);var be=E.useRef(),me=E.useRef();E.useImperativeHandle(e,function(){return{nativeElement:be.current,inputElement:me.current,focus:function(Pe){me.current.focus(Pe)},blur:function(){me.current.blur()}}});var ye=E.useMemo(function(){return new Kne(s||"")},[s]),De=E.useMemo(function(){return u?[0,0]:ye.getSelection(U)},[ye,U,u]),Ce=le(De,2),Le=Ce[0],Ne=Ce[1],Ve=function(Pe){Pe&&Pe!==s&&Pe!==C&&d()},ze=cn(function(yt){o(yt)&&l(yt),X(yt),Ve(yt)}),$e=function(Pe){if(!s){var Fe=Pe.target.value;Ve(Fe),X(Fe),l(Fe)}},Be=function(Pe){var Fe=Pe.clipboardData.getData("text");o(Fe)&&ze(Fe)},ut=E.useRef(!1),He=function(){ut.current=!0},Qe=function(Pe){var Fe=Pe.target,We=Fe.selectionStart,we=ye.getMaskCellIndex(We);K(we),ce({}),M?.(Pe),ut.current=!1},Ee=function(Pe){k(!0),K(0),j(""),O(Pe)},st=function(Pe){D(Pe)},ht=function(Pe){k(!1),st(Pe)};TM(t,function(){!t&&!b&&X(C)});var at=function(Pe){Pe.key==="Enter"&&o(ue)&&f(),g?.(Pe)},Ut=function(Pe){at(Pe);var Fe=Pe.key,We=null,we=null,Ie=Ne-Le,Dt=s.slice(Le,Ne),At=function(Jt){K(function(It){var Ct=It+Jt;return Ct=Math.max(Ct,0),Ct=Math.min(Ct,ye.size()-1),Ct})},Tt=function(Jt){var It=Jne(Dt),Ct=le(It,3),Ge=Ct[0],ot=Ct[1],it=Ct[2],nt=ue.slice(Le,Ne),gt=Number(nt);if(isNaN(gt))return String(it||(Jt>0?Ge:ot));var jt=gt+Jt,rn=ot-Ge+1;return String(Ge+(rn+jt-Ge)%rn)};switch(Fe){case"Backspace":case"Delete":We="",we=Dt;break;case"ArrowLeft":We="",At(-1);break;case"ArrowRight":We="",At(1);break;case"ArrowUp":We="",we=Tt(1);break;case"ArrowDown":We="",we=Tt(-1);break;default:isNaN(Number(Fe))||(We=V+Fe,we=We);break}if(We!==null&&(j(We),We.length>=Ie&&(At(1),j(""))),we!==null){var vn=ue.slice(0,Le)+MM(we,Ie)+ue.slice(Ne);ze(vn.slice(0,s.length))}ce({})},Nt=E.useRef();$n(function(){if(!(!Y||!s||ut.current)){if(!ye.match(ue)){ze(s);return}return me.current.setSelectionRange(Le,Ne),Nt.current=Wr(function(){me.current.setSelectionRange(Le,Ne)}),function(){Wr.cancel(Nt.current)}}},[ye,s,Y,ue,U,Le,Ne,ie,ze]);var Ue=s?{onFocus:Ee,onBlur:ht,onKeyDown:Ut,onMouseDown:He,onMouseUp:Qe,onPaste:Be}:{};return E.createElement("div",{ref:be,className:Te(N,ae(ae({},"".concat(N,"-active"),t&&a),"".concat(N,"-placeholder"),u))},E.createElement(R,tt({ref:me,"aria-invalid":y,autoComplete:"off"},S,{onKeyDown:at,onBlur:st},Ue,{value:ue,onChange:$e})),E.createElement(Fv,{type:"suffix",icon:i}),x)}),tre=["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"],nre=["index"];function rre(n,e){var t=n.id,r=n.prefix,a=n.clearIcon,i=n.suffixIcon,s=n.separator,o=s===void 0?"~":s,l=n.activeIndex;n.activeHelp,n.allHelp;var u=n.focused;n.onFocus,n.onBlur,n.onKeyDown,n.locale,n.generateConfig;var d=n.placeholder,f=n.className,g=n.style,p=n.onClick,b=n.onClear,y=n.value;n.onChange,n.onSubmit,n.onInputChange,n.format,n.maskFormat,n.preserveInvalidOnBlur,n.onInvalid;var x=n.disabled,S=n.invalid;n.inputReadOnly;var C=n.direction;n.onOpenChange;var O=n.onActiveInfo;n.placement;var D=n.onMouseDown;n.required,n["aria-required"];var M=n.autoFocus,A=n.tabIndex,T=zn(n,tre),P=C==="rtl",R=E.useContext(Mi),N=R.prefixCls,I=E.useMemo(function(){if(typeof t=="string")return[t];var ie=t||{};return[ie.start,ie.end]},[t]),$=E.useRef(),Y=E.useRef(),k=E.useRef(),H=function(ce){var ue;return(ue=[Y,k][ce])===null||ue===void 0?void 0:ue.current};E.useImperativeHandle(e,function(){return{nativeElement:$.current,focus:function(ce){if(vt(ce)==="object"){var ue,be=ce||{},me=be.index,ye=me===void 0?0:me,De=zn(be,nre);(ue=H(ye))===null||ue===void 0||ue.focus(De)}else{var Ce;(Ce=H(ce??0))===null||Ce===void 0||Ce.focus()}},blur:function(){var ce,ue;(ce=H(0))===null||ce===void 0||ce.blur(),(ue=H(1))===null||ue===void 0||ue.blur()}}});var F=j3(T),B=E.useMemo(function(){return Array.isArray(d)?d:[d,d]},[d]),X=Y3(se(se({},n),{},{id:I,placeholder:B})),Q=le(X,1),z=Q[0],V=E.useState({position:"absolute",width:0}),j=le(V,2),q=j[0],G=j[1],U=cn(function(){var ie=H(l);if(ie){var ce=ie.nativeElement.getBoundingClientRect(),ue=$.current.getBoundingClientRect(),be=ce.left-ue.left;G(function(me){return se(se({},me),{},{width:ce.width,left:be})}),O([ce.left,ce.right,ue.width])}});E.useEffect(function(){U()},[l]);var K=a&&(y[0]&&!x[0]||y[1]&&!x[1]),te=M&&!x[0],ne=M&&!te&&!x[1];return E.createElement(_l,{onResize:U},E.createElement("div",tt({},F,{className:Te(N,"".concat(N,"-range"),ae(ae(ae(ae({},"".concat(N,"-focused"),u),"".concat(N,"-disabled"),x.every(function(ie){return ie})),"".concat(N,"-invalid"),S.some(function(ie){return ie})),"".concat(N,"-rtl"),P),f),style:g,ref:$,onClick:p,onMouseDown:function(ce){var ue=ce.target;ue!==Y.current.inputElement&&ue!==k.current.inputElement&&ce.preventDefault(),D?.(ce)}}),r&&E.createElement("div",{className:"".concat(N,"-prefix")},r),E.createElement(eE,tt({ref:Y},z(0),{autoFocus:te,tabIndex:A,"date-range":"start"})),E.createElement("div",{className:"".concat(N,"-range-separator")},o),E.createElement(eE,tt({ref:k},z(1),{autoFocus:ne,tabIndex:A,"date-range":"end"})),E.createElement("div",{className:"".concat(N,"-active-bar"),style:q}),E.createElement(Fv,{type:"suffix",icon:i}),K&&E.createElement(JO,{icon:a,onClear:b})))}var are=E.forwardRef(rre);function o2(n,e){var t=n??e;return Array.isArray(t)?t:[t,t]}function gp(n){return n===1?"end":"start"}function ire(n,e){var t=D3(n,function(){var Mt=n.disabled,Ke=n.allowEmpty,xt=o2(Mt,!1),an=o2(Ke,!1);return{disabled:xt,allowEmpty:an}}),r=le(t,6),a=r[0],i=r[1],s=r[2],o=r[3],l=r[4],u=r[5],d=a.prefixCls,f=a.styles,g=a.classNames,p=a.defaultValue,b=a.value,y=a.needConfirm,x=a.onKeyDown,S=a.disabled,C=a.allowEmpty,O=a.disabledDate,D=a.minDate,M=a.maxDate,A=a.defaultOpen,T=a.open,P=a.onOpenChange,R=a.locale,N=a.generateConfig,I=a.picker,$=a.showNow,Y=a.showToday,k=a.showTime,H=a.mode,F=a.onPanelChange,B=a.onCalendarChange,X=a.onOk,Q=a.defaultPickerValue,z=a.pickerValue,V=a.onPickerValueChange,j=a.inputReadOnly,q=a.suffixIcon,G=a.onFocus,U=a.onBlur,K=a.presets,te=a.ranges,ne=a.components,ie=a.cellRender,ce=a.dateRender,ue=a.monthCellRender,be=a.onClick,me=A3(e),ye=_3(T,A,S,P),De=le(ye,2),Ce=De[0],Le=De[1],Ne=function(Ke,xt){(S.some(function(an){return!an})||!Ke)&&Le(Ke,xt)},Ve=$3(N,R,o,!0,!1,p,b,B,X),ze=le(Ve,5),$e=ze[0],Be=ze[1],ut=ze[2],He=ze[3],Qe=ze[4],Ee=ut(),st=R3(S,C,Ce),ht=le(st,9),at=ht[0],Ut=ht[1],Nt=ht[2],Ue=ht[3],yt=ht[4],Pe=ht[5],Fe=ht[6],We=ht[7],we=ht[8],Ie=function(Ke,xt){Ut(!0),G?.(Ke,{range:gp(xt??Ue)})},Dt=function(Ke,xt){Ut(!1),U?.(Ke,{range:gp(xt??Ue)})},At=E.useMemo(function(){if(!k)return null;var Mt=k.disabledTime,Ke=Mt?function(xt){var an=gp(Ue),$t=m3(Ee,Fe,Ue);return Mt(xt,an,{from:$t})}:void 0;return se(se({},k),{},{disabledTime:Ke})},[k,Ue,Ee,Fe]),Tt=qi([I,I],{value:H}),vn=le(Tt,2),un=vn[0],Jt=vn[1],It=un[Ue]||I,Ct=It==="date"&&At?"datetime":It,Ge=Ct===I&&Ct!=="time",ot=k3(I,It,$,Y,!0),it=F3(a,$e,Be,ut,He,S,o,at,Ce,u),nt=le(it,2),gt=nt[0],jt=nt[1],rn=Ane(Ee,S,Fe,N,R,O),en=b3(Ee,u,C),dr=le(en,2),fr=dr[0],zt=dr[1],Gt=P3(N,R,Ee,un,Ce,Ue,i,Ge,Q,z,At?.defaultOpenValue,V,D,M),Sn=le(Gt,2),sn=Sn[0],Pn=Sn[1],Ln=cn(function(Mt,Ke,xt){var an=Uf(un,Ue,Ke);if((an[0]!==un[0]||an[1]!==un[1])&&Jt(an),F&&xt!==!1){var $t=je(Ee);Mt&&($t[Ue]=Mt),F($t,an)}}),Cn=function(Ke,xt){return Uf(Ee,xt,Ke)},Et=function(Ke,xt){var an=Ee;Ke&&(an=Cn(Ke,Ue)),We(Ue);var $t=Pe(an);He(an),gt(Ue,$t===null),$t===null?Ne(!1,{force:!0}):xt||me.current.focus({index:$t})},Qn=function(Ke){var xt,an=Ke.target.getRootNode();if(!me.current.nativeElement.contains((xt=an.activeElement)!==null&&xt!==void 0?xt:document.activeElement)){var $t=S.findIndex(function(Zr){return!Zr});$t>=0&&me.current.focus({index:$t})}Ne(!0),be?.(Ke)},Bn=function(){jt(null),Ne(!1,{force:!0})},qn=E.useState(null),Rt=le(qn,2),Pr=Rt[0],Lr=Rt[1],rr=E.useState(null),ar=le(rr,2),ir=ar[0],Sr=ar[1],Yn=E.useMemo(function(){return ir||Ee},[Ee,ir]);E.useEffect(function(){Ce||Sr(null)},[Ce]);var Xr=E.useState([0,0,0]),sr=le(Xr,2),Xn=sr[0],Nr=sr[1],hr=T3(K,te),aa=function(Ke){Sr(Ke),Lr("preset")},Ir=function(Ke){var xt=jt(Ke);xt&&Ne(!1,{force:!0})},on=function(Ke){Et(Ke)},gr=function(Ke){Sr(Ke?Cn(Ke,Ue):null),Lr("cell")},Cr=function(Ke){Ne(!0),Ie(Ke)},Kn=function(){Nt("panel")},Vr=function(Ke){var xt=Uf(Ee,Ue,Ke);He(xt),!y&&!s&&i===Ct&&Et(Ke)},Ur=function(){Ne(!1)},fa=DM(ie,ce,ue,gp(Ue)),In=Ee[Ue]||null,Gr=cn(function(Mt){return u(Mt,{activeIndex:Ue})}),pt=E.useMemo(function(){var Mt=Ov(a,!1),Ke=bM(a,[].concat(je(Object.keys(Mt)),["onChange","onCalendarChange","style","className","onPanelChange","disabledTime"]));return Ke},[a]),lt=E.createElement(B3,tt({},pt,{showNow:ot,showTime:At,range:!0,multiplePanel:Ge,activeInfo:Xn,disabledDate:rn,onFocus:Cr,onBlur:Dt,onPanelMouseDown:Kn,picker:I,mode:It,internalMode:Ct,onPanelChange:Ln,format:l,value:In,isInvalid:Gr,onChange:null,onSelect:Vr,pickerValue:sn,defaultOpenValue:Pl(k?.defaultOpenValue)[Ue],onPickerValueChange:Pn,hoverValue:Yn,onHover:gr,needConfirm:y,onSubmit:Et,onOk:Qe,presets:hr,onPresetHover:aa,onPresetSubmit:Ir,onNow:on,cellRender:fa})),gn=function(Ke,xt){var an=Cn(Ke,xt);He(an)},Jn=function(){Nt("input")},ia=function(Ke,xt){var an=Fe.length,$t=Fe[an-1];if(an&&$t!==xt&&y&&!C[$t]&&!we($t)&&Ee[$t]){me.current.focus({index:$t});return}Nt("input"),Ne(!0,{inherit:!0}),Ue!==xt&&Ce&&!y&&s&&Et(null,!0),yt(xt),Ie(Ke,xt)},$r=function(Ke,xt){if(Ne(!1),!y&&Nt()==="input"){var an=Pe(Ee);gt(Ue,an===null)}Dt(Ke,xt)},si=function(Ke,xt){Ke.key==="Tab"&&Et(null,!0),x?.(Ke,xt)},za=E.useMemo(function(){return{prefixCls:d,locale:R,generateConfig:N,button:ne.button,input:ne.input}},[d,R,N,ne.button,ne.input]);return $n(function(){Ce&&Ue!==void 0&&Ln(null,I,!1)},[Ce,Ue,I]),$n(function(){var Mt=Nt();!Ce&&Mt==="input"&&(Ne(!1),Et(null,!0)),!Ce&&s&&!y&&Mt==="panel"&&(Ne(!0),Et())},[Ce]),E.createElement(Mi.Provider,{value:za},E.createElement(g3,tt({},v3(a),{popupElement:lt,popupStyle:f.popup,popupClassName:g.popup,visible:Ce,onClose:Ur,range:!0}),E.createElement(are,tt({},a,{ref:me,suffixIcon:q,activeIndex:at||Ce?Ue:null,activeHelp:!!ir,allHelp:!!ir&&Pr==="preset",focused:at,onFocus:ia,onBlur:$r,onKeyDown:si,onSubmit:Et,value:Yn,maskFormat:l,onChange:gn,onInputChange:Jn,format:o,inputReadOnly:j,disabled:S,open:Ce,onOpenChange:Ne,onClick:Qn,onClear:Bn,invalid:fr,onInvalid:zt,onActiveInfo:Nr}))))}var sre=E.forwardRef(ire);function ore(n){var e=n.prefixCls,t=n.value,r=n.onRemove,a=n.removeIcon,i=a===void 0?"×":a,s=n.formatDate,o=n.disabled,l=n.maxTagCount,u=n.placeholder,d="".concat(e,"-selector"),f="".concat(e,"-selection"),g="".concat(f,"-overflow");function p(x,S){return E.createElement("span",{className:Te("".concat(f,"-item")),title:typeof x=="string"?x:null},E.createElement("span",{className:"".concat(f,"-item-content")},x),!o&&S&&E.createElement("span",{onMouseDown:function(O){O.preventDefault()},onClick:S,className:"".concat(f,"-item-remove")},i))}function b(x){var S=s(x),C=function(D){D&&D.stopPropagation(),r(x)};return p(S,C)}function y(x){var S="+ ".concat(x.length," ...");return p(S)}return E.createElement("div",{className:d},E.createElement(jh,{prefixCls:g,data:t,renderItem:b,renderRest:y,itemKey:function(S){return s(S)},maxCount:l}),!t.length&&E.createElement("span",{className:"".concat(e,"-selection-placeholder")},u))}var lre=["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 cre(n,e){n.id;var t=n.open,r=n.prefix,a=n.clearIcon,i=n.suffixIcon;n.activeHelp,n.allHelp;var s=n.focused;n.onFocus,n.onBlur,n.onKeyDown;var o=n.locale,l=n.generateConfig,u=n.placeholder,d=n.className,f=n.style,g=n.onClick,p=n.onClear,b=n.internalPicker,y=n.value,x=n.onChange,S=n.onSubmit;n.onInputChange;var C=n.multiple,O=n.maxTagCount;n.format,n.maskFormat,n.preserveInvalidOnBlur,n.onInvalid;var D=n.disabled,M=n.invalid;n.inputReadOnly;var A=n.direction;n.onOpenChange;var T=n.onMouseDown;n.required,n["aria-required"];var P=n.autoFocus,R=n.tabIndex,N=n.removeIcon,I=zn(n,lre),$=A==="rtl",Y=E.useContext(Mi),k=Y.prefixCls,H=E.useRef(),F=E.useRef();E.useImperativeHandle(e,function(){return{nativeElement:H.current,focus:function(te){var ne;(ne=F.current)===null||ne===void 0||ne.focus(te)},blur:function(){var te;(te=F.current)===null||te===void 0||te.blur()}}});var B=j3(I),X=function(te){x([te])},Q=function(te){var ne=y.filter(function(ie){return ie&&!na(l,o,ie,te,b)});x(ne),t||S()},z=Y3(se(se({},n),{},{onChange:X}),function(K){var te=K.valueTexts;return{value:te[0]||"",active:s}}),V=le(z,2),j=V[0],q=V[1],G=!!(a&&y.length&&!D),U=C?E.createElement(E.Fragment,null,E.createElement(ore,{prefixCls:k,value:y,onRemove:Q,formatDate:q,maxTagCount:O,disabled:D,removeIcon:N,placeholder:u}),E.createElement("input",{className:"".concat(k,"-multiple-input"),value:y.map(q).join(","),ref:F,readOnly:!0,autoFocus:P,tabIndex:R}),E.createElement(Fv,{type:"suffix",icon:i}),G&&E.createElement(JO,{icon:a,onClear:p})):E.createElement(eE,tt({ref:F},j(),{autoFocus:P,tabIndex:R,suffixIcon:i,clearIcon:G&&E.createElement(JO,{icon:a,onClear:p}),showActiveCls:!1}));return E.createElement("div",tt({},B,{className:Te(k,ae(ae(ae(ae(ae({},"".concat(k,"-multiple"),C),"".concat(k,"-focused"),s),"".concat(k,"-disabled"),D),"".concat(k,"-invalid"),M),"".concat(k,"-rtl"),$),d),style:f,ref:H,onClick:g,onMouseDown:function(te){var ne,ie=te.target;ie!==((ne=F.current)===null||ne===void 0?void 0:ne.inputElement)&&te.preventDefault(),T?.(te)}}),r&&E.createElement("div",{className:"".concat(k,"-prefix")},r),U)}var ure=E.forwardRef(cre);function dre(n,e){var t=D3(n),r=le(t,6),a=r[0],i=r[1],s=r[2],o=r[3],l=r[4],u=r[5],d=a,f=d.prefixCls,g=d.styles,p=d.classNames,b=d.order,y=d.defaultValue,x=d.value,S=d.needConfirm,C=d.onChange,O=d.onKeyDown,D=d.disabled,M=d.disabledDate,A=d.minDate,T=d.maxDate,P=d.defaultOpen,R=d.open,N=d.onOpenChange,I=d.locale,$=d.generateConfig,Y=d.picker,k=d.showNow,H=d.showToday,F=d.showTime,B=d.mode,X=d.onPanelChange,Q=d.onCalendarChange,z=d.onOk,V=d.multiple,j=d.defaultPickerValue,q=d.pickerValue,G=d.onPickerValueChange,U=d.inputReadOnly,K=d.suffixIcon,te=d.removeIcon,ne=d.onFocus,ie=d.onBlur,ce=d.presets,ue=d.components,be=d.cellRender,me=d.dateRender,ye=d.monthCellRender,De=d.onClick,Ce=A3(e);function Le(pt){return pt===null?null:V?pt:pt[0]}var Ne=H3($,I,i),Ve=_3(R,P,[D],N),ze=le(Ve,2),$e=ze[0],Be=ze[1],ut=function(lt,gn,Jn){if(Q){var ia=se({},Jn);delete ia.range,Q(Le(lt),Le(gn),ia)}},He=function(lt){z?.(Le(lt))},Qe=$3($,I,o,!1,b,y,x,ut,He),Ee=le(Qe,5),st=Ee[0],ht=Ee[1],at=Ee[2],Ut=Ee[3],Nt=Ee[4],Ue=at(),yt=R3([D]),Pe=le(yt,4),Fe=Pe[0],We=Pe[1],we=Pe[2],Ie=Pe[3],Dt=function(lt){We(!0),ne?.(lt,{})},At=function(lt){We(!1),ie?.(lt,{})},Tt=qi(Y,{value:B}),vn=le(Tt,2),un=vn[0],Jt=vn[1],It=un==="date"&&F?"datetime":un,Ct=k3(Y,un,k,H),Ge=C&&function(pt,lt){C(Le(pt),Le(lt))},ot=F3(se(se({},a),{},{onChange:Ge}),st,ht,at,Ut,[],o,Fe,$e,u),it=le(ot,2),nt=it[1],gt=b3(Ue,u),jt=le(gt,2),rn=jt[0],en=jt[1],dr=E.useMemo(function(){return rn.some(function(pt){return pt})},[rn]),fr=function(lt,gn){if(G){var Jn=se(se({},gn),{},{mode:gn.mode[0]});delete Jn.range,G(lt[0],Jn)}},zt=P3($,I,Ue,[un],$e,Ie,i,!1,j,q,Pl(F?.defaultOpenValue),fr,A,T),Gt=le(zt,2),Sn=Gt[0],sn=Gt[1],Pn=cn(function(pt,lt,gn){if(Jt(lt),X&&gn!==!1){var Jn=pt||Ue[Ue.length-1];X(Jn,lt)}}),Ln=function(){nt(at()),Be(!1,{force:!0})},Cn=function(lt){!D&&!Ce.current.nativeElement.contains(document.activeElement)&&Ce.current.focus(),Be(!0),De?.(lt)},Et=function(){nt(null),Be(!1,{force:!0})},Qn=E.useState(null),Bn=le(Qn,2),qn=Bn[0],Rt=Bn[1],Pr=E.useState(null),Lr=le(Pr,2),rr=Lr[0],ar=Lr[1],ir=E.useMemo(function(){var pt=[rr].concat(je(Ue)).filter(function(lt){return lt});return V?pt:pt.slice(0,1)},[Ue,rr,V]),Sr=E.useMemo(function(){return!V&&rr?[rr]:Ue.filter(function(pt){return pt})},[Ue,rr,V]);E.useEffect(function(){$e||ar(null)},[$e]);var Yn=T3(ce),Xr=function(lt){ar(lt),Rt("preset")},sr=function(lt){var gn=V?Ne(at(),lt):[lt],Jn=nt(gn);Jn&&!V&&Be(!1,{force:!0})},Xn=function(lt){sr(lt)},Nr=function(lt){ar(lt),Rt("cell")},hr=function(lt){Be(!0),Dt(lt)},aa=function(lt){if(we("panel"),!(V&&It!==Y)){var gn=V?Ne(at(),lt):[lt];Ut(gn),!S&&!s&&i===It&&Ln()}},Ir=function(){Be(!1)},on=DM(be,me,ye),gr=E.useMemo(function(){var pt=Ov(a,!1),lt=bM(a,[].concat(je(Object.keys(pt)),["onChange","onCalendarChange","style","className","onPanelChange"]));return se(se({},lt),{},{multiple:a.multiple})},[a]),Cr=E.createElement(B3,tt({},gr,{showNow:Ct,showTime:F,disabledDate:M,onFocus:hr,onBlur:At,picker:Y,mode:un,internalMode:It,onPanelChange:Pn,format:l,value:Ue,isInvalid:u,onChange:null,onSelect:aa,pickerValue:Sn,defaultOpenValue:F?.defaultOpenValue,onPickerValueChange:sn,hoverValue:ir,onHover:Nr,needConfirm:S,onSubmit:Ln,onOk:Nt,presets:Yn,onPresetHover:Xr,onPresetSubmit:sr,onNow:Xn,cellRender:on})),Kn=function(lt){Ut(lt)},Vr=function(){we("input")},Ur=function(lt){we("input"),Be(!0,{inherit:!0}),Dt(lt)},fa=function(lt){Be(!1),At(lt)},In=function(lt,gn){lt.key==="Tab"&&Ln(),O?.(lt,gn)},Gr=E.useMemo(function(){return{prefixCls:f,locale:I,generateConfig:$,button:ue.button,input:ue.input}},[f,I,$,ue.button,ue.input]);return $n(function(){$e&&Ie!==void 0&&Pn(null,Y,!1)},[$e,Ie,Y]),$n(function(){var pt=we();!$e&&pt==="input"&&(Be(!1),Ln()),!$e&&s&&!S&&pt==="panel"&&Ln()},[$e]),E.createElement(Mi.Provider,{value:Gr},E.createElement(g3,tt({},v3(a),{popupElement:Cr,popupStyle:g.popup,popupClassName:p.popup,visible:$e,onClose:Ir}),E.createElement(ure,tt({},a,{ref:Ce,suffixIcon:K,removeIcon:te,activeHelp:!!rr,allHelp:!!rr&&qn==="preset",focused:Fe,onFocus:Ur,onBlur:fa,onKeyDown:In,onSubmit:Ln,value:Sr,maskFormat:l,onChange:Kn,onInputChange:Vr,internalPicker:i,format:o,inputReadOnly:U,disabled:D,open:$e,onOpenChange:Be,onClick:Cn,onClear:Et,invalid:dr,onInvalid:function(lt){en(lt,0)}}))))}var fre=E.forwardRef(dre);function PM(n){return Ca(n,{inputAffixPadding:n.paddingXXS})}const LM=n=>{const{controlHeight:e,fontSize:t,lineHeight:r,lineWidth:a,controlHeightSM:i,controlHeightLG:s,fontSizeLG:o,lineHeightLG:l,paddingSM:u,controlPaddingHorizontalSM:d,controlPaddingHorizontal:f,colorFillAlter:g,colorPrimaryHover:p,colorPrimary:b,controlOutlineWidth:y,controlOutline:x,colorErrorOutline:S,colorWarningOutline:C,colorBgContainer:O,inputFontSize:D,inputFontSizeLG:M,inputFontSizeSM:A}=n,T=D||t,P=A||T,R=M||o,N=Math.round((e-T*r)/2*10)/10-a,I=Math.round((i-P*r)/2*10)/10-a,$=Math.ceil((s-R*l)/2*10)/10-a;return{paddingBlock:Math.max(N,0),paddingBlockSM:Math.max(I,0),paddingBlockLG:Math.max($,0),paddingInline:u-a,paddingInlineSM:d-a,paddingInlineLG:f-a,addonBg:g,activeBorderColor:b,hoverBorderColor:p,activeShadow:`0 0 0 ${y}px ${x}`,errorActiveShadow:`0 0 0 ${y}px ${S}`,warningActiveShadow:`0 0 0 ${y}px ${C}`,hoverBg:O,activeBg:O,inputFontSize:T,inputFontSizeLG:R,inputFontSizeSM:P}},hre=n=>({borderColor:n.hoverBorderColor,backgroundColor:n.hoverBg}),NM=n=>({color:n.colorTextDisabled,backgroundColor:n.colorBgContainerDisabled,borderColor:n.colorBorder,boxShadow:"none",cursor:"not-allowed",opacity:1,"input[disabled], textarea[disabled]":{cursor:"not-allowed"},"&:hover:not([disabled])":Object.assign({},hre(Ca(n,{hoverBorderColor:n.colorBorder,hoverBg:n.colorBgContainerDisabled})))}),W3=(n,e)=>({background:n.colorBgContainer,borderWidth:n.lineWidth,borderStyle:n.lineType,borderColor:e.borderColor,"&:hover":{borderColor:e.hoverBorderColor,backgroundColor:n.hoverBg},"&:focus, &:focus-within":{borderColor:e.activeBorderColor,boxShadow:e.activeShadow,outline:0,backgroundColor:n.activeBg}}),l2=(n,e)=>({[`&${n.componentCls}-status-${e.status}:not(${n.componentCls}-disabled)`]:Object.assign(Object.assign({},W3(n,e)),{[`${n.componentCls}-prefix, ${n.componentCls}-suffix`]:{color:e.affixColor}}),[`&${n.componentCls}-status-${e.status}${n.componentCls}-disabled`]:{borderColor:e.borderColor}}),q3=(n,e)=>({"&-outlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},W3(n,{borderColor:n.colorBorder,hoverBorderColor:n.hoverBorderColor,activeBorderColor:n.activeBorderColor,activeShadow:n.activeShadow})),{[`&${n.componentCls}-disabled, &[disabled]`]:Object.assign({},NM(n))}),l2(n,{status:"error",borderColor:n.colorError,hoverBorderColor:n.colorErrorBorderHover,activeBorderColor:n.colorError,activeShadow:n.errorActiveShadow,affixColor:n.colorError})),l2(n,{status:"warning",borderColor:n.colorWarning,hoverBorderColor:n.colorWarningBorderHover,activeBorderColor:n.colorWarning,activeShadow:n.warningActiveShadow,affixColor:n.colorWarning})),e)}),c2=(n,e)=>({[`&${n.componentCls}-group-wrapper-status-${e.status}`]:{[`${n.componentCls}-group-addon`]:{borderColor:e.addonBorderColor,color:e.addonColor}}}),gre=n=>({"&-outlined":Object.assign(Object.assign(Object.assign({[`${n.componentCls}-group`]:{"&-addon":{background:n.addonBg,border:`${Ze(n.lineWidth)} ${n.lineType} ${n.colorBorder}`},"&-addon:first-child":{borderInlineEnd:0},"&-addon:last-child":{borderInlineStart:0}}},c2(n,{status:"error",addonBorderColor:n.colorError,addonColor:n.colorErrorText})),c2(n,{status:"warning",addonBorderColor:n.colorWarning,addonColor:n.colorWarningText})),{[`&${n.componentCls}-group-wrapper-disabled`]:{[`${n.componentCls}-group-addon`]:Object.assign({},NM(n))}})}),X3=(n,e)=>{const{componentCls:t}=n;return{"&-borderless":Object.assign({background:"transparent",border:"none","&:focus, &:focus-within":{outline:"none"},[`&${t}-disabled, &[disabled]`]:{color:n.colorTextDisabled,cursor:"not-allowed"},[`&${t}-status-error`]:{"&, & input, & textarea":{color:n.colorError}},[`&${t}-status-warning`]:{"&, & input, & textarea":{color:n.colorWarning}}},e)}},V3=(n,e)=>{var t;return{background:e.bg,borderWidth:n.lineWidth,borderStyle:n.lineType,borderColor:"transparent","input&, & input, textarea&, & textarea":{color:(t=e?.inputColor)!==null&&t!==void 0?t:"unset"},"&:hover":{background:e.hoverBg},"&:focus, &:focus-within":{outline:0,borderColor:e.activeBorderColor,backgroundColor:n.activeBg}}},u2=(n,e)=>({[`&${n.componentCls}-status-${e.status}:not(${n.componentCls}-disabled)`]:Object.assign(Object.assign({},V3(n,e)),{[`${n.componentCls}-prefix, ${n.componentCls}-suffix`]:{color:e.affixColor}})}),U3=(n,e)=>({"&-filled":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},V3(n,{bg:n.colorFillTertiary,hoverBg:n.colorFillSecondary,activeBorderColor:n.activeBorderColor})),{[`&${n.componentCls}-disabled, &[disabled]`]:Object.assign({},NM(n))}),u2(n,{status:"error",bg:n.colorErrorBg,hoverBg:n.colorErrorBgHover,activeBorderColor:n.colorError,inputColor:n.colorErrorText,affixColor:n.colorError})),u2(n,{status:"warning",bg:n.colorWarningBg,hoverBg:n.colorWarningBgHover,activeBorderColor:n.colorWarning,inputColor:n.colorWarningText,affixColor:n.colorWarning})),e)}),d2=(n,e)=>({[`&${n.componentCls}-group-wrapper-status-${e.status}`]:{[`${n.componentCls}-group-addon`]:{background:e.addonBg,color:e.addonColor}}}),pre=n=>({"&-filled":Object.assign(Object.assign(Object.assign({[`${n.componentCls}-group-addon`]:{background:n.colorFillTertiary,"&:last-child":{position:"static"}}},d2(n,{status:"error",addonBg:n.colorErrorBg,addonColor:n.colorErrorText})),d2(n,{status:"warning",addonBg:n.colorWarningBg,addonColor:n.colorWarningText})),{[`&${n.componentCls}-group-wrapper-disabled`]:{[`${n.componentCls}-group`]:{"&-addon":{background:n.colorFillTertiary,color:n.colorTextDisabled},"&-addon:first-child":{borderInlineStart:`${Ze(n.lineWidth)} ${n.lineType} ${n.colorBorder}`,borderTop:`${Ze(n.lineWidth)} ${n.lineType} ${n.colorBorder}`,borderBottom:`${Ze(n.lineWidth)} ${n.lineType} ${n.colorBorder}`},"&-addon:last-child":{borderInlineEnd:`${Ze(n.lineWidth)} ${n.lineType} ${n.colorBorder}`,borderTop:`${Ze(n.lineWidth)} ${n.lineType} ${n.colorBorder}`,borderBottom:`${Ze(n.lineWidth)} ${n.lineType} ${n.colorBorder}`}}}})}),G3=(n,e)=>({background:n.colorBgContainer,borderWidth:`${Ze(n.lineWidth)} 0`,borderStyle:`${n.lineType} none`,borderColor:`transparent transparent ${e.borderColor} transparent`,borderRadius:0,"&:hover":{borderColor:`transparent transparent ${e.borderColor} transparent`,backgroundColor:n.hoverBg},"&:focus, &:focus-within":{borderColor:`transparent transparent ${e.activeBorderColor} transparent`,outline:0,backgroundColor:n.activeBg}}),f2=(n,e)=>({[`&${n.componentCls}-status-${e.status}:not(${n.componentCls}-disabled)`]:Object.assign(Object.assign({},G3(n,e)),{[`${n.componentCls}-prefix, ${n.componentCls}-suffix`]:{color:e.affixColor}}),[`&${n.componentCls}-status-${e.status}${n.componentCls}-disabled`]:{borderColor:`transparent transparent ${e.borderColor} transparent`}}),Z3=(n,e)=>({"&-underlined":Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},G3(n,{borderColor:n.colorBorder,hoverBorderColor:n.hoverBorderColor,activeBorderColor:n.activeBorderColor,activeShadow:n.activeShadow})),{[`&${n.componentCls}-disabled, &[disabled]`]:{color:n.colorTextDisabled,boxShadow:"none",cursor:"not-allowed","&:hover":{borderColor:`transparent transparent ${n.colorBorder} transparent`}},"input[disabled], textarea[disabled]":{cursor:"not-allowed"}}),f2(n,{status:"error",borderColor:n.colorError,hoverBorderColor:n.colorErrorBorderHover,activeBorderColor:n.colorError,activeShadow:n.errorActiveShadow,affixColor:n.colorError})),f2(n,{status:"warning",borderColor:n.colorWarning,hoverBorderColor:n.colorWarningBorderHover,activeBorderColor:n.colorWarning,activeShadow:n.warningActiveShadow,affixColor:n.colorWarning})),e)}),Q3=n=>({"&::-moz-placeholder":{opacity:1},"&::placeholder":{color:n,userSelect:"none"},"&:placeholder-shown":{textOverflow:"ellipsis"}}),K3=n=>{const{paddingBlockLG:e,lineHeightLG:t,borderRadiusLG:r,paddingInlineLG:a}=n;return{padding:`${Ze(e)} ${Ze(a)}`,fontSize:n.inputFontSizeLG,lineHeight:t,borderRadius:r}},J3=n=>({padding:`${Ze(n.paddingBlockSM)} ${Ze(n.paddingInlineSM)}`,fontSize:n.inputFontSizeSM,borderRadius:n.borderRadiusSM}),ej=n=>Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",minWidth:0,padding:`${Ze(n.paddingBlock)} ${Ze(n.paddingInline)}`,color:n.colorText,fontSize:n.inputFontSize,lineHeight:n.lineHeight,borderRadius:n.borderRadius,transition:`all ${n.motionDurationMid}`},Q3(n.colorTextPlaceholder)),{"&-lg":Object.assign({},K3(n)),"&-sm":Object.assign({},J3(n)),"&-rtl, &-textarea-rtl":{direction:"rtl"}}),mre=n=>{const{componentCls:e,antCls:t}=n;return{position:"relative",display:"table",width:"100%",borderCollapse:"separate",borderSpacing:0,"&[class*='col-']":{paddingInlineEnd:n.paddingXS,"&:last-child":{paddingInlineEnd:0}},[`&-lg ${e}, &-lg > ${e}-group-addon`]:Object.assign({},K3(n)),[`&-sm ${e}, &-sm > ${e}-group-addon`]:Object.assign({},J3(n)),[`&-lg ${t}-select-single ${t}-select-selector`]:{height:n.controlHeightLG},[`&-sm ${t}-select-single ${t}-select-selector`]:{height:n.controlHeightSM},[`> ${e}`]:{display:"table-cell","&:not(:first-child):not(:last-child)":{borderRadius:0}},[`${e}-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 ${Ze(n.paddingInline)}`,color:n.colorText,fontWeight:"normal",fontSize:n.inputFontSize,textAlign:"center",borderRadius:n.borderRadius,transition:`all ${n.motionDurationSlow}`,lineHeight:1,[`${t}-select`]:{margin:`${Ze(n.calc(n.paddingBlock).add(1).mul(-1).equal())} ${Ze(n.calc(n.paddingInline).mul(-1).equal())}`,[`&${t}-select-single:not(${t}-select-customize-input):not(${t}-pagination-size-changer)`]:{[`${t}-select-selector`]:{backgroundColor:"inherit",border:`${Ze(n.lineWidth)} ${n.lineType} transparent`,boxShadow:"none"}}},[`${t}-cascader-picker`]:{margin:`-9px ${Ze(n.calc(n.paddingInline).mul(-1).equal())}`,backgroundColor:"transparent",[`${t}-cascader-input`]:{textAlign:"start",border:0,boxShadow:"none"}}}},[e]:{width:"100%",marginBottom:0,textAlign:"inherit","&:focus":{zIndex:1,borderInlineEndWidth:1},"&:hover":{zIndex:1,borderInlineEndWidth:1,[`${e}-search-with-button &`]:{zIndex:0}}},[`> ${e}:first-child, ${e}-group-addon:first-child`]:{borderStartEndRadius:0,borderEndEndRadius:0,[`${t}-select ${t}-select-selector`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${e}-affix-wrapper`]:{[`&:not(:first-child) ${e}`]:{borderStartStartRadius:0,borderEndStartRadius:0},[`&:not(:last-child) ${e}`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`> ${e}:last-child, ${e}-group-addon:last-child`]:{borderStartStartRadius:0,borderEndStartRadius:0,[`${t}-select ${t}-select-selector`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`${e}-affix-wrapper`]:{"&:not(:last-child)":{borderStartEndRadius:0,borderEndEndRadius:0,[`${e}-search &`]:{borderStartStartRadius:n.borderRadius,borderEndStartRadius:n.borderRadius}},[`&:not(:first-child), ${e}-search &:not(:first-child)`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&${e}-group-compact`]:Object.assign(Object.assign({display:"block"},OZ()),{[`${e}-group-addon, ${e}-group-wrap, > ${e}`]:{"&:not(:first-child):not(:last-child)":{borderInlineEndWidth:n.lineWidth,"&:hover, &:focus":{zIndex:1}}},"& > *":{display:"inline-flex",float:"none",verticalAlign:"top",borderRadius:0},[`
        & > ${e}-affix-wrapper,
        & > ${e}-number-affix-wrapper,
        & > ${t}-picker-range
      `]:{display:"inline-flex"},"& > *:not(:last-child)":{marginInlineEnd:n.calc(n.lineWidth).mul(-1).equal(),borderInlineEndWidth:n.lineWidth},[e]:{float:"none"},[`& > ${t}-select > ${t}-select-selector,
      & > ${t}-select-auto-complete ${e},
      & > ${t}-cascader-picker ${e},
      & > ${e}-group-wrapper ${e}`]:{borderInlineEndWidth:n.lineWidth,borderRadius:0,"&:hover, &:focus":{zIndex:1}},[`& > ${t}-select-focused`]:{zIndex:1},[`& > ${t}-select > ${t}-select-arrow`]:{zIndex:1},[`& > *:first-child,
      & > ${t}-select:first-child > ${t}-select-selector,
      & > ${t}-select-auto-complete:first-child ${e},
      & > ${t}-cascader-picker:first-child ${e}`]:{borderStartStartRadius:n.borderRadius,borderEndStartRadius:n.borderRadius},[`& > *:last-child,
      & > ${t}-select:last-child > ${t}-select-selector,
      & > ${t}-cascader-picker:last-child ${e},
      & > ${t}-cascader-picker-focused:last-child ${e}`]:{borderInlineEndWidth:n.lineWidth,borderStartEndRadius:n.borderRadius,borderEndEndRadius:n.borderRadius},[`& > ${t}-select-auto-complete ${e}`]:{verticalAlign:"top"},[`${e}-group-wrapper + ${e}-group-wrapper`]:{marginInlineStart:n.calc(n.lineWidth).mul(-1).equal(),[`${e}-affix-wrapper`]:{borderRadius:0}},[`${e}-group-wrapper:not(:last-child)`]:{[`&${e}-search > ${e}-group`]:{[`& > ${e}-group-addon > ${e}-search-button`]:{borderRadius:0},[`& > ${e}`]:{borderStartStartRadius:n.borderRadius,borderStartEndRadius:0,borderEndEndRadius:0,borderEndStartRadius:n.borderRadius}}}})}},vre=n=>{const{componentCls:e,controlHeightSM:t,lineWidth:r,calc:a}=n,s=a(t).sub(a(r).mul(2)).sub(16).div(2).equal();return{[e]:Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},dh(n)),ej(n)),q3(n)),U3(n)),X3(n)),Z3(n)),{'&[type="color"]':{height:n.controlHeight,[`&${e}-lg`]:{height:n.controlHeightLG},[`&${e}-sm`]:{height:t,paddingTop:s,paddingBottom:s}},'&[type="search"]::-webkit-search-cancel-button, &[type="search"]::-webkit-search-decoration':{appearance:"none"}})}},bre=n=>{const{componentCls:e}=n;return{[`${e}-clear-icon`]:{margin:0,padding:0,lineHeight:0,color:n.colorTextQuaternary,fontSize:n.fontSizeIcon,verticalAlign:-1,cursor:"pointer",transition:`color ${n.motionDurationSlow}`,border:"none",outline:"none",backgroundColor:"transparent","&:hover":{color:n.colorIcon},"&:active":{color:n.colorText},"&-hidden":{visibility:"hidden"},"&-has-suffix":{margin:`0 ${Ze(n.inputAffixPadding)}`}}}},yre=n=>{const{componentCls:e,inputAffixPadding:t,colorTextDescription:r,motionDurationSlow:a,colorIcon:i,colorIconHover:s,iconCls:o}=n,l=`${e}-affix-wrapper`,u=`${e}-affix-wrapper-disabled`;return{[l]:Object.assign(Object.assign(Object.assign(Object.assign({},ej(n)),{display:"inline-flex",[`&:not(${e}-disabled):hover`]:{zIndex:1,[`${e}-search-with-button &`]:{zIndex:0}},"&-focused, &:focus":{zIndex:1},[`> input${e}`]:{padding:0},[`> input${e}, > textarea${e}`]:{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"'},[e]:{"&-prefix, &-suffix":{display:"flex",flex:"none",alignItems:"center","> *:not(:last-child)":{marginInlineEnd:n.paddingXS}},"&-show-count-suffix":{color:r,direction:"ltr"},"&-show-count-has-suffix":{marginInlineEnd:n.paddingXXS},"&-prefix":{marginInlineEnd:t},"&-suffix":{marginInlineStart:t}}}),bre(n)),{[`${o}${e}-password-icon`]:{color:i,cursor:"pointer",transition:`all ${a}`,"&:hover":{color:s}}}),[`${e}-underlined`]:{borderRadius:0},[u]:{[`${o}${e}-password-icon`]:{color:i,cursor:"not-allowed","&:hover":{color:i}}}}},xre=n=>{const{componentCls:e,borderRadiusLG:t,borderRadiusSM:r}=n;return{[`${e}-group`]:Object.assign(Object.assign(Object.assign({},dh(n)),mre(n)),{"&-rtl":{direction:"rtl"},"&-wrapper":Object.assign(Object.assign(Object.assign({display:"inline-block",width:"100%",textAlign:"start",verticalAlign:"top","&-rtl":{direction:"rtl"},"&-lg":{[`${e}-group-addon`]:{borderRadius:t,fontSize:n.inputFontSizeLG}},"&-sm":{[`${e}-group-addon`]:{borderRadius:r}}},gre(n)),pre(n)),{[`&:not(${e}-compact-first-item):not(${e}-compact-last-item)${e}-compact-item`]:{[`${e}, ${e}-group-addon`]:{borderRadius:0}},[`&:not(${e}-compact-last-item)${e}-compact-first-item`]:{[`${e}, ${e}-group-addon`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${e}-compact-first-item)${e}-compact-last-item`]:{[`${e}, ${e}-group-addon`]:{borderStartStartRadius:0,borderEndStartRadius:0}},[`&:not(${e}-compact-last-item)${e}-compact-item`]:{[`${e}-affix-wrapper`]:{borderStartEndRadius:0,borderEndEndRadius:0}},[`&:not(${e}-compact-first-item)${e}-compact-item`]:{[`${e}-affix-wrapper`]:{borderStartStartRadius:0,borderEndStartRadius:0}}})})}},wre=n=>{const{componentCls:e,antCls:t}=n,r=`${e}-search`;return{[r]:{[e]:{"&:hover, &:focus":{[`+ ${e}-group-addon ${r}-button:not(${t}-btn-color-primary):not(${t}-btn-variant-text)`]:{borderInlineStartColor:n.colorPrimaryHover}}},[`${e}-affix-wrapper`]:{height:n.controlHeight,borderRadius:0},[`${e}-lg`]:{lineHeight:n.calc(n.lineHeightLG).sub(2e-4).equal()},[`> ${e}-group`]:{[`> ${e}-group-addon:last-child`]:{insetInlineStart:-1,padding:0,border:0,[`${r}-button`]:{marginInlineEnd:-1,borderStartStartRadius:0,borderEndStartRadius:0,boxShadow:"none"},[`${r}-button:not(${t}-btn-color-primary)`]:{color:n.colorTextDescription,"&:hover":{color:n.colorPrimaryHover},"&:active":{color:n.colorPrimaryActive},[`&${t}-btn-loading::before`]:{inset:0}}}},[`${r}-button`]:{height:n.controlHeight,"&:hover, &:focus":{zIndex:1}},"&-large":{[`${e}-affix-wrapper, ${r}-button`]:{height:n.controlHeightLG}},"&-small":{[`${e}-affix-wrapper, ${r}-button`]:{height:n.controlHeightSM}},"&-rtl":{direction:"rtl"},[`&${e}-compact-item`]:{[`&:not(${e}-compact-last-item)`]:{[`${e}-group-addon`]:{[`${e}-search-button`]:{marginInlineEnd:n.calc(n.lineWidth).mul(-1).equal(),borderRadius:0}}},[`&:not(${e}-compact-first-item)`]:{[`${e},${e}-affix-wrapper`]:{borderRadius:0}},[`> ${e}-group-addon ${e}-search-button,
        > ${e},
        ${e}-affix-wrapper`]:{"&:hover, &:focus, &:active":{zIndex:2}},[`> ${e}-affix-wrapper-focused`]:{zIndex:2}}}}},Sre=n=>{const{componentCls:e}=n;return{[`${e}-out-of-range`]:{[`&, & input, & textarea, ${e}-show-count-suffix, ${e}-data-count`]:{color:n.colorError}}}};kh(["Input","Shared"],n=>{const e=Ca(n,PM(n));return[vre(e),yre(e)]},LM,{resetFont:!1});kh(["Input","Component"],n=>{const e=Ca(n,PM(n));return[xre(e),wre(e),Sre(e),CM(e)]},LM,{resetFont:!1});const Iy=(n,e)=>{const{componentCls:t,controlHeight:r}=n,a=e?`${t}-${e}`:"",i=Mte(n);return[{[`${t}-multiple${a}`]:{paddingBlock:i.containerPadding,paddingInlineStart:i.basePadding,minHeight:r,[`${t}-selection-item`]:{height:i.itemHeight,lineHeight:Ze(i.itemLineHeight)}}}]},Cre=n=>{const{componentCls:e,calc:t,lineWidth:r}=n,a=Ca(n,{fontHeight:n.fontSize,selectHeight:n.controlHeightSM,multipleSelectItemHeight:n.multipleItemHeightSM,borderRadius:n.borderRadiusSM,borderRadiusSM:n.borderRadiusXS,controlHeight:n.controlHeightSM}),i=Ca(n,{fontHeight:t(n.multipleItemHeightLG).sub(t(r).mul(2).equal()).equal(),fontSize:n.fontSizeLG,selectHeight:n.controlHeightLG,multipleSelectItemHeight:n.multipleItemHeightLG,borderRadius:n.borderRadiusLG,borderRadiusSM:n.borderRadius,controlHeight:n.controlHeightLG});return[Iy(a,"small"),Iy(n),Iy(i,"large"),{[`${e}${e}-multiple`]:Object.assign(Object.assign({width:"100%",cursor:"text",[`${e}-selector`]:{flex:"auto",padding:0,position:"relative","&:after":{margin:0},[`${e}-selection-placeholder`]:{position:"absolute",top:"50%",insetInlineStart:n.inputPaddingHorizontalBase,insetInlineEnd:0,transform:"translateY(-50%)",transition:`all ${n.motionDurationSlow}`,overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis",flex:1,color:n.colorTextPlaceholder,pointerEvents:"none"}}},Dte(n)),{[`${e}-multiple-input`]:{width:0,height:0,border:0,visibility:"hidden",position:"absolute",zIndex:-1}})}]},Ore=n=>{const{pickerCellCls:e,pickerCellInnerCls:t,cellHeight:r,borderRadiusSM:a,motionDurationMid:i,cellHoverBg:s,lineWidth:o,lineType:l,colorPrimary:u,cellActiveWithRangeBg:d,colorTextLightSolid:f,colorTextDisabled:g,cellBgDisabled:p,colorFillSecondary:b}=n;return{"&::before":{position:"absolute",top:"50%",insetInlineStart:0,insetInlineEnd:0,zIndex:1,height:r,transform:"translateY(-50%)",content:'""',pointerEvents:"none"},[t]:{position:"relative",zIndex:2,display:"inline-block",minWidth:r,height:r,lineHeight:Ze(r),borderRadius:a,transition:`background ${i}`},[`&:hover:not(${e}-in-view):not(${e}-disabled),
    &:hover:not(${e}-selected):not(${e}-range-start):not(${e}-range-end):not(${e}-disabled)`]:{[t]:{background:s}},[`&-in-view${e}-today ${t}`]:{"&::before":{position:"absolute",top:0,insetInlineEnd:0,bottom:0,insetInlineStart:0,zIndex:1,border:`${Ze(o)} ${l} ${u}`,borderRadius:a,content:'""'}},[`&-in-view${e}-in-range,
      &-in-view${e}-range-start,
      &-in-view${e}-range-end`]:{position:"relative",[`&:not(${e}-disabled):before`]:{background:d}},[`&-in-view${e}-selected,
      &-in-view${e}-range-start,
      &-in-view${e}-range-end`]:{[`&:not(${e}-disabled) ${t}`]:{color:f,background:u},[`&${e}-disabled ${t}`]:{background:b}},[`&-in-view${e}-range-start:not(${e}-disabled):before`]:{insetInlineStart:"50%"},[`&-in-view${e}-range-end:not(${e}-disabled):before`]:{insetInlineEnd:"50%"},[`&-in-view${e}-range-start:not(${e}-range-end) ${t}`]:{borderStartStartRadius:a,borderEndStartRadius:a,borderStartEndRadius:0,borderEndEndRadius:0},[`&-in-view${e}-range-end:not(${e}-range-start) ${t}`]:{borderStartStartRadius:0,borderEndStartRadius:0,borderStartEndRadius:a,borderEndEndRadius:a},"&-disabled":{color:g,cursor:"not-allowed",[t]:{background:"transparent"},"&::before":{background:p}},[`&-disabled${e}-today ${t}::before`]:{borderColor:g}}},Ere=n=>{const{componentCls:e,pickerCellCls:t,pickerCellInnerCls:r,pickerYearMonthCellWidth:a,pickerControlIconSize:i,cellWidth:s,paddingSM:o,paddingXS:l,paddingXXS:u,colorBgContainer:d,lineWidth:f,lineType:g,borderRadiusLG:p,colorPrimary:b,colorTextHeading:y,colorSplit:x,pickerControlIconBorderWidth:S,colorIcon:C,textHeight:O,motionDurationMid:D,colorIconHover:M,fontWeightStrong:A,cellHeight:T,pickerCellPaddingVertical:P,colorTextDisabled:R,colorText:N,fontSize:I,motionDurationSlow:$,withoutTimeCellHeight:Y,pickerQuarterPanelContentHeight:k,borderRadiusSM:H,colorTextLightSolid:F,cellHoverBg:B,timeColumnHeight:X,timeColumnWidth:Q,timeCellHeight:z,controlItemBgActive:V,marginXXS:j,pickerDatePanelPaddingHorizontal:q,pickerControlIconMargin:G}=n,U=n.calc(s).mul(7).add(n.calc(q).mul(2)).equal();return{[e]:{"&-panel":{display:"inline-flex",flexDirection:"column",textAlign:"center",background:d,borderRadius:p,outline:"none","&-focused":{borderColor:b},"&-rtl":{[`${e}-prev-icon,
              ${e}-super-prev-icon`]:{transform:"rotate(45deg)"},[`${e}-next-icon,
              ${e}-super-next-icon`]:{transform:"rotate(-135deg)"},[`${e}-time-panel`]:{[`${e}-content`]:{direction:"ltr","> *":{direction:"rtl"}}}}},"&-decade-panel,\n        &-year-panel,\n        &-quarter-panel,\n        &-month-panel,\n        &-week-panel,\n        &-date-panel,\n        &-time-panel":{display:"flex",flexDirection:"column",width:U},"&-header":{display:"flex",padding:`0 ${Ze(l)}`,color:y,borderBottom:`${Ze(f)} ${g} ${x}`,"> *":{flex:"none"},button:{padding:0,color:C,lineHeight:Ze(O),background:"transparent",border:0,cursor:"pointer",transition:`color ${D}`,fontSize:"inherit",display:"inline-flex",alignItems:"center",justifyContent:"center","&:empty":{display:"none"}},"> button":{minWidth:"1.6em",fontSize:I,"&:hover":{color:M},"&:disabled":{opacity:.25,pointerEvents:"none"}},"&-view":{flex:"auto",fontWeight:A,lineHeight:Ze(O),"> button":{color:"inherit",fontWeight:"inherit",verticalAlign:"top","&:not(:first-child)":{marginInlineStart:l},"&:hover":{color:b}}}},"&-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:S,borderInlineStartWidth:S,content:'""'}},"&-super-prev-icon,\n        &-super-next-icon":{"&::after":{position:"absolute",top:G,insetInlineStart:G,display:"inline-block",width:i,height:i,border:"0 solid currentcolor",borderBlockStartWidth:S,borderInlineStartWidth:S,content:'""'}},"&-prev-icon, &-super-prev-icon":{transform:"rotate(-45deg)"},"&-next-icon, &-super-next-icon":{transform:"rotate(135deg)"},"&-content":{width:"100%",tableLayout:"fixed",borderCollapse:"collapse","th, td":{position:"relative",minWidth:T,fontWeight:"normal"},th:{height:n.calc(T).add(n.calc(P).mul(2)).equal(),color:N,verticalAlign:"middle"}},"&-cell":Object.assign({padding:`${Ze(P)} 0`,color:R,cursor:"pointer","&-in-view":{color:N}},Ore(n)),"&-decade-panel,\n        &-year-panel,\n        &-quarter-panel,\n        &-month-panel":{[`${e}-content`]:{height:n.calc(Y).mul(4).equal()},[r]:{padding:`0 ${Ze(l)}`}},"&-quarter-panel":{[`${e}-content`]:{height:k}},"&-decade-panel":{[r]:{padding:`0 ${Ze(n.calc(l).div(2).equal())}`},[`${e}-cell::before`]:{display:"none"}},"&-year-panel,\n        &-quarter-panel,\n        &-month-panel":{[`${e}-body`]:{padding:`0 ${Ze(l)}`},[r]:{width:a}},"&-date-panel":{[`${e}-body`]:{padding:`${Ze(l)} ${Ze(q)}`},[`${e}-content th`]:{boxSizing:"border-box",padding:0}},"&-week-panel-row":{td:{"&:before":{transition:`background ${D}`},"&:first-child:before":{borderStartStartRadius:H,borderEndStartRadius:H},"&:last-child:before":{borderStartEndRadius:H,borderEndEndRadius:H}},"&:hover td:before":{background:B},"&-range-start td, &-range-end td, &-selected td, &-hover td":{[`&${t}`]:{"&:before":{background:b},[`&${e}-cell-week`]:{color:new Rn(F).setA(.5).toHexString()},[r]:{color:F}}},"&-range-hover td:before":{background:V}},"&-week-panel, &-date-panel-show-week":{[`${e}-body`]:{padding:`${Ze(l)} ${Ze(o)}`},[`${e}-content th`]:{width:"auto"}},"&-datetime-panel":{display:"flex",[`${e}-time-panel`]:{borderInlineStart:`${Ze(f)} ${g} ${x}`},[`${e}-date-panel,
          ${e}-time-panel`]:{transition:`opacity ${$}`},"&-active":{[`${e}-date-panel,
            ${e}-time-panel`]:{opacity:.3,"&-active":{opacity:1}}}},"&-time-panel":{width:"auto",minWidth:"auto",[`${e}-content`]:{display:"flex",flex:"auto",height:X},"&-column":{flex:"1 0 auto",width:Q,margin:`${Ze(u)} 0`,padding:0,overflowY:"hidden",textAlign:"start",listStyle:"none",transition:`background ${D}`,overflowX:"hidden","&::-webkit-scrollbar":{width:8,backgroundColor:"transparent"},"&::-webkit-scrollbar-thumb":{backgroundColor:n.colorTextTertiary,borderRadius:n.borderRadiusSM},"&":{scrollbarWidth:"thin",scrollbarColor:`${n.colorTextTertiary} transparent`},"&::after":{display:"block",height:`calc(100% - ${Ze(z)})`,content:'""'},"&:not(:first-child)":{borderInlineStart:`${Ze(f)} ${g} ${x}`},"&-active":{background:new Rn(V).setA(.2).toHexString()},"&:hover":{overflowY:"auto"},"> li":{margin:0,padding:0,[`&${e}-time-panel-cell`]:{marginInline:j,[`${e}-time-panel-cell-inner`]:{display:"block",width:n.calc(Q).sub(n.calc(j).mul(2)).equal(),height:z,margin:0,paddingBlock:0,paddingInlineEnd:0,paddingInlineStart:n.calc(Q).sub(z).div(2).equal(),color:N,lineHeight:Ze(z),borderRadius:H,cursor:"pointer",transition:`background ${D}`,"&:hover":{background:B}},"&-selected":{[`${e}-time-panel-cell-inner`]:{background:V}},"&-disabled":{[`${e}-time-panel-cell-inner`]:{color:R,background:"transparent",cursor:"not-allowed"}}}}}}}}},Mre=n=>{const{componentCls:e,textHeight:t,lineWidth:r,paddingSM:a,antCls:i,colorPrimary:s,cellActiveWithRangeBg:o,colorPrimaryBorder:l,lineType:u,colorSplit:d}=n;return{[`${e}-dropdown`]:{[`${e}-footer`]:{borderTop:`${Ze(r)} ${u} ${d}`,"&-extra":{padding:`0 ${Ze(a)}`,lineHeight:Ze(n.calc(t).sub(n.calc(r).mul(2)).equal()),textAlign:"start","&:not(:last-child)":{borderBottom:`${Ze(r)} ${u} ${d}`}}},[`${e}-panels + ${e}-footer ${e}-ranges`]:{justifyContent:"space-between"},[`${e}-ranges`]:{marginBlock:0,paddingInline:Ze(a),overflow:"hidden",textAlign:"start",listStyle:"none",display:"flex",justifyContent:"center",alignItems:"center","> li":{lineHeight:Ze(n.calc(t).sub(n.calc(r).mul(2)).equal()),display:"inline-block"},[`${e}-now-btn-disabled`]:{pointerEvents:"none",color:n.colorTextDisabled},[`${e}-preset > ${i}-tag-blue`]:{color:s,background:o,borderColor:l,cursor:"pointer"},[`${e}-ok`]:{paddingBlock:n.calc(r).mul(2).equal(),marginInlineStart:"auto"}}}}},Dre=n=>{const{componentCls:e,controlHeightLG:t,paddingXXS:r,padding:a}=n;return{pickerCellCls:`${e}-cell`,pickerCellInnerCls:`${e}-cell-inner`,pickerYearMonthCellWidth:n.calc(t).mul(1.5).equal(),pickerQuarterPanelContentHeight:n.calc(t).mul(1.4).equal(),pickerCellPaddingVertical:n.calc(r).add(n.calc(r).div(2)).equal(),pickerCellBorderGap:2,pickerControlIconSize:7,pickerControlIconMargin:4,pickerControlIconBorderWidth:1.5,pickerDatePanelPaddingHorizontal:n.calc(a).add(n.calc(r).div(2)).equal()}},_re=n=>{const{colorBgContainerDisabled:e,controlHeight:t,controlHeightSM:r,controlHeightLG:a,paddingXXS:i,lineWidth:s}=n,o=i*2,l=s*2,u=Math.min(t-o,t-l),d=Math.min(r-o,r-l),f=Math.min(a-o,a-l);return{INTERNAL_FIXED_ITEM_MARGIN:Math.floor(i/2),cellHoverBg:n.controlItemBgHover,cellActiveWithRangeBg:n.controlItemBgActive,cellHoverWithRangeBg:new Rn(n.colorPrimary).lighten(35).toHexString(),cellRangeBorderColor:new Rn(n.colorPrimary).lighten(20).toHexString(),cellBgDisabled:e,timeColumnWidth:a*1.4,timeColumnHeight:224,timeCellHeight:28,cellWidth:r*1.5,cellHeight:r,textHeight:a,withoutTimeCellHeight:a*1.65,multipleItemBg:n.colorFillSecondary,multipleItemBorderColor:"transparent",multipleItemHeight:u,multipleItemHeightSM:d,multipleItemHeightLG:f,multipleSelectorBgDisabled:e,multipleItemColorDisabled:n.colorTextDisabled,multipleItemBorderColorDisabled:"transparent"}},Are=n=>Object.assign(Object.assign(Object.assign(Object.assign({},LM(n)),_re(n)),kte(n)),{presetsWidth:120,presetsMaxWidth:200,zIndexPopup:n.zIndexPopupBase+50}),Tre=n=>{const{componentCls:e}=n;return{[e]:[Object.assign(Object.assign(Object.assign(Object.assign({},q3(n)),Z3(n)),U3(n)),X3(n)),{"&-outlined":{[`&${e}-multiple ${e}-selection-item`]:{background:n.multipleItemBg,border:`${Ze(n.lineWidth)} ${n.lineType} ${n.multipleItemBorderColor}`}},"&-filled":{[`&${e}-multiple ${e}-selection-item`]:{background:n.colorBgContainer,border:`${Ze(n.lineWidth)} ${n.lineType} ${n.colorSplit}`}},"&-borderless":{[`&${e}-multiple ${e}-selection-item`]:{background:n.multipleItemBg,border:`${Ze(n.lineWidth)} ${n.lineType} ${n.multipleItemBorderColor}`}},"&-underlined":{[`&${e}-multiple ${e}-selection-item`]:{background:n.multipleItemBg,border:`${Ze(n.lineWidth)} ${n.lineType} ${n.multipleItemBorderColor}`}}}]}},$y=(n,e)=>({padding:`${Ze(n)} ${Ze(e)}`}),Rre=n=>{const{componentCls:e,colorError:t,colorWarning:r}=n;return{[`${e}:not(${e}-disabled):not([disabled])`]:{[`&${e}-status-error`]:{[`${e}-active-bar`]:{background:t}},[`&${e}-status-warning`]:{[`${e}-active-bar`]:{background:r}}}}},Pre=n=>{var e;const{componentCls:t,antCls:r,paddingInline:a,lineWidth:i,lineType:s,colorBorder:o,borderRadius:l,motionDurationMid:u,colorTextDisabled:d,colorTextPlaceholder:f,fontSizeLG:g,inputFontSizeLG:p,fontSizeSM:b,inputFontSizeSM:y,controlHeightSM:x,paddingInlineSM:S,paddingXS:C,marginXS:O,colorIcon:D,lineWidthBold:M,colorPrimary:A,motionDurationSlow:T,zIndexPopup:P,paddingXXS:R,sizePopupArrow:N,colorBgElevated:I,borderRadiusLG:$,boxShadowSecondary:Y,borderRadiusSM:k,colorSplit:H,cellHoverBg:F,presetsWidth:B,presetsMaxWidth:X,boxShadowPopoverArrow:Q,fontHeight:z,lineHeightLG:V}=n;return[{[t]:Object.assign(Object.assign(Object.assign({},dh(n)),$y(n.paddingBlock,n.paddingInline)),{position:"relative",display:"inline-flex",alignItems:"center",lineHeight:1,borderRadius:l,transition:`border ${u}, box-shadow ${u}, background ${u}`,[`${t}-prefix`]:{flex:"0 0 auto",marginInlineEnd:n.inputAffixPadding},[`${t}-input`]:{position:"relative",display:"inline-flex",alignItems:"center",width:"100%","> input":Object.assign(Object.assign({position:"relative",display:"inline-block",width:"100%",color:"inherit",fontSize:(e=n.inputFontSize)!==null&&e!==void 0?e:n.fontSize,lineHeight:n.lineHeight,transition:`all ${u}`},Q3(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({},$y(n.paddingBlockLG,n.paddingInlineLG)),{[`${t}-input > input`]:{fontSize:p??g,lineHeight:V}}),"&-small":Object.assign(Object.assign({},$y(n.paddingBlockSM,n.paddingInlineSM)),{[`${t}-input > input`]:{fontSize:y??b}}),[`${t}-suffix`]:{display:"flex",flex:"none",alignSelf:"center",marginInlineStart:n.calc(C).div(2).equal(),color:d,lineHeight:1,pointerEvents:"none",transition:`opacity ${u}, color ${u}`,"> *":{verticalAlign:"top","&:not(:last-child)":{marginInlineEnd:O}}},[`${t}-clear`]:{position:"absolute",top:"50%",insetInlineEnd:0,color:d,lineHeight:1,transform:"translateY(-50%)",cursor:"pointer",opacity:0,transition:`opacity ${u}, color ${u}`,"> *":{verticalAlign:"top"},"&:hover":{color:D}},"&:hover":{[`${t}-clear`]:{opacity:1},[`${t}-suffix:not(:last-child)`]:{opacity:0}},[`${t}-separator`]:{position:"relative",display:"inline-block",width:"1em",height:g,color:d,fontSize:g,verticalAlign:"top",cursor:"default",[`${t}-focused &`]:{color:D},[`${t}-range-separator &`]:{[`${t}-disabled &`]:{cursor:"not-allowed"}}},"&-range":{position:"relative",display:"inline-flex",[`${t}-active-bar`]:{bottom:n.calc(i).mul(-1).equal(),height:M,background:A,opacity:0,transition:`all ${T} ease-out`,pointerEvents:"none"},[`&${t}-focused`]:{[`${t}-active-bar`]:{opacity:1}},[`${t}-range-separator`]:{alignItems:"center",padding:`0 ${Ze(C)}`,lineHeight:1}},"&-range, &-multiple":{[`${t}-clear`]:{insetInlineEnd:a},[`&${t}-small`]:{[`${t}-clear`]:{insetInlineEnd:S}}},"&-dropdown":Object.assign(Object.assign(Object.assign({},dh(n)),Ere(n)),{pointerEvents:"none",position:"absolute",top:-9999,left:{_skip_check_:!0,value:-9999},zIndex:P,[`&${t}-dropdown-hidden`]:{display:"none"},"&-rtl":{direction:"rtl"},[`&${t}-dropdown-placement-bottomLeft,
            &${t}-dropdown-placement-bottomRight`]:{[`${t}-range-arrow`]:{top:0,display:"block",transform:"translateY(-100%)"}},[`&${t}-dropdown-placement-topLeft,
            &${t}-dropdown-placement-topRight`]:{[`${t}-range-arrow`]:{bottom:0,display:"block",transform:"translateY(100%) rotate(180deg)"}},[`&${r}-slide-up-appear, &${r}-slide-up-enter`]:{[`${t}-range-arrow${t}-range-arrow`]:{transition:"none"}},[`&${r}-slide-up-enter${r}-slide-up-enter-active${t}-dropdown-placement-topLeft,
          &${r}-slide-up-enter${r}-slide-up-enter-active${t}-dropdown-placement-topRight,
          &${r}-slide-up-appear${r}-slide-up-appear-active${t}-dropdown-placement-topLeft,
          &${r}-slide-up-appear${r}-slide-up-appear-active${t}-dropdown-placement-topRight`]:{animationName:VY},[`&${r}-slide-up-enter${r}-slide-up-enter-active${t}-dropdown-placement-bottomLeft,
          &${r}-slide-up-enter${r}-slide-up-enter-active${t}-dropdown-placement-bottomRight,
          &${r}-slide-up-appear${r}-slide-up-appear-active${t}-dropdown-placement-bottomLeft,
          &${r}-slide-up-appear${r}-slide-up-appear-active${t}-dropdown-placement-bottomRight`]:{animationName:qY},[`&${r}-slide-up-leave ${t}-panel-container`]:{pointerEvents:"none"},[`&${r}-slide-up-leave${r}-slide-up-leave-active${t}-dropdown-placement-topLeft,
          &${r}-slide-up-leave${r}-slide-up-leave-active${t}-dropdown-placement-topRight`]:{animationName:UY},[`&${r}-slide-up-leave${r}-slide-up-leave-active${t}-dropdown-placement-bottomLeft,
          &${r}-slide-up-leave${r}-slide-up-leave-active${t}-dropdown-placement-bottomRight`]:{animationName:XY},[`${t}-panel > ${t}-time-panel`]:{paddingTop:R},[`${t}-range-wrapper`]:{display:"flex",position:"relative"},[`${t}-range-arrow`]:Object.assign(Object.assign({position:"absolute",zIndex:1,display:"none",paddingInline:n.calc(a).mul(1.5).equal(),boxSizing:"content-box",transition:`all ${T} ease-out`},Hte(n,I,Q)),{"&:before":{insetInlineStart:n.calc(a).mul(1.5).equal()}}),[`${t}-panel-container`]:{overflow:"hidden",verticalAlign:"top",background:I,borderRadius:$,boxShadow:Y,transition:`margin ${T}`,display:"inline-block",pointerEvents:"auto",[`${t}-panel-layout`]:{display:"flex",flexWrap:"nowrap",alignItems:"stretch"},[`${t}-presets`]:{display:"flex",flexDirection:"column",minWidth:B,maxWidth:X,ul:{height:0,flex:"auto",listStyle:"none",overflow:"auto",margin:0,padding:C,borderInlineEnd:`${Ze(i)} ${s} ${H}`,li:Object.assign(Object.assign({},CZ),{borderRadius:k,paddingInline:C,paddingBlock:n.calc(x).sub(z).div(2).equal(),cursor:"pointer",transition:`all ${T}`,"+ li":{marginTop:O},"&:hover":{background:F}})}},[`${t}-panels`]:{display:"inline-flex",flexWrap:"nowrap","&:last-child":{[`${t}-panel`]:{borderWidth:0}}},[`${t}-panel`]:{verticalAlign:"top",background:"transparent",borderRadius:0,borderWidth:0,[`${t}-content, table`]:{textAlign:"center"},"&-focused":{borderColor:o}}}}),"&-dropdown-range":{padding:`${Ze(n.calc(N).mul(2).div(3).equal())} 0`,"&-hidden":{display:"none"}},"&-rtl":{direction:"rtl",[`${t}-separator`]:{transform:"scale(-1, 1)"},[`${t}-footer`]:{"&-extra":{direction:"rtl"}}}})},_P(n,"slide-up"),_P(n,"slide-down"),DP(n,"move-up"),DP(n,"move-down")]},tj=kh("DatePicker",n=>{const e=Ca(PM(n),Dre(n),{inputPaddingHorizontalBase:n.calc(n.paddingSM).sub(1).equal(),multipleSelectItemHeight:n.multipleItemHeight,selectHeight:n.controlHeight});return[Mre(e),Pre(e),Tre(e),Rre(e),Cre(e),CM(n,{focusElCls:`${n.componentCls}-focused`})]},Are);var Lre={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"},Nre=function(e,t){return E.createElement(ca,tt({},e,{ref:t,icon:Lre}))},nj=E.forwardRef(Nre),Ire={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"},$re=function(e,t){return E.createElement(ca,tt({},e,{ref:t,icon:Ire}))},rj=E.forwardRef($re),Fre={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"},kre=function(e,t){return E.createElement(ca,tt({},e,{ref:t,icon:Fre}))},Hre=E.forwardRef(kre);function zre(n,e,t){return t!==void 0?t:e==="year"&&n.lang.yearPlaceholder?n.lang.yearPlaceholder:e==="quarter"&&n.lang.quarterPlaceholder?n.lang.quarterPlaceholder:e==="month"&&n.lang.monthPlaceholder?n.lang.monthPlaceholder:e==="week"&&n.lang.weekPlaceholder?n.lang.weekPlaceholder:e==="time"&&n.timePickerLocale.placeholder?n.timePickerLocale.placeholder:n.lang.placeholder}function Bre(n,e,t){return t!==void 0?t:e==="year"&&n.lang.yearPlaceholder?n.lang.rangeYearPlaceholder:e==="quarter"&&n.lang.quarterPlaceholder?n.lang.rangeQuarterPlaceholder:e==="month"&&n.lang.monthPlaceholder?n.lang.rangeMonthPlaceholder:e==="week"&&n.lang.weekPlaceholder?n.lang.rangeWeekPlaceholder:e==="time"&&n.timePickerLocale.placeholder?n.timePickerLocale.rangePlaceholder:n.lang.rangePlaceholder}function aj(n,e){const{allowClear:t=!0}=n,{clearIcon:r,removeIcon:a}=Fte(Object.assign(Object.assign({},n),{prefixCls:e,componentName:"DatePicker"}));return[E.useMemo(()=>t===!1?!1:Object.assign({clearIcon:r},t===!0?{}:t),[t,r]),a]}const[Yre,jre]=["week","WeekPicker"],[Wre,qre]=["month","MonthPicker"],[Xre,Vre]=["year","YearPicker"],[Ure,Gre]=["quarter","QuarterPicker"],[tE,h2]=["time","TimePicker"],Zre=n=>E.createElement(OM,Object.assign({size:"small",type:"primary"},n));function ij(n){return E.useMemo(()=>Object.assign({button:Zre},n),[n])}function sj(n,...e){const t=n||{};return e.reduce((r,a)=>(Object.keys(a||{}).forEach(i=>{const s=t[i],o=a[i];if(s&&typeof s=="object")if(o&&typeof o=="object")r[i]=sj(s,r[i],o);else{const{_default:l}=s;r[i]=r[i]||{},r[i][l]=Te(r[i][l],o)}else r[i]=Te(r[i],o)}),r),{})}function Qre(n,...e){return E.useMemo(()=>sj.apply(void 0,[n].concat(e)),[e])}function Kre(...n){return E.useMemo(()=>n.reduce((e,t={})=>(Object.keys(t).forEach(r=>{e[r]=Object.assign(Object.assign({},e[r]),t[r])}),e),{}),[n])}function nE(n,e){const t=Object.assign({},n);return Object.keys(e).forEach(r=>{if(r!=="_default"){const a=e[r],i=t[r]||{};t[r]=a?nE(i,a):i}}),t}function Jre(n,e,t){const r=Qre.apply(void 0,[t].concat(je(n))),a=Kre.apply(void 0,je(e));return E.useMemo(()=>[nE(r,t),nE(a,t)],[r,a])}const oj=(n,e,t,r,a)=>{const{classNames:i,styles:s}=rY(n),[o,l]=Jre([i,e],[s,t],{popup:{_default:"root"}});return E.useMemo(()=>{var u,d;const f=Object.assign(Object.assign({},o),{popup:Object.assign(Object.assign({},o.popup),{root:Te((u=o.popup)===null||u===void 0?void 0:u.root,r)})}),g=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),a)})});return[f,g]},[o,l,r,a])};var eae=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a<r.length;a++)e.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(n,r[a])&&(t[r[a]]=n[r[a]]);return t};const tae=n=>E.forwardRef((t,r)=>{var a;const{prefixCls:i,getPopupContainer:s,components:o,className:l,style:u,placement:d,size:f,disabled:g,bordered:p=!0,placeholder:b,popupStyle:y,popupClassName:x,dropdownClassName:S,status:C,rootClassName:O,variant:D,picker:M,styles:A,classNames:T}=t,P=eae(t,["prefixCls","getPopupContainer","components","className","style","placement","size","disabled","bordered","placeholder","popupStyle","popupClassName","dropdownClassName","status","rootClassName","variant","picker","styles","classNames"]),R=M===tE?"timePicker":"datePicker",N=E.useRef(null),{getPrefixCls:I,direction:$,getPopupContainer:Y,rangePicker:k}=E.useContext(Tr),H=I("picker",i),{compactSize:F,compactItemClassnames:B}=wM(H,$),X=I(),[Q,z]=h3("rangePicker",D,p),V=Ev(H),[j,q,G]=tj(H,V),[U,K]=oj(R,T,A,x||S,y),[te]=aj(t,H),ne=ij(o),ie=xM(ze=>{var $e;return($e=f??F)!==null&&$e!==void 0?$e:ze}),ce=E.useContext(cu),ue=g??ce,be=E.useContext(Zm),{hasFeedback:me,status:ye,feedbackIcon:De}=be,Ce=E.createElement(E.Fragment,null,M===tE?E.createElement(rj,null):E.createElement(nj,null),me&&De);E.useImperativeHandle(r,()=>N.current);const[Le]=QB("Calendar",Ym),Ne=Object.assign(Object.assign({},Le),t.locale),[Ve]=NY("DatePicker",(a=K.popup.root)===null||a===void 0?void 0:a.zIndex);return j(E.createElement(s3,{space:!0},E.createElement(sre,Object.assign({separator:E.createElement("span",{"aria-label":"to",className:`${H}-separator`},E.createElement(Hre,null)),disabled:ue,ref:N,placement:d,placeholder:Bre(Ne,M,b),suffixIcon:Ce,prevIcon:E.createElement("span",{className:`${H}-prev-icon`}),nextIcon:E.createElement("span",{className:`${H}-next-icon`}),superPrevIcon:E.createElement("span",{className:`${H}-super-prev-icon`}),superNextIcon:E.createElement("span",{className:`${H}-super-next-icon`}),transitionName:`${X}-slide-up`,picker:M},P,{className:Te({[`${H}-${ie}`]:ie,[`${H}-${Q}`]:z},d3(H,f3(ye,C),me),q,B,l,k?.className,G,V,O,U.root),style:Object.assign(Object.assign(Object.assign({},k?.style),u),K.root),locale:Ne.lang,prefixCls:H,getPopupContainer:s||Y,generateConfig:n,components:ne,direction:$,classNames:{popup:Te(q,G,V,O,U.popup.root)},styles:{popup:Object.assign(Object.assign({},K.popup.root),{zIndex:Ve})},allowClear:te}))))});var nae=function(n,e){var t={};for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&typeof Object.getOwnPropertySymbols=="function")for(var a=0,r=Object.getOwnPropertySymbols(n);a<r.length;a++)e.indexOf(r[a])<0&&Object.prototype.propertyIsEnumerable.call(n,r[a])&&(t[r[a]]=n[r[a]]);return t};const rae=n=>{const e=(l,u)=>{const d=u===h2?"timePicker":"datePicker";return E.forwardRef((g,p)=>{var b;const{prefixCls:y,getPopupContainer:x,components:S,style:C,className:O,rootClassName:D,size:M,bordered:A,placement:T,placeholder:P,popupStyle:R,popupClassName:N,dropdownClassName:I,disabled:$,status:Y,variant:k,onCalendarChange:H,styles:F,classNames:B}=g,X=nae(g,["prefixCls","getPopupContainer","components","style","className","rootClassName","size","bordered","placement","placeholder","popupStyle","popupClassName","dropdownClassName","disabled","status","variant","onCalendarChange","styles","classNames"]),{getPrefixCls:Q,direction:z,getPopupContainer:V,[d]:j}=E.useContext(Tr),q=Q("picker",y),{compactSize:G,compactItemClassnames:U}=wM(q,z),K=E.useRef(null),[te,ne]=h3("datePicker",k,A),ie=Ev(q),[ce,ue,be]=tj(q,ie);E.useImperativeHandle(p,()=>K.current);const me={showToday:!0},ye=l||g.picker,De=Q(),{onSelect:Ce,multiple:Le}=X,Ne=Ce&&l==="time"&&!Le,Ve=(We,we,Ie)=>{H?.(We,we,Ie),Ne&&Ce(We)},[ze,$e]=oj(d,B,F,N||I,R),[Be,ut]=aj(g,q),He=ij(S),Qe=xM(We=>{var we;return(we=M??G)!==null&&we!==void 0?we:We}),Ee=E.useContext(cu),st=$??Ee,ht=E.useContext(Zm),{hasFeedback:at,status:Ut,feedbackIcon:Nt}=ht,Ue=E.createElement(E.Fragment,null,ye==="time"?E.createElement(rj,null):E.createElement(nj,null),at&&Nt),[yt]=QB("DatePicker",Ym),Pe=Object.assign(Object.assign({},yt),g.locale),[Fe]=NY("DatePicker",(b=$e.popup.root)===null||b===void 0?void 0:b.zIndex);return ce(E.createElement(s3,{space:!0},E.createElement(fre,Object.assign({ref:K,placeholder:zre(Pe,ye,P),suffixIcon:Ue,placement:T,prevIcon:E.createElement("span",{className:`${q}-prev-icon`}),nextIcon:E.createElement("span",{className:`${q}-next-icon`}),superPrevIcon:E.createElement("span",{className:`${q}-super-prev-icon`}),superNextIcon:E.createElement("span",{className:`${q}-super-next-icon`}),transitionName:`${De}-slide-up`,picker:l,onCalendarChange:Ve},me,X,{locale:Pe.lang,className:Te({[`${q}-${Qe}`]:Qe,[`${q}-${te}`]:ne},d3(q,f3(Ut,Y),at),ue,U,j?.className,O,be,ie,D,ze.root),style:Object.assign(Object.assign(Object.assign({},j?.style),C),$e.root),prefixCls:q,getPopupContainer:x||V,generateConfig:n,components:He,direction:z,disabled:st,classNames:{popup:Te(ue,be,ie,D,ze.popup.root)},styles:{popup:Object.assign(Object.assign({},$e.popup.root),{zIndex:Fe})},allowClear:Be,removeIcon:ut}))))})},t=e(),r=e(Yre,jre),a=e(Wre,qre),i=e(Xre,Vre),s=e(Ure,Gre),o=e(tE,h2);return{DatePicker:t,WeekPicker:r,MonthPicker:a,YearPicker:i,TimePicker:o,QuarterPicker:s}},lj=n=>{const{DatePicker:e,WeekPicker:t,MonthPicker:r,YearPicker:a,TimePicker:i,QuarterPicker:s}=rae(n),o=tae(n),l=e;return l.WeekPicker=t,l.MonthPicker=r,l.YearPicker=a,l.RangePicker=o,l.TimePicker=i,l.QuarterPicker=s,l},Xh=lj(gne),aae=o3(Xh,"popupAlign",void 0,"picker");Xh._InternalPanelDoNotUseOrYouWillBeFired=aae;const iae=o3(Xh.RangePicker,"popupAlign",void 0,"picker");Xh._InternalRangePanelDoNotUseOrYouWillBeFired=iae;Xh.generatePicker=lj;let ei=null,pl=n=>n(),gh=[],ph={};function g2(){const{getContainer:n,duration:e,rtl:t,maxCount:r,top:a}=ph,i=n?.()||document.body;return{getContainer:()=>i,duration:e,rtl:t,maxCount:r,top:a}}const sae=pe.forwardRef((n,e)=>{const{messageConfig:t,sync:r}=n,{getPrefixCls:a}=E.useContext(Tr),i=ph.prefixCls||a("message"),s=E.useContext(Kee),[o,l]=FY(Object.assign(Object.assign(Object.assign({},t),{prefixCls:i}),s.message));return pe.useImperativeHandle(e,()=>{const u=Object.assign({},o);return Object.keys(u).forEach(d=>{u[d]=(...f)=>(r(),o[d].apply(o,f))}),{instance:u,sync:r}}),l}),oae=pe.forwardRef((n,e)=>{const[t,r]=pe.useState(g2),a=()=>{r(g2)};pe.useEffect(a,[]);const i=dQ(),s=i.getRootPrefixCls(),o=i.getIconPrefixCls(),l=i.getTheme(),u=pe.createElement(sae,{ref:e,sync:a,messageConfig:t});return pe.createElement(Tl,{prefixCls:s,iconPrefixCls:o,theme:l},i.holderRender?i.holderRender(u):u)}),kv=()=>{if(!ei){const n=document.createDocumentFragment(),e={fragment:n};ei=e,pl(()=>{zY()(pe.createElement(oae,{ref:r=>{const{instance:a,sync:i}=r||{};Promise.resolve().then(()=>{!e.instance&&a&&(e.instance=a,e.sync=i,kv())})}}),n)});return}ei.instance&&(gh.forEach(n=>{const{type:e,skipped:t}=n;if(!t)switch(e){case"open":{pl(()=>{const r=ei.instance.open(Object.assign(Object.assign({},ph),n.config));r?.then(n.resolve),n.setCloseFn(r)});break}case"destroy":pl(()=>{ei?.instance.destroy(n.key)});break;default:pl(()=>{var r;const a=(r=ei.instance)[e].apply(r,je(n.args));a?.then(n.resolve),n.setCloseFn(a)})}}),gh=[])};function lae(n){ph=Object.assign(Object.assign({},ph),n),pl(()=>{var e;(e=ei?.sync)===null||e===void 0||e.call(ei)})}function cae(n){const e=mM(t=>{let r;const a={type:"open",config:n,resolve:t,setCloseFn:i=>{r=i}};return gh.push(a),()=>{r?pl(()=>{r()}):a.skipped=!0}});return kv(),e}function uae(n,e){const t=mM(r=>{let a;const i={type:n,args:e,resolve:r,setCloseFn:s=>{a=s}};return gh.push(i),()=>{a?pl(()=>{a()}):i.skipped=!0}});return kv(),t}const dae=n=>{gh.push({type:"destroy",key:n}),kv()},fae=["success","info","warning","error","loading"],hae={open:cae,destroy:dae,config:lae,useMessage:bK,_InternalPanelDoNotUseOrYouWillBeFired:uK},gae=hae;fae.forEach(n=>{gae[n]=(...e)=>uae(n,e)});var ff={},Fy={exports:{}},p2;function Hv(){return p2||(p2=1,(function(n){function e(t){return t&&t.__esModule?t:{default:t}}n.exports=e,n.exports.__esModule=!0,n.exports.default=n.exports})(Fy)),Fy.exports}var hf={},m2;function pae(){if(m2)return hf;m2=1,Object.defineProperty(hf,"__esModule",{value:!0}),hf.default=void 0;var n={items_per_page:"条/页",jump_to:"跳至",jump_to_confirm:"确定",page:"页",prev_page:"上一页",next_page:"下一页",prev_5:"向前 5 页",next_5:"向后 5 页",prev_3:"向前 3 页",next_3:"向后 3 页",page_size:"页码"};return hf.default=n,hf}var gf={},pf={},mf={},ky={exports:{}},Hy={exports:{}},zy={exports:{}},By={exports:{}},v2;function cj(){return v2||(v2=1,(function(n){function e(t){"@babel/helpers - typeof";return n.exports=e=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},n.exports.__esModule=!0,n.exports.default=n.exports,e(t)}n.exports=e,n.exports.__esModule=!0,n.exports.default=n.exports})(By)),By.exports}var Yy={exports:{}},b2;function mae(){return b2||(b2=1,(function(n){var e=cj().default;function t(r,a){if(e(r)!="object"||!r)return r;var i=r[Symbol.toPrimitive];if(i!==void 0){var s=i.call(r,a||"default");if(e(s)!="object")return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return(a==="string"?String:Number)(r)}n.exports=t,n.exports.__esModule=!0,n.exports.default=n.exports})(Yy)),Yy.exports}var y2;function vae(){return y2||(y2=1,(function(n){var e=cj().default,t=mae();function r(a){var i=t(a,"string");return e(i)=="symbol"?i:i+""}n.exports=r,n.exports.__esModule=!0,n.exports.default=n.exports})(zy)),zy.exports}var x2;function bae(){return x2||(x2=1,(function(n){var e=vae();function t(r,a,i){return(a=e(a))in r?Object.defineProperty(r,a,{value:i,enumerable:!0,configurable:!0,writable:!0}):r[a]=i,r}n.exports=t,n.exports.__esModule=!0,n.exports.default=n.exports})(Hy)),Hy.exports}var w2;function yae(){return w2||(w2=1,(function(n){var e=bae();function t(a,i){var s=Object.keys(a);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(a);i&&(o=o.filter(function(l){return Object.getOwnPropertyDescriptor(a,l).enumerable})),s.push.apply(s,o)}return s}function r(a){for(var i=1;i<arguments.length;i++){var s=arguments[i]!=null?arguments[i]:{};i%2?t(Object(s),!0).forEach(function(o){e(a,o,s[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(a,Object.getOwnPropertyDescriptors(s)):t(Object(s)).forEach(function(o){Object.defineProperty(a,o,Object.getOwnPropertyDescriptor(s,o))})}return a}n.exports=r,n.exports.__esModule=!0,n.exports.default=n.exports})(ky)),ky.exports}var vf={},S2;function xae(){return S2||(S2=1,Object.defineProperty(vf,"__esModule",{value:!0}),vf.commonLocale=void 0,vf.commonLocale={yearFormat:"YYYY",dayFormat:"D",cellMeridiemFormat:"A",monthBeforeYear:!0}),vf}var C2;function wae(){if(C2)return mf;C2=1;var n=Hv().default;Object.defineProperty(mf,"__esModule",{value:!0}),mf.default=void 0;var e=n(yae()),t=xae(),r=(0,e.default)((0,e.default)({},t.commonLocale),{},{locale:"zh_CN",today:"今天",now:"此刻",backToToday:"返回今天",ok:"确定",timeSelect:"选择时间",dateSelect:"选择日期",weekSelect:"选择周",clear:"清除",week:"周",month:"月",year:"年",previousMonth:"上个月 (翻页上键)",nextMonth:"下个月 (翻页下键)",monthSelect:"选择月份",yearSelect:"选择年份",decadeSelect:"选择年代",previousYear:"上一年 (Control键加左方向键)",nextYear:"下一年 (Control键加右方向键)",previousDecade:"上一年代",nextDecade:"下一年代",previousCentury:"上一世纪",nextCentury:"下一世纪",yearFormat:"YYYY年",cellDateFormat:"D",monthBeforeYear:!1});return mf.default=r,mf}var bf={},O2;function uj(){if(O2)return bf;O2=1,Object.defineProperty(bf,"__esModule",{value:!0}),bf.default=void 0;const n={placeholder:"请选择时间",rangePlaceholder:["开始时间","结束时间"]};return bf.default=n,bf}var E2;function dj(){if(E2)return pf;E2=1;var n=Hv().default;Object.defineProperty(pf,"__esModule",{value:!0}),pf.default=void 0;var e=n(wae()),t=n(uj());const r={lang:Object.assign({placeholder:"请选择日期",yearPlaceholder:"请选择年份",quarterPlaceholder:"请选择季度",monthPlaceholder:"请选择月份",weekPlaceholder:"请选择周",rangePlaceholder:["开始日期","结束日期"],rangeYearPlaceholder:["开始年份","结束年份"],rangeMonthPlaceholder:["开始月份","结束月份"],rangeQuarterPlaceholder:["开始季度","结束季度"],rangeWeekPlaceholder:["开始周","结束周"]},e.default),timePickerLocale:Object.assign({},t.default)};return r.lang.ok="确定",pf.default=r,pf}var M2;function Sae(){if(M2)return gf;M2=1;var n=Hv().default;Object.defineProperty(gf,"__esModule",{value:!0}),gf.default=void 0;var e=n(dj());return gf.default=e.default,gf}var D2;function Cae(){if(D2)return ff;D2=1;var n=Hv().default;Object.defineProperty(ff,"__esModule",{value:!0}),ff.default=void 0;var e=n(pae()),t=n(Sae()),r=n(dj()),a=n(uj());const i="${label}不是一个有效的${type}",s={locale:"zh-cn",Pagination:e.default,DatePicker:r.default,TimePicker:a.default,Calendar:t.default,global:{placeholder:"请选择",close:"关闭"},Table:{filterTitle:"筛选",filterConfirm:"确定",filterReset:"重置",filterEmptyText:"无筛选项",filterCheckAll:"全选",filterSearchPlaceholder:"在筛选项中搜索",emptyText:"暂无数据",selectAll:"全选当页",selectInvert:"反选当页",selectNone:"清空所有",selectionAll:"全选所有",sortTitle:"排序",expand:"展开行",collapse:"关闭行",triggerDesc:"点击降序",triggerAsc:"点击升序",cancelSort:"取消排序"},Modal:{okText:"确定",cancelText:"取消",justOkText:"知道了"},Tour:{Next:"下一步",Previous:"上一步",Finish:"结束导览"},Popconfirm:{cancelText:"取消",okText:"确定"},Transfer:{titles:["",""],searchPlaceholder:"请输入搜索内容",itemUnit:"项",itemsUnit:"项",remove:"删除",selectCurrent:"全选当页",removeCurrent:"删除当页",selectAll:"全选所有",deselectAll:"取消全选",removeAll:"删除全部",selectInvert:"反选当页"},Upload:{uploading:"文件上传中",removeFile:"删除文件",uploadError:"上传错误",previewFile:"预览文件",downloadFile:"下载文件"},Empty:{description:"暂无数据"},Icon:{icon:"图标"},Text:{edit:"编辑",copy:"复制",copied:"复制成功",expand:"展开",collapse:"收起"},Form:{optional:"（可选）",defaultValidateMessages:{default:"字段验证错误${label}",required:"请输入${label}",enum:"${label}必须是其中一个[${enum}]",whitespace:"${label}不能为空字符",date:{format:"${label}日期格式无效",parse:"${label}不能转换为日期",invalid:"${label}是一个无效日期"},types:{string:i,method:i,array:i,object:i,number:i,date:i,boolean:i,integer:i,float:i,regexp:i,email:i,url:i,hex:i},string:{len:"${label}须为${len}个字符",min:"${label}最少${min}个字符",max:"${label}最多${max}个字符",range:"${label}须在${min}-${max}字符之间"},number:{len:"${label}必须等于${len}",min:"${label}最小值为${min}",max:"${label}最大值为${max}",range:"${label}须在${min}-${max}之间"},array:{len:"须为${len}个${label}",min:"最少${min}个${label}",max:"最多${max}个${label}",range:"${label}数量须在${min}-${max}之间"},pattern:{mismatch:"${label}与模式不匹配${pattern}"}}},Image:{preview:"预览"},QRCode:{expired:"二维码过期",refresh:"点击刷新",scanned:"已扫描"},ColorPicker:{presetEmpty:"暂无",transparent:"无色",singleColor:"单色",gradientColor:"渐变色"}};return ff.default=s,ff}var jy,_2;function Oae(){return _2||(_2=1,jy=Cae()),jy}var Eae=Oae();const mde=qr(Eae);var Mae=Object.defineProperty,Dae=Object.defineProperties,_ae=Object.getOwnPropertyDescriptors,A2=Object.getOwnPropertySymbols,Aae=Object.prototype.hasOwnProperty,Tae=Object.prototype.propertyIsEnumerable,rE=(n,e,t)=>e in n?Mae(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t,ct=(n,e)=>{for(var t in e||(e={}))Aae.call(e,t)&&rE(n,t,e[t]);if(A2)for(var t of A2(e))Tae.call(e,t)&&rE(n,t,e[t]);return n},Lt=(n,e)=>Dae(n,_ae(e)),Kt=(n,e,t)=>rE(n,typeof e!="symbol"?e+"":e,t);/*!
 * ApexCharts v5.15.2
 * (c) 2018-2026 ApexCharts
 */class qe{static isSSR(){return typeof window>"u"||typeof document>"u"}static isBrowser(){return!this.isSSR()}static hasAPI(e){return this.isSSR()?!1:typeof window[e]<"u"}static getApex(){return typeof window<"u"&&window.Apex?window.Apex:typeof global<"u"&&global.Apex?global.Apex:{}}}class Jm{constructor(e,t=null){this.nodeName=e,this.namespaceURI=t,this.attributes=new Map,this.children=[],this.textContent="",this.style={},this.classList=new Rae,this.parentNode=null,this._ssrWidth=void 0,this._ssrHeight=void 0,this._ssrMode=void 0}setAttribute(e,t){this.attributes.set(e,t)}getAttribute(e){return this.attributes.get(e)}removeAttribute(e){this.attributes.delete(e)}hasAttribute(e){return this.attributes.has(e)}appendChild(e){if(e&&e!==this){if(e.parentNode&&e.parentNode!==this)e.parentNode.removeChild(e);else if(e.parentNode===this){const t=this.children.indexOf(e);t!==-1&&this.children.splice(t,1)}e.parentNode=this,this.children.push(e)}return e}removeChild(e){const t=this.children.indexOf(e);return t!==-1&&(this.children.splice(t,1),e.parentNode=null),e}insertBefore(e,t){if(!t)return this.appendChild(e);if(e.parentNode&&e.parentNode!==this)e.parentNode.removeChild(e);else if(e.parentNode===this){const a=this.children.indexOf(e);a!==-1&&this.children.splice(a,1)}const r=this.children.indexOf(t);return r!==-1&&(e.parentNode=this,this.children.splice(r,0,e)),e}cloneNode(e=!1){const t=new Jm(this.nodeName,this.namespaceURI);return t.textContent=this.textContent,this.attributes.forEach((r,a)=>{t.attributes.set(a,r)}),Object.assign(t.style,this.style),e&&this.children.forEach(r=>{r.cloneNode&&t.appendChild(r.cloneNode(!0))}),t}getBoundingClientRect(){return{width:this._ssrWidth||0,height:this._ssrHeight||0,top:0,left:0,right:this._ssrWidth||0,bottom:this._ssrHeight||0,x:0,y:0}}getRootNode(){let e=this;for(;e.parentNode;)e=e.parentNode;return e}querySelector(){return null}querySelectorAll(){return[]}getElementsByClassName(){return[]}addEventListener(){}removeEventListener(){}get childNodes(){return this.children}toString(){let e="";if(this.attributes.forEach((r,a)=>{e+=` ${a}="${r}"`}),this.children.length===0&&!this.textContent)return`<${this.nodeName}${e}/>`;const t=this.children.map(r=>r.toString()).join("");return`<${this.nodeName}${e}>${this.textContent}${t}</${this.nodeName}>`}get innerHTML(){return this.children.map(e=>e.toString()).join("")}set innerHTML(e){this.children=[],this.textContent=e}get outerHTML(){return this.toString()}get isConnected(){return!0}}class Rae{constructor(){this.classes=new Set}add(...e){e.forEach(t=>this.classes.add(t))}remove(...e){e.forEach(t=>this.classes.delete(t))}contains(e){return this.classes.has(e)}toggle(e,t){return t===!0?(this.classes.add(e),!0):t===!1?(this.classes.delete(e),!1):this.classes.has(e)?(this.classes.delete(e),!1):(this.classes.add(e),!0)}toString(){return Array.from(this.classes).join(" ")}}class Pae{constructor(){this.SVGNS="http://www.w3.org/2000/svg",this.XLINKNS="http://www.w3.org/1999/xlink"}createElementNS(e,t){return new Jm(t,e)}createTextNode(e){const t={nodeName:"#text",nodeType:3,textContent:e,toString(){return t.textContent}};return t}querySelector(){return null}querySelectorAll(){return[]}getComputedStyle(){return{}}getBoundingClientRect(e){return e&&e.getBoundingClientRect?e.getBoundingClientRect():{width:0,height:0,top:0,left:0,right:0,bottom:0,x:0,y:0}}createXMLSerializer(){return{serializeToString(e){return e.toString?e.toString():""}}}createDOMParser(){return{parseFromString(e,t){const r=new Jm("root");return r.innerHTML=e,{documentElement:r}}}}}let Jr=null,rl=null,al=null;class ke{static init(){qe.isSSR()&&!Jr&&(Jr=new Pae)}static createElement(e){return qe.isSSR()?(Jr||this.init(),Jr.createElementNS(null,e)):document.createElement(e)}static createElementNS(e,t){return qe.isSSR()?(Jr||this.init(),Jr.createElementNS(e,t)):document.createElementNS(e,t)}static createTextNode(e){return qe.isSSR()?(Jr||this.init(),Jr.createTextNode(e)):document.createTextNode(e)}static querySelector(e){return qe.isSSR()?null:document.querySelector(e)}static querySelectorAll(e){return qe.isSSR()?[]:document.querySelectorAll(e)}static getComputedStyle(e){return qe.isSSR()?{}:window.getComputedStyle(e)}static getBoundingClientRect(e){return qe.isSSR()?(Jr||this.init(),Jr.getBoundingClientRect(e)):e?e.getBoundingClientRect():{width:0,height:0,top:0,left:0,right:0,bottom:0,x:0,y:0}}static getXMLSerializer(){return qe.isSSR()?(Jr||this.init(),rl||(rl=Jr.createXMLSerializer()),rl):(rl||(rl=new XMLSerializer),rl)}static getDOMParser(){return qe.isSSR()?(Jr||this.init(),al||(al=Jr.createDOMParser()),al):(al||(al=new DOMParser),al)}static addWindowEventListener(e,t,r){qe.isBrowser()&&window.addEventListener(e,t,r)}static removeWindowEventListener(e,t,r){qe.isBrowser()&&window.removeEventListener(e,t,r)}static requestAnimationFrame(e){return qe.isBrowser()?window.requestAnimationFrame(e):(e(0),null)}static cancelAnimationFrame(e){qe.isBrowser()&&e&&window.cancelAnimationFrame(e)}static elementExists(e){return e?qe.isSSR()?e._ssrMode===!0||e.nodeName!==void 0:e.getRootNode?e.getRootNode({composed:!0})===document||e.isConnected:!1:!1}static getWindow(){return qe.isBrowser()?window:null}static getDocument(){return qe.isBrowser()?document:null}static _getShim(){return Jr}static _resetShim(){Jr=null,rl=null,al=null}}let ee=class $i{static isObject(e){return e&&typeof e=="object"&&!Array.isArray(e)}static is(e,t){return Object.prototype.toString.call(t)==="[object "+e+"]"}static isSafari(){return qe.isBrowser()&&/^((?!chrome|android).)*safari/i.test(navigator.userAgent)}static extend(e,t){const r=Object.assign({},e);return this.isObject(e)&&this.isObject(t)&&Object.keys(t).forEach(a=>{this.isObject(t[a])?a in e?r[a]=this.extend(e[a],t[a]):Object.assign(r,{[a]:t[a]}):Object.assign(r,{[a]:t[a]})}),r}static extendArray(e,t){const r=[];return e.map(a=>{r.push($i.extend(t,a))}),e=r,e}static monthMod(e){return e%12}static clone(e,t=new WeakMap,r=!1){if(e===null||typeof e!="object")return e;if(t.has(e))return t.get(e);let a;if(Array.isArray(e))if(r)a=e.slice();else{a=[],t.set(e,a);for(let i=0;i<e.length;i++)a[i]=this.clone(e[i],t,!1)}else if(e instanceof Date)a=new Date(e.getTime());else if(r)a=Object.assign({},e);else{a={},t.set(e,a);for(const i in e)Object.prototype.hasOwnProperty.call(e,i)&&(a[i]=this.clone(e[i],t,!1))}return a}static shallowClone(e){return e===null||typeof e!="object"?e:Array.isArray(e)?e.slice():Object.assign({},e)}static shallowEqual(e,t){if(e===t)return!0;if(!e||!t)return!1;if(typeof e!="object"||typeof t!="object")return e===t;const r=Object.keys(e),a=Object.keys(t);if(r.length!==a.length)return!1;for(const i of r)if(e[i]!==t[i])return!1;return!0}static log10(e){return Math.log(e)/Math.LN10}static roundToBase10(e){return Math.pow(10,Math.floor(Math.log10(e)))}static roundToBase(e,t){return Math.pow(t,Math.floor(Math.log(e)/Math.log(t)))}static parseNumber(e){return typeof e=="number"||e===null?e:parseFloat(e)}static stripNumber(e,t=2){return Number.isInteger(e)?e:parseFloat(e.toPrecision(t))}static randomId(){return(Math.random()+1).toString(36).substring(4)}static noExponents(e){return e.toString().includes("e")?Math.round(e):e}static elementExists(e){return!(!e||!e.isConnected)}static isInShadowDOM(e){if(!e||!e.getRootNode)return!1;const t=e.getRootNode();return t&&t!==document&&$i.is("ShadowRoot",t)}static getShadowRootHost(e){return $i.isInShadowDOM(e)&&e.getRootNode().host||null}static getDimensions(e){if(!e)return[0,0];if(qe.isSSR())return[e._ssrWidth||400,e._ssrHeight||300];let t;try{t=getComputedStyle(e,null)}catch{return[e.clientWidth||0,e.clientHeight||0]}let r=e.clientWidth,a=e.clientHeight;if(!r||!a){const i=e.getBoundingClientRect();r=r||i.width,a=a||i.height}return a-=parseFloat(t.paddingTop)+parseFloat(t.paddingBottom),r-=parseFloat(t.paddingLeft)+parseFloat(t.paddingRight),[r,a]}static getBoundingClientRect(e){if(!e)return{top:0,right:0,bottom:0,left:0,width:0,height:0,x:0,y:0};if(qe.isSSR())return ke.getBoundingClientRect(e);const t=e.getBoundingClientRect();return{top:t.top,right:t.right,bottom:t.bottom,left:t.left,width:e.clientWidth,height:e.clientHeight,x:t.left,y:t.top}}static getLargestStringFromArr(e){return e.reduce((t,r)=>(Array.isArray(r)&&(r=r.reduce((a,i)=>a.length>i.length?a:i)),t.length>r.length?t:r),0)}static hexToRgba(e="#999999",t=.6){e.substring(0,1)!=="#"&&(e="#999999");const r=e.replace("#",""),a=r.match(new RegExp("(.{"+r.length/3+"})","g"))||[];for(let i=0;i<a.length;i++)a[i]=parseInt(a[i].length===1?a[i]+a[i]:a[i],16);return typeof t<"u"&&a.push(t),"rgba("+a.join(",")+")"}static getOpacityFromRGBA(e){return parseFloat(e.replace(/^.*,(.+)\)/,"$1"))}static parseHex(e){if(typeof e!="string")return null;let t=e.trim().replace("#","");return t.length===3&&(t=t.split("").map(r=>r+r).join("")),/^[0-9a-fA-F]{6}$/.test(t)?[parseInt(t.slice(0,2),16),parseInt(t.slice(2,4),16),parseInt(t.slice(4,6),16)]:null}static relativeLuminance([e,t,r]){const a=i=>{const s=i/255;return s<=.03928?s/12.92:Math.pow((s+.055)/1.055,2.4)};return .2126*a(e)+.7152*a(t)+.0722*a(r)}static getContrastRatio(e,t){const r=$i.parseHex(e),a=$i.parseHex(t);if(!r||!a)return 0;const i=$i.relativeLuminance(r),s=$i.relativeLuminance(a),o=Math.max(i,s),l=Math.min(i,s);return(o+.05)/(l+.05)}static rgb2hex(e){return e=e.match(/^rgba?[\s+]?\([\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?,[\s+]?(\d+)[\s+]?/i),e&&e.length===4?"#"+("0"+parseInt(e[1],10).toString(16)).slice(-2)+("0"+parseInt(e[2],10).toString(16)).slice(-2)+("0"+parseInt(e[3],10).toString(16)).slice(-2):""}shadeRGBColor(e,t){const r=t.split(","),a=e<0?0:255,i=e<0?e*-1:e,s=parseInt(r[0].slice(4),10),o=parseInt(r[1],10),l=parseInt(r[2],10);return"rgb("+(Math.round((a-s)*i)+s)+","+(Math.round((a-o)*i)+o)+","+(Math.round((a-l)*i)+l)+")"}shadeHexColor(e,t){const r=parseInt(t.slice(1),16),a=e<0?0:255,i=e<0?e*-1:e,s=r>>16,o=r>>8&255,l=r&255;return"#"+(16777216+(Math.round((a-s)*i)+s)*65536+(Math.round((a-o)*i)+o)*256+(Math.round((a-l)*i)+l)).toString(16).slice(1)}shadeColor(e,t){return $i.isColorHex(t)?this.shadeHexColor(e,t):this.shadeRGBColor(e,t)}static isColorHex(e){return/(^#[0-9A-F]{6}$)|(^#[0-9A-F]{3}$)|(^#[0-9A-F]{8}$)/i.test(e)}static isCSSVariable(e){if(typeof e!="string")return!1;const t=e.trim();return t.startsWith("var(")&&t.endsWith(")")}static getThemeColor(e){if(!$i.isCSSVariable(e)||qe.isSSR())return e;const t=document.createElement("div");t.style.cssText="position:fixed; left: -9999px; visibility:hidden;",t.style.color=e,document.body.appendChild(t);let r;try{r=window.getComputedStyle(t).color}finally{t.parentNode&&t.parentNode.removeChild(t)}return r}static applyOpacityToColor(e,t){const r=Number(t);if(!Number.isFinite(r))return e;if(r<=0)return"transparent";if(r>=1)return e;const a=Math.round(r*100);return`color-mix(in srgb, ${e} ${a}%, transparent)`}static getPolygonPos(e,t){const r=[],a=Math.PI*2/t;for(let i=0;i<t;i++){const s={};s.x=e*Math.sin(i*a),s.y=-e*Math.cos(i*a),r.push(s)}return r}static polarToCartesian(e,t,r,a){const i=(a-90)*Math.PI/180;return{x:e+r*Math.cos(i),y:t+r*Math.sin(i)}}static escapeString(e,t="x"){let r=e.toString().slice();return r=r.replace(/[` ~!@#$%^&*()|+=?;:'",.<>{}[\]\\/]/gi,t),r}static negToZero(e){return e<0?0:e}static moveIndexInArray(e,t,r){if(r>=e.length){let a=r-e.length+1;for(;a--;)e.push(void 0)}return e.splice(r,0,e.splice(t,1)[0]),e}static extractNumber(e){return parseFloat(e.replace(/[^\d.]*/g,""))}static findAncestor(e,t){for(;(e=e.parentElement)&&!e.classList.contains(t););return e}static setELstyles(e,t){for(const r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e.style.key=t[r])}static preciseAddition(e,t){const r=(String(e).split(".")[1]||"").length,a=(String(t).split(".")[1]||"").length,i=Math.pow(10,Math.max(r,a));return(Math.round(e*i)+Math.round(t*i))/i}static isNumber(e){return!isNaN(e)&&parseFloat(String(Number(e)))===e&&!isNaN(parseInt(e,10))}static isFloat(e){return Number(e)===e&&e%1!==0}static isMsEdge(){if(qe.isSSR())return!1;const e=window.navigator.userAgent,t=e.indexOf("Edge/");return t>0?parseInt(e.substring(t+5,e.indexOf(".",t)),10):!1}static getGCD(e,t,r=7){let a=Math.pow(10,r-Math.floor(Math.log10(Math.max(e,t))));for(a>1?(e=Math.round(Math.abs(e)*a),t=Math.round(Math.abs(t)*a)):a=1;t;){const i=t;t=e%t,e=i}return e/a}static getPrimeFactors(e){const t=[];let r=2;for(;e>=2;)e%r==0?(t.push(r),e=e/r):r++;return t}static mod(e,t,r=7){const a=Math.pow(10,r-Math.floor(Math.log10(Math.max(e,t))));return e=Math.round(Math.abs(e)*a),t=Math.round(Math.abs(t)*a),e%t/a}};class Ha{constructor(e){this.w=e,this.months31=[1,3,5,7,8,10,12],this.months30=[2,4,6,9,11],this.daysCntOfYear=[0,31,59,90,120,151,181,212,243,273,304,334]}isValidDate(e){return typeof e=="number"?!1:!isNaN(this.parseDate(e))}getTimeStamp(e){return Date.parse(e)?this.w.config.xaxis.labels.datetimeUTC?new Date(new Date(e).toISOString().substr(0,25)).getTime():new Date(e).getTime():e}getDate(e){return this.w.config.xaxis.labels.datetimeUTC?new Date(new Date(e).toUTCString()):new Date(e)}parseDate(e){const t=Date.parse(e);if(!isNaN(t))return this.getTimeStamp(e);let r=Date.parse(e.replace(/-/g,"/").replace(/[a-z]+/gi," "));return r=this.getTimeStamp(r),r}parseDateWithTimezone(e){return Date.parse(e.replace(/-/g,"/").replace(/[a-z]+/gi," "))}formatDate(e,t){const r=this.w.globals.locale,a=this.w.config.xaxis.labels.datetimeUTC,i=["\0",...r.months],s=["",...r.shortMonths],o=["",...r.days],l=["",...r.shortDays];function u(T,P=2){let R=T+"";for(;R.length<P;)R="0"+R;return R}const d=a?e.getUTCFullYear():e.getFullYear();t=t.replace(/(^|[^\\])yyyy+/g,"$1"+d),t=t.replace(/(^|[^\\])yy/g,"$1"+d.toString().substr(2,2)),t=t.replace(/(^|[^\\])y/g,"$1"+d);const f=(a?e.getUTCMonth():e.getMonth())+1;t=t.replace(/(^|[^\\])MMMM+/g,"$1"+i[0]),t=t.replace(/(^|[^\\])MMM/g,"$1"+s[0]),t=t.replace(/(^|[^\\])MM/g,"$1"+u(f)),t=t.replace(/(^|[^\\])M/g,"$1"+f);const g=a?e.getUTCDate():e.getDate();t=t.replace(/(^|[^\\])dddd+/g,"$1"+o[0]),t=t.replace(/(^|[^\\])ddd/g,"$1"+l[0]),t=t.replace(/(^|[^\\])dd/g,"$1"+u(g)),t=t.replace(/(^|[^\\])d/g,"$1"+g);const p=a?e.getUTCHours():e.getHours();t=t.replace(/(^|[^\\])HH+/g,"$1"+u(p)),t=t.replace(/(^|[^\\])H/g,"$1"+p);const b=p>12?p-12:p===0?12:p;t=t.replace(/(^|[^\\])hh+/g,"$1"+u(b)),t=t.replace(/(^|[^\\])h/g,"$1"+b);const y=a?e.getUTCMinutes():e.getMinutes();t=t.replace(/(^|[^\\])mm+/g,"$1"+u(y)),t=t.replace(/(^|[^\\])m/g,"$1"+y);const x=a?e.getUTCSeconds():e.getSeconds();t=t.replace(/(^|[^\\])ss+/g,"$1"+u(x)),t=t.replace(/(^|[^\\])s/g,"$1"+x);let S=a?e.getUTCMilliseconds():e.getMilliseconds();t=t.replace(/(^|[^\\])fff+/g,"$1"+u(S,3)),S=Math.round(S/10),t=t.replace(/(^|[^\\])ff/g,"$1"+u(S)),S=Math.round(S/10),t=t.replace(/(^|[^\\])f/g,"$1"+S);const C=p<12?"AM":"PM";t=t.replace(/(^|[^\\])TT+/g,"$1"+C),t=t.replace(/(^|[^\\])T/g,"$1"+C.charAt(0));const O=C.toLowerCase();t=t.replace(/(^|[^\\])tt+/g,"$1"+O),t=t.replace(/(^|[^\\])t/g,"$1"+O.charAt(0));let D=-e.getTimezoneOffset(),M=a||!D?"Z":D>0?"+":"-";if(!a){D=Math.abs(D);const T=Math.floor(D/60),P=D%60;M+=u(T)+":"+u(P)}t=t.replace(/(^|[^\\])K/g,"$1"+M);const A=(a?e.getUTCDay():e.getDay())+1;return t=t.replace(new RegExp(o[0],"g"),o[A]),t=t.replace(new RegExp(l[0],"g"),l[A]),t=t.replace(new RegExp(i[0],"g"),i[f]),t=t.replace(new RegExp(s[0],"g"),s[f]),t=t.replace(/\\(.)/g,"$1"),t}getTimeUnitsfromTimestamp(e,t){const r=this.w;r.config.xaxis.min!==void 0&&(e=r.config.xaxis.min),r.config.xaxis.max!==void 0&&(t=r.config.xaxis.max);const a=this.getDate(e),i=this.getDate(t),s=this.formatDate(a,"yyyy MM dd HH mm ss fff").split(" "),o=this.formatDate(i,"yyyy MM dd HH mm ss fff").split(" ");return{minMillisecond:parseInt(s[6],10),maxMillisecond:parseInt(o[6],10),minSecond:parseInt(s[5],10),maxSecond:parseInt(o[5],10),minMinute:parseInt(s[4],10),maxMinute:parseInt(o[4],10),minHour:parseInt(s[3],10),maxHour:parseInt(o[3],10),minDate:parseInt(s[2],10),maxDate:parseInt(o[2],10),minMonth:parseInt(s[1],10)-1,maxMonth:parseInt(o[1],10)-1,minYear:parseInt(s[0],10),maxYear:parseInt(o[0],10)}}isLeapYear(e){return e%4===0&&e%100!==0||e%400===0}calculcateLastDaysOfMonth(e,t,r){return this.determineDaysOfMonths(e,t)-r}determineDaysOfYear(e){let t=365;return this.isLeapYear(e)&&(t=366),t}determineRemainingDaysOfYear(e,t,r){let a=this.daysCntOfYear[t]+r;return t>1&&this.isLeapYear(e)&&a++,a}determineDaysOfMonths(e,t){let r=30;switch(e=ee.monthMod(e),!0){case this.months30.indexOf(e)>-1:e===2&&(this.isLeapYear(t)?r=29:r=28);break;case this.months31.indexOf(e)>-1:r=31;break;default:r=31;break}return r}getDateFields(e,t){const r=new Date(e);return t?{year:r.getUTCFullYear(),month:r.getUTCMonth(),date:r.getUTCDate(),hour:r.getUTCHours(),minute:r.getUTCMinutes(),second:r.getUTCSeconds(),ms:r.getUTCMilliseconds(),weekday:r.getUTCDay()}:{year:r.getFullYear(),month:r.getMonth(),date:r.getDate(),hour:r.getHours(),minute:r.getMinutes(),second:r.getSeconds(),ms:r.getMilliseconds(),weekday:r.getDay()}}addInterval(e,t,r,a){const i=new Date(e);if(a)switch(t){case"year":i.setUTCFullYear(i.getUTCFullYear()+r);break;case"month":i.setUTCMonth(i.getUTCMonth()+r);break;case"week":i.setUTCDate(i.getUTCDate()+r*7);break;case"day":i.setUTCDate(i.getUTCDate()+r);break;case"hour":i.setUTCHours(i.getUTCHours()+r);break;case"minute":i.setUTCMinutes(i.getUTCMinutes()+r);break;case"second":i.setUTCSeconds(i.getUTCSeconds()+r);break}else switch(t){case"year":i.setFullYear(i.getFullYear()+r);break;case"month":i.setMonth(i.getMonth()+r);break;case"week":i.setDate(i.getDate()+r*7);break;case"day":i.setDate(i.getDate()+r);break;case"hour":i.setHours(i.getHours()+r);break;case"minute":i.setMinutes(i.getMinutes()+r);break;case"second":i.setSeconds(i.getSeconds()+r);break}return i.getTime()}ceilToBoundary(e,t,r,a){const i=new Date(e);if(a)switch(t){case"second":{const s=i.getUTCSeconds(),o=Math.ceil(s/r)*r;return o===s&&i.getUTCMilliseconds()===0?e:(i.setUTCMilliseconds(0),i.setUTCSeconds(o),i.getTime())}case"minute":{const s=i.getUTCMinutes(),o=Math.ceil(s/r)*r;return o===s&&i.getUTCSeconds()===0&&i.getUTCMilliseconds()===0?e:(i.setUTCMilliseconds(0),i.setUTCSeconds(0),i.setUTCMinutes(o),i.getTime())}case"hour":{const s=i.getUTCHours(),o=Math.ceil(s/r)*r;return o===s&&i.getUTCMinutes()===0&&i.getUTCSeconds()===0&&i.getUTCMilliseconds()===0?e:(i.setUTCMilliseconds(0),i.setUTCSeconds(0),i.setUTCMinutes(0),i.setUTCHours(o),i.getTime())}case"day":return i.getUTCHours()===0&&i.getUTCMinutes()===0&&i.getUTCSeconds()===0&&i.getUTCMilliseconds()===0?e:(i.setUTCMilliseconds(0),i.setUTCSeconds(0),i.setUTCMinutes(0),i.setUTCHours(0),i.setUTCDate(i.getUTCDate()+1),i.getTime());case"week":{const o=Date.UTC(1970,0,5);i.setUTCMilliseconds(0),i.setUTCSeconds(0),i.setUTCMinutes(0),i.setUTCHours(0);const l=i.getTime(),u=Math.ceil((l-o)/6048e5),d=Math.ceil(u/r)*r,f=o+d*6048e5;return f>=e?f:f+r*6048e5}case"month":{const s=i.getUTCMonth(),o=Math.ceil(s/r)*r;return o===s&&i.getUTCDate()===1&&i.getUTCHours()===0&&i.getUTCMinutes()===0&&i.getUTCSeconds()===0&&i.getUTCMilliseconds()===0?e:(i.setUTCMilliseconds(0),i.setUTCSeconds(0),i.setUTCMinutes(0),i.setUTCHours(0),i.setUTCDate(1),i.setUTCMonth(o),i.getTime())}case"year":{const s=i.getUTCFullYear(),o=Math.ceil(s/r)*r;return o===s&&i.getUTCMonth()===0&&i.getUTCDate()===1&&i.getUTCHours()===0&&i.getUTCMinutes()===0&&i.getUTCSeconds()===0&&i.getUTCMilliseconds()===0?e:Date.UTC(o,0,1)}}else switch(t){case"second":{const s=i.getSeconds(),o=Math.ceil(s/r)*r;return o===s&&i.getMilliseconds()===0?e:(i.setMilliseconds(0),i.setSeconds(o),i.getTime())}case"minute":{const s=i.getMinutes(),o=Math.ceil(s/r)*r;return o===s&&i.getSeconds()===0&&i.getMilliseconds()===0?e:(i.setMilliseconds(0),i.setSeconds(0),i.setMinutes(o),i.getTime())}case"hour":{const s=i.getHours(),o=Math.ceil(s/r)*r;return o===s&&i.getMinutes()===0&&i.getSeconds()===0&&i.getMilliseconds()===0?e:(i.setMilliseconds(0),i.setSeconds(0),i.setMinutes(0),i.setHours(o),i.getTime())}case"day":return i.getHours()===0&&i.getMinutes()===0&&i.getSeconds()===0&&i.getMilliseconds()===0?e:(i.setMilliseconds(0),i.setSeconds(0),i.setMinutes(0),i.setHours(0),i.setDate(i.getDate()+1),i.getTime());case"week":{const o=new Date(1970,0,5).getTime();i.setMilliseconds(0),i.setSeconds(0),i.setMinutes(0),i.setHours(0);const l=i.getTime(),u=Math.ceil((l-o)/6048e5),d=Math.ceil(u/r)*r,f=o+d*6048e5;return f>=e?f:f+r*6048e5}case"month":{const s=i.getMonth(),o=Math.ceil(s/r)*r;return o===s&&i.getDate()===1&&i.getHours()===0&&i.getMinutes()===0&&i.getSeconds()===0&&i.getMilliseconds()===0?e:(i.setMilliseconds(0),i.setSeconds(0),i.setMinutes(0),i.setHours(0),i.setDate(1),i.setMonth(o),i.getTime())}case"year":{const s=i.getFullYear(),o=Math.ceil(s/r)*r;return o===s&&i.getMonth()===0&&i.getDate()===1&&i.getHours()===0&&i.getMinutes()===0&&i.getSeconds()===0&&i.getMilliseconds()===0?e:new Date(o,0,1).getTime()}}return e}isAtBoundary(e,t,r){const a=this.getDateFields(e,r);switch(t){case"year":return a.month===0&&a.date===1&&a.hour===0&&a.minute===0&&a.second===0&&a.ms===0;case"month":return a.date===1&&a.hour===0&&a.minute===0&&a.second===0&&a.ms===0;case"day":return a.hour===0&&a.minute===0&&a.second===0&&a.ms===0;case"hour":return a.minute===0&&a.second===0&&a.ms===0;case"minute":return a.second===0&&a.ms===0;case"second":return a.ms===0}return!1}}class Vh{constructor(e){this.w=e,this.tooltipKeyFormat="dd MMM"}xLabelFormat(e,t,r,a){const i=this.w;if(i.config.xaxis.type==="datetime"&&i.config.xaxis.labels.formatter===void 0&&i.config.tooltip.x.formatter===void 0){const s=new Ha(this.w);return s.formatDate(s.getDate(t),i.config.tooltip.x.format)}return e(t,r,a)}defaultGeneralFormatter(e){return Array.isArray(e)?e.map(t=>t):e}defaultYFormatter(e,t){const r=this.w;if(ee.isNumber(e))if(r.globals.yValueDecimal!==0)e=e.toFixed(t.decimalsInFloat!==void 0?t.decimalsInFloat:r.globals.yValueDecimal);else{const a=e.toFixed(0);e=Number(a)===e?a:e.toFixed(1)}return e}setLabelFormatters(){const e=this.w,t=e.formatters;return t.xaxisTooltipFormatter=r=>this.defaultGeneralFormatter(r),t.ttKeyFormatter=r=>this.defaultGeneralFormatter(r),t.ttZFormatter=r=>r,t.legendFormatter=r=>this.defaultGeneralFormatter(r),e.config.xaxis.labels.formatter!==void 0?t.xLabelFormatter=e.config.xaxis.labels.formatter:t.xLabelFormatter=r=>{if(ee.isNumber(r)){if(!e.config.xaxis.convertedCatToNumeric&&e.config.xaxis.type==="numeric"){if(ee.isNumber(e.config.xaxis.decimalsInFloat))return r.toFixed(e.config.xaxis.decimalsInFloat);{const a=e.globals.maxX-e.globals.minX;if(a>0){const i=a/10,s=Math.max(0,-Math.floor(Math.log10(i)));return r.toFixed(s)}return r.toFixed(0)}}return e.globals.isBarHorizontal&&e.globals.maxY-e.globals.minYArr<4?r.toFixed(1):r.toFixed(0)}return r},typeof e.config.tooltip.x.formatter=="function"?t.ttKeyFormatter=e.config.tooltip.x.formatter:t.ttKeyFormatter=t.xLabelFormatter,typeof e.config.xaxis.tooltip.formatter=="function"&&(t.xaxisTooltipFormatter=e.config.xaxis.tooltip.formatter),(Array.isArray(e.config.tooltip.y)||e.config.tooltip.y.formatter!==void 0)&&(t.ttVal=e.config.tooltip.y),e.config.tooltip.z.formatter!==void 0&&(t.ttZFormatter=e.config.tooltip.z.formatter),e.config.legend.formatter!==void 0&&(t.legendFormatter=e.config.legend.formatter),t.yLabelFormatters=[],e.config.yaxis.forEach((r,a)=>{if(r.labels.formatter!==void 0)t.yLabelFormatters[a]=r.labels.formatter;else if(e.config.chart.type==="violin"){const i=s=>typeof s=="number"&&isFinite(s)?`${Math.round(s*100)/100}`:s;t.yLabelFormatters[a]=s=>e.globals.xyCharts?Array.isArray(s)?s.map(i):i(s):s}else t.yLabelFormatters[a]=i=>e.globals.xyCharts?Array.isArray(i)?i.map(s=>this.defaultYFormatter(s,r)):this.defaultYFormatter(i,r):i}),e.globals}heatmapLabelFormatters(){const e=this.w;if(e.config.chart.type==="heatmap"){e.globals.yAxisScale[0].result=e.seriesData.seriesNames.slice();const t=e.seriesData.seriesNames.reduce((r,a)=>r.length>a.length?r:a,0);e.globals.yAxisScale[0].niceMax=t,e.globals.yAxisScale[0].niceMin=t}}}const Wy=({isTimeline:n,seriesIndex:e,dataPointIndex:t,y1:r,y2:a,w:i})=>{var s;let o=i.rangeData.seriesRangeStart[e][t],l=i.rangeData.seriesRangeEnd[e][t],u=i.labelData.labels[t],d=i.config.series[e].name?i.config.series[e].name:"";const f=i.formatters.ttKeyFormatter,g=i.config.tooltip.y.title.formatter,p={w:i,seriesIndex:e,dataPointIndex:t,start:o,end:l};typeof g=="function"&&(d=g(d,p)),(s=i.config.series[e].data[t])!=null&&s.x&&(u=i.config.series[e].data[t].x),n||i.config.xaxis.type==="datetime"&&(u=new Vh(i).xLabelFormat(i.formatters.ttKeyFormatter,u,u,{i:void 0,dateFormatter:new Ha(i).formatDate,w:i})),typeof f=="function"&&(u=f(u,p)),Number.isFinite(r)&&Number.isFinite(a)&&(o=r,l=a);let b="",y="";const x=i.globals.colors[e];if(i.config.tooltip.x.formatter===void 0)if(i.config.xaxis.type==="datetime"){const S=new Ha(i);b=S.formatDate(S.getDate(o),i.config.tooltip.x.format),y=S.formatDate(S.getDate(l),i.config.tooltip.x.format)}else b=o,y=l;else b=i.config.tooltip.x.formatter(o),y=i.config.tooltip.x.formatter(l);return{start:o,end:l,startVal:b,endVal:y,ylabel:u,color:x,seriesName:d}},qy=n=>{let{color:e,seriesName:t,ylabel:r,start:a,end:i,seriesIndex:s,dataPointIndex:o}=n;const l=n.w.globals.tooltip.tooltipLabels.getFormatters(s);a=l.yLbFormatter(a),i=l.yLbFormatter(i);const u=l.yLbFormatter(n.w.seriesData.series[s][o]);let d="";const f=`<span class="value start-value">
  ${a}
  </span> <span class="separator">-</span> <span class="value end-value">
  ${i}
  </span>`;return n.w.globals.comboCharts?n.w.config.series[s].type==="rangeArea"||n.w.config.series[s].type==="rangeBar"?d=f:d=`<span>${u}</span>`:d=f,'<div class="apexcharts-tooltip-rangebar"><div> <span class="series-name" style="color: '+e+'">'+(t||"")+'</span></div><div> <span class="category">'+r+": </span> "+d+" </div></div>"};class mh{constructor(e){this.opts=e}hideYAxis(){this.opts.yaxis[0].show=!1,this.opts.yaxis[0].title.text="",this.opts.yaxis[0].axisBorder.show=!1,this.opts.yaxis[0].axisTicks.show=!1,this.opts.yaxis[0].floating=!0}line(){return{dataLabels:{enabled:!1},stroke:{width:5,curve:"straight"},markers:{size:0,hover:{sizeOffset:6}},xaxis:{crosshairs:{width:1}}}}sparkline(e){this.hideYAxis();const t={grid:{show:!1,padding:{left:0,right:0,top:0,bottom:0}},legend:{show:!1},xaxis:{labels:{show:!1},tooltip:{enabled:!1},axisBorder:{show:!1},axisTicks:{show:!1}},chart:{toolbar:{show:!1},zoom:{enabled:!1}},dataLabels:{enabled:!1}};return ee.extend(e,t)}slope(){return this.hideYAxis(),{chart:{toolbar:{show:!1},zoom:{enabled:!1}},dataLabels:{enabled:!0,formatter(e,t){const r=t.w.config.series[t.seriesIndex].name;return e!==null?r+": "+e:""},background:{enabled:!1},offsetX:-5},grid:{xaxis:{lines:{show:!0}},yaxis:{lines:{show:!1}}},xaxis:{position:"top",labels:{style:{fontSize:14,fontWeight:900}},tooltip:{enabled:!1},crosshairs:{show:!1}},markers:{size:8,hover:{sizeOffset:1}},legend:{show:!1},tooltip:{shared:!1,intersect:!0,followCursor:!0},stroke:{width:5,curve:"straight"}}}bar(){return{chart:{stacked:!1},plotOptions:{bar:{dataLabels:{position:"center"}}},dataLabels:{style:{colors:["#fff"]},background:{enabled:!1}},stroke:{width:0,lineCap:"square"},fill:{opacity:.85},legend:{markers:{shape:"square"}},tooltip:{shared:!1,intersect:!0},xaxis:{tooltip:{enabled:!1},tickPlacement:"between",crosshairs:{width:"barWidth",position:"back",fill:{type:"gradient"},dropShadow:{enabled:!1},stroke:{width:0}}}}}funnel(){return this.hideYAxis(),Lt(ct({},this.bar()),{chart:{animations:{speed:800,animateGradually:{enabled:!1}}},plotOptions:{bar:{horizontal:!0,borderRadiusApplication:"around",borderRadius:0,dataLabels:{position:"center"}}},grid:{show:!1,padding:{left:0,right:0}},xaxis:{labels:{show:!1},tooltip:{enabled:!1},axisBorder:{show:!1},axisTicks:{show:!1}}})}pyramid(){return this.funnel()}gauge(){const e=this.radialBar();return Lt(ct({},e),{plotOptions:{radialBar:{startAngle:-135,endAngle:135,hollow:{margin:0,size:"60%"},track:{background:"#e7e7e7",strokeWidth:"100%",margin:5},dataLabels:{name:{show:!1},value:{show:!0,fontSize:"32px",fontWeight:600,offsetY:8}}}}})}candlestick(){return{stroke:{width:1},fill:{opacity:1},dataLabels:{enabled:!1},tooltip:{shared:!0,custom:({seriesIndex:e,dataPointIndex:t,w:r})=>this._getBoxTooltip(r,e,t,["Open","High","","Low","Close"],"candlestick")},states:{active:{filter:{type:"none"}}},xaxis:{crosshairs:{width:1}}}}boxPlot(){return{chart:{animations:{dynamicAnimation:{enabled:!1}}},stroke:{width:1,colors:["#24292e"]},dataLabels:{enabled:!1},tooltip:{shared:!0,custom:({seriesIndex:e,dataPointIndex:t,w:r})=>this._getBoxTooltip(r,e,t,["Minimum","Q1","Median","Q3","Maximum"],"boxPlot")},markers:{size:7,strokeWidth:1,strokeColors:"#111"},xaxis:{crosshairs:{width:1}}}}violin(){return{chart:{zoom:{enabled:!1},animations:{dynamicAnimation:{enabled:!1}}},stroke:{width:1,colors:["#24292e"]},fill:{opacity:.7},dataLabels:{enabled:!1},tooltip:{shared:!0,custom:({seriesIndex:e,dataPointIndex:t,w:r})=>this._getViolinTooltip(r,e,t)},states:{active:{filter:{type:"none"}}},xaxis:{crosshairs:{width:1}}}}rangeBar(){const e=r=>{const{color:a,seriesName:i,ylabel:s,startVal:o,endVal:l}=Wy(Lt(ct({},r),{isTimeline:!0}));return qy(Lt(ct({},r),{color:a,seriesName:i,ylabel:s,start:o,end:l}))},t=r=>{const{color:a,seriesName:i,ylabel:s,start:o,end:l}=Wy(r);return qy(Lt(ct({},r),{color:a,seriesName:i,ylabel:s,start:o,end:l}))};return{chart:{animations:{animateGradually:!1}},stroke:{width:0,lineCap:"square"},plotOptions:{bar:{borderRadius:0,dataLabels:{position:"center"}}},dataLabels:{enabled:!1,formatter(r,{seriesIndex:a,dataPointIndex:i,w:s}){const o=()=>{const l=s.rangeData.seriesRangeStart[a][i];return s.rangeData.seriesRangeEnd[a][i]-l};return s.globals.comboCharts?s.config.series[a].type==="rangeBar"||s.config.series[a].type==="rangeArea"?o():r:o()},background:{enabled:!1},style:{colors:["#fff"]}},markers:{size:10},tooltip:{shared:!1,followCursor:!0,custom(r){return r.w.config.plotOptions&&r.w.config.plotOptions.bar&&r.w.config.plotOptions.bar.horizontal?e(r):t(r)}},xaxis:{tickPlacement:"between",tooltip:{enabled:!1},crosshairs:{stroke:{width:0}}}}}dumbbell(e){var t,r;return(t=e.plotOptions.bar)!=null&&t.barHeight||(e.plotOptions.bar.barHeight=2),(r=e.plotOptions.bar)!=null&&r.columnWidth||(e.plotOptions.bar.columnWidth=2),e}area(){return{stroke:{width:4,fill:{type:"solid",gradient:{inverseColors:!1,shade:"light",type:"vertical",opacityFrom:.65,opacityTo:.5,stops:[0,100,100]}}},fill:{type:"gradient",gradient:{inverseColors:!1,shade:"light",type:"vertical",opacityFrom:.65,opacityTo:.5,stops:[0,100,100]}},markers:{size:0,hover:{sizeOffset:6}},tooltip:{followCursor:!1}}}rangeArea(){const e=t=>{const{color:r,seriesName:a,ylabel:i,start:s,end:o}=Wy(t);return qy(Lt(ct({},t),{color:r,seriesName:a,ylabel:i,start:s,end:o}))};return{stroke:{curve:"straight",width:0},fill:{type:"solid",opacity:.6},markers:{size:0},states:{hover:{filter:{type:"none"}},active:{filter:{type:"none"}}},tooltip:{intersect:!1,shared:!0,followCursor:!0,custom(t){return e(t)}}}}brush(e){const t={chart:{toolbar:{autoSelected:"selection",show:!1},zoom:{enabled:!1}},dataLabels:{enabled:!1},stroke:{width:1},tooltip:{enabled:!1},xaxis:{tooltip:{enabled:!1}}};return ee.extend(e,t)}stacked100(e){e.dataLabels=e.dataLabels||{},e.dataLabels.formatter=e.dataLabels.formatter||void 0;const t=e.dataLabels.formatter;return e.yaxis.forEach((a,i)=>{e.yaxis[i].min=0,e.yaxis[i].max=100}),e.chart.type==="bar"&&(e.dataLabels.formatter=t||function(a){return typeof a=="number"?a&&a.toFixed(0)+"%":a}),e}stackedBars(){const e=this.bar();return Lt(ct({},e),{plotOptions:Lt(ct({},e.plotOptions),{bar:Lt(ct({},e.plotOptions.bar),{borderRadiusApplication:"end",borderRadiusWhenStacked:"last"})})})}convertCatToNumeric(e){return e.xaxis.convertedCatToNumeric=!0,e}convertCatToNumericXaxis(e,t){e.xaxis.type="numeric",e.xaxis.labels=e.xaxis.labels||{},e.xaxis.labels.formatter=e.xaxis.labels.formatter||function(i){return ee.isNumber(i)?Math.floor(i):i};const r=e.xaxis.labels.formatter;let a=e.xaxis.categories&&e.xaxis.categories.length?e.xaxis.categories:e.labels;return t&&t.length&&(a=t.map(i=>Array.isArray(i)?i:String(i))),a&&a.length&&(e.xaxis.labels.formatter=function(i){return ee.isNumber(i)?r(a[Math.floor(i)-1]):r(i)}),e.xaxis.categories=[],e.labels=[],e.xaxis.tickAmount=e.xaxis.tickAmount||"dataPoints",e}bubble(){return{dataLabels:{style:{colors:["#fff"]}},tooltip:{shared:!1,intersect:!0},xaxis:{crosshairs:{width:0}},fill:{type:"solid",gradient:{shade:"light",inverse:!0,shadeIntensity:.55,opacityFrom:.4,opacityTo:.8}}}}scatter(){return{dataLabels:{enabled:!1},tooltip:{shared:!1,intersect:!0},markers:{size:6,strokeWidth:1,hover:{sizeOffset:2}}}}heatmap(){return{chart:{stacked:!1},fill:{opacity:1},dataLabels:{style:{colors:["#fff"]}},stroke:{colors:["#fff"]},tooltip:{followCursor:!0,marker:{show:!1},x:{show:!1}},legend:{position:"top",markers:{shape:"square"}},grid:{padding:{right:20}}}}treemap(){return{chart:{zoom:{enabled:!1}},dataLabels:{style:{fontSize:14,fontWeight:600,colors:["#fff"]}},stroke:{show:!0,width:2,colors:["#fff"]},legend:{show:!1},fill:{opacity:1,gradient:{stops:[0,100]}},tooltip:{followCursor:!0,x:{show:!1}},grid:{padding:{left:0,right:0}},xaxis:{crosshairs:{show:!1},tooltip:{enabled:!1}}}}pie(){return{chart:{toolbar:{show:!1}},plotOptions:{pie:{donut:{labels:{show:!1}}}},dataLabels:{formatter(e){return e.toFixed(1)+"%"},style:{colors:["#fff"]},background:{enabled:!1},dropShadow:{enabled:!0}},stroke:{colors:["#fff"]},fill:{opacity:1,gradient:{shade:"light",stops:[0,100]}},tooltip:{theme:"dark",fillSeriesColor:!0},legend:{position:"right"},grid:{padding:{left:0,right:0,top:0,bottom:0}}}}donut(){return{chart:{toolbar:{show:!1}},dataLabels:{formatter(e){return e.toFixed(1)+"%"},style:{colors:["#fff"]},background:{enabled:!1},dropShadow:{enabled:!0}},stroke:{colors:["#fff"]},fill:{opacity:1,gradient:{shade:"light",shadeIntensity:.35,stops:[80,100],opacityFrom:1,opacityTo:1}},tooltip:{theme:"dark",fillSeriesColor:!0},legend:{position:"right"},grid:{padding:{left:0,right:0,top:0,bottom:0}}}}polarArea(){return{chart:{toolbar:{show:!1}},dataLabels:{formatter(e){return e.toFixed(1)+"%"},enabled:!1},stroke:{show:!0,width:2},fill:{opacity:.7},tooltip:{theme:"dark",fillSeriesColor:!0},legend:{position:"right"},grid:{padding:{left:0,right:0,top:0,bottom:0}}}}radar(){return this.opts.yaxis[0].labels.offsetY=this.opts.yaxis[0].labels.offsetY?this.opts.yaxis[0].labels.offsetY:6,{dataLabels:{enabled:!1,style:{fontSize:"11px"}},stroke:{width:2},markers:{size:5,strokeWidth:1,strokeOpacity:1},fill:{opacity:.2},tooltip:{shared:!1,intersect:!0,followCursor:!0},grid:{show:!1,padding:{left:0,right:0,top:0,bottom:0}},xaxis:{labels:{formatter:e=>e,style:{colors:["#a8a8a8"],fontSize:"11px"}},tooltip:{enabled:!1},crosshairs:{show:!1}}}}radialBar(){return{chart:{animations:{dynamicAnimation:{enabled:!0,speed:800}},toolbar:{show:!1}},stroke:{lineCap:"butt"},fill:{gradient:{shade:"dark",shadeIntensity:.4,inverseColors:!1,type:"diagonal2",opacityFrom:1,opacityTo:1,stops:[70,98,100]}},legend:{show:!1,position:"right"},tooltip:{enabled:!1,fillSeriesColor:!0},grid:{padding:{left:0,right:0,top:0,bottom:0}}}}_getBoxTooltip(e,t,r,a,i){const s=e.candleData.seriesCandleO[t][r],o=e.candleData.seriesCandleH[t][r],l=e.candleData.seriesCandleM[t][r],u=e.candleData.seriesCandleL[t][r],d=e.candleData.seriesCandleC[t][r],f=e.config.series[t];return f.type&&f.type!==i?`<div class="apexcharts-custom-tooltip">
          ${f.name?f.name:"series-"+(t+1)}: <strong>${e.seriesData.series[t][r]}</strong>
        </div>`:`<div class="apexcharts-tooltip-box apexcharts-tooltip-${e.config.chart.type}"><div>${a[0]}: <span class="value">`+s+`</span></div><div>${a[1]}: <span class="value">`+o+"</span></div>"+(l?`<div>${a[2]}: <span class="value">`+l+"</span></div>":"")+`<div>${a[3]}: <span class="value">`+u+`</span></div><div>${a[4]}: <span class="value">`+d+"</span></div></div>"}_getViolinTooltip(e,t,r){var a,i,s;const o=(a=e.violinData.seriesViolinMin[t])==null?void 0:a[r],l=(i=e.violinData.seriesViolinMax[t])==null?void 0:i[r],u=((s=e.violinData.seriesViolinPoints[t])==null?void 0:s[r])||[],d=e.config.series[t].name||"series-"+(t+1);return`<div class="apexcharts-tooltip-box apexcharts-tooltip-${e.config.chart.type}"><div class="apexcharts-tooltip-violin-name">${d}</div><div>Min: <span class="value">${o}</span></div><div>Max: <span class="value">${l}</span></div><div>Observations: <span class="value">${u.length}</span></div></div>`}}const Lae="en",Nae={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"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],toolbar:{exportToSVG:"Download SVG",exportToPNG:"Download PNG",exportToCSV:"Download CSV",menu:"Menu",selection:"Selection",selectionZoom:"Selection Zoom",zoomIn:"Zoom In",zoomOut:"Zoom Out",pan:"Panning",reset:"Reset Zoom"}},fj={name:Lae,options:Nae};class fl{constructor(){this.yAxis={show:!0,showAlways:!1,showForNullSeries:!0,seriesName:void 0,opposite:!1,reversed:!1,logarithmic:!1,logBase:10,tickAmount:void 0,stepSize:void 0,forceNiceScale:!1,alignZero:!1,max:void 0,min:void 0,floating:!1,decimalsInFloat:void 0,labels:{show:!0,showDuplicates:!1,minWidth:0,maxWidth:160,offsetX:0,offsetY:0,align:void 0,rotate:0,padding:20,style:{colors:[],fontSize:"11px",fontWeight:400,fontFamily:void 0,cssClass:""},formatter:void 0},axisBorder:{show:!1,color:"#e0e0e0",width:1,offsetX:0,offsetY:0},axisTicks:{show:!1,color:"#e0e0e0",width:6,offsetX:0,offsetY:0},title:{text:void 0,rotate:-90,offsetY:0,offsetX:0,style:{color:void 0,fontSize:"11px",fontWeight:900,fontFamily:void 0,cssClass:""}},tooltip:{enabled:!1,offsetX:0},crosshairs:{show:!0,position:"front",stroke:{color:"#b6b6b6",width:1,dashArray:0}}},this.pointAnnotation={id:void 0,x:0,y:null,yAxisIndex:0,seriesIndex:void 0,mouseEnter:void 0,mouseLeave:void 0,click:void 0,marker:{size:4,fillColor:"#fff",strokeWidth:2,strokeColor:"#333",shape:"circle",offsetX:0,offsetY:0,cssClass:""},label:{borderColor:"#c2c2c2",borderWidth:1,borderRadius:2,text:void 0,textAnchor:"middle",offsetX:0,offsetY:0,mouseEnter:void 0,mouseLeave:void 0,click:void 0,style:{background:"#fff",color:void 0,fontSize:"11px",fontFamily:void 0,fontWeight:400,cssClass:"",padding:{left:5,right:5,top:2,bottom:2}}},customSVG:{SVG:void 0,cssClass:void 0,offsetX:0,offsetY:0},image:{path:void 0,width:20,height:20,offsetX:0,offsetY:0}},this.yAxisAnnotation={id:void 0,y:0,y2:null,strokeDashArray:1,fillColor:"#c2c2c2",borderColor:"#c2c2c2",borderWidth:1,opacity:.3,offsetX:0,offsetY:0,width:"100%",yAxisIndex:0,label:{borderColor:"#c2c2c2",borderWidth:1,borderRadius:2,text:void 0,textAnchor:"end",position:"right",offsetX:0,offsetY:-3,mouseEnter:void 0,mouseLeave:void 0,click:void 0,style:{background:"#fff",color:void 0,fontSize:"11px",fontFamily:void 0,fontWeight:400,cssClass:"",padding:{left:5,right:5,top:2,bottom:2}}}},this.xAxisAnnotation={id:void 0,x:0,x2:null,strokeDashArray:1,fillColor:"#c2c2c2",borderColor:"#c2c2c2",borderWidth:1,opacity:.3,offsetX:0,offsetY:0,label:{borderColor:"#c2c2c2",borderWidth:1,borderRadius:2,text:void 0,textAnchor:"middle",orientation:"vertical",position:"top",offsetX:0,offsetY:0,mouseEnter:void 0,mouseLeave:void 0,click:void 0,style:{background:"#fff",color:void 0,fontSize:"11px",fontFamily:void 0,fontWeight:400,cssClass:"",padding:{left:5,right:5,top:2,bottom:2}}}},this.text={x:0,y:0,text:"",textAnchor:"start",foreColor:void 0,fontSize:"13px",fontFamily:void 0,fontWeight:400,appendTo:".apexcharts-annotations",backgroundColor:"transparent",borderColor:"#c2c2c2",borderRadius:0,borderWidth:0,paddingLeft:4,paddingRight:4,paddingTop:2,paddingBottom:2}}init(){return{annotations:{yaxis:[this.yAxisAnnotation],xaxis:[this.xAxisAnnotation],points:[this.pointAnnotation],texts:[],images:[],shapes:[]},chart:{animations:{enabled:!0,speed:800,animateGradually:{delay:150,enabled:!0},dynamicAnimation:{enabled:!0,speed:350},chartTypeMorph:{enabled:!0,speed:600},respectReducedMotion:!0,largeDatasetThreshold:1e3},background:"",locales:[fj],defaultLocale:"en",dropShadow:{enabled:!1,enabledOnSeries:void 0,top:2,left:2,blur:4,color:"#000",opacity:.7},events:{animationEnd:void 0,beforeMount:void 0,mounted:void 0,updated:void 0,click:void 0,mouseMove:void 0,mouseLeave:void 0,xAxisLabelClick:void 0,legendClick:void 0,markerClick:void 0,selection:void 0,dataPointSelection:void 0,dataPointMouseEnter:void 0,dataPointMouseLeave:void 0,beforeZoom:void 0,beforeResetZoom:void 0,zoomed:void 0,scrolled:void 0,brushScrolled:void 0,keyDown:void 0,keyUp:void 0},foreColor:"#373d3f",fontFamily:"Helvetica, Arial, sans-serif",height:"auto",parentHeightOffset:15,redrawOnParentResize:!0,redrawOnWindowResize:!0,id:void 0,group:void 0,nonce:void 0,offsetX:0,offsetY:0,injectStyleSheet:!0,selection:{enabled:!1,type:"x",fill:{color:"#24292e",opacity:.1},stroke:{width:1,color:"#24292e",opacity:.4,dashArray:3},xaxis:{min:void 0,max:void 0},yaxis:{min:void 0,max:void 0}},sparkline:{enabled:!1},brush:{enabled:!1,autoScaleYaxis:!0,target:void 0,targets:void 0},stacked:!1,stackOnlyBar:!0,stackType:"normal",toolbar:{show:!0,offsetX:0,offsetY:0,tools:{download:!0,selection:!0,zoom:!0,zoomin:!0,zoomout:!0,pan:!0,reset:!0,customIcons:[]},export:{csv:{filename:void 0,columnDelimiter:",",headerCategory:"category",headerValue:"value",categoryFormatter:void 0,valueFormatter:void 0},png:{filename:void 0},svg:{filename:void 0},scale:void 0,width:void 0},autoSelected:"zoom"},type:"line",width:"100%",zoom:{enabled:!0,type:"x",autoScaleYaxis:!1,allowMouseWheelZoom:!0,zoomedArea:{fill:{color:"#90CAF9",opacity:.4},stroke:{color:"#0D47A1",opacity:.4,width:1}}},accessibility:{enabled:!0,description:void 0,announcements:{enabled:!0},keyboard:{enabled:!0,navigation:{enabled:!0,wrapAround:!1}}},dataReducer:{enabled:!1,algorithm:"lttb",targetPoints:250,threshold:500}},parsing:{x:void 0,y:void 0},plotOptions:{line:{isSlopeChart:!1,colors:{threshold:0,colorAboveThreshold:void 0,colorBelowThreshold:void 0}},area:{fillTo:"origin"},bar:{horizontal:!1,columnWidth:"70%",barHeight:"70%",distributed:!1,borderRadius:0,borderRadiusApplication:"around",borderRadiusWhenStacked:"last",rangeBarOverlap:!0,rangeBarGroupRows:!1,hideZeroBarsWhenGrouped:!1,isDumbbell:!1,dumbbellColors:void 0,isFunnel:!1,isFunnel3d:!0,colors:{ranges:[],backgroundBarColors:[],backgroundBarOpacity:1,backgroundBarRadius:0},dataLabels:{position:"top",maxItems:100,hideOverflowingLabels:!0,orientation:"horizontal",total:{enabled:!1,formatter:void 0,offsetX:0,offsetY:0,style:{color:"#373d3f",fontSize:"12px",fontFamily:void 0,fontWeight:600}}}},bubble:{zScaling:!0,minBubbleRadius:void 0,maxBubbleRadius:void 0},candlestick:{colors:{upward:"#00B746",downward:"#EF403C"},wick:{useFillColor:!0}},boxPlot:{colors:{upper:"#00E396",lower:"#008FFB"},points:{show:!1,shape:"circle",size:2.5,jitter:.5,maxPoints:3e3,opacity:.9,fillColor:"series-dark",strokeColor:"#fff",strokeWidth:1}},violin:{bandwidthScale:1,normalize:"individual",points:{show:!0,shape:"circle",size:2.5,jitter:.5,constrainToViolin:!0,maxPoints:3e3,opacity:.9,fillColor:"series-dark",strokeColor:"#fff",strokeWidth:1}},heatmap:{radius:2,enableShades:!0,shadeIntensity:.5,reverseNegativeShade:!1,distributed:!1,useFillColorAsStroke:!1,colorScale:{inverse:!1,ranges:[],min:void 0,max:void 0,gradientLegend:{enabled:!1,width:"70%",height:"70%",thickness:12,align:"center",stops:16,showLabels:!0,showHoverValue:!0,labelStyle:{fontSize:"11px",fontFamily:void 0,colors:void 0},arrow:{size:8,color:void 0},formatter:void 0}}},funnel:{shape:"rectangle",lastShape:"flat"},treemap:{enableShades:!0,shadeIntensity:.5,distributed:!1,reverseNegativeShade:!1,useFillColorAsStroke:!1,borderRadius:4,dataLabels:{format:"scale"},colorScale:{inverse:!1,ranges:[],min:void 0,max:void 0},seriesTitle:{show:!0,offsetY:1,offsetX:1,borderColor:"#000",borderWidth:1,borderRadius:2,style:{background:"rgba(0, 0, 0, 0.6)",color:"#fff",fontSize:"12px",fontFamily:void 0,fontWeight:400,cssClass:"",padding:{left:6,right:6,top:2,bottom:2}}}},radialBar:{inverseOrder:!1,startAngle:0,endAngle:360,offsetX:0,offsetY:0,shape:"arc",min:0,max:100,bands:[],bandsStyle:{strokeWidth:"40%",gap:0,hideTrackWhenPresent:!0},ticks:{show:!1,major:{count:11,length:10,width:2,color:"#666",placement:"outside"},minor:{count:4,length:5,width:1,color:"#999",placement:"outside"},labels:{show:!1,offset:6,fontSize:"11px",fontFamily:void 0,fontWeight:400,color:"#666",formatter(e){return String(e)}}},needle:{color:"#333",length:"85%",baseWidth:4,tipWidth:1,offsetY:0,showValueArc:!1,animation:{enabled:!0,duration:800,easing:"ease-out"}},hollow:{margin:5,size:"50%",background:"transparent",image:void 0,imageWidth:150,imageHeight:150,imageOffsetX:0,imageOffsetY:0,imageClipped:!0,position:"front",stroke:void 0,strokeWidth:1,strokeDasharray:void 0,dropShadow:{enabled:!1,top:0,left:0,blur:3,color:"#000",opacity:.5}},track:{show:!0,startAngle:void 0,endAngle:void 0,background:"#f2f2f2",strokeWidth:"97%",opacity:1,margin:5,dropShadow:{enabled:!1,top:0,left:0,blur:3,color:"#000",opacity:.5}},dataLabels:{show:!0,name:{show:!0,fontSize:"16px",fontFamily:void 0,fontWeight:600,color:void 0,offsetY:0,formatter(e){return e}},value:{show:!0,fontSize:"14px",fontFamily:void 0,fontWeight:400,color:void 0,offsetY:16,formatter(e){return e+"%"}},total:{show:!1,label:"Total",fontSize:"16px",fontWeight:600,fontFamily:void 0,color:void 0,formatter(e){return e.globals.seriesTotals.reduce((t,r)=>t+r,0)/e.seriesData.series.length+"%"}}},barLabels:{enabled:!1,offsetX:0,offsetY:0,useSeriesColors:!0,fontFamily:void 0,fontWeight:600,fontSize:"16px",formatter(e){return e},onClick:void 0}},pie:{customScale:1,offsetX:0,offsetY:0,startAngle:0,endAngle:360,expandOnClick:!0,dataLabels:{offset:0,minAngleToShowLabel:10},donut:{size:"65%",background:"transparent",labels:{show:!1,name:{show:!0,fontSize:"16px",fontFamily:void 0,fontWeight:600,color:void 0,offsetY:-10,formatter(e){return e}},value:{show:!0,fontSize:"20px",fontFamily:void 0,fontWeight:400,color:void 0,offsetY:10,formatter(e){return e}},total:{show:!1,showAlways:!1,label:"Total",fontSize:"16px",fontWeight:400,fontFamily:void 0,color:void 0,formatter(e){return e.globals.seriesTotals.reduce((t,r)=>t+r,0)}}}}},polarArea:{rings:{strokeWidth:1,strokeColor:"#e8e8e8"},spokes:{strokeWidth:1,connectorColors:"#e8e8e8"}},radar:{size:void 0,offsetX:0,offsetY:0,polygons:{strokeWidth:1,strokeColors:"#e8e8e8",connectorColors:"#e8e8e8",fill:{colors:void 0}}}},colors:void 0,dataLabels:{enabled:!0,enabledOnSeries:void 0,formatter(e){return e!==null?e:""},textAnchor:"middle",distributed:!1,offsetX:0,offsetY:0,style:{fontSize:"12px",fontFamily:void 0,fontWeight:600,colors:void 0},background:{enabled:!0,foreColor:"#fff",backgroundColor:void 0,borderRadius:2,padding:4,opacity:.9,borderWidth:1,borderColor:"#fff",dropShadow:{enabled:!1,top:1,left:1,blur:1,color:"#000",opacity:.8}},dropShadow:{enabled:!1,top:1,left:1,blur:1,color:"#000",opacity:.8}},fill:{type:"solid",colors:void 0,opacity:.85,gradient:{shade:"dark",type:"horizontal",shadeIntensity:.5,gradientToColors:void 0,inverseColors:!0,opacityFrom:1,opacityTo:1,stops:[0,50,100],colorStops:[]},image:{src:[],width:void 0,height:void 0},pattern:{style:"squares",width:6,height:6,strokeWidth:2}},forecastDataPoints:{count:0,fillOpacity:.5,strokeWidth:void 0,dashArray:4},grid:{show:!0,borderColor:"#e0e0e0",strokeDashArray:0,position:"back",xaxis:{lines:{show:!1}},yaxis:{lines:{show:!0}},row:{colors:void 0,opacity:.5},column:{colors:void 0,opacity:.5},padding:{top:0,right:10,bottom:0,left:12}},labels:[],legend:{show:!0,showForSingleSeries:!1,showForNullSeries:!0,showForZeroSeries:!0,floating:!1,position:"bottom",horizontalAlign:"center",inverseOrder:!1,fontSize:"12px",fontFamily:void 0,fontWeight:400,width:void 0,height:void 0,formatter:void 0,tooltipHoverFormatter:void 0,offsetX:-20,offsetY:4,customLegendItems:[],clusterGroupedSeries:!0,clusterGroupedSeriesOrientation:"vertical",labels:{colors:void 0,useSeriesColors:!1},markers:{size:7,fillColors:void 0,strokeWidth:1,shape:void 0,offsetX:0,offsetY:0,customHTML:void 0,onClick:void 0},itemMargin:{horizontal:5,vertical:4},onItemClick:{toggleDataSeries:!0},onItemHover:{highlightDataSeries:!0}},markers:{discrete:[],size:0,colors:void 0,strokeColors:"#fff",strokeWidth:2,strokeOpacity:.9,strokeDashArray:0,fillOpacity:1,shape:"circle",offsetX:0,offsetY:0,showNullDataPoints:!0,onClick:void 0,onDblClick:void 0,hover:{size:void 0,sizeOffset:3}},noData:{text:void 0,align:"center",offsetX:0,offsetY:0,style:{color:void 0,fontSize:"14px",fontFamily:void 0}},responsive:[],series:void 0,states:{hover:{filter:{type:"lighten"}},active:{allowMultipleDataPointsSelection:!1,filter:{type:"darken"}}},title:{text:void 0,align:"left",margin:5,offsetX:0,offsetY:0,floating:!1,style:{fontSize:"14px",fontWeight:900,fontFamily:void 0,color:void 0}},subtitle:{text:void 0,align:"left",margin:5,offsetX:0,offsetY:30,floating:!1,style:{fontSize:"12px",fontWeight:400,fontFamily:void 0,color:void 0}},stroke:{show:!0,curve:"smooth",lineCap:"butt",width:2,colors:void 0,dashArray:0,fill:{type:"solid",colors:void 0,opacity:.85,gradient:{shade:"dark",type:"horizontal",shadeIntensity:.5,gradientToColors:void 0,inverseColors:!0,opacityFrom:1,opacityTo:1,stops:[0,50,100],colorStops:[]}}},tooltip:{enabled:!0,enabledOnSeries:void 0,shared:!0,hideEmptySeries:!1,followCursor:!1,intersect:!1,inverseOrder:!1,arrow:!0,custom:void 0,fillSeriesColor:!1,theme:"light",cssClass:"",style:{fontSize:"12px",fontFamily:void 0,background:void 0},onDatasetHover:{highlightDataSeries:!1},x:{show:!0,format:"dd MMM",formatter:void 0},y:{formatter:void 0,title:{formatter(e){return e?e+": ":""}}},z:{formatter:void 0,title:"Size: "},marker:{show:!0,fillColors:void 0},items:{display:"flex"},fixed:{enabled:!1,position:"topRight",offsetX:0,offsetY:0}},xaxis:{type:"category",categories:[],convertedCatToNumeric:!1,offsetX:0,offsetY:0,overwriteCategories:void 0,labels:{show:!0,rotate:-45,rotateAlways:!1,hideOverlappingLabels:!0,trim:!1,minHeight:void 0,maxHeight:120,showDuplicates:!0,style:{colors:[],fontSize:"12px",fontWeight:400,fontFamily:void 0,cssClass:""},offsetX:0,offsetY:0,format:void 0,formatter:void 0,datetimeUTC:!0,datetimeFormatter:{year:"yyyy",month:"MMM",day:"dd MMM",hour:"HH:mm",minute:"HH:mm",second:"HH:mm:ss"}},group:{groups:[],style:{colors:[],fontSize:"12px",fontWeight:400,fontFamily:void 0,cssClass:""}},axisBorder:{show:!0,color:"#e0e0e0",width:"100%",height:1,offsetX:0,offsetY:0},axisTicks:{show:!0,color:"#e0e0e0",height:6,offsetX:0,offsetY:0},stepSize:void 0,tickAmount:void 0,tickPlacement:"on",min:void 0,max:void 0,range:void 0,floating:!1,decimalsInFloat:void 0,position:"bottom",title:{text:void 0,offsetX:0,offsetY:0,style:{color:void 0,fontSize:"12px",fontWeight:900,fontFamily:void 0,cssClass:""}},crosshairs:{show:!0,width:1,position:"back",opacity:.9,stroke:{color:"#b6b6b6",width:1,dashArray:3},fill:{type:"solid",color:"#B1B9C4",gradient:{colorFrom:"#D8E3F0",colorTo:"#BED1E6",stops:[0,100],opacityFrom:.4,opacityTo:.5}},dropShadow:{enabled:!1,left:0,top:0,blur:1,opacity:.8}},tooltip:{enabled:!0,offsetY:0,formatter:void 0,style:{fontSize:"12px",fontFamily:void 0}}},yaxis:this.yAxis,theme:{mode:"",palette:"palette1",monochrome:{enabled:!1,color:"#008FFB",shadeTo:"light",shadeIntensity:.65},accessibility:{colorBlindMode:""}}}}}class vh{constructor(e){this.opts=e}init({responsiveOverride:e}){var t,r,a,i,s,o,l,u,d,f;let g=this.opts;const p=new fl,b=new mh(g);g=this.normalizeAliasedChartType(g),this.chartType=g.chart.type,g=this.extendYAxis(g),g=this.extendAnnotations(g);let y=p.init(),x={};if(g&&typeof g=="object"){let C={};const O=["line","area","bar","candlestick","boxPlot","violin","rangeBar","rangeArea","bubble","scatter","heatmap","treemap","pie","polarArea","donut","radar","radialBar"],D=g.chart.requestedType;D==="funnel"||D==="pyramid"?C=b[D]():D==="gauge"?C=b.gauge():O.indexOf(g.chart.type)!==-1?C=b[g.chart.type]():C=b.line(),(r=(t=g.plotOptions)==null?void 0:t.bar)!=null&&r.isFunnel&&(C=b.funnel()),g.chart.stacked&&g.chart.type==="bar"&&(C=b.stackedBars()),(a=g.chart.brush)!=null&&a.enabled&&(C=b.brush(C)),(s=(i=g.plotOptions)==null?void 0:i.line)!=null&&s.isSlopeChart&&(C=b.slope()),g.chart.stacked&&g.chart.stackType==="100%"&&(g=b.stacked100(g)),(l=(o=g.plotOptions)==null?void 0:o.bar)!=null&&l.isDumbbell&&(g=b.dumbbell(g)),this.checkForDarkTheme(qe.getApex()),this.checkForDarkTheme(g),g.xaxis=g.xaxis||qe.getApex().xaxis||{},e||(g.xaxis.convertedCatToNumeric=!1),g=this.checkForCatToNumericXAxis(this.chartType,C,g),((u=g.chart.sparkline)!=null&&u.enabled||(f=(d=qe.getApex().chart)==null?void 0:d.sparkline)!=null&&f.enabled)&&(C=b.sparkline(C)),x=ee.extend(y,C)}const S=ee.extend(x,qe.getApex());return y=ee.extend(S,g),y=this.handleUserInputErrors(y),y}normalizeAliasedChartType(e){if(!e||!e.chart)return e;const t=e.chart.type;return t!=="funnel"&&t!=="pyramid"&&t!=="gauge"||(e.chart.requestedType=t,t==="funnel"||t==="pyramid"?(e.plotOptions=e.plotOptions||{},e.plotOptions.bar=e.plotOptions.bar||{},e.plotOptions.bar.isFunnel=!0,e.plotOptions.bar.horizontal=!0,e.chart.type="bar",t==="pyramid"?e.plotOptions.bar.isPyramid=!0:e.plotOptions.bar.isPyramid=!1):t==="gauge"&&(e.chart.type="radialBar")),e}checkForCatToNumericXAxis(e,t,r){var a,i;const s=new mh(r),o=(e==="bar"||e==="boxPlot"||e==="violin")&&((i=(a=r.plotOptions)==null?void 0:a.bar)==null?void 0:i.horizontal),l=e==="pie"||e==="polarArea"||e==="donut"||e==="radar"||e==="radialBar"||e==="heatmap",u=r.xaxis.type!=="datetime"&&r.xaxis.type!=="numeric",d=r.xaxis.tickPlacement?r.xaxis.tickPlacement:t.xaxis&&t.xaxis.tickPlacement;return!o&&!l&&u&&d!=="between"&&(r=s.convertCatToNumeric(r)),r}extendYAxis(e,t){const r=new fl;(typeof e.yaxis>"u"||!e.yaxis||Array.isArray(e.yaxis)&&e.yaxis.length===0)&&(e.yaxis={});const a=qe.getApex();e.yaxis.constructor!==Array&&a.yaxis&&a.yaxis.constructor!==Array&&(e.yaxis=ee.extend(e.yaxis,a.yaxis)),e.yaxis.constructor!==Array?e.yaxis=[ee.extend(r.yAxis,e.yaxis)]:e.yaxis=ee.extendArray(e.yaxis,r.yAxis);let i=!1;e.yaxis.forEach(o=>{o.logarithmic&&(i=!0)});let s=e.series;return t&&!s&&(s=t.config.series),i&&s.length!==e.yaxis.length&&s.length&&(e.yaxis=s.map((o,l)=>{if(o.name||(s[l].name=`series-${l+1}`),e.yaxis[l])return e.yaxis[l].seriesName=s[l].name,e.yaxis[l];{const u=ee.extend(r.yAxis,e.yaxis[0]);return u.show=!1,u}})),i&&s.length>1&&s.length!==e.yaxis.length&&console.warn("A multi-series logarithmic chart should have equal number of series and y-axes"),e}extendAnnotations(e){return typeof e.annotations>"u"&&(e.annotations={},e.annotations.yaxis=[],e.annotations.xaxis=[],e.annotations.points=[]),e=this.extendYAxisAnnotations(e),e=this.extendXAxisAnnotations(e),e=this.extendPointAnnotations(e),e}extendYAxisAnnotations(e){const t=new fl;return e.annotations.yaxis=ee.extendArray(typeof e.annotations.yaxis<"u"?e.annotations.yaxis:[],t.yAxisAnnotation),e}extendXAxisAnnotations(e){const t=new fl;return e.annotations.xaxis=ee.extendArray(typeof e.annotations.xaxis<"u"?e.annotations.xaxis:[],t.xAxisAnnotation),e}extendPointAnnotations(e){const t=new fl;return e.annotations.points=ee.extendArray(typeof e.annotations.points<"u"?e.annotations.points:[],t.pointAnnotation),e}checkForDarkTheme(e){e.theme&&e.theme.mode==="dark"&&(e.tooltip||(e.tooltip={}),e.tooltip.theme!=="light"&&(e.tooltip.theme="dark"),e.chart.foreColor||(e.chart.foreColor="#f6f7f8"),e.theme.palette||(e.theme.palette="palette4"))}handleUserInputErrors(e){const t=e;if(t.tooltip.shared&&t.tooltip.intersect)throw new Error("tooltip.shared cannot be enabled when tooltip.intersect is true. Turn off any other option by setting it to false.");if(t.chart.type==="bar"&&t.plotOptions.bar.horizontal){if(t.yaxis.length>1)throw new Error("Multiple Y Axis for bars are not supported. Switch to column chart by setting plotOptions.bar.horizontal=false");t.yaxis[0].reversed&&(t.yaxis[0].opposite=!0),t.xaxis.tooltip.enabled=!1,t.yaxis[0].tooltip.enabled=!1,t.chart.zoom.enabled=!1}return(t.chart.type==="bar"||t.chart.type==="rangeBar")&&t.tooltip.shared&&t.xaxis.crosshairs.width==="barWidth"&&t.series.length>1&&(t.xaxis.crosshairs.width="tickWidth"),(t.chart.type==="candlestick"||t.chart.type==="boxPlot")&&t.yaxis[0].reversed&&(console.warn(`Reversed y-axis in ${t.chart.type} chart is not supported.`),t.yaxis[0].reversed=!1),t}}const hj=1.618,gj=[[1,1,2,5,5,5,10,10,10,10,10],[1,1,2,5,5,5,10,10,10,10,10]],aE=[1,2,4,4,6,6,6,6,6,6,6,6,6,6,6,6,6,6,12,12,12,12,12,12,12,12,12,24];class pj{initGlobalVars(e){e.series=[],e.seriesCandleO=[],e.seriesCandleH=[],e.seriesCandleM=[],e.seriesCandleL=[],e.seriesCandleC=[],e.seriesRangeStart=[],e.seriesRangeEnd=[],e.seriesRange=[],e.seriesPercent=[],e.seriesGoals=[],e.seriesX=[],e.seriesZ=[],e.seriesNames=[],e.seriesTotals=[],e.seriesLog=[],e.seriesColors=[],e.stackedSeriesTotals=[],e.seriesXvalues=[],e.seriesYvalues=[],e.dataWasParsed=!1,e.originalSeries=null,e.maxValsInArrayIndex=0,e.yValueDecimal=0,e.allSeriesHasEqualX=!0,e.labels=[],e.hasXaxisGroups=!1,e.groups=[],e.barGroups=[],e.lineGroups=[],e.areaGroups=[],e.hasSeriesGroups=!1,e.seriesGroups=[],e.categoryLabels=[],e.timescaleLabels=[],e.noLabelsProvided=!1,e.isXNumeric=!1,e.skipLastTimelinelabel=!1,e.skipFirstTimelinelabel=!1,e.isDataXYZ=!1,e.isMultiLineX=!1,e.isMultipleYAxis=!1,e.maxY=-Number.MAX_VALUE,e.minY=Number.MIN_VALUE,e.minYArr=[],e.maxYArr=[],e.maxX=-Number.MAX_VALUE,e.minX=Number.MAX_VALUE,e.initialMaxX=-Number.MAX_VALUE,e.initialMinX=Number.MAX_VALUE,e.maxDate=0,e.minDate=Number.MAX_VALUE,e.minZ=Number.MAX_VALUE,e.maxZ=-Number.MAX_VALUE,e.minXDiff=Number.MAX_VALUE,e.yAxisScale=[],e.xAxisScale=null,e.xAxisTicksPositions=[],e.xRange=0,e.yRange=[],e.zRange=0,e.dataPoints=0,e.xTickAmount=0,e.multiAxisTickAmount=0,e.disableZoomIn=!1,e.disableZoomOut=!1,e.yLabelsCoords=[],e.yTitleCoords=[],e.barPadForNumericAxis=0,e.padHorizontal=0,e.rotateXLabels=!1,e.overlappingXLabels=!1,e.radialSize=0,e.barHeight=0,e.barWidth=0,e.animationEnded=!1,e.isDestroyed=!1,e.bulkRevealScheduled=!1,e.resizeTimer=null,e.selectionResizeTimer=null,e.lastWheelExecution=0,e.delayedElements=[],e.pointsArray=[],e.dataLabelsRects=[],e.lastDrawnDataLabelsIndexes=[],e.textRectsCache=new Map,e.domCache=new Map,e.dimensionCache={},e.cachedSelectors={},e.seriesNS||this._attachNamespaces(e)}_attachNamespaces(e){const t=(o,l,u=l)=>{Object.defineProperty(o,u,{get(){return e[l]},set(d){e[l]=d},enumerable:!0,configurable:!0})},r={};t(r,"series","data");for(const o of["seriesNames","seriesX","seriesZ","seriesXvalues","seriesYvalues","seriesGoals","seriesLog","seriesColors","seriesPercent","seriesTotals","stackedSeriesTotals","seriesCandleO","seriesCandleH","seriesCandleM","seriesCandleL","seriesCandleC","seriesRangeStart","seriesRangeEnd","seriesRange","seriesYAxisMap","seriesYAxisReverseMap","seriesGroups","barGroups","lineGroups","areaGroups","originalSeries","collapsedSeries","collapsedSeriesIndices","ancillaryCollapsedSeries","ancillaryCollapsedSeriesIndices","allSeriesCollapsed","risingSeries","previousPaths","ignoreYAxisIndexes","labels","categoryLabels","timescaleLabels","groups"])t(r,o);Object.defineProperty(e,"seriesNS",{value:r,writable:!1,enumerable:!1,configurable:!0});const a={};for(const o of["minX","maxX","initialMinX","initialMaxX","minY","maxY","minYArr","maxYArr","minZ","maxZ","minDate","maxDate","minXDiff","xRange","yRange","zRange","xAxisScale","yAxisScale","xAxisTicksPositions","xTickAmount","multiAxisTickAmount","dataPoints","maxValsInArrayIndex","isXNumeric","isMultipleYAxis","isMultiLineX","isDataXYZ","dataFormatXNumeric","allSeriesHasEqualX","hasNullValues","dataWasParsed","hasXaxisGroups","hasSeriesGroups","skipFirstTimelinelabel","skipLastTimelinelabel","yValueDecimal","invalidLogScale","noLabelsProvided"])t(a,o);Object.defineProperty(e,"axes",{value:a,writable:!1,enumerable:!1,configurable:!0});const i={};for(const o of["svgWidth","svgHeight","gridWidth","gridHeight","translateX","translateY","translateXAxisX","translateXAxisY","translateYAxisX","xAxisLabelsHeight","xAxisGroupLabelsHeight","xAxisLabelsWidth","yAxisLabelsWidth","yAxisWidths","yLabelsCoords","yTitleCoords","padHorizontal","barPadForNumericAxis","rotateXLabels","scaleX","scaleY","radialSize","defaultLabels","overlappingXLabels"])t(i,o);Object.defineProperty(e,"layout",{value:i,writable:!1,enumerable:!1,configurable:!0});const s={};for(const o of["domCache","dimensionCache","cachedSelectors","textRectsCache","pointsArray","dataLabelsRects","lastDrawnDataLabelsIndexes","delayedElements","resizeTimer","selectionResizeTimer","resizeObserver"])t(s,o);Object.defineProperty(e,"cache",{value:s,writable:!1,enumerable:!1,configurable:!0})}globalVars(e){return{chartID:null,cuid:null,events:{beforeMount:[],mounted:[],updated:[],clicked:[],selection:[],dataPointSelection:[],zoomed:[],scrolled:[]},colors:[],fill:{colors:[]},stroke:{colors:[]},dataLabels:{style:{colors:[]}},radarPolygons:{fill:{colors:[]}},markers:{colors:[],size:e.markers.size,largestSize:0},LINE_HEIGHT_RATIO:hj,axisCharts:!0,isSlopeChart:e.plotOptions.line.isSlopeChart,comboCharts:!1,initialConfig:null,initialSeries:[],lastXAxis:[],lastYAxis:[],allSeriesCollapsed:!1,collapsedSeries:[],collapsedSeriesIndices:[],ancillaryCollapsedSeries:[],ancillaryCollapsedSeriesIndices:[],risingSeries:[],ignoreYAxisIndexes:[],isDirty:!1,isExecCalled:!1,dataChanged:!1,resized:!1,invalidLogScale:!1,hasNullValues:!1,columnSeries:null,yaxis:null,total:0,shouldAnimate:!0,previousPaths:[],svgWidth:0,svgHeight:0,defaultLabels:!1,yAxisLabelsWidth:0,scaleX:1,scaleY:1,translateYAxisX:[],yAxisWidths:[],tooltip:null,resizeObserver:null,locale:{},memory:{methodsToExec:[]},niceScaleAllowedMagMsd:gj,niceScaleDefaultTicks:aE,seriesYAxisMap:[],seriesYAxisReverseMap:[],noData:!1}}init(e){const t=this.globalVars(e);return this.initGlobalVars(t),t.initialConfig=ee.extend({},e),t.initialSeries=ee.clone(e.series),t.lastXAxis=ee.clone(t.initialConfig.xaxis),t.lastYAxis=ee.clone(t.initialConfig.yaxis),t}}class Iae{constructor(e){this.opts=e}init(){const e=new vh(this.opts).init({responsiveOverride:!1}),t=new pj().init(e),r={config:e,globals:t,dom:{},interact:{zoomEnabled:e.chart.toolbar.autoSelected==="zoom"&&e.chart.toolbar.tools.zoom&&e.chart.zoom.enabled,panEnabled:e.chart.toolbar.autoSelected==="pan"&&e.chart.toolbar.tools.pan,selectionEnabled:e.chart.toolbar.autoSelected==="selection"&&e.chart.toolbar.tools.selection,zoomed:!1,selection:void 0,visibleXRange:void 0,selectedDataPoints:[],mousedown:!1,clientX:null,clientY:null,lastClientPosition:{},lastWheelExecution:0,capturedSeriesIndex:-1,capturedDataPointIndex:-1,disableZoomIn:!1,disableZoomOut:!1,isTouchDevice:qe.isBrowser()?"ontouchstart"in window||navigator.maxTouchPoints>0:!1},formatters:{xLabelFormatter:void 0,yLabelFormatters:[],xaxisTooltipFormatter:void 0,ttKeyFormatter:void 0,ttVal:void 0,ttZFormatter:void 0,legendFormatter:void 0},candleData:{seriesCandleO:[],seriesCandleH:[],seriesCandleM:[],seriesCandleL:[],seriesCandleC:[],seriesBoxPoints:[]},rangeData:{seriesRangeStart:[],seriesRangeEnd:[],seriesRange:[]},violinData:{seriesViolinDensity:[],seriesViolinPoints:[],seriesViolinMin:[],seriesViolinMax:[]},labelData:{labels:[],categoryLabels:[],timescaleLabels:[],hasXaxisGroups:!1,groups:[],seriesGroups:[]},axisFlags:{isXNumeric:!1,dataFormatXNumeric:!1,isDataXYZ:!1,isRangeData:!1,isRangeBar:!1,isMultiLineX:!1,noLabelsProvided:!1,dataWasParsed:!1},seriesData:{series:[],seriesNames:[],seriesX:[],seriesZ:[],seriesColors:[],seriesGoals:[],stackedSeriesTotals:[],stackedSeriesTotalsByGroups:[]},layout:{gridHeight:0,gridWidth:0,translateX:0,translateY:0,translateXAxisX:0,translateXAxisY:0,rotateXLabels:!1,xAxisHeight:0,xAxisLabelsHeight:0,xAxisGroupLabelsHeight:0,xAxisLabelsWidth:0,yLabelsCoords:[],yTitleCoords:[]}};Object.defineProperty(t,"dom",{get(){return r.dom},set(a){r.dom=a},enumerable:!1,configurable:!0});for(const a of["xLabelFormatter","yLabelFormatters","xaxisTooltipFormatter","ttKeyFormatter","ttVal","ttZFormatter","legendFormatter"])Object.defineProperty(t,a,{get(){return r.formatters[a]},set(i){r.formatters[a]=i},enumerable:!1,configurable:!0});for(const a of["zoomEnabled","panEnabled","selectionEnabled","zoomed","selection","visibleXRange","selectedDataPoints","mousedown","clientX","clientY","lastClientPosition","lastWheelExecution","capturedSeriesIndex","capturedDataPointIndex","disableZoomIn","disableZoomOut","isTouchDevice"])Object.defineProperty(t,a,{get(){return r.interact[a]},set(i){r.interact[a]=i},enumerable:!1,configurable:!0});for(const a of["gridHeight","gridWidth","translateX","translateY","translateXAxisX","translateXAxisY","rotateXLabels","xAxisHeight","xAxisLabelsHeight","xAxisGroupLabelsHeight","xAxisLabelsWidth","yLabelsCoords","yTitleCoords"])Object.defineProperty(t,a,{get(){return r.layout[a]},set(i){r.layout[a]=i},enumerable:!1,configurable:!0});for(const a of["series","seriesNames","seriesX","seriesZ","seriesColors","seriesGoals","stackedSeriesTotals","stackedSeriesTotalsByGroups"])Object.defineProperty(t,a,{get(){return r.seriesData[a]},set(i){r.seriesData[a]=i},enumerable:!1,configurable:!0});for(const a of["isXNumeric","dataFormatXNumeric","isDataXYZ","isRangeData","isRangeBar","isMultiLineX","noLabelsProvided","dataWasParsed"])Object.defineProperty(t,a,{get(){return r.axisFlags[a]},set(i){r.axisFlags[a]=i},enumerable:!1,configurable:!0});for(const a of["labels","categoryLabels","timescaleLabels","hasXaxisGroups","groups","seriesGroups"])Object.defineProperty(t,a,{get(){return r.labelData[a]},set(i){r.labelData[a]=i},enumerable:!1,configurable:!0});for(const a of["seriesRangeStart","seriesRangeEnd","seriesRange"])Object.defineProperty(t,a,{get(){return r.rangeData[a]},set(i){r.rangeData[a]=i},enumerable:!1,configurable:!0});for(const a of["seriesCandleO","seriesCandleH","seriesCandleM","seriesCandleL","seriesCandleC"])Object.defineProperty(t,a,{get(){return r.candleData[a]},set(i){r.candleData[a]=i},enumerable:!1,configurable:!0});for(const a of["seriesViolinDensity","seriesViolinPoints","seriesViolinMin","seriesViolinMax"])Object.defineProperty(t,a,{get(){return r.violinData[a]},set(i){r.violinData[a]=i},enumerable:!1,configurable:!0});return r}}class Zn{constructor(e){this.w=e}static checkComboSeries(e,t){let r=!1,a=0,i=0;return t===void 0&&(t="line"),e.length&&typeof e[0].type<"u"&&e.forEach(s=>{(s.type==="bar"||s.type==="column"||s.type==="candlestick"||s.type==="boxPlot"||s.type==="violin")&&a++,typeof s.type<"u"&&s.type!==t&&i++}),i>0&&(r=!0),{comboBarCount:a,comboCharts:r}}getStackedSeriesTotals(e=[]){const t=this.w,r=[];if(t.seriesData.series.length===0)return r;for(let a=0;a<t.seriesData.series[t.globals.maxValsInArrayIndex].length;a++){let i=0;for(let s=0;s<t.seriesData.series.length;s++)typeof t.seriesData.series[s][a]<"u"&&e.indexOf(s)===-1&&(i+=t.seriesData.series[s][a]);r.push(i)}return r}getSeriesTotalByIndex(e=null){if(e===null)return this.w.config.series.reduce((t,r)=>t+r,0);{const t=this.w.seriesData.series[e];return Array.isArray(t)?t.reduce((r,a)=>r+a,0):t??0}}getStackedSeriesTotalsByGroups(){const e=this.w,t=[];return e.labelData.seriesGroups.forEach(r=>{const a=[];e.config.series.forEach((s,o)=>{r.indexOf(e.seriesData.seriesNames[o])>-1&&a.push(o)});const i=e.seriesData.series.map((s,o)=>a.indexOf(o)===-1?o:-1).filter(s=>s!==-1);t.push(this.getStackedSeriesTotals(i))}),t}setSeriesYAxisMappings(){const e=this.w.globals,t=this.w.config;let r=[];const a=[],i=[],s=this.w.seriesData.series.length>t.yaxis.length||t.yaxis.some(u=>Array.isArray(u.seriesName));t.series.forEach((u,d)=>{i.push(d),a.push(null)}),t.yaxis.forEach((u,d)=>{r[d]=[]});const o=[];t.yaxis.forEach((u,d)=>{let f=!1;if(u.seriesName){let g=[];Array.isArray(u.seriesName)?g=u.seriesName:g.push(u.seriesName),g.forEach(p=>{t.series.forEach((b,y)=>{if(b.name===p){let x=y;d===y||s?!s||i.indexOf(y)>-1?r[d].push([d,y]):console.warn("Series '"+b.name+"' referenced more than once in what looks like the new style. That is, when using either seriesName: [], or when there are more series than yaxes."):(r[y].push([y,d]),x=d),f=!0,x=i.indexOf(x),x!==-1&&i.splice(x,1)}})})}f||o.push(d)}),r=r.map(u=>{const d=[];return u.forEach(f=>{a[f[1]]=f[0],d.push(f[1])}),d});let l=t.yaxis.length-1;for(let u=0;u<o.length&&(l=o[u],r[l]=[],i);u++){const d=i[0];i.shift(),r[l].push(d),a[d]=l}i.forEach(u=>{r[l].push(u),a[u]=l}),e.seriesYAxisMap=r.map(u=>u),e.seriesYAxisReverseMap=a.map(u=>u),e.seriesYAxisMap.forEach((u,d)=>{u.forEach(f=>{if(t.series[f]&&t.series[f].group===void 0){const g=t.series[f];g.group="apexcharts-axis-".concat(d.toString())}})})}isSeriesNull(e=null){let t=[];const r=this.w.config.series;return e===null?t=r.filter(a=>a!==null):r[e]&&Array.isArray(r[e].data)?t=r[e].data.filter(a=>a!==null):t=r[e]!==null&&r[e]!==void 0?[r[e]]:[],t.length===0}seriesHaveSameValues(e){const t=this.w.seriesData.series[e];return Array.isArray(t)?t.every((r,a,i)=>r===i[0]):!0}getCategoryLabels(e){const t=this.w;let r=e.slice();return t.config.xaxis.convertedCatToNumeric&&(r=e.map(a=>t.config.xaxis.labels.formatter(a-t.globals.minX+1))),r}getLargestSeries(){const e=this.w;e.globals.maxValsInArrayIndex=e.seriesData.series.map(t=>t.length).indexOf(Math.max.apply(Math,e.seriesData.series.map(t=>t.length)))}getLargestMarkerSize(){const e=this.w;let t=0;return e.globals.markers.size.forEach(r=>{t=Math.max(t,r)}),e.config.markers.discrete&&e.config.markers.discrete.length&&e.config.markers.discrete.forEach(r=>{t=Math.max(t,r.size)}),t>0&&(e.config.markers.hover.size>0?t=e.config.markers.hover.size:t+=e.config.markers.hover.sizeOffset),e.globals.markers.largestSize=t,t}getSeriesTotals(){const e=this.w;e.globals.seriesTotals=e.seriesData.series.map(t=>{let r=0;if(Array.isArray(t))for(let a=0;a<t.length;a++)r+=t[a];else r+=t;return r})}getSeriesTotalsXRange(e,t){const r=this.w;return r.seriesData.series.map((i,s)=>{let o=0;for(let l=0;l<i.length;l++)r.seriesData.seriesX[s][l]>e&&r.seriesData.seriesX[s][l]<t&&(o+=i[l]);return o})}getPercentSeries(){const e=this.w;e.globals.seriesPercent=e.seriesData.series.map(t=>{const r=[];if(Array.isArray(t))for(let a=0;a<t.length;a++){const i=e.seriesData.stackedSeriesTotals[a];let s=0;i&&(s=100*t[a]/i),r.push(s)}else{const a=e.globals.seriesTotals.reduce((s,o)=>s+o,0),i=100*t/a;r.push(i)}return r})}getCalculatedRatios(){const e=this.w,t=e.globals,r=[];let a=0,i=0,s=0,o=0,l=[],u=.1,d=0;if(t.yRange=[],t.isMultipleYAxis)for(let f=0;f<t.minYArr.length;f++)t.yRange.push(Math.abs(t.minYArr[f]-t.maxYArr[f])),l.push(0);else t.yRange.push(Math.abs(t.minY-t.maxY));t.xRange=Math.abs(t.maxX-t.minX),t.zRange=Math.abs(t.maxZ-t.minZ);for(let f=0;f<t.yRange.length;f++)r.push(t.yRange[f]/this.w.layout.gridHeight);if(i=t.xRange/this.w.layout.gridWidth,a=t.yRange/this.w.layout.gridWidth,s=t.xRange/this.w.layout.gridHeight,o=t.zRange/this.w.layout.gridHeight*16,o||(o=1),t.minY!==Number.MIN_VALUE&&Math.abs(t.minY)!==0){const f=t;f.hasNegs=!0}if(e.globals.seriesYAxisReverseMap.length>0){const f=(g,p)=>{const b=e.config.yaxis[e.globals.seriesYAxisReverseMap[p]],y=g<0?-1:1;return g=Math.abs(g),b.logarithmic&&(g=this.getBaseLog(b.logBase,g)),-y*g/r[p]};if(t.isMultipleYAxis){l=[];for(let g=0;g<r.length;g++)l.push(f(t.minYArr[g],g))}else l=[],l.push(f(t.minY,0)),t.minY!==Number.MIN_VALUE&&Math.abs(t.minY)!==0&&(u=-t.minY/a,d=t.minX/i)}else l=[],l.push(0),u=0,d=0;return{yRatio:r,invertedYRatio:a,zRatio:o,xRatio:i,invertedXRatio:s,baseLineInvertedY:u,baseLineY:l,baseLineX:d}}getLogSeries(e){const t=this.w;return t.globals.seriesLog=e.map((r,a)=>{const i=t.globals.seriesYAxisReverseMap[a];return t.config.yaxis[i]&&t.config.yaxis[i].logarithmic?r.map(s=>s===null?null:this.getLogVal(t.config.yaxis[i].logBase,s,a)):r}),t.globals.invalidLogScale?e:t.globals.seriesLog}getLogValAtSeriesIndex(e,t){if(e===null)return null;const r=this.w,a=r.globals.seriesYAxisReverseMap[t];return r.config.yaxis[a]&&r.config.yaxis[a].logarithmic?this.getLogVal(r.config.yaxis[a].logBase,e,t):e}getBaseLog(e,t){return Math.log(t)/Math.log(e)}getLogVal(e,t,r){if(t<=0)return 0;const a=this.w,i=a.globals.minYArr[r]===0?-1:this.getBaseLog(e,a.globals.minYArr[r]),o=(a.globals.maxYArr[r]===0?0:this.getBaseLog(e,a.globals.maxYArr[r]))-i;return t<1?t/o:(this.getBaseLog(e,t)-i)/o}getLogYRatios(e){const t=this.w,r=this.w.globals,a=r;return a.yLogRatio=e.slice(),a.logYRange=r.yRange.map((i,s)=>{const o=t.globals.seriesYAxisReverseMap[s];if(t.config.yaxis[o]&&this.w.config.yaxis[o].logarithmic){let l=-Number.MAX_VALUE,u=Number.MIN_VALUE,d=1;return r.seriesLog.forEach((f,g)=>{f.forEach(p=>{t.config.yaxis[g]&&t.config.yaxis[g].logarithmic&&(l=Math.max(p,l),u=Math.min(p,u))})}),d=Math.pow(r.yRange[s],Math.abs(u-l)/r.yRange[s]),a.yLogRatio[s]=d/this.w.layout.gridHeight,d}}),a.invalidLogScale?e.slice():a.yLogRatio}static extendArrayProps(e,t,r){var a,i;return t?.yaxis&&(t=e.extendYAxis(t,r)),t?.annotations&&(t.annotations.yaxis&&(t=e.extendYAxisAnnotations(t)),(a=t?.annotations)!=null&&a.xaxis&&(t=e.extendXAxisAnnotations(t)),(i=t?.annotations)!=null&&i.points&&(t=e.extendPointAnnotations(t))),t}drawSeriesByGroup(e,t,r,a){const i=this.w,s=[];return e.series.length>0&&t.forEach(o=>{const l=[],u=[];e.i.forEach((d,f)=>{i.config.series[d].group===o&&(l.push(e.series[f]),u.push(d))}),l.length>0&&s.push(a.draw(l,r,u))}),s}}const Xy="http://www.w3.org/2000/svg";function T2(n){return 1-Math.pow(1-n,3)}function $ae(n){return 1+2.70158*Math.pow(n-1,3)+1.70158*Math.pow(n-1,2)}let Vy=null;function mj(){if(!qe.isBrowser())return!1;try{return Vy||(Vy=window.matchMedia("(prefers-reduced-motion: reduce)")),!!Vy.matches}catch{return!1}}function Es(n,e,t){if(!qe.isBrowser()||t.globals.dataChanged||t.globals.resized)return!1;const r=t.config.chart.animations;if(!r||r.enabled===!1)return!1;const a=t.config.chart.type;if(a!=="line"&&a!=="area"&&a!=="rangeArea"||!(t.layout.gridWidth>0))return!1;const i=(r.speed||800)*2,s=Math.max(0,Math.min(1,e/t.layout.gridWidth)),l=(1-Math.cbrt(1-s))*i,d=n.node.style;d.opacity="0";let f=null;const g=p=>{f===null&&(f=p),p-f>=l?d.opacity="":ke.requestAnimationFrame(g)};return ke.requestAnimationFrame(g),!0}function Fae(n){const e=n.config.chart.animations;e&&e.respectReducedMotion!==!1&&mj()&&(e.enabled=!1,e.dynamicAnimation&&(e.dynamicAnimation.enabled=!1))}function IM(n){const e=n.style,t=n.index||0,r=typeof n.baseDelay=="number"?n.baseDelay:40,a=n.row||0,i=n.col||0,s=n.groupIndex||0,o=n.perGroup||1,l=n.centerDistance||0;switch(e){case"none":return 0;case"diagonal":return(a+i)*r;case"group":return s*r+t%o*(r/4);case"centroid":return l*r*(t+1);case"sequential":default:return t*r}}class Mu{constructor(e,t){this.w=e,this.ctx=t}animateLine(e,t,r,a){e.attr(t).animate(a).attr(r)}animateMarker(e,t,r,a){e.attr({opacity:0}).animate(t).attr({opacity:1}).after(()=>{a()})}animatePop(e,{speed:t,delay:r=0,onComplete:a}){const i=this.w;if(!qe.isBrowser()||!i.globals.shouldAnimate||t<1){a&&a();return}const o=e.node.style;o.transformBox="fill-box",o.transformOrigin="center",o.transform="scale(0)",o.opacity="0";const l=performance.now()+r,u=d=>{const f=Math.max(0,Math.min(1,(d-l)/t));o.transform=`scale(${$ae(f)})`,o.opacity=String(Math.min(1,f*2)),f<1?ke.requestAnimationFrame(u):(o.transform="",o.transformOrigin="",o.transformBox="",o.opacity="",a&&a())};ke.requestAnimationFrame(u)}animateRect(e,t,r,a,i,s=0){e.attr(t).animate(a,s).attr(r).after(()=>i())}animatePathsGradually(e){const{el:t,realIndex:r,j:a,fill:i,pathFrom:s,pathTo:o,speed:l,delay:u}=e,d=this,f=this.w;let g=0;f.config.chart.animations.animateGradually.enabled&&(g=f.config.chart.animations.animateGradually.delay),f.config.chart.animations.dynamicAnimation.enabled&&f.globals.dataChanged&&f.config.chart.type!=="bar"&&(g=0),d.morphSVG(t,r,a,f.config.chart.type==="line"&&!f.globals.comboCharts?"stroke":i,s,o,l,u*g)}revealBulk(e){const t=this.w;if(e.node.classList.add("apexcharts-element-hidden"),t.globals.delayedElements.push({el:e.node}),!qe.isBrowser()||!t.globals.shouldAnimate){this.animationCompleted(e);return}t.globals.bulkRevealScheduled||(t.globals.bulkRevealScheduled=!0,ke.requestAnimationFrame(()=>{t.globals.isDestroyed||(t.globals.bulkRevealScheduled=!1,this.animationCompleted(e))}))}showDelayedElements(){this.w.globals.delayedElements.forEach(e=>{const t=e.el;t.classList.remove("apexcharts-element-hidden"),t.classList.add("apexcharts-hidden-element-shown")})}animationCompleted(e){const t=this.w;t.globals.animationEnded||(t.globals.animationEnded=!0,this.showDelayedElements(),typeof t.config.chart.events.animationEnd=="function"&&t.config.chart.events.animationEnd(this.ctx,{el:e,w:t}))}animateDraw(e,{realIndex:t,j:r,isFill:a,isLast:i,speed:s,delay:o,mask:l}){const u=this.w,d=this,f=()=>{i&&u.globals.shouldAnimate&&d.animationCompleted(e),d.showDelayedElements()};if(!qe.isBrowser()||!u.globals.shouldAnimate||s<1){f();return}const g=e.node,p=()=>{const x=l&&l.type==="radial",S=u.layout.gridWidth+8,C=l&&l.cx||0,O=l&&l.cy||0,D=(l&&l.r||u.layout.gridWidth/2)+4,M=`apexDrawMask${u.globals.cuid}-${t}-${r??0}-${a?"f":"s"}`,A=ke.createElementNS(Xy,"mask");A.setAttribute("id",M),A.setAttribute("maskUnits","userSpaceOnUse");let T;if(x){const N=D;A.setAttribute("x",String(C-N)),A.setAttribute("y",String(O-N)),A.setAttribute("width",String(N*2)),A.setAttribute("height",String(N*2)),T=ke.createElementNS(Xy,"circle"),T.setAttribute("cx",String(C)),T.setAttribute("cy",String(O)),T.setAttribute("r","0"),T.setAttribute("fill","#fff")}else A.setAttribute("x",String(-4)),A.setAttribute("y",String(-4)),A.setAttribute("width",String(S)),A.setAttribute("height",String(u.layout.gridHeight+8)),T=ke.createElementNS(Xy,"rect"),T.setAttribute("x",String(-4)),T.setAttribute("y",String(-4)),T.setAttribute("width","0"),T.setAttribute("height",String(u.layout.gridHeight+8)),T.setAttribute("fill","#fff");A.appendChild(T),u.dom.elDefs.node.appendChild(A),g.setAttribute("mask",`url(#${M})`);const P=performance.now()+(o||0),R=N=>{if(u.globals.isDestroyed)return;const I=Math.max(0,Math.min(1,(N-P)/s)),$=T2(I);x?T.setAttribute("r",String($*D)):T.setAttribute("width",String($*S)),I<1?ke.requestAnimationFrame(R):(g.removeAttribute("mask"),A.parentNode&&A.parentNode.removeChild(A),f())};ke.requestAnimationFrame(R)},b=y=>{g.setAttribute("stroke-dasharray",String(y)),g.setAttribute("stroke-dashoffset",String(y));const x=performance.now()+(o||0),S=C=>{if(u.globals.isDestroyed)return;const O=Math.max(0,Math.min(1,(C-x)/s));g.setAttribute("stroke-dashoffset",String(y*(1-T2(O)))),O<1?ke.requestAnimationFrame(S):(g.removeAttribute("stroke-dasharray"),g.removeAttribute("stroke-dashoffset"),f())};ke.requestAnimationFrame(S)};ke.requestAnimationFrame(()=>{if(u.globals.isDestroyed)return;if(a){p();return}const y=g.getAttribute("stroke-dasharray");if(!!y&&y!=="0"&&y!==""){p();return}let S=0;try{typeof g.getTotalLength=="function"&&(S=g.getTotalLength())}catch{S=0}if(!S){f();return}b(S)})}morphSVG(e,t,r,a,i,s,o,l){var u,d;const f=this.w;i||(i=e.attr("pathFrom")),s||(s=e.attr("pathTo"));const g=()=>(f.config.chart.type==="radar"&&(o=1),`M 0 ${f.layout.gridHeight}`);(!i||i.indexOf("undefined")>-1||i.indexOf("NaN")>-1)&&(i=g()),(!s.trim()||s.indexOf("undefined")>-1||s.indexOf("NaN")>-1)&&(s=g()),f.globals.shouldAnimate||(o=1);const b=((d=(u=this.ctx)==null?void 0:u.morphTypeChange)==null?void 0:d.isActive())===!0?"polygons":"commands";e.plot(i).animate(1,l).plot(i).animate(o,l).plot(s,b).after(()=>{ee.isNumber(r)?r===f.seriesData.series[f.globals.maxValsInArrayIndex].length-2&&f.globals.shouldAnimate&&this.animationCompleted(e):a!=="none"&&f.globals.shouldAnimate&&(!f.globals.comboCharts&&t===f.seriesData.series.length-1||f.globals.comboCharts)&&this.animationCompleted(e),this.showDelayedElements()})}}class jr{constructor(e){this.w=e}getDefaultFilter(e,t){const r=this.w;e.unfilter&&e.unfilter(!0),r.config.chart.dropShadow.enabled&&this.dropShadow(e,r.config.chart.dropShadow,t)}applyFilter(e,t,r){var a,i,s;const o=this.w;if(e.unfilter&&e.unfilter(!0),r==="none"){this.getDefaultFilter(e,t);return}const l=o.config.chart.dropShadow,u=r==="lighten"?2:.3;e.filterWith&&(e.filterWith(d=>{d.colorMatrix({type:"matrix",values:`
            ${u} 0 0 0 0
            0 ${u} 0 0 0
            0 0 ${u} 0 0
            0 0 0 1 0
          `,in:"SourceGraphic",result:"brightness"}),l.enabled&&this.addShadow(d,t,l,"brightness")}),l.noUserSpaceOnUse||(i=(a=e.filterer())==null?void 0:a.node)==null||i.setAttribute("filterUnits","userSpaceOnUse"),this._scaleFilterSize((s=e.filterer())==null?void 0:s.node))}addShadow(e,t,r,a){var i;const s=this.w;let{blur:o,top:l,left:u,color:d,opacity:f}=r;if(d=Array.isArray(d)?d[t]:d,((i=s.config.chart.dropShadow.enabledOnSeries)==null?void 0:i.length)>0&&s.config.chart.dropShadow.enabledOnSeries.indexOf(t)===-1)return e;e.offset({in:a,dx:u,dy:l,result:"offset"}),e.gaussianBlur({in:"offset",stdDeviation:o,result:"blur"}),e.flood({"flood-color":d,"flood-opacity":f,result:"flood"}),e.composite({in:"flood",in2:"blur",operator:"in",result:"shadow"}),e.merge(["shadow",a])}dropShadow(e,t,r=0){var a,i,s,o,l;const u=this.w;return e.unfilter&&e.unfilter(!0),ee.isMsEdge()&&u.config.chart.type==="radialBar"||((a=u.config.chart.dropShadow.enabledOnSeries)==null?void 0:a.length)>0&&((i=u.config.chart.dropShadow.enabledOnSeries)==null?void 0:i.indexOf(r))===-1||e.filterWith&&(e.filterWith(d=>{this.addShadow(d,r,t,"SourceGraphic")}),t.noUserSpaceOnUse||(o=(s=e.filterer())==null?void 0:s.node)==null||o.setAttribute("filterUnits","userSpaceOnUse"),this._scaleFilterSize((l=e.filterer())==null?void 0:l.node)),e}setSelectionFilter(e,t,r){const a=this.w;if(typeof a.interact.selectedDataPoints[t]<"u"&&a.interact.selectedDataPoints[t].indexOf(r)>-1){e.node.setAttribute("selected",!0);const i=a.config.states.active.filter;i!=="none"&&this.applyFilter(e,t,i.type)}}_scaleFilterSize(e){if(!e)return;(r=>{for(const a in r)Object.prototype.hasOwnProperty.call(r,a)&&e.setAttribute(a,r[a])})({width:"200%",height:"200%",x:"-50%",y:"-50%"})}}class ve{constructor(e,t=null){this.w=e,this.ctx=t}roundPathCorners(e,t){e.indexOf("NaN")>-1&&(e="");function r(R,N,I){var $=N.x-R.x,Y=N.y-R.y,k=Math.sqrt($*$+Y*Y);return a(R,N,Math.min(1,I/k))}function a(R,N,I){return{x:R.x+(N.x-R.x)*I,y:R.y+(N.y-R.y)*I}}function i(R,N){R.length>2&&(R[R.length-2]=N.x,R[R.length-1]=N.y)}function s(R){return{x:parseFloat(R[R.length-2]),y:parseFloat(R[R.length-1])}}var o=e.split(/[,\s]/).reduce(function(R,N){var I=N.match(/^([a-zA-Z])(.+)/);return I?(R.push(I[1]),R.push(I[2])):R.push(N),R},[]),l=o.reduce(function(R,N){return parseFloat(N)==N&&R.length?R[R.length-1].push(N):R.push([N]),R},[]),u=[];if(l.length>1){var d=s(l[0]),f=null;l[l.length-1][0]=="Z"&&l[0].length>2&&(f=["L",d.x,d.y],l[l.length-1]=f),u.push(l[0]);for(var g=1;g<l.length;g++){var p=u[u.length-1],b=l[g],y=b==f?l[1]:l[g+1];if(y&&p&&p.length>2&&b[0]=="L"&&y.length>2&&y[0]=="L"){var x=s(p),S=s(b),C=s(y),O,D;O=r(S,x,t),D=r(S,C,t),i(b,O),b.origPoint=S,u.push(b);var M=a(O,S,.5),A=a(S,D,.5),T=["C",M.x,M.y,A.x,A.y,D.x,D.y];T.origPoint=S,u.push(T)}else u.push(b)}if(f){var P=s(u[u.length-1]);u.push(["Z"]),i(u[0],P)}}else u=l;return u.reduce(function(R,N){return R+N.join(" ")+" "},"")}drawLine(e,t,r,a,i="#a8a8a8",s=0,o=null,l="butt"){return this.w.dom.Paper.line().attr({x1:e,y1:t,x2:r,y2:a,stroke:i,"stroke-dasharray":s,"stroke-width":o,"stroke-linecap":l})}drawRect(e=0,t=0,r=0,a=0,i=0,s="#fefefe",o=1,l=null,u=null,d=0){const g=this.w.dom.Paper.rect();return g.attr({x:e,y:t,width:r>0?r:0,height:a>0?a:0,rx:i,ry:i,opacity:o,"stroke-width":l!==null?l:0,stroke:u!==null?u:"none","stroke-dasharray":d}),g.node.setAttribute("fill",s),g}drawPolygon(e,t="#e1e1e1",r=1,a="none"){return this.w.dom.Paper.polygon(e).attr({fill:a,stroke:t,"stroke-width":r})}drawCircle(e,t=null){const r=this.w;e<0&&(e=0);const a=r.dom.Paper.circle(e*2);return t!==null&&a.attr(t),a}drawPath({d:e="",stroke:t="#a8a8a8",strokeWidth:r=1,fill:a,fillOpacity:i=1,strokeOpacity:s=1,classes:o,strokeLinecap:l=null,strokeDashArray:u=0}){const d=this.w;return l===null&&(l=d.config.stroke.lineCap),(e.indexOf("undefined")>-1||e.indexOf("NaN")>-1)&&(e=`M 0 ${d.layout.gridHeight}`),d.dom.Paper.path(e).attr({fill:a,"fill-opacity":i,stroke:t,"stroke-opacity":s,"stroke-linecap":l,"stroke-width":r,"stroke-dasharray":u,class:o})}group(e=null){const r=this.w.dom.Paper.group();return e!==null&&r.attr(e),r}move(e,t){return["M",e,t].join(" ")}line(e,t,r=null){return r==="H"?[" H",e].join(" "):r==="V"?[" V",t].join(" "):[" L",e,t].join(" ")}curve(e,t,r,a,i,s){return["C",e,t,r,a,i,s].join(" ")}quadraticCurve(e,t,r,a){return["Q",e,t,r,a].join(" ")}arc(e,t,r,a,i,s,o,l=!1){let u="A";return l&&(u="a"),[u,e,t,r,a,i,s,o].join(" ")}renderPaths({j:e,realIndex:t,pathFrom:r,pathTo:a,stroke:i,strokeWidth:s,strokeLinecap:o,fill:l,animationDelay:u,initialSpeed:d,dataChangeSpeed:f,className:g,chartType:p,shouldClipToGrid:b=!0,bindEventsOnPaths:y=!0,drawShadow:x=!0,drawMask:S=null}){var C,O;const D=this.w,M=new jr(this.w),A=new Mu(this.w,(C=this.ctx)!=null?C:void 0),T=this.w.config.chart.animations.enabled,P=T&&this.w.config.chart.animations.dynamicAnimation.enabled;if(r&&r.startsWith("M 0 0 ")&&a){const j=a.match(/^M\s+[\d.-]+\s+[\d.-]+/);j&&(r=r.replace(/^M\s+0\s+0/,j[0]))}let R;const N=!!(T&&!D.globals.resized||P&&D.globals.dataChanged&&D.globals.shouldAnimate),I=typeof g=="string"&&(g.indexOf("apexcharts-line")>-1||g.indexOf("apexcharts-area")>-1||g.indexOf("apexcharts-rangeArea")>-1||g.indexOf("apexcharts-radar")>-1),$=!!(T&&!D.globals.resized&&!D.globals.dataChanged&&I),Y=(O=D.config.chart.animations.largeDatasetThreshold)!=null?O:0,k=!!(N&&!$&&Y>0&&D.globals.dataPoints>Y),F=!!((p==="candlestick"||p==="boxPlot")&&N&&!$&&D.globals.dataChanged),B=k||F;N&&!$&&!B?R=r:(R=a,N||(D.globals.animationEnded=!0));const X=D.config.stroke.dashArray;let Q=0;Array.isArray(X)?Q=X[t]:Q=D.config.stroke.dashArray;const z=this.drawPath({d:R,stroke:i,strokeWidth:s,fill:l,fillOpacity:1,classes:g,strokeLinecap:o,strokeDashArray:Q});z.attr("index",t),b&&(p==="bar"&&!D.globals.isBarHorizontal||D.globals.comboCharts?z.attr({"clip-path":`url(#gridRectBarMask${D.globals.cuid})`}):z.attr({"clip-path":`url(#gridRectMask${D.globals.cuid})`})),D.config.chart.dropShadow.enabled&&x&&M.dropShadow(z,D.config.chart.dropShadow,t),y&&(z.node.addEventListener("mouseenter",this.pathMouseEnter.bind(this,z)),z.node.addEventListener("mouseleave",this.pathMouseLeave.bind(this,z)),z.node.addEventListener("mousedown",this.pathMouseDown.bind(this,z))),z.attr({pathTo:a,pathFrom:r});const V={el:z,j:e,realIndex:t,pathFrom:r,pathTo:a,fill:l,strokeWidth:s,delay:u};if(T&&!D.globals.resized&&!D.globals.dataChanged)if($){const j=d*2,q=i==="none"||s===0,G=D.seriesData.series.length,U=D.globals.comboCharts?!0:t===G-1;A.animateDraw(z,{realIndex:t,j:e,isFill:q,isLast:U,speed:j,delay:0,mask:S})}else B||A.animatePathsGradually(Lt(ct({},V),{speed:d}));else(D.globals.resized||!D.globals.dataChanged)&&!B&&A.showDelayedElements();return D.globals.dataChanged&&P&&N&&!B&&A.animatePathsGradually(Lt(ct({},V),{speed:f})),B&&A.revealBulk(z),z}drawPattern(e,t,r,a="#a8a8a8",i=0){return this.w.dom.Paper.pattern(t,r,l=>{e==="horizontalLines"?l.line(0,0,r,0).stroke({color:a,width:i+1}):e==="verticalLines"?l.line(0,0,0,t).stroke({color:a,width:i+1}):e==="slantedLines"?l.line(0,0,t,r).stroke({color:a,width:i}):e==="squares"?l.rect(t,r).fill("none").stroke({color:a,width:i}):e==="circles"&&l.circle(t).fill("none").stroke({color:a,width:i})})}drawGradient(e,t,r,a,i,s=null,o=null,l=[],u=0){const d=this.w;let f;t.length<9&&t.indexOf("#")===0&&(t=ee.hexToRgba(t,a)),r.length<9&&r.indexOf("#")===0&&(r=ee.hexToRgba(r,i));let g=0,p=1,b=1,y=null;o!==null&&(g=typeof o[0]<"u"?o[0]/100:0,p=typeof o[1]<"u"?o[1]/100:1,b=typeof o[2]<"u"?o[2]/100:1,y=typeof o[3]<"u"?o[3]/100:null);const x=d.config.chart.type==="donut"||d.config.chart.type==="pie"||d.config.chart.type==="polarArea"||d.config.chart.type==="bubble";if(!l||l.length===0?f=d.dom.Paper.gradient(x?"radial":"linear",S=>{S.stop(g,t,a),S.stop(p,r,i),S.stop(b,r,i),y!==null&&S.stop(y,t,a)}):f=d.dom.Paper.gradient(x?"radial":"linear",S=>{(Array.isArray(l[u])?l[u]:l).forEach(O=>{S.stop(O.offset/100,O.color,O.opacity)})}),!x)e==="vertical"?f.from(0,0).to(0,1):e==="diagonal"?f.from(0,0).to(1,1):e==="horizontal"?f.from(0,1).to(1,1):e==="diagonal2"&&f.from(1,0).to(0,1);else{const S=d.layout.gridWidth/2,C=d.layout.gridHeight/2;d.config.chart.type!=="bubble"?f.attr({gradientUnits:"userSpaceOnUse",cx:S,cy:C,r:s}):f.attr({cx:.5,cy:.5,r:.8,fx:.2,fy:.2})}return f}getTextBasedOnMaxWidth({text:e,maxWidth:t,fontSize:r,fontFamily:a}){const i=this.getTextRects(e,r,a,""),s=i.width/e.length,o=Math.floor(t/s);return t<i.width?e.slice(0,o-3)+"...":e}drawText({x:e,y:t,text:r,textAnchor:a,fontSize:i,fontFamily:s,fontWeight:o,foreColor:l,opacity:u,maxWidth:d,cssClass:f="",isPlainText:g=!0,dominantBaseline:p="auto"}){const b=this.w;typeof r>"u"&&(r="");let y=r;a||(a="start"),(!l||!l.length)&&(l=b.config.chart.foreColor),s=s||b.config.chart.fontFamily,i=i||"11px",o=o||"regular";const x={maxWidth:d,fontSize:i,fontFamily:s};let S;return Array.isArray(r)?S=b.dom.Paper.text(C=>{for(let O=0;O<r.length;O++)y=r[O],d&&(y=this.getTextBasedOnMaxWidth(ct({text:r[O]},x))),O===0?C.tspan(y):C.tspan(y).newLine()}):(d&&(y=this.getTextBasedOnMaxWidth(ct({text:r},x))),S=g?b.dom.Paper.plain(r):b.dom.Paper.text(C=>C.tspan(y))),S.attr({x:e,y:t,"text-anchor":a,"dominant-baseline":p,"font-size":i,"font-family":s,"font-weight":o,fill:l,class:"apexcharts-text "+f}),S.node.style.fontFamily=s,S.node.style.opacity=u,S}getMarkerPath(e,t,r,a){let i="";switch(r){case"cross":a=a/1.4,i=`M ${e-a} ${t-a} L ${e+a} ${t+a}  M ${e-a} ${t+a} L ${e+a} ${t-a}`;break;case"plus":a=a/1.12,i=`M ${e-a} ${t} L ${e+a} ${t}  M ${e} ${t-a} L ${e} ${t+a}`;break;case"star":case"sparkle":{let s=5;a=a*1.15,r==="sparkle"&&(a=a/1.1,s=4);const o=Math.PI/s;for(let l=0;l<=2*s;l++){const u=l*o,d=l%2===0?a:a/2,f=e+d*Math.sin(u),g=t-d*Math.cos(u);i+=(l===0?"M":"L")+f+","+g}i+="Z";break}case"triangle":i=`M ${e} ${t-a} 
             L ${e+a} ${t+a} 
             L ${e-a} ${t+a} 
             Z`;break;case"square":case"rect":a=a/1.125,i=`M ${e-a} ${t-a} 
           L ${e+a} ${t-a} 
           L ${e+a} ${t+a} 
           L ${e-a} ${t+a} 
           Z`;break;case"diamond":a=a*1.05,i=`M ${e} ${t-a} 
             L ${e+a} ${t} 
             L ${e} ${t+a} 
             L ${e-a} ${t} 
            Z`;break;case"line":a=a/1.1,i=`M ${e-a} ${t} 
           L ${e+a} ${t}`;break;case"circle":default:a=a*2,i=`M ${e}, ${t} 
           m -${a/2}, 0 
           a ${a/2},${a/2} 0 1,0 ${a},0 
           a ${a/2},${a/2} 0 1,0 -${a},0`;break}return i}drawMarkerShape(e,t,r,a,i){const s=this.drawPath({d:this.getMarkerPath(e,t,r,a),stroke:i.pointStrokeColor,strokeDashArray:i.pointStrokeDashArray,strokeWidth:i.pointStrokeWidth,fill:i.pointFillColor,fillOpacity:i.pointFillOpacity,strokeOpacity:i.pointStrokeOpacity});return s.attr({cx:e,cy:t,shape:i.shape,class:i.class?i.class:""}),s}drawMarker(e,t,r){e=e||0;let a=r.pSize||0;return ee.isNumber(t)||(a=0,t=0),this.drawMarkerShape(e,t,r?.shape,a,ct(ct({},r),r.shape==="line"||r.shape==="plus"||r.shape==="cross"?{pointStrokeColor:r.pointFillColor,pointStrokeOpacity:r.pointFillOpacity}:{}))}pathMouseEnter(e,t){var r,a;const i=this.w,s=new jr(this.w),o=parseInt((r=e.node.getAttribute("index"))!=null?r:"",10),l=parseInt((a=e.node.getAttribute("j"))!=null?a:"",10);if(!(isNaN(o)||isNaN(l))&&(typeof i.config.chart.events.dataPointMouseEnter=="function"&&i.config.chart.events.dataPointMouseEnter(t,this.ctx,{seriesIndex:o,dataPointIndex:l,w:i}),ve._fireEvent(i,"dataPointMouseEnter",[t,this.ctx,{seriesIndex:o,dataPointIndex:l,w:i}]),!(i.config.states.active.filter.type!=="none"&&e.node.getAttribute("selected")==="true")&&i.config.states.hover.filter.type!=="none"&&!i.interact.isTouchDevice)){const u=i.config.states.hover.filter;s.applyFilter(e,o,u.type)}}pathMouseLeave(e,t){var r,a;const i=this.w,s=new jr(this.w),o=parseInt((r=e.node.getAttribute("index"))!=null?r:"",10),l=parseInt((a=e.node.getAttribute("j"))!=null?a:"",10);isNaN(o)||isNaN(l)||(typeof i.config.chart.events.dataPointMouseLeave=="function"&&i.config.chart.events.dataPointMouseLeave(t,this.ctx,{seriesIndex:o,dataPointIndex:l,w:i}),ve._fireEvent(i,"dataPointMouseLeave",[t,this.ctx,{seriesIndex:o,dataPointIndex:l,w:i}]),!(i.config.states.active.filter.type!=="none"&&e.node.getAttribute("selected")==="true")&&i.config.states.hover.filter.type!=="none"&&s.getDefaultFilter(e,o))}pathMouseDown(e,t){var r,a;const i=this.w,s=new jr(this.w),o=parseInt((r=e.node.getAttribute("index"))!=null?r:"",10),l=parseInt((a=e.node.getAttribute("j"))!=null?a:"",10);if(isNaN(o)||isNaN(l))return;let u="false";if(e.node.getAttribute("selected")==="true"){e.node.setAttribute("selected","false");const d=i.interact.selectedDataPoints[o].indexOf(l);d>-1&&i.interact.selectedDataPoints[o].splice(d,1)}else{if(!i.config.states.active.allowMultipleDataPointsSelection&&i.interact.selectedDataPoints.length>0){i.interact.selectedDataPoints=[];const d=i.dom.Paper.find(".apexcharts-series path:not(.apexcharts-decoration-element)"),f=i.dom.Paper.find(".apexcharts-series circle:not(.apexcharts-decoration-element), .apexcharts-series rect:not(.apexcharts-decoration-element)"),g=p=>{Array.prototype.forEach.call(p,b=>{b.node.setAttribute("selected","false"),s.getDefaultFilter(b,o)})};g(d),g(f)}e.node.setAttribute("selected","true"),u="true",typeof i.interact.selectedDataPoints[o]>"u"&&(i.interact.selectedDataPoints[o]=[]),i.interact.selectedDataPoints[o].push(l)}if(u==="true"){const d=i.config.states.active.filter;if(d!=="none")s.applyFilter(e,o,d.type);else if(i.config.states.hover.filter!=="none"&&!i.interact.isTouchDevice){const f=i.config.states.hover.filter;s.applyFilter(e,o,f.type)}}else if(i.config.states.active.filter.type!=="none")if(i.config.states.hover.filter.type!=="none"&&!i.interact.isTouchDevice){const d=i.config.states.hover.filter;s.applyFilter(e,o,d.type)}else s.getDefaultFilter(e,o);typeof i.config.chart.events.dataPointSelection=="function"&&i.config.chart.events.dataPointSelection(t,this.ctx,{selectedDataPoints:i.interact.selectedDataPoints,seriesIndex:o,dataPointIndex:l,w:i}),t&&ve._fireEvent(i,"dataPointSelection",[t,this.ctx,{selectedDataPoints:i.interact.selectedDataPoints,seriesIndex:o,dataPointIndex:l,w:i}])}rotateAroundCenter(e){let t={};e&&typeof e.getBBox=="function"&&(t=e.getBBox());const r=t.x+t.width/2,a=t.y+t.height/2;return{x:r,y:a}}setupEventDelegation(e,t){let r=null;e.node.addEventListener("mouseover",a=>{const i=ve._findDelegateTarget(a.target,e.node,t);!i||i===r||(r&&r.instance&&this.pathMouseLeave(r.instance,a),r=i,i.instance&&this.pathMouseEnter(i.instance,a))}),e.node.addEventListener("mouseout",a=>{if(!r)return;(a.relatedTarget?ve._findDelegateTarget(a.relatedTarget,e.node,t):null)!==r&&(r&&r.instance&&this.pathMouseLeave(r.instance,a),r=null)}),e.node.addEventListener("mousedown",a=>{const i=ve._findDelegateTarget(a.target,e.node,t);i&&i.instance&&this.pathMouseDown(i.instance,a)})}static _fireEvent(e,t,r){const a=e.globals.events;if(!a||!Object.prototype.hasOwnProperty.call(a,t))return;const i=a[t];for(let s=0;s<i.length;s++)i[s].apply(null,r)}static _findDelegateTarget(e,t,r){for(;e&&e!==t&&e!==document;){if(e.matches&&e.matches(r))return e;e=e.parentNode}return null}static setAttrs(e,t){for(const r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.setAttribute(r,t[r])}getTextRects(e,t,r,a,i=!0){const s=this.w,o=[e,t,r,a,i].join("\0"),l=s.globals.textRectsCache;if(l&&l.has(o))return l.get(o);const u=this.drawText({x:-200,y:-200,text:e,textAnchor:"start",fontSize:t,fontFamily:r,foreColor:"#fff",opacity:0});a&&u.attr("transform",a),s.dom.Paper.add(u);let d=u.bbox();const f=d.y;i||(d=u.node.getBoundingClientRect()),u.remove();const g={width:d.width,height:d.height,centerOffset:i?f+d.height/2- -200:0};return l&&l.set(o,g),g}placeTextWithEllipsis(e,t,r){if(typeof e.getComputedTextLength=="function"&&(e.textContent=t,t.length>0&&e.getComputedTextLength()>=r/1.1)){for(let a=t.length-3;a>0;a-=3)if(e.getSubStringLength(0,a)<=r/1.1){e.textContent=t.substring(0,a)+"...";return}e.textContent="."}}}const xn="http://www.w3.org/2000/svg";class Ja{constructor(e,t){typeof e=="object"?(this.x=e.x,this.y=e.y):(this.x=e||0,this.y=t||0)}transform(e){return e.apply(this)}clone(){return new Ja(this.x,this.y)}}class yl{constructor(e,t,r,a,i,s){this.a=e??1,this.b=t??0,this.c=r??0,this.d=a??1,this.e=i??0,this.f=s??0}rotate(e){const t=e*Math.PI/180,r=Math.cos(t),a=Math.sin(t);return this.multiply(new yl(r,a,-a,r,0,0))}scale(e,t){return this.multiply(new yl(e,0,0,t??e,0,0))}multiply(e){return new yl(this.a*e.a+this.c*e.b,this.b*e.a+this.d*e.b,this.a*e.c+this.c*e.d,this.b*e.c+this.d*e.d,this.a*e.e+this.c*e.f+this.e,this.b*e.e+this.d*e.f+this.f)}apply(e){return new Ja(this.a*e.x+this.c*e.y+this.e,this.b*e.x+this.d*e.y+this.f)}}class kae{constructor(e,t,r,a){this.x=e,this.y=t,this.w=r,this.h=a,this.width=r,this.height=a,this.x2=e+r,this.y2=t+a}}class Ia{constructor(e){this.w=e,this.opts=null,this.seriesIndex=0,this.patternIDs=[]}clippedImgArea(e){const t=this.w,r=t.config,a=parseInt(String(t.layout.gridWidth),10),i=parseInt(String(t.layout.gridHeight),10),s=a>i?a:i,o=e.image;let l=0,u=0;typeof e.width>"u"&&typeof e.height>"u"?r.fill.image.width!==void 0&&r.fill.image.height!==void 0?(l=r.fill.image.width+1,u=r.fill.image.height):(l=s+1,u=s):(l=e.width,u=e.height);const d=ke.createElementNS(xn,"pattern");ve.setAttrs(d,{id:e.patternID,patternUnits:e.patternUnits?e.patternUnits:"userSpaceOnUse",width:l+"px",height:u+"px"});const f=ke.createElementNS(xn,"image");d.appendChild(f);const g=qe.isBrowser()?window.SVG:global.SVG;f.setAttributeNS(g.xlink,"href",o),ve.setAttrs(f,{x:0,y:0,preserveAspectRatio:"none",width:l+"px",height:u+"px"}),f.style.opacity=e.opacity,t.dom.elDefs.node.appendChild(d)}getSeriesIndex(e){const t=this.w,r=t.config.chart.type;return(r==="bar"||r==="rangeBar")&&t.config.plotOptions.bar.distributed||r==="heatmap"||r==="treemap"?this.seriesIndex=e.seriesNumber:this.seriesIndex=e.seriesNumber%t.seriesData.series.length,this.seriesIndex}computeColorStops(e,t){const r=this.w;let a=null,i=null;for(const u of e)u>=t.threshold?(a===null||u>a)&&(a=u):(i===null||u<i)&&(i=u);a===null&&(a=t.threshold),i===null&&(i=t.threshold);let s=a-t.threshold+(t.threshold-i);s===0&&(s=1);let l=100-(t.threshold-i)/s*100;return l=Math.max(0,Math.min(l,100)),[{offset:l,color:t.colorAboveThreshold,opacity:r.config.fill.opacity},{offset:0,color:t.colorBelowThreshold,opacity:r.config.fill.opacity}]}fillPath(e){var t,r,a,i;const s=this.w;this.opts=e;const o=this.w.config;let l,u,d;this.seriesIndex=this.getSeriesIndex(e);const f=o.plotOptions.line.colors.colorAboveThreshold&&o.plotOptions.line.colors.colorBelowThreshold;let p=this.getFillColors()[this.seriesIndex];s.seriesData.seriesColors[this.seriesIndex]!==void 0&&(p=s.seriesData.seriesColors[this.seriesIndex]),typeof p=="function"&&(p=p({seriesIndex:this.seriesIndex,dataPointIndex:e.dataPointIndex,value:e.value,w:s}));const b=e.fillType?e.fillType:this.getFillType(this.seriesIndex);let y=Array.isArray(o.fill.opacity)?o.fill.opacity[this.seriesIndex]:o.fill.opacity;const x=b==="gradient"||f;e.color&&(p=e.color);const S=s.config.series[this.seriesIndex];(r=(t=S?.data)==null?void 0:t[e.dataPointIndex])!=null&&r.fillColor&&(p=(i=(a=S?.data)==null?void 0:a[e.dataPointIndex])==null?void 0:i.fillColor),p||(p="#fff",console.warn("undefined color - ApexCharts")),e.opacity!==void 0&&e.opacity!==null&&(y=e.opacity);let C=p;ee.isCSSVariable(p)?C=ee.applyOpacityToColor(p,y):p.indexOf("rgb")===-1?p.indexOf("#")===-1?C=p:p.length<9&&(C=ee.hexToRgba(p,y)):p.indexOf("rgba")>-1?y=ee.getOpacityFromRGBA(p):C=ee.hexToRgba(ee.rgb2hex(p),y);const O=ee.isCSSVariable(p)?ee.getThemeColor(p):p;if(b==="pattern"&&(u=this.handlePatternFill({fillConfig:e.fillConfig,patternFill:u,fillColor:O,defaultColor:C})),x){const D=o.fill.gradient.colorStops?[...o.fill.gradient.colorStops]:[];let M=o.fill.gradient.type;f&&(D[this.seriesIndex]=this.computeColorStops(s.seriesData.series[this.seriesIndex],o.plotOptions.line.colors),M="vertical"),d=this.handleGradientFill({type:M,fillConfig:e.fillConfig,fillColor:O,fillOpacity:y,colorStops:D,i:this.seriesIndex})}if(b==="image"){const D=o.fill.image.src,M=e.patternID?e.patternID:"",A=`pattern${s.globals.cuid}${e.seriesNumber+1}${M}`;this.patternIDs.indexOf(A)===-1&&(this.clippedImgArea({opacity:y,image:Array.isArray(D)?e.seriesNumber<D.length?D[e.seriesNumber]:D[0]:D,width:e.width?e.width:void 0,height:e.height?e.height:void 0,patternUnits:e.patternUnits,patternID:A}),this.patternIDs.push(A)),l=`url(#${A})`}else x?l=d:b==="pattern"?l=u:l=C;return e.solid&&(l=C),l}getFillType(e){const t=this.w;return Array.isArray(t.config.fill.type)?t.config.fill.type[e]:t.config.fill.type}getFillColors(){const e=this.w,t=e.config,r=this.opts;let a=[];return e.globals.comboCharts?e.config.series[this.seriesIndex].type==="line"?Array.isArray(e.globals.stroke.colors)?a=e.globals.stroke.colors:a.push(e.globals.stroke.colors):Array.isArray(e.globals.fill.colors)?a=e.globals.fill.colors:a.push(e.globals.fill.colors):t.chart.type==="line"?Array.isArray(e.globals.stroke.colors)?a=e.globals.stroke.colors:a.push(e.globals.stroke.colors):Array.isArray(e.globals.fill.colors)?a=e.globals.fill.colors:a.push(e.globals.fill.colors),typeof r.fillColors<"u"&&(a=[],Array.isArray(r.fillColors)?a=r.fillColors.slice():a.push(r.fillColors)),a}handlePatternFill({fillConfig:e,patternFill:t,fillColor:r,defaultColor:a}){let i=this.w.config.fill;e&&(i=e);const s=this.opts,o=new ve(this.w),l=Array.isArray(i.pattern.strokeWidth)?i.pattern.strokeWidth[this.seriesIndex]:i.pattern.strokeWidth,u=r;return Array.isArray(i.pattern.style)?typeof i.pattern.style[s.seriesNumber]<"u"?t=o.drawPattern(i.pattern.style[s.seriesNumber],i.pattern.width,i.pattern.height,u,l):t=a:t=o.drawPattern(i.pattern.style,i.pattern.width,i.pattern.height,u,l),t}handleGradientFill({type:e,fillColor:t,fillOpacity:r,fillConfig:a,colorStops:i,i:s}){let o=this.w.config.fill;a&&(o=ct(ct({},o),a));const l=this.opts,u=new ve(this.w),d=new ee;e=e||o.gradient.type;let f=t,g,p=o.gradient.opacityFrom===void 0?r:Array.isArray(o.gradient.opacityFrom)?o.gradient.opacityFrom[s]:o.gradient.opacityFrom;f.indexOf("rgba")>-1&&(p=ee.getOpacityFromRGBA(f));let b=o.gradient.opacityTo===void 0?r:Array.isArray(o.gradient.opacityTo)?o.gradient.opacityTo[s]:o.gradient.opacityTo;if(o.gradient.gradientToColors===void 0||o.gradient.gradientToColors.length===0)o.gradient.shade==="dark"?g=d.shadeColor(parseFloat(o.gradient.shadeIntensity)*-1,t.indexOf("rgb")>-1?ee.rgb2hex(t):t):g=d.shadeColor(parseFloat(o.gradient.shadeIntensity),t.indexOf("rgb")>-1?ee.rgb2hex(t):t);else if(o.gradient.gradientToColors[l.seriesNumber]){const y=o.gradient.gradientToColors[l.seriesNumber];g=y,y.indexOf("rgba")>-1&&(b=ee.getOpacityFromRGBA(y))}else g=t;if(o.gradient.gradientFrom&&(f=o.gradient.gradientFrom),o.gradient.gradientTo&&(g=o.gradient.gradientTo),o.gradient.inverseColors){const y=f;f=g,g=y}return f.indexOf("rgb")>-1&&(f=ee.rgb2hex(f)),g.indexOf("rgb")>-1&&(g=ee.rgb2hex(g)),u.drawGradient(e,f,g,p,b,l.size,o.gradient.stops,i,s)}}class Du{constructor(e,t){this.w=e,this.ctx=t,this._filters=new jr(this.w),this._graphics=new ve(this.w,this.ctx)}setGlobalMarkerSize(){const e=this.w;if(e.globals.markers.size=Array.isArray(e.config.markers.size)?e.config.markers.size:[e.config.markers.size],e.globals.markers.size.length>0){if(e.globals.markers.size.length<e.seriesData.series.length+1)for(let t=0;t<=e.seriesData.series.length;t++)typeof e.globals.markers.size[t]>"u"&&e.globals.markers.size.push(e.globals.markers.size[0])}else e.globals.markers.size=e.config.series.map(()=>e.config.markers.size)}plotChartMarkers({pointsPos:e,seriesIndex:t,j:r,pSize:a,alwaysDrawMarker:i=!1,isVirtualPoint:s=!1}){const o=this.w,l=t,u=e;let d=null;const f=new ve(this.w),g=o.config.markers.discrete&&o.config.markers.discrete.length;if(Array.isArray(u.x))for(let p=0;p<u.x.length;p++){let b,y=r,x=!ee.isNumber(u.y[p]);o.globals.markers.largestSize===0&&o.globals.hasNullValues&&o.seriesData.series[l][r+1]!==null&&!s&&(x=!0),r===1&&p===0&&(y=0),r===1&&p===1&&(y=1);let S="apexcharts-marker";if((o.config.chart.type==="line"||o.config.chart.type==="area")&&!o.globals.comboCharts&&!o.config.tooltip.intersect&&(S+=" no-pointer-events"),(Array.isArray(o.config.markers.size)?o.globals.markers.size[t]>0:o.config.markers.size>0)||i||g){x||(S+=` w${ee.randomId()}`);const O=this.getMarkerConfig({cssClass:S,seriesIndex:t,dataPointIndex:y}),D=o.config.series[l];D.data[y]&&(D.data[y].fillColor&&(O.pointFillColor=D.data[y].fillColor),D.data[y].strokeColor&&(O.pointStrokeColor=D.data[y].strokeColor)),typeof a<"u"&&(O.pSize=a),(u.x[p]<-o.globals.markers.largestSize||u.x[p]>o.layout.gridWidth+o.globals.markers.largestSize||u.y[p]<-o.globals.markers.largestSize||u.y[p]>o.layout.gridHeight+o.globals.markers.largestSize)&&(O.pSize=0),x||((o.globals.markers.size[t]>0||i||g)&&!d&&(d=f.group({class:i||g?"":"apexcharts-series-markers"}),d.attr("clip-path",`url(#gridRectMarkerMask${o.globals.cuid})`),this.setupMarkerDelegation(d)),b=f.drawMarker(u.x[p],u.y[p],O),b.attr("rel",y),b.attr("j",y),b.attr("index",t),b.node.setAttribute("default-marker-size",O.pSize),Es(b,u.x[p],o),this._filters.setSelectionFilter(b,t,y),d&&d.add(b))}else typeof o.globals.pointsArray[t]>"u"&&(o.globals.pointsArray[t]=[]),o.globals.pointsArray[t].push([u.x[p],u.y[p]])}return d}getMarkerConfig({cssClass:e,seriesIndex:t,dataPointIndex:r=null,radius:a=null,size:i=null,strokeWidth:s=null}){const o=this.w,l=this.getMarkerStyle(t);let u=i===null?o.globals.markers.size[t]:i;const d=o.config.markers;return r!==null&&d.discrete.length&&d.discrete.map(f=>{f.seriesIndex===t&&f.dataPointIndex===r&&(l.pointStrokeColor=f.strokeColor,l.pointFillColor=f.fillColor,u=f.size,l.pointShape=f.shape)}),{pSize:a===null?u:a,pRadius:a!==null?a:d.radius,pointStrokeWidth:s!==null?s:Array.isArray(d.strokeWidth)?d.strokeWidth[t]:d.strokeWidth,pointStrokeColor:l.pointStrokeColor,pointFillColor:l.pointFillColor,shape:l.pointShape||(Array.isArray(d.shape)?d.shape[t]:d.shape),class:e,pointStrokeOpacity:Array.isArray(d.strokeOpacity)?d.strokeOpacity[t]:d.strokeOpacity,pointStrokeDashArray:Array.isArray(d.strokeDashArray)?d.strokeDashArray[t]:d.strokeDashArray,pointFillOpacity:Array.isArray(d.fillOpacity)?d.fillOpacity[t]:d.fillOpacity,seriesIndex:t}}setupMarkerDelegation(e){const t=this.w,r=".apexcharts-marker";this._graphics.setupEventDelegation(e,r),e.node.addEventListener("click",a=>{t.config.markers.onClick&&ve._findDelegateTarget(a.target,e.node,r)&&t.config.markers.onClick(a)}),e.node.addEventListener("dblclick",a=>{t.config.markers.onDblClick&&ve._findDelegateTarget(a.target,e.node,r)&&t.config.markers.onDblClick(a)}),e.node.addEventListener("touchstart",a=>{const i=ve._findDelegateTarget(a.target,e.node,r);i&&i.instance&&this._graphics.pathMouseDown(i.instance,a)},{passive:!0})}addEvents(e){const t=this.w;e.node.addEventListener("mouseenter",this._graphics.pathMouseEnter.bind(this.ctx,e)),e.node.addEventListener("mouseleave",this._graphics.pathMouseLeave.bind(this.ctx,e)),e.node.addEventListener("mousedown",this._graphics.pathMouseDown.bind(this.ctx,e)),e.node.addEventListener("click",t.config.markers.onClick),e.node.addEventListener("dblclick",t.config.markers.onDblClick),e.node.addEventListener("touchstart",this._graphics.pathMouseDown.bind(this.ctx,e),{passive:!0})}getMarkerStyle(e){const t=this.w,r=t.globals.markers.colors,a=t.config.markers.strokeColor||t.config.markers.strokeColors,i=Array.isArray(a)?a[e]:a,s=Array.isArray(r)?r[e]:r;return{pointStrokeColor:i,pointFillColor:s}}}class vj{constructor(e,t){this.ctx=t,this.w=e,this.initialAnim=this.w.config.chart.animations.enabled,this.anim=new Mu(this.w),this.filters=new jr(this.w),this.fill=new Ia(this.w),this.markers=new Du(this.w,this.ctx),this.graphics=new ve(this.w)}draw(e,t,r){const a=this.w,i=this.graphics,s=r.realIndex,o=r.pointsPos,l=r.zRatio,u=r.elParent,d=i.group({class:`apexcharts-series-markers apexcharts-series-${a.config.chart.type}`});if(d.attr("clip-path",`url(#gridRectMarkerMask${a.globals.cuid})`),this.markers.setupMarkerDelegation(d),Array.isArray(o.x))for(let f=0;f<o.x.length;f++){let g=t+1,p=!0;t===0&&f===0&&(g=0),t===0&&f===1&&(g=1);let b=a.globals.markers.size[s];if(l!==1/0){const S=a.config.plotOptions.bubble;b=a.seriesData.seriesZ[s][g],S.zScaling&&(b/=l),S.minBubbleRadius&&b<S.minBubbleRadius&&(b=S.minBubbleRadius),S.maxBubbleRadius&&b>S.maxBubbleRadius&&(b=S.maxBubbleRadius)}const y=o.x[f],x=o.y[f];if(b=b||0,(x===null||typeof a.seriesData.series[s][g]>"u")&&(p=!1),p){const S=this.drawPoint(y,x,b,s,g,t);d.add(S)}u.add(d)}}drawPoint(e,t,r,a,i,s){const o=this.w,l=a,u=this.anim,d=this.filters,f=this.fill,g=this.markers,p=this.graphics,b=g.getMarkerConfig({cssClass:"apexcharts-marker",seriesIndex:l,dataPointIndex:i,radius:o.config.chart.type==="bubble"||o.globals.comboCharts&&o.config.series[a]&&o.config.series[a].type==="bubble"?r:null});let y=f.fillPath({seriesNumber:a,dataPointIndex:i,color:b.pointFillColor,patternUnits:"objectBoundingBox",value:o.seriesData.series[a][s]});const x=p.drawMarker(e,t,b),S=o.config.series[l];if(S.data[i]&&S.data[i].fillColor&&(y=S.data[i].fillColor),x.attr({fill:y}),o.config.chart.dropShadow.enabled){const C=o.config.chart.dropShadow;d.dropShadow(x,C,a)}if(this.initialAnim&&!o.globals.dataChanged&&!o.globals.resized){const C=o.config.chart.animations,O=C.speed,D=o.globals.dataPoints||1,M=C.animateGradually,T=M&&M.enabled!==!1?Math.min(20,O*.5/Math.max(1,D)):0,P=IM({style:T>0?"sequential":"none",index:i,baseDelay:T});u.animatePop(x,{speed:O,delay:P,onComplete:()=>u.animationCompleted(x)})}else o.globals.animationEnded=!0;return x.attr({rel:i,j:i,index:a,"default-marker-size":b.pSize}),d.setSelectionFilter(x,a,i),x.node.classList.add("apexcharts-marker"),x}centerTextInBubble(e){const t=this.w;return e=e+parseInt(t.config.dataLabels.style.fontSize,10)/4,{y:e}}}class Ol{constructor(e,t=null){this.w=e,this.ctx=t}dataLabelsCorrection(e,t,r,a,i,s,o){const l=this.w,u=new ve(this.w);let d=!1;const f=u.getTextRects(r,o),g=f.width,p=f.height;t<0&&(t=0),t>l.layout.gridHeight+p&&(t=l.layout.gridHeight+p/2),typeof l.globals.dataLabelsRects[a]>"u"&&(l.globals.dataLabelsRects[a]=[]),l.globals.dataLabelsRects[a].push({x:e,y:t,width:g,height:p});const b=l.globals.dataLabelsRects[a].length-2,y=typeof l.globals.lastDrawnDataLabelsIndexes[a]<"u"?l.globals.lastDrawnDataLabelsIndexes[a][l.globals.lastDrawnDataLabelsIndexes[a].length-1]:0;if(typeof l.globals.dataLabelsRects[a][b]<"u"){const x=l.globals.dataLabelsRects[a][y];(e>x.x+x.width||t>x.y+x.height||t+p<x.y||e+g<x.x)&&(d=!0)}return(i===0||s)&&(d=!0),{x:e,y:t,textRects:f,drawnextLabel:d}}drawDataLabel({type:e,pos:t,i:r,j:a,isRangeStart:i,strokeWidth:s=2}){const o=this.w,l=new ve(this.w),u=o.config.dataLabels;let d=0,f=0,g=a,p=null;if(o.globals.collapsedSeriesIndices.indexOf(r)!==-1||!u.enabled||!Array.isArray(t.x))return p;p=l.group({class:"apexcharts-data-labels"});for(let y=0;y<t.x.length;y++)if(d=t.x[y]+u.offsetX,f=t.y[y]+u.offsetY+s,!isNaN(d)){a===1&&y===0&&(g=0),a===1&&y===1&&(g=1);let x=o.seriesData.series[r][g];e==="rangeArea"&&(i?x=o.rangeData.seriesRangeStart[r][g]:x=o.rangeData.seriesRangeEnd[r][g]);let S="";const C=D=>o.config.dataLabels.formatter(D,{seriesIndex:r,dataPointIndex:g,w:o});o.config.chart.type==="bubble"?(x=o.seriesData.seriesZ[r][g],S=C(x),f=t.y[y],f=new vj(this.w,this.ctx).centerTextInBubble(f).y):typeof x<"u"&&(S=C(x));let O=o.config.dataLabels.textAnchor;o.globals.isSlopeChart&&(g===0?O="end":g===o.config.series[r].data.length-1?O="start":O="middle"),this.plotDataLabelsText({x:d,y:f,text:S,i:r,j:g,parent:p,offsetCorrection:!0,dataLabelsConfig:o.config.dataLabels,textAnchor:O})}return p}plotDataLabelsText(e){const t=this.w,r=new ve(this.w);let{x:a,y:i,i:s,j:o,text:l,textAnchor:u,fontSize:d,parent:f,dataLabelsConfig:g,color:p,alwaysDrawDataLabel:b,offsetCorrection:y,className:x}=e,S=null;if(Array.isArray(t.config.dataLabels.enabledOnSeries)&&t.config.dataLabels.enabledOnSeries.indexOf(s)<0)return S;let C={x:a,y:i,drawnextLabel:!0,textRects:null};if(y&&(C=this.dataLabelsCorrection(a,i,l,s,o,b,parseInt(g.style.fontSize,10).toString())),t.interact.zoomed||(a=C.x,i=C.y),C.textRects){const A=t.globals.barPadForNumericAxis||0;(a<-(A+20)-C.textRects.width||a>t.layout.gridWidth+C.textRects.width+A+30)&&(l="")}let O=t.globals.dataLabels.style.colors[s];((t.config.chart.type==="bar"||t.config.chart.type==="rangeBar")&&t.config.plotOptions.bar.distributed||t.config.dataLabels.distributed)&&(O=t.globals.dataLabels.style.colors[o]),typeof O=="function"&&(O=O({series:t.seriesData.series,seriesIndex:s,dataPointIndex:o,w:t})),p&&(O=p);let D=g.offsetX,M=g.offsetY;if((t.config.chart.type==="bar"||t.config.chart.type==="rangeBar")&&(D=0,M=0),t.globals.isSlopeChart&&(o!==0&&(D=g.offsetX*-2+5),o!==0&&o!==t.config.series[s].data.length-1&&(D=0)),C.drawnextLabel){if(u==="middle"&&a===t.layout.gridWidth&&(u="end"),S=r.drawText({x:a+D,y:i+M,foreColor:O,textAnchor:u||g.textAnchor,text:l,fontSize:d||g.style.fontSize,fontFamily:g.style.fontFamily,fontWeight:g.style.fontWeight||"normal"}),S.attr({class:x||"apexcharts-datalabel",cx:a,cy:i}),g.dropShadow.enabled){const A=g.dropShadow;new jr(this.w).dropShadow(S,A)}f.add(S),Es(S,a,t),typeof t.globals.lastDrawnDataLabelsIndexes[s]>"u"&&(t.globals.lastDrawnDataLabelsIndexes[s]=[]),t.globals.lastDrawnDataLabelsIndexes[s].push(o)}return S}addBackgroundToDataLabel(e,t){const r=this.w,a=r.config.dataLabels.background,i=a.padding,s=a.padding/2,o=t.width,l=t.height,d=new ve(this.w).drawRect(t.x-i,t.y-s/2,o+i*2,l+s,a.borderRadius,r.config.chart.background==="transparent"||!r.config.chart.background?"#fff":r.config.chart.background,a.opacity,a.borderWidth,a.borderColor);return a.dropShadow.enabled&&new jr(this.w).dropShadow(d,a.dropShadow),d}dataLabelsBackground(){var e;const t=this.w;if(t.config.chart.type==="bubble")return;const r=t.dom.baseEl.querySelectorAll(".apexcharts-datalabels text");for(let a=0;a<r.length;a++){const i=r[a],s=i.getBBox();let o=null;if(s.width&&s.height&&(o=this.addBackgroundToDataLabel(i,s)),o){(e=i.parentNode)==null||e.insertBefore(o.node,i);const l=t.config.dataLabels.background.backgroundColor||i.getAttribute("fill");t.config.chart.animations.enabled&&!t.globals.resized&&!t.globals.dataChanged?o.animate().attr({fill:l}):o.attr({fill:l}),i.setAttribute("fill",t.config.dataLabels.background.foreColor);const d=i.getAttribute("cx");d!==null&&Es(o,parseFloat(d),t)}}}bringForward(){const e=this.w,t=e.dom.baseEl.querySelectorAll(".apexcharts-datalabels"),r=e.dom.baseEl.querySelector(".apexcharts-plot-series:last-child");for(let a=0;a<t.length;a++)r&&r.insertBefore(t[a],r.nextSibling)}}class $M{static invalidateAll(e){!e||!e.globals||(e.globals.cachedSelectors&&(e.globals.cachedSelectors={}),e.globals.domCache&&e.globals.domCache.clear(),e.globals.dimensionCache={})}static invalidateDimensions(e){!e||!e.globals||(e.globals.dimensionCache={})}static invalidateSelectors(e){!e||!e.globals||e.globals.cachedSelectors&&(e.globals.cachedSelectors={})}static getCachedSelector(e,t,r){return!e||!e.globals?r():(e.globals.cachedSelectors||(e.globals.cachedSelectors={}),e.globals.cachedSelectors[t]||(e.globals.cachedSelectors[t]=r()),e.globals.cachedSelectors[t])}static getCachedDimension(e,t,r,a=1e3){if(!e||!e.globals)return r();e.globals.dimensionCache||(e.globals.dimensionCache={});const i=e.globals.dimensionCache[t],s=Date.now();if(i&&i.lastUpdate&&s-i.lastUpdate<a)return i.value;const o=r();return e.globals.dimensionCache[t]={value:o,lastUpdate:s},o}static cacheDOMElement(e,t,r){!e||!e.globals||(e.globals.domCache||(e.globals.domCache=new Map),e.globals.domCache.set(t,r))}static getCachedDOMElement(e,t){return!e||!e.globals||!e.globals.domCache?null:e.globals.domCache.get(t)||null}}class xo{constructor(e,{theme:t=null,timeScale:r=null}={}){this.w=e,this.theme=t,this.timeScale=r}getLabel(e,t,r,a,i=[],s="12px",o=!0){const l=this.w,u=typeof e[a]>"u"?"":e[a];let d=u;const f=l.formatters.xLabelFormatter,g=l.config.xaxis.labels.formatter,p=new Vh(this.w),b=u;o&&(d=p.xLabelFormat(f,u,b,{i:a,dateFormatter:new Ha(this.w).formatDate,w:l}),g!==void 0&&(d=g(u,e[a],{i:a,dateFormatter:new Ha(this.w).formatDate,w:l}))),t.length>0?(r=t[a].position,d=t[a].value):l.config.xaxis.type==="datetime"&&g===void 0&&(d=""),typeof d>"u"&&(d=""),d=Array.isArray(d)?d:d.toString();const y=new ve(this.w);let x={};l.layout.rotateXLabels&&o?x=y.getTextRects(d,parseInt(s,10).toString(),null,`rotate(${l.config.xaxis.labels.rotate} 0 0)`,!1):x=y.getTextRects(d,parseInt(s,10).toString());const S=!l.config.xaxis.labels.showDuplicates&&this.timeScale;return!Array.isArray(d)&&(String(d)==="NaN"||i.indexOf(d)>=0&&S)&&(d=""),{x:r,text:d,textRect:x}}checkLabelBasedOnTickamount(e,t,r){const a=this.w;let i=a.config.xaxis.tickAmount;if(i==="dataPoints"&&(i=Math.round(a.layout.gridWidth/120)),i>r)return t;const s=Math.round(r/(i+1));return e%s===0||(t.text=""),t}checkForOverflowingLabels(e,t,r,a,i){const s=this.w;if(e===0&&s.globals.skipFirstTimelinelabel&&(t.text=""),e===r-1&&s.globals.skipLastTimelinelabel&&(t.text=""),s.config.xaxis.labels.hideOverlappingLabels&&a.length>0){const o=i[i.length-1];if(s.config.xaxis.labels.trim&&s.config.xaxis.type!=="datetime")return t;t.x<o.textRect.width/(s.layout.rotateXLabels?Math.abs(s.config.xaxis.labels.rotate)/12:1.01)+o.x&&(t.text="")}return t}checkForReversedLabels(e,t){const r=this.w;return r.config.yaxis[e]&&r.config.yaxis[e].reversed&&t.reverse(),t}yAxisAllSeriesCollapsed(e){const t=this.w.globals;return!t.seriesYAxisMap[e].some(r=>t.collapsedSeriesIndices.indexOf(r)===-1)}translateYAxisIndex(e){const t=this.w,r=t.globals,a=t.config.yaxis;return t.seriesData.series.length>a.length||a.some(s=>Array.isArray(s.seriesName))?e:r.seriesYAxisReverseMap[e]}isYAxisHidden(e){const t=this.w,r=t.config.yaxis[e];if(!r.show||this.yAxisAllSeriesCollapsed(e))return!0;if(!r.showForNullSeries){const a=t.globals.seriesYAxisMap[e],i=new Zn(this.w);return a.every(s=>i.isSeriesNull(s))}return!1}getYAxisForeColor(e,t){var r;const a=this.w;return Array.isArray(e)&&a.globals.yAxisScale[t]&&((r=this.theme)==null||r.pushExtraColors(e,a.globals.yAxisScale[t].result.length,!1)),e}drawYAxisTicks(e,t,r,a,i,s,o){const l=this.w,u=new ve(this.w);let d=l.layout.translateY+l.config.yaxis[i].labels.offsetY;if(l.globals.isBarHorizontal?d=0:l.config.chart.type==="heatmap"&&(d+=s/2),a.show&&t>0){l.config.yaxis[i].opposite===!0&&(e=e+a.width);for(let f=t;f>=0;f--){const g=u.drawLine(e+r.offsetX-a.width+a.offsetX,d+a.offsetY,e+r.offsetX+a.offsetX,d+a.offsetY,a.color);o.add(g),d+=s}}}}class bh{constructor(e,t,r){this.w=e,this.ctx=t,this.elgrid=r,this.axesUtils=new xo(e,{theme:t.theme,timeScale:t.timeScale}),this.xaxisLabels=e.labelData.labels.slice(),e.labelData.timescaleLabels.length>0&&!e.globals.isBarHorizontal&&(this.xaxisLabels=e.labelData.timescaleLabels.slice()),e.config.xaxis.overwriteCategories&&(this.xaxisLabels=e.config.xaxis.overwriteCategories),this.drawnLabels=[],this.drawnLabelsRects=[],e.config.xaxis.position==="top"?this.offY=0:this.offY=e.layout.gridHeight,this.offY=this.offY+e.config.xaxis.axisBorder.offsetY,this.isCategoryBarHorizontal=e.config.chart.type==="bar"&&e.config.plotOptions.bar.horizontal,this.xaxisFontSize=e.config.xaxis.labels.style.fontSize,this.xaxisFontFamily=e.config.xaxis.labels.style.fontFamily,this.xaxisForeColors=e.config.xaxis.labels.style.colors,this.xaxisBorderWidth=e.config.xaxis.axisBorder.width,this.isCategoryBarHorizontal&&(this.xaxisBorderWidth=e.config.yaxis[0].axisBorder.width.toString()),String(this.xaxisBorderWidth).indexOf("%")>-1?this.xaxisBorderWidth=e.layout.gridWidth*parseInt(this.xaxisBorderWidth,10)/100:this.xaxisBorderWidth=parseInt(this.xaxisBorderWidth,10),this.xaxisBorderHeight=e.config.xaxis.axisBorder.height,this.yaxis=e.config.yaxis[0]}drawXaxis(){const e=this.w,t=new ve(this.w),r=t.group({class:"apexcharts-xaxis",transform:`translate(${e.config.xaxis.offsetX}, ${e.config.xaxis.offsetY})`}),a=t.group({class:"apexcharts-xaxis-texts-g",transform:`translate(${e.layout.translateXAxisX}, ${e.layout.translateXAxisY})`});r.add(a);let i=[];for(let s=0;s<this.xaxisLabels.length;s++)i.push(this.xaxisLabels[s]);if(this.drawXAxisLabelAndGroup(!0,t,a,i,e.axisFlags.isXNumeric,(s,o)=>o),e.labelData.hasXaxisGroups){const s=e.labelData.groups;i=[];for(let l=0;l<s.length;l++)i.push(s[l].title);const o={};e.config.xaxis.group.style&&(o.xaxisFontSize=e.config.xaxis.group.style.fontSize,o.xaxisFontFamily=e.config.xaxis.group.style.fontFamily,o.xaxisForeColors=e.config.xaxis.group.style.colors,o.fontWeight=e.config.xaxis.group.style.fontWeight,o.cssClass=e.config.xaxis.group.style.cssClass),this.drawXAxisLabelAndGroup(!1,t,a,i,!1,(l,u)=>s[l].cols*u,o)}if(e.config.xaxis.title.text!==void 0){const s=t.group({class:"apexcharts-xaxis-title"}),o=t.drawText({x:e.layout.gridWidth/2+e.config.xaxis.title.offsetX,y:this.offY+parseFloat(this.xaxisFontSize)+(e.config.xaxis.position==="bottom"?e.layout.xAxisLabelsHeight:-e.layout.xAxisLabelsHeight-10)+e.config.xaxis.title.offsetY,text:e.config.xaxis.title.text,textAnchor:"middle",fontSize:e.config.xaxis.title.style.fontSize,fontFamily:e.config.xaxis.title.style.fontFamily,fontWeight:e.config.xaxis.title.style.fontWeight,foreColor:e.config.xaxis.title.style.color,cssClass:"apexcharts-xaxis-title-text "+e.config.xaxis.title.style.cssClass});s.add(o),r.add(s)}if(e.config.xaxis.axisBorder.show){const s=e.globals.barPadForNumericAxis,o=t.drawLine(e.globals.padHorizontal+e.config.xaxis.axisBorder.offsetX-s,this.offY,this.xaxisBorderWidth+s,this.offY,e.config.xaxis.axisBorder.color,0,this.xaxisBorderHeight);this.elgrid&&this.elgrid.elGridBorders&&e.config.grid.show?this.elgrid.elGridBorders.add(o):r.add(o)}return r}drawXAxisLabelAndGroup(e,t,r,a,i,s,o={}){var l,u;const d=[],f=[],g=this.w,p=o.xaxisFontSize||this.xaxisFontSize,b=o.xaxisFontFamily||this.xaxisFontFamily,y=o.xaxisForeColors||this.xaxisForeColors,x=o.fontWeight||g.config.xaxis.labels.style.fontWeight,S=o.cssClass||g.config.xaxis.labels.style.cssClass;let C,O=g.globals.padHorizontal;const D=a.length;let M=g.config.xaxis.type==="category"?g.globals.dataPoints:D;if(M===0&&D>M&&(M=D),i){const A=Math.max(Number(g.config.xaxis.tickAmount)||1,M>1?M-1:M);C=g.layout.gridWidth/Math.min(A,D-1),O=O+s(0,C)/2+g.config.xaxis.labels.offsetX}else C=g.layout.gridWidth/M,O=O+s(0,C)+g.config.xaxis.labels.offsetX;for(let A=0;A<=D-1;A++){let T=O-s(A,C)/2+g.config.xaxis.labels.offsetX;A===0&&D===1&&C/2===O&&M===1&&(T=g.layout.gridWidth/2);let P=this.axesUtils.getLabel(a,g.labelData.timescaleLabels,T,A,d,p,e),R=28;g.layout.rotateXLabels&&e&&(R=22),g.config.xaxis.title.text&&g.config.xaxis.position==="top"&&(R+=parseFloat(g.config.xaxis.title.style.fontSize)+2),e||(R=R+parseFloat(p)+(g.layout.xAxisLabelsHeight-g.layout.xAxisGroupLabelsHeight)+(g.layout.rotateXLabels?10:0)),typeof g.config.xaxis.tickAmount<"u"&&g.config.xaxis.tickAmount!=="dataPoints"&&g.config.xaxis.type!=="datetime"?P=this.axesUtils.checkLabelBasedOnTickamount(A,P,D):P=this.axesUtils.checkForOverflowingLabels(A,P,D,d,f);const I=()=>e&&g.config.xaxis.convertedCatToNumeric?y[g.globals.minX+A-1]:y[A],Y=((u=(l=P.textRect)==null?void 0:l.width)!=null?u:0)/2,k=P.x+Y<0;if(g.config.xaxis.labels.show&&!k){const H=t.drawText({x:P.x,y:this.offY+g.config.xaxis.labels.offsetY+R-(g.config.xaxis.position==="top"?g.layout.xAxisHeight+g.config.xaxis.axisTicks.height-2:0),text:P.text,textAnchor:"middle",fontWeight:x,fontSize:p,fontFamily:b,foreColor:Array.isArray(y)?I():y,isPlainText:!1,cssClass:(e?"apexcharts-xaxis-label ":"apexcharts-xaxis-group-label ")+S});if(r.add(H),H.on("click",F=>{if(typeof g.config.chart.events.xAxisLabelClick=="function"){const B=Object.assign({},g,{labelIndex:A});g.config.chart.events.xAxisLabelClick(F,this.ctx,B)}}),e){const F=ke.createElementNS(xn,"title");F.textContent=Array.isArray(P.text)?P.text.join(" "):P.text,H.node.appendChild(F),P.text!==""&&(d.push(P.text),f.push(P))}}A<D-1&&(O=O+s(A+1,C))}}drawXaxisInversed(e){const t=this.w,r=new ve(this.w),a=t.config.yaxis[0].opposite?t.globals.translateYAxisX[e]:0,i=r.group({class:"apexcharts-yaxis apexcharts-xaxis-inversed",rel:e}),s=r.group({class:"apexcharts-yaxis-texts-g apexcharts-xaxis-inversed-texts-g",transform:"translate("+a+", 0)"});i.add(s);const o=[];if(t.config.yaxis[e].show)for(let b=0;b<this.xaxisLabels.length;b++)o.push(this.xaxisLabels[b]);const l=t.layout.gridHeight/o.length;let u=-(l/2.2);const d=t.formatters.yLabelFormatters[0],f=t.config.yaxis[0].labels;if(f.show)for(let b=0;b<=o.length-1;b++){let y=typeof o[b]>"u"?"":o[b];y=d(y,{seriesIndex:e,dataPointIndex:b,w:t});const x=this.axesUtils.getYAxisForeColor(f.style.colors,e),S=()=>Array.isArray(x)?x[b]:x;let C=0;Array.isArray(y)&&(C=y.length/2*parseInt(f.style.fontSize,10));let O=f.offsetX-15,D="end";this.yaxis.opposite&&(D="start"),t.config.yaxis[0].labels.align==="left"?(O=f.offsetX,D="start"):t.config.yaxis[0].labels.align==="center"?(O=f.offsetX,D="middle"):t.config.yaxis[0].labels.align==="right"&&(D="end");const M=r.drawText({x:O,y:u+l+f.offsetY-C,text:y,textAnchor:D,foreColor:S(),fontSize:f.style.fontSize,fontFamily:f.style.fontFamily,fontWeight:f.style.fontWeight,isPlainText:!1,cssClass:"apexcharts-yaxis-label "+f.style.cssClass,maxWidth:f.maxWidth});s.add(M),M.on("click",T=>{if(typeof t.config.chart.events.xAxisLabelClick=="function"){const P=Object.assign({},t,{labelIndex:b});t.config.chart.events.xAxisLabelClick(T,this.ctx,P)}});const A=ke.createElementNS(xn,"title");if(A.textContent=Array.isArray(y)?y.join(" "):y,M.node.appendChild(A),t.config.yaxis[e].labels.rotate!==0){const T=r.rotateAroundCenter(M.node);M.node.setAttribute("transform",`rotate(${t.config.yaxis[e].labels.rotate} 0 ${T.y})`)}u=u+l}if(t.config.yaxis[0].title.text!==void 0){const b=r.group({class:"apexcharts-yaxis-title apexcharts-xaxis-title-inversed",transform:"translate("+a+", 0)"}),y=r.drawText({x:t.config.yaxis[0].title.offsetX,y:t.layout.gridHeight/2+t.config.yaxis[0].title.offsetY,text:t.config.yaxis[0].title.text,textAnchor:"middle",foreColor:t.config.yaxis[0].title.style.color,fontSize:t.config.yaxis[0].title.style.fontSize,fontWeight:t.config.yaxis[0].title.style.fontWeight,fontFamily:t.config.yaxis[0].title.style.fontFamily,cssClass:"apexcharts-yaxis-title-text "+t.config.yaxis[0].title.style.cssClass});b.add(y),i.add(b)}let g=0;this.isCategoryBarHorizontal&&t.config.yaxis[0].opposite&&(g=t.layout.gridWidth);const p=t.config.xaxis.axisBorder;if(p.show){const b=r.drawLine(t.globals.padHorizontal+p.offsetX+g,1+p.offsetY,t.globals.padHorizontal+p.offsetX+g,t.layout.gridHeight+p.offsetY,p.color,0);this.elgrid&&this.elgrid.elGridBorders&&t.config.grid.show?this.elgrid.elGridBorders.add(b):i.add(b)}return t.config.yaxis[0].axisTicks.show&&this.axesUtils.drawYAxisTicks(g,o.length,t.config.yaxis[0].axisBorder,t.config.yaxis[0].axisTicks,0,l,i),i}drawXaxisTicks(e,t,r){const a=this.w,i=e;if(e<0||e-2>a.layout.gridWidth)return;const s=this.offY+a.config.xaxis.axisTicks.offsetY;if(t=t+s+a.config.xaxis.axisTicks.height,a.config.xaxis.position==="top"&&(t=s-a.config.xaxis.axisTicks.height),a.config.xaxis.axisTicks.show){const l=new ve(this.w).drawLine(e+a.config.xaxis.axisTicks.offsetX,s+a.config.xaxis.offsetY,i+a.config.xaxis.axisTicks.offsetX,t+a.config.xaxis.offsetY,a.config.xaxis.axisTicks.color);r.add(l),l.node.classList.add("apexcharts-xaxis-tick")}}getXAxisTicksPositions(){const e=this.w,t=[],r=this.xaxisLabels.length;let a=e.globals.padHorizontal;if(e.labelData.timescaleLabels.length>0)for(let i=0;i<r;i++)a=this.xaxisLabels[i].position,t.push(a);else{const i=r;for(let s=0;s<i;s++){let o=i;e.axisFlags.isXNumeric&&e.config.chart.type!=="bar"&&(o-=1),a=a+e.layout.gridWidth/o,t.push(a)}}return t}xAxisLabelCorrections(){var e,t,r;const a=this.w,i=new ve(this.w),s=a.dom.baseEl.querySelector(".apexcharts-xaxis-texts-g"),o=a.dom.baseEl.querySelectorAll(".apexcharts-xaxis-texts-g text:not(.apexcharts-xaxis-group-label)"),l=a.dom.baseEl.querySelectorAll(".apexcharts-yaxis-inversed text"),u=a.dom.baseEl.querySelectorAll(".apexcharts-xaxis-inversed-texts-g text tspan");if(a.layout.rotateXLabels||a.config.xaxis.labels.rotateAlways)for(let d=0;d<o.length;d++){const f=i.rotateAroundCenter(o[d]);f.y=f.y-1,f.x=f.x+1,o[d].setAttribute("transform",`rotate(${a.config.xaxis.labels.rotate} ${f.x} ${f.y})`),o[d].setAttribute("text-anchor","end"),s?.setAttribute("transform","translate(0, -10)");const g=o[d].childNodes;a.config.xaxis.labels.trim&&Array.prototype.forEach.call(g,p=>{i.placeTextWithEllipsis(p,p.textContent,a.layout.xAxisLabelsHeight-(a.config.legend.position==="bottom"?20:10))})}else{const d=a.layout.gridWidth/(a.labelData.labels.length+1);for(let f=0;f<o.length;f++){const g=o[f].childNodes;a.config.xaxis.labels.trim&&a.config.xaxis.type!=="datetime"&&Array.prototype.forEach.call(g,p=>{i.placeTextWithEllipsis(p,p.textContent,d)})}}if(l.length>0){const d=l[l.length-1].getBBox(),f=l[0].getBBox();d.x<-20&&((e=l[l.length-1].parentNode)==null||e.removeChild(l[l.length-1])),f.x+f.width>a.layout.gridWidth&&!a.globals.isBarHorizontal&&((t=l[0].parentNode)==null||t.removeChild(l[0]));for(let g=0;g<u.length;g++)i.placeTextWithEllipsis(u[g],(r=u[g].textContent)!=null?r:"",a.config.yaxis[0].labels.maxWidth-(a.config.yaxis[0].title.text?parseFloat(a.config.yaxis[0].title.style.fontSize)*2:0)-15)}}}class bj{constructor(e,t){this.w=e,this.ctx=t,this.xaxisLabels=e.labelData.labels.slice(),this.axesUtils=new xo(t.w,{theme:t.theme,timeScale:t.timeScale}),this.isRangeBar=e.rangeData.seriesRange.length&&e.globals.isBarHorizontal,e.labelData.timescaleLabels.length>0&&(this.xaxisLabels=e.labelData.timescaleLabels.slice())}drawGridArea(e=null){const t=this.w,r=new ve(this.w);e||(e=r.group({class:"apexcharts-grid"}));const a=r.drawLine(t.globals.padHorizontal,1,t.globals.padHorizontal,t.layout.gridHeight,"transparent"),i=r.drawLine(t.globals.padHorizontal,t.layout.gridHeight,t.layout.gridWidth,t.layout.gridHeight,"transparent");return e.add(i),e.add(a),e}drawGrid(){if(this.w.globals.axisCharts){const t=this.renderGrid();return this.drawGridArea(t.el),t}return null}createGridMask(){const e=this.w,t=e.globals,r=new ve(this.w),a=Array.isArray(e.config.stroke.width)?Math.max(...e.config.stroke.width):e.config.stroke.width,i=f=>{const g=ke.createElementNS(xn,"clipPath");return g.setAttribute("id",f),g};e.dom.elGridRectMask=i(`gridRectMask${t.cuid}`),e.dom.elGridRectBarMask=i(`gridRectBarMask${t.cuid}`),e.dom.elGridRectMarkerMask=i(`gridRectMarkerMask${t.cuid}`),e.dom.elForecastMask=i(`forecastMask${t.cuid}`),e.dom.elNonForecastMask=i(`nonForecastMask${t.cuid}`);const s=["bar","rangeBar","candlestick","boxPlot","violin"].includes(e.config.chart.type)||e.globals.comboBarCount>0;let o=0,l=0;s&&e.axisFlags.isXNumeric&&!e.globals.isBarHorizontal&&(o=Math.max(e.config.grid.padding.left,t.barPadForNumericAxis),l=Math.max(e.config.grid.padding.right,t.barPadForNumericAxis)),e.dom.elGridRect=r.drawRect(-a/2-2,-a/2-2,e.layout.gridWidth+a+4,e.layout.gridHeight+a+4,0,"#fff"),e.dom.elGridRectBar=r.drawRect(-a/2-o-2,-a/2-2,e.layout.gridWidth+a+l+o+4,e.layout.gridHeight+a+4,0,"#fff");const u=e.globals.markers.largestSize;e.dom.elGridRectMarker=r.drawRect(Math.min(-a/2-o-2,-u),-u,e.layout.gridWidth+Math.max(a+l+o+4,u*2),e.layout.gridHeight+u*2,0,"#fff"),e.dom.elGridRectMask.appendChild(e.dom.elGridRect.node),e.dom.elGridRectBarMask.appendChild(e.dom.elGridRectBar.node),e.dom.elGridRectMarkerMask.appendChild(e.dom.elGridRectMarker.node);const d=e.dom.elDefs.node;d.appendChild(e.dom.elGridRectMask),d.appendChild(e.dom.elGridRectBarMask),d.appendChild(e.dom.elGridRectMarkerMask),d.appendChild(e.dom.elForecastMask),d.appendChild(e.dom.elNonForecastMask)}_drawGridLines({i:e,x1:t,y1:r,x2:a,y2:i,xCount:s,parent:o}){const l=this.w;if(!(e===0&&l.globals.skipFirstTimelinelabel||e===s-1&&l.globals.skipLastTimelinelabel&&!l.config.xaxis.labels.formatter||l.config.chart.type==="radar")){l.config.grid.xaxis.lines.show&&this._drawGridLine({i:e,x1:t,y1:r,x2:a,y2:i,xCount:s,parent:o});let d=0;if(l.labelData.hasXaxisGroups&&l.config.xaxis.tickPlacement==="between"){const g=l.labelData.groups;if(g){let p=0;for(let b=0;p<e&&b<g.length;b++)p+=g[b].cols;p===e&&(d=l.layout.xAxisLabelsHeight*.6)}}new bh(this.w,this.ctx).drawXaxisTicks(t,d,l.dom.elGraphical)}}_drawGridLine({i:e,x1:t,y1:r,x2:a,y2:i,xCount:s,parent:o}){const l=this.w,u=o.node.classList.contains("apexcharts-gridlines-horizontal"),d=l.globals.barPadForNumericAxis,f=r===0&&i===0||t===0&&a===0||r===l.layout.gridHeight&&i===l.layout.gridHeight||l.globals.isBarHorizontal&&(e===0||e===s-1),p=new ve(this.w).drawLine(t-(u?d:0),r,a+(u?d:0),i,l.config.grid.borderColor,l.config.grid.strokeDashArray);p.node.classList.add("apexcharts-gridline"),f&&l.config.grid.show?this.elGridBorders.add(p):o.add(p)}_drawGridBandRect({c:e,x1:t,y1:r,x2:a,y2:i,type:s}){const o=this.w,l=new ve(this.w),u=o.globals.barPadForNumericAxis,d=o.config.grid[s].colors[e],f=l.drawRect(t-(s==="row"?u:0),r,a+(s==="row"?u*2:0),i,0,d,o.config.grid[s].opacity);this.elg.add(f),f.attr("clip-path",`url(#gridRectMask${o.globals.cuid})`),f.node.classList.add(`apexcharts-grid-${s}`)}_drawXYLines({xCount:e,tickAmount:t}){var r;const a=this.w,i=({xC:o,x1:l,y1:u,x2:d,y2:f})=>{for(let g=0;g<o;g++)l=this.xaxisLabels[g].position,d=this.xaxisLabels[g].position,this._drawGridLines({i:g,x1:l,y1:u,x2:d,y2:f,xCount:e,parent:this.elgridLinesV})},s=({xC:o,x1:l,y1:u,x2:d,y2:f})=>{for(let g=0;g<o+(a.axisFlags.isXNumeric?0:1);g++)g===0&&o===1&&a.globals.dataPoints===1&&(l=a.layout.gridWidth/2,d=l),this._drawGridLines({i:g,x1:l,y1:u,x2:d,y2:f,xCount:e,parent:this.elgridLinesV}),l+=a.layout.gridWidth/(a.axisFlags.isXNumeric?o-1:o),d=l};if(a.config.grid.xaxis.lines.show||a.config.xaxis.axisTicks.show){const o=a.globals.padHorizontal,l=0;let u;const d=a.layout.gridHeight;a.labelData.timescaleLabels.length?i({xC:e,x1:o,y1:l,x2:u,y2:d}):(a.axisFlags.isXNumeric&&(e=(r=a.globals.xAxisScale)==null?void 0:r.result.length),s({xC:e,x1:o,y1:l,x2:u,y2:d}))}if(a.config.grid.yaxis.lines.show){let l=0,u=0;const d=a.layout.gridWidth;let f=t+1;this.isRangeBar&&(f=a.labelData.labels.length);for(let g=0;g<f+(this.isRangeBar?1:0);g++)this._drawGridLine({i:g,xCount:f+(this.isRangeBar?1:0),x1:0,y1:l,x2:d,y2:u,parent:this.elgridLinesH}),l+=a.layout.gridHeight/(this.isRangeBar?f:t),u=l}}_drawInvertedXYLines({xCount:e}){const t=this.w;if(t.config.grid.xaxis.lines.show||t.config.xaxis.axisTicks.show){let r=t.globals.padHorizontal;const a=0;let i;const s=t.layout.gridHeight;for(let o=0;o<e+1;o++)t.config.grid.xaxis.lines.show&&this._drawGridLine({i:o,xCount:e+1,x1:r,y1:a,x2:i,y2:s,parent:this.elgridLinesV}),new bh(this.w,this.ctx).drawXaxisTicks(r,0,t.dom.elGraphical),r+=t.layout.gridWidth/e,i=r}if(t.config.grid.yaxis.lines.show){let a=0,i=0;const s=t.layout.gridWidth;for(let o=0;o<t.globals.dataPoints+1;o++)this._drawGridLine({i:o,xCount:t.globals.dataPoints+1,x1:0,y1:a,x2:s,y2:i,parent:this.elgridLinesH}),a+=t.layout.gridHeight/t.globals.dataPoints,i=a}}renderGrid(){var e,t,r;const a=this.w,i=a.globals,s=new ve(this.w);this.elg=s.group({class:"apexcharts-grid"}),this.elgridLinesH=s.group({class:"apexcharts-gridlines-horizontal"}),this.elgridLinesV=s.group({class:"apexcharts-gridlines-vertical"}),this.elGridBorders=s.group({class:"apexcharts-grid-borders"}),this.elg.add(this.elgridLinesH),this.elg.add(this.elgridLinesV),a.config.grid.show||(this.elgridLinesV.hide(),this.elgridLinesH.hide(),this.elGridBorders.hide());let o=0;for(;o<i.seriesYAxisMap.length&&i.ignoreYAxisIndexes.includes(o);)o++;o===i.seriesYAxisMap.length&&(o=0);let l=i.yAxisScale[o].result.length-1,u;return!i.isBarHorizontal||this.isRangeBar?(u=this.xaxisLabels.length,this.isRangeBar&&(l=a.labelData.labels.length,a.config.xaxis.tickAmount&&a.config.xaxis.labels.formatter&&(u=a.config.xaxis.tickAmount),((r=(t=(e=i.yAxisScale)==null?void 0:e[o])==null?void 0:t.result)==null?void 0:r.length)>0&&a.config.xaxis.type!=="datetime"&&(u=i.yAxisScale[o].result.length-1)),this._drawXYLines({xCount:u,tickAmount:l})):(u=l,l=i.xTickAmount,this._drawInvertedXYLines({xCount:u,tickAmount:l})),this.drawGridBands(u,l),{el:this.elg,elGridBorders:this.elGridBorders,xAxisTickWidth:a.layout.gridWidth/u}}drawGridBands(e,t){var r,a,i,s,o;const l=this.w,u=(d,f,g,p,b,y)=>{for(let x=0,S=0;x<f;x++,S++)S>=l.config.grid[d].colors.length&&(S=0),this._drawGridBandRect({c:S,x1:g,y1:p,x2:b,y2:y,type:d}),p+=l.layout.gridHeight/t};if(((r=l.config.grid.row.colors)==null?void 0:r.length)>0&&u("row",t,0,0,l.layout.gridWidth,l.layout.gridHeight/t),((a=l.config.grid.column.colors)==null?void 0:a.length)>0){let d=!l.globals.isBarHorizontal&&l.config.xaxis.tickPlacement==="on"&&(l.config.xaxis.type==="category"||l.config.xaxis.convertedCatToNumeric)?e-1:e;l.axisFlags.isXNumeric&&(d=((s=(i=l.globals.xAxisScale)==null?void 0:i.result.length)!=null?s:1)-1);let f=l.globals.padHorizontal;const g=0;let p=l.globals.padHorizontal+l.layout.gridWidth/d;const b=l.layout.gridHeight;for(let y=0,x=0;y<e;y++,x++)x>=l.config.grid.column.colors.length&&(x=0),l.config.xaxis.type==="datetime"&&(f=this.xaxisLabels[y].position,p=(((o=this.xaxisLabels[y+1])==null?void 0:o.position)||l.layout.gridWidth)-this.xaxisLabels[y].position),this._drawGridBandRect({c:x,x1:f,y1:g,x2:p,y2:b,type:"column"}),f+=l.layout.gridWidth/d}}}class yj{constructor(e){this.w=e,this.coreUtils=new Zn(this.w)}niceScale(e,t,r=0){const i=this.w,s=i.globals;let o,l,u,d;s.isBarHorizontal?(o=i.config.xaxis,l=Math.max((s.svgWidth-100)/25,2)):(o=i.config.yaxis[r],l=Math.max((s.svgHeight-100)/15,2)),ee.isNumber(l)||(l=10),u=o.min!==void 0&&o.min!==null,d=o.max!==void 0&&o.min!==null;let f=o.stepSize!==void 0&&o.stepSize!==null,g=o.tickAmount!==void 0&&o.tickAmount!==null,p=g?o.tickAmount:aE[Math.min(Math.round(l/2),aE.length-1)];if(s.isMultipleYAxis&&!g&&s.multiAxisTickAmount>0&&(p=s.multiAxisTickAmount,g=!0),p==="dataPoints"?p=s.dataPoints-1:p=Math.abs(Math.round(p)),(e===Number.MIN_VALUE&&t===0||!ee.isNumber(e)&&!ee.isNumber(t)||e===Number.MIN_VALUE&&t===-Number.MAX_VALUE)&&(e=ee.isNumber(o.min)?o.min:0,t=ee.isNumber(o.max)?o.max:e+p,s.allSeriesCollapsed=!1),e>t){console.warn("axis.min cannot be greater than axis.max: swapping min and max");const $=t;t=e,e=$}else e===t&&(e=e===0?0:e-1,t=t===0?2:t+1);const b=[];p<1&&(p=1);let y=p,x=Math.abs(t-e);const S=.15;!u&&e>0&&e/x<S&&(e=0,u=!0),!d&&t<0&&-t/x<S&&(t=0,d=!0),x=Math.abs(t-e);let C=x/y,O=C;const D=Math.floor(Math.log10(O)),M=Math.pow(10,D);let A=Math.ceil(O/M);if(A=gj[s.yValueDecimal===0?0:1][A],O=A*M,C=O,s.isBarHorizontal&&o.stepSize&&o.type!=="datetime"?(C=o.stepSize,f=!0):f&&(C=o.stepSize),f&&o.forceNiceScale){const $=Math.floor(Math.log10(C));C*=Math.pow(10,D-$)}if(u&&d){let $=x/y;if(g)if(f)if(ee.mod(x,C)!=0){const Y=ee.getGCD(C,$);$/Y<10?C=Y:C=$}else ee.mod(C,$)==0?C=$:($=C,g=!1);else C=$;else if(f)ee.mod(x,C)==0?$=C:C=$;else if(ee.mod(x,C)==0)$=C;else{y=Math.ceil(x/C),$=x/y;const Y=ee.getGCD(x,C);x/Y<l&&($=Y),C=$}y=Math.round(x/C)}else{if(!u&&!d)if(s.isMultipleYAxis&&g){const $=C*Math.floor(e/C);let Y=$+C*y;Y<t&&(C*=2),e=$,Y=t,t=e+C*y,x=Math.abs(t-e),e>0&&e<Math.abs(Y-t)&&(e=0,t=C*y),t<0&&-t<Math.abs($-e)&&(t=0,e=-C*y)}else e=C*Math.floor(e/C),t=C*Math.ceil(t/C);else if(d)if(g)e=t-C*y;else{const $=e;e=C*Math.floor(e/C),Math.abs(t-e)/ee.getGCD(x,C)>l&&(e=t-C*p,e+=C*Math.floor(($-e)/C))}else if(u)if(g)t=e+C*y;else{const $=t;t=C*Math.ceil(t/C),Math.abs(t-e)/ee.getGCD(x,C)>l&&(t=e+C*p,t+=C*Math.ceil(($-t)/C))}x=Math.abs(t-e),C=ee.getGCD(x,C),y=Math.round(x/C)}if(!g&&!(u||d)&&(y=Math.ceil((x-1e-11)/(C+1e-11)),y>16&&ee.getPrimeFactors(y).length<2&&y++),!g&&o.forceNiceScale&&s.yValueDecimal===0&&y>x&&(y=x,C=Math.round(x/y)),y>l&&(!(g||f)||o.forceNiceScale)){const $=ee.getPrimeFactors(y),Y=$.length-1;let k=y;e:for(var T=0;T<Y;T++)for(var P=0;P<=Y-T;P++){const H=Math.min(P+T,Y);let F=k,B=1;for(var R=P;R<=H;R++)B*=$[R];if(F/=B,F<l){k=F;break e}}k===y?C=x:C=x/k,y=Math.round(x/C)}s.isMultipleYAxis&&s.multiAxisTickAmount==0&&s.ignoreYAxisIndexes.indexOf(r)<0&&(s.multiAxisTickAmount=y);let N=e-C;const I=C*1e-11;do N+=C,b.push(ee.stripNumber(N,7));while(t-N>I);return{result:b,niceMin:b[0],niceMax:b[b.length-1]}}linearScale(e,t,r=10,a=0,i=void 0){const s=Math.abs(t-e);let o=[];if(e===t)return o=[e],{result:o,niceMin:o[0],niceMax:o[o.length-1]};r=this._adjustTicksForSmallRange(r,a,s),r==="dataPoints"&&(r=this.w.globals.dataPoints-1);const l=r;i||(i=s/l);const u=2;if(i!==0&&isFinite(i)){const g=Math.floor(Math.log10(Math.abs(i))),p=Math.max(u,-g+u),b=Math.pow(10,p);i=Math.round((i+Number.EPSILON)*b)/b}let d=r===Number.MAX_VALUE?5:l;r===Number.MAX_VALUE&&(i=1);let f=e;for(;d>=0;)o.push(f),f=ee.preciseAddition(f,i),d-=1;return{result:o,niceMin:o[0],niceMax:o[o.length-1]}}logarithmicScaleNice(e,t,r){t<=0&&(t=Math.max(e,r)),e<=0&&(e=Math.min(t,r));const a=[],i=Math.ceil(Math.log(t)/Math.log(r)+1),s=Math.floor(Math.log(e)/Math.log(r));for(let o=s;o<i;o++)a.push(Math.pow(r,o));return{result:a,niceMin:a[0],niceMax:a[a.length-1]}}logarithmicScale(e,t,r){t<=0&&(t=Math.max(e,r)),e<=0&&(e=Math.min(t,r));const a=[],i=Math.log(t)/Math.log(r),s=Math.log(e)/Math.log(r),o=i-s,l=Math.round(o),u=o/l;for(let d=0,f=s;d<l;d++,f+=u)a.push(Math.pow(r,f));return a.push(Math.pow(r,i)),{result:a,niceMin:e,niceMax:t}}_adjustTicksForSmallRange(e,t,r){let a=e;if(typeof t<"u"&&this.w.config.yaxis[t].labels.formatter&&this.w.config.yaxis[t].tickAmount===void 0){const i=Number(this.w.config.yaxis[t].labels.formatter(1));ee.isNumber(i)&&this.w.globals.yValueDecimal===0&&(a=Math.ceil(r))}return a<e?a:e}setYScaleForIndex(e,t,r){const a=this.w.globals,i=this.w.config,s=a.isBarHorizontal?i.xaxis:i.yaxis[e];typeof a.yAxisScale[e]>"u"&&(a.yAxisScale[e]=[]);const o=Math.abs(r-t);s.logarithmic&&o<=5&&(a.invalidLogScale=!0),s.logarithmic&&o>5?(a.allSeriesCollapsed=!1,a.yAxisScale[e]=s.forceNiceScale?this.logarithmicScaleNice(t,r,s.logBase):this.logarithmicScale(t,r,s.logBase)):r===-Number.MAX_VALUE||!ee.isNumber(r)||t===Number.MAX_VALUE||!ee.isNumber(t)?a.yAxisScale[e]=this.niceScale(Number.MIN_VALUE,0,e):(a.allSeriesCollapsed=!1,a.yAxisScale[e]=this.niceScale(t,r,e))}setXScale(e,t){const r=this.w,a=r.globals;if(t===-Number.MAX_VALUE||!ee.isNumber(t))a.xAxisScale=this.linearScale(0,10,10);else{const i=a.xTickAmount;a.xAxisScale=this.linearScale(e,t,i,0,r.config.xaxis.max===void 0?r.config.xaxis.stepSize:void 0)}return a.xAxisScale}scaleMultipleYAxes(){const e=this.w.config,t=this.w.globals;this.coreUtils.setSeriesYAxisMappings();const r=t.seriesYAxisMap,a=t.minYArr,i=t.maxYArr,s=[],o=!t.isBarHorizontal;if(t.allSeriesCollapsed=!0,t.barGroups=[],r.forEach((l,u)=>{const d=[];if(l.forEach(f=>{var g;const p=(g=e.series[f])==null?void 0:g.group;d.indexOf(p)<0&&d.push(p)}),l.length>0){let f=Number.MAX_VALUE,g=-Number.MAX_VALUE,p=f,b=g,y,x;if(e.chart.stacked){const O=new Array(t.dataPoints).fill(0),D=[],M=[],A=[];d.forEach(()=>{D.push(O.map(()=>Number.MIN_VALUE)),M.push(O.map(()=>Number.MIN_VALUE)),A.push(O.map(()=>Number.MIN_VALUE))});for(let T=0;T<l.length;T++){!y&&e.series[l[T]].type&&(y=e.series[l[T]].type);const P=l[T];e.series[P].group?x=e.series[P].group:x="axis-".concat(u.toString()),!(t.collapsedSeriesIndices.indexOf(P)<0&&t.ancillaryCollapsedSeriesIndices.indexOf(P)<0)||(t.allSeriesCollapsed=!1,d.forEach((N,I)=>{if(e.series[P].group===N)for(let $=0;$<this.w.seriesData.series[P].length;$++){const Y=this.w.seriesData.series[P][$];Y>=0?M[I][$]+=Y:A[I][$]+=Y,D[I][$]+=Y,p=Math.min(p,Y),b=Math.max(b,Y)}})),(y==="bar"||y==="column")&&t.barGroups.push(x)}y||(y=e.chart.type),y==="bar"||y==="column"?d.forEach((T,P)=>{f=Math.min(f,Math.min.apply(null,A[P])),g=Math.max(g,Math.max.apply(null,M[P]))}):(d.forEach((T,P)=>{p=Math.min(p,Math.min.apply(null,D[P])),b=Math.max(b,Math.max.apply(null,D[P]))}),f=p,g=b),f===Number.MIN_VALUE&&g===Number.MIN_VALUE&&(g=-Number.MAX_VALUE)}else for(let O=0;O<l.length;O++){const D=l[O];f=Math.min(f,a[D]),g=Math.max(g,i[D]),!(t.collapsedSeriesIndices.indexOf(D)<0&&t.ancillaryCollapsedSeriesIndices.indexOf(D)<0)||(t.allSeriesCollapsed=!1)}e.yaxis[u].min!==void 0&&(typeof e.yaxis[u].min=="function"?f=e.yaxis[u].min(f):f=e.yaxis[u].min),e.yaxis[u].max!==void 0&&(typeof e.yaxis[u].max=="function"?g=e.yaxis[u].max(g):g=e.yaxis[u].max),t.barGroups=t.barGroups.filter((O,D,M)=>M.indexOf(O)===D);const S=e.yaxis[u];o&&S.alignZero===!0&&!S.logarithmic&&S.min===void 0&&S.max===void 0&&t.ignoreYAxisIndexes.indexOf(u)<0&&ee.isNumber(f)&&ee.isNumber(g)?s.push({ai:u,minY:f,maxY:g}):(this.setYScaleForIndex(u,f,g),l.forEach(O=>{a[O]=t.yAxisScale[u].niceMin,i[O]=t.yAxisScale[u].niceMax}))}else this.setYScaleForIndex(u,0,-Number.MAX_VALUE)}),s.length>=2){s.forEach(d=>{this.setYScaleForIndex(d.ai,d.minY,d.maxY),r[d.ai].forEach(f=>{a[f]=t.yAxisScale[d.ai].niceMin,i[f]=t.yAxisScale[d.ai].niceMax})});let l=0;s.forEach(d=>{const f=t.yAxisScale[d.ai],g=f.niceMax-f.niceMin;if(g>0){const p=-f.niceMin/g;p>l&&(l=p)}}),l>1&&(l=1),l<0&&(l=0);const u=d=>{if(d<=0)return 1;const f=Math.floor(Math.log10(d)),g=Math.pow(10,f),p=d/g;let b;return p<=1+1e-9?b=1:p<=2+1e-9?b=2:p<=2.5+1e-9?b=2.5:p<=5+1e-9?b=5:b=10,b*g};s.forEach(d=>{const f=t.yAxisScale[d.ai];if(!f.result||f.result.length<2)return;const g=f.niceMax-f.niceMin;if(g<=0)return;const p=-f.niceMin/g;if(Math.abs(p-l)<=1e-9)return;const b=p<l&&l<1-1e-9,y=!b&&p>l&&l>1e-9;if(!b&&!y)return;const x=b?-l*f.niceMax/(1-l):f.niceMin,S=y?-f.niceMin*(1-l)/l:f.niceMax,C=S-x;if(C<=0)return;const O=Math.max(f.result.length,5),D=u(C/Math.max(O-1,1));if(D<=0)return;let M,A;if(b){M=Math.floor(x/D+1e-9)*D;const T=l>1e-9?M*(l-1)/l:f.niceMax,P=Math.max(T,f.niceMax);A=Math.ceil(P/D-1e-9)*D}else{A=Math.ceil(S/D-1e-9)*D;const T=l<1-1e-9?-l*A/(1-l):f.niceMin,P=Math.min(T,f.niceMin);M=Math.floor(P/D+1e-9)*D}f.result=[];for(let T=M;T<=A+D*1e-9;T=ee.preciseAddition(T,D))f.result.push(ee.stripNumber(T,7));f.niceMin=M,f.niceMax=A,r[d.ai].forEach(T=>{a[T]=f.niceMin,i[T]=f.niceMax})})}else if(s.length===1){const l=s[0];this.setYScaleForIndex(l.ai,l.minY,l.maxY),r[l.ai].forEach(u=>{a[u]=t.yAxisScale[l.ai].niceMin,i[u]=t.yAxisScale[l.ai].niceMax})}}}class iE{constructor(e){this.w=e,this.scales=new yj(this.w)}init(){this.setYRange(),this.setXRange(),this.setZRange()}getMinYMaxY(e,t=Number.MAX_VALUE,r=-Number.MAX_VALUE,a=null){var i,s,o,l,u,d,f,g;const p=this.w.config,b=this.w.globals;let y=-Number.MAX_VALUE,x=Number.MIN_VALUE;a===null&&(a=e+1);const S=this.w.seriesData.series;let C=S,O=S;p.chart.type==="candlestick"?(C=this.w.candleData.seriesCandleL,O=this.w.candleData.seriesCandleH):p.chart.type==="boxPlot"?(C=this.w.candleData.seriesCandleO,O=this.w.candleData.seriesCandleC):p.chart.type==="violin"?(C=this.w.violinData.seriesViolinMin,O=this.w.violinData.seriesViolinMax):this.w.axisFlags.isRangeData&&(C=this.w.rangeData.seriesRangeStart,O=this.w.rangeData.seriesRangeEnd);let D=!1;if(this.w.seriesData.seriesX.length>=a){const M=(i=b.brushSource)==null?void 0:i.w.config.chart.brush;(p.chart.zoom.enabled&&p.chart.zoom.autoScaleYaxis||M?.enabled&&M?.autoScaleYaxis)&&(D=!0)}for(let M=e;M<a;M++){b.dataPoints=Math.max(b.dataPoints,S[M].length);const A=p.series[M].type;this.w.labelData.categoryLabels.length&&(b.dataPoints=this.w.labelData.categoryLabels.filter(R=>typeof R<"u").length),this.w.labelData.labels.length&&p.xaxis.type!=="datetime"&&this.w.seriesData.series.reduce((R,N)=>R+N.length,0)!==0&&(b.dataPoints=Math.max(b.dataPoints,this.w.labelData.labels.length));let T=0,P=S[M].length-1;if(D){if(p.xaxis.min)for(;T<P&&this.w.seriesData.seriesX[M][T]<p.xaxis.min;T++);if(p.xaxis.max)for(;P>T&&this.w.seriesData.seriesX[M][P]>p.xaxis.max;P--);}for(let R=T;R<=P&&R<this.w.seriesData.series[M].length;R++){let N=S[M][R];if(N!==null&&ee.isNumber(N)){switch(typeof((s=O[M])==null?void 0:s[R])<"u"&&(y=Math.max(y,O[M][R]),t=Math.min(t,O[M][R])),typeof((o=C[M])==null?void 0:o[R])<"u"&&(t=Math.min(t,C[M][R]),r=Math.max(r,C[M][R])),A){case"candlestick":typeof this.w.candleData.seriesCandleC[M][R]<"u"&&(y=Math.max(y,this.w.candleData.seriesCandleH[M][R]),t=Math.min(t,this.w.candleData.seriesCandleL[M][R]));break;case"boxPlot":typeof this.w.candleData.seriesCandleC[M][R]<"u"&&(y=Math.max(y,this.w.candleData.seriesCandleC[M][R]),t=Math.min(t,this.w.candleData.seriesCandleO[M][R]));break;case"violin":typeof((l=this.w.violinData.seriesViolinMax[M])==null?void 0:l[R])<"u"&&(y=Math.max(y,this.w.violinData.seriesViolinMax[M][R]),t=Math.min(t,this.w.violinData.seriesViolinMin[M][R]));break}if(A&&A!=="candlestick"&&A!=="boxPlot"&&A!=="violin"&&A!=="rangeArea"&&A!=="rangeBar"&&(y=Math.max(y,this.w.seriesData.series[M][R]),t=Math.min(t,this.w.seriesData.series[M][R])),this.w.seriesData.seriesGoals[M]&&this.w.seriesData.seriesGoals[M][R]&&Array.isArray(this.w.seriesData.seriesGoals[M][R])&&this.w.seriesData.seriesGoals[M][R].forEach(I=>{y=Math.max(y,I.value),t=Math.min(t,I.value)}),this.w.config.chart.type==="boxPlot"||A==="boxPlot"){const I=(d=(u=this.w.candleData.seriesBoxPoints)==null?void 0:u[M])==null?void 0:d[R];if(I)for(let $=0;$<I.length;$++){const Y=I[$];typeof Y=="number"&&(y=Math.max(y,Y),t=Math.min(t,Y))}}r=y,N=ee.noExponents(N),ee.isFloat(N)&&(b.yValueDecimal=Math.max(b.yValueDecimal,N.toString().split(".")[1].length)),x>((f=C[M])==null?void 0:f[R])&&((g=C[M])==null?void 0:g[R])<0&&(x=C[M][R])}else b.hasNullValues=!0}(A==="bar"||A==="column")&&(x<0&&y<0&&(y=0,r=Math.max(r,0)),x===Number.MIN_VALUE&&(x=0,t=Math.min(t,0)))}return p.chart.type==="rangeBar"&&this.w.rangeData.seriesRangeStart.length&&b.isBarHorizontal&&(x=t),p.chart.type==="bar"&&(x<0&&y<0&&(y=0),x===Number.MIN_VALUE&&(x=0)),{minY:x,maxY:y,lowestY:t,highestY:r}}setYRange(){const e=this.w.globals,t=this.w.config;e.maxY=-Number.MAX_VALUE,e.minY=Number.MIN_VALUE;let r=Number.MAX_VALUE,a;if(e.isMultipleYAxis){r=Number.MAX_VALUE;for(let i=0;i<this.w.seriesData.series.length;i++)a=this.getMinYMaxY(i),e.minYArr[i]=a.lowestY,e.maxYArr[i]=a.highestY,r=Math.min(r,a.lowestY)}return a=this.getMinYMaxY(0,r,void 0,this.w.seriesData.series.length),t.chart.type==="bar"?(e.minY=a.minY,e.maxY=a.maxY):(e.minY=a.lowestY,e.maxY=a.highestY),r=a.lowestY,t.chart.stacked&&this._setStackedMinMax(),t.chart.type==="line"||t.chart.type==="area"||t.chart.type==="scatter"||t.chart.type==="candlestick"||t.chart.type==="boxPlot"||t.chart.type==="violin"||t.chart.type==="rangeBar"&&!e.isBarHorizontal?e.minY===Number.MIN_VALUE&&r!==-Number.MAX_VALUE&&r!==e.maxY&&(e.minY=r):e.minY=e.minY!==Number.MIN_VALUE?Math.min(a.minY,e.minY):a.minY,t.yaxis.forEach((i,s)=>{i.max!==void 0&&(typeof i.max=="number"?e.maxYArr[s]=i.max:typeof i.max=="function"&&(e.maxYArr[s]=i.max(e.isMultipleYAxis?e.maxYArr[s]:e.maxY)),e.maxY=e.maxYArr[s]),i.min!==void 0&&(typeof i.min=="number"?e.minYArr[s]=i.min:typeof i.min=="function"&&(e.minYArr[s]=i.min(e.isMultipleYAxis?e.minYArr[s]===Number.MIN_VALUE?0:e.minYArr[s]:e.minY)),e.minY=e.minYArr[s])}),e.isBarHorizontal&&["min","max"].forEach(s=>{t.xaxis[s]!==void 0&&typeof t.xaxis[s]=="number"&&(s==="min"?e.minY=t.xaxis[s]:e.maxY=t.xaxis[s])}),e.isMultipleYAxis?(this.scales.scaleMultipleYAxes(),e.minY=r):(this.scales.setYScaleForIndex(0,e.minY,e.maxY),e.minY=e.yAxisScale[0].niceMin,e.maxY=e.yAxisScale[0].niceMax,e.minYArr[0]=e.minY,e.maxYArr[0]=e.maxY),e.barGroups=[],e.lineGroups=[],e.areaGroups=[],t.series.forEach(i=>{const s=i;switch(s.type||t.chart.type){case"bar":case"column":e.barGroups.push(s.group);break;case"line":e.lineGroups.push(s.group);break;case"area":e.areaGroups.push(s.group);break}}),e.barGroups=e.barGroups.filter((i,s,o)=>o.indexOf(i)===s),e.lineGroups=e.lineGroups.filter((i,s,o)=>o.indexOf(i)===s),e.areaGroups=e.areaGroups.filter((i,s,o)=>o.indexOf(i)===s),{minY:e.minY,maxY:e.maxY,minYArr:e.minYArr,maxYArr:e.maxYArr,yAxisScale:e.yAxisScale}}setXRange(){const e=this.w.globals,t=this.w.config,r=t.xaxis.type==="numeric"||t.xaxis.type==="datetime"||t.xaxis.type==="category"&&!this.w.axisFlags.noLabelsProvided||this.w.axisFlags.noLabelsProvided||this.w.axisFlags.isXNumeric,a=()=>{for(let i=0;i<this.w.seriesData.series.length;i++)if(this.w.labelData.labels[i])for(let s=0;s<this.w.labelData.labels[i].length;s++)this.w.labelData.labels[i][s]!==null&&ee.isNumber(this.w.labelData.labels[i][s])&&(e.maxX=Math.max(e.maxX,this.w.labelData.labels[i][s]),e.initialMaxX=Math.max(e.maxX,this.w.labelData.labels[i][s]),e.minX=Math.min(e.minX,this.w.labelData.labels[i][s]),e.initialMinX=Math.min(e.minX,this.w.labelData.labels[i][s]))};if(this.w.axisFlags.isXNumeric&&a(),this.w.axisFlags.noLabelsProvided&&t.xaxis.categories.length===0&&(e.maxX=this.w.labelData.labels[this.w.labelData.labels.length-1],e.initialMaxX=this.w.labelData.labels[this.w.labelData.labels.length-1],e.minX=1,e.initialMinX=1),this.w.axisFlags.isXNumeric||this.w.axisFlags.noLabelsProvided||this.w.axisFlags.dataFormatXNumeric){let i=10;if(t.xaxis.tickAmount===void 0)i=Math.round(e.svgWidth/150),t.xaxis.type==="numeric"&&e.dataPoints<30&&(i=e.dataPoints-1),i>e.dataPoints&&e.dataPoints!==0&&(i=e.dataPoints-1);else if(t.xaxis.tickAmount==="dataPoints"){if(this.w.seriesData.series.length>1&&(i=this.w.seriesData.series[e.maxValsInArrayIndex].length-1),this.w.axisFlags.isXNumeric){const s=Math.round(e.maxX-e.minX);s<30&&(i=s)}}else i=t.xaxis.tickAmount;if(e.xTickAmount=i,t.xaxis.max!==void 0&&typeof t.xaxis.max=="number"&&(e.maxX=t.xaxis.max),t.xaxis.min!==void 0&&typeof t.xaxis.min=="number"&&(e.minX=t.xaxis.min),t.xaxis.range!==void 0&&(e.minX=e.maxX-t.xaxis.range),e.minX!==Number.MAX_VALUE&&e.maxX!==-Number.MAX_VALUE)if(t.xaxis.convertedCatToNumeric&&!this.w.axisFlags.dataFormatXNumeric){const s=[];for(let o=e.minX-1;o<e.maxX;o++)s.push(o+1);e.xAxisScale={result:s,niceMin:s[0],niceMax:s[s.length-1]}}else e.xAxisScale=this.scales.setXScale(e.minX,e.maxX);else e.xAxisScale=this.scales.linearScale(0,i,i,0,t.xaxis.stepSize),this.w.axisFlags.noLabelsProvided&&this.w.labelData.labels.length>0&&(e.xAxisScale=this.scales.linearScale(1,this.w.labelData.labels.length,i-1,0,t.xaxis.stepSize),this.w.seriesData.seriesX=this.w.labelData.labels.slice());r&&(this.w.labelData.labels=e.xAxisScale.result.slice())}return e.isBarHorizontal&&this.w.labelData.labels.length&&(e.xTickAmount=this.w.labelData.labels.length),this._handleSingleDataPoint(),this._getMinXDiff(),{minX:e.minX,maxX:e.maxX}}setZRange(){const e=this.w.globals;if(this.w.axisFlags.isDataXYZ){for(let t=0;t<this.w.seriesData.series.length;t++)if(typeof this.w.seriesData.seriesZ[t]<"u")for(let r=0;r<this.w.seriesData.seriesZ[t].length;r++)this.w.seriesData.seriesZ[t][r]!==null&&ee.isNumber(this.w.seriesData.seriesZ[t][r])&&(e.maxZ=Math.max(e.maxZ,this.w.seriesData.seriesZ[t][r]),e.minZ=Math.min(e.minZ,this.w.seriesData.seriesZ[t][r]))}}_handleSingleDataPoint(){const e=this.w.globals,t=this.w.config;if(e.minX===e.maxX){const r=new Ha(this.w);if(t.xaxis.type==="datetime"){const a=r.getDate(e.minX);t.xaxis.labels.datetimeUTC?a.setUTCDate(a.getUTCDate()-2):a.setDate(a.getDate()-2),e.minX=new Date(a).getTime();const i=r.getDate(e.maxX);t.xaxis.labels.datetimeUTC?i.setUTCDate(i.getUTCDate()+2):i.setDate(i.getDate()+2),e.maxX=new Date(i).getTime()}else(t.xaxis.type==="numeric"||t.xaxis.type==="category"&&!this.w.axisFlags.noLabelsProvided)&&(e.minX=e.minX-2,e.initialMinX=e.minX,e.maxX=e.maxX+2,e.initialMaxX=e.maxX)}}_getMinXDiff(){const e=this.w.globals;this.w.axisFlags.isXNumeric&&this.w.seriesData.seriesX.forEach(t=>{if(t.length){t.length===1&&t.push(this.w.seriesData.seriesX[e.maxValsInArrayIndex][this.w.seriesData.seriesX[e.maxValsInArrayIndex].length-1]);const r=t.slice();r.sort((a,i)=>a-i),r.forEach((a,i)=>{if(i>0){const s=a-r[i-1];s>0&&(e.minXDiff=Math.min(s,e.minXDiff))}}),(e.dataPoints===1||e.minXDiff===Number.MAX_VALUE)&&(e.minXDiff=.5)}})}_setStackedMinMax(){const e=this.w.globals;if(!this.w.seriesData.series.length)return;let t=this.w.labelData.seriesGroups;t.length||(t=[this.w.seriesData.seriesNames.map(i=>i)]);const r={},a={};t.forEach(i=>{r[i]=[],a[i]=[],this.w.config.series.map((o,l)=>i.indexOf(this.w.seriesData.seriesNames[l])>-1?l:null).filter(o=>o!==null).forEach(o=>{var l,u,d,f;for(let g=0;g<this.w.seriesData.series[e.maxValsInArrayIndex].length;g++)typeof r[i][g]>"u"&&(r[i][g]=0,a[i][g]=0),(this.w.config.chart.stacked&&!e.comboCharts||this.w.config.chart.stacked&&e.comboCharts&&(!this.w.config.chart.stackOnlyBar||((u=(l=this.w.config.series)==null?void 0:l[o])==null?void 0:u.type)==="bar"||((f=(d=this.w.config.series)==null?void 0:d[o])==null?void 0:f.type)==="column"))&&this.w.seriesData.series[o][g]!==null&&ee.isNumber(this.w.seriesData.series[o][g])&&(this.w.seriesData.series[o][g]>0?r[i][g]+=parseFloat(String(this.w.seriesData.series[o][g]))+1e-4:a[i][g]+=parseFloat(String(this.w.seriesData.series[o][g])))})}),Object.entries(r).forEach(([i])=>{r[i].forEach((s,o)=>{e.maxY=Math.max(e.maxY,r[i][o]),e.minY=Math.min(e.minY,a[i][o])})})}}function sE(){return{palette1:["#008FFB","#00A86F","#CA8501","#FF4560","#846DD5"],palette2:["#6978CB","#039DE2","#49A84D","#B39105","#D68000"],palette3:["#209FCC","#648291","#D4526E","#0FA783","#A19285"],palette4:["#2FA59D","#73A20B","#099DE1","#FD5D5D","#648291"],palette5:["#2B908F","#F56566","#2EAB16","#FA4443","#1EA2BD"],palette6:["#449DD1","#F86624","#EA3A4A","#9C63D1","#899E2A"],palette7:["#DF475B","#1B998B","#7E75B7","#F46036","#B1911B"],palette8:["#9C63D1","#F86624","#B38F04","#EA3A4A","#2FA2B3"],palette9:["#98776F","#A19285","#A8705E","#BA6560","#A0927F"],palette10:["#C91EFF","#A94BFD","#6C6AFE","#2983FF","#009ED8"],cvdDeuteranopia:["#0072B2","#E69F00","#56B4E9","#009E73","#F0E442","#D55E00","#CC79A7"],cvdProtanopia:["#0077BB","#EE7733","#009988","#EE3377","#BBBBBB","#33BBEE","#CC3311"],cvdTritanopia:["#CC3311","#009988","#EE7733","#0077BB","#EE3377","#BBBBBB","#33BBEE"],highContrast:["#005A9C","#C00000","#007A33","#6C3483","#7B3F00","#0097A7","#4A235A"]}}class FM{constructor(e,{theme:t=null,timeScale:r=null}={},a){this.w=e,this.elgrid=a,this.xaxisFontSize=e.config.xaxis.labels.style.fontSize,this.axisFontFamily=e.config.xaxis.labels.style.fontFamily,this.xaxisForeColors=e.config.xaxis.labels.style.colors,this.isCategoryBarHorizontal=e.config.chart.type==="bar"&&e.config.plotOptions.bar.horizontal,this.xAxisoffX=e.config.xaxis.position==="bottom"?e.layout.gridHeight:0,this.drawnLabels=[],this.axesUtils=new xo(e,{theme:t,timeScale:r})}drawYaxis(e){const t=this.w,r=new ve(this.w),a=t.config.yaxis[e].labels.style,{fontSize:i,fontFamily:s,fontWeight:o}=a,l=r.group({class:"apexcharts-yaxis",rel:e,transform:`translate(${t.globals.translateYAxisX[e]}, 0)`});if(this.axesUtils.isYAxisHidden(e))return l;const u=r.group({class:"apexcharts-yaxis-texts-g"});l.add(u);const d=t.globals.yAxisScale[e].result.length-1,f=t.layout.gridHeight/d,g=t.formatters.yLabelFormatters[e],p=this.axesUtils.checkForReversedLabels(e,t.globals.yAxisScale[e].result.slice());if(t.config.yaxis[e].labels.show){let b=t.layout.translateY+t.config.yaxis[e].labels.offsetY;t.globals.isBarHorizontal?b=0:t.config.chart.type==="heatmap"&&(b-=f/2),b+=parseInt(i,10)/3;let y=null;for(let x=d;x>=0;x--){const S=g(p[x],x,t);let C=t.config.yaxis[e].labels.padding;t.config.yaxis[e].opposite&&t.config.yaxis.length!==0&&(C*=-1);const O=this.getTextAnchor(t.config.yaxis[e].labels.align,t.config.yaxis[e].opposite),D=this.axesUtils.getYAxisForeColor(a.colors,e),M=Array.isArray(D)?D[x]:D,A=Array.from(t.dom.baseEl.querySelectorAll(`.apexcharts-yaxis[rel='${e}'] .apexcharts-yaxis-label tspan`)).map(P=>P.textContent),T=r.drawText({x:C,y:b,text:A.includes(S)&&!t.config.yaxis[e].labels.showDuplicates?"":S,textAnchor:O,fontSize:i,fontFamily:s,fontWeight:o,maxWidth:t.config.yaxis[e].labels.maxWidth,foreColor:M,isPlainText:!1,cssClass:`apexcharts-yaxis-label ${a.cssClass}`});u.add(T),this.addTooltip(T,S),y===null&&(y=T),t.config.yaxis[e].labels.rotate!==0&&this.rotateLabel(r,T,y,t.config.yaxis[e].labels.rotate),b+=f}}return this.addYAxisTitle(r,l,e),this.addAxisBorder(r,l,e,d,f),l}getTextAnchor(e,t){return e==="left"?"start":e==="center"?"middle":e==="right"?"end":t?"start":"end"}addTooltip(e,t){const r=ke.createElementNS(xn,"title");r.textContent=Array.isArray(t)?t.join(" "):t,e.node.appendChild(r)}rotateLabel(e,t,r,a){const i=e.rotateAroundCenter(r.node),s=e.rotateAroundCenter(t.node);t.node.setAttribute("transform",`rotate(${a} ${i.x} ${s.y})`)}addYAxisTitle(e,t,r){const a=this.w;if(a.config.yaxis[r].title.text!==void 0){const i=e.group({class:"apexcharts-yaxis-title"}),s=a.config.yaxis[r].opposite?a.globals.translateYAxisX[r]:0,o=e.drawText({x:s,y:a.layout.gridHeight/2+a.layout.translateY+a.config.yaxis[r].title.offsetY,text:a.config.yaxis[r].title.text,textAnchor:"end",foreColor:a.config.yaxis[r].title.style.color,fontSize:a.config.yaxis[r].title.style.fontSize,fontWeight:a.config.yaxis[r].title.style.fontWeight,fontFamily:a.config.yaxis[r].title.style.fontFamily,cssClass:`apexcharts-yaxis-title-text ${a.config.yaxis[r].title.style.cssClass}`});i.add(o),t.add(i)}}addAxisBorder(e,t,r,a,i){const s=this.w,o=s.config.yaxis[r].axisBorder;let l=31+o.offsetX;if(s.config.yaxis[r].opposite&&(l=-31-o.offsetX),o.show){const u=e.drawLine(l,s.layout.translateY+o.offsetY-2,l,s.layout.gridHeight+s.layout.translateY+o.offsetY+2,o.color,0,o.width);t.add(u)}s.config.yaxis[r].axisTicks.show&&this.axesUtils.drawYAxisTicks(l,a,o,s.config.yaxis[r].axisTicks,r,i,t)}drawYaxisInversed(e){const t=this.w,r=new ve(this.w),a=r.group({class:"apexcharts-xaxis apexcharts-yaxis-inversed"}),i=r.group({class:"apexcharts-xaxis-texts-g",transform:`translate(${t.layout.translateXAxisX}, ${t.layout.translateXAxisY})`});a.add(i);let s=t.globals.yAxisScale[e].result.length-1;const o=t.layout.gridWidth/s+.1;let l=o+t.config.xaxis.labels.offsetX;const u=t.formatters.xLabelFormatter;let d=this.axesUtils.checkForReversedLabels(e,t.globals.yAxisScale[e].result.slice());const f=t.labelData.timescaleLabels;if(f.length>0&&(this.xaxisLabels=f.slice(),d=f.slice(),s=d.length),t.config.xaxis.labels.show)for(let g=f.length?0:s;f.length?g<f.length:g>=0;f.length?g++:g--){let p=u?.(d[g],g,t),b=t.layout.gridWidth+t.globals.padHorizontal-(l-o+t.config.xaxis.labels.offsetX);if(f.length){const x=this.axesUtils.getLabel(d,f,b,g,this.drawnLabels,this.xaxisFontSize);b=x.x,p=x.text,this.drawnLabels.push(x.text),g===0&&t.globals.skipFirstTimelinelabel&&(p=""),g===d.length-1&&t.globals.skipLastTimelinelabel&&(p="")}const y=r.drawText({x:b,y:this.xAxisoffX+t.config.xaxis.labels.offsetY+30-(t.config.xaxis.position==="top"?t.layout.xAxisHeight+t.config.xaxis.axisTicks.height-2:0),text:p,textAnchor:"middle",foreColor:Array.isArray(this.xaxisForeColors)?this.xaxisForeColors[e]:this.xaxisForeColors,fontSize:this.xaxisFontSize,fontFamily:this.axisFontFamily,fontWeight:t.config.xaxis.labels.style.fontWeight,isPlainText:!1,cssClass:`apexcharts-xaxis-label ${t.config.xaxis.labels.style.cssClass}`});i.add(y),this.addTooltip(y,p),l+=o}return this.inversedYAxisTitleText(a),this.inversedYAxisBorder(a),a}inversedYAxisBorder(e){const t=this.w,r=new ve(this.w),a=t.config.xaxis.axisBorder;if(a.show){let i=0;t.config.chart.type==="bar"&&t.axisFlags.isXNumeric&&(i-=15);const s=r.drawLine(t.globals.padHorizontal+i+a.offsetX,this.xAxisoffX,t.layout.gridWidth,this.xAxisoffX,a.color,0,a.height);this.elgrid&&this.elgrid.elGridBorders&&t.config.grid.show?this.elgrid.elGridBorders.add(s):e.add(s)}}inversedYAxisTitleText(e){const t=this.w,r=new ve(this.w);if(t.config.xaxis.title.text!==void 0){const a=r.group({class:"apexcharts-xaxis-title apexcharts-yaxis-title-inversed"}),i=r.drawText({x:t.layout.gridWidth/2+t.config.xaxis.title.offsetX,y:this.xAxisoffX+parseFloat(this.xaxisFontSize)+parseFloat(t.config.xaxis.title.style.fontSize)+t.config.xaxis.title.offsetY+20,text:t.config.xaxis.title.text,textAnchor:"middle",fontSize:t.config.xaxis.title.style.fontSize,fontFamily:t.config.xaxis.title.style.fontFamily,fontWeight:t.config.xaxis.title.style.fontWeight,foreColor:t.config.xaxis.title.style.color,cssClass:`apexcharts-xaxis-title-text ${t.config.xaxis.title.style.cssClass}`});a.add(i),e.add(a)}}yAxisTitleRotate(e,t){const r=this.w,a=new ve(this.w),i=r.dom.baseEl.querySelector(`.apexcharts-yaxis[rel='${e}'] .apexcharts-yaxis-texts-g`),s=i?i.getBoundingClientRect():{width:0,height:0},o=r.dom.baseEl.querySelector(`.apexcharts-yaxis[rel='${e}'] .apexcharts-yaxis-title text`),l=o?o.getBoundingClientRect():{width:0,height:0};if(o){const u=this.xPaddingForYAxisTitle(e,s,l,t);o.setAttribute("x",String(u.xPos-(t?10:0)));const d=a.rotateAroundCenter(o);o.setAttribute("transform",`rotate(${t?r.config.yaxis[e].title.rotate*-1:r.config.yaxis[e].title.rotate} ${d.x} ${d.y})`)}}xPaddingForYAxisTitle(e,t,r,a){const i=this.w;let s=0,o=10;return i.config.yaxis[e].title.text===void 0||e<0?{xPos:s,padd:0}:(a?s=t.width+i.config.yaxis[e].title.offsetX+r.width/2+o/2:(s=t.width*-1+i.config.yaxis[e].title.offsetX+o/2+r.width/2,i.globals.isBarHorizontal&&(o=25,s=t.width*-1-i.config.yaxis[e].title.offsetX-o)),{xPos:s,padd:o})}setYAxisXPosition(e,t){const r=this.w;let a=0,i=0,s=18,o=1;r.config.yaxis.length>1&&(this.multipleYs=!0),r.config.yaxis.forEach((l,u)=>{const d=r.globals.ignoreYAxisIndexes.includes(u)||!l.show||l.floating||e[u].width===0,f=e[u].width+t[u].width;l.opposite?r.globals.isBarHorizontal?(i=r.layout.gridWidth+r.layout.translateX-1,r.globals.translateYAxisX[u]=i-l.labels.offsetX):(i=r.layout.gridWidth+r.layout.translateX+o,d||(o+=f+20),r.globals.translateYAxisX[u]=i-l.labels.offsetX+20):(a=r.layout.translateX-s,d||(s+=f+20),r.globals.translateYAxisX[u]=a+l.labels.offsetX)})}setYAxisTextAlignments(){const e=this.w;Array.from(e.dom.baseEl.getElementsByClassName("apexcharts-yaxis")).forEach((r,a)=>{const i=e.config.yaxis[a];if(i&&!i.floating&&i.labels.align!==void 0){const s=e.dom.baseEl.querySelector(`.apexcharts-yaxis[rel='${a}'] .apexcharts-yaxis-texts-g`),o=Array.from(e.dom.baseEl.querySelectorAll(`.apexcharts-yaxis[rel='${a}'] .apexcharts-yaxis-label`)),l=s.getBoundingClientRect();o.forEach(u=>{u.setAttribute("text-anchor",i.labels.align)}),i.labels.align==="left"&&!i.opposite?s.setAttribute("transform",`translate(-${l.width}, 0)`):i.labels.align==="center"?s.setAttribute("transform",`translate(${l.width/2*(i.opposite?1:-1)}, 0)`):i.labels.align==="right"&&i.opposite&&s.setAttribute("transform",`translate(${l.width}, 0)`)}})}}class Hae{constructor(e,t){this.w=e,this.ctx=t,this.documentEvent=this.documentEvent.bind(this)}addEventListener(e,t){const r=this.w;Object.prototype.hasOwnProperty.call(r.globals.events,e)?r.globals.events[e].push(t):r.globals.events[e]=[t]}removeEventListener(e,t){const r=this.w;if(!Object.prototype.hasOwnProperty.call(r.globals.events,e))return;const a=r.globals.events[e].indexOf(t);a!==-1&&r.globals.events[e].splice(a,1)}fireEvent(e,t){const r=this.w;if(!Object.prototype.hasOwnProperty.call(r.globals.events,e))return;(!t||!t.length)&&(t=[]);const a=r.globals.events[e],i=a.length;for(let s=0;s<i;s++)a[s].apply(null,t)}setupEventHandlers(){const e=this.w,t=this.ctx,r=e.dom.baseEl.querySelector(e.globals.chartClass);this.ctx.eventList.forEach(a=>{r?.addEventListener(a,i=>{const s=i.target.getAttribute("i")===null&&e.interact.capturedSeriesIndex!==-1?e.interact.capturedSeriesIndex:i.target.getAttribute("i"),o=i.target.getAttribute("j")===null&&e.interact.capturedDataPointIndex!==-1?e.interact.capturedDataPointIndex:i.target.getAttribute("j"),l=Object.assign({},e,{seriesIndex:e.globals.axisCharts?s:0,dataPointIndex:o});i.type==="keydown"?e.config.chart.accessibility.enabled&&e.config.chart.accessibility.keyboard.enabled&&(t.ctx.keyboardNavigation&&t.ctx.keyboardNavigation.handleKey(i),typeof e.config.chart.events.keyDown=="function"&&e.config.chart.events.keyDown(i,t,l),t.ctx.events.fireEvent("keydown",[i,t,l])):i.type==="keyup"?e.config.chart.accessibility.enabled&&e.config.chart.accessibility.keyboard.enabled&&(typeof e.config.chart.events.keyUp=="function"&&e.config.chart.events.keyUp(i,t,l),t.ctx.events.fireEvent("keyup",[i,t,l])):i.type==="mousemove"||i.type==="touchmove"?typeof e.config.chart.events.mouseMove=="function"&&e.config.chart.events.mouseMove(i,t,l):i.type==="mouseleave"||i.type==="touchleave"?typeof e.config.chart.events.mouseLeave=="function"&&e.config.chart.events.mouseLeave(i,t,l):(i.type==="mouseup"&&i.which===1||i.type==="touchend")&&(typeof e.config.chart.events.click=="function"&&e.config.chart.events.click(i,t,l),t.ctx.events.fireEvent("click",[i,t,l]))},{capture:!1,passive:!0})}),this.ctx.eventList.forEach(a=>{e.dom.baseEl.addEventListener(a,this.documentEvent,{passive:!0})}),this.ctx.core.setupBrushHandler()}documentEvent(e){const t=this.w,r=e.target.className;if(e.type==="click"){const a=t.dom.baseEl.querySelector(".apexcharts-menu");a&&a.classList.contains("apexcharts-menu-open")&&r!=="apexcharts-menu-icon"&&a.classList.remove("apexcharts-menu-open")}t.interact.clientX=e.type==="touchmove"?e.touches[0].clientX:e.clientX,t.interact.clientY=e.type==="touchmove"?e.touches[0].clientY:e.clientY}}class zae{constructor(e){this.w=e}setCurrentLocaleValues(e){let t=this.w.config.chart.locales;const r=qe.getApex();r.chart&&r.chart.locales&&r.chart.locales.length>0&&(t=this.w.config.chart.locales.concat(r.chart.locales));const a=t.filter(i=>i.name===e)[0];if(a){const i=ee.extend(fj,a);this.w.globals.locale=i.options}else throw new Error("Wrong locale name provided. Please make sure you set the correct locale name in options")}}class Bae{constructor(e,t){this.w=e,this.ctx=t}drawAxis(e,t){const r=this.w.globals,a=this.w.config,i=new bh(this.w,this.ctx,t),s=new FM(this.w,{theme:this.ctx.theme,timeScale:this.ctx.timeScale},t);if(r.axisCharts&&e!=="radar"){let o,l;r.isBarHorizontal?(l=s.drawYaxisInversed(0),o=i.drawXaxisInversed(0),this.w.dom.elGraphical.add(o),this.w.dom.elGraphical.add(l)):(o=i.drawXaxis(),this.w.dom.elGraphical.add(o),a.yaxis.map((u,d)=>{if(r.ignoreYAxisIndexes.indexOf(d)===-1&&(l=s.drawYaxis(d),this.w.dom.Paper.add(l),this.w.config.grid.position==="back")){const f=this.w.dom.Paper.children()[1];f&&(f.remove(),this.w.dom.Paper.add(f))}}))}}}class oE{constructor(e){this.w=e}drawXCrosshairs(){const e=this.w,t=new ve(this.w),r=new jr(this.w),a=e.config.xaxis.crosshairs.fill.gradient,i=e.config.xaxis.crosshairs.dropShadow,s=e.config.xaxis.crosshairs.fill.type,o=a.colorFrom,l=a.colorTo,u=a.opacityFrom,d=a.opacityTo,f=a.stops,g="none",p=i.enabled,b=i.left,y=i.top,x=i.blur,S=i.color,C=i.opacity;let O=e.config.xaxis.crosshairs.fill.color;if(e.config.xaxis.crosshairs.show){s==="gradient"&&(O=t.drawGradient("vertical",o,l,u,d,null,f,[]));let D=t.drawRect();e.config.xaxis.crosshairs.width===1&&(D=t.drawLine(0,0,0,0));let M=e.layout.gridHeight;(!ee.isNumber(M)||M<0)&&(M=0);let A=e.config.xaxis.crosshairs.width;(!ee.isNumber(A)||Number(A)<0)&&(A=0),D.attr({class:"apexcharts-xcrosshairs",x:0,y:0,y2:M,width:A,height:M,fill:O,filter:g,"fill-opacity":e.config.xaxis.crosshairs.opacity,stroke:e.config.xaxis.crosshairs.stroke.color,"stroke-width":e.config.xaxis.crosshairs.stroke.width,"stroke-dasharray":e.config.xaxis.crosshairs.stroke.dashArray}),p&&(D=r.dropShadow(D,{left:b,top:y,blur:x,color:S,opacity:C})),e.dom.elGraphical.add(D)}}drawYCrosshairs(){const e=this.w,t=new ve(this.w),r=e.config.yaxis[0].crosshairs,a=e.globals.barPadForNumericAxis;if(e.config.yaxis[0].crosshairs.show){const s=t.drawLine(-a,0,e.layout.gridWidth+a,0,r.stroke.color,r.stroke.dashArray,r.stroke.width);s.attr({class:"apexcharts-ycrosshairs"}),e.dom.elGraphical.add(s)}const i=t.drawLine(-a,0,e.layout.gridWidth+a,0,r.stroke.color,0,0);i.attr({class:"apexcharts-ycrosshairs-hidden"}),e.dom.elGraphical.add(i)}}function xj(n,e){if(!ee.isObject(n)||!ee.isObject(e))return e!==void 0?e:n;const t=ct({},n);for(const r of Object.keys(e)){const a=e[r];a!==void 0&&(ee.isObject(a)&&ee.isObject(n[r])?t[r]=xj(n[r],a):t[r]=a)}return t}class Yae{constructor(e){this.w=e,this._activeBreakpoint=null}checkResponsiveConfig(e){const t=this.w,r=t.config;if(r.responsive.length===0)return;const a=r.responsive.slice();a.sort((o,l)=>o.breakpoint>l.breakpoint?1:l.breakpoint>o.breakpoint?-1:0).reverse();const i=new vh({}),s=(o={})=>{var l;const u=a[0].breakpoint,d=qe.isBrowser()?window.innerWidth>0?window.innerWidth:screen.width:0;if(d>u){if(this._activeBreakpoint!==null){if(!t.globals.initialConfig)return;const f=ee.clone(t.globals.initialConfig);f.series=ee.clone(t.config.series);const g=Zn.extendArrayProps(i,f,t);o=ee.extend(g,o),this.overrideResponsiveOptions(o),this._activeBreakpoint=null}}else for(let f=0;f<a.length;f++)if(d<a[f].breakpoint){const g=(l=a[f].options)!=null&&l.yaxis?ee.clone(a[f].options.yaxis):null;if(o=Zn.extendArrayProps(i,a[f].options,t),o=ee.extend(t.config,o),Array.isArray(t.config.yaxis)&&g){const p=Array.isArray(g)?g:[g];o=Lt(ct({},o),{yaxis:t.config.yaxis.map((b,y)=>xj(b,p[y]))})}this.overrideResponsiveOptions(o),this._activeBreakpoint=a[f].breakpoint}};if(e){let o=Zn.extendArrayProps(i,e,t);o=ee.extend(t.config,o),o=ee.extend(o,e),s(o)}else s({})}overrideResponsiveOptions(e){const t=new vh(e).init({responsiveOverride:!0});this.w.config=t}}class Wn{constructor(e,{toggleDataSeries:t=void 0,revertDefaultAxisMinMax:r=void 0,updateSeries:a=void 0}={}){this.w=e,this._toggleDataSeries=t||null,this._revertDefaultAxisMinMax=r||null,this._updateSeries=a||null,this.legendInactiveClass="legend-mouseover-inactive"}clearSeriesCache(){const e=this.w;e.globals.cachedSelectors&&(delete e.globals.cachedSelectors.allSeriesEls,delete e.globals.cachedSelectors.highlightSeriesEls)}getAllSeriesEls(){const e=this.w,t="allSeriesEls";return e.globals.cachedSelectors[t]||(e.globals.cachedSelectors[t]=e.dom.baseEl.getElementsByClassName("apexcharts-series")),e.globals.cachedSelectors[t]}getSeriesByName(e){return this.w.dom.baseEl.querySelector(`.apexcharts-inner .apexcharts-series[seriesName='${ee.escapeString(e)}']`)}isSeriesHidden(e){var t;const a=this.getSeriesByName(e),i=parseInt((t=a.getAttribute("data:realIndex"))!=null?t:"0",10);return{isHidden:a.classList.contains("apexcharts-series-collapsed"),realIndex:i}}addCollapsedClassToSeries(e,t){Wn.addCollapsedClassToSeries(this.w,e,t)}static addCollapsedClassToSeries(e,t,r){function a(i){for(let s=0;s<i.length;s++)i[s].index===r&&t.node.classList.add("apexcharts-series-collapsed")}a(e.globals.collapsedSeries),a(e.globals.ancillaryCollapsedSeries)}toggleSeries(e){var t;const r=this.isSeriesHidden(e);return(t=this._toggleDataSeries)==null||t.call(this,r.realIndex,r.isHidden),r.isHidden}showSeries(e){var t;const r=this.isSeriesHidden(e);r.isHidden&&((t=this._toggleDataSeries)==null||t.call(this,r.realIndex,!0))}hideSeries(e){var t;const r=this.isSeriesHidden(e);r.isHidden||(t=this._toggleDataSeries)==null||t.call(this,r.realIndex,!1)}resetSeries(e=!0,t=!0,r=!0){var a,i;const s=this.w;this.clearSeriesCache();let o=ee.clone(s.globals.initialSeries);s.globals.previousPaths=[],r?(s.globals.collapsedSeries=[],s.globals.ancillaryCollapsedSeries=[],s.globals.collapsedSeriesIndices=[],s.globals.ancillaryCollapsedSeriesIndices=[]):o=this.emptyCollapsedSeries(o),s.config.series=o,e&&(t&&(s.interact.zoomed=!1,(a=this._revertDefaultAxisMinMax)==null||a.call(this)),(i=this._updateSeries)==null||i.call(this,o,s.config.chart.animations.dynamicAnimation.enabled))}emptyCollapsedSeries(e){const t=this.w;for(let r=0;r<e.length;r++)t.globals.collapsedSeriesIndices.indexOf(r)>-1&&(e[r].data=[]);return e}highlightSeries(e){var t;const r=this.w,a=this.getSeriesByName(e),i=parseInt((t=a?.getAttribute("data:realIndex"))!=null?t:"",10),s="highlightSeriesEls";let o=r.globals.cachedSelectors[s];o||(o=r.dom.baseEl.querySelectorAll(".apexcharts-series, .apexcharts-datalabels, .apexcharts-yaxis"),r.globals.cachedSelectors[s]=o);let l=null,u=null,d=null;if(r.globals.axisCharts||r.config.chart.type==="radialBar")if(r.globals.axisCharts){l=r.dom.baseEl.querySelector(`.apexcharts-series[data\\:realIndex='${i}']`),u=r.dom.baseEl.querySelector(`.apexcharts-datalabels[data\\:realIndex='${i}']`);const f=r.globals.seriesYAxisReverseMap[i];d=r.dom.baseEl.querySelector(`.apexcharts-yaxis[rel='${f}']`)}else l=r.dom.baseEl.querySelector(`.apexcharts-series[rel='${i+1}']`);else l=r.dom.baseEl.querySelector(`.apexcharts-series[rel='${i+1}'] path`);for(let f=0;f<o.length;f++)o[f].classList.add(this.legendInactiveClass);if(l){if(!r.globals.axisCharts){const f=l.parentNode;f?.classList.remove(this.legendInactiveClass)}l.classList.remove(this.legendInactiveClass),u!==null&&u.classList.remove(this.legendInactiveClass),d!==null&&d.classList.remove(this.legendInactiveClass)}else for(let f=0;f<o.length;f++)o[f].classList.remove(this.legendInactiveClass)}toggleSeriesOnHover(e,t){const r=this.w;t||(t=e.target);const a=r.dom.baseEl.querySelectorAll(".apexcharts-series, .apexcharts-datalabels, .apexcharts-yaxis");if(e.type==="mousemove"){const i=parseInt(t.getAttribute("rel"),10)-1;this.highlightSeries(r.seriesData.seriesNames[i])}else if(e.type==="mouseout")for(let i=0;i<a.length;i++)a[i].classList.remove(this.legendInactiveClass)}highlightRangeInSeries(e,t){const r=this.w,a=r.dom.baseEl.getElementsByClassName("apexcharts-heatmap-rect"),i=l=>{for(let u=0;u<a.length;u++){const d=a[u].classList;typeof d[l]=="function"&&d[l](this.legendInactiveClass)}};if(t==="reset"){i("remove");return}const s=r.config.plotOptions.heatmap.colorScale.ranges,o=s&&s[e];if(o){i("add");for(let l=0;l<a.length;l++){const u=Number(a[l].getAttribute("val"));u>=o.from&&u<=o.to&&a[l].classList.remove(this.legendInactiveClass)}}}getActiveConfigSeriesIndex(e="asc",t=[]){const r=this.w;let a=0;if(r.config.series.length>1){const i=r.config.series.map((s,o)=>{const l=()=>r.globals.comboCharts?t.length===0||t.length&&t.indexOf(r.config.series[o].type)>-1:!0;return s.data&&s.data.length>0&&r.globals.collapsedSeriesIndices.indexOf(o)===-1&&l()?o:-1});for(let s=e==="asc"?0:i.length-1;e==="asc"?s<i.length:s>=0;e==="asc"?s++:s--)if(i[s]!==-1){a=i[s];break}}return a}getBarSeriesIndices(){return this.w.globals.comboCharts?this.w.config.series.map((t,r)=>t.type==="bar"||t.type==="column"?r:-1).filter(t=>t!==-1):this.w.config.series.map((t,r)=>r)}getPreviousPaths(){var e,t,r,a;const i=this.w;if(!i.globals.axisCharts){i.globals.previousPaths=i.seriesData.series;return}i.globals.previousPaths=[];function s(d,f,g){const p=d[f].childNodes,b={type:g,paths:[],realIndex:d[f].getAttribute("data:realIndex")};for(let y=0;y<p.length;y++)if(p[y].hasAttribute("pathTo")){const x=p[y].getAttribute("pathTo");b.paths.push({d:x})}i.globals.previousPaths.push(b)}const o=d=>i.dom.baseEl.querySelectorAll(`.apexcharts-${d}-series .apexcharts-series`);["line","area","bar","rangebar","rangeArea","candlestick","radar"].forEach(d=>{const f=o(d);for(let g=0;g<f.length;g++)s(f,g,d)});const u=i.dom.baseEl.querySelectorAll(`.apexcharts-${i.config.chart.type} .apexcharts-series`);if(u.length>0)for(let d=0;d<u.length;d++){const f=i.dom.baseEl.querySelectorAll(`.apexcharts-${i.config.chart.type} .apexcharts-series[data\\:realIndex='${d}'] rect`),g=[];for(let p=0;p<f.length;p++){const b=x=>f[p].getAttribute(x),y={x:parseFloat((e=b("x"))!=null?e:"0"),y:parseFloat((t=b("y"))!=null?t:"0"),width:parseFloat((r=b("width"))!=null?r:"0"),height:parseFloat((a=b("height"))!=null?a:"0")};g.push({rect:y,color:f[p].getAttribute("color")})}i.globals.previousPaths.push(g)}}clearPreviousPaths(){const e=this.w;e.globals.previousPaths=[],e.globals.allSeriesCollapsed=!1}handleNoData(){const e=this.w,t=this,r=e.config.noData,a=new ve(t.w);let i=e.globals.svgWidth/2,s=e.globals.svgHeight/2,o="middle";if(e.globals.noData=!0,e.globals.animationEnded=!0,r.align==="left"?(i=10,o="start"):r.align==="right"&&(i=e.globals.svgWidth-10,o="end"),r.verticalAlign==="top"?s=50:r.verticalAlign==="bottom"&&(s=e.globals.svgHeight-50),i=i+r.offsetX,s=s+parseInt(r.style.fontSize,10)+2+r.offsetY,r.text!==void 0&&r.text!==""){const l=a.drawText({x:i,y:s,text:r.text,textAnchor:o,fontSize:r.style.fontSize,fontFamily:r.style.fontFamily,foreColor:r.style.color,opacity:1,cssClass:"apexcharts-text-nodata"});e.dom.Paper.add(l)}}setNullSeriesToZeroValues(e){const t=this.w;for(let r=0;r<e.length;r++)if(e[r].length===0)for(let a=0;a<e[t.globals.maxValsInArrayIndex].length;a++)e[r].push(0);return e}hasAllSeriesEqualX(){let e=!0;const t=this.w,r=this.filteredSeriesX();for(let a=0;a<r.length-1;a++)if(r[a][0]!==r[a+1][0]){e=!1;break}return t.globals.allSeriesHasEqualX=e,e}filteredSeriesX(){return this.w.seriesData.seriesX.map(r=>r.length>0?r:[])}}class jae{constructor(e){this.w=e,this.colors=[],this.isColorFn=!1,this.isHeatmapDistributed=this.checkHeatmapDistributed(),this.isBarDistributed=this.checkBarDistributed()}checkHeatmapDistributed(){const{chart:e,plotOptions:t}=this.w.config;return e.type==="treemap"&&t.treemap&&t.treemap.distributed||e.type==="heatmap"&&t.heatmap&&t.heatmap.distributed}checkBarDistributed(){const{chart:e,plotOptions:t}=this.w.config;return t.bar&&t.bar.distributed&&(e.type==="bar"||e.type==="rangeBar")}init(){this.setDefaultColors()}setDefaultColors(){var e;const t=this.w,r=new ee;t.dom.elWrap.classList.add(`apexcharts-theme-${t.config.theme.mode||"light"}`);const a=(e=t.config.theme.accessibility)==null?void 0:e.colorBlindMode;if(a){t.globals.colors=this.getColorBlindColors(a),this.applySeriesColors(t.seriesData.seriesColors,t.globals.colors);const o=t.globals.colors.slice();this.pushExtraColors(t.globals.colors),this.applyColorTypes(["fill","stroke"],o),this.applyDataLabelsColors(o),this.applyRadarPolygonsColors(),this.applyMarkersColors(o),a==="highContrast"&&t.dom.elWrap.classList.add("apexcharts-high-contrast");return}const i=[...t.config.colors||t.config.fill.colors||[]];t.globals.colors=this.getColors(i),this.applySeriesColors(t.seriesData.seriesColors,t.globals.colors),t.config.theme.monochrome.enabled&&(t.globals.colors=this.getMonochromeColors(t.config.theme.monochrome,t.seriesData.series,r));const s=t.globals.colors.slice();this.pushExtraColors(t.globals.colors),this.applyColorTypes(["fill","stroke"],s),this.applyDataLabelsColors(s),this.applyRadarPolygonsColors(),this.applyMarkersColors(s)}getColors(e){const t=this.w;return!e||e.length===0?this.predefined():Array.isArray(e)&&e.length>0&&typeof e[0]=="function"?(this.isColorFn=!0,t.config.series.map((r,a)=>{const i=e[a]||e[0];return typeof i=="function"?i({value:t.globals.axisCharts?t.seriesData.series[a][0]||0:t.seriesData.series[a],seriesIndex:a,dataPointIndex:a,w:this.w}):i})):e}applySeriesColors(e,t){e.forEach((r,a)=>{r&&(t[a]=r)})}getMonochromeColors(e,t,r){const{color:a,shadeIntensity:i,shadeTo:s}=e,o=this.isBarDistributed||this.isHeatmapDistributed?t[0].length*t.length:t.length,l=1/(o/i);let u=0;return Array.from({length:o},()=>{const d=s==="dark"?r.shadeColor(u*-1,a):r.shadeColor(u,a);return u+=l,d})}applyColorTypes(e,t){const r=this.w;e.forEach(a=>{r.globals[a].colors=r.config[a].colors===void 0?this.isColorFn?r.config.colors:t:r.config[a].colors.slice(),this.pushExtraColors(r.globals[a].colors)})}applyDataLabelsColors(e){const t=this.w;t.globals.dataLabels.style.colors=t.config.dataLabels.style.colors===void 0?e:t.config.dataLabels.style.colors.slice(),this.pushExtraColors(t.globals.dataLabels.style.colors,50)}applyRadarPolygonsColors(){const e=this.w;e.globals.radarPolygons.fill.colors=e.config.plotOptions.radar.polygons.fill.colors===void 0?[e.config.theme.mode==="dark"?"#343A3F":"none"]:e.config.plotOptions.radar.polygons.fill.colors.slice(),this.pushExtraColors(e.globals.radarPolygons.fill.colors,20)}applyMarkersColors(e){const t=this.w;t.globals.markers.colors=t.config.markers.colors===void 0?e:t.config.markers.colors.slice(),this.pushExtraColors(t.globals.markers.colors)}pushExtraColors(e,t,r=null){const a=this.w;let i=t||a.seriesData.series.length;if(r===null&&(r=this.isBarDistributed||this.isHeatmapDistributed||a.config.chart.type==="heatmap"&&a.config.plotOptions.heatmap&&a.config.plotOptions.heatmap.colorScale.inverse),r&&a.seriesData.series.length&&(i=a.seriesData.series[a.globals.maxValsInArrayIndex].length*a.seriesData.series.length),e.length<i){const s=i-e.length;for(let o=0;o<s;o++)e.push(e[o])}}getColorBlindColors(e){const t=sE();return({deuteranopia:t.cvdDeuteranopia,protanopia:t.cvdProtanopia,tritanopia:t.cvdTritanopia,highContrast:t.highContrast}[e]||t.palette1).slice()}updateThemeOptions(e){e.chart=e.chart||{},e.tooltip=e.tooltip||{};const t=e.theme.mode,r=t==="dark"?"palette4":t==="light"?"palette1":e.theme.palette||"palette1",a=t==="dark"?"#f6f7f8":t==="light"?"#373d3f":e.chart.foreColor||"#373d3f";return e.tooltip.theme=t||"light",e.chart.foreColor=a,e.theme.palette=r,e}predefined(){const e=this.w.config.theme.palette,t=sE();return t[e]||t.palette1}}class Wae{constructor(e){this.w=e}draw(){this.drawTitleSubtitle("title"),this.drawTitleSubtitle("subtitle")}drawTitleSubtitle(e){const t=this.w,r=e==="title"?t.config.title:t.config.subtitle;let a=t.globals.svgWidth/2,i=r.offsetY,s="middle";if(r.align==="left"?(a=10,s="start"):r.align==="right"&&(a=t.globals.svgWidth-10,s="end"),a=a+r.offsetX,i=i+parseInt(r.style.fontSize,10)+r.margin/2,r.text!==void 0){const l=new ve(this.w).drawText({x:a,y:i,text:r.text,textAnchor:s,fontSize:r.style.fontSize,fontFamily:r.style.fontFamily,fontWeight:r.style.fontWeight,foreColor:r.style.color,opacity:1});l.node.setAttribute("class",`apexcharts-${e}-text`),t.dom.Paper.add(l)}}}let qae=class{constructor(e){this.w=e.w,this.dCtx=e}getTitleSubtitleCoords(e){const t=this.w;let r=0,a=0;const i=e==="title"?t.config.title.floating:t.config.subtitle.floating,s=t.dom.baseEl.querySelector(`.apexcharts-${e}-text`);if(s!==null&&!i){const o=s.getBoundingClientRect();r=o.width,a=t.globals.axisCharts?o.height+5:o.height}return{width:r,height:a}}getLegendsRect(){const e=this.w,t=e.dom.elLegendWrap;!e.config.legend.height&&(e.config.legend.position==="top"||e.config.legend.position==="bottom")&&t&&(t.style.maxHeight=e.globals.svgHeight/2+"px");const r=Object.assign({},ee.getBoundingClientRect(t));return t!==null&&!e.config.legend.floating&&e.config.legend.show?this.dCtx.lgRect={x:r.x,y:r.y,height:r.height,width:r.height===0?0:r.width}:this.dCtx.lgRect={x:0,y:0,height:0,width:0},(e.config.legend.position==="left"||e.config.legend.position==="right")&&this.dCtx.lgRect.width*1.5>e.globals.svgWidth&&(this.dCtx.lgRect.width=e.globals.svgWidth/1.5),this.dCtx.lgRect}getDatalabelsRect(){const e=this.w,t=[];e.config.series.forEach((o,l)=>{o.data.forEach((u,d)=>{const g=(p=>e.config.dataLabels.formatter(p,{seriesIndex:l,dataPointIndex:d,w:e}))(e.seriesData.series[l][d]);t.push(g)})});const r=ee.getLargestStringFromArr(t),a=new ve(this.w),i=e.config.dataLabels.style,s=a.getTextRects(r,parseInt(i.fontSize).toString(),i.fontFamily);return{width:s.width*1.05,height:s.height}}getLargestStringFromMultiArr(e,t){const r=this.w;let a=e;if(r.axisFlags.isMultiLineX){const i=t.map(l=>Array.isArray(l)?l.length:1),s=Math.max(...i),o=i.indexOf(s);a=t[o]}return a}};class Xae{constructor(e){this.w=e.w,this.dCtx=e}getxAxisLabelsCoords(){const e=this.w;let t=e.labelData.labels.slice();e.config.xaxis.convertedCatToNumeric&&t.length===0&&(t=e.labelData.categoryLabels);let r;if(e.labelData.timescaleLabels.length>0){const a=this.getxAxisTimeScaleLabelsCoords();r={width:a.width,height:a.height},e.layout.rotateXLabels=!1}else{this.dCtx.lgWidthForSideLegends=(e.config.legend.position==="left"||e.config.legend.position==="right")&&!e.config.legend.floating?this.dCtx.lgRect.width:0;const a=e.formatters.xLabelFormatter;let i=ee.getLargestStringFromArr(t),s=this.dCtx.dimHelpers.getLargestStringFromMultiArr(i,t);e.globals.isBarHorizontal&&(i=e.globals.yAxisScale[0].result.reduce((g,p)=>g.length>p.length?g:p,0),s=i);const o=new Vh(this.w),l=i;i=o.xLabelFormat(a,i,l,{i:void 0,dateFormatter:new Ha(this.w).formatDate,w:e}),s=o.xLabelFormat(a,s,l,{i:void 0,dateFormatter:new Ha(this.w).formatDate,w:e}),(e.config.xaxis.convertedCatToNumeric&&typeof i>"u"||String(i).trim()==="")&&(i="1",s=i);const u=new ve(this.w);let d=u.getTextRects(i,e.config.xaxis.labels.style.fontSize),f=d;if(i!==s&&(f=u.getTextRects(s,e.config.xaxis.labels.style.fontSize)),r={width:d.width>=f.width?d.width:f.width,height:d.height>=f.height?d.height:f.height},r.width*t.length>e.globals.svgWidth-this.dCtx.lgWidthForSideLegends-this.dCtx.yAxisWidth-this.dCtx.gridPad.left-this.dCtx.gridPad.right&&e.config.xaxis.labels.rotate!==0||e.config.xaxis.labels.rotateAlways){if(!e.globals.isBarHorizontal){e.layout.rotateXLabels=!0;const g=p=>u.getTextRects(p,e.config.xaxis.labels.style.fontSize,e.config.xaxis.labels.style.fontFamily,`rotate(${e.config.xaxis.labels.rotate} 0 0)`,!1);d=g(i),i!==s&&(f=g(s)),r.height=(d.height>f.height?d.height:f.height)/1.5,r.width=d.width>f.width?d.width:f.width}}else e.layout.rotateXLabels=!1}return e.config.xaxis.labels.show||(r={width:0,height:0}),{width:r.width,height:r.height}}getxAxisGroupLabelsCoords(){var e;const t=this.w;if(!t.labelData.hasXaxisGroups)return{width:0,height:0};const r=((e=t.config.xaxis.group.style)==null?void 0:e.fontSize)||t.config.xaxis.labels.style.fontSize,a=t.labelData.groups.map(f=>f.title);let i;const s=ee.getLargestStringFromArr(a),o=this.dCtx.dimHelpers.getLargestStringFromMultiArr(s,a),l=new ve(this.w),u=l.getTextRects(s,r);let d=u;return s!==o&&(d=l.getTextRects(o,r)),i={width:u.width>=d.width?u.width:d.width,height:u.height>=d.height?u.height:d.height},t.config.xaxis.labels.show||(i={width:0,height:0}),{width:i.width,height:i.height}}getxAxisTitleCoords(){const e=this.w;let t=0,r=0;if(e.config.xaxis.title.text!==void 0){const i=new ve(this.w).getTextRects(e.config.xaxis.title.text,e.config.xaxis.title.style.fontSize);t=i.width,r=i.height}return{width:t,height:r}}getxAxisTimeScaleLabelsCoords(){const e=this.w;this.dCtx.timescaleLabels=e.labelData.timescaleLabels.slice();const t=this.dCtx.timescaleLabels.map(o=>o.value),r=t.reduce((o,l)=>typeof o>"u"?(console.error("You have possibly supplied invalid Date format. Please supply a valid JavaScript Date"),0):o.length>l.length?o:l,0),i=new ve(this.w).getTextRects(r,e.config.xaxis.labels.style.fontSize);return i.width*1.05*t.length>e.layout.gridWidth&&e.config.xaxis.labels.rotate!==0&&(e.globals.overlappingXLabels=!0),i}additionalPaddingXLabels(e){const t=this.w,r=t.globals,a=t.config,i=a.xaxis.type,s=e.width;r.skipLastTimelinelabel=!1,r.skipFirstTimelinelabel=!1;const o=t.config.yaxis[0].opposite&&t.globals.isBarHorizontal,l=f=>r.collapsedSeriesIndices.indexOf(f)!==-1,u=f=>{if(this.dCtx.timescaleLabels&&this.dCtx.timescaleLabels.length){const g=this.dCtx.timescaleLabels[0],b=this.dCtx.timescaleLabels[this.dCtx.timescaleLabels.length-1].position+s/1.75-this.dCtx.yAxisWidthRight,y=g.position-s/1.75+this.dCtx.yAxisWidthLeft,x=t.config.legend.position==="right"&&this.dCtx.lgRect.width>0?this.dCtx.lgRect.width:0;b>r.svgWidth-t.layout.translateX-x&&(r.skipLastTimelinelabel=!0),y<-((!f.show||f.floating)&&(a.chart.type==="bar"||a.chart.type==="candlestick"||a.chart.type==="rangeBar"||a.chart.type==="boxPlot"||a.chart.type==="violin")?s/1.75:10)&&(r.skipFirstTimelinelabel=!0)}else i==="datetime"?this.dCtx.gridPad.right<s&&!t.layout.rotateXLabels&&(r.skipLastTimelinelabel=!0):i!=="datetime"&&this.dCtx.gridPad.right<s/2-this.dCtx.yAxisWidthRight&&!t.layout.rotateXLabels&&!t.config.xaxis.labels.trim&&(this.dCtx.xPadRight=s/2+1)},d=(f,g)=>{a.yaxis.length>1&&l(g)||u(f)};a.yaxis.forEach((f,g)=>{o?(this.dCtx.gridPad.left<s&&(this.dCtx.xPadLeft=s/2+1),this.dCtx.xPadRight=s/2+1):d(f,g)})}}class Vae{constructor(e){this.w=e.w,this.dCtx=e}getyAxisLabelsCoords(){const e=this.w,t=0,r=0,a=[];let i=10;const s=new xo(this.w,{theme:this.dCtx.theme,timeScale:this.dCtx.timeScale});return e.config.yaxis.map((o,l)=>{const u={seriesIndex:l,dataPointIndex:-1,w:e},d=e.globals.yAxisScale[l];let f=0;if(!s.isYAxisHidden(l)&&o.labels.show&&o.labels.minWidth!==void 0&&(f=o.labels.minWidth),!s.isYAxisHidden(l)&&o.labels.show&&d.result.length){const g=e.formatters.yLabelFormatters[l],p=d.niceMin===Number.MIN_VALUE?0:d.niceMin;let b=d.result.reduce((D,M)=>{var A,T;return((A=String(g(D,u)))==null?void 0:A.length)>((T=String(g(M,u)))==null?void 0:T.length)?D:M},p);b=g(b,u);let y=b;if((typeof b>"u"||b.length===0)&&(b=d.niceMax),String(b).length===1&&(b=b+".0",y=b),e.globals.isBarHorizontal){i=0;const D=e.labelData.labels.slice();b=ee.getLargestStringFromArr(D),b=g(b,{seriesIndex:l,dataPointIndex:-1,w:e}),y=this.dCtx.dimHelpers.getLargestStringFromMultiArr(b,D)}const x=new ve(this.w),S="rotate(".concat(o.labels.rotate," 0 0)"),C=x.getTextRects(b,o.labels.style.fontSize,o.labels.style.fontFamily,S,!1);let O=C;b!==y&&(O=x.getTextRects(y,o.labels.style.fontSize,o.labels.style.fontFamily,S,!1)),a.push({width:(f>O.width||f>C.width?f:O.width>C.width?O.width:C.width)+i,height:O.height>C.height?O.height:C.height})}else a.push({width:t,height:r})}),a}getyAxisTitleCoords(){const e=this.w,t=[];return e.config.yaxis.map(r=>{if(r.show&&r.title.text!==void 0){const a=new ve(this.w),i="rotate(".concat(r.title.rotate," 0 0)"),s=a.getTextRects(r.title.text,r.title.style.fontSize,r.title.style.fontFamily,i,!1);t.push({width:s.width,height:s.height})}else t.push({width:0,height:0})}),t}getTotalYAxisWidth(){const e=this.w;let t=0,r=0,a=0;const i=e.globals.yAxisScale.length>1?10:0,s=new xo(this.w,{theme:this.dCtx.theme,timeScale:this.dCtx.timeScale}),o=function(u){return e.globals.ignoreYAxisIndexes.indexOf(u)>-1},l=(u,d)=>{const f=e.config.yaxis[d].floating;let g=0;u.width>0&&!f?(g=u.width+i,o(d)&&(g=g-u.width-i)):g=f||s.isYAxisHidden(d)?0:5,e.config.yaxis[d].opposite?a=a+g:r=r+g,t=t+g};return e.layout.yLabelsCoords.map((u,d)=>{l(u,d)}),e.layout.yTitleCoords.map((u,d)=>{l(u,d)}),e.globals.isBarHorizontal&&!e.config.yaxis[0].floating&&(t=e.layout.yLabelsCoords[0].width+e.layout.yTitleCoords[0].width+15),this.dCtx.yAxisWidthLeft=r,this.dCtx.yAxisWidthRight=a,t}}class Uae{constructor(e){this.w=e.w,this.dCtx=e}gridPadForColumnsInNumericAxis(e){const{w:t}=this,{config:r,globals:a}=t;if(a.noData||a.collapsedSeries.length+a.ancillaryCollapsedSeries.length===r.series.length)return 0;const i=f=>["bar","rangeBar","candlestick","boxPlot","violin"].includes(f),s=r.chart.type;let o=0,l=i(s)?r.series.length:1;a.comboBarCount>0&&(l=a.comboBarCount),a.collapsedSeries.forEach(f=>{i(f.type)&&(l-=1)}),r.chart.stacked&&(l=1);const u=i(s)||a.comboBarCount>0;let d=Math.abs(a.initialMaxX-a.initialMinX);if(u&&t.axisFlags.isXNumeric&&!a.isBarHorizontal&&l>0&&d!==0){d<=3&&(d=a.dataPoints);const f=d/e;let g=a.minXDiff&&a.minXDiff/f>0?a.minXDiff/f:0;g>e/2&&(g/=2),o=g*parseInt(r.plotOptions.bar.columnWidth,10)/100,o<1&&(o=1),a.barPadForNumericAxis=o}return o}gridPadFortitleSubtitle(){const{w:e}=this,{globals:t}=e;let r=this.dCtx.isSparkline||!t.axisCharts?0:10;["title","subtitle"].forEach(o=>{e.config[o].text!==void 0?r+=e.config[o].margin:r+=this.dCtx.isSparkline||!t.axisCharts?0:5}),e.config.legend.show&&e.config.legend.position==="bottom"&&!e.config.legend.floating&&!t.axisCharts&&(r+=10);const i=this.dCtx.dimHelpers.getTitleSubtitleCoords("title"),s=this.dCtx.dimHelpers.getTitleSubtitleCoords("subtitle");e.layout.gridHeight-=i.height+s.height+r,e.layout.translateY+=i.height+s.height+r}setGridXPosForDualYAxis(e,t){const{w:r}=this,a=new xo(this.w,{theme:this.dCtx.theme,timeScale:this.dCtx.timeScale});r.config.yaxis.forEach((i,s)=>{r.globals.ignoreYAxisIndexes.indexOf(s)===-1&&!i.floating&&!a.isYAxisHidden(s)&&(i.opposite&&(r.layout.translateX-=t[s].width+e[s].width+parseInt(i.labels.style.fontSize,10)/1.2+12),r.layout.translateX<2&&(r.layout.translateX=2))})}}class ev{constructor(e,t){this.w=e,this.ctx=t,this.theme=t.theme,this.timeScale=t.timeScale,this.lgRect={},this.yAxisWidth=0,this.yAxisWidthLeft=0,this.yAxisWidthRight=0,this.xAxisHeight=0,this.isSparkline=this.w.config.chart.sparkline.enabled,this.dimHelpers=new qae(this),this.dimYAxis=new Vae(this),this.dimXAxis=new Xae(this),this.dimGrid=new Uae(this),this.lgWidthForSideLegends=0,this.gridPad=this.w.config.grid.padding,this.xPadRight=0,this.xPadLeft=0,this.datalabelsCoords={width:0,height:0},this.xAxisWidth=0,this.timescaleLabels=[]}plotCoords(){const e=this.w,t=e.globals;this.lgRect=this.dimHelpers.getLegendsRect(),this.datalabelsCoords={width:0,height:0};const r=Array.isArray(e.config.stroke.width)?Math.max(...e.config.stroke.width):e.config.stroke.width;this.isSparkline&&((e.config.markers.discrete.length>0||e.config.markers.size>0)&&Object.entries(this.gridPad).forEach(([i,s])=>{this.gridPad[i]=Math.max(s,this.w.globals.markers.largestSize/1.5)}),this.gridPad.top=Math.max(r/2,this.gridPad.top),this.gridPad.bottom=Math.max(r/2,this.gridPad.bottom)),t.axisCharts?this.setDimensionsForAxisCharts():this.setDimensionsForNonAxisCharts(),this.dimGrid.gridPadFortitleSubtitle(),e.layout.gridHeight=e.layout.gridHeight-this.gridPad.top-this.gridPad.bottom,e.layout.gridWidth=e.layout.gridWidth-this.gridPad.left-this.gridPad.right-this.xPadRight-this.xPadLeft;const a=this.dimGrid.gridPadForColumnsInNumericAxis(e.layout.gridWidth);return e.layout.gridWidth=e.layout.gridWidth-a*2,e.layout.translateX=e.layout.translateX+this.gridPad.left+this.xPadLeft+(a>0?a:0),e.layout.translateY=e.layout.translateY+this.gridPad.top,{layout:{gridHeight:e.layout.gridHeight,gridWidth:e.layout.gridWidth,translateX:e.layout.translateX,translateY:e.layout.translateY,translateXAxisX:e.layout.translateXAxisX,translateXAxisY:e.layout.translateXAxisY,rotateXLabels:e.layout.rotateXLabels,xAxisHeight:e.layout.xAxisHeight,xAxisLabelsHeight:e.layout.xAxisLabelsHeight,xAxisGroupLabelsHeight:e.layout.xAxisGroupLabelsHeight,xAxisLabelsWidth:e.layout.xAxisLabelsWidth,yLabelsCoords:e.layout.yLabelsCoords,yTitleCoords:e.layout.yTitleCoords}}}setDimensionsForAxisCharts(){const e=this.w,t=e.globals,r=this.dimYAxis.getyAxisLabelsCoords(),a=this.dimYAxis.getyAxisTitleCoords();t.isSlopeChart&&(this.datalabelsCoords=this.dimHelpers.getDatalabelsRect()),e.layout.yLabelsCoords=[],e.layout.yTitleCoords=[],e.config.yaxis.map((p,b)=>{e.layout.yLabelsCoords.push({width:r[b].width,index:b}),e.layout.yTitleCoords.push({width:a[b].width,index:b})}),this.yAxisWidth=this.dimYAxis.getTotalYAxisWidth();const i=this.dimXAxis.getxAxisLabelsCoords(),s=this.dimXAxis.getxAxisGroupLabelsCoords(),o=this.dimXAxis.getxAxisTitleCoords();this.conditionalChecksForAxisCoords(i,o,s),e.layout.translateXAxisY=e.layout.rotateXLabels?this.xAxisHeight/8:-4,e.layout.translateXAxisX=e.layout.rotateXLabels&&e.axisFlags.isXNumeric&&e.config.xaxis.labels.rotate<=-45?-this.xAxisWidth/4:0,e.globals.isBarHorizontal&&(e.layout.rotateXLabels=!1,e.layout.translateXAxisY=-1*(parseInt(e.config.xaxis.labels.style.fontSize,10)/1.5)),e.layout.translateXAxisY=e.layout.translateXAxisY+e.config.xaxis.labels.offsetY,e.layout.translateXAxisX=e.layout.translateXAxisX+e.config.xaxis.labels.offsetX;let l=this.yAxisWidth,u=this.xAxisHeight;e.layout.xAxisLabelsHeight=this.xAxisHeight-o.height,e.layout.xAxisGroupLabelsHeight=e.layout.xAxisLabelsHeight-i.height,e.layout.xAxisLabelsWidth=this.xAxisWidth,e.layout.xAxisHeight=this.xAxisHeight;let d=10;(e.config.chart.type==="radar"||this.isSparkline)&&(l=0,u=0),this.isSparkline&&(this.lgRect={height:0,width:0}),(this.isSparkline||e.config.chart.type==="treemap")&&(l=0,u=0,d=0),!this.isSparkline&&e.config.chart.type!=="treemap"&&this.dimXAxis.additionalPaddingXLabels(i);const f=()=>{e.layout.translateX=l+this.datalabelsCoords.width,e.layout.gridHeight=t.svgHeight-this.lgRect.height-u-(!this.isSparkline&&e.config.chart.type!=="treemap"?e.layout.rotateXLabels?10:15:0),e.layout.gridWidth=t.svgWidth-l-this.datalabelsCoords.width*2};switch(e.config.xaxis.position==="top"&&(d=e.layout.xAxisHeight-e.config.xaxis.axisTicks.height-5),e.config.legend.position){case"bottom":e.layout.translateY=d,f();break;case"top":e.layout.translateY=this.lgRect.height+d,f();break;case"left":e.layout.translateY=d,e.layout.translateX=this.lgRect.width+l+this.datalabelsCoords.width,e.layout.gridHeight=t.svgHeight-u-12,e.layout.gridWidth=t.svgWidth-this.lgRect.width-l-this.datalabelsCoords.width*2;break;case"right":e.layout.translateY=d,e.layout.translateX=l+this.datalabelsCoords.width,e.layout.gridHeight=t.svgHeight-u-12,e.layout.gridWidth=t.svgWidth-this.lgRect.width-l-this.datalabelsCoords.width*2-5;break;default:throw new Error("Legend position not supported")}this.dimGrid.setGridXPosForDualYAxis(a,r),new FM(this.w,{theme:this.theme,timeScale:this.timeScale}).setYAxisXPosition(r,a)}setDimensionsForNonAxisCharts(){const e=this.w,t=e.globals,r=e.config;let a=0;e.config.legend.show&&!e.config.legend.floating&&(a=20);const i=r.chart.type==="pie"||r.chart.type==="polarArea"||r.chart.type==="donut"?"pie":"radialBar",s=r.plotOptions[i].offsetY,o=r.plotOptions[i].offsetX;if(!r.legend.show||r.legend.floating){e.layout.gridHeight=t.svgHeight;const l=e.dom.elWrap.getBoundingClientRect().width;e.layout.gridWidth=Math.min(l,e.layout.gridHeight),e.layout.translateY=s,e.layout.translateX=o+(t.svgWidth-e.layout.gridWidth)/2;return}switch(r.legend.position){case"bottom":e.layout.gridHeight=t.svgHeight-this.lgRect.height,e.layout.gridWidth=t.svgWidth,e.layout.translateY=s-10,e.layout.translateX=o+(t.svgWidth-e.layout.gridWidth)/2;break;case"top":e.layout.gridHeight=t.svgHeight-this.lgRect.height,e.layout.gridWidth=t.svgWidth,e.layout.translateY=this.lgRect.height+s+10,e.layout.translateX=o+(t.svgWidth-e.layout.gridWidth)/2;break;case"left":e.layout.gridWidth=t.svgWidth-this.lgRect.width-a,e.layout.gridHeight=r.chart.height!=="auto"?t.svgHeight:e.layout.gridWidth,e.layout.translateY=s,e.layout.translateX=o+this.lgRect.width+a;break;case"right":e.layout.gridWidth=t.svgWidth-this.lgRect.width-a-5,e.layout.gridHeight=r.chart.height!=="auto"?t.svgHeight:e.layout.gridWidth,e.layout.translateY=s,e.layout.translateX=o+10;break;default:throw new Error("Legend position not supported")}}conditionalChecksForAxisCoords(e,t,r){const a=this.w,i=a.labelData.hasXaxisGroups?2:1,s=r.height+e.height+t.height,o=a.axisFlags.isMultiLineX?1.2:hj,l=a.layout.rotateXLabels?22:10,d=a.layout.rotateXLabels&&a.config.legend.position==="bottom"?10:0;this.xAxisHeight=s*o+i*l+d,this.xAxisWidth=e.width,this.xAxisHeight-t.height>a.config.xaxis.labels.maxHeight&&(this.xAxisHeight=a.config.xaxis.labels.maxHeight),a.config.xaxis.labels.minHeight&&this.xAxisHeight<a.config.xaxis.labels.minHeight&&(this.xAxisHeight=a.config.xaxis.labels.minHeight),a.config.xaxis.floating&&(this.xAxisHeight=0);let f=0,g=0;a.config.yaxis.forEach(p=>{f+=p.labels.minWidth,g+=p.labels.maxWidth}),this.yAxisWidth<f&&(this.yAxisWidth=f),this.yAxisWidth>g&&(this.yAxisWidth=g)}}const kf=1e3,Hf=60*kf,zf=60*Hf,fu=24*zf,R2=7*fu,Uy=30*fu,il=365*fu,Gae=10/(1440*60),Gy=[{unit:"second",step:1,approxMs:kf},{unit:"second",step:5,approxMs:5*kf},{unit:"second",step:15,approxMs:15*kf},{unit:"second",step:30,approxMs:30*kf},{unit:"minute",step:1,approxMs:Hf},{unit:"minute",step:5,approxMs:5*Hf},{unit:"minute",step:15,approxMs:15*Hf},{unit:"minute",step:30,approxMs:30*Hf},{unit:"hour",step:1,approxMs:zf},{unit:"hour",step:3,approxMs:3*zf},{unit:"hour",step:6,approxMs:6*zf},{unit:"hour",step:12,approxMs:12*zf},{unit:"day",step:1,approxMs:fu},{unit:"day",step:2,approxMs:2*fu},{unit:"week",step:1,approxMs:R2},{unit:"week",step:2,approxMs:2*R2},{unit:"month",step:1,approxMs:Uy},{unit:"month",step:3,approxMs:3*Uy},{unit:"month",step:6,approxMs:6*Uy},{unit:"year",step:1,approxMs:il},{unit:"year",step:2,approxMs:2*il},{unit:"year",step:5,approxMs:5*il},{unit:"year",step:10,approxMs:10*il},{unit:"year",step:25,approxMs:25*il},{unit:"year",step:50,approxMs:50*il},{unit:"year",step:100,approxMs:100*il}],wj=10;class Zae{constructor(e,t){this.w=e,this.ctx=t,this.tickInterval=null,this.timeScaleArray=[],this.utc=e.config.xaxis.labels.datetimeUTC}calculateTimeScaleTicks(e,t){const r=this.w;if(r.globals.allSeriesCollapsed)return r.labelData.labels=[],r.labelData.timescaleLabels=[],this.timeScaleArray=[],[];const a=t-e,i=a/fu;r.interact.disableZoomIn=!1,r.interact.disableZoomOut=!1,i<Gae?r.interact.disableZoomIn=!0:i>5e4&&(r.interact.disableZoomOut=!0);const s=Number.isFinite(r.config.xaxis.tickAmount)?r.config.xaxis.tickAmount:wj;this.tickInterval=Qae(a,s);const o=this.generateBaseTicks(e,t,this.tickInterval);return this.timeScaleArray=o,o}generateBaseTicks(e,t,r){const a=this.w,i=new Ha(a),s=this.utc,o=a.layout.gridWidth,l=t-e,u=[];let d=i.ceilToBoundary(e,r.unit,r.step,s),f=0;const g=5e3;for(;d<=t&&f<g;){const p=i.getDateFields(d,s),b=l>0?(d-e)/l*o:0;u.push({timestamp:d,position:b,unit:r.unit,year:p.year,month:p.month+1,day:p.date,hour:p.hour,minute:p.minute,second:p.second,value:d}),d=i.addInterval(d,r.unit,r.step,s),f++}return u}recalcDimensionsBasedOnFormat(e){const t=this.w,r=this.formatDates(e),a=this.removeOverlappingTS(r);t.labelData.timescaleLabels=a.slice();const s=new ev(this.w,this.ctx).plotCoords();this.ctx._writeLayoutCoords(s.layout)}formatDates(e){const t=this.w,r=new Ha(t),a=t.config.xaxis.labels.format,i=t.config.xaxis.labels.datetimeFormatter,s=this.utc,o=(u,d=2)=>String(u).padStart(d,"0"),l=a||this._effectiveFormat(e,i);return e.map(u=>{const d=r.getDate(u.timestamp),f=r.formatDate(d,l);return{dateString:`${u.year}-${o(u.month)}-${o(u.day)}T${o(u.hour)}:${o(u.minute)}:${o(u.second)}.000${s?"Z":""}`,position:u.position,value:f,unit:u.unit,year:u.year,month:u.month}})}_effectiveFormat(e,t){if(e.length===0)return t.day||"dd MMM";const r=this.tickInterval&&this.tickInterval.unit||e[0].unit,a=t[r==="week"?"day":r]||t.day||"dd MMM",i=e[0],s=e[e.length-1],o=i.year!==s.year,u=o||i.month!==s.month||i.day!==s.day,d=/y/i.test(a),f=/M/.test(a),g=/d/i.test(a);return r==="month"||r==="week"||r==="day"?o&&!d?a+" yyyy":a:(r==="hour"||r==="minute"||r==="second")&&u&&!g&&!f?(o?"dd MMM yyyy":"dd MMM")+" "+a:a}removeOverlappingTS(e){if(e.length===0)return[];const t=this.w,r=new ve(t);let a=!1,i;e[0].value&&e.every(l=>l.value.length===e[0].value.length)&&(a=!0,i=r.getTextRects(e[0].value,t.config.xaxis.labels.style.fontSize).width);let s=0;return e.map((l,u)=>{if(u===0||!t.config.xaxis.labels.hideOverlappingLabels)return l;const d=a?i:r.getTextRects(e[s].value,t.config.xaxis.labels.style.fontSize).width,f=e[s].position;return l.position>f+d+10?(s=u,l):null}).filter(l=>l!==null)}}function Qae(n,e){if((!Number.isFinite(e)||e<=0)&&(e=wj),n<=0)return Gy[0];const t=n/e;let r=Gy[0],a=1/0;for(const i of Gy){const s=Math.abs(Math.log(i.approxMs/t));s<a&&(a=s,r=i)}return r}const lE="__apexcharts_registry__";globalThis[lE]||(globalThis[lE]={});function Sj(){return globalThis[lE]}function Kae(n){Object.assign(Sj(),n)}function oa(n){const e=Sj()[n];if(!e)throw new Error(`ApexCharts: chart type "${n}" is not registered. Import it via ApexCharts.use() or use the full apexcharts bundle.`);return e}class Jae{constructor(e,t,r){this.w=t,this.ctx=r,this.el=e}setupElements(){const{globals:e,config:t}=this.w,r=t.chart.type,a=["line","area","bar","rangeBar","rangeArea","candlestick","boxPlot","violin","scatter","bubble"],i=[...a,"radar","heatmap","treemap"];e.axisCharts=i.includes(r),e.xyCharts=a.includes(r),e.isBarHorizontal=["bar","rangeBar","boxPlot","violin"].includes(r)&&t.plotOptions.bar.horizontal,e.chartClass=`.apexcharts${e.chartID}`,this.w.dom.baseEl=this.el,this.w.dom.elWrap=ke.createElementNS("http://www.w3.org/1999/xhtml","div"),ve.setAttrs(this.w.dom.elWrap,{id:e.chartClass.substring(1),class:`apexcharts-canvas ${e.chartClass.substring(1)}`}),this.el.appendChild(this.w.dom.elWrap);const s=globalThis.SVG;if(this.w.dom.Paper=s().addTo(this.w.dom.elWrap),this.w.dom.Paper.attr({class:"apexcharts-svg","xmlns:data":"ApexChartsNS",transform:`translate(${t.chart.offsetX}, ${t.chart.offsetY})`}),this.w.dom.Paper.node.style.background=t.theme.mode==="dark"&&!t.chart.background?"#343A3F":t.theme.mode==="light"&&!t.chart.background?"#fff":t.chart.background,this.setSVGDimensions(),this.w.dom.elLegendForeign=ke.createElementNS(xn,"foreignObject"),ve.setAttrs(this.w.dom.elLegendForeign,{x:0,y:0,width:e.svgWidth,height:e.svgHeight}),this.w.dom.elLegendWrap=ke.createElementNS("http://www.w3.org/1999/xhtml","div"),this.w.dom.elLegendWrap.classList.add("apexcharts-legend"),this.w.dom.elWrap.appendChild(this.w.dom.elLegendWrap),this.w.dom.Paper.node.appendChild(this.w.dom.elLegendForeign),t.chart.accessibility.enabled&&t.chart.accessibility.announcements.enabled){const o=ke.createElement("div");o.className="apexcharts-sr-status",o.setAttribute("role","status"),o.setAttribute("aria-live","polite"),o.setAttribute("aria-atomic","true"),this.w.dom.elWrap.appendChild(o)}if(t.chart.accessibility.enabled){const o=this.getAccessibleChartLabel(),l=t.chart.accessibility.keyboard.enabled&&t.chart.accessibility.keyboard.navigation.enabled?"application":"img";if(this.w.dom.Paper.attr({role:l,"aria-label":o}),t.chart.accessibility.description){const u=ke.createElementNS(xn,"desc");u.textContent=t.chart.accessibility.description,this.w.dom.Paper.node.insertBefore(u,this.w.dom.elLegendForeign.nextSibling)}}this.w.dom.elGraphical=this.w.dom.Paper.group().attr({class:"apexcharts-inner apexcharts-graphical"}),this.w.dom.elDefs=this.w.dom.Paper.defs(),this.w.dom.Paper.add(this.w.dom.elGraphical),this.w.dom.elGraphical.add(this.w.dom.elDefs)}plotChartType(e,t){const{w:r,ctx:a}=this,{config:i,globals:s}=r,o={line:{series:[],i:[]},area:{series:[],i:[]},scatter:{series:[],i:[]},bubble:{series:[],i:[]},bar:{series:[],i:[]},candlestick:{series:[],i:[]},boxPlot:{series:[],i:[]},violin:{series:[],i:[]},rangeBar:{series:[],i:[]},rangeArea:{series:[],seriesRangeEnd:[],i:[]}},l=i.chart.type||"line";let u=null,d=0;this.w.seriesData.series.forEach((D,M)=>{var A,T;const P=((A=e[M])==null?void 0:A.type)==="column"?"bar":((T=e[M])==null?void 0:T.type)||(l==="column"?"bar":l),R=o;R[P]?(P==="rangeArea"?(R[P].series.push(this.w.rangeData.seriesRangeStart[M]),R[P].seriesRangeEnd.push(this.w.rangeData.seriesRangeEnd[M])):R[P].series.push(D),R[P].i.push(M),P==="bar"&&(r.globals.columnSeries=o.bar)):["heatmap","treemap","pie","donut","polarArea","radialBar","radar"].includes(P)?u=P:console.warn(`You have specified an unrecognized series type (${P}).`),l!==P&&P!=="scatter"&&d++}),d>0&&(u&&console.warn(`Chart or series type ${u} cannot appear with other chart or series types.`),o.bar.series.length>0&&i.plotOptions.bar.horizontal&&(d-=o.bar.series.length,o.bar={series:[],i:[]},r.globals.columnSeries={series:[],i:[]},console.warn("Horizontal bars are not supported in a mixed/combo chart. Please turn off `plotOptions.bar.horizontal`"))),s.comboCharts||(s.comboCharts=d>0);const g=o.line.series.length>0||o.area.series.length>0||o.scatter.series.length>0||o.bubble.series.length>0||o.rangeArea.series.length>0||!s.comboCharts&&["line","area","scatter","bubble","rangeArea"].includes(i.chart.type)?new(oa("line"))(a.w,a,t):null,b=o.candlestick.series.length>0||o.boxPlot.series.length>0||!s.comboCharts&&["candlestick","boxPlot"].includes(i.chart.type)?new(oa("candlestick"))(a.w,a,t):null,x=o.violin.series.length>0||!s.comboCharts&&i.chart.type==="violin"?new(oa("violin"))(a.w,a,t):null,S=!s.comboCharts&&["pie","donut","polarArea"].includes(i.chart.type);a.pie=S?new(oa("pie"))(a.w,a):null;const C=o.rangeBar.series.length>0||!s.comboCharts&&i.chart.type==="rangeBar";a.rangeBar=C?new(oa("rangeBar"))(a.w,a,t):null;let O=[];if(s.comboCharts){const D=new Zn(this.w);if(o.area.series.length>0&&O.push(...D.drawSeriesByGroup(o.area,s.areaGroups,"area",g)),o.bar.series.length>0)if(i.chart.stacked){const M=new(oa("barStacked"))(a.w,a,t);O.push(M.draw(o.bar.series,o.bar.i))}else a.bar=new(oa("bar"))(a.w,a,t),O.push(a.bar.draw(o.bar.series,o.bar.i));if(o.rangeArea.series.length>0&&O.push(g.draw(o.rangeArea.series,"rangeArea",o.rangeArea.i,o.rangeArea.seriesRangeEnd)),o.line.series.length>0&&O.push(...D.drawSeriesByGroup(o.line,s.lineGroups,"line",g)),o.candlestick.series.length>0&&O.push(b.draw(o.candlestick.series,"candlestick",o.candlestick.i)),o.boxPlot.series.length>0&&O.push(b.draw(o.boxPlot.series,"boxPlot",o.boxPlot.i)),o.violin.series.length>0&&O.push(x.draw(o.violin.series,"violin",o.violin.i)),o.rangeBar.series.length>0&&O.push(a.rangeBar.draw(o.rangeBar.series,o.rangeBar.i)),o.scatter.series.length>0){const M=new(oa("line"))(a.w,a,t,!0);O.push(M.draw(o.scatter.series,"scatter",o.scatter.i))}if(o.bubble.series.length>0){const M=new(oa("line"))(a.w,a,t,!0);O.push(M.draw(o.bubble.series,"bubble",o.bubble.i))}}else{const D=i.chart.type;switch(D){case"line":O=g.draw(this.w.seriesData.series,"line");break;case"area":O=g.draw(this.w.seriesData.series,"area");break;case"bar":i.chart.stacked?O=new(oa("barStacked"))(a.w,a,t).draw(this.w.seriesData.series):(a.bar=new(oa("bar"))(a.w,a,t),O=a.bar.draw(this.w.seriesData.series));break;case"candlestick":O=b.draw(this.w.seriesData.series,"candlestick");break;case"boxPlot":O=b.draw(this.w.seriesData.series,D);break;case"violin":O=x.draw(this.w.seriesData.series,"violin");break;case"rangeBar":O=a.rangeBar.draw(this.w.seriesData.series);break;case"rangeArea":O=g.draw(this.w.rangeData.seriesRangeStart,"rangeArea",void 0,this.w.rangeData.seriesRangeEnd);break;case"heatmap":{O=new(oa("heatmap"))(a.w,a,t).draw(this.w.seriesData.series);break}case"treemap":{O=new(oa("treemap"))(a.w,a).draw(this.w.seriesData.series);break}case"pie":case"donut":case"polarArea":O=a.pie.draw(this.w.seriesData.series);break;case"radialBar":{O=new(oa("radialBar"))(a.w,a).draw(this.w.seriesData.series);break}case"radar":{O=new(oa("radar"))(a.w,a).draw(this.w.seriesData.series);break}default:O=g.draw(this.w.seriesData.series)}}return O}setSVGDimensions(){var e;const{globals:t,config:r}=this.w;r.chart.width=r.chart.width||"100%",r.chart.height=r.chart.height||"auto";const a=r.chart.width,i=r.chart.height;t.svgWidth=NaN,t.svgHeight=NaN;let s=ee.getDimensions(this.el);const o=a.toString().split(/[0-9]+/g).pop();o==="%"?ee.isNumber(s[0])&&(s[0].width===0&&(s=ee.getDimensions(this.el.parentNode)),t.svgWidth=s[0]*parseInt(a,10)/100):(o==="px"||o==="")&&(t.svgWidth=parseInt(a,10));const l=String(i).toString().split(/[0-9]+/g).pop();if(i!=="auto"&&i!=="")if(l==="%"){const u=ee.getDimensions(this.el.parentNode);t.svgHeight=u[1]*parseInt(i,10)/100}else t.svgHeight=parseInt(i,10);else t.svgHeight=t.axisCharts?t.svgWidth/1.61:t.svgWidth/1.2;if(t.svgWidth=Math.max(t.svgWidth,0),t.svgHeight=Math.max(t.svgHeight,0),ve.setAttrs(this.w.dom.Paper.node,{width:t.svgWidth,height:t.svgHeight}),l!=="%"&&qe.isBrowser()){const u=t.axisCharts&&(r.grid.show||r.dataLabels.enabled||r.xaxis.labels.show||r.xaxis.axisBorder.show||r.xaxis.axisTicks.show||r.yaxis.some(g=>g.show&&(g.labels.show||g.axisBorder.show||g.axisTicks.show))),d=r.chart.sparkline.enabled||!u?0:r.chart.parentHeightOffset,f=this.w.dom.Paper.node;(e=f.parentNode)!=null&&e.parentNode&&(f.parentNode.parentNode.style.minHeight=`${t.svgHeight+d}px`)}this.w.dom.elWrap.style.width=`${t.svgWidth}px`,this.w.dom.elWrap.style.height=`${t.svgHeight}px`}shiftGraphPosition(){const{globals:e}=this.w,{translateY:t,translateX:r}=e;ve.setAttrs(this.w.dom.elGraphical.node,{transform:`translate(${r}, ${t})`})}resizeNonAxisCharts(){var e,t,r,a,i,s;const{w:o}=this,l=o.config.chart.height?String(o.config.chart.height):"",u=l!==""&&l!=="auto",d=l.includes("%");let f=0,g=o.config.chart.sparkline.enabled?1:15;g+=o.config.grid.padding.bottom,["top","bottom"].includes(o.config.legend.position)&&o.config.legend.show&&!o.config.legend.floating&&(f=((t=(e=this.ctx.legend)==null?void 0:e.legendHelpers.getLegendDimensions().clwh)!=null?t:0)+7);const p=o.dom.baseEl.querySelector(".apexcharts-radialbar, .apexcharts-pie");let b=o.globals.radialSize*2.05;const y=Math.abs(o.config.plotOptions.radialBar.endAngle-o.config.plotOptions.radialBar.startAngle);if(p&&!o.config.chart.sparkline.enabled&&y<360){const S=ee.getBoundingClientRect(this.w.dom.Paper.node);let C=1/0,O=-1/0;const D=I=>{var $,Y,k,H;if(($=I.classList)!=null&&$.contains("apexcharts-radialbar-hollow"))return;const F=(k=(Y=I.tagName)==null?void 0:Y.toLowerCase)==null?void 0:k.call(Y);if(F==="text"||F==="tspan")return;const B=Array.from((H=I.children)!=null?H:[]);if(B.length>0){B.forEach(z=>D(z));return}const X=ee.getBoundingClientRect(I);if(X.bottom-X.top>0){const z=X.top-S.top,V=X.bottom-S.top;z<C&&(C=z),V>O&&(O=V)}};Array.from((r=p.children)!=null?r:[]).forEach(I=>D(I)),Number.isFinite(C)||(C=0),Number.isFinite(O)||(O=ee.getBoundingClientRect(p).bottom-S.top);const M=Math.max(g,o.globals.radialSize*.2),A=Math.max(M-C,0);A!==0&&(o.layout.translateY=((a=o.layout.translateY)!=null?a:0)+A,ve.setAttrs(this.w.dom.elGraphical.node,{transform:`translate(${(i=o.layout.translateX)!=null?i:0}, ${o.layout.translateY})`}),O+=A),b=O>0?O:o.globals.radialSize*2.05;const T=Math.max(M,C),P=Math.ceil(b+f+T),R=(s=o.config.chart.offsetY)!=null?s:0,N=P+Math.max(R,0);d||(this.w.dom.elLegendForeign&&this.w.dom.elLegendForeign.setAttribute("height",String(N)),this.w.dom.elWrap.style.height=`${N}px`,ve.setAttrs(this.w.dom.Paper.node,{height:P}),qe.isBrowser()&&(this.w.dom.Paper.node.parentNode.parentNode.style.minHeight=`${N}px`));return}const x=Math.ceil(b+this.w.layout.translateY+f+g);u||(this.w.dom.elLegendForeign&&this.w.dom.elLegendForeign.setAttribute("height",String(x)),this.w.dom.elWrap.style.height=`${x}px`,ve.setAttrs(this.w.dom.Paper.node,{height:x}),qe.isBrowser()&&(this.w.dom.Paper.node.parentNode.parentNode.style.minHeight=`${x}px`))}coreCalculations(){new iE(this.w).init()}resetGlobals(){const e=()=>this.w.config.series.map(()=>[]),t=new pj,{globals:r}=this.w,a={dataWasParsed:this.w.axisFlags.dataWasParsed,originalSeries:r.originalSeries};t.initGlobalVars(r),r.seriesXvalues=e(),r.seriesYvalues=e(),a.dataWasParsed&&(this.w.axisFlags.dataWasParsed=a.dataWasParsed,r.originalSeries=a.originalSeries)}isMultipleY(){return Array.isArray(this.w.config.yaxis)&&this.w.config.yaxis.length>1?(this.w.globals.isMultipleYAxis=!0,!0):!1}xySettings(){const{w:e}=this;let t=null;if(e.globals.axisCharts){if(e.config.xaxis.crosshairs.position==="back"&&new oE(this.w).drawXCrosshairs(),e.config.yaxis[0].crosshairs.position==="back"&&new oE(this.w).drawYCrosshairs(),e.config.xaxis.type==="datetime"&&e.config.xaxis.labels.formatter===void 0){this.ctx.timeScale=new Zae(this.w,this.ctx);let a=[];isFinite(e.globals.minX)&&isFinite(e.globals.maxX)&&!e.globals.isBarHorizontal?a=this.ctx.timeScale.calculateTimeScaleTicks(e.globals.minX,e.globals.maxX):e.globals.isBarHorizontal&&(a=this.ctx.timeScale.calculateTimeScaleTicks(e.globals.minY,e.globals.maxY)),this.ctx.timeScale.recalcDimensionsBasedOnFormat(a)}t=new Zn(this.w).getCalculatedRatios()}return t}updateSourceChart(e){this.ctx.w.interact.selection=void 0,this.ctx.updateHelpers._updateOptions({chart:{selection:{xaxis:{min:e.w.globals.minX,max:e.w.globals.maxX}}}},!1,!1)}setupBrushHandler(){const{ctx:e,w:t}=this;if(t.config.chart.brush.enabled&&typeof t.config.chart.events.selection!="function"){const r=Array.isArray(t.config.chart.brush.targets)?t.config.chart.brush.targets:[t.config.chart.brush.target];r.forEach(a=>{const i=e.constructor.getChartByID(a);i.w.globals.brushSource=this.ctx,typeof i.w.config.chart.events.zoomed!="function"&&(i.w.config.chart.events.zoomed=()=>this.updateSourceChart(i)),typeof i.w.config.chart.events.scrolled!="function"&&(i.w.config.chart.events.scrolled=()=>this.updateSourceChart(i))}),t.config.chart.events.selection=(a,i)=>{r.forEach(s=>{e.constructor.getChartByID(s).ctx.updateHelpers._updateOptions({xaxis:{min:i.xaxis.min,max:i.xaxis.max}},!1,!1,!1,!1)})}}}getAccessibleChartLabel(){const e=this.w,t=e.config;if(t.chart.accessibility&&t.chart.accessibility.description)return t.chart.accessibility.description;const r=t.chart.type,a=[];if(t.title.text)a.push(`${t.title.text}. ${r} chart`),t.subtitle.text&&a.push(t.subtitle.text);else{const i=Array.isArray(e.seriesData.seriesNames)&&e.seriesData.seriesNames.length?e.seriesData.seriesNames.filter(Boolean):Array.isArray(t.series)?t.series.map(o=>typeof o=="object"&&o!==null?o.name:null).filter(Boolean):[],s=e.seriesData.series.length||(t.series?t.series.length:0);i.length?a.push(`${r} chart with ${s} data series: ${i.join(", ")}`):a.push(`${r} chart with ${s} data series`)}return a.join(". ")}}class xl{constructor(e,{resetGlobals:t=()=>{},isMultipleY:r=()=>{}}={}){this.w=e,this.resetGlobals=t,this.isMultipleY=r,this.twoDSeries=[],this.threeDSeries=[],this.twoDSeriesX=[],this.seriesGoals=[],this.coreUtils=new Zn(this.w),this.activeSeriesIndex=0}getFirstDataPoint(){const e=this.w.config.series,t=new Wn(this.w);this.activeSeriesIndex=t.getActiveConfigSeriesIndex();const r=e[this.activeSeriesIndex];return r&&r.data&&r.data.length>0&&r.data[0]!==null&&typeof r.data[0]<"u"?r.data[0]:null}isMultiFormat(){return this.isFormatXY()||this.isFormat2DArray()}isFormatXY(){var e;const t=this.getFirstDataPoint();if(!t||typeof t.x>"u")return!1;const r=(e=this.w.config.series[this.activeSeriesIndex])==null?void 0:e.data;if(r){const a=i=>i&&typeof i.x<"u";for(let i=1;i<Math.min(3,r.length);i++)if(a(r[i])!==!0){console.warn(`ApexCharts: series data has mixed formats starting at index ${i}`);break}}return!0}isFormat2DArray(){const e=this.getFirstDataPoint();return e&&Array.isArray(e)}handleFormat2DArray(e,t){const r=this.w.config,a=e[t].data,i=r.chart.type==="boxPlot"||r.series[t].type==="boxPlot";for(let s=0;s<a.length;s++){const o=a[s],l=o[0],u=o[1],d=o[2];if(typeof u<"u"&&(Array.isArray(u)&&u.length===4&&!i?this.twoDSeries.push(ee.parseNumber(u[3])):o.length>=5?this.twoDSeries.push(ee.parseNumber(o[4])):this.twoDSeries.push(ee.parseNumber(u)),this.w.axisFlags.dataFormatXNumeric=!0),r.xaxis.type==="datetime"){const f=new Date(l).getTime();this.twoDSeriesX.push(f)}else this.twoDSeriesX.push(l);typeof d<"u"&&(this.threeDSeries.push(d),this.w.axisFlags.isDataXYZ=!0)}}handleFormatXY(e,t){const r=this.w.config,a=this.w.globals,i=new Ha(this.w),s=e[t].data;let o=t;a.collapsedSeriesIndices.indexOf(t)>-1&&(o=this.activeSeriesIndex);const l=e[o].data;for(let u=0;u<s.length;u++){const d=s[u];if(typeof d.y<"u"){const f=Array.isArray(d.y)?ee.parseNumber(d.y[d.y.length-1]):ee.parseNumber(d.y);this.twoDSeries.push(f)}typeof this.seriesGoals[t]>"u"&&(this.seriesGoals[t]=[]),typeof d.goals<"u"&&Array.isArray(d.goals)?this.seriesGoals[t].push(d.goals):this.seriesGoals[t].push(null),typeof d.z<"u"&&(this.threeDSeries.push(d.z),this.w.axisFlags.isDataXYZ=!0)}for(let u=0;u<l.length;u++){const f=l[u].x,g=typeof f=="string",p=Array.isArray(f),b=!p&&!!i.isValidDate(f);if(g||b)if(g||r.xaxis.convertedCatToNumeric){const y=a.isBarHorizontal&&this.w.axisFlags.isRangeData;r.xaxis.type==="datetime"&&!y?this.twoDSeriesX.push(i.parseDate(f)):(this.fallbackToCategory=!0,this.twoDSeriesX.push(f),!isNaN(f)&&this.w.config.xaxis.type!=="category"&&typeof f!="string"&&(this.w.axisFlags.isXNumeric=!0))}else r.xaxis.type==="datetime"?this.twoDSeriesX.push(i.parseDate(f.toString())):(this.w.axisFlags.dataFormatXNumeric=!0,this.w.axisFlags.isXNumeric=!0,this.twoDSeriesX.push(parseFloat(f)));else p?(this.fallbackToCategory=!0,this.twoDSeriesX.push(f)):(this.w.axisFlags.isXNumeric=!0,this.w.axisFlags.dataFormatXNumeric=!0,this.twoDSeriesX.push(f))}}handleRangeData(e,t){let r={start:[],end:[],rangeUniques:[]};return this.isFormat2DArray()?r=this.handleRangeDataFormat("array",e,t):this.isFormatXY()&&(r=this.handleRangeDataFormat("xy",e,t)),this.w.rangeData.seriesRangeStart[t]=r.start===void 0?[]:r.start,this.w.rangeData.seriesRangeEnd[t]=r.end===void 0?[]:r.end,this.w.rangeData.seriesRange[t]=r.rangeUniques,this.w.rangeData.seriesRange.forEach(a=>{a&&a.forEach(i=>{const s=i.y,o=s.length;if(!(o<=1))for(let l=0;l<o;l++){const u=s[l],d=u.y1,f=u.y2;for(let g=l+1;g<o;g++){const p=s[g],b=p.y1,y=p.y2;if(d<=y&&b<=f){const x=i;x.overlaps.add(u.rangeName),x.overlaps.add(p.rangeName)}}}})}),r}handleCandleStickBoxData(e,t){let r={o:[],h:[],m:[],l:[],c:[]};return this.isFormat2DArray()?r=this.handleCandleStickBoxDataFormat("array",e,t):this.isFormatXY()&&(r=this.handleCandleStickBoxDataFormat("xy",e,t)),this.w.candleData.seriesCandleO[t]=r.o,this.w.candleData.seriesCandleH[t]=r.h,this.w.candleData.seriesCandleM[t]=r.m,this.w.candleData.seriesCandleL[t]=r.l,this.w.candleData.seriesCandleC[t]=r.c,this.w.candleData.seriesBoxPoints[t]=r.points||[],r}handleViolinData(e,t){var r,a,i,s,o,l;const u=this.w,d=e[t].data,f=[],g=[],p=[],b=[],y=[];for(let x=0;x<d.length;x++){const S=d[x],C=(i=(a=(r=S?.y)==null?void 0:r.density)!=null?a:S?.[1])!=null?i:[],O=(l=(o=(s=S?.y)==null?void 0:s.points)!=null?o:S?.[2])!=null?l:[],D=[],M=[];let A=0,T=null,P=1/0,R=-1/0;for(let I=0;I<C.length;I++){const $=ee.parseNumber(C[I][0]),Y=ee.parseNumber(C[I][1]);$===null||Y===null||(D.push($),M.push(Y),Y>A&&(A=Y,T=$),$<P&&(P=$),$>R&&(R=$))}const N=[];for(let I=0;I<O.length;I++){const $=ee.parseNumber(O[I]);$!==null&&(N.push($),$<P&&(P=$),$>R&&(R=$))}f.push({values:D,weights:M,maxWeight:A}),g.push(N),p.push(P===1/0?0:P),b.push(R===-1/0?0:R),y.push(T!==null?T:N.length?N[Math.floor(N.length/2)]:0)}u.violinData.seriesViolinDensity[t]=f,u.violinData.seriesViolinPoints[t]=g,u.violinData.seriesViolinMin[t]=p,u.violinData.seriesViolinMax[t]=b,this.twoDSeries=y}handleRangeDataFormat(e,t,r){const a=[],i=[],s=new Map,o=[];if(t[r].data.forEach(l=>{if(!s.has(l.x)){const u={x:l.x,overlaps:new Set,y:[]};s.set(l.x,u),o.push(u)}}),e==="array")for(let l=0;l<t[r].data.length;l++)Array.isArray(t[r].data[l])?(a.push(t[r].data[l][1][0]),i.push(t[r].data[l][1][1])):(a.push(t[r].data[l]),i.push(t[r].data[l]));else if(e==="xy")for(let l=0;l<t[r].data.length;l++){const u=Array.isArray(t[r].data[l].y),d=ee.randomId(),f=t[r].data[l].x,g={y1:u?t[r].data[l].y[0]:t[r].data[l].y,y2:u?t[r].data[l].y[1]:t[r].data[l].y,rangeName:d};t[r].data[l].rangeName=d;const p=s.get(f);p&&p.y.push(g),a.push(g.y1),i.push(g.y2)}return{start:a,end:i,rangeUniques:o}}handleCandleStickBoxDataFormat(e,t,r){const a=this.w,i=a.config.chart.type==="boxPlot"||a.config.series[r].type==="boxPlot",s=[],o=[],l=[],u=[],d=[],f=[],g=t[r].data;let p;e==="array"?i&&g[0].length===6||!i&&g[0].length===5?p=y=>y.slice(1):p=y=>Array.isArray(y[1])?y[1]:[]:p=b=>Array.isArray(b.y)?b.y:[];for(let b=0;b<g.length;b++){const y=p(g[b]);y&&y.length>=2&&(s.push(y[0]),o.push(y[1]),i?(l.push(y[2]),u.push(y[3]),d.push(y[4])):(u.push(y[2]),d.push(y[3])));const x=g[b]&&g[b].points;f.push(Array.isArray(x)?x:[])}return{o:s,h:o,m:l,l:u,c:d,points:f}}parseDataAxisCharts(e){var t,r,a,i,s,o;const l=this.w.config,u=this.w.globals,d=new Ha(this.w),f=l.labels.length>0?l.labels.slice():l.xaxis.categories.slice();this.w.axisFlags.isRangeBar=l.chart.type==="rangeBar"&&u.isBarHorizontal,this.w.labelData.hasXaxisGroups=l.xaxis.type==="category"&&l.xaxis.group.groups.length>0,this.w.labelData.hasXaxisGroups&&(this.w.labelData.groups=l.xaxis.group.groups),e.forEach((y,x)=>{y.name!==void 0?this.w.seriesData.seriesNames.push(y.name):this.w.seriesData.seriesNames.push("series-"+parseInt(String(x+1),10))}),this.coreUtils.setSeriesYAxisMappings();const g=[],p=[...new Set(l.series.map(y=>y.group))];l.series.forEach((y,x)=>{const S=p.indexOf(y.group);g[S]||(g[S]=[]),g[S].push(this.w.seriesData.seriesNames[x])}),this.w.labelData.seriesGroups=g;const b=()=>{for(let y=0;y<f.length;y++)if(typeof f[y]=="string")if(d.isValidDate(f[y]))this.twoDSeriesX.push(d.parseDate(f[y]));else throw new Error("You have provided invalid Date format. Please provide a valid JavaScript Date");else this.twoDSeriesX.push(f[y])};for(let y=0;y<e.length;y++){if(this.twoDSeries=[],this.twoDSeriesX=[],this.threeDSeries=[],typeof e[y].data>"u"){console.error("It is a possibility that you may have not included 'data' property in series.");return}const x=l.chart.dataReducer,S=(r=(t=u.dataReducerRawSeries)==null?void 0:t[y])==null?void 0:r.data;if(x?.enabled&&this.isMultiFormat()&&Array.isArray(S)&&S.length>((a=x.threshold)!=null?a:500)){const C=(i=x.targetPoints)!=null?i:250,O=l.xaxis.min,D=l.xaxis.max,M=O==null&&D==null?S:xl.sliceByXRange(S,O,D);let A=M;if(M.length>C){const T=Array.isArray(M[0])?(o=M[0])==null?void 0:o[1]:(s=M[0])==null?void 0:s.y;Array.isArray(T)?T.length===4&&(A=xl.ohlcAggregate(M,C)):A=xl.lttbDownsample(M,C)}e[y]=Lt(ct({},e[y]),{data:A})}if((l.chart.type==="rangeBar"||l.chart.type==="rangeArea"||e[y].type==="rangeBar"||e[y].type==="rangeArea")&&(this.w.axisFlags.isRangeData=!0,this.handleRangeData(e,y)),this.isMultiFormat())this.isFormat2DArray()?this.handleFormat2DArray(e,y):this.isFormatXY()&&this.handleFormatXY(e,y),(l.chart.type==="candlestick"||e[y].type==="candlestick"||l.chart.type==="boxPlot"||e[y].type==="boxPlot")&&this.handleCandleStickBoxData(e,y),(l.chart.type==="violin"||e[y].type==="violin")&&this.handleViolinData(e,y),this.w.seriesData.series.push(this.twoDSeries),this.w.labelData.labels.push(this.twoDSeriesX),this.w.seriesData.seriesX.push(this.twoDSeriesX),this.w.seriesData.seriesGoals=this.seriesGoals,y===this.activeSeriesIndex&&!this.fallbackToCategory&&(this.w.axisFlags.isXNumeric=!0);else{l.xaxis.type==="datetime"?(this.w.axisFlags.isXNumeric=!0,b(),this.w.seriesData.seriesX.push(this.twoDSeriesX)):l.xaxis.type==="numeric"&&(this.w.axisFlags.isXNumeric=!0,f.length>0&&(this.twoDSeriesX=f,this.w.seriesData.seriesX.push(this.twoDSeriesX))),this.w.labelData.labels.push(this.twoDSeriesX);const C=e[y].data.map(O=>ee.parseNumber(O));this.w.seriesData.series.push(C)}this.w.seriesData.seriesZ.push(this.threeDSeries),e[y].color!==void 0?this.w.seriesData.seriesColors.push(e[y].color):this.w.seriesData.seriesColors.push(void 0)}return this.w}parseDataNonAxisCharts(e){const t=this.w.config,r=Array.isArray(e)&&e.every(s=>typeof s=="number")&&t.labels.length>0,a=Array.isArray(e)&&e.some(s=>s&&typeof s=="object"&&s.data||s&&typeof s=="object"&&s.parsing);if(r&&a&&console.warn("ApexCharts: Both old format (numeric series + labels) and new format (series objects with data/parsing) detected. Using old format for backward compatibility."),r){this.w.seriesData.series=e.slice(),this.w.seriesData.seriesNames=t.labels.slice();for(let s=0;s<this.w.seriesData.series.length;s++)this.w.seriesData.seriesNames[s]===void 0&&this.w.seriesData.seriesNames.push("series-"+(s+1));return this.w}if(Array.isArray(e)&&e.every(s=>typeof s=="number")){this.w.seriesData.series=e.slice(),this.w.seriesData.seriesNames=[];for(let s=0;s<this.w.seriesData.series.length;s++)this.w.seriesData.seriesNames.push(t.labels[s]||`series-${s+1}`);return this.w}const i=this.extractPieDataFromSeries(e);this.w.seriesData.series=i.values,this.w.seriesData.seriesNames=i.labels,t.chart.type==="radialBar"&&(this.w.seriesData.series=this.w.seriesData.series.map(s=>{const o=ee.parseNumber(s);return o>100&&console.warn(`ApexCharts: RadialBar value ${o} > 100, consider using percentage values (0-100)`),o}));for(let s=0;s<this.w.seriesData.series.length;s++)this.w.seriesData.seriesNames[s]===void 0&&this.w.seriesData.seriesNames.push("series-"+(s+1));return this.w}resetParsingFlags(){const e=this.w;e.axisFlags.dataWasParsed=!1,e.globals.originalSeries=null,e.config.series&&e.config.series.forEach(t=>{t.__apexParsed&&delete t.__apexParsed})}extractPieDataFromSeries(e){const t=[],r=[];if(!Array.isArray(e))return console.warn("ApexCharts: Expected array for series data"),{values:[],labels:[]};if(e.length===0)return console.warn("ApexCharts: Empty series array"),{values:[],labels:[]};const a=e[0];if(typeof a=="object"&&a!==null&&a.data)this.extractPieDataFromSeriesObjects(e,t,r);else return console.warn("ApexCharts: Unsupported series format for pie/donut/radialBar. Expected series objects with data property."),{values:[],labels:[]};return{values:t,labels:r}}extractPieDataFromSeriesObjects(e,t,r){e.forEach((a,i)=>{if(!a.data||!Array.isArray(a.data)){console.warn(`ApexCharts: Series ${i} has no valid data array`);return}a.data.forEach(s=>{typeof s=="object"&&s!==null?s.x!==void 0&&s.y!==void 0?(r.push(String(s.x)),t.push(ee.parseNumber(s.y))):console.warn("ApexCharts: Invalid data point format for pie chart. Expected {x, y} format:",s):console.warn("ApexCharts: Expected object data point, got:",typeof s)})})}handleExternalLabelsData(e){const t=this.w.config;if(t.xaxis.categories.length>0)this.w.labelData.labels=t.xaxis.categories;else if(t.labels.length>0)this.w.labelData.labels=t.labels.slice();else if(this.fallbackToCategory){if(this.w.labelData.labels=this.w.labelData.labels[0],this.w.rangeData.seriesRange.length){this.w.rangeData.seriesRange.map(a=>{a.forEach(i=>{this.w.labelData.labels.indexOf(i.x)<0&&i.x&&this.w.labelData.labels.push(i.x)})});const r=this.w.labelData.labels;if(r.length>0&&(typeof r[0]=="number"||typeof r[0]=="string"))this.w.labelData.labels=[...new Set(r)];else{const a=new Map;for(const i of r){const s=JSON.stringify(i);a.has(s)||a.set(s,i)}this.w.labelData.labels=Array.from(a.values())}}t.xaxis.convertedCatToNumeric&&(new mh(t).convertCatToNumericXaxis(t,this.w.seriesData.seriesX[0]),this._generateExternalLabels(e))}else this._generateExternalLabels(e)}_generateExternalLabels(e){const t=this.w.globals,r=this.w.config;let a=[];if(t.axisCharts){if(this.w.seriesData.series.length>0)if(this.isFormatXY()){const i=r.series.map(o=>{const l=new Map;for(const u of o.data)l.has(u.x)||l.set(u.x,u);return Array.from(l.values())}),s=i.reduce((o,l,u,d)=>d[o].length>l.length?o:u,0);for(let o=0;o<i[s].length;o++)a.push(o+1)}else for(let i=0;i<this.w.seriesData.series[t.maxValsInArrayIndex].length;i++)a.push(i+1);this.w.seriesData.seriesX=[];for(let i=0;i<e.length;i++)this.w.seriesData.seriesX.push(a);this.w.globals.isBarHorizontal||(this.w.axisFlags.isXNumeric=!0)}if(a.length===0){a=t.axisCharts?[]:this.w.seriesData.series.map((i,s)=>s+1);for(let i=0;i<e.length;i++)this.w.seriesData.seriesX.push(a)}this.w.labelData.labels=a,r.xaxis.convertedCatToNumeric&&(this.w.labelData.categoryLabels=a.map(i=>r.xaxis.labels.formatter(i))),this.w.axisFlags.noLabelsProvided=!0}parseRawDataIfNeeded(e){const t=this.w.config,r=this.w.globals,a=t.parsing;if(this.w.axisFlags.dataWasParsed||!a&&!e.some(s=>s.parsing))return e;const i=e.map((s,o)=>{var l,u,d;if(!s.data||!Array.isArray(s.data)||s.data.length===0)return s;const f={x:((l=s.parsing)==null?void 0:l.x)||a?.x,y:((u=s.parsing)==null?void 0:u.y)||a?.y,z:((d=s.parsing)==null?void 0:d.z)||a?.z};if(!f.x&&!f.y)return s;const g=s.data[0];if(typeof g=="object"&&g!==null&&(Object.prototype.hasOwnProperty.call(g,"x")||Object.prototype.hasOwnProperty.call(g,"y"))||Array.isArray(g))return s;if(!f.x||!f.y||Array.isArray(f.y)&&f.y.length===0)return console.warn(`ApexCharts: Series ${o} has parsing config but missing x or y field specification`),s;const p=s.data.map((b,y)=>{if(typeof b!="object"||b===null)return console.warn(`ApexCharts: Series ${o}, data point ${y} is not an object, skipping parsing`),b;const x=this.getNestedValue(b,f.x);let S,C;if(Array.isArray(f.y)){const D=f.y.map(M=>this.getNestedValue(b,M));this.w.config.chart.type==="bubble"?(D.length<2&&console.warn(`ApexCharts: series[${o}] bubble chart requires parseData.y to have at least 2 fields (y and z). Got: ${JSON.stringify(f.y)}`),S=D[0]):S=D}else S=this.getNestedValue(b,f.y);f.z&&(C=this.getNestedValue(b,f.z)),x===void 0&&console.warn(`ApexCharts: Series ${o}, data point ${y} missing field '${f.x}'`),S===void 0&&console.warn(`ApexCharts: Series ${o}, data point ${y} missing field '${f.y}'`);const O={x,y:S,z:void 0};if(this.w.config.chart.type==="bubble"&&Array.isArray(f.y)&&f.y.length===2){const D=this.getNestedValue(b,f.y[1]);D!==void 0&&(O.z=D)}return C!==void 0&&(O.z=C),O});return Lt(ct({},s),{data:p,__apexParsed:!0})});return this.w.axisFlags.dataWasParsed=!0,r.originalSeries||(r.originalSeries=ee.clone(e)),i}getNestedValue(e,t){if(!e||typeof e!="object"||!t)return;if(t.indexOf(".")===-1)return e[t];const r=t.split(".");let a=e;for(let i=0;i<r.length;i++){if(a==null||typeof a!="object")return;a=a[r[i]]}return a}parseData(e){var t,r,a,i,s,o;const l=this.w,u=l.config,d=l.globals;if(e=this.parseRawDataIfNeeded(e),(t=u.chart.dataReducer)!=null&&t.enabled&&d.axisCharts&&!d.dataReducerRawSeries){d.dataReducerRawSeries=e.map(b=>({data:Array.isArray(b?.data)?b.data.slice():b?.data}));let g=1/0,p=-1/0;for(const b of e){const y=b?.data;if(!Array.isArray(y)||y.length===0)continue;const x=!Array.isArray(y[0]),S=x?(r=y[0])==null?void 0:r.x:(a=y[0])==null?void 0:a[0],C=x?(i=y[y.length-1])==null?void 0:i.x:(s=y[y.length-1])==null?void 0:s[0];typeof S=="number"&&(g=Math.min(g,S)),typeof C=="number"&&(p=Math.max(p,C))}g!==1/0&&(d.dataReducerRawMinX=g,d.dataReducerRawMaxX=p)}if(u.series=e,d.dataReducerRawSeries&&((o=u.chart.dataReducer)!=null&&o.enabled)){const g=d.dataReducerRawSeries;d.initialSeries=e.map((p,b)=>{var y,x,S;return Lt(ct({},p),{data:(S=(x=(y=g[b])==null?void 0:y.data)==null?void 0:x.slice())!=null?S:p.data})})}else d.initialSeries=ee.clone(e);if(this.excludeCollapsedSeriesInYAxis(),this.fallbackToCategory=!1,this.resetGlobals(),this.isMultipleY(),d.axisCharts?(this.parseDataAxisCharts(e),this.coreUtils.getLargestSeries()):this.parseDataNonAxisCharts(e),u.chart.stacked){const g=new Wn(this.w);this.w.seriesData.series=g.setNullSeriesToZeroValues(this.w.seriesData.series)}this.coreUtils.getSeriesTotals(),d.axisCharts&&(this.w.seriesData.stackedSeriesTotals=this.coreUtils.getStackedSeriesTotals(),this.w.seriesData.stackedSeriesTotalsByGroups=this.coreUtils.getStackedSeriesTotalsByGroups()),this.coreUtils.getPercentSeries(),!this.w.axisFlags.dataFormatXNumeric&&(!this.w.axisFlags.isXNumeric||u.xaxis.type==="numeric"&&u.labels.length===0&&u.xaxis.categories.length===0)&&this.handleExternalLabelsData(e);const f=this.coreUtils.getCategoryLabels(this.w.labelData.labels);for(let g=0;g<f.length;g++)if(Array.isArray(f[g])){this.w.axisFlags.isMultiLineX=!0;break}return{seriesData:{series:this.w.seriesData.series,seriesNames:this.w.seriesData.seriesNames,seriesX:this.w.seriesData.seriesX,seriesZ:this.w.seriesData.seriesZ,seriesColors:this.w.seriesData.seriesColors,seriesGoals:this.w.seriesData.seriesGoals,initialSeries:d.initialSeries,originalSeries:d.originalSeries,stackedSeriesTotals:this.w.seriesData.stackedSeriesTotals,stackedSeriesTotalsByGroups:this.w.seriesData.stackedSeriesTotalsByGroups,noLabelsProvided:this.w.axisFlags.noLabelsProvided},rangeData:{seriesRangeStart:this.w.rangeData.seriesRangeStart,seriesRangeEnd:this.w.rangeData.seriesRangeEnd,seriesRange:this.w.rangeData.seriesRange},candleData:{seriesCandleO:this.w.candleData.seriesCandleO,seriesCandleH:this.w.candleData.seriesCandleH,seriesCandleM:this.w.candleData.seriesCandleM,seriesCandleL:this.w.candleData.seriesCandleL,seriesCandleC:this.w.candleData.seriesCandleC,seriesBoxPoints:this.w.candleData.seriesBoxPoints},labelData:{labels:this.w.labelData.labels,categoryLabels:this.w.labelData.categoryLabels},axisFlags:{isXNumeric:this.w.axisFlags.isXNumeric,dataFormatXNumeric:this.w.axisFlags.dataFormatXNumeric,isDataXYZ:this.w.axisFlags.isDataXYZ,isRangeData:this.w.axisFlags.isRangeData,isRangeBar:this.w.axisFlags.isRangeBar,isMultiLineX:this.w.axisFlags.isMultiLineX,dataWasParsed:this.w.axisFlags.dataWasParsed,hasXaxisGroups:this.w.labelData.hasXaxisGroups,groups:this.w.labelData.groups,seriesGroups:this.w.labelData.seriesGroups}}}static sliceByXRange(e,t,r){const a=e.length;if(a===0)return e;const s=!Array.isArray(e[0])?u=>u.x:u=>u[0];let o=0;if(t!=null){let u=0,d=a-1;for(;u<=d;){const f=u+d>>1;s(e[f])<t?u=f+1:d=f-1}o=Math.max(0,u-1)}let l=a;if(r!=null){let u=0,d=a-1;for(;u<=d;){const f=u+d>>1;s(e[f])>r?d=f-1:u=f+1}l=Math.min(a,u+1)}return o===0&&l===a?e.slice():e.slice(o,l)}static lttbDownsample(e,t){const r=e.length;if(t>=r||t<3)return e;const a=!Array.isArray(e[0]),i=a?d=>d.x:d=>d[0],s=a?d=>d.y:d=>d[1],o=[];o.push(e[0]);const l=(r-2)/(t-2);let u=0;for(let d=0;d<t-2;d++){const f=Math.floor((d+1)*l)+1,g=Math.min(Math.floor((d+2)*l)+1,r);let p=0,b=0;const y=g-f;for(let A=f;A<g;A++)p+=i(e[A]),b+=s(e[A]);p/=y,b/=y;const x=Math.floor(d*l)+1,S=Math.min(Math.floor((d+1)*l)+1,r),C=i(e[u]),O=s(e[u]);let D=-1,M=x;for(let A=x;A<S;A++){const T=Math.abs((C-p)*(s(e[A])-O)-(C-i(e[A]))*(b-O))*.5;T>D&&(D=T,M=A)}o.push(e[M]),u=M}return o.push(e[r-1]),o}static ohlcAggregate(e,t){const r=e.length;if(t>=r||t<1)return e;const a=!Array.isArray(e[0]),i=a?d=>d.x:d=>d[0],s=a?d=>d.y:d=>d[1],o=a?(d,f)=>({x:d,y:f}):(d,f)=>[d,f],l=[],u=r/t;for(let d=0;d<t;d++){const f=Math.floor(d*u),g=d===t-1?r:Math.floor((d+1)*u);if(g<=f)continue;const p=s(e[f]),b=p[0];let y=p[1],x=p[2],S=p[3];for(let C=f+1;C<g;C++){const O=s(e[C]);O[1]>y&&(y=O[1]),O[2]<x&&(x=O[2]),S=O[3]}l.push(o(i(e[f]),[b,y,x,S]))}return l}excludeCollapsedSeriesInYAxis(){const e=this.w,t=[];e.globals.seriesYAxisMap.forEach((r,a)=>{let i=0;r.forEach(s=>{e.globals.collapsedSeriesIndices.indexOf(s)!==-1&&i++}),i>0&&i==r.length&&t.push(a)}),e.globals.ignoreYAxisIndexes=t.map(r=>r)}}class eie{constructor(e,t){this.w=e,this.ctx=t}_updateOptions(e,t=!1,r=!0,a=!0,i=!1){return new Promise(s=>{let o=[this.ctx];a&&(o=this.ctx.getSyncedCharts()),this.w.globals.isExecCalled&&(o=[this.ctx],this.w.globals.isExecCalled=!1),o.forEach((l,u)=>{var d,f;const g=l.w;if(g.globals.shouldAnimate=r,t||(g.globals.resized=!0,g.globals.dataChanged=!0,r&&l.series.getPreviousPaths()),r&&e&&typeof e=="object"){const p=(d=e?.chart)==null?void 0:d.type,b=g.config.chart.requestedType||g.config.chart.type;p&&p!==b&&((f=l.morphTypeChange)==null||f.captureBeforeDestroy({fromType:b,toType:p,newSeries:e.series||g.config.series}))}if(e&&typeof e=="object"){l.config=new vh(e);const p=e.chart&&e.chart.type,b=p==="funnel"||p==="pyramid"||p==="gauge",y=!!g.config.chart.requestedType;if(p&&!b&&y){e.chart=e.chart||{},e.chart.requestedType=p;const x=g.config.chart.requestedType;(x==="funnel"||x==="pyramid")&&(e.plotOptions=e.plotOptions||{},e.plotOptions.bar=e.plotOptions.bar||{},e.plotOptions.bar.isFunnel===void 0&&(e.plotOptions.bar.isFunnel=!1),e.plotOptions.bar.isPyramid===void 0&&(e.plotOptions.bar.isPyramid=!1))}if(l.config.normalizeAliasedChartType(e),e=Zn.extendArrayProps(l.config,e,g),l.w.globals.chartID!==this.w.globals.chartID&&delete e.series,g.config=ee.extend(g.config,e),i&&(g.globals.lastXAxis=e.xaxis?ee.clone(e.xaxis):[],g.globals.lastYAxis=e.yaxis?ee.clone(e.yaxis):[],g.globals.initialConfig=ee.extend({},g.config),g.globals.initialSeries=ee.clone(g.config.series),e.series)){for(let x=0;x<g.globals.collapsedSeriesIndices.length;x++){const S=g.config.series[g.globals.collapsedSeriesIndices[x]];g.globals.collapsedSeries[x].data=g.globals.axisCharts?S.data.slice():S}for(let x=0;x<g.globals.ancillaryCollapsedSeriesIndices.length;x++){const S=g.config.series[g.globals.ancillaryCollapsedSeriesIndices[x]];g.globals.ancillaryCollapsedSeries[x].data=g.globals.axisCharts?S.data.slice():S}l.series.emptyCollapsedSeries(g.config.series)}}return l.update(e).then(()=>{u===o.length-1&&s(l)})})})}_updateSeries(e,t,r=!1){return new Promise(a=>{const i=this.w;i.globals.shouldAnimate=t,i.globals.dataChanged=!0,$M.invalidateSelectors(i),t&&this.ctx.series.getPreviousPaths();const s=i.config.series.length;i.globals.dataReducerRawSeries=null,this.ctx.data.resetParsingFlags();const o=this.ctx.data.parseData(e);return this.ctx._writeParsedSeriesData(o.seriesData),this.ctx._writeParsedRangeData(o.rangeData),this.ctx._writeParsedCandleData(o.candleData),this.ctx._writeParsedLabelData(o.labelData),this.ctx._writeParsedAxisFlags(o.axisFlags),r&&(i.globals.initialConfig&&(i.globals.initialConfig.series=ee.clone(i.config.series)),i.globals.initialSeries=ee.clone(i.config.series)),this._canUseFastPath(e,s,i)?this.ctx.fastUpdate(t).then(()=>{a(this.ctx)}):this.ctx.update().then(()=>{a(this.ctx)})})}_canUseFastPath(e,t,r){return!(!r.dom.elGraphical||!r.globals.axisCharts||e.length!==t||r.globals.collapsedSeries.length>0||r.globals.ancillaryCollapsedSeries.length>0||r.globals.risingSeries.length>0||r.globals.comboCharts||r.interact.zoomed)}_extendSeries(e,t){const r=this.w,a=r.config.series[t];return Lt(ct({},r.config.series[t]),{name:e.name?e.name:a?.name,color:e.color?e.color:a?.color,type:e.type?e.type:a?.type,group:e.group?e.group:a?.group,hidden:typeof e.hidden<"u"?e.hidden:a?.hidden,data:e.data?e.data:a?.data,zIndex:typeof e.zIndex<"u"?e.zIndex:t})}toggleDataPointSelection(e,t){const r=this.w;let a=null;const i=`.apexcharts-series[data\\:realIndex='${e}']`;if(r.globals.axisCharts?a=r.dom.Paper.findOne(`${i} path[j='${t}'], ${i} circle[j='${t}'], ${i} rect[j='${t}']`):typeof t>"u"&&(a=r.dom.Paper.findOne(`${i} path[j='${e}']`),(r.config.chart.type==="pie"||r.config.chart.type==="polarArea"||r.config.chart.type==="donut")&&this.ctx.pie.pieClicked(e)),a)new ve(this.w).pathMouseDown(a,null);else return console.warn("toggleDataPointSelection: Element not found"),null;return a.node?a.node:null}forceXAxisUpdate(e){const t=this.w;return["min","max"].forEach(a=>{typeof e.xaxis[a]<"u"&&(t.config.xaxis[a]=e.xaxis[a],t.globals.lastXAxis[a]=e.xaxis[a])}),e.xaxis.categories&&e.xaxis.categories.length&&(t.config.xaxis.categories=e.xaxis.categories),t.config.xaxis.convertedCatToNumeric&&(e=new mh(e).convertCatToNumericXaxis(e,this.ctx)),e}forceYAxisUpdate(e){return e.chart&&e.chart.stacked&&e.chart.stackType==="100%"&&(Array.isArray(e.yaxis)?e.yaxis.forEach((t,r)=>{e.yaxis[r].min=0,e.yaxis[r].max=100}):(e.yaxis.min=0,e.yaxis.max=100)),e}revertDefaultAxisMinMax(e){const t=this.w;let r=t.globals.lastXAxis,a=t.globals.lastYAxis;e&&e.xaxis&&(r=e.xaxis),e&&e.yaxis&&(a=e.yaxis);const i=r;t.config.xaxis.min=i.min,t.config.xaxis.max=i.max;const s=o=>{if(typeof a[o]<"u"){const l=a[o];t.config.yaxis[o].min=l.min,t.config.yaxis[o].max=l.max}};t.config.yaxis.map((o,l)=>{t.interact.zoomed||typeof a[l]<"u"?s(l):typeof this.ctx.opts.yaxis[l]<"u"&&(o.min=this.ctx.opts.yaxis[l].min,o.max=this.ctx.opts.yaxis[l].max)})}}class Cj{constructor(e){this.w=e.w,this.ttCtx=e}getNearestValues({hoverArea:e,elGrid:t,clientX:r,clientY:a}){var i,s;const o=this.w,l=t.getBoundingClientRect(),u=l.width,d=l.height;let f=u/(o.globals.dataPoints-1);const g=d/o.globals.dataPoints,p=this.hasBars();(o.globals.comboCharts||p)&&!o.config.xaxis.convertedCatToNumeric&&(f=u/o.globals.dataPoints);const b=r-l.left-o.globals.barPadForNumericAxis,y=a-l.top;b<0||y<0||b>u||y>d?(e.classList.remove("hovering-zoom"),e.classList.remove("hovering-pan")):o.interact.zoomEnabled?(e.classList.remove("hovering-pan"),e.classList.add("hovering-zoom")):o.interact.panEnabled&&(e.classList.remove("hovering-zoom"),e.classList.add("hovering-pan"));let S=Math.round(b/f);const C=Math.floor(y/g);p&&!o.config.xaxis.convertedCatToNumeric&&(S=Math.ceil(b/f),S=S-1);let O=null,D=null,M=o.globals.seriesXvalues.map(T=>T.filter(P=>ee.isNumber(P)));const A=o.globals.seriesYvalues.map(T=>T.filter(P=>ee.isNumber(P)));if(o.axisFlags.isXNumeric){const T=this.ttCtx.getElGrid();if(!T)return{hoverX:b,hoverY:y};const P=T.getBoundingClientRect(),R=b*(P.width/u),N=y*(P.height/d);D=this.closestInMultiArray(R,N,M,A),O=D.index,S=(i=D.j)!=null?i:0,O!==null&&o.globals.hasNullValues&&(M=o.globals.seriesXvalues[O],D=this.closestInArray(R,M),S=(s=D.j)!=null?s:0)}return o.interact.capturedSeriesIndex=O===null?-1:O,(!S||S<1)&&(S=0),o.globals.isBarHorizontal?o.interact.capturedDataPointIndex=C:o.interact.capturedDataPointIndex=S,{capturedSeries:O,j:o.globals.isBarHorizontal?C:S,hoverX:b,hoverY:y}}getFirstActiveXArray(e){const t=this.w;let r=0;const a=e.map((i,s)=>i.length>0?s:-1);for(let i=0;i<a.length;i++)if(a[i]!==-1&&t.globals.collapsedSeriesIndices.indexOf(i)===-1&&t.globals.ancillaryCollapsedSeriesIndices.indexOf(i)===-1){r=a[i];break}return r}closestInMultiArray(e,t,r,a){const i=this.w,s=g=>i.globals.collapsedSeriesIndices.indexOf(g)===-1&&i.globals.ancillaryCollapsedSeriesIndices.indexOf(g)===-1,o=i.config.chart.type,l=!i.globals.comboCharts&&(o==="line"||o==="area");let u=1/0,d=null,f=null;if(i.globals.allSeriesHasEqualX){let g=1/0;for(let p=0;p<r.length;p++){if(!s(p))continue;const b=r[p],y=a[p],x=Math.min(b.length,y.length);for(let S=0;S<x;S++){const C=Math.abs(e-b[S]);C<g&&(g=C,f=S)}}if(f!==null)if(l){let p=1/0;for(let b=0;b<r.length;b++){if(!s(b))continue;const y=r[b],x=a[b],S=Math.min(y.length,x.length);if(S<2){const C=x[f];if(typeof C!="number")continue;const O=Math.abs(t-C);O<p&&(p=O,d=b);continue}for(let C=0;C<S-1;C++){const O=this._distanceToSegment(e,t,y[C],x[C],y[C+1],x[C+1]);O.dist<p&&(p=O.dist,d=b)}}}else{let p=1/0;for(let b=0;b<r.length;b++){if(!s(b))continue;const y=a[b][f];if(typeof y!="number")continue;const x=Math.abs(t-y);x<p&&(p=x,d=b)}}return{index:d,j:f}}for(let g=0;g<r.length;g++){if(!s(g))continue;const p=r[g],b=a[g],y=Math.min(p.length,b.length);if(l&&y>=2){for(let x=0;x<y-1;x++){const S=this._distanceToSegment(e,t,p[x],b[x],p[x+1],b[x+1]);S.dist<u&&(u=S.dist,d=g,f=S.t<.5?x:x+1)}continue}for(let x=0;x<y;x++){const S=p[x],C=e-S,O=b[x],D=t-O,M=Math.sqrt(C*C+D*D);M<u&&(u=M,d=g,f=x)}}return{index:d,j:f}}_distanceToSegment(e,t,r,a,i,s){const o=i-r,l=s-a,u=o*o+l*l;let d=u===0?0:((e-r)*o+(t-a)*l)/u;d<0?d=0:d>1&&(d=1);const f=r+d*o,g=a+d*l,p=e-f,b=t-g;return{dist:Math.sqrt(p*p+b*b),t:d}}closestInArray(e,t){const r=t[0];let a=null,i=Math.abs(e-r);for(let s=0;s<t.length;s++){const o=Math.abs(e-t[s]);o<i&&(i=o,a=s)}return{j:a}}isXoverlap(e){const t=this.w,r=[],a=t.seriesData.seriesX.filter(i=>typeof i[0]<"u");if(a.length>0)for(let i=0;i<a.length-1;i++)typeof a[i][e]<"u"&&typeof a[i+1][e]<"u"&&a[i][e]!==a[i+1][e]&&r.push("unEqual");return r.length===0}isInitialSeriesSameLen(){var e,t,r;let a=!0;const i=((e=this.w.globals.initialSeries)==null?void 0:e.filter((s,o)=>{var l;return!((l=this.w.globals.collapsedSeriesIndices)!=null&&l.includes(o))}))||[];for(let s=0;s<i.length-1;s++){if(!((t=i[s])!=null&&t.data)||!((r=i[s+1])!=null&&r.data))return!0;if(i[s].data.length!==i[s+1].data.length){a=!1;break}}return a}getBarsHeight(e){return[...e].reduce((a,i)=>a+i.getBBox().height,0)}getElMarkers(e){return typeof e=="number"?this.w.dom.baseEl.querySelectorAll(`.apexcharts-series[data\\:realIndex='${e}'] .apexcharts-series-markers-wrap > *`):this.w.dom.baseEl.querySelectorAll(".apexcharts-series-markers-wrap > *")}getAllMarkers(e=!1){let t=[...this.w.dom.baseEl.querySelectorAll(".apexcharts-series-markers-wrap")];e&&(t=t.filter(a=>{const i=Number(a.getAttribute("data:realIndex"));return this.w.globals.collapsedSeriesIndices.indexOf(i)===-1})),t.sort((a,i)=>{var s=Number(a.getAttribute("data:realIndex")),o=Number(i.getAttribute("data:realIndex"));return o<s?1:o>s?-1:0});const r=[];return t.forEach(a=>{r.push(a.querySelector(".apexcharts-marker"))}),r}hasMarkers(e){return this.getElMarkers(e).length>0}getPathFromPoint(e,t){const r=Number(e.getAttribute("cx")),a=Number(e.getAttribute("cy")),i=e.getAttribute("shape");return new ve(this.w).getMarkerPath(r,a,i,t)}getElBars(){return this.w.dom.baseEl.querySelectorAll(".apexcharts-bar-series,  .apexcharts-candlestick-series, .apexcharts-boxPlot-series, .apexcharts-violin-series, .apexcharts-rangebar-series")}hasBars(){return this.getElBars().length>0}getHoverMarkerSize(e){const t=this.w;let r=t.config.markers.hover.size;return r===void 0&&(r=t.globals.markers.size[e]+t.config.markers.hover.sizeOffset),r}toggleAllTooltipSeriesGroups(e){const t=this.w,r=this.ttCtx;r.allTooltipSeriesGroups.length===0&&(r.allTooltipSeriesGroups=t.dom.baseEl.querySelectorAll(".apexcharts-tooltip-series-group"));const a=r.allTooltipSeriesGroups;for(let i=0;i<a.length;i++)e==="enable"?(a[i].classList.add("apexcharts-active"),a[i].style.display=t.config.tooltip.items.display):(a[i].classList.remove("apexcharts-active"),a[i].style.display="none")}}class tie{constructor(e){this.w=e.w,this.ttCtx=e,this.tooltipUtil=new Cj(e)}drawSeriesTexts({shared:e=!0,ttItems:t,i:r=0,j:a=null,y1:i,y2:s,e:o}){const l=this.w;l.config.tooltip.custom!==void 0?this.handleCustomTooltip({i:r,j:a,y1:i,y2:s,w:l}):this.toggleActiveInactiveSeries(e,r);const u=this.getValuesToPrint({i:r,j:a});this.printLabels({i:r,j:a,values:u,ttItems:t,shared:e,e:o});const d=this.ttCtx.getElTooltip();d&&(this.ttCtx.tooltipRect.ttWidth=d.getBoundingClientRect().width,this.ttCtx.tooltipRect.ttHeight=d.getBoundingClientRect().height)}printLabels({i:e,j:t,values:r,ttItems:a,shared:i,e:s}){const o=this.w,{xVal:l,zVal:u,xAxisTTVal:d}=r,f=o.seriesData.series.length,g=t!==null&&o.config.plotOptions.bar.distributed?o.globals.colors[t]:o.globals.colors[e];for(let p=0;p<f;p++){const b=o.config.tooltip.inverseOrder?f-1-p:p,y=this.computeSeriesRow({i:e,j:t,t:p,tIndex:b,shared:i,e:s,basePColor:g});this.DOMHandling({i:e,t:b,j:t,ttItems:a,values:{val:y.val,goalVals:y.goalVals,xVal:l,xAxisTTVal:d,zVal:u},seriesName:y.seriesName,shared:i,pColor:y.pColor})}}computeSeriesRow({i:e,j:t,tIndex:r,shared:a,e:i,basePColor:s}){const o=this.w;let l=this.getFormatters(e),u=s,d,f=[],g=o.config.chart.type==="treemap"?l.yLbTitleFormatter(String(o.config.series[e].data[t].x),{series:o.seriesData.series,seriesIndex:e,dataPointIndex:t,w:o}):this.getSeriesName({fn:l.yLbTitleFormatter,index:e,seriesIndex:e,j:t});return o.globals.axisCharts&&(a?(l=this.getFormatters(r),g=this.getSeriesName({fn:l.yLbTitleFormatter,index:r,seriesIndex:e,j:t}),u=o.globals.colors[r],d=this.formatYValue(l,r,t),f=this.formatGoalVals(l,r,t)):(u=this.resolvePatternColor(i,u),d=this.formatYValue(l,e,t),f=this.formatGoalVals(l,e,t))),t===null&&(d=l.yLbFormatter(o.seriesData.series[e],Lt(ct({},o),{seriesIndex:e,dataPointIndex:e}))),{seriesName:g,val:d,goalVals:f,pColor:u}}formatYValue(e,t,r){var a,i,s,o;const l=this.w;return l.axisFlags.isRangeData?e.yLbFormatter((i=(a=l.rangeData.seriesRangeStart)==null?void 0:a[t])==null?void 0:i[r],{series:l.rangeData.seriesRangeStart,seriesIndex:t,dataPointIndex:r,w:l})+" - "+e.yLbFormatter((o=(s=l.rangeData.seriesRangeEnd)==null?void 0:s[t])==null?void 0:o[r],{series:l.rangeData.seriesRangeEnd,seriesIndex:t,dataPointIndex:r,w:l}):e.yLbFormatter(l.seriesData.series[t][r],{series:l.seriesData.series,seriesIndex:t,dataPointIndex:r,w:l})}formatGoalVals(e,t,r){var a;const i=this.w,s=(a=i.seriesData.seriesGoals[t])==null?void 0:a[r];return Array.isArray(s)?s.map(o=>({attrs:o,val:e.yLbFormatter(o.value,{seriesIndex:t,dataPointIndex:r,w:i})})):[]}resolvePatternColor(e,t){var r,a,i;const s=this.w,o=(r=e?.target)==null?void 0:r.getAttribute("fill");if(!o)return t;if(o.indexOf("url")===-1)return o;if(o.indexOf("Pattern")===-1)return t;const l=s.dom.baseEl.querySelector(o.substr(4).slice(0,-1));return(i=(a=l?.childNodes[0])==null?void 0:a.getAttribute("stroke"))!=null?i:t}getFormatters(e){const t=this.w;let r=t.formatters.yLabelFormatters[e],a;return t.formatters.ttVal!==void 0?Array.isArray(t.formatters.ttVal)?(r=t.formatters.ttVal[e]&&t.formatters.ttVal[e].formatter,a=t.formatters.ttVal[e]&&t.formatters.ttVal[e].title&&t.formatters.ttVal[e].title.formatter):(r=t.formatters.ttVal.formatter,typeof t.formatters.ttVal.title.formatter=="function"&&(a=t.formatters.ttVal.title.formatter)):a=t.config.tooltip.y.title.formatter,typeof r!="function"&&(t.formatters.yLabelFormatters[0]?r=t.formatters.yLabelFormatters[0]:r=function(i){return i}),typeof a!="function"&&(a=function(i){return i?i+": ":""}),{yLbFormatter:r,yLbTitleFormatter:a}}getSeriesName({fn:e,index:t,seriesIndex:r,j:a}){const i=this.w;return e(String(i.seriesData.seriesNames[t]),{series:i.seriesData.series,seriesIndex:r,dataPointIndex:a,w:i})}DOMHandling({t:e,j:t,ttItems:r,values:a,seriesName:i,shared:s,pColor:o}){const l=this.w,u=this.ttCtx,{val:d,goalVals:f,xVal:g,xAxisTTVal:p,zVal:b}=a;let y=null;y=r[e].children,l.config.tooltip.fillSeriesColor&&(r[e].style.backgroundColor=o,y[0].style.display="none"),u.showTooltipTitle&&(u.tooltipTitle===null&&(u.tooltipTitle=l.dom.baseEl.querySelector(".apexcharts-tooltip-title")),u.tooltipTitle&&(u.tooltipTitle.innerHTML=g)),u.isXAxisTooltipEnabled&&u.xaxisTooltipText&&(u.xaxisTooltipText.innerHTML=p!==""?p:g);const x=r[e].querySelector(".apexcharts-tooltip-text-y-label");x&&(x.innerHTML=i||"");const S=r[e].querySelector(".apexcharts-tooltip-text-y-value");S&&(S.innerHTML=typeof d<"u"?d:""),y[0]&&y[0].classList.contains("apexcharts-tooltip-marker")&&(l.config.tooltip.marker.fillColors&&Array.isArray(l.config.tooltip.marker.fillColors)&&(o=l.config.tooltip.marker.fillColors[e]),l.config.tooltip.fillSeriesColor?y[0].style.backgroundColor=o:y[0].style.color=o),l.config.tooltip.marker.show||(y[0].style.display="none");const C=r[e].querySelector(".apexcharts-tooltip-text-goals-label"),O=r[e].querySelector(".apexcharts-tooltip-text-goals-value");if(f.length&&l.seriesData.seriesGoals[e]){const D=()=>{let M="<div>",A="<div>";f.forEach(T=>{M+=` <div style="display: flex"><span class="apexcharts-tooltip-marker" style="background-color: ${T.attrs.strokeColor}; height: 3px; border-radius: 0; top: 5px;"></span> ${T.attrs.name}</div>`,A+=`<div>${T.val}</div>`}),C.innerHTML=M+"</div>",O.innerHTML=A+"</div>"};s?l.seriesData.seriesGoals[e][t]&&Array.isArray(l.seriesData.seriesGoals[e][t])?D():(C.innerHTML="",O.innerHTML=""):D()}else C.innerHTML="",O.innerHTML="";if(b!==null){const D=r[e].querySelector(".apexcharts-tooltip-text-z-label");D.innerHTML=l.config.tooltip.z.title;const M=r[e].querySelector(".apexcharts-tooltip-text-z-value");M.innerHTML=typeof b<"u"?b:""}if(s&&y[0]){if(l.config.tooltip.hideEmptySeries){const D=r[e].querySelector(".apexcharts-tooltip-marker"),M=r[e].querySelector(".apexcharts-tooltip-text");parseFloat(d)==0?(D.style.display="none",M.style.display="none"):(D.style.display="block",M.style.display="block")}typeof d>"u"||d===null||l.globals.ancillaryCollapsedSeriesIndices.indexOf(e)>-1||l.globals.collapsedSeriesIndices.indexOf(e)>-1||Array.isArray(u.tConfig.enabledOnSeries)&&u.tConfig.enabledOnSeries.indexOf(e)===-1?y[0].parentNode.style.display="none":y[0].parentNode.style.display=l.config.tooltip.items.display}else Array.isArray(u.tConfig.enabledOnSeries)&&u.tConfig.enabledOnSeries.indexOf(e)===-1&&(y[0].parentNode.style.display="none")}toggleActiveInactiveSeries(e,t){const r=this.w;if(e)this.tooltipUtil.toggleAllTooltipSeriesGroups("enable");else{this.tooltipUtil.toggleAllTooltipSeriesGroups("disable");const a=r.dom.baseEl.querySelector(`.apexcharts-tooltip-series-group-${t}`);if(a){const i=a;i.classList.add("apexcharts-active"),i.style.display=r.config.tooltip.items.display}}}getValuesToPrint({i:e,j:t}){var r,a,i,s,o,l,u,d;const f=this.w,g=f.seriesData.seriesX.map(D=>D.length>0?D:[]);let p="",b="",y=null,x=null;const S={series:f.seriesData.series,seriesIndex:e,dataPointIndex:t,w:f},C=f.formatters.ttZFormatter;if(t===null)x=f.seriesData.series[e];else if(f.axisFlags.isXNumeric&&f.config.chart.type!=="treemap"){if(p=g[e][t],g[e].length===0){const D=this.tooltipUtil.getFirstActiveXArray(g);p=g[D][t]}}else new xl(this.w).isFormatXY()?p=typeof f.config.series[e].data[t]<"u"?f.config.series[e].data[t].x:"":p=typeof f.labelData.labels[t]<"u"?f.labelData.labels[t]:"";const O=p;return f.axisFlags.isXNumeric&&f.config.xaxis.type==="datetime"?p=new Vh(this.w).xLabelFormat(f.formatters.ttKeyFormatter,O,O,{i:void 0,dateFormatter:new Ha(this.w).formatDate,w:this.w}):f.globals.isBarHorizontal?p=f.formatters.yLabelFormatters[0](O,S):p=(i=(a=(r=f.formatters).xLabelFormatter)==null?void 0:a.call(r,O,S))!=null?i:O,f.config.tooltip.x.formatter!==void 0&&(p=(l=(o=(s=f.formatters).ttKeyFormatter)==null?void 0:o.call(s,O,S))!=null?l:O),f.seriesData.seriesZ.length>0&&f.seriesData.seriesZ[e].length>0&&(y=C?.(f.seriesData.seriesZ[e][t],f)),typeof f.config.xaxis.tooltip.formatter=="function"?b=(d=(u=f.formatters).xaxisTooltipFormatter)==null?void 0:d.call(u,O,S):b=p,{val:Array.isArray(x)?x.join(" "):x,xVal:Array.isArray(p)?p.join(" "):p,xAxisTTVal:Array.isArray(b)?b.join(" "):b,zVal:y}}handleCustomTooltip({i:e,j:t,y1:r,y2:a,w:i}){const s=this.ttCtx.getElTooltip();let o=i.config.tooltip.custom;Array.isArray(o)&&o[e]&&(o=o[e]);const l=o({series:i.seriesData.series,seriesIndex:e,dataPointIndex:t,y1:r,y2:a,w:i});s&&(typeof l=="string"||typeof l=="number"?s.innerHTML=String(l):(l instanceof Element||typeof l.nodeName=="string")&&(s.innerHTML="",s.appendChild(l.cloneNode(!0))))}}class Oj{constructor(e){this.ttCtx=e,this.w=e.w}moveXCrosshairs(e,t=null){const r=this.ttCtx,a=this.w,i=r.getElXCrosshairs();let s=e-r.xcrosshairsWidth/2;const o=a.labelData.labels.slice().length;if(t!==null&&(s=a.layout.gridWidth/o*t),i!==null&&!a.globals.isBarHorizontal&&(i.setAttribute("x",String(s)),i.setAttribute("x1",String(s)),i.setAttribute("x2",String(s)),i.setAttribute("y2",String(a.layout.gridHeight)),i.classList.add("apexcharts-active")),s<0&&(s=0),s>a.layout.gridWidth&&(s=a.layout.gridWidth),r.isXAxisTooltipEnabled){let l=s;(a.config.xaxis.crosshairs.width==="tickWidth"||a.config.xaxis.crosshairs.width==="barWidth")&&(l=s+r.xcrosshairsWidth/2),this.moveXAxisTooltip(l)}}moveYCrosshairs(e){const t=this.ttCtx;t.ycrosshairs!==null&&ve.setAttrs(t.ycrosshairs,{y1:e,y2:e}),t.ycrosshairsHidden!==null&&ve.setAttrs(t.ycrosshairsHidden,{y1:e,y2:e})}moveXAxisTooltip(e){var t,r;const a=this.w,i=this.ttCtx;if(i.xaxisTooltip!==null&&i.xcrosshairsWidth!==0){i.xaxisTooltip.classList.add("apexcharts-active");const s=i.xaxisOffY+a.config.xaxis.tooltip.offsetY+a.layout.translateY+5+a.config.xaxis.offsetY,l=i.xaxisTooltip.getBoundingClientRect().width;if(e=e-l/2,!isNaN(e)){e=e+a.layout.translateX;const d=new ve(this.w).getTextRects((r=(t=i.xaxisTooltipText)==null?void 0:t.innerHTML)!=null?r:"",a.config.xaxis.labels.style.fontSize);i.xaxisTooltipText&&(i.xaxisTooltipText.style.minWidth=d.width+"px"),i.xaxisTooltip.style.left=e+"px",i.xaxisTooltip.style.top=s+"px"}}}moveYAxisTooltip(e){var t,r;const a=this.w,i=this.ttCtx;i.yaxisTTEls===null&&(i.yaxisTTEls=[...a.dom.baseEl.querySelectorAll(".apexcharts-yaxistooltip")]);const s=parseInt((r=(t=i.ycrosshairsHidden)==null?void 0:t.getAttribute("y1"))!=null?r:"0",10);let o=a.layout.translateY+s;if(i.yaxisTTEls){const l=i.yaxisTTEls[e].getBoundingClientRect(),u=l.height;let d;const f=a.dom.baseEl.querySelector(`.apexcharts-yaxis[rel='${e}'] .apexcharts-yaxis-texts-g`),g=a.dom.elWrap.getBoundingClientRect();if(f){const p=f.getBoundingClientRect();p.width>0&&(d=p.left+p.width/2-g.left-l.width/2)}d==null&&(d=a.config.yaxis[e].opposite?a.globals.translateYAxisX[e]+4:a.globals.translateYAxisX[e]-l.width-4),o=o-u/2,a.globals.ignoreYAxisIndexes.indexOf(e)===-1&&o>0&&o<a.layout.gridHeight?(i.yaxisTTEls[e].classList.add("apexcharts-active"),i.yaxisTTEls[e].style.top=o+"px",i.yaxisTTEls[e].style.left=d+a.config.yaxis[e].tooltip.offsetX+"px"):i.yaxisTTEls[e].classList.remove("apexcharts-active")}}moveTooltip(e,t,r=null){const i=this.ttCtx.getElTooltip();if(!i)return;const s=this.computeTooltipPosition(e,t,r);s!==null&&this.applyTooltipPosition(i,s)}computeTooltipPosition(e,t,r=null){var a,i,s,o,l,u,d;const f=this.w,g=this.ttCtx,p=g.tooltipRect,b=!!f.config.tooltip.arrow,y=r!==null?parseFloat(String(r)):1,x=p.ttHeight||0,S=p.ttWidth||0,C=parseFloat(String(e)),O=parseFloat(String(t));if(isNaN(C))return null;let D=C+y+5;const M=O+f.layout.translateY;let A=b?M-x/2+y/2:O+y/2,T="right";if(D>f.layout.gridWidth/2&&(D=D-S-y-10,T="left"),D>f.layout.gridWidth-S-10&&(D=f.layout.gridWidth-S),D<-20&&(D=-20),f.config.tooltip.followCursor){const N=g.getElGrid();if(!N)return null;const I=N.getBoundingClientRect();D=g.e.clientX-I.left,D>f.layout.gridWidth/2?(D=D-S,T="left"):T="right",A=g.e.clientY+f.layout.translateY-I.top,A>f.layout.gridHeight/2&&(A=A-x)}else if(!f.globals.isBarHorizontal)if(b){const N=f.layout.translateY,I=f.layout.translateY+f.layout.gridHeight;A+x>I&&(A=I-x),A<N&&(A=N)}else x/2+A>f.layout.gridHeight&&(A=f.layout.gridHeight-x+f.layout.translateY);if(isNaN(D))return null;D=D+f.layout.translateX;const P=(i=(a=f.config)==null?void 0:a.chart)==null?void 0:i.accessibility;if(P?.enabled&&((o=(s=P?.keyboard)==null?void 0:s.navigation)!=null&&o.enabled)&&((d=(u=(l=f.dom)==null?void 0:l.baseEl)==null?void 0:u.querySelector)!=null&&d.call(u,".apexcharts-keyboard-focused"))){const N=b?M:O,I=(y||1)+12,$=A,Y=A+x;!isNaN(N)&&x>0&&$<N+I&&Y>N-I&&(A=N-x-I,A<0&&(A=N+I))}let R=null;if(b&&x>0){const N=M-A,I=10,$=x-10;R=Math.max(I,Math.min($,N))}return{x:D,y:A,placement:T,arrowY:R}}applyTooltipPosition(e,t){if(!e)return;const r=e.dataset.positioned!=="true";r&&(e.style.transitionProperty="none"),e.style.left=t.x+"px",e.style.top=t.y+"px",t.placement&&(e.dataset.placement=t.placement),t.arrowY!=null&&e.style.setProperty("--apx-tt-arrow-y",t.arrowY+"px"),t.arrowX!=null&&e.style.setProperty("--apx-tt-arrow-x",t.arrowX+"px"),r&&(e.offsetWidth,e.dataset.positioned="true",requestAnimationFrame(()=>{e.style.transitionProperty=""}))}moveMarkers(e,t){var r;const a=this.w,i=this.ttCtx;if(a.globals.markers.size[e]>0){const s=a.dom.baseEl.querySelectorAll(` .apexcharts-series[data\\:realIndex='${e}'] .apexcharts-marker`);for(let o=0;o<s.length;o++)parseInt((r=s[o].getAttribute("rel"))!=null?r:"0",10)===t&&(i.marker.resetPointsSize(),i.marker.enlargeCurrentPoint(t,s[o]))}else i.marker.resetPointsSize(),this.moveDynamicPointOnHover(t,e)}moveDynamicPointOnHover(e,t){var r,a,i,s,o;const l=this.w,u=this.ttCtx;let d=0,f=0;const g=new ve(this.w),p=l.globals.pointsArray,b=u.tooltipUtil.getHoverMarkerSize(t),y=l.config.series[t].type;if(y&&(y==="column"||y==="candlestick"||y==="boxPlot"||y==="violin"))return;d=(a=(r=p[t])==null?void 0:r[e])==null?void 0:a[0],f=((s=(i=p[t])==null?void 0:i[e])==null?void 0:s[1])||0;const x=l.dom.baseEl.querySelector(`.apexcharts-series[data\\:realIndex='${t}'] .apexcharts-series-markers path`);if(x&&f<l.layout.gridHeight&&f>0){const S=(o=x.getAttribute("shape"))!=null?o:"circle",C=g.getMarkerPath(d,f,S,b*1.5);x.setAttribute("d",C)}this.moveXCrosshairs(d),u.fixedTooltip||this.moveTooltip(d,f,b)}moveDynamicPointsOnHover(e){var t,r;const a=this.ttCtx,i=a.w;let s=0,o=0,l=0;const u=i.globals.pointsArray,d=new Wn(this.w),f=new ve(this.w);l=d.getActiveConfigSeriesIndex("asc",["line","area","scatter","bubble"]);const g=a.tooltipUtil.getHoverMarkerSize(l);if((t=u[l])!=null&&t[e]&&(s=u[l][e][0],o=u[l][e][1]),isNaN(s))return;const p=a.tooltipUtil.getAllMarkers();if(p.length)for(let b=0;b<i.seriesData.series.length;b++){const y=u[b];if(i.globals.comboCharts&&typeof y>"u"&&p.splice(b,0,null),y&&y.length){let x=u[b][e][1],S;p[b].setAttribute("cx",s);const C=(r=p[b].getAttribute("shape"))!=null?r:"circle";if(i.config.chart.type==="rangeArea"&&!i.globals.comboCharts){const O=e+i.seriesData.series[b].length;S=u[b][O][1];const D=Math.abs(x-S)/2;x=x-D}if(x!==null&&!isNaN(x)&&x<i.layout.gridHeight+g&&x+g>0){const O=f.getMarkerPath(s,x,C,g);p[b].setAttribute("d",O)}else p[b].setAttribute("d","")}}this.moveXCrosshairs(s),a.fixedTooltip||this.moveTooltip(s,o||i.layout.gridHeight,g)}moveStickyTooltipOverBars(e,t){var r,a,i;const s=this.w,o=this.ttCtx;let l=s.globals.columnSeries?s.globals.columnSeries.length:s.seriesData.series.length;s.config.chart.stacked&&(l=s.globals.barGroups.length);let u=l>=2&&l%2===0?Math.floor(l/2):Math.floor(l/2)+1;s.globals.isBarHorizontal&&(u=new Wn(this.w).getActiveConfigSeriesIndex("desc")+1);let d=s.dom.baseEl.querySelector(`.apexcharts-bar-series .apexcharts-series[rel='${u}'] path[j='${e}'], .apexcharts-candlestick-series .apexcharts-series[rel='${u}'] path[j='${e}'], .apexcharts-boxPlot-series .apexcharts-series[rel='${u}'] path[j='${e}'], .apexcharts-violin-series .apexcharts-series[rel='${u}'] path[j='${e}'], .apexcharts-rangebar-series .apexcharts-series[rel='${u}'] path[j='${e}']`);!d&&typeof t=="number"&&(d=s.dom.baseEl.querySelector(`.apexcharts-bar-series .apexcharts-series[data\\:realIndex='${t}'] path[j='${e}'],
        .apexcharts-candlestick-series .apexcharts-series[data\\:realIndex='${t}'] path[j='${e}'],
        .apexcharts-boxPlot-series .apexcharts-series[data\\:realIndex='${t}'] path[j='${e}'],
        .apexcharts-violin-series .apexcharts-series[data\\:realIndex='${t}'] path[j='${e}'],
        .apexcharts-rangebar-series .apexcharts-series[data\\:realIndex='${t}'] path[j='${e}']`));let f=d?parseFloat((r=d.getAttribute("cx"))!=null?r:"0"):0,g=d?parseFloat((a=d.getAttribute("cy"))!=null?a:"0"):0;const p=d?parseFloat((i=d.getAttribute("barWidth"))!=null?i:"0"):0,b=o.getElGrid();if(!b)return;const y=b.getBoundingClientRect(),x=d&&(d.classList.contains("apexcharts-candlestick-area")||d.classList.contains("apexcharts-boxPlot-area"));if(s.axisFlags.isXNumeric){if(d&&!x){const S=this._datapointCenterXFromBars(e,y);S!=null?f=S:f=f-(l%2!==0?p/2:0)}d&&x&&(f=f-p/2)}else s.globals.isBarHorizontal||(f=o.xAxisTicksPositions[e-1]+o.dataPointsDividedWidth/2,isNaN(f)&&(f=o.xAxisTicksPositions[e]-o.dataPointsDividedWidth/2));if(s.globals.isBarHorizontal?g=g-o.tooltipRect.ttHeight:s.config.tooltip.followCursor?g=o.e.clientY-y.top-o.tooltipRect.ttHeight/2:g+o.tooltipRect.ttHeight+15>s.layout.gridHeight&&(g=s.layout.gridHeight),s.globals.isBarHorizontal||this.moveXCrosshairs(f),!o.fixedTooltip){if(s.globals.isBarHorizontal&&!s.config.tooltip.followCursor&&this.placeHorizontalSharedTooltip(e))return;this.moveTooltip(f,g||s.layout.gridHeight)}}_datapointCenterXFromBars(e,t){var r,a;const i=this.w,s=i.dom.baseEl.querySelectorAll(`.apexcharts-bar-series path[j='${e}'],.apexcharts-rangebar-series path[j='${e}']`);if(!s.length)return null;let o=1/0,l=-1/0;for(const u of s){const d=u.parentNode;if((a=(r=d?.classList)==null?void 0:r.contains)!=null&&a.call(r,"apexcharts-series-collapsed"))continue;const f=u.getBoundingClientRect();f.width===0&&f.height===0||(f.left<o&&(o=f.left),f.right>l&&(l=f.right))}return isFinite(o)?(o+l)/2-t.left-(i.globals.barPadForNumericAxis||0):null}placeHorizontalSharedTooltip(e){var t,r;const a=this.w,i=this.ttCtx,s=i.getElTooltip();if(!s)return!1;const o=i.getElGrid();if(!o)return!1;const l=o.getBoundingClientRect(),u=a.dom.baseEl.querySelectorAll(`.apexcharts-bar-series path[j='${e}'],.apexcharts-rangebar-series path[j='${e}'],.apexcharts-boxPlot-series path[j='${e}']`);if(!u.length)return!1;let d=1/0,f=-1/0,g=1/0,p=-1/0;for(const $ of u){const Y=$.parentNode;if((r=(t=Y?.classList)==null?void 0:t.contains)!=null&&r.call(t,"apexcharts-series-collapsed"))continue;const k=$.getBoundingClientRect();k.width===0&&k.height===0||(k.left<d&&(d=k.left),k.right>f&&(f=k.right),k.top<g&&(g=k.top),k.bottom>p&&(p=k.bottom))}if(!isFinite(d))return!1;const b=i.tooltipRect.ttWidth||0,y=i.tooltipRect.ttHeight||0,x=7,S=(d+f)/2-l.left+a.layout.translateX,C=g-l.top+a.layout.translateY,O=p-l.top+a.layout.translateY,D=a.layout.translateY,M=a.layout.translateY+a.layout.gridHeight,A=a.layout.translateX,T=a.layout.translateX+a.layout.gridWidth;let P="top",R=C-y-x;if(R<D){const $=O+x;$+y<=M&&(P="bottom",R=$)}let N=S-b/2;N<A&&(N=A),N+b>T&&(N=T-b);const I=Math.max(10,Math.min(b-10,S-N));return this.applyTooltipPosition(s,{x:N,y:R,placement:P,arrowY:null,arrowX:I}),!0}}function nie(n){const e=t=>`<svg viewBox="0 0 12 12" xmlns="http://www.w3.org/2000/svg" aria-hidden="true">${t}</svg>`;switch(n){case"square":case"rect":return e('<rect x="1" y="1" width="10" height="10" rx="1" fill="currentColor"/>');case"line":return e('<rect x="0" y="5" width="12" height="2" rx="1" fill="currentColor"/>');case"diamond":return e('<path d="M6 0.5 L11.5 6 L6 11.5 L0.5 6 Z" fill="currentColor"/>');case"triangle":return e('<path d="M6 1 L11.2 10.5 L0.8 10.5 Z" fill="currentColor"/>');case"cross":return e('<path d="M2 2 L10 10 M10 2 L2 10" stroke="currentColor" stroke-width="2" stroke-linecap="round"/>');case"plus":return e('<path d="M6 1 L6 11 M1 6 L11 6" stroke="currentColor" stroke-width="2" stroke-linecap="round"/>');case"star":return e('<path d="M6 0.5 L7.5 4.4 L11.5 4.7 L8.4 7.2 L9.5 11.1 L6 8.9 L2.5 11.1 L3.6 7.2 L0.5 4.7 L4.5 4.4 Z" fill="currentColor"/>');case"sparkle":return e('<path d="M6 0.5 L7 5 L11.5 6 L7 7 L6 11.5 L5 7 L0.5 6 L5 5 Z" fill="currentColor"/>');case"circle":default:return e('<circle cx="6" cy="6" r="5" fill="currentColor"/>')}}class rie{constructor(e){this.w=e.w,this.ttCtx=e,this.ctx=e.ctx,this.tooltipPosition=new Oj(e)}drawDynamicPoints(){const e=this.w,t=new ve(this.w),r=new Du(this.w,this.ctx),a=[...e.dom.baseEl.querySelectorAll(".apexcharts-series")];e.config.chart.stacked&&a.sort((i,s)=>parseFloat(i.getAttribute("data:realIndex"))-parseFloat(s.getAttribute("data:realIndex")));for(let i=0;i<a.length;i++){const s=a[i].querySelector(".apexcharts-series-markers-wrap");if(s!==null){let o=`apexcharts-marker w${(Math.random()+1).toString(36).substring(4)}`;(e.config.chart.type==="line"||e.config.chart.type==="area")&&!e.globals.comboCharts&&!e.config.tooltip.intersect&&(o+=" no-pointer-events");const l=r.getMarkerConfig({cssClass:o,seriesIndex:Number(s.getAttribute("data:realIndex"))}),u=t.drawMarker(0,0,l);u.node.setAttribute("default-marker-size",0);const d=ke.createElementNS(xn,"g");d.classList.add("apexcharts-series-markers"),d.appendChild(u.node),s.appendChild(d)}}}enlargeCurrentPoint(e,t,r=null,a=null){const i=this.w;i.config.chart.type!=="bubble"&&this.newPointSize(e,t);let s=t.getAttribute("cx"),o=t.getAttribute("cy");if(r!==null&&a!==null&&(s=r,o=a),this.tooltipPosition.moveXCrosshairs(s),!this.fixedTooltip){if(i.config.chart.type==="radar"){const l=this.ttCtx.getElGrid();if(!l)return;const u=l.getBoundingClientRect();s=this.ttCtx.e.clientX-u.left}this.tooltipPosition.moveTooltip(s,o,i.config.markers.hover.size)}}enlargePoints(e){var t,r;const a=this.w,i=this,s=this.ttCtx,o=e,l=a.dom.baseEl.querySelectorAll(".apexcharts-series:not(.apexcharts-series-collapsed) .apexcharts-marker");let u=a.config.markers.hover.size;for(let d=0;d<l.length;d++){const f=l[d].getAttribute("rel"),g=l[d].getAttribute("index");if(u===void 0&&(u=a.globals.markers.size[g]+a.config.markers.hover.sizeOffset),o===parseInt(f??"0",10)){i.newPointSize(o,l[d]);const p=(t=l[d].getAttribute("cx"))!=null?t:"0",b=(r=l[d].getAttribute("cy"))!=null?r:"0";i.tooltipPosition.moveXCrosshairs(parseFloat(p)),s.fixedTooltip||i.tooltipPosition.moveTooltip(parseFloat(p),parseFloat(b),u)}else i.oldPointSize(l[d])}}newPointSize(e,t){const r=this.w;let a=r.config.markers.hover.size;const i=e===0?t.parentNode.firstChild:t.parentNode.lastChild;if(i.getAttribute("default-marker-size")!=="0"){const s=parseInt(i.getAttribute("index"),10);a===void 0&&(a=r.globals.markers.size[s]+r.config.markers.hover.sizeOffset),a<0&&(a=0);const o=this.ttCtx.tooltipUtil.getPathFromPoint(t,a);t.setAttribute("d",o)}}oldPointSize(e){const t=parseFloat(e.getAttribute("default-marker-size")),r=this.ttCtx.tooltipUtil.getPathFromPoint(e,t);e.setAttribute("d",r)}resetPointsSize(){var e;const r=this.w.dom.baseEl.querySelectorAll(".apexcharts-series:not(.apexcharts-series-collapsed) .apexcharts-marker");for(let a=0;a<r.length;a++){const i=parseFloat((e=r[a].getAttribute("default-marker-size"))!=null?e:"0");if(ee.isNumber(i)&&i>0){const s=this.ttCtx.tooltipUtil.getPathFromPoint(r[a],i);r[a].setAttribute("d",s)}else r[a].setAttribute("d","M0,0")}}}class aie{constructor(e){this.w=e.w;const t=this.w;this.ttCtx=e,this.isVerticalGroupedRangeBar=!t.globals.isBarHorizontal&&t.config.chart.type==="rangeBar"&&t.config.plotOptions.bar.rangeBarGroupRows}getAttr(e,t){var r;return parseFloat((r=e.target.getAttribute(t))!=null?r:"")}handleHeatTreeTooltip({e,opt:t,x:r,y:a,type:i}){var s,o;const l=this.ttCtx,u=this.w;if(e.target.classList.contains(`apexcharts-${i}-rect`)){const d=this.getAttr(e,"i"),f=this.getAttr(e,"j"),g=this.getAttr(e,"cx"),p=this.getAttr(e,"cy"),b=this.getAttr(e,"width"),y=this.getAttr(e,"height");if(l.tooltipLabels.drawSeriesTexts({ttItems:t.ttItems,i:d,j:f,shared:!1,e}),u.interact.capturedSeriesIndex=d,u.interact.capturedDataPointIndex=f,r=g+l.tooltipRect.ttWidth/2+b,a=p+l.tooltipRect.ttHeight/2-y/2,l.tooltipPosition.moveXCrosshairs(g+b/2),r>u.layout.gridWidth/2&&(r=g-l.tooltipRect.ttWidth/2+b),l.w.config.tooltip.followCursor){const x=u.dom.elWrap.getBoundingClientRect();r=((s=u.interact.clientX)!=null?s:0)-x.left-(r>u.layout.gridWidth/2?l.tooltipRect.ttWidth:0),a=((o=u.interact.clientY)!=null?o:0)-x.top-(a>u.layout.gridHeight/2?l.tooltipRect.ttHeight:0)}}return{x:r,y:a}}handleMarkerTooltip({e,opt:t,x:r,y:a}){const i=this.w,s=this.ttCtx;let o,l;if(e.target.classList.contains("apexcharts-marker")){const u=parseInt(t.paths.getAttribute("cx"),10),d=parseInt(t.paths.getAttribute("cy"),10),f=parseFloat(t.paths.getAttribute("val"));if(l=parseInt(t.paths.getAttribute("rel"),10),o=parseInt(t.paths.parentNode.parentNode.parentNode.getAttribute("rel"),10)-1,s.intersect){const p=ee.findAncestor(t.paths,"apexcharts-series");p&&(o=parseInt(p.getAttribute("data:realIndex"),10))}s.tooltipLabels.drawSeriesTexts({ttItems:t.ttItems,i:o,j:l,shared:s.showOnIntersect?!1:i.config.tooltip.shared,e}),e.type==="mouseup"&&s.markerClick(e,o,l),i.interact.capturedSeriesIndex=o,i.interact.capturedDataPointIndex=l;const g=!!i.config.tooltip.arrow;if(r=u,g?a=d:(a=d+i.layout.translateY-s.tooltipRect.ttHeight*1.4,f<0&&(a=d)),s.w.config.tooltip.followCursor){const p=s.getElGrid();if(!p)return{x:r,y:a};const b=p.getBoundingClientRect();a=s.e.clientY+i.layout.translateY-b.top}s.marker.enlargeCurrentPoint(l,t.paths,r,a)}return{x:r,y:a}}handleBarTooltip({e,opt:t}){var r,a,i;const s=this.w,o=this.ttCtx,l=o.getElTooltip();let u=0,d=0,f=0,g=0,p;const b=this.getBarTooltipXY({e,opt:t});if(b.j===null&&b.barHeight===0&&b.barWidth===0)return;g=b.i;const y=b.j;if(s.interact.capturedSeriesIndex=g,s.interact.capturedDataPointIndex=y!==null?y:s.interact.capturedDataPointIndex,s.globals.isBarHorizontal&&o.tooltipUtil.hasBars()||!s.config.tooltip.shared?(d=b.x,f=b.y,p=Array.isArray(s.config.stroke.width)?s.config.stroke.width[g]:s.config.stroke.width,u=d):!s.globals.comboCharts&&!s.config.tooltip.shared&&(u=u/2),isNaN(f)&&(f=s.globals.svgHeight-o.tooltipRect.ttHeight),d+o.tooltipRect.ttWidth>s.layout.gridWidth?d=d-o.tooltipRect.ttWidth:d<0&&(d=0),!(o.w.config.tooltip.followCursor&&!o.getElGrid())&&(o.tooltip===null&&(o.tooltip=s.dom.baseEl.querySelector(".apexcharts-tooltip")),s.config.tooltip.shared||(s.globals.comboBarCount>0?o.tooltipPosition.moveXCrosshairs(u+p/2):o.tooltipPosition.moveXCrosshairs(u)),!o.fixedTooltip&&(!s.config.tooltip.shared||s.globals.isBarHorizontal&&o.tooltipUtil.hasBars())&&(f=f+s.layout.translateY-o.tooltipRect.ttHeight/2,l))){const x=o.tooltipRect.ttWidth||0,S=o.tooltipRect.ttHeight||0,C=!!s.config.tooltip.arrow,{barAnchorXInGrid:O,barAnchorYInGrid:D,barRectInGrid:M}=b,A=7,T=(r=o.getElGrid())==null?void 0:r.getBoundingClientRect(),P=s.dom.elWrap.getBoundingClientRect(),R=T?T.left-P.left:s.layout.translateX;let N,I=null,$=null,Y=d+R,k=f;if(C&&s.globals.isBarHorizontal&&M!=null){const H=s.layout.translateY,F=s.layout.translateY+s.layout.gridHeight,B=R,X=R+s.layout.gridWidth,Q=(M.left+M.right)/2+R,z=M.top+s.layout.translateY,V=M.bottom+s.layout.translateY;let j=z-S-A;if(N="top",j<H){const q=V+A;q+S<=F&&(N="bottom",j=q)}k=j,Y=Q-x/2,Y<B&&(Y=B),Y+x>X&&(Y=X-x),$=Math.max(10,Math.min(x-10,Q-Y))}else if(C&&O!=null&&D!=null){const H=O+R,F=R+s.layout.gridWidth/2,B=((a=M?.left)!=null?a:O)+R,X=((i=M?.right)!=null?i:O)+R;if(H<F?(N="right",Y=X+A):(N="left",Y=B-x-A),M){k=(M.top+M.bottom)/2+s.layout.translateY-S/2;const z=s.layout.translateY,V=s.layout.translateY+s.layout.gridHeight;k<z&&(k=z),k+S>V&&(k=V-S)}if(S>0&&M){const Q=(M.top+M.bottom)/2+s.layout.translateY;I=Math.max(10,Math.min(S-10,Q-k))}}o.tooltipPosition.applyTooltipPosition(l,{x:Y,y:k,placement:N,arrowY:I,arrowX:$})}}getBarTooltipXY({e,opt:t}){const r=this.w;let a=null;const i=this.ttCtx;let s=0,o=0,l=0,u=0,d=0,f=null,g=null,p=null,b=null,y=null;const x=e.target.classList;if(x.contains("apexcharts-bar-area")||x.contains("apexcharts-candlestick-area")||x.contains("apexcharts-boxPlot-area")||x.contains("apexcharts-rangebar-area")){const S=e.target,C=S.getBoundingClientRect(),O=t.elGrid.getBoundingClientRect(),D=C.height;d=C.height;const M=C.width,A=parseInt(S.getAttribute("cx"),10),T=parseInt(S.getAttribute("cy"),10);f=A,g=T,u=parseFloat(S.getAttribute("barWidth"));const P=C.left-O.left,R=C.top-O.top,N=P+M/2,I=R+D/2;p=N,b=r.globals.isBarHorizontal?I:R,y={left:P,top:R,right:P+M,bottom:R+D};const $=e.type==="touchmove"?e.touches[0].clientX:e.clientX;a=parseInt(S.getAttribute("j"),10),s=parseInt(S.parentNode.getAttribute("rel"),10)-1;const Y=S.getAttribute("data-range-y1"),k=S.getAttribute("data-range-y2");r.globals.comboCharts&&(s=parseInt(S.parentNode.getAttribute("data:realIndex"),10));const H=B=>(r.axisFlags.isXNumeric?B=A-M/2:this.isVerticalGroupedRangeBar?B=A+M/2:B=A-i.dataPointsDividedWidth+M/2,B),F=()=>T-i.dataPointsDividedHeight+D/2-i.tooltipRect.ttHeight/2;i.tooltipLabels.drawSeriesTexts({ttItems:t.ttItems,i:s,j:a,y1:Y?parseInt(Y,10):null,y2:k?parseInt(k,10):null,shared:i.showOnIntersect?!1:r.config.tooltip.shared,e}),r.config.tooltip.followCursor?r.globals.isBarHorizontal?(o=$-O.left+15,l=F()):(o=H(o),l=e.clientY-O.top-i.tooltipRect.ttHeight/2-15):r.globals.isBarHorizontal?(o=A,i.xyRatios&&o<i.xyRatios.baseLineInvertedY&&(o=A-i.tooltipRect.ttWidth),l=F()):(o=H(o),l=T)}return{x:o,y:l,barHeight:d,barWidth:u,i:s,j:a,barCx:f,barCy:g,barAnchorXInGrid:p,barAnchorYInGrid:b,barRectInGrid:y}}}class iie{constructor(e){this.w=e.w,this.ttCtx=e}drawXaxisTooltip(){const e=this.w,t=this.ttCtx,r=e.config.xaxis.position==="bottom";t.xaxisOffY=r?e.layout.gridHeight+1:-e.layout.xAxisHeight-e.config.xaxis.axisTicks.height+3;const a=r?"apexcharts-xaxistooltip apexcharts-xaxistooltip-bottom":"apexcharts-xaxistooltip apexcharts-xaxistooltip-top",i=e.dom.elWrap;t.isXAxisTooltipEnabled&&e.dom.baseEl.querySelector(".apexcharts-xaxistooltip")===null&&(t.xaxisTooltip=ke.createElementNS("http://www.w3.org/1999/xhtml","div"),t.xaxisTooltip.setAttribute("class",a+" apexcharts-theme-"+e.config.tooltip.theme),i.appendChild(t.xaxisTooltip),t.xaxisTooltipText=ke.createElementNS("http://www.w3.org/1999/xhtml","div"),t.xaxisTooltipText.classList.add("apexcharts-xaxistooltip-text"),t.xaxisTooltipText.style.fontFamily=e.config.xaxis.tooltip.style.fontFamily||e.config.chart.fontFamily,t.xaxisTooltipText.style.fontSize=e.config.xaxis.tooltip.style.fontSize,t.xaxisTooltip.appendChild(t.xaxisTooltipText))}drawYaxisTooltip(){const e=this.w,t=this.ttCtx;for(let r=0;r<e.config.yaxis.length;r++){const a=e.config.yaxis[r].opposite||e.config.yaxis[r].crosshairs.opposite;t.yaxisOffX=a?e.layout.gridWidth+1:1;const i=a?`apexcharts-yaxistooltip apexcharts-yaxistooltip-${r} apexcharts-yaxistooltip-right`:`apexcharts-yaxistooltip apexcharts-yaxistooltip-${r} apexcharts-yaxistooltip-left`,s=e.dom.elWrap;e.dom.baseEl.querySelector(`.apexcharts-yaxistooltip apexcharts-yaxistooltip-${r}`)===null&&(t.yaxisTooltip=ke.createElementNS("http://www.w3.org/1999/xhtml","div"),t.yaxisTooltip.setAttribute("class",i+" apexcharts-theme-"+e.config.tooltip.theme),s.appendChild(t.yaxisTooltip),r===0&&(t.yaxisTooltipText=[]),t.yaxisTooltipText[r]=ke.createElementNS("http://www.w3.org/1999/xhtml","div"),t.yaxisTooltipText[r].classList.add("apexcharts-yaxistooltip-text"),t.yaxisTooltip.appendChild(t.yaxisTooltipText[r]))}}setXCrosshairWidth(){var e,t;const r=this.w,a=this.ttCtx,i=a.getElXCrosshairs();if(a.xcrosshairsWidth=parseInt(r.config.xaxis.crosshairs.width,10),r.globals.comboCharts){const s=r.dom.baseEl.querySelector(".apexcharts-bar-area");if(s!==null&&r.config.xaxis.crosshairs.width==="barWidth"){const o=parseFloat((t=s.getAttribute("barWidth"))!=null?t:"0");a.xcrosshairsWidth=o}else if(r.config.xaxis.crosshairs.width==="tickWidth"){const o=r.labelData.labels.length;a.xcrosshairsWidth=r.layout.gridWidth/o}}else if(r.config.xaxis.crosshairs.width==="tickWidth"){const s=r.labelData.labels.length;a.xcrosshairsWidth=r.layout.gridWidth/s}else if(r.config.xaxis.crosshairs.width==="barWidth"){const s=r.dom.baseEl.querySelector(".apexcharts-bar-area");if(s!==null){const o=parseFloat((e=s.getAttribute("barWidth"))!=null?e:"0");a.xcrosshairsWidth=o}else a.xcrosshairsWidth=1}r.globals.isBarHorizontal&&(a.xcrosshairsWidth=0),i!==null&&a.xcrosshairsWidth>0&&i.setAttribute("width",String(a.xcrosshairsWidth))}handleYCrosshair(){const e=this.w,t=this.ttCtx;t.ycrosshairs=e.dom.baseEl.querySelector(".apexcharts-ycrosshairs"),t.ycrosshairsHidden=e.dom.baseEl.querySelector(".apexcharts-ycrosshairs-hidden")}drawYaxisTooltipText(e,t,r){const a=this.ttCtx,i=this.w,s=i.globals,o=s.seriesYAxisMap[e];if(a.yaxisTooltips[e]&&o.length>0){const l=i.formatters.yLabelFormatters[e],u=a.getElGrid();if(!u)return;const d=u.getBoundingClientRect(),f=o[0];let g=0;r.yRatio.length>1&&(g=f);const p=(t-d.top)*r.yRatio[g],b=s.maxYArr[f]-s.minYArr[f];let y=s.minYArr[f]+(b-p);i.config.yaxis[e].reversed&&(y=s.maxYArr[f]-(b-p)),a.tooltipPosition.moveYCrosshairs(t-d.top),a.yaxisTooltipText[e].innerHTML=l(y),a.tooltipPosition.moveYAxisTooltip(e)}}}class sie{constructor(e,t){this.w=e,this.ctx=t,this.tConfig=e.config.tooltip,this.tooltipUtil=new Cj(this),this.tooltipLabels=new tie(this),this.tooltipPosition=new Oj(this),this.marker=new rie(this),this.intersect=new aie(this),this.axesTooltip=new iie(this),this.showOnIntersect=this.tConfig.intersect,this.showTooltipTitle=this.tConfig.x.show,this.fixedTooltip=this.tConfig.fixed.enabled,this.xaxisTooltip=null,this.xaxisTooltipText=null,this.yaxisTooltip=null,this.yaxisTooltipText=null,this.yaxisTTEls=null,this.xaxisOffY=0,this.yaxisOffX=0,this.xcrosshairsWidth=0,this.ycrosshairs=null,this.ycrosshairsHidden=null,this.tooltip=null,this.e=null,this.isBarShared=!e.globals.isBarHorizontal&&this.tConfig.shared,this.lastHoverTime=Date.now(),this.dimensionUpdateScheduled=!1,this.xyRatios=null,this.isXAxisTooltipEnabled=!1,this.yaxisTooltips=[],this.allTooltipSeriesGroups=[],this.xAxisTicksPositions=null,this.dataPointsDividedHeight=0,this.dataPointsDividedWidth=0,this.tooltipTitle=null,this.legendLabels=null,this.ttItems=null,this.seriesBound=null,this.seriesHoverTimeout=void 0,this.clientX=0,this.clientY=0,this.barSeriesHeight=0,this.tooltipRect={x:0,y:0,ttWidth:0,ttHeight:0}}setupDimensionCache(){const e=this.w,t=this.getElTooltip();t&&(this.updateDimensionCache(),typeof ResizeObserver<"u"&&!e.globals.resizeObserver&&(e.globals.resizeObserver=new ResizeObserver(()=>{this.dimensionUpdateScheduled||(this.dimensionUpdateScheduled=!0,requestAnimationFrame(()=>{this.updateDimensionCache(),this.dimensionUpdateScheduled=!1}))}),e.globals.resizeObserver.observe(t)))}updateDimensionCache(){const e=this.w,t=this.getElTooltip();if(!t)return;const r=t.getBoundingClientRect();e.globals.dimensionCache.tooltip={width:r.width,height:r.height,lastUpdate:Date.now()}}getCachedDimensions(){const e=this.w;if(e.globals.dimensionCache.tooltip){const r=e.globals.dimensionCache.tooltip;if(Date.now()-r.lastUpdate<1e3)return{ttWidth:r.width,ttHeight:r.height}}this.updateDimensionCache();const t=e.globals.dimensionCache.tooltip;return t?{ttWidth:t.width,ttHeight:t.height}:{ttWidth:0,ttHeight:0}}getElTooltip(e){return e||(e=this),e.w.dom.baseEl?e.w.dom.baseEl.querySelector(".apexcharts-tooltip"):null}getElXCrosshairs(){return this.w.dom.baseEl.querySelector(".apexcharts-xcrosshairs")}getElGrid(){return this.w.dom.baseEl.querySelector(".apexcharts-grid")}drawTooltip(e){const t=this.w;this.xyRatios=e,this.isXAxisTooltipEnabled=t.config.xaxis.tooltip.enabled&&t.globals.axisCharts,this.yaxisTooltips=t.config.yaxis.map(l=>!!(l.show&&l.tooltip.enabled&&t.globals.axisCharts)),this.allTooltipSeriesGroups=[],t.globals.axisCharts||(this.showTooltipTitle=!1);const r=this.getElTooltip();r?.parentNode&&r.parentNode.removeChild(r),this.tooltipTitle=null;const a=ke.createElementNS("http://www.w3.org/1999/xhtml","div");a.classList.add("apexcharts-tooltip"),t.config.tooltip.cssClass&&a.classList.add(t.config.tooltip.cssClass),a.classList.add(`apexcharts-theme-${this.tConfig.theme||"light"}`),this.tConfig.fillSeriesColor&&a.classList.add("apexcharts-tooltip-fill-series"),this.tConfig.style&&this.tConfig.style.background&&a.style.setProperty("--apx-tt-bg",this.tConfig.style.background);const i=this.tConfig.shared&&t.config.series.length>1&&!t.globals.isBarHorizontal;if(this.tConfig.arrow&&!this.tConfig.followCursor&&!this.tConfig.fixed.enabled&&!i&&!this.tConfig.fillSeriesColor&&t.globals.axisCharts){const l=ke.createElementNS("http://www.w3.org/1999/xhtml","div");l.classList.add("apexcharts-tooltip-arrow"),a.appendChild(l)}if(t.config.chart.accessibility.enabled&&t.config.chart.accessibility.announcements.enabled&&(a.setAttribute("role","tooltip"),a.setAttribute("aria-live","polite"),a.setAttribute("aria-atomic","true"),a.setAttribute("aria-hidden","true")),t.dom.elWrap.appendChild(a),t.globals.axisCharts){this.axesTooltip.drawXaxisTooltip(),this.axesTooltip.drawYaxisTooltip(),this.axesTooltip.setXCrosshairWidth(),this.axesTooltip.handleYCrosshair();const l=new bh(this.w,this.ctx,void 0);this.xAxisTicksPositions=l.getXAxisTicksPositions()}if((t.globals.comboCharts||this.tConfig.intersect||t.config.chart.type==="rangeBar")&&!this.tConfig.shared&&(this.showOnIntersect=!0),(t.config.markers.size===0||t.globals.markers.largestSize===0)&&this.marker.drawDynamicPoints(),t.globals.collapsedSeries.length===t.seriesData.series.length)return;this.dataPointsDividedHeight=t.layout.gridHeight/t.globals.dataPoints,this.dataPointsDividedWidth=t.layout.gridWidth/t.globals.dataPoints,this.showTooltipTitle&&(this.tooltipTitle=ke.createElementNS("http://www.w3.org/1999/xhtml","div"),this.tooltipTitle.classList.add("apexcharts-tooltip-title"),this.tooltipTitle.style.fontFamily=this.tConfig.style.fontFamily||t.config.chart.fontFamily,this.tooltipTitle.style.fontSize=this.tConfig.style.fontSize,a.appendChild(this.tooltipTitle));let o=t.seriesData.series.length;(t.globals.xyCharts||t.globals.comboCharts)&&this.tConfig.shared&&(this.showOnIntersect?o=1:o=t.seriesData.series.length),this.legendLabels=t.dom.baseEl.querySelectorAll(".apexcharts-legend-text"),this.ttItems=this.createTTElements(o),this.addSVGEvents(),this.setupDimensionCache()}createTTElements(e){const t=this.w,r=[],a=this.getElTooltip();if(!a)return r;for(let i=0;i<e;i++){const s=ke.createElementNS("http://www.w3.org/1999/xhtml","div");s.classList.add("apexcharts-tooltip-series-group",`apexcharts-tooltip-series-group-${i}`),s.style.order=String(t.config.tooltip.inverseOrder?e-i:i+1);const o=ke.createElementNS("http://www.w3.org/1999/xhtml","span");o.classList.add("apexcharts-tooltip-marker"),t.config.tooltip.fillSeriesColor?o.style.backgroundColor=t.globals.colors[i]:o.style.color=t.globals.colors[i];const l=t.config.markers.shape;let u=l;Array.isArray(l)&&(u=l[i]),o.setAttribute("shape",u),o.innerHTML=nie(u),s.appendChild(o);const d=ke.createElementNS("http://www.w3.org/1999/xhtml","div");d.classList.add("apexcharts-tooltip-text"),d.style.fontFamily=this.tConfig.style.fontFamily||t.config.chart.fontFamily,d.style.fontSize=this.tConfig.style.fontSize,["y","goals","z"].forEach(f=>{const g=ke.createElementNS("http://www.w3.org/1999/xhtml","div");g.classList.add(`apexcharts-tooltip-${f}-group`);const p=ke.createElementNS("http://www.w3.org/1999/xhtml","span");p.classList.add(`apexcharts-tooltip-text-${f}-label`),g.appendChild(p);const b=ke.createElementNS("http://www.w3.org/1999/xhtml","span");b.classList.add(`apexcharts-tooltip-text-${f}-value`),g.appendChild(b),d.appendChild(g)}),s.appendChild(d),a.appendChild(s),r.push(s)}return r}addSVGEvents(){const e=this.w,t=e.config.chart.type,r=this.getElTooltip();if(!r)return;const a=t==="bar"||t==="candlestick"||t==="boxPlot"||t==="violin"||t==="rangeBar",i=t==="area"||t==="line"||t==="scatter"||t==="bubble"||t==="radar",s=e.dom.Paper.node,o=this.getElGrid();o&&(this.seriesBound=o.getBoundingClientRect());const l=[],u=[],d={hoverArea:s,elGrid:o,tooltipEl:r,tooltipY:l,tooltipX:u,ttItems:this.ttItems};let f;if(e.globals.axisCharts&&(i?f=e.dom.baseEl.querySelectorAll(".apexcharts-series[data\\:longestSeries='true'] .apexcharts-marker"):a?f=e.dom.baseEl.querySelectorAll(".apexcharts-series .apexcharts-bar-area, .apexcharts-series .apexcharts-candlestick-area, .apexcharts-series .apexcharts-boxPlot-area, .apexcharts-series .apexcharts-violin-area, .apexcharts-series .apexcharts-rangebar-area"):(t==="heatmap"||t==="treemap")&&(f=e.dom.baseEl.querySelectorAll(".apexcharts-series .apexcharts-heatmap, .apexcharts-series .apexcharts-treemap")),f&&f.length))for(let p=0;p<f.length;p++)l.push(f[p].getAttribute("cy")),u.push(f[p].getAttribute("cx"));if(e.globals.xyCharts&&!this.showOnIntersect||e.globals.comboCharts&&!this.showOnIntersect||a&&this.tooltipUtil.hasBars()&&this.tConfig.shared)this.addPathsEventListeners([s],d);else if(a&&!e.globals.comboCharts||i&&this.showOnIntersect)this.addDatapointEventsListeners(d);else if(!e.globals.axisCharts||t==="heatmap"||t==="treemap"){const p=e.dom.baseEl.querySelectorAll(".apexcharts-series");this.addPathsEventListeners(p,d)}if(this.showOnIntersect){const p=e.dom.baseEl.querySelectorAll(".apexcharts-line-series .apexcharts-marker, .apexcharts-area-series .apexcharts-marker");p.length>0&&this.addPathsEventListeners(p,d),this.tooltipUtil.hasBars()&&!this.tConfig.shared&&this.addDatapointEventsListeners(d)}}drawFixedTooltipRect(){const e=this.w,t=this.getElTooltip();if(!t)return{x:0,y:0,ttWidth:0,ttHeight:0};const r=t.getBoundingClientRect(),a=r.width+10,i=r.height+10;let s=this.tConfig.fixed.offsetX,o=this.tConfig.fixed.offsetY;const l=this.tConfig.fixed.position.toLowerCase();return l.indexOf("right")>-1&&(s=s+e.globals.svgWidth-a+10),l.indexOf("bottom")>-1&&(o=o+e.globals.svgHeight-i-10),this.tooltipPosition.applyTooltipPosition(t,{x:s,y:o}),{x:s,y:o,ttWidth:a,ttHeight:i}}addDatapointEventsListeners(e){const r=this.w.dom.baseEl.querySelectorAll(".apexcharts-series-markers .apexcharts-marker, .apexcharts-bar-area, .apexcharts-candlestick-area, .apexcharts-boxPlot-area, .apexcharts-rangebar-area");this.addPathsEventListeners(r,e)}addPathsEventListeners(e,t){const r=this;for(let a=0;a<e.length;a++){const i={paths:e[a],tooltipEl:t.tooltipEl,tooltipY:t.tooltipY,tooltipX:t.tooltipX,elGrid:t.elGrid,hoverArea:t.hoverArea,ttItems:t.ttItems};["mousemove","mouseup","touchmove","mouseout","touchend"].map(o=>e[a].addEventListener(o,r.onSeriesHover.bind(r,i),{capture:!1,passive:!0}))}}onSeriesHover(e,t){const a=Date.now()-this.lastHoverTime;a>=20?this.seriesHover(e,t):(clearTimeout(this.seriesHoverTimeout),this.seriesHoverTimeout=setTimeout(()=>{this.seriesHover(e,t)},20-a))}seriesHover(e,t){this.lastHoverTime=Date.now();let r=[];const a=this.w;a.config.chart.group&&(r=this.ctx.getGroupedCharts()),!(a.globals.axisCharts&&(a.globals.minX===-1/0&&a.globals.maxX===1/0||a.globals.dataPoints===0))&&(r.length?r.forEach(i=>{const s=this.getElTooltip(i),o={paths:e.paths,tooltipEl:s,tooltipY:e.tooltipY,tooltipX:e.tooltipX,elGrid:e.elGrid,hoverArea:e.hoverArea,ttItems:i.w.globals.tooltip.ttItems};i.w.globals.minX===this.w.globals.minX&&i.w.globals.maxX===this.w.globals.maxX&&i.w.globals.tooltip.seriesHoverByContext({chartCtx:i,ttCtx:i.w.globals.tooltip,opt:o,e:t})}):this.seriesHoverByContext({chartCtx:this.ctx,ttCtx:this.w.globals.tooltip,opt:e,e:t}))}seriesHoverByContext({chartCtx:e,ttCtx:t,opt:r,e:a}){const i=e.w;if(!this.getElTooltip(e))return;const o=t.getCachedDimensions();t.tooltipRect={x:0,y:0,ttWidth:o.ttWidth,ttHeight:o.ttHeight},t.e=a,t.tooltipUtil.hasBars()&&!i.globals.comboCharts&&!t.isBarShared&&this.tConfig.onDatasetHover.highlightDataSeries&&new Wn(e.w).toggleSeriesOnHover(a,a.target.parentNode),i.globals.axisCharts?t.axisChartsTooltips({e:a,opt:r,tooltipRect:t.tooltipRect}):t.nonAxisChartsTooltips({e:a,opt:r,tooltipRect:t.tooltipRect}),t.fixedTooltip&&t.drawFixedTooltipRect()}axisChartsTooltips({e,opt:t}){var r;const a=this.w;let i,s;const o=t.elGrid.getBoundingClientRect(),l=e.type==="touchmove"?e.touches[0].clientX:e.clientX,u=e.type==="touchmove"?e.touches[0].clientY:e.clientY;if(this.clientY=u,this.clientX=l,a.interact.capturedSeriesIndex=-1,a.interact.capturedDataPointIndex=-1,u<o.top||u>o.top+o.height){this.handleMouseOut(t);return}if(Array.isArray(this.tConfig.enabledOnSeries)&&!a.config.tooltip.shared){const b=parseInt(t.paths.getAttribute("index"),10);if(this.tConfig.enabledOnSeries.indexOf(b)<0){this.handleMouseOut(t);return}}const d=this.getElTooltip();if(!d)return;const f=this.getElXCrosshairs();let g=[];a.config.chart.group&&(g=this.ctx.getSyncedCharts());const p=a.globals.xyCharts||a.config.chart.type==="bar"&&!a.globals.isBarHorizontal&&this.tooltipUtil.hasBars()&&this.tConfig.shared||a.globals.comboCharts&&this.tooltipUtil.hasBars();if(e.type==="mousemove"||e.type==="touchmove"||e.type==="mouseup"){if(a.globals.collapsedSeries.length+a.globals.ancillaryCollapsedSeries.length===a.seriesData.series.length)return;f!==null&&f.classList.add("apexcharts-active");const b=(r=this.yaxisTooltips)==null?void 0:r.filter(x=>x===!0),y=this.ycrosshairs;if(y!==null&&b?.length&&y.classList.add("apexcharts-active"),p&&!this.showOnIntersect||g.length>1)this.handleStickyTooltip(e,l,u,t);else if(a.config.chart.type==="heatmap"||a.config.chart.type==="treemap"){const x=this.intersect.handleHeatTreeTooltip({e,opt:t,x:i,y:s,type:a.config.chart.type});i=x.x,s=x.y,d.style.left=i+"px",d.style.top=s+"px"}else this.tooltipUtil.hasBars()&&this.intersect.handleBarTooltip({e,opt:t}),this.tooltipUtil.hasMarkers(0)&&this.intersect.handleMarkerTooltip({e,opt:t,x:i,y:s});if(this.yaxisTooltips&&this.yaxisTooltips.length)for(let x=0;x<a.config.yaxis.length;x++)this.axesTooltip.drawYaxisTooltipText(x,u,this.xyRatios);a.dom.baseEl.classList.add("apexcharts-tooltip-active"),t.tooltipEl.classList.add("apexcharts-active"),a.config.chart.accessibility.enabled&&a.config.chart.accessibility.announcements.enabled&&t.tooltipEl.removeAttribute("aria-hidden")}else(e.type==="mouseout"||e.type==="touchend")&&this.handleMouseOut(t)}nonAxisChartsTooltips({e,opt:t,tooltipRect:r}){var a,i,s,o;const l=this.w,u=t.paths.getAttribute("rel"),d=this.getElTooltip();if(!d)return;const f=l.dom.elWrap.getBoundingClientRect();if(e.type==="mousemove"||e.type==="touchmove"){l.dom.baseEl.classList.add("apexcharts-tooltip-active"),d.classList.add("apexcharts-active"),l.config.chart.accessibility.enabled&&l.config.chart.accessibility.announcements.enabled&&d.removeAttribute("aria-hidden"),this.tooltipLabels.drawSeriesTexts({ttItems:t.ttItems,i:parseInt(u,10)-1,shared:!1});let g,p;const b=t.paths.querySelector("path[data\\:cx]")||t.paths;if(l.config.tooltip.intersect&&b.hasAttribute("data:cx")&&b.hasAttribute("data:cy")){const y=l.dom.Paper.node.getBoundingClientRect();g=y.left-f.left+parseFloat(b.getAttribute("data:cx"))-r.ttWidth/2,p=y.top-f.top+parseFloat(b.getAttribute("data:cy"))-r.ttHeight-10}else g=((a=l.interact.clientX)!=null?a:0)-f.left-r.ttWidth/2,p=((i=l.interact.clientY)!=null?i:0)-f.top-r.ttHeight-10;if(d.style.left=g+"px",d.style.top=p+"px",l.config.legend.tooltipHoverFormatter){const y=l.config.legend.tooltipHoverFormatter,x=u-1,S=(s=this.legendLabels)==null?void 0:s[x];if(!S)return;const C=S.getAttribute("data:default-text"),O=y(C,{seriesIndex:x,dataPointIndex:x,w:l});S.innerHTML=O}}else(e.type==="mouseout"||e.type==="touchend")&&(d.classList.remove("apexcharts-active"),l.dom.baseEl.classList.remove("apexcharts-tooltip-active"),l.config.legend.tooltipHoverFormatter&&((o=this.legendLabels)==null||o.forEach(g=>{const p=g.getAttribute("data:default-text");g.innerHTML=decodeURIComponent(p??"")})))}handleStickyTooltip(e,t,r,a){const i=this.w,s=this.tooltipUtil.getNearestValues({context:this,hoverArea:a.hoverArea,elGrid:a.elGrid,clientX:t,clientY:r}),o=s.j;let l=s.capturedSeries;l!==null&&i.globals.collapsedSeriesIndices.includes(l??-1)&&(l=null);const u=a.elGrid.getBoundingClientRect();if(s.hoverX<0||s.hoverX>u.width){this.handleMouseOut(a);return}if(l!==null)this.handleStickyCapturedSeries(e,l??-1,a,o??0);else if(this.tooltipUtil.isXoverlap(o??0)||i.globals.isBarHorizontal){const d=i.seriesData.series.findIndex((f,g)=>!i.globals.collapsedSeriesIndices.includes(g));this.create(e,this,d,o??0,a.ttItems)}}handleStickyCapturedSeries(e,t,r,a){const i=this.w;if(!this.tConfig.shared&&i.seriesData.series[t][a]===null){this.handleMouseOut(r);return}if(typeof i.seriesData.series[t][a]<"u")this.tConfig.shared&&this.tooltipUtil.isXoverlap(a)&&this.tooltipUtil.isInitialSeriesSameLen()?this.create(e,this,t,a,r.ttItems):this.create(e,this,t,a,r.ttItems,!1);else if(this.tooltipUtil.isXoverlap(a)){const s=i.seriesData.series.findIndex((o,l)=>!i.globals.collapsedSeriesIndices.includes(l));this.create(e,this,s,a,r.ttItems)}}deactivateHoverFilter(){const e=this.w,t=new ve(this.w,this.ctx),r=e.dom.Paper.find(".apexcharts-bar-area");for(let a=0;a<r.length;a++)t.pathMouseLeave(r[a],void 0)}handleMouseOut(e){var t,r;const a=this.w,i=this.getElXCrosshairs();a.dom.baseEl.classList.remove("apexcharts-tooltip-active"),e.tooltipEl.classList.remove("apexcharts-active"),delete e.tooltipEl.dataset.positioned,a.config.chart.accessibility.enabled&&a.config.chart.accessibility.announcements.enabled&&e.tooltipEl.setAttribute("aria-hidden","true"),this.deactivateHoverFilter(),a.config.chart.type!=="bubble"&&this.marker.resetPointsSize(),i!==null&&i.classList.remove("apexcharts-active");const s=this.ycrosshairs;if(s!==null&&s.classList.remove("apexcharts-active"),this.isXAxisTooltipEnabled&&((t=this.xaxisTooltip)==null||t.classList.remove("apexcharts-active")),this.yaxisTooltips&&this.yaxisTooltips.length){this.yaxisTTEls===null&&(this.yaxisTTEls=[...a.dom.baseEl.querySelectorAll(".apexcharts-yaxistooltip")]);for(let o=0;o<this.yaxisTTEls.length;o++)this.yaxisTTEls[o].classList.remove("apexcharts-active")}a.config.legend.tooltipHoverFormatter&&((r=this.legendLabels)==null||r.forEach(o=>{const l=o.getAttribute("data:default-text");o.innerHTML=decodeURIComponent(l??"")}))}markerClick(e,t,r){const a=this.w;typeof a.config.chart.events.markerClick=="function"&&a.config.chart.events.markerClick(e,this.ctx,{seriesIndex:t,dataPointIndex:r,w:a}),this.ctx.events.fireEvent("markerClick",[e,this.ctx,{seriesIndex:t,dataPointIndex:r,w:a}])}create(e,t,r,a,i,s=null){var o,l,u,d,f,g,p,b,y,x,S,C,O,D,M,A,T,P,R;const N=this.w,I=t;e.type==="mouseup"&&this.markerClick(e,r,a),s===null&&(s=this.tConfig.shared);const $=this.tooltipUtil.hasMarkers(r),Y=this.tooltipUtil.getElBars(),k=()=>{N.globals.markers.largestSize>0?I.marker.enlargePoints(a):I.tooltipPosition.moveDynamicPointsOnHover(a)};if(N.config.legend.tooltipHoverFormatter){const B=N.config.legend.tooltipHoverFormatter,X=Array.from((o=this.legendLabels)!=null?o:[]);X.forEach(Q=>{const z=Q.getAttribute("data:default-text");Q.innerHTML=decodeURIComponent(z??"")});for(let Q=0;Q<X.length;Q++){const z=X[Q],V=parseInt((l=z.getAttribute("i"))!=null?l:"",10),j=decodeURIComponent((u=z.getAttribute("data:default-text"))!=null?u:""),q=B(j,{seriesIndex:s?V:r,dataPointIndex:a,w:N});if(s)z.innerHTML=N.globals.collapsedSeriesIndices.indexOf(V)<0?q:j;else if(z.innerHTML=V===r?q:j,r===V)break}}const H=N.rangeData,F=ct(ct({ttItems:i,i:r,j:a},((p=(g=(f=(d=H.seriesRange)==null?void 0:d[r])==null?void 0:f[a])==null?void 0:g.y[0])==null?void 0:p.y1)!==void 0&&{y1:(S=(x=(y=(b=H.seriesRange)==null?void 0:b[r])==null?void 0:y[a])==null?void 0:x.y[0])==null?void 0:S.y1}),((M=(D=(O=(C=H.seriesRange)==null?void 0:C[r])==null?void 0:O[a])==null?void 0:D.y[0])==null?void 0:M.y2)!==void 0&&{y2:(R=(P=(T=(A=H.seriesRange)==null?void 0:A[r])==null?void 0:T[a])==null?void 0:P.y[0])==null?void 0:R.y2});if(s){if(I.tooltipLabels.drawSeriesTexts(Lt(ct({},F),{shared:this.showOnIntersect?!1:this.tConfig.shared})),$)k();else if(this.tooltipUtil.hasBars()&&(this.barSeriesHeight=this.tooltipUtil.getBarsHeight([...Y]),this.barSeriesHeight>0)){const B=new ve(this.w,this.ctx),X=N.dom.Paper.find(`.apexcharts-bar-area[j='${a}']`);this.deactivateHoverFilter(),I.tooltipUtil.getAllMarkers(!0).length&&!this.barSeriesHeight&&k(),I.tooltipPosition.moveStickyTooltipOverBars(a,r);for(let z=0;z<X.length;z++)B.pathMouseEnter(X[z],void 0)}}else I.tooltipLabels.drawSeriesTexts(ct({shared:!1},F)),this.tooltipUtil.hasBars()&&I.tooltipPosition.moveStickyTooltipOverBars(a,r),$&&I.tooltipPosition.moveMarkers(r,a)}}let va=class zc{constructor(e){this.node=e,e&&(e.instance=this),this._listeners=[],this._filter=null}attr(e,t){if(typeof e=="string"&&t===void 0)return this.node.getAttribute(e);const r=typeof e=="string"?{[e]:t}:e;for(const a in r){let i=r[a];i===null?this.node.removeAttribute(a):i!==void 0&&(typeof i=="number"&&isNaN(i)&&(i=0),this.node.setAttribute(a,i))}if(this.node.nodeName==="text"&&r.x!=null){const a=this.node.querySelectorAll("tspan[data-newline]");for(let i=0;i<a.length;i++)a[i].setAttribute("x",r.x)}return this}css(e){for(const t in e)this.node.style[t]=e[t];return this}fill(e){return typeof e=="object"?this.attr(e):this.attr("fill",e)}stroke(e){return typeof e=="object"?(e.color!==void 0&&this.attr("stroke",e.color),e.width!==void 0&&this.attr("stroke-width",e.width),e.dasharray!==void 0&&this.attr("stroke-dasharray",e.dasharray),e.linecap!==void 0&&this.attr("stroke-linecap",e.linecap),e.opacity!==void 0&&this.attr("stroke-opacity",e.opacity),this):this.attr("stroke",e)}size(e,t){return this.attr({width:e,height:t})}move(e,t){return this.attr({x:e,y:t})}center(e,t){if(this.node.nodeName==="g"){const r=this.bbox(),a=e-(r.x+r.width/2),i=t-(r.y+r.height/2);return this.attr("transform",`translate(${a}, ${i})`)}return this.attr({cx:e,cy:t})}add(e){return this.node.appendChild(e.node||e),this}addTo(e){return(e.node||e).appendChild(this.node),this}remove(){return this.node.parentNode&&this.node.parentNode.removeChild(this.node),this}clear(){for(;this.node.firstChild;)this.node.removeChild(this.node.firstChild);return this}find(e){return Array.from(this.node.querySelectorAll(e)).map(t=>t.instance||new zc(t))}findOne(e){const t=this.node.querySelector(e);return t?t.instance||new zc(t):null}on(e,t){const r=e.split(".")[0];return this._listeners.push({event:e,eventType:r,handler:t}),this.node.addEventListener(r,t),this}off(e,t){if(!e&&!t)this._listeners.forEach(r=>{this.node.removeEventListener(r.eventType,r.handler)}),this._listeners=[];else if(e&&!t){const r=e.split(".")[0];this._listeners=this._listeners.filter(a=>a.eventType===r?(this.node.removeEventListener(a.eventType,a.handler),!1):!0)}else{const r=e.split(".")[0];this._listeners=this._listeners.filter(a=>a.eventType===r&&a.handler===t?(this.node.removeEventListener(a.eventType,a.handler),!1):!0)}return this}each(e,t){return Array.from(this.node.children).forEach(a=>{const i=a.instance||new zc(a);e.call(i),t&&i.each(e,t)}),this}removeClass(e){return e==="*"?this.node.removeAttribute("class"):this.node.classList.remove(e),this}children(){return Array.from(this.node.childNodes).filter(e=>e.nodeType===1).map(e=>e.instance||new zc(e))}hide(){return this.node.style.display="none",this}show(){return this.node.style.display="",this}bbox(){if(typeof this.node.getBBox=="function")try{return this.node.getBBox()}catch{}return{x:0,y:0,width:0,height:0}}tspan(e){const t=ke.createElementNS("http://www.w3.org/2000/svg","tspan");return t.textContent=e,this.node.appendChild(t),new zc(t)}plot(e){return typeof e=="string"&&this.attr("d",e),this}animate(){throw new Error("Animation module not loaded")}filterWith(){throw new Error("Filter module not loaded")}unfilter(e){return this._filter&&(this.node.removeAttribute("filter"),e&&this._filter.node&&this._filter.node.parentNode&&this._filter.node.parentNode.removeChild(this._filter.node),this._filter=null),this}filterer(){return this._filter}},oie=0;class lie extends va{constructor(e,t,r){const a=t==="radial"?"radialGradient":"linearGradient",i=ke.createElementNS(xn,a);super(i),this._id="SvgjsGradient"+ ++oie,this.attr("id",this._id),typeof r=="function"&&r(new cie(this));let s=e.node.querySelector("defs");s||(s=ke.createElementNS(xn,"defs"),e.node.appendChild(s)),s.appendChild(this.node)}stop(e,t,r){const a=ke.createElementNS(xn,"stop");return a.setAttribute("offset",e),a.setAttribute("stop-color",t),r!==void 0&&a.setAttribute("stop-opacity",String(r)),this.node.appendChild(a),this}from(e,t){return this.attr({x1:e,y1:t})}to(e,t){return this.attr({x2:e,y2:t})}url(){return"url(#"+this._id+")"}toString(){return this.url()}valueOf(){return this.url()}fill(){return this.url()}}class cie{constructor(e){this.gradient=e}stop(e,t,r){return this.gradient.stop(e,t,r),this}}let uie=0;class die extends va{constructor(e,t,r,a){const i=ke.createElementNS(xn,"pattern");if(super(i),this._id="SvgjsPattern"+ ++uie,this.attr({id:this._id,width:t,height:r,patternUnits:"userSpaceOnUse"}),typeof a=="function"){const o=new Uh(this.node);a(o)}let s=e.node.querySelector("defs");s||(s=ke.createElementNS(xn,"defs"),e.node.appendChild(s)),s.appendChild(this.node)}url(){return"url(#"+this._id+")"}toString(){return this.url()}valueOf(){return this.url()}fill(){return this.url()}}class Uh extends va{line(e,t,r,a){const i=this._make("line");return e!==void 0&&i.attr({x1:e,y1:t,x2:r,y2:a}),i}rect(e,t){const r=this._make("rect");return e!==void 0&&r.attr({width:e,height:t}),r}circle(e){const t=this._make("circle");return e!==void 0&&t.attr({r:e/2,cx:e/2,cy:e/2}),t}path(e){const t=this._make("path");return e&&t.attr("d",e),t}polygon(e){const t=this._make("polygon");return e&&t.attr("points",e),t}group(){return this._makeContainer("g")}defs(){return this._makeContainer("defs")}plain(e){const t=ke.createElementNS(xn,"text");t.textContent=e;const r=new va(t);return this.node.appendChild(t),r}text(e){const t=ke.createElementNS(xn,"text"),r=new va(t);return this.node.appendChild(t),typeof e=="function"&&e(new fie(t)),r}image(e,t){const r=ke.createElementNS(xn,"image");r.setAttributeNS("http://www.w3.org/1999/xlink","href",e);const a=new va(r);if(this.node.appendChild(r),typeof t=="function"){const i=new Image;i.onload=function(){a.size(i.width,i.height),t.call(a,{width:i.width,height:i.height})},i.src=e}return a}gradient(e,t){return new lie(this,e,t)}pattern(e,t,r){return new die(this,e,t,r)}_make(e){const t=ke.createElementNS(xn,e);return this.node.appendChild(t),new va(t)}_makeContainer(e){const t=ke.createElementNS(xn,e);return this.node.appendChild(t),new Uh(t)}}class fie{constructor(e){this.textNode=e}tspan(e){const t=ke.createElementNS(xn,"tspan");return t.textContent=e,this.textNode.appendChild(t),new hie(t,this.textNode)}}class hie{constructor(e,t){this.node=e,this.textNode=t}newLine(){return this.node.setAttribute("dy","1.1em"),this.node.dataset.newline="1",this}}let gie=0;class pie extends va{constructor(){const e=ke.createElementNS(xn,"filter");super(e),this._id="SvgjsFilter"+ ++gie,this.attr("id",this._id)}size(e,t,r,a){return this.attr({width:e,height:t,x:r,y:a})}}class mie{constructor(e){this.filter=e}colorMatrix(e){return this._primitive("feColorMatrix",e)}offset(e){return this._primitive("feOffset",e)}gaussianBlur(e){return this._primitive("feGaussianBlur",e)}flood(e){return this._primitive("feFlood",e)}composite(e){return this._primitive("feComposite",e)}merge(e){const t=ke.createElementNS(xn,"feMerge");return e.forEach(r=>{const a=ke.createElementNS(xn,"feMergeNode");a.setAttribute("in",r),t.appendChild(a)}),this.filter.node.appendChild(t),new va(t)}_primitive(e,t){const r=ke.createElementNS(xn,e);for(const a in t)r.setAttribute(a,t[a]);return this.filter.node.appendChild(r),new va(r)}}function vie(n){n.prototype.filterWith=function(e){const t=new pie;this._filter=t;let r=this.node;for(;r&&r.nodeName!=="svg";)r=r.parentNode;if(r){let a=r.querySelector("defs");a||(a=ke.createElementNS(xn,"defs"),r.insertBefore(a,r.firstChild)),a.appendChild(t.node)}return e(new mie(t)),this.attr("filter","url(#"+t._id+")"),this},n.prototype.unfilter=function(e){return this._filter&&(this.node.removeAttribute("filter"),e&&this._filter.node&&this._filter.node.parentNode&&this._filter.node.parentNode.removeChild(this._filter.node),this._filter=null),this},n.prototype.filterer=function(){return this._filter}}/*!
 * Path morphing for SVG path animations
 * Based on svg.pathmorphing.js by Ulrich-Matthias Schäfer (MIT License)
 * Refactored to be standalone (no SVG.js dependency)
 *
 * Two algorithms are exported:
 *   - morphPaths()    — command-level interpolation; preserves curves but can
 *                       produce "wings/flips" when two shapes have very
 *                       different topology (e.g. bar rect → pie arc).
 *   - morphPolygons() — resamples both shapes into N evenly-spaced perimeter
 *                       points and tweens point-by-point with rotation-search
 *                       alignment; always smooth and non-self-intersecting,
 *                       at the cost of throwing away curve smoothness.
 */function yh(n){if(!n||typeof n!="string")return[["M",0,0]];const e=[],t=/([MmLlHhVvCcSsQqTtAaZz])\s*/g,r=/[+-]?(?:\d+\.?\d*|\.\d+)(?:e[+-]?\d+)?/gi;let a;const i=[],s=[];for(;(a=t.exec(n))!==null;)i.push(a[1]),s.push(a.index);for(let o=0;o<i.length;o++){const l=s[o]+i[o].length,u=o+1<s.length?s[o+1]:n.length,d=n.substring(l,u),f=[];let g;for(r.lastIndex=0;(g=r.exec(d))!==null;)f.push(parseFloat(g[0]));const p=i[o].toUpperCase();if(p==="Z")e.push(["Z"]);else if(p==="M"||p==="L"||p==="T")for(let b=0;b<f.length;b+=2)e.push([p,f[b],f[b+1]]);else if(p==="H")for(let b=0;b<f.length;b++)e.push([p,f[b]]);else if(p==="V")for(let b=0;b<f.length;b++)e.push([p,f[b]]);else if(p==="C")for(let b=0;b<f.length;b+=6)e.push([p,f[b],f[b+1],f[b+2],f[b+3],f[b+4],f[b+5]]);else if(p==="S"||p==="Q")for(let b=0;b<f.length;b+=4)e.push([p,f[b],f[b+1],f[b+2],f[b+3]]);else if(p==="A")for(let b=0;b<f.length;b+=7)e.push([p,f[b],f[b+1],f[b+2],f[b+3],f[b+4],f[b+5],f[b+6]])}return e.length===0&&e.push(["M",0,0]),e}function tv(n){let e=1/0,t=1/0,r=-1/0,a=-1/0;return n.forEach(i=>{for(let s=1;s<i.length;s+=2)if(s+1<=i.length){const o=i[s],l=i[s+1];typeof o=="number"&&typeof l=="number"&&(o<e&&(e=o),o>r&&(r=o),l<t&&(t=l),l>a&&(a=l))}}),e===1/0?{x:0,y:0,width:0,height:0}:{x:e,y:t,width:r-e,height:a-t}}function bie(n){return n.map(e=>e.join(" ")).join(" ")}function P2(n){switch(n[0]){case"z":case"Z":n[0]="L",n[1]=this.start[0],n[2]=this.start[1];break;case"H":n[0]="L",n[2]=this.pos[1];break;case"V":n[0]="L",n[2]=n[1],n[1]=this.pos[0];break;case"T":n[0]="Q",n[3]=n[1],n[4]=n[2],n[1]=this.reflection[1],n[2]=this.reflection[0];break;case"S":n[0]="C",n[6]=n[4],n[5]=n[3],n[4]=n[2],n[3]=n[1],n[2]=this.reflection[1],n[1]=this.reflection[0];break}return n}function L2(n){var e=n.length;return this.pos=[n[e-2],n[e-1]],"SCQT".indexOf(n[0])!=-1&&(this.reflection=[2*this.pos[0]-n[e-4],2*this.pos[1]-n[e-3]]),n}function N2(n){var e,t=[n];switch(n[0]){case"M":return this.pos=this.start=[n[1],n[2]],t;case"L":n[5]=n[3]=n[1],n[6]=n[4]=n[2],n[1]=this.pos[0],n[2]=this.pos[1];break;case"Q":n[6]=n[4],n[5]=n[3],n[4]=n[4]*1/3+n[2]*2/3,n[3]=n[3]*1/3+n[1]*2/3,n[2]=this.pos[1]*1/3+n[2]*2/3,n[1]=this.pos[0]*1/3+n[1]*2/3;break;case"A":t=yie((e=this.pos)!=null?e:[],n),n=t[0];break}return n[0]="C",this.pos=[n[5],n[6]],this.reflection=[2*n[5]-n[3],2*n[6]-n[4]],t}function I2(n,e){if(e===!1)return!1;for(var t=e,r=n.length;t<r;++t)if(n[t][0]=="M")return t;return!1}function yie(n,e){var t=Math.abs(e[1]),r=Math.abs(e[2]),a=e[3]%360,i=e[4],s=e[5],o=e[6],l=e[7],u=new Ja(n[0],n[1]),d=new Ja(o,l),f,g,p,b,y,x,S,C,O,D,M,A,T,P,R,N,I,$,Y,k,H,F,B=[],X,Q,z,V;if(t===0||r===0||u.x===d.x&&u.y===d.y)return[["C",u.x,u.y,d.x,d.y,d.x,d.y]];for(f=new Ja((u.x-d.x)/2,(u.y-d.y)/2).transform(new yl().rotate(a)),g=f.x*f.x/(t*t)+f.y*f.y/(r*r),g>1&&(g=Math.sqrt(g),t=g*t,r=g*r),p=new yl().rotate(a).scale(1/t,1/r).rotate(-a),u=u.transform(p),d=d.transform(p),b=[d.x-u.x,d.y-u.y],x=b[0]*b[0]+b[1]*b[1],y=Math.sqrt(x),b[0]/=y,b[1]/=y,S=x<4?Math.sqrt(1-x/4):0,i===s&&(S*=-1),C=new Ja((d.x+u.x)/2+S*-b[1],(d.y+u.y)/2+S*b[0]),O=new Ja(u.x-C.x,u.y-C.y),D=new Ja(d.x-C.x,d.y-C.y),M=Math.acos(O.x/Math.sqrt(O.x*O.x+O.y*O.y)),O.y<0&&(M*=-1),A=Math.acos(D.x/Math.sqrt(D.x*D.x+D.y*D.y)),D.y<0&&(A*=-1),s&&M>A&&(A+=2*Math.PI),!s&&M<A&&(A-=2*Math.PI),P=Math.ceil(Math.abs(M-A)*2/Math.PI),N=[],I=M,T=(A-M)/P,R=4*Math.tan(T/4)/3,H=0;H<=P;H++)Y=Math.cos(I),$=Math.sin(I),k=new Ja(C.x+Y,C.y+$),N[H]=[new Ja(k.x+R*$,k.y-R*Y),k,new Ja(k.x-R*$,k.y+R*Y)],I+=T;for(N[0][0]=N[0][1].clone(),N[N.length-1][2]=N[N.length-1][1].clone(),p=new yl().rotate(a).scale(t,r).rotate(-a),H=0,F=N.length;H<F;H++)N[H][0]=N[H][0].transform(p),N[H][1]=N[H][1].transform(p),N[H][2]=N[H][2].transform(p);for(H=1,F=N.length;H<F;H++)k=N[H-1][2],X=k.x,Q=k.y,k=N[H][0],z=k.x,V=k.y,k=N[H][1],o=k.x,l=k.y,B.push(["C",X,Q,z,V,o,l]);return B}function xie(n,e,t,r,a,i){for(var s=n.slice(e,t||void 0),o=r.slice(a,i||void 0),l=0,u={pos:[0,0],start:[0,0]},d={pos:[0,0],start:[0,0]};s[l]=P2.call(u,s[l]),o[l]=P2.call(d,o[l]),s[l][0]!=o[l][0]||s[l][0]=="M"||s[l][0]=="A"&&(s[l][4]!=o[l][4]||s[l][5]!=o[l][5])?(Array.prototype.splice.apply(s,[l,1].concat(N2.call(u,s[l]))),Array.prototype.splice.apply(o,[l,1].concat(N2.call(d,o[l])))):(s[l]=L2.call(u,s[l]),o[l]=L2.call(d,o[l])),!(++l==s.length&&l==o.length);)l==s.length&&s.push(["C",u.pos[0],u.pos[1],u.pos[0],u.pos[1],u.pos[0],u.pos[1]]),l==o.length&&o.push(["C",d.pos[0],d.pos[1],d.pos[0],d.pos[1],d.pos[0],d.pos[1]]);return{start:s,dest:o}}function wie(n,e){for(var t=yh(n),r=yh(e),a=0,i=0,s=!1,o=!1,l;!(a===!1&&i===!1);){if(s=I2(t,a===!1?!1:a+1),o=I2(r,i===!1?!1:i+1),a===!1){const u=tv(l.start);u.height==0||u.width==0?a=t.push(t[0])-1:a=t.push(["M",u.x+u.width/2,u.y+u.height/2])-1}if(i===!1){const u=tv(l.dest);u.height==0||u.width==0?i=r.push(r[0])-1:i=r.push(["M",u.x+u.width/2,u.y+u.height/2])-1}l=xie(t,a,s,r,i,o),t=t.slice(0,a).concat(l.start,s===!1?[]:t.slice(s)),r=r.slice(0,i).concat(l.dest,o===!1?[]:r.slice(o)),a=s===!1?!1:a+l.start.length,i=o===!1?!1:i+l.dest.length}return{start:t,dest:r}}function Sie(n,e){var t=wie(n,e),r=t.start,a=t.dest;return function(i){var s=r.map(function(o,l){return a[l].map(function(u,d){return d===0?u:o[d]+(a[l][d]-o[d])*i})});return bie(s)}}let sl=null,yf=null;function $2(n,e){const t=new Array(e);if(!qe.isBrowser()){const a=yh(n),i=tv(a),s=i.x+i.width/2,o=i.y+i.height/2;for(let l=0;l<e;l++)t[l]={x:s,y:o};return t}sl||(sl=document.createElementNS("http://www.w3.org/2000/svg","svg"),sl.setAttribute("width","0"),sl.setAttribute("height","0"),sl.setAttribute("style","position:absolute;width:0;height:0;visibility:hidden;pointer-events:none;"),yf=document.createElementNS("http://www.w3.org/2000/svg","path"),sl.appendChild(yf),document.body.appendChild(sl)),yf.setAttribute("d",n||"M0 0");let r=0;try{r=yf.getTotalLength()}catch{r=0}if(!r||!isFinite(r)){const a=yh(n),i=tv(a),s=i.x+i.width/2,o=i.y+i.height/2;for(let l=0;l<e;l++)t[l]={x:s,y:o};return t}for(let a=0;a<e;a++)try{const i=yf.getPointAtLength(a/e*r);t[a]={x:i.x,y:i.y}}catch{t[a]={x:0,y:0}}return t}function Cie(n,e,t=96){const r=$2(n,t),a=$2(e,t);let i=0,s=1/0;for(let l=0;l<t;l++){let u=0;for(let d=0;d<t;d++){const f=r[(d+l)%t],g=a[d],p=f.x-g.x,b=f.y-g.y;if(u+=p*p+b*b,u>=s)break}u<s&&(s=u,i=l)}const o=new Array(t);for(let l=0;l<t;l++)o[l]=r[(l+i)%t];return function(l){let u="";for(let d=0;d<t;d++){const f=o[d],g=a[d],p=f.x+(g.x-f.x)*l,b=f.y+(g.y-f.y)*l;u+=(d===0?"M":"L")+p.toFixed(3)+" "+b.toFixed(3)+" "}return u+"Z"}}function Oie(n){return-Math.cos(n*Math.PI)/2+.5}function F2(n){if(!n||typeof n!="string")return null;if(n[0]==="#"){let t=n.slice(1);t.length===3&&(t=t[0]+t[0]+t[1]+t[1]+t[2]+t[2]);const r=parseInt(t,16);return[r>>16&255,r>>8&255,r&255,1]}const e=n.match(/rgba?\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*(?:,\s*([\d.]+))?\s*\)/);return e?[+e[1],+e[2],+e[3],e[4]!==void 0?+e[4]:1]:null}function Eie(n,e,t){return`rgba(${Math.round(n[0]+(e[0]-n[0])*t)},${Math.round(n[1]+(e[1]-n[1])*t)},${Math.round(n[2]+(e[2]-n[2])*t)},${n[3]+(e[3]-n[3])*t})`}class kM{constructor(e,t,r){this.el=e,this.duration=t??300,this.delay=r||0,this._attrTarget=null,this._plotTarget=null,this._plotAlgorithm="commands",this._afterCb=null,this._duringCb=null,this._next=null,this._root=null,this._scheduled=!1}attr(e){return this._attrTarget=e,this._schedule(),this}plot(e,t){return this._plotTarget=e,t&&(this._plotAlgorithm=t),this._schedule(),this}after(e){return this._afterCb=e,this._schedule(),this}during(e){return this._duringCb=e,this._schedule(),this}animate(e,t){const r=new kM(this.el,e,t);return this._next=r,r._root=this._root||this,r}_schedule(){const e=this._root||this;e._scheduled||(e._scheduled=!0,queueMicrotask(()=>e._executeChain()))}_executeChain(){const e=[];let t=this;for(;t;)e.push(t),t=t._next;let r=0;e.forEach(a=>{r+=a.delay,a._execute(r),r+=a.duration})}_execute(e){const t=this.el,r=this.duration;if(r<=1){const i=()=>{this._attrTarget&&t.attr(this._attrTarget),this._plotTarget&&t.plot(this._plotTarget),this._afterCb&&this._afterCb.call(t)};e>0?setTimeout(i,e):i();return}const a=()=>{const i={},s={},o={};if(this._attrTarget)for(const f of Object.keys(this._attrTarget)){const g=t.attr(f);i[f]=g;const p=F2(g),b=F2(String(this._attrTarget[f]));p&&b&&(s[f]=p,o[f]=b)}let l=null;if(this._plotTarget){const f=t.attr("d")||"";try{l=this._plotAlgorithm==="polygons"?Cie(f,this._plotTarget):Sie(f,this._plotTarget)}catch{l=null}}const u=performance.now(),d=f=>{const g=f-u,p=Math.min(g/r,1),b=Oie(p);if(this._attrTarget)if(p>=1)t.attr(this._attrTarget);else{const y={};for(const x of Object.keys(this._attrTarget))if(s[x]&&o[x])y[x]=Eie(s[x],o[x],b);else{const S=parseFloat(i[x]),C=parseFloat(this._attrTarget[x]);!isNaN(S)&&!isNaN(C)&&(y[x]=S+(C-S)*b)}t.attr(y)}l&&p<1&&t.attr("d",l(b)),this._duringCb&&this._duringCb(b),p<1?ke.requestAnimationFrame(d):(this._plotTarget&&t.attr("d",this._plotTarget),this._afterCb&&this._afterCb.call(t))};ke.requestAnimationFrame(d)};e>0?setTimeout(a,e):a()}}function Mie(n){n.prototype.animate=function(e,t){return new kM(this,e,t)}}function Die(n){n.prototype.draggable=function(e){if(e===!1)return this._dragCleanup&&(this._dragCleanup(),this._dragCleanup=null),this;const t=this,r=e||{},a=i=>{if(i.button&&i.button!==0)return;i.stopPropagation();const o=i.type==="touchstart"?i.touches[0]:i,l=t.node,u=parseFloat(l.getAttribute("x"))||0,d=parseFloat(l.getAttribute("y"))||0,f=o.clientX,g=o.clientY,p=l.ownerSVGElement;let b=null;p&&(b=p.getScreenCTM());const y=S=>{const C=S.type==="touchmove"?S.touches[0]:S;let O=C.clientX-f,D=C.clientY-g;b&&(O=O/b.a,D=D/b.d);let M=u+O,A=d+D;const T=parseFloat(l.getAttribute("width"))||0,P=parseFloat(l.getAttribute("height"))||0;r.minX!==void 0&&M<r.minX&&(M=r.minX),r.minY!==void 0&&A<r.minY&&(A=r.minY),r.maxX!==void 0&&M+T>r.maxX&&(M=r.maxX-T),r.maxY!==void 0&&A+P>r.maxY&&(A=r.maxY-P);const R={x:M,y:A,w:T,h:P,x2:M+T,y2:A+P},N=new CustomEvent("dragmove",{detail:{handler:{move:function(I,$){l.setAttribute("x",I),l.setAttribute("y",$)}},box:R}});l.dispatchEvent(N)},x=()=>{qe.isBrowser()&&(document.removeEventListener("mousemove",y),document.removeEventListener("touchmove",y),document.removeEventListener("mouseup",x),document.removeEventListener("touchend",x))};qe.isBrowser()&&(document.addEventListener("mousemove",y),document.addEventListener("touchmove",y),document.addEventListener("mouseup",x),document.addEventListener("touchend",x))};return t.node.addEventListener("mousedown",a),t.node.addEventListener("touchstart",a),t._dragCleanup=()=>{t.node.removeEventListener("mousedown",a),t.node.removeEventListener("touchstart",a)},t}}function _ie(n){n.prototype.select=function(e){if(e===!1)return this._selectCleanup&&(this._selectCleanup(),this._selectCleanup=null),this;const t=this,{createHandle:r,updateHandle:a}=e,i=document.createElementNS(xn,"g");i.setAttribute("class","svg_select_points");const s=t.node.parentNode;s&&s.appendChild(i);const o={},l=["t","b","l","r","lt","rt","lb","rb"];l.forEach((d,f)=>{const g=new Uh(document.createElementNS(xn,"g"));i.appendChild(g.node);const p=r(g,[0,0],f,[],d);o[d]={group:g,handle:p}});const u=()=>{const d=parseFloat(t.attr("x"))||0,f=parseFloat(t.attr("y"))||0,g=parseFloat(t.attr("width"))||0,p=parseFloat(t.attr("height"))||0,b=t.node.getAttribute("transform");b?i.setAttribute("transform",b):i.removeAttribute("transform");const y={t:[d+g/2,f],b:[d+g/2,f+p],l:[d,f+p/2],r:[d+g,f+p/2],lt:[d,f],rt:[d+g,f],lb:[d,f+p],rb:[d+g,f+p]};l.forEach(x=>{o[x]&&y[x]&&a(o[x].group,y[x])})};return u(),t._selectHandles=i,t._selectHandlesMap=o,t._updateSelectPositions=u,t._selectCleanup=()=>{i.parentNode&&i.parentNode.removeChild(i),t._selectHandles=null,t._selectHandlesMap=null,t._updateSelectPositions=null},t},n.prototype.resize=function(e){if(e===!1)return this._resizeCleanup&&(this._resizeCleanup(),this._resizeCleanup=null),this;const t=this,r=t._selectHandlesMap;if(!r)return t;const a=[],i=s=>{const o=r[s];if(!o||!o.group||!o.group.node)return;const l=o.group.node,u=d=>{if(d.button&&d.button!==0)return;d.stopPropagation();const p=(d.type==="touchstart"?d.touches[0]:d).clientX,b=t.node.ownerSVGElement;let y=null;b&&(y=b.getScreenCTM());const x=parseFloat(t.attr("x"))||0,S=parseFloat(t.attr("width"))||0,C=D=>{let A=(D.type==="touchmove"?D.touches[0]:D).clientX-p;y&&(A=A/y.a);let T=x,P=S;s==="l"?(T=x+A,P=S-A):s==="r"&&(P=S+A),P<0&&(P=0),t.attr({x:T,width:P}),t._updateSelectPositions&&t._updateSelectPositions();const R=new CustomEvent("resize",{detail:{el:t}});t.node.dispatchEvent(R)},O=()=>{qe.isBrowser()&&(document.removeEventListener("mousemove",C),document.removeEventListener("touchmove",C),document.removeEventListener("mouseup",O),document.removeEventListener("touchend",O));const D=new CustomEvent("resize",{detail:{el:t}});t.node.dispatchEvent(D)};qe.isBrowser()&&(document.addEventListener("mousemove",C),document.addEventListener("touchmove",C),document.addEventListener("mouseup",O),document.addEventListener("touchend",O))};l.addEventListener("mousedown",u),l.addEventListener("touchstart",u),a.push(()=>{l.removeEventListener("mousedown",u),l.removeEventListener("touchstart",u)})};return i("l"),i("r"),t._resizeCleanup=()=>{a.forEach(s=>s())},t}}vie(va);Mie(va);Die(va);_ie(va);function nv(){const n=ke.createElementNS(xn,"svg"),e=new Uh(n);return e.attr({xmlns:xn}),e}nv.xlink="http://www.w3.org/1999/xlink";qe.isBrowser()&&typeof window.SVG>"u"&&(window.SVG=nv);qe.isBrowser()?(typeof window.SVG>"u"&&(window.SVG=nv),typeof window.Apex>"u"&&(window.Apex={})):typeof global<"u"&&(typeof global.Apex>"u"&&(global.Apex={}),typeof global.SVG>"u"&&(global.SVG=nv));const Ej=class cE{static registerFeatures(e){for(const[t,r]of Object.entries(e))cE._featureRegistry.set(t,r)}constructor(e){this.ctx=e,this.w=e.w}initModules(){this.ctx.publicMethods=["updateOptions","updateSeries","appendData","appendSeries","isSeriesHidden","highlightSeries","toggleSeries","showSeries","hideSeries","setLocale","resetSeries","zoomX","toggleDataPointSelection","dataURI","exportToCSV","addXaxisAnnotation","addYaxisAnnotation","addPointAnnotation","clearAnnotations","removeAnnotation","paper","destroy"],this.ctx.eventList=["click","mousedown","mousemove","mouseleave","touchstart","touchmove","touchleave","mouseup","touchend","keydown","keyup"],this.ctx.animations=new Mu(this.w,this.ctx),this.ctx.axes=new Bae(this.w,this.ctx),this.ctx.core=new Jae(this.ctx.el,this.w,this.ctx),this.ctx.config=new vh({}),this.ctx.data=new xl(this.w,{resetGlobals:()=>this.ctx.core.resetGlobals(),isMultipleY:()=>this.ctx.core.isMultipleY()}),this.ctx.grid=new bj(this.w,this.ctx),this.ctx.graphics=new ve(this.w,this.ctx),this.ctx.coreUtils=new Zn(this.w),this.ctx.crosshairs=new oE(this.w),this.ctx.events=new Hae(this.w,this.ctx),this.ctx.fill=new Ia(this.w),this.ctx.localization=new zae(this.w),this.ctx.options=new fl,this.ctx.responsive=new Yae(this.w),this.ctx.series=new Wn(this.w,{toggleDataSeries:(...t)=>{var r;return(r=this.ctx.legend)==null?void 0:r.legendHelpers.toggleDataSeries(...t)},revertDefaultAxisMinMax:()=>this.ctx.updateHelpers.revertDefaultAxisMinMax(),updateSeries:(...t)=>this.ctx.updateHelpers._updateSeries(...t)}),this.ctx.theme=new jae(this.w),this.ctx.formatters=new Vh(this.w),this.ctx.titleSubtitle=new Wae(this.w),this.ctx.dimensions=new ev(this.w,this.ctx),this.ctx.updateHelpers=new eie(this.w,this.ctx);const e=new sie(this.w,this.ctx);this.w.globals.tooltip=e,Object.defineProperty(this.ctx,"tooltip",{get(){return this.w.globals.tooltip},configurable:!0}),this._initOptionalModules()}_initOptionalModules(){const e=cE._featureRegistry,t=this.w,r=this.ctx,a=e.get("exports");r.exports=a?new a(t,r):null;const i=e.get("legend");r.legend=i?new i(t,r):null;const s=e.get("morphTypeChange");r.morphTypeChange=s?new s(t,r):null;const o=e.get("toolbar");Object.defineProperty(r,"toolbar",{get(){var d;return!this._toolbar&&o&&(this._toolbar=new o(t,this)),(d=this._toolbar)!=null?d:null},configurable:!0});const l=e.get("zoomPanSelection");Object.defineProperty(r,"zoomPanSelection",{get(){var d;return!this._zoomPanSelection&&l&&(this._zoomPanSelection=new l(t,this)),(d=this._zoomPanSelection)!=null?d:null},configurable:!0});const u=e.get("keyboardNavigation");Object.defineProperty(r,"keyboardNavigation",{get(){var d;return!this._keyboardNavigation&&u&&(this._keyboardNavigation=new u(t,this)),(d=this._keyboardNavigation)!=null?d:null},configurable:!0})}};Kt(Ej,"_featureRegistry",new Map);let pp=Ej;class k2{constructor(e){this.ctx=e,this.w=e.w}clear({isUpdating:e}){e||(this.w.globals.isDestroyed=!0),this.ctx._zoomPanSelection&&this.ctx._zoomPanSelection.destroy(),this.ctx._toolbar&&this.ctx._toolbar.destroy(),this.w.globals.resizeObserver&&typeof this.w.globals.resizeObserver.disconnect=="function"&&(this.w.globals.resizeObserver.disconnect(),this.w.globals.resizeObserver=null),$M.invalidateAll(this.w),e?(this.ctx._zoomPanSelection=null,this.ctx._toolbar=null,this.ctx._keyboardNavigation=null):(this.ctx.animations=null,this.ctx.axes=null,this.ctx.annotations=null,this.ctx.core=null,this.ctx.data=null,this.ctx.grid=null,this.ctx.series=null,this.ctx.responsive=null,this.ctx.theme=null,this.ctx.formatters=null,this.ctx.titleSubtitle=null,this.ctx.legend=null,this.ctx.dimensions=null,this.ctx.options=null,this.ctx.crosshairs=null,this.ctx._zoomPanSelection=null,this.ctx.updateHelpers=null,this.ctx._toolbar=null,this.ctx.localization=null,this.ctx._keyboardNavigation=null,this.ctx.w.globals.tooltip=null),this.clearDomElements({isUpdating:e})}killSVG(e){e.each(function(){this.removeClass("*"),this.off()},!0),e.clear()}clearDomElements({isUpdating:e}){const t=this.w.dom;if(qe.isBrowser()&&t.Paper){const r=t.Paper.node;r.parentNode&&r.parentNode.parentNode&&!e&&(r.parentNode.parentNode.style.minHeight="unset");const a=t.baseEl;if(a&&this.ctx.eventList.forEach(i=>{a.removeEventListener(i,this.ctx.events.documentEvent)}),this.ctx.el!==null)for(;this.ctx.el.firstChild;)this.ctx.el.removeChild(this.ctx.el.firstChild);this.killSVG(t.Paper),t.Paper.remove()}t.elWrap=null,t.elGraphical=null,t.elLegendWrap=null,t.elLegendForeign=null,t.baseEl=null,t.elGridRect=null,t.elGridRectMask=null,t.elGridRectBarMask=null,t.elGridRectMarkerMask=null,t.elForecastMask=null,t.elNonForecastMask=null,t.elDefs=null}}const uE=new WeakMap;function Aie(n,e){if(qe.isSSR())return;let t=!1;if(n.nodeType!==Node.DOCUMENT_FRAGMENT_NODE){const a=n.getBoundingClientRect();(n.style.display==="none"||a.width===0)&&(t=!0)}const r=new ResizeObserver(a=>{t&&e.call(n,a),t=!0});n.nodeType===Node.DOCUMENT_FRAGMENT_NODE?Array.from(n.children).forEach(a=>r.observe(a)):r.observe(n),uE.set(e,r)}function Tie(n,e){if(qe.isSSR())return;const t=uE.get(e);t&&(t.disconnect(),uE.delete(e))}const Rie=`@keyframes opaque {
  0% {
    opacity: 0
  }

  to {
    opacity: 1
  }
}

@keyframes resizeanim {

  0%,
  to {
    opacity: 0
  }
}

.apexcharts-canvas {
  position: relative;
  direction: ltr !important;
  user-select: none;
  /* Focus indicator colour. Themes override below. */
  --apexcharts-focus-color: #008FFB;
}

/* Dark theme & high-contrast: brighter focus colour for sufficient contrast. */
.apexcharts-canvas .apexcharts-theme-dark,
.apexcharts-theme-dark.apexcharts-canvas {
  --apexcharts-focus-color: #FFD500;
}
.apexcharts-canvas.apexcharts-high-contrast,
.apexcharts-high-contrast.apexcharts-canvas {
  --apexcharts-focus-color: #FFFF00;
}

/* Visually-hidden aria-live status region (WCAG 4.1.3 Status Messages). */
.apexcharts-sr-status {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Respect OS-level reduced-motion preference (WCAG 2.3.3). */
@media (prefers-reduced-motion: reduce) {
  .apexcharts-canvas *,
  .apexcharts-canvas *::before,
  .apexcharts-canvas *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

.apexcharts-canvas ::-webkit-scrollbar {
  -webkit-appearance: none;
  width: 6px
}

.apexcharts-canvas ::-webkit-scrollbar-thumb {
  border-radius: 4px;
  background-color: rgba(0, 0, 0, .5);
  box-shadow: 0 0 1px rgba(255, 255, 255, .5);
  -webkit-box-shadow: 0 0 1px rgba(255, 255, 255, .5)
}

.apexcharts-inner {
  position: relative
}

.apexcharts-text tspan {
  font-family: inherit
}

rect.legend-mouseover-inactive,
.legend-mouseover-inactive rect,
.legend-mouseover-inactive path,
.legend-mouseover-inactive circle,
.legend-mouseover-inactive line,
.legend-mouseover-inactive text.apexcharts-yaxis-title-text,
.legend-mouseover-inactive text.apexcharts-yaxis-label {
  transition: .15s ease all;
  opacity: .2
}

.apexcharts-legend-text {
  padding-left: 15px;
  margin-left: -15px;
}

.apexcharts-legend-series[role="button"]:focus {
  outline: 2px solid var(--apexcharts-focus-color, #008FFB);
  outline-offset: 2px;
}

.apexcharts-legend-series[role="button"]:focus:not(:focus-visible) {
  outline: none;
}

.apexcharts-legend-series[role="button"]:focus-visible {
  outline: 2px solid var(--apexcharts-focus-color, #008FFB);
  outline-offset: 2px;
}

.apexcharts-series-collapsed {
  opacity: 0
}

.apexcharts-canvas svg:focus:not(:focus-visible) {
  outline: none;
}

/* Keyboard navigation focus indicator on SVG data elements.
   SVG elements don't support CSS outline, so we use stroke. */
.apexcharts-bar-area.apexcharts-keyboard-focused,
.apexcharts-candlestick-area.apexcharts-keyboard-focused,
.apexcharts-boxPlot-area.apexcharts-keyboard-focused,
.apexcharts-rangebar-area.apexcharts-keyboard-focused,
.apexcharts-pie-area.apexcharts-keyboard-focused,
.apexcharts-heatmap-rect.apexcharts-keyboard-focused,
.apexcharts-treemap-rect.apexcharts-keyboard-focused {
  stroke: var(--apexcharts-focus-color, #008FFB);
  stroke-width: 2;
  stroke-opacity: 1;
}

.apexcharts-tooltip {
  --apx-tt-bg: #ffffff;
  --apx-tt-border: rgba(15, 23, 42, 0.06);
  /* Layered shadow: tight inner contact + soft outer drop. The two Y
   * offsets are exposed as variables so they flip in sync with the
   * arrow when the tooltip is below the data point — see the
   * \`[data-placement="bottom"]\` rule further down. */
  --apx-tt-shadow-y-mid: 8px;
  --apx-tt-shadow-y-far: 16px;
  --apx-tt-shadow: 0 0 0 1px rgba(15, 23, 42, 0.04), 0 var(--apx-tt-shadow-y-mid) 16px -6px rgba(15, 23, 42, 0.12), 0 var(--apx-tt-shadow-y-far) 36px -12px rgba(15, 23, 42, 0.18);
  --apx-tt-arrow-bg: var(--apx-tt-bg);
  /* Two stacked drop-shadows: the first is a tight contact halo for
   * edge definition against light chart backgrounds; the second is a
   * softer directional drop that lifts the arrow off the surface.
   * \`--apx-tt-arrow-drop-y\` is the Y offset of the directional drop;
   * a per-placement rule below flips it to negative when the tooltip
   * is below the data point (arrow on top) so the shadow always
   * casts outward instead of into the tooltip body. */
  --apx-tt-arrow-drop-y: 2px;
  --apx-tt-arrow-shadow: drop-shadow(0 0 0.5px rgba(15, 23, 42, 0.2)) drop-shadow(0 var(--apx-tt-arrow-drop-y) 4px rgba(15, 23, 42, 0.2));
  --apx-tt-color: #0f172a;
  --apx-tt-color-muted: rgba(15, 23, 42, 0.55);
  border-radius: 8px;
  background: var(--apx-tt-bg);
  border: 1px solid var(--apx-tt-border);
  box-shadow: var(--apx-tt-shadow);
  color: var(--apx-tt-color);
  cursor: default;
  font-size: 13px;
  left: 0;
  top: 0;
  opacity: 0;
  pointer-events: none;
  position: absolute;
  display: flex;
  flex-direction: column;
  padding: 2px 0;
  white-space: nowrap;
  z-index: 12;
  transition: opacity .12s ease
}

/* While the tooltip is visible, smoothly animate position changes
 * between data points. Kept short (160 ms) and ease-out so it stays
 * responsive — too long would feel laggy when sweeping across many
 * points fast. The position transition is only attached after the
 * first paint (Position.applyTooltipPosition flips \`data-positioned\`
 * once the tooltip has been placed) so the *first* show doesn't slide
 * the tooltip in from the previously-stale (0,0) coordinates. */
.apexcharts-tooltip.apexcharts-active {
  opacity: 1;
  transition: opacity .12s ease
}
.apexcharts-tooltip.apexcharts-active[data-positioned="true"] {
  transition: opacity .12s ease, left .16s ease-out, top .16s ease-out
}

.apexcharts-tooltip.apexcharts-theme-light {
  /* defaults already set above; class kept for backward-compat selectors */
}

.apexcharts-tooltip.apexcharts-theme-dark {
  --apx-tt-bg: #1c1c1f;
  --apx-tt-border: rgba(255, 255, 255, 0.08);
  --apx-tt-shadow: 0 0 0 1px rgba(0, 0, 0, 0.4), 0 var(--apx-tt-shadow-y-mid) 16px -6px rgba(0, 0, 0, 0.45), 0 var(--apx-tt-shadow-y-far) 36px -12px rgba(0, 0, 0, 0.55);
  --apx-tt-arrow-shadow: drop-shadow(0 0 0.5px rgba(0, 0, 0, 0.55)) drop-shadow(0 var(--apx-tt-arrow-drop-y) 4px rgba(0, 0, 0, 0.45));
  --apx-tt-color: #f3f4f6;
  --apx-tt-color-muted: rgba(243, 244, 246, 0.55);
}

.apexcharts-tooltip * {
  font-family: inherit
}

.apexcharts-tooltip-title {
  padding: 8px 12px 4px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--apx-tt-color-muted);
  background: transparent;
  border-bottom: none;
  margin-bottom: 0
}

.apexcharts-tooltip.apexcharts-theme-light .apexcharts-tooltip-title,
.apexcharts-tooltip.apexcharts-theme-dark .apexcharts-tooltip-title {
  background: transparent;
  border-bottom: none
}

/* \`fillSeriesColor\`: each series-group already paints itself with the
 * series colour. Drop the glass body entirely (transparent bg, no
 * border, no backdrop-filter, no padding) and clip the coloured
 * series-group(s) to the tooltip's rounded corners so they fill the
 * shell edge-to-edge. Text inside the coloured group is forced to
 * white for contrast. */
.apexcharts-tooltip.apexcharts-tooltip-fill-series {
  background: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  border: none;
  padding: 0;
  overflow: hidden;
  color: #fff
}

.apexcharts-tooltip.apexcharts-tooltip-fill-series .apexcharts-tooltip-title {
  background: rgba(0, 0, 0, 0.22);
  color: #fff;
  opacity: 1;
  padding: 6px 12px
}

.apexcharts-tooltip.apexcharts-tooltip-fill-series .apexcharts-tooltip-series-group {
  color: #fff
}

/* Arrow connector — sits *entirely outside* the tooltip body. Shares
 * the body's solid fill so it reads as a single shape. \`filter:
 * drop-shadow\` traces the clipped triangle outline (a regular
 * \`box-shadow\` would be erased by the \`clip-path\`). */
.apexcharts-tooltip-arrow {
  position: absolute;
  width: 7px;
  height: 14px;
  background: var(--apx-tt-arrow-bg);
  /* The variable already contains the full \`drop-shadow(...) ...\` filter
   * chain (stacked shadows) so it's applied raw. */
  -webkit-filter: var(--apx-tt-arrow-shadow);
  filter: var(--apx-tt-arrow-shadow);
  pointer-events: none;
  top: calc(var(--apx-tt-arrow-y, 50%) - 7px)
}

.apexcharts-tooltip[data-placement="right"] .apexcharts-tooltip-arrow {
  left: -7px;
  clip-path: polygon(0 50%, 100% 0, 100% 100%)
}

.apexcharts-tooltip[data-placement="left"] .apexcharts-tooltip-arrow {
  right: -7px;
  clip-path: polygon(100% 50%, 0 0, 0 100%)
}

/* Vertical arrow variants: tooltip is above/below the data point and the
 * arrow points down/up. The base rule above uses \`--apx-tt-arrow-y\` for
 * left/right placement; for top/bottom we re-orient the rectangle and
 * use \`--apx-tt-arrow-x\` (set by applyTooltipPosition). */
.apexcharts-tooltip[data-placement="top"] .apexcharts-tooltip-arrow,
.apexcharts-tooltip[data-placement="bottom"] .apexcharts-tooltip-arrow {
  width: 14px;
  height: 7px;
  top: auto;
  left: calc(var(--apx-tt-arrow-x, 50%) - 7px)
}

.apexcharts-tooltip[data-placement="top"] .apexcharts-tooltip-arrow {
  bottom: -7px;
  clip-path: polygon(50% 100%, 0 0, 100% 0)
}

.apexcharts-tooltip[data-placement="bottom"] .apexcharts-tooltip-arrow {
  top: -7px;
  clip-path: polygon(50% 0, 0 100%, 100% 100%)
}

/* When the tooltip is flipped below the data point (arrow on top
 * pointing up), the default downward-biased shadows leave the top
 * edge of both the body *and* the arrow undefined. Flipping every
 * Y offset to negative casts the entire elevation upward so the
 * shadow falls between the tooltip and the bar above. */
.apexcharts-tooltip[data-placement="bottom"] {
  --apx-tt-shadow-y-mid: -8px;
  --apx-tt-shadow-y-far: -16px;
  --apx-tt-arrow-drop-y: -2px
}

.apexcharts-tooltip-text-goals-value,
.apexcharts-tooltip-text-y-value,
.apexcharts-tooltip-text-z-value {
  display: inline-block;
  margin-left: 5px;
  font-weight: 600
}

.apexcharts-tooltip-text-goals-label:empty,
.apexcharts-tooltip-text-goals-value:empty,
.apexcharts-tooltip-text-y-label:empty,
.apexcharts-tooltip-text-y-value:empty,
.apexcharts-tooltip-text-z-value:empty,
.apexcharts-tooltip-title:empty {
  display: none
}

.apexcharts-tooltip-text-goals-label,
.apexcharts-tooltip-text-goals-value {
  padding: 6px 0 5px
}

.apexcharts-tooltip-goals-group,
.apexcharts-tooltip-text-goals-label,
.apexcharts-tooltip-text-goals-value {
  display: flex
}

.apexcharts-tooltip-text-goals-label:not(:empty),
.apexcharts-tooltip-text-goals-value:not(:empty) {
  margin-top: -6px
}

.apexcharts-tooltip-marker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  width: 12px;
  height: 12px;
  margin-right: 6px;
  vertical-align: middle;
  color: inherit;
}

.apexcharts-tooltip-marker svg {
  width: 100%;
  height: 100%;
  display: block;
}

.apexcharts-tooltip-series-group {
  padding: 4px 12px;
  display: none;
  gap: 8px;
  text-align: left;
  justify-content: left;
  align-items: center
}

.apexcharts-tooltip-series-group.apexcharts-active .apexcharts-tooltip-marker {
  opacity: 1
}

.apexcharts-tooltip-series-group.apexcharts-active:last-child,
.apexcharts-tooltip-series-group:last-child {
  padding-bottom: 8px
}

.apexcharts-tooltip-y-group {
  padding: 6px 0 5px
}

.apexcharts-custom-tooltip,
.apexcharts-tooltip-box {
  padding: 4px 8px
}

.apexcharts-tooltip-boxPlot {
  display: flex;
  flex-direction: column-reverse
}

.apexcharts-tooltip-box>div {
  margin: 4px 0
}

.apexcharts-tooltip-box span.value {
  font-weight: 700
}

.apexcharts-tooltip-rangebar {
  padding: 5px 8px
}

.apexcharts-tooltip-rangebar .category {
  font-weight: 600;
  color: #777
}

.apexcharts-tooltip-rangebar .series-name {
  font-weight: 700;
  display: block;
  margin-bottom: 5px
}

/* X/Y axis tooltips — small popovers that label the crosshair on the
 * axes. Restyled to match the modern data-tooltip palette: solid white
 * body with a subtle border + soft drop-shadow, smaller font, rounded
 * corners. The arrows still use the CSS border-triangle technique
 * (cheap, crisp at small sizes); their colours flow from CSS variables
 * so light/dark themes only need one override per axis. */
.apexcharts-xaxistooltip,
.apexcharts-yaxistooltip {
  --apx-axt-bg: #ffffff;
  --apx-axt-border: rgba(15, 23, 42, 0.08);
  --apx-axt-color: #0f172a;
  --apx-axt-shadow: 0 4px 12px -4px rgba(15, 23, 42, 0.18), 0 1px 3px -1px rgba(15, 23, 42, 0.12);
  opacity: 0;
  pointer-events: none;
  color: var(--apx-axt-color);
  font-size: 12px;
  font-weight: 500;
  text-align: center;
  border-radius: 6px;
  position: absolute;
  z-index: 10;
  background: var(--apx-axt-bg);
  border: 1px solid var(--apx-axt-border);
  box-shadow: var(--apx-axt-shadow)
}

.apexcharts-xaxistooltip.apexcharts-theme-dark,
.apexcharts-yaxistooltip.apexcharts-theme-dark {
  --apx-axt-bg: #1c1c1f;
  --apx-axt-border: rgba(255, 255, 255, 0.1);
  --apx-axt-color: #f3f4f6;
  --apx-axt-shadow: 0 4px 12px -4px rgba(0, 0, 0, 0.55), 0 1px 3px -1px rgba(0, 0, 0, 0.45)
}

.apexcharts-xaxistooltip {
  padding: 4px 8px;
  transition: .15s ease all
}

.apexcharts-xaxistooltip:after,
.apexcharts-xaxistooltip:before {
  left: 50%;
  border: solid transparent;
  content: " ";
  height: 0;
  width: 0;
  position: absolute;
  pointer-events: none
}

/* :before paints the 1px border outline of the triangle (slightly larger
 * than :after); :after sits inside and paints the fill — leaves a 1px
 * ring of :before visible at the edges. */
.apexcharts-xaxistooltip:after {
  border-color: transparent;
  border-width: 5px;
  margin-left: -5px
}

.apexcharts-xaxistooltip:before {
  border-color: transparent;
  border-width: 6px;
  margin-left: -6px
}

.apexcharts-xaxistooltip-bottom:after,
.apexcharts-xaxistooltip-bottom:before {
  bottom: 100%
}

.apexcharts-xaxistooltip-top:after,
.apexcharts-xaxistooltip-top:before {
  top: 100%
}

.apexcharts-xaxistooltip-bottom:after {
  border-bottom-color: var(--apx-axt-bg)
}

.apexcharts-xaxistooltip-bottom:before {
  border-bottom-color: var(--apx-axt-border)
}

.apexcharts-xaxistooltip-top:after {
  border-top-color: var(--apx-axt-bg)
}

.apexcharts-xaxistooltip-top:before {
  border-top-color: var(--apx-axt-border)
}

.apexcharts-xaxistooltip.apexcharts-active {
  opacity: 1;
  transition: .15s ease all
}

.apexcharts-yaxistooltip {
  padding: 3px 8px
}

.apexcharts-yaxistooltip:after,
.apexcharts-yaxistooltip:before {
  top: 50%;
  border: solid transparent;
  content: " ";
  height: 0;
  width: 0;
  position: absolute;
  pointer-events: none
}

.apexcharts-yaxistooltip:after {
  border-color: transparent;
  border-width: 5px;
  margin-top: -5px
}

.apexcharts-yaxistooltip:before {
  border-color: transparent;
  border-width: 6px;
  margin-top: -6px
}

.apexcharts-yaxistooltip-left:after,
.apexcharts-yaxistooltip-left:before {
  left: 100%
}

.apexcharts-yaxistooltip-right:after,
.apexcharts-yaxistooltip-right:before {
  right: 100%
}

.apexcharts-yaxistooltip-left:after {
  border-left-color: var(--apx-axt-bg)
}

.apexcharts-yaxistooltip-left:before {
  border-left-color: var(--apx-axt-border)
}

.apexcharts-yaxistooltip-right:after {
  border-right-color: var(--apx-axt-bg)
}

.apexcharts-yaxistooltip-right:before {
  border-right-color: var(--apx-axt-border)
}

.apexcharts-yaxistooltip.apexcharts-active {
  opacity: 1
}

.apexcharts-yaxistooltip-hidden {
  display: none
}

.apexcharts-xcrosshairs,
.apexcharts-ycrosshairs {
  pointer-events: none;
  opacity: 0;
  transition: .15s ease all
}

.apexcharts-xcrosshairs.apexcharts-active,
.apexcharts-ycrosshairs.apexcharts-active {
  opacity: 1;
  transition: .15s ease all
}

.apexcharts-ycrosshairs-hidden {
  opacity: 0
}

.apexcharts-selection-rect {
  cursor: move
}

.svg_select_shape {
  stroke-width: 1;
  stroke-dasharray: 10 10;
  stroke: black;
  stroke-opacity: 0.1;
  pointer-events: none;
  fill: none;
}

.svg_select_handle {
  stroke-width: 3;
  stroke: black;
  fill: none;
}

.svg_select_handle_r {
  cursor: e-resize;
}

.svg_select_handle_l {
  cursor: w-resize;
}

.apexcharts-svg.apexcharts-zoomable.hovering-zoom {
  cursor: crosshair
}

.apexcharts-svg.apexcharts-zoomable.hovering-pan {
  cursor: move
}

.apexcharts-menu-icon,
.apexcharts-pan-icon,
.apexcharts-reset-icon,
.apexcharts-selection-icon,
.apexcharts-toolbar-custom-icon,
.apexcharts-zoom-icon,
.apexcharts-zoomin-icon,
.apexcharts-zoomout-icon {
  cursor: pointer;
  /* WCAG 2.5.8 Target Size (Minimum): 24×24 CSS px hit target. */
  width: 26px;
  height: 24px;
  line-height: 24px;
  color: #6e8192;
  text-align: center;
  /* Reset native <button> chrome — these are styled via SVG icons. */
  padding: 0;
  margin: 0;
  background: transparent;
  border: 0;
  border-radius: 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background-color .12s ease, color .12s ease;
}

.apexcharts-menu-icon svg,
.apexcharts-pan-icon svg,
.apexcharts-reset-icon svg,
.apexcharts-selection-icon svg,
.apexcharts-zoom-icon svg,
.apexcharts-zoomin-icon svg,
.apexcharts-zoomout-icon svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round
}

.apexcharts-theme-dark .apexcharts-menu-icon,
.apexcharts-theme-dark .apexcharts-pan-icon,
.apexcharts-theme-dark .apexcharts-reset-icon,
.apexcharts-theme-dark .apexcharts-selection-icon,
.apexcharts-theme-dark .apexcharts-toolbar-custom-icon,
.apexcharts-theme-dark .apexcharts-zoom-icon,
.apexcharts-theme-dark .apexcharts-zoomin-icon,
.apexcharts-theme-dark .apexcharts-zoomout-icon {
  color: #d4d6dc
}

.apexcharts-canvas .apexcharts-pan-icon.apexcharts-selected,
.apexcharts-canvas .apexcharts-reset-zoom-icon.apexcharts-selected,
.apexcharts-canvas .apexcharts-selection-icon.apexcharts-selected,
.apexcharts-canvas .apexcharts-zoom-icon.apexcharts-selected {
  background: rgba(0, 143, 251, 0.12);
  color: #008ffb
}

.apexcharts-theme-light .apexcharts-menu-icon:hover,
.apexcharts-theme-light .apexcharts-pan-icon:not(.apexcharts-selected):hover,
.apexcharts-theme-light .apexcharts-reset-icon:hover,
.apexcharts-theme-light .apexcharts-selection-icon:not(.apexcharts-selected):hover,
.apexcharts-theme-light .apexcharts-zoom-icon:not(.apexcharts-selected):hover,
.apexcharts-theme-light .apexcharts-zoomin-icon:hover,
.apexcharts-theme-light .apexcharts-zoomout-icon:hover {
  background: rgba(15, 23, 42, 0.06);
  color: #1f2937
}

.apexcharts-theme-dark .apexcharts-menu-icon:hover,
.apexcharts-theme-dark .apexcharts-pan-icon:not(.apexcharts-selected):hover,
.apexcharts-theme-dark .apexcharts-reset-icon:hover,
.apexcharts-theme-dark .apexcharts-selection-icon:not(.apexcharts-selected):hover,
.apexcharts-theme-dark .apexcharts-zoom-icon:not(.apexcharts-selected):hover,
.apexcharts-theme-dark .apexcharts-zoomin-icon:hover,
.apexcharts-theme-dark .apexcharts-zoomout-icon:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff
}

.apexcharts-menu-icon,
.apexcharts-selection-icon {
  position: relative
}

.apexcharts-toolbar {
  position: absolute;
  z-index: 11;
  display: inline-flex;
  align-items: center;
  gap: 1px;
  padding: 3px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.apexcharts-theme-dark .apexcharts-toolbar {
  background: rgba(28, 28, 31, 0.82);
}

.apexcharts-menu {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  position: absolute;
  top: calc(100% + 4px);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 8px;
  padding: 4px;
  right: 0;
  opacity: 0;
  min-width: 120px;
  transition: opacity .15s ease, transform .15s ease;
  transform: translateY(-2px);
  pointer-events: none;
  box-shadow: 0 4px 16px -4px rgba(15, 23, 42, 0.12), 0 2px 4px -1px rgba(15, 23, 42, 0.06)
}

.apexcharts-menu.apexcharts-menu-open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: all
}

.apexcharts-menu-item {
  padding: 6px 9px;
  font-size: 12px;
  border-radius: 5px;
  cursor: pointer
}

.apexcharts-theme-light .apexcharts-menu-item:hover {
  background: rgba(15, 23, 42, 0.06)
}

.apexcharts-theme-dark .apexcharts-menu {
  background: rgba(28, 28, 31, 0.92);
  border-color: rgba(255, 255, 255, 0.08);
  color: #f3f4f6;
  box-shadow: 0 4px 16px -4px rgba(0, 0, 0, 0.5), 0 2px 4px -1px rgba(0, 0, 0, 0.4)
}

.apexcharts-theme-dark .apexcharts-menu-item:hover {
  background: rgba(255, 255, 255, 0.08)
}

@media screen and (min-width:768px) {
  .apexcharts-canvas:hover .apexcharts-toolbar {
    opacity: 1
  }
}

/* Toolbar keyboard accessibility: show toolbar when any button inside it is focused */
.apexcharts-toolbar:focus-within {
  opacity: 1
}

/* Focus indicator for toolbar icon buttons */
.apexcharts-menu-icon:focus-visible,
.apexcharts-pan-icon:focus-visible,
.apexcharts-reset-icon:focus-visible,
.apexcharts-selection-icon:focus-visible,
.apexcharts-toolbar-custom-icon:focus-visible,
.apexcharts-zoom-icon:focus-visible,
.apexcharts-zoomin-icon:focus-visible,
.apexcharts-zoomout-icon:focus-visible {
  outline: 2px solid var(--apexcharts-focus-color, #008FFB);
  outline-offset: 1px;
  border-radius: 5px
}

/* Focus indicator for hamburger menu items */
.apexcharts-menu-item:focus-visible {
  outline: 2px solid var(--apexcharts-focus-color, #008FFB);
  outline-offset: -2px;
  background: #eee
}

.apexcharts-canvas .apexcharts-element-hidden,
.apexcharts-datalabel.apexcharts-element-hidden,
.apexcharts-hide .apexcharts-series-points {
  opacity: 0;
}

.apexcharts-hidden-element-shown {
  opacity: 1;
  transition: 0.25s ease all;
}

.apexcharts-datalabel,
.apexcharts-datalabel-label,
.apexcharts-datalabel-value,
.apexcharts-datalabels,
.apexcharts-pie-label {
  cursor: default;
  pointer-events: none
}

.apexcharts-pie-label-delay {
  opacity: 0;
  animation-name: opaque;
  animation-duration: .3s;
  animation-fill-mode: forwards;
  animation-timing-function: ease
}

.apexcharts-radialbar-label {
  cursor: pointer;
}

.apexcharts-annotation-rect,
.apexcharts-area-series .apexcharts-area,
.apexcharts-gridline,
.apexcharts-line,
.apexcharts-point-annotation-label,
.apexcharts-radar-series path:not(.apexcharts-marker),
.apexcharts-radar-series polygon,
.apexcharts-toolbar svg,
.apexcharts-tooltip .apexcharts-marker,
.apexcharts-xaxis-annotation-label,
.apexcharts-yaxis-annotation-label,
.apexcharts-zoom-rect,
.no-pointer-events {
  pointer-events: none
}

.apexcharts-tooltip-active .apexcharts-marker {
  transition: .15s ease all
}

.apexcharts-radar-series .apexcharts-yaxis {
  pointer-events: none;
}

.resize-triggers {
  animation: 1ms resizeanim;
  visibility: hidden;
  opacity: 0;
  height: 100%;
  width: 100%;
  overflow: hidden
}

.contract-trigger:before,
.resize-triggers,
.resize-triggers>div {
  content: " ";
  display: block;
  position: absolute;
  top: 0;
  left: 0
}

.resize-triggers>div {
  height: 100%;
  width: 100%;
  background: #eee;
  overflow: auto
}

.contract-trigger:before {
  overflow: hidden;
  width: 200%;
  height: 200%
}

.apexcharts-bar-goals-markers {
  pointer-events: none
}

.apexcharts-bar-shadows {
  pointer-events: none
}

.apexcharts-rangebar-goals-markers {
  pointer-events: none
}

.apexcharts-disable-transitions * {
  transition: none !important;
}`;class Zi{constructor(e,t){Kt(this,"core"),Kt(this,"responsive"),Kt(this,"axes"),Kt(this,"grid"),Kt(this,"graphics"),Kt(this,"coreUtils"),Kt(this,"crosshairs"),Kt(this,"events"),Kt(this,"fill"),Kt(this,"localization"),Kt(this,"options"),Kt(this,"series"),Kt(this,"theme"),Kt(this,"formatters"),Kt(this,"titleSubtitle"),Kt(this,"dimensions"),Kt(this,"updateHelpers"),Kt(this,"tooltip"),Kt(this,"data"),Kt(this,"animations"),Kt(this,"exports"),Kt(this,"legend"),Kt(this,"toolbar"),Kt(this,"zoomPanSelection"),Kt(this,"keyboardNavigation"),Kt(this,"annotations"),Kt(this,"morphTypeChange"),Kt(this,"timeScale"),Kt(this,"_keyboardNavigation"),Kt(this,"windowResizeHandler"),Kt(this,"parentResizeHandler"),Kt(this,"publicMethods",[]),Kt(this,"eventList",[]),Kt(this,"config"),this.opts=t,this.ctx=this,this.w=new Iae(t).init(),this.el=e,this.w.globals.cuid=ee.randomId(),this.w.globals.chartID=this.w.config.chart.id?ee.escapeString(this.w.config.chart.id):this.w.globals.cuid,Fae(this.w),new pp(this).initModules(),this.lastUpdateOptions=null,this.create=this.create.bind(this),qe.isBrowser()&&(this.windowResizeHandler=this._windowResizeHandler.bind(this),this.parentResizeHandler=this._parentResizeCallback.bind(this))}render(){var e,t;return(t=(e=this.w)==null?void 0:e.config)!=null&&t.chart?new Promise((r,a)=>{var i;if(ee.elementExists(this.el)){typeof Apex._chartInstances>"u"&&(Apex._chartInstances=[]),this.w.config.chart.id&&Apex._chartInstances.push({id:this.w.globals.chartID,group:this.w.config.chart.group,chart:this}),this.setLocale(this.w.config.chart.defaultLocale);const s=this.w.config.chart.events.beforeMount;if(typeof s=="function"&&s(this,this.w),this.events.fireEvent("beforeMount",[this,this.w]),qe.isBrowser()){window.addEventListener("resize",this.windowResizeHandler),Aie(this.el.parentNode,this.parentResizeHandler);const l=this.el.getRootNode&&this.el.getRootNode(),u=ee.is("ShadowRoot",l),d=this.el.ownerDocument;let f=u?l.getElementById("apexcharts-css"):d.getElementById("apexcharts-css");if(!f){f=ke.createElementNS("http://www.w3.org/1999/xhtml","style"),f.id="apexcharts-css",f.textContent=Rie;const g=((i=this.opts.chart)==null?void 0:i.nonce)||this.w.config.chart.nonce;g&&f.setAttribute("nonce",g),u?l.prepend(f):this.w.config.chart.injectStyleSheet!==!1&&d.head.appendChild(f)}}const o=this.create(this.w.config.series,{});if(!o)return r(this);this.mount(o).then(()=>{typeof this.w.config.chart.events.mounted=="function"&&this.w.config.chart.events.mounted(this,this.w),this.events.fireEvent("mounted",[this,this.w]),r(o)}).catch(l=>{var u,d;const f=l instanceof Error?l:new Error(String(l)),g=f;g.chartId=(d=(u=this.w)==null?void 0:u.globals)==null?void 0:d.chartID,g.el=this.el,a(f)})}else a(new Error("Element not found"))}):Promise.reject(new Error("ApexCharts: chart configuration is missing or invalid. Ensure the options object includes a `chart` property."))}create(e,t){var r,a,i;const s=this.w;this.core||new pp(this).initModules();const o=this.w.globals;if(o.noData=!1,o.animationEnded=!1,!ee.elementExists(this.el)||(this.responsive.checkResponsiveConfig(t),s.config.xaxis.convertedCatToNumeric&&new mh(s.config).convertCatToNumericXaxis(s.config,this.ctx),this.core.setupElements(),s.config.chart.type==="treemap"&&(s.config.grid.show=!1,s.config.yaxis[0].show=!1),o.svgWidth===0))return o.animationEnded=!0,null;let l=e;e.forEach((O,D)=>{O.hidden&&(l=this.legend.legendHelpers.getSeriesAfterCollapsing({realIndex:D}))});const u=Zn.checkComboSeries(l,s.config.chart.type);o.comboCharts=u.comboCharts,o.comboBarCount=u.comboBarCount;const d=l.every(O=>O.data&&O.data.length===0);(l.length===0||d&&o.collapsedSeries.length<1)&&this.series.handleNoData(),qe.isBrowser()&&this.events.setupEventHandlers();const f=this.data.parseData(l);this._writeParsedSeriesData(f.seriesData),this._writeParsedRangeData(f.rangeData),this._writeParsedCandleData(f.candleData),this._writeParsedLabelData(f.labelData),this._writeParsedAxisFlags(f.axisFlags),this.theme.init(),new Du(this.w,this).setGlobalMarkerSize(),this.formatters.setLabelFormatters(),this.titleSubtitle.draw(),(!o.noData||o.collapsedSeries.length===s.seriesData.series.length||s.config.legend.showForSingleSeries)&&((r=this.legend)==null||r.init()),this.series.hasAllSeriesEqualX(),o.axisCharts&&(this.core.coreCalculations(),s.config.xaxis.type!=="category"&&this.formatters.setLabelFormatters(),this.ctx.toolbar&&(this.ctx.toolbar.minX=s.globals.minX,this.ctx.toolbar.maxX=s.globals.maxX)),this.formatters.heatmapLabelFormatters(),new Zn(this.w).getLargestMarkerSize();const b=this.dimensions.plotCoords();this._writeLayoutCoords(b.layout);const y=this.core.xySettings();this.grid.createGridMask();const x=this.core.plotChartType(l,y),S=new Ol(this.w,this);S.bringForward(),s.config.dataLabels.background.enabled&&S.dataLabelsBackground(),this.core.shiftGraphPosition(),(i=(a=this.legend)==null?void 0:a.heatmapGradientLegend)==null||i.repositionToPlot(),s.globals.dataPoints>50&&s.dom.elWrap.classList.add("apexcharts-disable-transitions");const C={plot:{left:s.layout.translateX,top:s.layout.translateY,width:s.layout.gridWidth,height:s.layout.gridHeight}};return{elGraph:x,xyRatios:y,dimensions:C}}mount(e=null){const t=this,r=t.w;return new Promise((a,i)=>{var s,o,l,u,d,f,g,p,b;if(t.el===null)return i(new Error("Not enough data to display or target element not found"));(e===null||r.globals.allSeriesCollapsed)&&t.series.handleNoData(),t.grid=new bj(t.w,t);const y=t.grid.drawGrid(),x=pp._featureRegistry.get("annotations");if(t.annotations=x?new x(t.w,{theme:t.theme,timeScale:t.timeScale}):null,(s=t.annotations)==null||s.drawImageAnnos(),(o=t.annotations)==null||o.drawTextAnnos(),r.config.grid.position==="back"&&(y&&r.dom.elGraphical.add(y.el),(l=y?.elGridBorders)!=null&&l.node&&r.dom.elGraphical.add(y.elGridBorders)),Array.isArray(e.elGraph))for(let O=0;O<e.elGraph.length;O++)r.dom.elGraphical.add(e.elGraph[O]);else r.dom.elGraphical.add(e.elGraph);r.config.grid.position==="front"&&(y&&r.dom.elGraphical.add(y.el),(u=y?.elGridBorders)!=null&&u.node&&r.dom.elGraphical.add(y.elGridBorders)),r.config.xaxis.crosshairs.position==="front"&&t.crosshairs.drawXCrosshairs(),r.config.yaxis[0].crosshairs.position==="front"&&t.crosshairs.drawYCrosshairs(),r.config.chart.type!=="treemap"&&t.axes.drawAxis(r.config.chart.type,y);const S=new bh(this.w,this.ctx,y),C=new FM(this.w,{theme:this.theme,timeScale:this.timeScale},y);if(y!==null&&(S.xAxisLabelCorrections(),C.setYAxisTextAlignments(),r.config.yaxis.map((O,D)=>{r.globals.ignoreYAxisIndexes.indexOf(D)===-1&&C.yAxisTitleRotate(D,O.opposite)})),(d=t.annotations)==null||d.drawAxesAnnotations(),!r.globals.noData){if(qe.isBrowser()&&r.config.tooltip.enabled&&!r.globals.noData&&((f=t.w.globals.tooltip)==null||f.drawTooltip(e.xyRatios)),r.config.chart.accessibility.enabled&&r.config.chart.accessibility.keyboard.enabled&&r.config.chart.accessibility.keyboard.navigation.enabled&&((g=t.keyboardNavigation)==null||g.init()),qe.isBrowser()&&r.globals.axisCharts&&(r.axisFlags.isXNumeric||r.config.xaxis.convertedCatToNumeric||r.axisFlags.isRangeBar))(r.config.chart.zoom.enabled||r.config.chart.selection&&r.config.chart.selection.enabled||r.config.chart.pan&&r.config.chart.pan.enabled)&&((p=t.zoomPanSelection)==null||p.init({xyRatios:e.xyRatios}));else{const O=r.config.chart.toolbar.tools;["zoom","zoomin","zoomout","selection","pan","reset"].forEach(M=>{O[M]=!1})}r.config.chart.toolbar.show&&!r.globals.allSeriesCollapsed&&((b=t.toolbar)==null||b.createToolbar())}r.globals.memory.methodsToExec.length>0&&r.globals.memory.methodsToExec.forEach(O=>{O.method(O.params,!1,O.context)}),!r.globals.axisCharts&&!r.globals.noData&&t.core.resizeNonAxisCharts(),a(t)})}destroy(){var e;qe.isBrowser()&&(window.removeEventListener("resize",this.windowResizeHandler),Tie(this.el.parentNode,this.parentResizeHandler),clearTimeout((e=this.w.globals.resizeTimer)!=null?e:void 0));const t=this.w.config.chart.id;t&&Array.isArray(Apex._chartInstances)&&Apex._chartInstances.forEach((r,a)=>{r.id===ee.escapeString(t)&&Apex._chartInstances.splice(a,1)}),this._keyboardNavigation&&this._keyboardNavigation.destroy(),new k2(this.ctx).clear({isUpdating:!1})}updateOptions(e,t=!1,r=!0,a=!0,i=!0){const s=this.w;if(s.interact.selection=void 0,this.lastUpdateOptions){if(ee.shallowEqual(this.lastUpdateOptions,e))return Promise.resolve(this);if(e.series&&this.lastUpdateOptions.series&&JSON.stringify(this.lastUpdateOptions.series)===JSON.stringify(e.series)){const o=ct({},e),l=ct({},this.lastUpdateOptions);if(delete o.series,delete l.series,ee.shallowEqual(o,l))return Promise.resolve(this)}}return e.series&&(this.data.resetParsingFlags(),this.series.resetSeries(!1,!0,!1),e.series.length&&e.series[0].data&&(e.series=e.series.map((o,l)=>this.updateHelpers._extendSeries(o,l))),this.updateHelpers.revertDefaultAxisMinMax()),e.xaxis&&(e=this.updateHelpers.forceXAxisUpdate(e)),e.yaxis&&(e=this.updateHelpers.forceYAxisUpdate(e)),s.globals.collapsedSeriesIndices.length>0&&this.series.clearPreviousPaths(),e.theme&&(e=this.theme.updateThemeOptions(e)),this.updateHelpers._updateOptions(e,t,r,a,i)}updateSeries(e=[],t=!0,r=!0){return this.data.resetParsingFlags(),this.series.resetSeries(!1),this.updateHelpers.revertDefaultAxisMinMax(),this.updateHelpers._updateSeries(e,t,r)}appendSeries(e,t=!0,r=!0){this.data.resetParsingFlags();const a=this.w.config.series.slice();return a.push(e),this.series.resetSeries(!1),this.updateHelpers.revertDefaultAxisMinMax(),this.updateHelpers._updateSeries(a,t,r)}appendData(e,t=!0){const r=this;r.data.resetParsingFlags(),r.w.globals.dataChanged=!0,r.series.getPreviousPaths();const a=r.w.config.series.slice();for(let i=0;i<a.length;i++)if(e[i]!==null&&typeof e[i]<"u"){const s=e[i],o=a[i];for(let l=0;l<s.data.length;l++)o.data.push(s.data[l])}return r.w.config.series=a,t&&(r.w.globals.initialSeries=ee.clone(r.w.config.series)),this.update()}update(e){return new Promise((t,r)=>{if(this.lastUpdateOptions&&JSON.stringify(this.lastUpdateOptions)===JSON.stringify(e))return t(this);this.lastUpdateOptions=ee.clone(e),new k2(this.ctx).clear({isUpdating:!0});const a=this.create(this.w.config.series,e??{});if(!a)return t(this);this.mount(a).then(()=>{var i;(i=this.morphTypeChange)==null||i.applyChromeFade(),typeof this.w.config.chart.events.updated=="function"&&this.w.config.chart.events.updated(this,this.w),this.events.fireEvent("updated",[this,this.w]),this.w.globals.isDirty=!0,t(this)}).catch(i=>{r(i)})})}fastUpdate(e){return new Promise((t,r)=>{var a;try{const i=this.w,s=i.globals;s.shouldAnimate=e,s.dataChanged=!0,s.animationEnded=!1,$M.invalidateSelectors(i);const o=i.globals;o.maxY=-Number.MAX_VALUE,o.minY=Number.MIN_VALUE,o.minYArr=[],o.maxYArr=[],o.maxX=-Number.MAX_VALUE,o.minX=Number.MAX_VALUE,o.initialMaxX=-Number.MAX_VALUE,o.initialMinX=Number.MAX_VALUE,o.yAxisScale=[],o.xAxisScale=null,o.xAxisTicksPositions=[],o.xRange=0,o.yRange=[],o.zRange=0,o.xTickAmount=0,o.multiAxisTickAmount=0,o.pointsArray=[],o.dataLabelsRects=[],o.lastDrawnDataLabelsIndexes=[],o.textRectsCache=new Map,o.domCache=new Map,o.cachedSelectors={},o.disableZoomIn=!1,o.disableZoomOut=!1,s.axisCharts&&(this.core.coreCalculations(),i.config.xaxis.type!=="category"&&this.formatters.setLabelFormatters());const l=this.core.xySettings(),u=i.dom.elGraphical.node;u.querySelectorAll(".apexcharts-series, .apexcharts-datalabels, .apexcharts-datalabels-background").forEach(y=>{var x;return(x=y.parentNode)==null?void 0:x.removeChild(y)});const f=this.core.plotChartType(i.config.series,l),g=u.querySelector(".apexcharts-grid"),p=Array.isArray(f)?f:[f];g&&i.config.grid.position==="front"?p.forEach(y=>{const x=y&&y.node?y.node:y;x&&u.insertBefore(x,g)}):p.forEach(y=>{i.dom.elGraphical.add(y)});const b=new Ol(i,this);b.bringForward(),i.config.dataLabels.background.enabled&&b.dataLabelsBackground(),qe.isBrowser()&&i.config.tooltip.enabled&&!s.noData&&((a=i.globals.tooltip)==null||a.drawTooltip(l)),typeof i.config.chart.events.updated=="function"&&i.config.chart.events.updated(this,i),this.events.fireEvent("updated",[this,i]),s.isDirty=!0,t(this)}catch(i){r(i)}})}getSyncedCharts(){const e=this.getGroupedCharts();let t=[this];return e.length&&(t=[],e.forEach(r=>{t.push(r)})),t}getGroupedCharts(){return Apex._chartInstances.filter(e=>{if(e.group)return!0}).map(e=>this.w.config.chart.group===e.group?e.chart:this)}static getChartByID(e){const t=ee.escapeString(e);if(!Apex._chartInstances)return;const r=Apex._chartInstances.filter(a=>a.id===t)[0];return r&&r.chart}static initOnLoad(){var e;const t=document.querySelectorAll("[data-apexcharts]");for(let r=0;r<t.length;r++){const a=t[r],i=JSON.parse((e=t[r].getAttribute("data-options"))!=null?e:"");new Zi(a,i).render()}}static exec(e,t,...r){const a=this.getChartByID(e);if(!a)return;a.w.globals.isExecCalled=!0;let i=null;return a.publicMethods.indexOf(t)!==-1&&(i=a[t](...r)),i}static merge(e,t){return ee.extend(e,t)}static getThemePalettes(){return sE()}static use(e){Kae(e)}static registerFeatures(e){pp.registerFeatures(e)}toggleSeries(e){return this.series.toggleSeries(e)}highlightSeriesOnLegendHover(e,t){return this.series.toggleSeriesOnHover(e,t)}showSeries(e){this.series.showSeries(e)}hideSeries(e){this.series.hideSeries(e)}highlightSeries(e){this.series.highlightSeries(e)}isSeriesHidden(e){return this.series.isSeriesHidden(e)}resetSeries(e=!0,t=!0){this.series.resetSeries(e,t)}addEventListener(e,t){this.events.addEventListener(e,t)}removeEventListener(e,t){this.events.removeEventListener(e,t)}addXaxisAnnotation(e,t=!0,r=void 0){var a;let i=this;r&&(i=r),(a=i.annotations)==null||a.addXaxisAnnotationExternal(e,t,i)}addYaxisAnnotation(e,t=!0,r=void 0){var a;let i=this;r&&(i=r),(a=i.annotations)==null||a.addYaxisAnnotationExternal(e,t,i)}addPointAnnotation(e,t=!0,r=void 0){var a;let i=this;r&&(i=r),(a=i.annotations)==null||a.addPointAnnotationExternal(e,t,i)}clearAnnotations(e=void 0){var t;let r=this;e&&(r=e),(t=r.annotations)==null||t.clearAnnotations(r)}removeAnnotation(e,t=void 0){var r;let a=this;t&&(a=t),(r=a.annotations)==null||r.removeAnnotation(a,e)}getChartArea(){return this.w.dom.baseEl.querySelector(".apexcharts-inner")}getSeriesTotalXRange(e,t){return this.coreUtils.getSeriesTotalsXRange(e,t)}getHighestValueInSeries(e=0){return new iE(this.w).getMinYMaxY(e).highestY}getLowestValueInSeries(e=0){return new iE(this.w).getMinYMaxY(e).lowestY}getSeriesTotal(){return this.w.globals.seriesTotals}getState(){const e=this.w,t=e.globals;return{series:e.seriesData.series,seriesNames:e.seriesData.seriesNames,colors:t.colors,labels:e.labelData.labels,seriesTotals:t.seriesTotals,seriesPercent:t.seriesPercent,seriesXvalues:t.seriesXvalues,seriesYvalues:t.seriesYvalues,minX:t.minX,maxX:t.maxX,minY:t.minY,maxY:t.maxY,minYArr:t.minYArr,maxYArr:t.maxYArr,minXDiff:t.minXDiff,dataPoints:t.dataPoints,xAxisScale:t.xAxisScale,yAxisScale:t.yAxisScale,xTickAmount:t.xTickAmount,isXNumeric:e.axisFlags.isXNumeric,seriesYAxisMap:t.seriesYAxisMap,seriesYAxisReverseMap:t.seriesYAxisReverseMap,svgWidth:t.svgWidth,svgHeight:t.svgHeight,gridWidth:e.layout.gridWidth,gridHeight:e.layout.gridHeight,selectedDataPoints:e.interact.selectedDataPoints,collapsedSeriesIndices:t.collapsedSeriesIndices,zoomed:e.interact.zoomed,seriesX:e.seriesData.seriesX,seriesZ:e.seriesData.seriesZ,seriesCandleO:e.candleData.seriesCandleO,seriesCandleH:e.candleData.seriesCandleH,seriesCandleM:e.candleData.seriesCandleM,seriesCandleL:e.candleData.seriesCandleL,seriesCandleC:e.candleData.seriesCandleC,seriesRangeStart:e.rangeData.seriesRangeStart,seriesRangeEnd:e.rangeData.seriesRangeEnd,seriesGoals:e.seriesData.seriesGoals}}toggleDataPointSelection(e,t){return this.updateHelpers.toggleDataPointSelection(e,t)}zoomX(e,t){var r;(r=this.ctx.toolbar)==null||r.zoomUpdateOptions(e,t)}setLocale(e){this.localization.setCurrentLocaleValues(e)}dataURI(e){if(!this.ctx.exports)throw new Error("apexcharts: Exports feature is not registered. Import apexcharts/features/exports.");return this.ctx.exports.dataURI(e)}getSvgString(e){if(!this.ctx.exports)throw new Error("apexcharts: Exports feature is not registered. Import apexcharts/features/exports.");return this.ctx.exports.getSvgString(e)}exportToCSV(e={}){if(!this.ctx.exports)throw new Error("apexcharts: Exports feature is not registered. Import apexcharts/features/exports.");return this.ctx.exports.exportToCSV(e)}paper(){return this.w.dom.Paper}_writeParsedSeriesData(e){Object.assign(this.w.seriesData,e)}_writeParsedRangeData(e){Object.assign(this.w.rangeData,e)}_writeParsedCandleData(e){Object.assign(this.w.candleData,e)}_writeParsedLabelData(e){Object.assign(this.w.labelData,e)}_writeParsedAxisFlags(e){Object.assign(this.w.axisFlags,e)}_writeLayoutCoords(e){Object.assign(this.w.layout,e)}_parentResizeCallback(){this.w.globals.animationEnded&&this.w.config.chart.redrawOnParentResize&&this._windowResize()}_windowResize(){this.w.globals.resizeTimer=window.setTimeout(()=>{this.w.globals.resized=!0,this.w.globals.dataChanged=!1,this.ctx.update()},150)}_windowResizeHandler(){var e;clearTimeout((e=this.w.globals.resizeTimer)!=null?e:void 0);let{redrawOnWindowResize:t}=this.w.config.chart;typeof t=="function"&&(t=t()),t&&this._windowResize()}}const Mj=`.apexcharts-flip-y {
  transform: scaleY(-1) translateY(-100%);
  transform-origin: top;
  transform-box: fill-box;
}
.apexcharts-flip-x {
  transform: scaleX(-1);
  transform-origin: center;
  transform-box: fill-box;
}
.apexcharts-legend {
  display: flex;
  overflow: auto;
  padding: 0 10px;
}
.apexcharts-legend.apexcharts-legend-group-horizontal {
  flex-direction: column;
}
.apexcharts-legend-group {
  display: flex;
}
.apexcharts-legend-group-vertical {
  flex-direction: column-reverse;
}
.apexcharts-legend.apx-legend-position-bottom, .apexcharts-legend.apx-legend-position-top {
  flex-wrap: wrap
}
.apexcharts-legend.apx-legend-position-right, .apexcharts-legend.apx-legend-position-left {
  flex-direction: column;
  bottom: 0;
}
.apexcharts-legend.apx-legend-position-bottom.apexcharts-align-left, .apexcharts-legend.apx-legend-position-top.apexcharts-align-left, .apexcharts-legend.apx-legend-position-right, .apexcharts-legend.apx-legend-position-left {
  justify-content: flex-start;
  align-items: flex-start;
}
.apexcharts-legend.apx-legend-position-bottom.apexcharts-align-center, .apexcharts-legend.apx-legend-position-top.apexcharts-align-center {
  justify-content: center;
  align-items: center;
}
.apexcharts-legend.apx-legend-position-bottom.apexcharts-align-right, .apexcharts-legend.apx-legend-position-top.apexcharts-align-right {
  justify-content: flex-end;
  align-items: flex-end;
}
.apexcharts-legend-series {
  cursor: pointer;
  line-height: normal;
  display: flex;
  align-items: center;
}
.apexcharts-legend-text {
  position: relative;
  font-size: 14px;
}
.apexcharts-legend-text *, .apexcharts-legend-marker * {
  pointer-events: none;
}
.apexcharts-legend-marker {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  margin-right: 1px;
}

.apexcharts-legend-series.apexcharts-no-click {
  cursor: auto;
}
.apexcharts-legend .apexcharts-hidden-zero-series, .apexcharts-legend .apexcharts-hidden-null-series {
  display: none !important;
}
.apexcharts-inactive-legend {
  opacity: 0.45;
} `;class Dj{constructor(e,t){this.w=e,this.ctx=t}svgStringToNode(e){return new DOMParser().parseFromString(e,"image/svg+xml").documentElement}scaleSvgNode(e,t){const r=parseFloat(e.getAttributeNS(null,"width")),a=parseFloat(e.getAttributeNS(null,"height"));e.setAttributeNS(null,"width",r*t),e.setAttributeNS(null,"height",a*t),e.setAttributeNS(null,"viewBox","0 0 "+r+" "+a)}getSvgString(e){return new Promise(t=>{const r=this.w;let a=e||r.config.chart.toolbar.export.scale||r.config.chart.toolbar.export.width/r.globals.svgWidth;a||(a=1);const i=r.globals.svgWidth*a,s=r.globals.svgHeight*a,o=r.dom.elWrap.cloneNode(!0);o.style.width=i+"px",o.style.height=s+"px";const l=new XMLSerializer().serializeToString(o),u=r.config.legend.show&&r.dom.elLegendWrap&&r.dom.elLegendWrap.children.length>0;let d=`
        .apexcharts-tooltip, .apexcharts-toolbar, .apexcharts-xaxistooltip, .apexcharts-yaxistooltip, .apexcharts-xcrosshairs, .apexcharts-ycrosshairs, .apexcharts-zoom-rect, .apexcharts-selection-rect {
          display: none;
        }
      `;u&&(d+=Mj);let f=`
        <svg xmlns="http://www.w3.org/2000/svg"
          version="1.1"
          xmlns:xlink="http://www.w3.org/1999/xlink"
          class="apexcharts-svg"
          xmlns:data="ApexChartsNS"
          transform="translate(0, 0)"
          width="${r.globals.svgWidth}px" height="${r.globals.svgHeight}px">
          <foreignObject width="100%" height="100%">
            <div xmlns="http://www.w3.org/1999/xhtml" style="width:${i}px; height:${s}px;">
            <style type="text/css">
              ${d}
            </style>
              ${l}
            </div>
          </foreignObject>
        </svg>
      `;const g=this.svgStringToNode(f);a!==1&&this.scaleSvgNode(g,a),this.convertImagesToBase64(g).then(()=>{f=new XMLSerializer().serializeToString(g),t(f.replace(/&nbsp;/g,"&#160;"))})})}convertImagesToBase64(e){const t=e.getElementsByTagName("image"),r=Array.from(t).map(a=>{const i=a.getAttributeNS("http://www.w3.org/1999/xlink","href");return i&&!i.startsWith("data:")?this.getBase64FromUrl(i).then(s=>{a.setAttributeNS("http://www.w3.org/1999/xlink","href",s)}).catch(s=>{console.error("Error converting image to base64:",s)}):Promise.resolve()});return Promise.all(r)}getBase64FromUrl(e){return qe.isSSR()?Promise.resolve(e):new Promise((t,r)=>{const a=new Image;a.crossOrigin="Anonymous",a.onload=()=>{const i=document.createElement("canvas");i.width=a.width,i.height=a.height;const s=i.getContext("2d");s&&s.drawImage(a,0,0),t(i.toDataURL())},a.onerror=r,a.src=e})}svgUrl(){return new Promise(e=>{this.getSvgString().then(t=>{const r=new Blob([t],{type:"image/svg+xml;charset=utf-8"});e(URL.createObjectURL(r))})})}dataURI(e){return qe.isSSR()?Promise.resolve({imgURI:""}):new Promise(t=>{const r=this.w,a=e?e.scale||e.width/r.globals.svgWidth:1,i=document.createElement("canvas");i.width=r.globals.svgWidth*a,i.height=parseInt(r.dom.elWrap.style.height,10)*a;const s=r.config.chart.background==="transparent"||!r.config.chart.background?"#fff":r.config.chart.background,o=i.getContext("2d");o&&(o.fillStyle=s,o.fillRect(0,0,i.width*a,i.height*a),this.getSvgString(a).then(l=>{const u="data:image/svg+xml,"+encodeURIComponent(l),d=new Image;d.crossOrigin="anonymous",d.onload=()=>{o.drawImage(d,0,0);const f=i;if(f.msToBlob){const g=f.msToBlob();t({blob:g})}else{const g=i.toDataURL("image/png");t({imgURI:g})}},d.src=u}))})}exportToSVG(){this.svgUrl().then(e=>{this.triggerDownload(e,this.w.config.chart.toolbar.export.svg.filename,".svg")})}exportToPng(){const e=this.w.config.chart.toolbar.export.scale,t=this.w.config.chart.toolbar.export.width,r=e?{scale:e}:t?{width:t}:void 0;this.dataURI(r).then(({imgURI:a,blob:i})=>{i?navigator.msSaveOrOpenBlob(i,this.w.globals.chartID+".png"):this.triggerDownload(a,this.w.config.chart.toolbar.export.png.filename,".png")})}exportToCSV({series:e,fileName:t,columnDelimiter:r=",",lineDelimiter:a=`
`}){const i=this.w;e||(e=i.config.series);let s=[];const o=[];let l="";const u="\uFEFF",d=i.seriesData.series.map((D,M)=>i.globals.collapsedSeriesIndices.indexOf(M)===-1?D:[]),f=D=>typeof i.config.chart.toolbar.export.csv.categoryFormatter=="function"?i.config.chart.toolbar.export.csv.categoryFormatter(D):i.config.xaxis.type==="datetime"&&String(D).length>=10?new Date(D).toDateString():ee.isNumber(D)?D:D.split(r).join(""),g=D=>typeof i.config.chart.toolbar.export.csv.valueFormatter=="function"?i.config.chart.toolbar.export.csv.valueFormatter(D):D,p=Math.max(...e.map(D=>D.data?D.data.length:0)),b=new xl(this.w),y=new xo(this.w,{theme:this.ctx.theme,timeScale:this.ctx.timeScale}),x=D=>{let M="";if(!i.globals.axisCharts)M=i.config.labels[D];else{if(i.config.xaxis.type==="category"||i.config.xaxis.convertedCatToNumeric)if(i.globals.isBarHorizontal){const A=i.formatters.yLabelFormatters[0],P=new Wn(this.ctx.w).getActiveConfigSeriesIndex();M=A(i.labelData.labels[D],{seriesIndex:P,dataPointIndex:D,w:i})}else M=y.getLabel(i.labelData.labels,i.labelData.timescaleLabels,0,D).text;i.config.xaxis.type==="datetime"&&(i.config.xaxis.categories.length?M=i.config.xaxis.categories[D]:i.config.labels.length&&(M=i.config.labels[D]))}return M===null?"nullvalue":(Array.isArray(M)&&(M=M.join(" ")),ee.isNumber(M)?M:M.split(r).join(""))},S=()=>[...Array(p)].map(()=>""),C=(D,M)=>{var A,T,P,R,N,I;if(s.length&&M===0&&o.push(s.join(r)),D.data){D.data=D.data.length&&D.data||S();for(let $=0;$<D.data.length;$++){s=[];let Y=x($);if(Y!=="nullvalue"){if(Y||(b.isFormatXY()?Y=e[M].data[$].x:b.isFormat2DArray()&&(Y=e[M].data[$]?e[M].data[$][0]:"")),M===0){s.push(f(Y));for(let k=0;k<i.seriesData.series.length;k++){const H=b.isFormatXY()?(A=e[k].data[$])==null?void 0:A.y:d[k][$];s.push(g(H))}}(i.config.chart.type==="candlestick"||D.type&&D.type==="candlestick")&&(s.pop(),s.push(i.candleData.seriesCandleO[M][$]),s.push(i.candleData.seriesCandleH[M][$]),s.push(i.candleData.seriesCandleL[M][$]),s.push(i.candleData.seriesCandleC[M][$])),(i.config.chart.type==="boxPlot"||D.type&&D.type==="boxPlot")&&(s.pop(),s.push(i.candleData.seriesCandleO[M][$]),s.push(i.candleData.seriesCandleH[M][$]),s.push(i.candleData.seriesCandleM[M][$]),s.push(i.candleData.seriesCandleL[M][$]),s.push(i.candleData.seriesCandleC[M][$])),i.config.chart.type==="rangeBar"&&(s.pop(),s.push(i.rangeData.seriesRangeStart[M][$]),s.push(i.rangeData.seriesRangeEnd[M][$])),(i.config.chart.type==="violin"||D.type&&D.type==="violin")&&(s.pop(),s.push((T=i.violinData.seriesViolinMin[M])==null?void 0:T[$]),s.push((P=i.violinData.seriesViolinMax[M])==null?void 0:P[$]),s.push((I=(N=(R=i.violinData.seriesViolinPoints[M])==null?void 0:R[$])==null?void 0:N.length)!=null?I:0)),s.length&&o.push(s.join(r))}}}},O=()=>{const D=new Set,M={};e.forEach((A,T)=>{A?.data.forEach(P=>{let R,N;if(b.isFormatXY())R=P.x,N=P.y;else if(b.isFormat2DArray())R=P[0],N=P[1];else return;M[R]||(M[R]=Array(e.length).fill("")),M[R][T]=g(N),D.add(R)})}),s.length&&o.push(s.join(r)),Array.from(D).sort().forEach(A=>{o.push([f(A),M[A].join(r)])})};s.push(i.config.chart.toolbar.export.csv.headerCategory),i.config.chart.type==="boxPlot"?(s.push("minimum"),s.push("q1"),s.push("median"),s.push("q3"),s.push("maximum")):i.config.chart.type==="candlestick"?(s.push("open"),s.push("high"),s.push("low"),s.push("close")):i.config.chart.type==="rangeBar"?(s.push("minimum"),s.push("maximum")):i.config.chart.type==="violin"?(s.push("minimum"),s.push("maximum"),s.push("observations")):e.map((D,M)=>{const A=(D.name?D.name:`series-${M}`)+"";i.globals.axisCharts&&s.push(A.split(r).join("")?A.split(r).join(""):`series-${M}`)}),i.globals.axisCharts||(s.push(i.config.chart.toolbar.export.csv.headerValue),o.push(s.join(r))),!i.globals.allSeriesHasEqualX&&i.globals.axisCharts&&!i.config.xaxis.categories.length&&!i.config.labels.length?O():e.map((D,M)=>{i.globals.axisCharts?C(D,M):(s=[],s.push(f(i.labelData.labels[M])),s.push(g(d[M])),o.push(s.join(r)))}),l+=o.join(a),this.triggerDownload("data:text/csv; charset=utf-8,"+encodeURIComponent(u+l),t||i.config.chart.toolbar.export.csv.filename,".csv")}triggerDownload(e,t,r){if(qe.isSSR())return;const a=document.createElement("a");a.href=e,a.download=(t||this.w.globals.chartID)+r,document.body.appendChild(a),a.click(),document.body.removeChild(a)}}Zi.registerFeatures({exports:Dj});let Pie=class{constructor(e){this.w=e.w,this.lgCtx=e}getLegendStyles(){if(qe.isSSR())return null;const e=document.createElement("style");e.setAttribute("type","text/css");const t=this.w.config.chart.nonce;t&&e.setAttribute("nonce",t);const r=document.createTextNode(Mj);return e.appendChild(r),e}getLegendDimensions(){const t=this.w.dom.baseEl.querySelector(".apexcharts-legend");if(!t)return{clwh:0,clww:0};const{width:r,height:a}=t.getBoundingClientRect();return{clwh:a,clww:r}}appendToForeignObject(){var e;const t=this.getLegendStyles();this.w.config.chart.injectStyleSheet!==!1&&t&&((e=this.w.dom.elLegendForeign)==null||e.appendChild(t))}toggleDataSeries(e,t){var r,a;const i=this.w;if(i.globals.axisCharts||i.config.chart.type==="radialBar"){i.globals.resized=!0;let s=null,o=null;if(i.globals.risingSeries=[],i.globals.axisCharts){if(s=i.dom.baseEl.querySelector(`.apexcharts-series[data\\:realIndex='${e}']`),!s)return;o=parseInt((r=s.getAttribute("data:realIndex"))!=null?r:"",10)}else{if(s=i.dom.baseEl.querySelector(`.apexcharts-series[rel='${e+1}']`),!s)return;o=parseInt((a=s.getAttribute("rel"))!=null?a:"",10)-1}if(t?[{cs:i.globals.collapsedSeries,csi:i.globals.collapsedSeriesIndices},{cs:i.globals.ancillaryCollapsedSeries,csi:i.globals.ancillaryCollapsedSeriesIndices}].forEach(u=>{const d=u.cs,f=u.csi;this.riseCollapsedSeries(d,f,o)}):this.hideSeries({seriesEl:s,realIndex:o}),i.config.chart.accessibility.enabled){const l=i.dom.baseEl.querySelector(`.apexcharts-legend-series[rel="${e+1}"]`);if(l){const u=i.globals.collapsedSeriesIndices.includes(o)||i.globals.ancillaryCollapsedSeriesIndices.includes(o);l.setAttribute("aria-pressed",u?"true":"false");const d=l.querySelector(".apexcharts-legend-text"),f=d?d.textContent:i.seriesData.seriesNames[e],g=u?"hidden":"visible";l.setAttribute("aria-label",`${f}, ${g}. Press Enter or Space to toggle.`)}}}else{const s=i.dom.Paper.findOne(` .apexcharts-series[rel='${e+1}'] path`),o=i.config.chart.type;if(o==="pie"||o==="polarArea"||o==="donut"){const l=i.config.plotOptions.pie.donut.labels;new ve(this.w).pathMouseDown(s,null),this.lgCtx.printDataLabelsInner(s.node,l)}if(i.config.chart.accessibility.enabled){const l=i.dom.baseEl.querySelector(`.apexcharts-legend-series[rel="${e+1}"]`);if(l){const u=i.globals.collapsedSeriesIndices.includes(e);l.setAttribute("aria-pressed",u?"true":"false");const d=l.querySelector(".apexcharts-legend-text"),f=d?d.textContent:i.seriesData.seriesNames[e],g=u?"hidden":"visible";l.setAttribute("aria-label",`${f}, ${g}. Press Enter or Space to toggle.`)}}}}getSeriesAfterCollapsing({realIndex:e}){var t;const r=this.w,a=r.globals,i=ee.clone(r.config.series);if(a.axisCharts){const s=r.config.yaxis[a.seriesYAxisReverseMap[e]],o={index:e,data:i[e].data.slice(),type:i[e].type||r.config.chart.type};if(s&&s.show&&s.showAlways)a.ancillaryCollapsedSeriesIndices.indexOf(e)<0&&(a.ancillaryCollapsedSeries.push(o),a.ancillaryCollapsedSeriesIndices.push(e));else if(a.collapsedSeriesIndices.indexOf(e)<0){a.collapsedSeries.push(o),a.collapsedSeriesIndices.push(e);const l=a.risingSeries.indexOf(e);a.risingSeries.splice(l,1)}}else a.collapsedSeries.push({index:e,data:i[e],type:(t=r.config.series[e].type)!=null?t:"line"}),a.collapsedSeriesIndices.push(e);return a.allSeriesCollapsed=a.collapsedSeries.length+a.ancillaryCollapsedSeries.length===r.config.series.length,this._getSeriesBasedOnCollapsedState(i)}hideSeries({seriesEl:e,realIndex:t}){const r=this.w,a=this.getSeriesAfterCollapsing({realIndex:t}),i=e.childNodes;for(let s=0;s<i.length;s++)i[s].classList.contains("apexcharts-series-markers-wrap")&&(i[s].classList.contains("apexcharts-hide")?i[s].classList.remove("apexcharts-hide"):i[s].classList.add("apexcharts-hide"));this.lgCtx.updateSeries(a,r.config.chart.animations.dynamicAnimation.enabled)}riseCollapsedSeries(e,t,r){const a=this.w;let i=ee.clone(a.config.series);if(e.length>0){for(let s=0;s<e.length;s++)e[s].index===r&&(a.globals.axisCharts?i[r].data=e[s].data.slice():i[r]=e[s].data,typeof i[r]!="number"&&(i[r].hidden=!1),e.splice(s,1),t.splice(s,1),a.globals.risingSeries.push(r),s--);i=this._getSeriesBasedOnCollapsedState(i),this.lgCtx.updateSeries(i,a.config.chart.animations.dynamicAnimation.enabled)}}_getSeriesBasedOnCollapsedState(e){const t=this.w;let r=0;return t.globals.axisCharts?e.forEach((a,i)=>{t.globals.collapsedSeriesIndices.indexOf(i)<0&&t.globals.ancillaryCollapsedSeriesIndices.indexOf(i)<0||(e[i].data=[],r++)}):e.forEach((a,i)=>{t.globals.collapsedSeriesIndices.indexOf(i)<0||(e[i]=0,r++)}),t.globals.allSeriesCollapsed=r===e.length,e}};const so="http://www.w3.org/2000/svg";class H2{constructor(e,t){this.w=e,this.ctx=t,this.svgEl=null,this.arrowEl=null,this.hoverValueEl=null,this._min=0,this._max=0,this._geom=null,this._bandHitEls=[],this._activeBandIndex=-1,this._onCellEnter=this._onCellEnter.bind(this),this._onCellLeave=this._onCellLeave.bind(this),this._onBandEnter=this._onBandEnter.bind(this),this._onBandLeave=this._onBandLeave.bind(this)}_getFormatter(){const e=this.w.config.plotOptions.heatmap.colorScale.gradientLegend;return typeof e.formatter=="function"?e.formatter:t=>{if(!Number.isFinite(t))return String(t);const r=Math.abs(t);return r>=1e3?t.toFixed(0):r>=10?t.toFixed(1):t.toFixed(2)}}static isEnabled(e){var t,r,a,i;const s=(i=(a=(r=(t=e?.config)==null?void 0:t.plotOptions)==null?void 0:r.heatmap)==null?void 0:a.colorScale)==null?void 0:i.gradientLegend;return!!(s&&s.enabled)}draw(){var e,t,r,a,i,s,o,l;const u=this.w,d=u.dom.elLegendWrap;if(!d)return;const f=u.config.plotOptions.heatmap.colorScale.gradientLegend,g=u.config.legend.position,p=g==="left"||g==="right",b=(t=(e=f.arrow)==null?void 0:e.size)!=null?t:8,y=b+4,x=f.showLabels?28:4,S=f.showLabels?20:4,C=f.showLabels?44:0,O=this._resolveStripLength(p?f.height:f.width,p),D=f.thickness,M=p?Math.max(D+y+4,C):O+x*2,A=p?O+S*2:D+y+4,T=D+y,P=(M-T)/2,R=p?g==="left"?P:P+y:x,N=p?S:g==="top"?y:4,I=ke.createElementNS(so,"svg");I.setAttribute("class","apexcharts-heatmap-gradient-legend"),I.setAttribute("width",String(M)),I.setAttribute("height",String(A)),I.setAttribute("overflow","visible");const $=ke.createElementNS(so,"defs"),Y=`apexcharts-heatmap-gradient-${u.globals.cuid}`,k=ke.createElementNS(so,"linearGradient");k.setAttribute("id",Y),p?(k.setAttribute("x1","0"),k.setAttribute("y1","1"),k.setAttribute("x2","0"),k.setAttribute("y2","0")):(k.setAttribute("x1","0"),k.setAttribute("y1","0"),k.setAttribute("x2","1"),k.setAttribute("y2","0"));const{min:H,max:F,stops:B,bands:X}=this._computeStops();this._min=H,this._max=F,B.forEach(j=>{const q=ke.createElementNS(so,"stop");q.setAttribute("offset",`${(j.percent*100).toFixed(2)}%`),q.setAttribute("stop-color",j.color),k.appendChild(q)}),$.appendChild(k),I.appendChild($);const Q=ke.createElementNS(so,"rect");if(Q.setAttribute("x",String(R)),Q.setAttribute("y",String(N)),Q.setAttribute("width",String(p?D:O)),Q.setAttribute("height",String(p?O:D)),Q.setAttribute("rx","2"),Q.setAttribute("fill",`url(#${Y})`),I.appendChild(Q),f.showLabels){const j=((r=f.labelStyle)==null?void 0:r.colors)||(Array.isArray(u.config.legend.labels.colors)?u.config.legend.labels.colors[0]:u.config.legend.labels.colors)||u.config.chart.foreColor,q=((a=f.labelStyle)==null?void 0:a.fontSize)||"11px",G=((i=f.labelStyle)==null?void 0:i.fontFamily)||u.config.chart.fontFamily,U=this._getFormatter(),K=(te,ne,ie,ce)=>{const ue=ke.createElementNS(so,"text");return ue.setAttribute("x",String(ne)),ue.setAttribute("y",String(ie)),ue.setAttribute("text-anchor",ce),ue.setAttribute("dominant-baseline","middle"),ue.setAttribute("fill",j),ue.setAttribute("font-size",q),G&&ue.setAttribute("font-family",G),ue.textContent=String(te),ue};if(p){const te=R+D/2;I.appendChild(K(U(H),te,N+O+10,"middle")),I.appendChild(K(U(F),te,N-10,"middle"))}else{const te=N+D/2;I.appendChild(K(U(H),R-6,te,"end")),I.appendChild(K(U(F),R+O+6,te,"start"))}}const z=((s=f.arrow)==null?void 0:s.color)||u.config.chart.foreColor,V=this._buildArrow(b,z,g);if(I.appendChild(V),this.arrowEl=V,this._bandHitEls=[],u.config.legend.onItemHover.highlightDataSeries&&X.length>0&&X.forEach(j=>{const q=ke.createElementNS(so,"rect");if(p){const G=N+O-j.p2*O,U=N+O-j.p1*O;q.setAttribute("x",String(R)),q.setAttribute("y",String(G)),q.setAttribute("width",String(D)),q.setAttribute("height",String(Math.max(0,U-G)))}else q.setAttribute("x",String(R+j.p1*O)),q.setAttribute("y",String(N)),q.setAttribute("width",String(Math.max(0,(j.p2-j.p1)*O))),q.setAttribute("height",String(D));q.setAttribute("fill","transparent"),q.setAttribute("class","apexcharts-heatmap-gradient-band"),q.setAttribute("data:range-index",String(j.index)),q.style.cursor="pointer",I.appendChild(q),this._bandHitEls.push(q)}),this._geom={isVertical:p,position:g,stripX:R,stripY:N,stripLength:O,stripThickness:D,arrowSize:b,svgWidth:M,svgHeight:A},f.showHoverValue){const j=ke.createElement("div");j.classList.add("apexcharts-heatmap-gradient-legend-value"),j.style.position="absolute",j.style.fontSize=((o=f.labelStyle)==null?void 0:o.fontSize)||"11px",j.style.fontFamily=((l=f.labelStyle)==null?void 0:l.fontFamily)||u.config.chart.fontFamily||"",j.style.color=u.config.chart.foreColor,j.style.background="rgba(0,0,0,0.65)",j.style.color="#fff",j.style.padding="2px 6px",j.style.borderRadius="3px",j.style.pointerEvents="none",j.style.whiteSpace="nowrap",j.style.opacity="0",j.style.transition="opacity 120ms ease",this.hoverValueEl=j}d.classList.add("apexcharts-heatmap-gradient-legend-wrap"),d.classList.add("apx-legend-position-"+g),d.appendChild(I),this.hoverValueEl&&d.appendChild(this.hoverValueEl),this.svgEl=I,this._applyWrapAlignment(d,g,p,M,A),this._attachHoverListeners(),this._attachBandHoverListeners()}_resolveStripLength(e,t){const r=this.w,a=t?r.globals.svgHeight||r.config.chart.height||300:r.globals.svgWidth||r.config.chart.width||600;if(typeof e=="string"){const i=e.trim();if(i.endsWith("%")){const o=parseFloat(i)||0;return Math.max(20,a*o/100)}const s=parseFloat(i);return Number.isFinite(s)?s:200}return typeof e=="number"&&Number.isFinite(e)?e:200}_applyWrapAlignment(e,t,r,a,i){const s=this.w,l=s.config.plotOptions.heatmap.colorScale.gradientLegend.align||"center",u=12,d=s.globals.svgWidth||s.config.chart.width||600,f=s.globals.svgHeight||s.config.chart.height||300,g=s.config.legend.offsetX||0,p=s.config.legend.offsetY||0;if(e.style.position="absolute",e.style.display="block",e.style.overflow="visible",e.style.padding="0",e.style.width=a+"px",e.style.height=i+"px",e.style.right="auto",e.style.bottom="auto",r){const b=f-i-u*2;let y;l==="start"?y=u:l==="end"?y=u+Math.max(0,b):y=u+Math.max(0,b)/2,e.style.top=y+p+"px",t==="left"?e.style.left=u+g+"px":e.style.left=d-a-u+g+"px"}else{const b=d-a-u*2;let y;l==="start"?y=u:l==="end"?y=u+Math.max(0,b):y=u+Math.max(0,b)/2,e.style.left=y+g+"px",t==="top"?e.style.top=u+p+"px":e.style.top=f-i-u+p+"px"}}repositionToPlot(){var e,t;if(!qe.isBrowser())return;const r=this.w,a=r.globals,i=r.dom.elLegendWrap;if(!i||!this._geom||!Number.isFinite(a.gridWidth)||!Number.isFinite(a.gridHeight))return;const{isVertical:s,position:o,svgWidth:l,svgHeight:u,stripX:d,stripY:f,stripThickness:g}=this._geom,p=r.config.plotOptions.heatmap.colorScale.gradientLegend.align||"center",b=r.config.legend.offsetX||0,y=r.config.legend.offsetY||0,x=(t=(e=this.ctx)==null?void 0:e.dimensions)==null?void 0:t.dimHelpers,S=x?x.getTitleSubtitleCoords("title").height+x.getTitleSubtitleCoords("subtitle").height:0,C=r.layout.xAxisHeight||0,O=(D,M)=>{const A=Math.max(0,D-M);return p==="start"?0:p==="end"?A:A/2};if(s){i.style.top=a.translateY+O(a.gridHeight,u)+y+"px";const D=o==="left"?0:a.translateX+a.gridWidth,M=o==="left"?a.translateX:a.svgWidth,A=(D+M)/2;i.style.left=A-d-g/2+b+"px"}else{i.style.left=a.translateX+O(a.gridWidth,l)+b+"px";const D=o==="top"?S:a.translateY+a.gridHeight+C,M=o==="top"?a.translateY:a.svgHeight,A=(D+M)/2;i.style.top=A-f-g/2+y+"px"}ke.requestAnimationFrame(()=>this._enforceMinPlotGap())}_enforceMinPlotGap(){const e=this.w,t=e.dom.elLegendWrap,r=this.svgEl&&this.svgEl.querySelector("rect"),a=e.dom.baseEl.querySelector(".apexcharts-grid");if(!t||!r||!a||!this._geom)return;const i=r.getBoundingClientRect(),s=a.getBoundingClientRect();if(!i.width||!i.height||!s.width||!s.height)return;const o=16,{isVertical:l,position:u}=this._geom;if(l){const d=u==="left"?s.left-i.right:i.left-s.right;if(d<o){const f=parseFloat(t.style.left)||0,g=o-d;t.style.left=f+(u==="left"?-g:g)+"px"}}else{const d=u==="top"?s.top-i.bottom:i.top-s.bottom;if(d<o){const f=parseFloat(t.style.top)||0,g=o-d;t.style.top=f+(u==="top"?-g:g)+"px"}}}destroy(){var e,t,r,a,i,s,o;for(let l=0;l<this._bandHitEls.length;l++){const u=this._bandHitEls[l];(e=u.removeEventListener)==null||e.call(u,"mousemove",this._onBandEnter),(t=u.removeEventListener)==null||t.call(u,"mouseout",this._onBandLeave)}if(this._bandHitEls=[],this._activeBandIndex=-1,!!((r=this.ctx)!=null&&r.events))try{(i=(a=this.ctx.events).removeEventListener)==null||i.call(a,"dataPointMouseEnter",this._onCellEnter),(o=(s=this.ctx.events).removeEventListener)==null||o.call(s,"dataPointMouseLeave",this._onCellLeave)}catch{}}_attachBandHoverListeners(){if(qe.isBrowser())for(let e=0;e<this._bandHitEls.length;e++){const t=this._bandHitEls[e];t.addEventListener("mousemove",this._onBandEnter),t.addEventListener("mouseout",this._onBandLeave)}}_onBandEnter(e){var t,r,a,i;const s=this.w,o=e.currentTarget,l=parseInt((t=o.getAttribute("data:range-index"))!=null?t:"-1",10);l<0||l===this._activeBandIndex||(this._activeBandIndex=l,(i=(a=(r=this.ctx)==null?void 0:r.events)==null?void 0:a.fireEvent)==null||i.call(a,"legendHover",[this.ctx,l,s]),new Wn(s).highlightRangeInSeries(l,"highlight"))}_onBandLeave(){if(this._activeBandIndex<0)return;const e=this._activeBandIndex;this._activeBandIndex=-1,new Wn(this.w).highlightRangeInSeries(e,"reset")}_attachHoverListeners(){var e,t;qe.isBrowser()&&(t=(e=this.ctx)==null?void 0:e.events)!=null&&t.addEventListener&&(this.ctx.events.addEventListener("dataPointMouseEnter",this._onCellEnter),this.ctx.events.addEventListener("dataPointMouseLeave",this._onCellLeave))}_onCellEnter(...e){var t,r;const a=this.w;if(!this.arrowEl)return;const i=e[e.length-1];if(!i||typeof i!="object")return;const s=i.seriesIndex,o=i.dataPointIndex;if(typeof s!="number"||typeof o!="number"||a.config.chart.type!=="heatmap")return;const l=(r=(t=a.seriesData)==null?void 0:t.series)==null?void 0:r[s],u=l?.[o];u==null||Number.isNaN(u)||this._positionArrow(u)}_onCellLeave(){this.arrowEl&&(this.arrowEl.setAttribute("opacity","0"),this.hoverValueEl&&(this.hoverValueEl.style.opacity="0"))}_positionArrow(e){if(!this.arrowEl||!this._geom)return;const{isVertical:t,position:r,stripX:a,stripY:i,stripLength:s,stripThickness:o,arrowSize:l}=this._geom,u=this._min,f=this._max-u;let g;if(f===0?g=.5:g=(e-u)/f,g<0&&(g=0),g>1&&(g=1),t){const p=i+s-g*s;let b,y;r==="left"?(b=a+o,y=b+l):(b=a,y=b-l);const x=[`${b},${p}`,`${y},${p-l/2}`,`${y},${p+l/2}`].join(" ");this.arrowEl.setAttribute("points",x)}else{const p=a+g*s;let b,y;r==="top"?(b=i+o,y=b+l):(b=i,y=b-l);const x=[`${p},${b}`,`${p-l/2},${y}`,`${p+l/2},${y}`].join(" ");this.arrowEl.setAttribute("points",x)}if(this.arrowEl.setAttribute("opacity","1"),this.hoverValueEl){const p=this._getFormatter();if(this.hoverValueEl.textContent=p(e),t){const b=i+s-g*s;r==="left"?this.hoverValueEl.style.left=`${a+o+l+8}px`:(this.hoverValueEl.style.left=`${a-l-8}px`,this.hoverValueEl.style.transform="translateX(-100%)"),this.hoverValueEl.style.top=`${b-9}px`}else{const b=a+g*s;this.hoverValueEl.style.left=`${b}px`,this.hoverValueEl.style.transform="translateX(-50%)",r==="top"?this.hoverValueEl.style.top=`${i+o+l+8}px`:this.hoverValueEl.style.top=`${i-l-18}px`}this.hoverValueEl.style.opacity="1"}}_buildArrow(e,t,r){const a=ke.createElementNS(so,"polygon");return a.setAttribute("fill",t),a.setAttribute("opacity","0"),a.setAttribute("class","apexcharts-heatmap-gradient-arrow"),a.setAttribute("points","0,0 0,0 0,0"),a.setAttribute("pointer-events","none"),a}_computeStops(){var e,t;const r=this.w,a=r.config.plotOptions.heatmap.colorScale,i=a.gradientLegend;let s=1/0,o=-1/0;const l=((e=r.seriesData)==null?void 0:e.series)||[];for(let p=0;p<l.length;p++){const b=l[p];if(b)for(let y=0;y<b.length;y++){const x=b[y];x==null||Number.isNaN(x)||(x<s&&(s=x),x>o&&(o=x))}}Number.isFinite(s)||(s=0),Number.isFinite(o)||(o=0);let u=s,d=o;typeof a.min<"u"&&(u=a.min<s?a.min:s),typeof a.max<"u"&&(d=a.max>o?a.max:o);const f=[],g=[];if(a.ranges&&a.ranges.length>0){const p=a.ranges.map((S,C)=>Lt(ct({},S),{_originalIndex:C})).sort((S,C)=>S.from-C.from),b=p[0].from,y=p[p.length-1].to;u=b,d=y;const x=y-b||1;p.forEach(S=>{const C=(S.from-b)/x,O=(S.to-b)/x;f.push({percent:(C+O)/2,color:S.color}),g.push({index:S._originalIndex,p1:C,p2:O})})}else{const p=r.globals.colors[0]||"#008FFB",b=new ee,y=(t=r.config.plotOptions.heatmap.shadeIntensity)!=null?t:.5,x=r.globals.hasNegs,S=Math.max(2,i.stops||16);for(let C=0;C<S;C++){const O=C/(S-1),D=u+O*(d-u),M=Math.abs(d)+Math.abs(u),A=M===0?0:100*D/M;let T;x?r.config.plotOptions.heatmap.reverseNegativeShade?T=A<0?A/100*(y*1.25):(1-A/100)*(y*1.25):T=A<=0?1-(1+A/100)*y:(1-A/100)*y:T=1-A/100,T>1&&(T=1),T<-1&&(T=-1);const P=r.config.plotOptions.heatmap.enableShades?b.shadeColor(r.config.theme.mode==="dark"?T*-1:T,p):p;f.push({percent:O,color:P})}}return{min:u,max:d,stops:f,bands:g}}}class Lie{constructor(e,t){this.w=e,this.ctx=t,this.printDataLabelsInner=(...r)=>{var a;return(a=t.pie)==null?void 0:a.printDataLabelsInner(...r)},this.updateSeries=(...r)=>t.updateHelpers._updateSeries(...r),this.onLegendClick=this.onLegendClick.bind(this),this.onLegendHovered=this.onLegendHovered.bind(this),this.isBarsDistributed=this.w.config.chart.type==="bar"&&this.w.config.plotOptions.bar.distributed&&this.w.config.series.length===1,this.legendHelpers=new Pie(this)}init(){const e=this.w,t=e.globals,r=e.config,a=r.legend.showForSingleSeries&&this.w.seriesData.series.length===1||this.isBarsDistributed||r.chart.type==="heatmap"||this.w.seriesData.series.length>1;if(this.legendHelpers.appendToForeignObject(),(a||!t.axisCharts)&&r.legend.show){const i=e.dom.elLegendWrap;for(;i.firstChild;)i.removeChild(i.firstChild);this.heatmapGradientLegend&&(this.heatmapGradientLegend.destroy(),this.heatmapGradientLegend=null),r.chart.type==="heatmap"&&H2.isEnabled(e)?(this.heatmapGradientLegend=new H2(e,this.ctx),this.heatmapGradientLegend.draw()):(this.drawLegends(),r.legend.position==="bottom"||r.legend.position==="top"?this.legendAlignHorizontal():(r.legend.position==="right"||r.legend.position==="left")&&this.legendAlignVertical())}}createLegendMarker({i:e,fillcolor:t}){const r=this.w,a=ke.createElement("span");a.classList.add("apexcharts-legend-marker");const i=r.config.legend.markers.shape||r.config.markers.shape;let s=i;Array.isArray(i)&&(s=i[e]);const o=Array.isArray(r.config.legend.markers.size)?parseFloat(r.config.legend.markers.size[e]):parseFloat(r.config.legend.markers.size),l=Array.isArray(r.config.legend.markers.offsetX)?parseFloat(r.config.legend.markers.offsetX[e]):parseFloat(r.config.legend.markers.offsetX),u=Array.isArray(r.config.legend.markers.offsetY)?parseFloat(r.config.legend.markers.offsetY[e]):parseFloat(r.config.legend.markers.offsetY),d=Array.isArray(r.config.legend.markers.strokeWidth)?parseFloat(r.config.legend.markers.strokeWidth[e]):parseFloat(r.config.legend.markers.strokeWidth),f=a.style;if(f.height=(o+d)*2+"px",f.width=(o+d)*2+"px",f.left=l+"px",f.top=u+"px",r.config.legend.markers.customHTML)f.background="transparent",f.color=t[e],Array.isArray(r.config.legend.markers.customHTML)?r.config.legend.markers.customHTML[e]&&(a.innerHTML=r.config.legend.markers.customHTML[e]()):a.innerHTML=r.config.legend.markers.customHTML();else{const p=new Du(this.ctx.w,this.ctx).getMarkerConfig({cssClass:`apexcharts-legend-marker apexcharts-marker apexcharts-marker-${s}`,seriesIndex:e,strokeWidth:d,size:o}),y=(qe.isBrowser()?window.SVG:global.SVG)().addTo(a).size("100%","100%"),x=new ve(this.w).drawMarker(0,0,Lt(ct({},p),{pointFillColor:Array.isArray(t)?t[e]:p.pointFillColor,shape:s}));r.dom.Paper.find(".apexcharts-legend-marker.apexcharts-marker").forEach(C=>{C.node.classList.contains("apexcharts-marker-triangle")?C.node.style.transform="translate(50%, 45%)":C.node.style.transform="translate(50%, 50%)"}),y.add(x)}return a}drawLegends(){var e;const t=this,r=this.w,a=r.dom.elLegendWrap,i=r.config.legend.fontFamily;let s=r.seriesData.seriesNames,o=r.config.legend.markers.fillColors?r.config.legend.markers.fillColors.slice():r.globals.colors.slice();if(r.config.chart.type==="heatmap"){const f=r.config.plotOptions.heatmap.colorScale.ranges;s=f.map(g=>g.name?g.name:g.from+" - "+g.to),o=f.map(g=>g.color)}else this.isBarsDistributed&&(s=r.labelData.labels.slice());r.config.legend.customLegendItems.length&&(s=r.config.legend.customLegendItems);const l=r.formatters.legendFormatter,u=r.config.legend.inverseOrder,d=[];r.labelData.seriesGroups.length>1&&r.config.legend.clusterGroupedSeries&&r.labelData.seriesGroups.forEach((f,g)=>{d[g]=ke.createElement("div"),d[g].classList.add("apexcharts-legend-group",`apexcharts-legend-group-${g}`),r.config.legend.clusterGroupedSeriesOrientation==="horizontal"?a.classList.add("apexcharts-legend-group-horizontal"):d[g].classList.add("apexcharts-legend-group-vertical")});for(let f=u?s.length-1:0;u?f>=0:f<=s.length-1;u?f--:f++){const g=l(s[f],{seriesIndex:f,w:r});let p=!1,b=!1;if(r.globals.collapsedSeries.length>0)for(let D=0;D<r.globals.collapsedSeries.length;D++)r.globals.collapsedSeries[D].index===f&&(p=!0);if(r.globals.ancillaryCollapsedSeriesIndices.length>0)for(let D=0;D<r.globals.ancillaryCollapsedSeriesIndices.length;D++)r.globals.ancillaryCollapsedSeriesIndices[D]===f&&(b=!0);const y=this.createLegendMarker({i:f,fillcolor:o});ve.setAttrs(y,{rel:f+1,"data:collapsed":p||b}),(p||b)&&y.classList.add("apexcharts-inactive-legend");const x=ke.createElement("div");if(r.config.chart.accessibility.enabled&&r.config.chart.accessibility.keyboard.enabled){x.setAttribute("role","button"),x.setAttribute("tabindex","0");const D=Array.isArray(g)?g.join(" "):g,M=p||b,A=M?"hidden":"visible";x.setAttribute("aria-label",`${D}, ${A}. Press Enter or Space to toggle.`),x.setAttribute("aria-pressed",M?"true":"false")}const S=ke.createElement("span");S.classList.add("apexcharts-legend-text"),S.innerHTML=Array.isArray(g)?g.join(" "):g;let C=r.config.legend.labels.useSeriesColors?r.globals.colors[f]:Array.isArray(r.config.legend.labels.colors)?(e=r.config.legend.labels.colors)==null?void 0:e[f]:r.config.legend.labels.colors;C||(C=r.config.chart.foreColor),S.style.color=C,S.style.fontSize=r.config.legend.fontSize,S.style.fontWeight=r.config.legend.fontWeight,S.style.fontFamily=i||r.config.chart.fontFamily,ve.setAttrs(S,{rel:f+1,i:f,"data:default-text":encodeURIComponent(g),"data:collapsed":p||b}),x.appendChild(y),x.appendChild(S);const O=new Zn(this.w);r.config.legend.showForZeroSeries||O.getSeriesTotalByIndex(f)===0&&O.seriesHaveSameValues(f)&&!O.isSeriesNull(f)&&r.globals.collapsedSeriesIndices.indexOf(f)===-1&&r.globals.ancillaryCollapsedSeriesIndices.indexOf(f)===-1&&x.classList.add("apexcharts-hidden-zero-series"),r.config.legend.showForNullSeries||O.isSeriesNull(f)&&r.globals.collapsedSeriesIndices.indexOf(f)===-1&&r.globals.ancillaryCollapsedSeriesIndices.indexOf(f)===-1&&x.classList.add("apexcharts-hidden-null-series"),d.length?r.labelData.seriesGroups.forEach((D,M)=>{var A,T;D.includes((T=(A=r.config.series[f])==null?void 0:A.name)!=null?T:"")&&(a.appendChild(d[M]),d[M].appendChild(x))}):a.appendChild(x),a.classList.add(`apexcharts-align-${r.config.legend.horizontalAlign}`),a.classList.add("apx-legend-position-"+r.config.legend.position),x.classList.add("apexcharts-legend-series"),x.style.margin=`${r.config.legend.itemMargin.vertical}px ${r.config.legend.itemMargin.horizontal}px`,a.style.width=r.config.legend.width?r.config.legend.width+"px":"",a.style.height=r.config.legend.height?r.config.legend.height+"px":"",ve.setAttrs(x,{rel:f+1,seriesName:ee.escapeString(s[f]),"data:collapsed":p||b}),(p||b)&&x.classList.add("apexcharts-inactive-legend"),r.config.legend.onItemClick.toggleDataSeries||x.classList.add("apexcharts-no-click")}r.dom.elWrap.addEventListener("click",t.onLegendClick,!0),r.config.legend.onItemHover.highlightDataSeries&&r.config.legend.customLegendItems.length===0&&(r.dom.elWrap.addEventListener("mousemove",t.onLegendHovered,!0),r.dom.elWrap.addEventListener("mouseout",t.onLegendHovered,!0)),r.config.chart.accessibility.enabled&&r.config.chart.accessibility.keyboard.enabled&&r.dom.elWrap.addEventListener("keydown",t.onLegendKeyDown.bind(t),!0)}setLegendWrapXY(e,t){const r=this.w,a=r.dom.elLegendWrap,i=a.clientHeight;let s=0,o=0;if(r.config.legend.position==="bottom")o=r.globals.svgHeight-Math.min(i,r.globals.svgHeight/2)-5;else if(r.config.legend.position==="top"){const u=new ev(this.w,this.ctx),d=u.dimHelpers.getTitleSubtitleCoords("title").height,f=u.dimHelpers.getTitleSubtitleCoords("subtitle").height;o=(d>0?d-10:0)+(f>0?f-10:0)}a.style.position="absolute",s=s+e+r.config.legend.offsetX,o=o+t+r.config.legend.offsetY,a.style.left=s+"px",a.style.top=o+"px",r.config.legend.position==="right"&&(a.style.left="auto",a.style.right=25+r.config.legend.offsetX+"px"),["width","height"].forEach(u=>{a&&a.style[u]&&(a.style[u]=parseInt(String(r.config.legend[u]),10)+"px")})}legendAlignHorizontal(){const e=this.w,t=e.dom.elLegendWrap;t.style.right="0";const r=new ev(this.w,this.ctx),a=r.dimHelpers.getTitleSubtitleCoords("title"),i=r.dimHelpers.getTitleSubtitleCoords("subtitle"),s=20;let o=0;e.config.legend.position==="top"&&(o=a.height+i.height+e.config.title.margin+e.config.subtitle.margin-10),this.setLegendWrapXY(s,o)}legendAlignVertical(){const e=this.w,t=this.legendHelpers.getLegendDimensions(),r=20;let a=0;e.config.legend.position==="left"&&(a=20),e.config.legend.position==="right"&&(a=e.globals.svgWidth-t.clww-10),this.setLegendWrapXY(a,r)}onLegendHovered(e){var t;const r=this.w,a=e.target,i=a.classList.contains("apexcharts-legend-series")||a.classList.contains("apexcharts-legend-text")||a.classList.contains("apexcharts-legend-marker");if(r.config.chart.type!=="heatmap"&&!this.isBarsDistributed)!a.classList.contains("apexcharts-inactive-legend")&&i&&new Wn(this.ctx.w).toggleSeriesOnHover(e,a);else if(i){const s=parseInt((t=a.getAttribute("rel"))!=null?t:"0",10)-1;this.ctx.events.fireEvent("legendHover",[this.ctx,s,this.w]);const o=new Wn(this.ctx.w);e.type==="mousemove"?o.highlightRangeInSeries(s,"highlight"):e.type==="mouseout"&&o.highlightRangeInSeries(s,"reset")}}onLegendKeyDown(e){const t=this,r=this.w,a=e.target;if((a.classList.contains("apexcharts-legend-series")||a.classList.contains("apexcharts-legend-text")||a.classList.contains("apexcharts-legend-marker"))&&(e.key==="Enter"||e.key===" ")){e.preventDefault();const s=a.getAttribute("rel");t.onLegendClick(e),s!==null&&r.config.legend.onItemClick.toggleDataSeries&&requestAnimationFrame(()=>{const o=r.dom.baseEl.querySelector(`.apexcharts-legend-series[rel="${s}"]`);o&&o.focus()})}}onLegendClick(e){var t;const r=this.w,a=e.target;if(!r.config.legend.customLegendItems.length&&(a.classList.contains("apexcharts-legend-series")||a.classList.contains("apexcharts-legend-text")||a.classList.contains("apexcharts-legend-marker"))){const i=parseInt((t=a.getAttribute("rel"))!=null?t:"0",10)-1,s=a.getAttribute("data:collapsed")==="true",o=this.w.config.chart.events.legendClick;typeof o=="function"&&o(this.ctx,i,this.w),this.ctx.events.fireEvent("legendClick",[this.ctx,i,this.w]);const l=this.w.config.legend.markers.onClick;typeof l=="function"&&a.classList.contains("apexcharts-legend-marker")&&(l(this.ctx,i,this.w),this.ctx.events.fireEvent("legendMarkerClick",[this.ctx,i,this.w])),r.config.chart.type!=="treemap"&&r.config.chart.type!=="heatmap"&&!this.isBarsDistributed&&r.config.legend.onItemClick.toggleDataSeries&&this.legendHelpers.toggleDataSeries(i,s)}}}Zi.registerFeatures({legend:Lie});const Nie=`<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
    <path d="M5 9 2 12l3 3"/>
    <path d="M9 5l3-3 3 3"/>
    <path d="M15 19l-3 3-3-3"/>
    <path d="M19 9l3 3-3 3"/>
    <path d="M2 12h20"/>
    <path d="M12 2v20"/>
</svg>
`,Iie=`<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
    <circle cx="11" cy="11" r="7"/>
    <path d="m21 21-4.3-4.3M8 11h6M11 8v6"/>
</svg>
`,$ie=`<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
    <path d="M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8"/>
    <path d="M3 3v5h5"/>
</svg>
`,Fie=`<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
    <path d="M12 5v14M5 12h14"/>
</svg>
`,kie=`<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
    <path d="M5 12h14"/>
</svg>
`,Hie=`<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
    <path d="M5 3a2 2 0 0 0-2 2"/>
    <path d="M19 3a2 2 0 0 1 2 2"/>
    <path d="M21 19a2 2 0 0 1-2 2"/>
    <path d="M5 21a2 2 0 0 1-2-2"/>
    <path d="M9 3h1M14 3h1M9 21h1M14 21h1M3 9v1M3 14v1M21 9v1M21 14v1"/>
</svg>
`,zie=`<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round">
    <path d="M4 6h16M4 12h16M4 18h16"/>
</svg>
`;class _j{constructor(e,t){this.w=e,this.ctx=t,this.ev=this.w.config.chart.events,this.selectedClass="apexcharts-selected",this.localeValues=this.w.globals.locale.toolbar,this.minX=e.globals.minX,this.maxX=e.globals.maxX,this.elZoom=null,this.elZoomIn=null,this.elZoomOut=null,this.elPan=null,this.elSelection=null,this.elZoomReset=null,this.elMenuIcon=null,this.elMenu=null,this.elMenuItems=[],this.t=null}createToolbar(){const e=this.w,t=()=>ke.createElementNS("http://www.w3.org/1999/xhtml","div"),r=()=>{const l=ke.createElementNS("http://www.w3.org/1999/xhtml","button");return l.setAttribute("type","button"),l},a=t();if(a.setAttribute("class","apexcharts-toolbar"),a.style.top=e.config.chart.toolbar.offsetY+"px",a.style.right=-e.config.chart.toolbar.offsetX+3+"px",e.dom.elWrap.appendChild(a),this.elZoom=r(),this.elZoomIn=r(),this.elZoomOut=r(),this.elPan=r(),this.elSelection=r(),this.elZoomReset=r(),this.elMenuIcon=r(),this.elMenu=t(),this.elCustomIcons=[],this.t=e.config.chart.toolbar.tools,Array.isArray(this.t.customIcons))for(let l=0;l<this.t.customIcons.length;l++)this.elCustomIcons.push(r());const i=[],s=(l,u,d)=>{const f=l.toLowerCase();this.t[f]&&e.config.chart.zoom.enabled&&i.push({el:u,icon:typeof this.t[f]=="string"?this.t[f]:d,title:this.localeValues[l],class:`apexcharts-${f}-icon`})};s("zoomIn",this.elZoomIn,Fie),s("zoomOut",this.elZoomOut,kie);const o=l=>{this.t[l]&&e.config.chart[l].enabled&&i.push({el:l==="zoom"?this.elZoom:this.elSelection,icon:typeof this.t[l]=="string"?this.t[l]:l==="zoom"?Iie:Hie,title:this.localeValues[l==="zoom"?"selectionZoom":"selection"],class:`apexcharts-${l}-icon`})};o("zoom"),o("selection"),this.t.pan&&e.config.chart.zoom.enabled&&i.push({el:this.elPan,icon:typeof this.t.pan=="string"?this.t.pan:Nie,title:this.localeValues.pan,class:"apexcharts-pan-icon"}),s("reset",this.elZoomReset,$ie),this.t.download&&i.push({el:this.elMenuIcon,icon:typeof this.t.download=="string"?this.t.download:zie,title:this.localeValues.menu,class:"apexcharts-menu-icon"});for(let l=0;l<this.elCustomIcons.length;l++)i.push({el:this.elCustomIcons[l],icon:this.t.customIcons[l].icon,title:this.t.customIcons[l].title,index:this.t.customIcons[l].index,class:"apexcharts-toolbar-custom-icon "+this.t.customIcons[l].class});i.forEach((l,u)=>{l.index&&ee.moveIndexInArray(i,u,l.index)});for(let l=0;l<i.length;l++)ve.setAttrs(i[l].el,{class:i[l].class,title:i[l].title,"aria-label":i[l].title}),i[l].el.innerHTML=i[l].icon,a.appendChild(i[l].el);this.elZoom.parentNode&&this.elZoom.setAttribute("aria-pressed",String(!!e.interact.zoomEnabled)),this.elSelection.parentNode&&this.elSelection.setAttribute("aria-pressed",String(!!e.interact.selectionEnabled)),this.elPan.parentNode&&this.elPan.setAttribute("aria-pressed",String(!!e.interact.panEnabled)),this.elMenuIcon.parentNode&&(this.elMenuIcon.setAttribute("aria-haspopup","true"),this.elMenuIcon.setAttribute("aria-expanded","false")),this._createHamburgerMenu(a),e.interact.zoomEnabled?this.elZoom.classList.add(this.selectedClass):e.interact.panEnabled?this.elPan.classList.add(this.selectedClass):e.interact.selectionEnabled&&this.elSelection.classList.add(this.selectedClass),this.addToolbarEventListeners()}_createHamburgerMenu(e){this.elMenuItems=[],e.appendChild(this.elMenu),ve.setAttrs(this.elMenu,{class:"apexcharts-menu",role:"menu"});const t=[{name:"exportSVG",title:this.localeValues.exportToSVG},{name:"exportPNG",title:this.localeValues.exportToPNG},{name:"exportCSV",title:this.localeValues.exportToCSV}];for(let r=0;r<t.length;r++)this.elMenuItems.push(ke.createElementNS("http://www.w3.org/1999/xhtml","div")),this.elMenuItems[r].innerHTML=t[r].title,ve.setAttrs(this.elMenuItems[r],{class:`apexcharts-menu-item ${t[r].name}`,title:t[r].title,role:"menuitem",tabindex:"-1"}),this.elMenu.appendChild(this.elMenuItems[r])}addToolbarEventListeners(){var e,t,r,a,i,s,o,l;(e=this.elZoomReset)==null||e.addEventListener("click",this.handleZoomReset.bind(this)),(t=this.elSelection)==null||t.addEventListener("click",this.toggleZoomSelection.bind(this,"selection")),(r=this.elZoom)==null||r.addEventListener("click",this.toggleZoomSelection.bind(this,"zoom")),(a=this.elZoomIn)==null||a.addEventListener("click",this.handleZoomIn.bind(this)),(i=this.elZoomOut)==null||i.addEventListener("click",this.handleZoomOut.bind(this)),(s=this.elPan)==null||s.addEventListener("click",this.togglePanning.bind(this)),(o=this.elMenuIcon)==null||o.addEventListener("click",this.toggleMenu.bind(this)),this.elMenuItems.forEach(d=>{d.classList.contains("exportSVG")?d.addEventListener("click",this.handleDownload.bind(this,"svg")):d.classList.contains("exportPNG")?d.addEventListener("click",this.handleDownload.bind(this,"png")):d.classList.contains("exportCSV")&&d.addEventListener("click",this.handleDownload.bind(this,"csv"))});for(let d=0;d<this.t.customIcons.length;d++)this.elCustomIcons[d].addEventListener("click",this.t.customIcons[d].click.bind(this,this.ctx,this.ctx.w));[this.elZoomReset,this.elSelection,this.elZoom,this.elZoomIn,this.elZoomOut,this.elPan,this.elMenuIcon,...this.elCustomIcons].forEach(d=>{d.addEventListener("keydown",f=>{if(f.key==="Enter"||f.key===" "){f.preventDefault();const g=d.className;d.click(),requestAnimationFrame(()=>{const p=this.w.dom.baseEl;if(!p)return;const b=g.split(" ").find(x=>x.startsWith("apexcharts-"));if(!b)return;const y=p.querySelector(`.${b}`);y&&y.focus()})}})}),(l=this.elMenuIcon)==null||l.addEventListener("keydown",d=>{var f;(d.key==="ArrowDown"||d.key==="ArrowUp")&&(d.preventDefault(),(f=this.elMenu)!=null&&f.classList.contains("apexcharts-menu-open")||this.toggleMenu(),window.setTimeout(()=>{const g=d.key==="ArrowDown"?0:this.elMenuItems.length-1;this.elMenuItems[g]&&this.elMenuItems[g].focus()},20))}),this.elMenuItems.forEach((d,f)=>{d.addEventListener("keydown",g=>{var p;g.key==="ArrowDown"?(g.preventDefault(),(this.elMenuItems[f+1]||this.elMenuItems[0]).focus()):g.key==="ArrowUp"?(g.preventDefault(),(this.elMenuItems[f-1]||this.elMenuItems[this.elMenuItems.length-1]).focus()):g.key==="Escape"||g.key==="Tab"?(this._closeMenu(),(p=this.elMenuIcon)==null||p.focus(),g.key==="Tab"||g.preventDefault()):(g.key==="Enter"||g.key===" ")&&(g.preventDefault(),d.click())})})}toggleZoomSelection(e){this.ctx.getSyncedCharts().forEach(r=>{r.ctx.toolbar.toggleOtherControls();const a=e==="selection"?r.ctx.toolbar.elSelection:r.ctx.toolbar.elZoom,i=e==="selection"?"selectionEnabled":"zoomEnabled";r.w.globals[i]=!r.w.globals[i],a.classList.contains(r.ctx.toolbar.selectedClass)?a.classList.remove(r.ctx.toolbar.selectedClass):a.classList.add(r.ctx.toolbar.selectedClass),a.setAttribute("aria-pressed",String(r.w.globals[i]))})}getToolbarIconsReference(){const e=this.w;this.elZoom||(this.elZoom=e.dom.baseEl.querySelector(".apexcharts-zoom-icon")),this.elPan||(this.elPan=e.dom.baseEl.querySelector(".apexcharts-pan-icon")),this.elSelection||(this.elSelection=e.dom.baseEl.querySelector(".apexcharts-selection-icon"))}enableZoomPanFromToolbar(e){this.toggleOtherControls(),e==="pan"?this.w.interact.panEnabled=!0:this.w.interact.zoomEnabled=!0;const t=e==="pan"?this.elPan:this.elZoom,r=e==="pan"?this.elZoom:this.elPan;t&&t.classList.add(this.selectedClass),r&&r.classList.remove(this.selectedClass)}togglePanning(){this.ctx.getSyncedCharts().forEach(t=>{t.ctx.toolbar.toggleOtherControls(),t.w.interact.panEnabled=!t.w.interact.panEnabled,t.ctx.toolbar.elPan.classList.contains(t.ctx.toolbar.selectedClass)?t.ctx.toolbar.elPan.classList.remove(t.ctx.toolbar.selectedClass):t.ctx.toolbar.elPan.classList.add(t.ctx.toolbar.selectedClass),t.ctx.toolbar.elPan.setAttribute("aria-pressed",String(t.w.interact.panEnabled))})}toggleOtherControls(){const e=this.w;e.interact.panEnabled=!1,e.interact.zoomEnabled=!1,e.interact.selectionEnabled=!1,this.getToolbarIconsReference(),[this.elPan,this.elSelection,this.elZoom].forEach(r=>{r&&r.classList.remove(this.selectedClass)})}_currentXRange(){const e=this.w;return e.axisFlags.isRangeBar?{minX:e.globals.minY,maxX:e.globals.maxY}:{minX:e.globals.minX,maxX:e.globals.maxX}}handleZoomIn(){const e=this.w,{minX:t,maxX:r}=this._currentXRange();this.minX=t,this.maxX=r;const a=(t+r)/2,i=(t+a)/2,s=(r+a)/2,o=this._getNewMinXMaxX(i,s);e.interact.disableZoomIn||this.zoomUpdateOptions(o.minX,o.maxX)}handleZoomOut(){const e=this.w,{minX:t,maxX:r}=this._currentXRange();if(this.minX=t,this.maxX=r,e.config.xaxis.type==="datetime"&&new Date(t).getUTCFullYear()<1e3)return;const a=(t+r)/2,i=t-(a-t),s=r-(a-r),o=this._getNewMinXMaxX(i,s);e.interact.disableZoomOut||this.zoomUpdateOptions(o.minX,o.maxX)}_getNewMinXMaxX(e,t){const r=this.w.config.xaxis.convertedCatToNumeric;return{minX:r?Math.floor(e):e,maxX:r?Math.floor(t):t}}zoomUpdateOptions(e,t){const r=this.w;if(e===void 0&&t===void 0){this.handleZoomReset();return}if(r.config.xaxis.convertedCatToNumeric&&(e<1&&(e=1,t=r.globals.dataPoints),t-e<2))return;let a={min:e,max:t};const i=this.getBeforeZoomRange(a,void 0);i&&(a=i.xaxis);const s={xaxis:a};if(!r.globals.initialConfig)return;const o=ee.clone(r.globals.initialConfig.yaxis);r.config.chart.group||(s.yaxis=o),this.w.interact.zoomed=!0,this.ctx.updateHelpers._updateOptions(s,!1,this.w.config.chart.animations.dynamicAnimation.enabled),this.zoomCallback(a,o)}zoomCallback(e,t){typeof this.ev.zoomed=="function"&&(this.ev.zoomed(this.ctx,{xaxis:e,yaxis:t}),this.ctx.events.fireEvent("zoomed",{xaxis:e,yaxis:t}))}getBeforeZoomRange(e,t){let r=null;return typeof this.ev.beforeZoom=="function"&&(r=this.ev.beforeZoom(this,{xaxis:e,yaxis:t})),r}toggleMenu(){window.setTimeout(()=>{var e,t,r;(e=this.elMenu)!=null&&e.classList.contains("apexcharts-menu-open")?this._closeMenu():((t=this.elMenu)==null||t.classList.add("apexcharts-menu-open"),(r=this.elMenuIcon)==null||r.setAttribute("aria-expanded","true"))},0)}_closeMenu(){var e,t;(e=this.elMenu)==null||e.classList.remove("apexcharts-menu-open"),(t=this.elMenuIcon)==null||t.setAttribute("aria-expanded","false")}handleDownload(e){const t=this.w,r=new Dj(this.w,this.ctx);switch(e){case"svg":r.exportToSVG();break;case"png":r.exportToPng();break;case"csv":r.exportToCSV({series:t.config.series,columnDelimiter:t.config.chart.toolbar.export.csv.columnDelimiter});break}}handleZoomReset(){this.ctx.getSyncedCharts().forEach(t=>{const r=t.w;if(!r.interact.zoomed)return;if(r.globals.lastXAxis.min=r.globals.initialConfig.xaxis.min,r.globals.lastXAxis.max=r.globals.initialConfig.xaxis.max,t.updateHelpers.revertDefaultAxisMinMax(),typeof r.config.chart.events.beforeResetZoom=="function"){const i=r.config.chart.events.beforeResetZoom(t,r);i&&t.updateHelpers.revertDefaultAxisMinMax(i)}typeof r.config.chart.events.zoomed=="function"&&t.ctx.toolbar.zoomCallback({min:r.config.xaxis.min,max:r.config.xaxis.max});const a=t.ctx.series.emptyCollapsedSeries(ee.clone(r.globals.initialSeries));t.updateHelpers._updateSeries(a,r.config.chart.animations.dynamicAnimation.enabled),r.interact.zoomed=!1})}destroy(){this.elZoom=null,this.elZoomIn=null,this.elZoomOut=null,this.elPan=null,this.elSelection=null,this.elZoomReset=null,this.elMenuIcon=null}}class Bie extends _j{constructor(e,t){super(e,t),this.w=e,this.ctx=t,this.dragged=!1,this.graphics=new ve(this.w),this.eventList=["mousedown","mouseleave","mousemove","touchstart","touchmove","mouseup","touchend","wheel"],this.clientX=0,this.clientY=0,this.startX=0,this.endX=0,this.dragX=0,this.startY=0,this.endY=0,this.dragY=0,this.moveDirection="none",this.debounceTimer=null,this.debounceDelay=100,this.wheelDelay=400}init({xyRatios:e}){const t=this.w,r=this;this.xyRatios=e,this.zoomRect=this.graphics.drawRect(0,0,0,0),this.selectionRect=this.graphics.drawRect(0,0,0,0),this.gridRect=t.dom.baseEl.querySelector(".apexcharts-grid"),this.constraints=new kae(0,0,t.layout.gridWidth,t.layout.gridHeight),this.zoomRect.node.classList.add("apexcharts-zoom-rect"),this.selectionRect.node.classList.add("apexcharts-selection-rect"),t.dom.Paper.add(this.zoomRect),t.dom.Paper.add(this.selectionRect),t.config.chart.selection.type==="x"?this.slDraggableRect=this.selectionRect.draggable({minX:0,minY:0,maxX:t.layout.gridWidth,maxY:t.layout.gridHeight}).on("dragmove.namespace",this.selectionDragging.bind(this,"dragging")):t.config.chart.selection.type==="y"?this.slDraggableRect=this.selectionRect.draggable({minX:0,maxX:t.layout.gridWidth}).on("dragmove.namespace",this.selectionDragging.bind(this,"dragging")):this.slDraggableRect=this.selectionRect.draggable().on("dragmove.namespace",this.selectionDragging.bind(this,"dragging")),this.preselectedSelection(),this.hoverArea=t.dom.baseEl.querySelector(`${t.globals.chartClass} .apexcharts-svg`),this.hoverArea&&(this.hoverArea.classList.add("apexcharts-zoomable"),this.eventList.forEach(a=>{var i;(i=this.hoverArea)==null||i.addEventListener(a,r.svgMouseEvents.bind(r,e),{capture:!1,passive:!0})}),t.config.chart.zoom.enabled&&t.config.chart.zoom.allowMouseWheelZoom&&this.hoverArea.addEventListener("wheel",r.mouseWheelEvent.bind(r),{capture:!1,passive:!1}))}destroy(){this.slDraggableRect&&(this.slDraggableRect.draggable(!1),this.slDraggableRect.off(),this.selectionRect.off()),this.selectionRect=null,this.zoomRect=null,this.gridRect=null}svgMouseEvents(e,t){var r;const a=this.w,i=this.ctx.toolbar,s=a.interact.zoomEnabled?a.config.chart.zoom.type:a.config.chart.selection.type,o=a.config.chart.toolbar.autoSelected;if(t.shiftKey?(this.shiftWasPressed=!0,i.enableZoomPanFromToolbar(o==="pan"?"zoom":"pan")):this.shiftWasPressed&&(i.enableZoomPanFromToolbar(o),this.shiftWasPressed=!1),!t.target)return;const l=t.target.classList;let u;if(t.target.parentNode&&t.target.parentNode!==null&&(u=t.target.parentNode.classList),!(l.contains("apexcharts-legend-marker")||l.contains("apexcharts-legend-text")||u&&u.contains("apexcharts-toolbar"))){if(this.clientX=t.type==="touchmove"||t.type==="touchstart"?t.touches[0].clientX:t.type==="touchend"?t.changedTouches[0].clientX:t.clientX,this.clientY=t.type==="touchmove"||t.type==="touchstart"?t.touches[0].clientY:t.type==="touchend"?t.changedTouches[0].clientY:t.clientY,t.type==="mousedown"&&t.which===1||t.type==="touchstart"){const f=(r=this.gridRect)==null?void 0:r.getBoundingClientRect();if(!f)return;this.startX=this.clientX-f.left-a.globals.barPadForNumericAxis,this.startY=this.clientY-f.top,this.dragged=!1,this.w.interact.mousedown=!0}(t.type==="mousemove"&&t.which===1||t.type==="touchmove")&&(this.dragged=!0,a.interact.panEnabled?(a.interact.selection=null,this.w.interact.mousedown&&this.panDragging({context:this,zoomtype:s,xyRatios:e})):(this.w.interact.mousedown&&a.interact.zoomEnabled||this.w.interact.mousedown&&a.interact.selectionEnabled)&&(this.selection=this.selectionDrawing({context:this,zoomtype:s}))),(t.type==="mouseup"||t.type==="touchend"||t.type==="mouseleave")&&this.handleMouseUp({zoomtype:s}),this.makeSelectionRectDraggable()}}handleMouseUp({zoomtype:e,isResized:t}){var r;const a=this.w,i=(r=this.gridRect)==null?void 0:r.getBoundingClientRect();i&&(this.w.interact.mousedown||t)&&(this.endX=this.clientX-i.left-a.globals.barPadForNumericAxis,this.endY=this.clientY-i.top,this.dragX=Math.abs(this.endX-this.startX),this.dragY=Math.abs(this.endY-this.startY),(a.interact.zoomEnabled||a.interact.selectionEnabled)&&this.selectionDrawn({context:this,zoomtype:e})),a.interact.zoomEnabled&&this.hideSelectionRect(this.selectionRect),this.dragged=!1,this.w.interact.mousedown=!1}mouseWheelEvent(e){const t=this.w;e.preventDefault();const r=Date.now();r-t.interact.lastWheelExecution>this.wheelDelay&&(this.executeMouseWheelZoom(e),t.interact.lastWheelExecution=r),this.debounceTimer&&clearTimeout(this.debounceTimer),this.debounceTimer=setTimeout(()=>{r-t.interact.lastWheelExecution>this.wheelDelay&&(this.executeMouseWheelZoom(e),t.interact.lastWheelExecution=r)},this.debounceDelay)}executeMouseWheelZoom(e){var t,r,a;const i=this.w;this.minX=i.axisFlags.isRangeBar?i.globals.minY:i.globals.minX,this.maxX=i.axisFlags.isRangeBar?i.globals.maxY:i.globals.maxX;const s=(t=this.gridRect)==null?void 0:t.getBoundingClientRect();if(!s)return;const o=(e.clientX-s.left)/s.width,l=this.minX,u=this.maxX,d=u-l,f=.5,g=1.5;let p,b,y;if(e.deltaY<0){p=f*d;const S=l+o*d;b=S-p/2,y=S+p/2}else p=g*d,b=l-p/2,y=u+p/2;if(!i.axisFlags.isRangeBar){const S=(r=i.globals.dataReducerRawMinX)!=null?r:i.globals.initialMinX,C=(a=i.globals.dataReducerRawMaxX)!=null?a:i.globals.initialMaxX;b=Math.max(b,S),y=Math.min(y,C);const O=i.globals.minXDiff>0&&isFinite(i.globals.minXDiff)?i.globals.minXDiff:0,D=Math.max(O*2,(C-S)*1e-6);if(y-b<D){const M=(b+y)/2;b=M-D/2,y=M+D/2}}const x=this._getNewMinXMaxX(b,y);!isNaN(x.minX)&&!isNaN(x.maxX)&&this.zoomUpdateOptions(x.minX,x.maxX)}makeSelectionRectDraggable(){const e=this.w;if(!this.selectionRect)return;const t=this.selectionRect.node.getBoundingClientRect();t.width>0&&t.height>0&&(this.selectionRect.select(!1).resize(!1),this.selectionRect.select({createRot:()=>{},updateRot:()=>{},createHandle:(r,a,i,s,o)=>o==="l"||o==="r"?r.circle(8).css({"stroke-width":1,stroke:"#333",fill:"#fff"}):r.circle(0),updateHandle:(r,a)=>r.center(a[0],a[1])}).resize().on("resize",()=>{const r=e.interact.zoomEnabled?e.config.chart.zoom.type:e.config.chart.selection.type;this.handleMouseUp({zoomtype:r,isResized:!0})}))}preselectedSelection(){const e=this.w,t=this.xyRatios;if(!e.interact.zoomEnabled){if(typeof e.interact.selection<"u"&&e.interact.selection!==null)this.drawSelectionRect(Lt(ct({},e.interact.selection),{translateX:e.layout.translateX,translateY:e.layout.translateY}));else if(e.config.chart.selection.xaxis.min!==void 0&&e.config.chart.selection.xaxis.max!==void 0){let r=(e.config.chart.selection.xaxis.min-e.globals.minX)/t.xRatio,a=e.layout.gridWidth-(e.globals.maxX-e.config.chart.selection.xaxis.max)/t.xRatio-r;e.axisFlags.isRangeBar&&(r=(e.config.chart.selection.xaxis.min-e.globals.yAxisScale[0].niceMin)/t.invertedYRatio,a=(e.config.chart.selection.xaxis.max-e.config.chart.selection.xaxis.min)/t.invertedYRatio);const i={x:r,y:0,width:a,height:e.layout.gridHeight,translateX:e.layout.translateX,translateY:e.layout.translateY,selectionEnabled:!0};this.drawSelectionRect(i),this.makeSelectionRectDraggable(),typeof e.config.chart.events.selection=="function"&&e.config.chart.events.selection(this.ctx,{xaxis:{min:e.config.chart.selection.xaxis.min,max:e.config.chart.selection.xaxis.max},yaxis:{}})}}}drawSelectionRect({x:e,y:t,width:r,height:a,translateX:i=0,translateY:s=0}){const o=this.w,l=this.zoomRect,u=this.selectionRect;if(this.dragged||o.interact.selection!==null){const d={transform:"translate("+i+", "+s+")"};o.interact.zoomEnabled&&this.dragged&&(r<0&&(r=1),l.attr({x:e,y:t,width:r,height:a,fill:o.config.chart.zoom.zoomedArea.fill.color,"fill-opacity":o.config.chart.zoom.zoomedArea.fill.opacity,stroke:o.config.chart.zoom.zoomedArea.stroke.color,"stroke-width":o.config.chart.zoom.zoomedArea.stroke.width,"stroke-opacity":o.config.chart.zoom.zoomedArea.stroke.opacity}),ve.setAttrs(l.node,d)),o.interact.selectionEnabled&&(u.attr({x:e,y:t,width:r>0?r:0,height:a>0?a:0,fill:o.config.chart.selection.fill.color,"fill-opacity":o.config.chart.selection.fill.opacity,stroke:o.config.chart.selection.stroke.color,"stroke-width":o.config.chart.selection.stroke.width,"stroke-dasharray":o.config.chart.selection.stroke.dashArray,"stroke-opacity":o.config.chart.selection.stroke.opacity}),ve.setAttrs(u.node,d))}}hideSelectionRect(e){e&&e.attr({x:0,y:0,width:0,height:0})}selectionDrawing({context:e,zoomtype:t}){var r;const a=this.w,i=e,s=(r=this.gridRect)==null?void 0:r.getBoundingClientRect();if(!s)return;const o=i.startX-1,l=i.startY;let u=!1,d=!1;const f=i.clientX-s.left-a.globals.barPadForNumericAxis,g=i.clientY-s.top;let p=f-o,b=g-l,y={translateX:a.layout.translateX,translateY:a.layout.translateY};return Math.abs(p+o)>a.layout.gridWidth?p=a.layout.gridWidth-o:f<0&&(p=o),o>f&&(u=!0,p=Math.abs(p)),l>g&&(d=!0,b=Math.abs(b)),t==="x"?y={x:u?o-p:o,y:0,width:p,height:a.layout.gridHeight}:t==="y"?y={x:0,y:d?l-b:l,width:a.layout.gridWidth,height:b}:y={x:u?o-p:o,y:d?l-b:l,width:p,height:b},y=Lt(ct({},y),{translateX:a.layout.translateX,translateY:a.layout.translateY}),i.drawSelectionRect(y),i.selectionDragging("resizing"),y}selectionDragging(e,t){var r;const a=this.w;if(!t)return;t.preventDefault();const{handler:i,box:s}=t.detail,o=this.constraints;let{x:l,y:u}=s;l<o.x&&(l=o.x),u<o.y&&(u=o.y),s.x2>o.x2&&(l=o.x2-s.w),s.y2>o.y2&&(u=o.y2-s.h),i.move(l,u);const d=this.xyRatios,f=this.selectionRect;let g=0;e==="resizing"&&(g=30);const p=y=>parseFloat(f.node.getAttribute(y)),b={x:p("x"),y:p("y"),width:p("width"),height:p("height")};a.interact.selection=b,typeof a.config.chart.events.selection=="function"&&a.interact.selectionEnabled&&(clearTimeout((r=this.w.globals.selectionResizeTimer)!=null?r:void 0),this.w.globals.selectionResizeTimer=window.setTimeout(()=>{var y;const x=(y=this.gridRect)==null?void 0:y.getBoundingClientRect();if(!x)return;const S=f.node.getBoundingClientRect();let C,O,D,M;if(a.axisFlags.isRangeBar)C=a.globals.yAxisScale[0].niceMin+(S.left-x.left)*d.invertedYRatio,O=a.globals.yAxisScale[0].niceMin+(S.right-x.left)*d.invertedYRatio,D=0,M=1;else{if(!a.globals.xAxisScale)return;C=a.globals.xAxisScale.niceMin+(S.left-x.left)*d.xRatio,O=a.globals.xAxisScale.niceMin+(S.right-x.left)*d.xRatio,D=a.globals.yAxisScale[0].niceMin+(x.bottom-S.bottom)*d.yRatio[0],M=a.globals.yAxisScale[0].niceMax-(S.top-x.top)*d.yRatio[0]}const A={xaxis:{min:C,max:O},yaxis:{min:D,max:M}};a.config.chart.events.selection(this.ctx,A),a.config.chart.brush.enabled&&a.config.chart.events.brushScrolled!==void 0&&a.config.chart.events.brushScrolled(this.ctx,A)},g))}selectionDrawn({context:e,zoomtype:t}){var r,a;const i=this.w,s=e,o=this.xyRatios,l=this.ctx.toolbar,u=i.interact.zoomEnabled?s.zoomRect.node.getBoundingClientRect():s.selectionRect.node.getBoundingClientRect(),d=s.gridRect.getBoundingClientRect(),f=u.left-d.left-i.globals.barPadForNumericAxis,g=u.right-d.left-i.globals.barPadForNumericAxis,p=u.top-d.top,b=u.bottom-d.top;let y,x;if(i.axisFlags.isRangeBar)y=i.globals.yAxisScale[0].niceMin+f*o.invertedYRatio,x=i.globals.yAxisScale[0].niceMin+g*o.invertedYRatio;else{const O=(a=(r=i.globals.xAxisScale)==null?void 0:r.niceMin)!=null?a:0;y=O+f*o.xRatio,x=O+g*o.xRatio}const S=[],C=[];if(i.config.yaxis.forEach((O,D)=>{const M=i.globals.seriesYAxisMap[D][0],A=i.globals.yAxisScale[D].niceMax-o.yRatio[M]*p,T=i.globals.yAxisScale[D].niceMax-o.yRatio[M]*b;S.push(A),C.push(T)}),s.dragged&&(s.dragX>10||s.dragY>10)&&y!==x){if(i.interact.zoomEnabled){if(!i.globals.initialConfig)return;let O=ee.clone(i.globals.initialConfig.yaxis),D=ee.clone(i.globals.initialConfig.xaxis);if(i.interact.zoomed=!0,i.config.xaxis.convertedCatToNumeric&&(y=Math.floor(y),x=Math.floor(x),y<1&&(y=1,x=i.globals.dataPoints),x-y<2&&(x=y+1)),(t==="xy"||t==="x")&&(D={min:y,max:x}),(t==="xy"||t==="y")&&O.forEach((A,T)=>{O[T].min=C[T],O[T].max=S[T]}),l){const A=l.getBeforeZoomRange(D,O);A&&(D=A.xaxis?A.xaxis:D,O=A.yaxis?A.yaxis:O)}const M={xaxis:D};i.config.chart.group||(M.yaxis=O),s.ctx.updateHelpers._updateOptions(M,!1,s.w.config.chart.animations.dynamicAnimation.enabled),typeof i.config.chart.events.zoomed=="function"&&l.zoomCallback(D,O)}else if(i.interact.selectionEnabled){let O=null,D=null;if(D={min:y,max:x},t==="xy"||t==="y"){const M=ee.clone(i.config.yaxis);O=M,M.forEach((A,T)=>{M[T].min=C[T],M[T].max=S[T]})}i.interact.selection=s.selection,typeof i.config.chart.events.selection=="function"&&i.config.chart.events.selection(s.ctx,{xaxis:D,yaxis:O})}}}panDragging({context:e}){var t;const r=this.w,a=e;if(typeof r.interact.lastClientPosition.x<"u"){const o=r.interact.lastClientPosition.x-a.clientX,l=((t=r.interact.lastClientPosition.y)!=null?t:0)-a.clientY;Math.abs(o)>Math.abs(l)&&o>0?this.moveDirection="left":Math.abs(o)>Math.abs(l)&&o<0?this.moveDirection="right":Math.abs(l)>Math.abs(o)&&l>0?this.moveDirection="up":Math.abs(l)>Math.abs(o)&&l<0&&(this.moveDirection="down")}r.interact.lastClientPosition={x:a.clientX,y:a.clientY};const i=r.axisFlags.isRangeBar?r.globals.minY:r.globals.minX,s=r.axisFlags.isRangeBar?r.globals.maxY:r.globals.maxX;a.panScrolled(i,s)}panScrolled(e,t){var r,a;const i=this.w,s=this.xyRatios;if(!i.globals.initialConfig)return;const o=ee.clone(i.globals.initialConfig.yaxis);let l=s.xRatio,u=i.globals.minX,d=i.globals.maxX;if(i.axisFlags.isRangeBar&&(l=s.invertedYRatio,u=i.globals.minY,d=i.globals.maxY),this.moveDirection==="left"?(e=u+i.layout.gridWidth/15*l,t=d+i.layout.gridWidth/15*l):this.moveDirection==="right"&&(e=u-i.layout.gridWidth/15*l,t=d-i.layout.gridWidth/15*l),!i.axisFlags.isRangeBar){const p=(r=i.globals.dataReducerRawMinX)!=null?r:i.globals.initialMinX,b=(a=i.globals.dataReducerRawMaxX)!=null?a:i.globals.initialMaxX;(e<p||t>b)&&(e=u,t=d)}const g={xaxis:{min:e,max:t}};i.config.chart.group||(g.yaxis=o),this.updateScrolledChart(g,e,t)}updateScrolledChart(e,t,r){const a=this.w;if(this.ctx.updateHelpers._updateOptions(e,!1,!1),typeof a.config.chart.events.scrolled=="function"){const i={xaxis:{min:t,max:r}};a.config.chart.events.scrolled(this.ctx,i),this.ctx.events.fireEvent("scrolled",i)}}}Zi.registerFeatures({toolbar:_j,zoomPanSelection:Bie});let zv=class{constructor(e){this.w=e.w,this.annoCtx=e}setOrientations(e,t=null){var r,a;const i=this.w;if(e.label.orientation==="vertical"){const s=t!==null?t:0,o=i.dom.baseEl.querySelector(`.apexcharts-xaxis-annotations .apexcharts-xaxis-annotation-label[rel='${s}']`);if(o!==null){const l=o.getBBox();o.setAttribute("x",String(parseFloat((r=o.getAttribute("x"))!=null?r:"0")-l.height+4));const u=e.label.position==="top"?l.width:-l.width;o.setAttribute("y",String(parseFloat((a=o.getAttribute("y"))!=null?a:"0")+u));const{x:d,y:f}=this.annoCtx.graphics.rotateAroundCenter(o);o.setAttribute("transform",`rotate(-90 ${d} ${f})`)}}}addBackgroundToAnno(e,t){const r=this.w;if(!e||!t.label.text||!String(t.label.text).trim())return null;const a=r.dom.baseEl.querySelector(".apexcharts-grid");if(!a)return null;const i=a.getBoundingClientRect(),s=a.getBBox(),o=i.width/s.width||1,l=e.getBoundingClientRect();let{left:u,right:d,top:f,bottom:g}=t.label.style.padding;t.label.orientation==="vertical"&&([f,g,u,d]=[u,d,f,g]);const p=(l.left-i.left)/o-u,b=(l.top-i.top)/o-f,y=this.annoCtx.graphics.drawRect(p-r.globals.barPadForNumericAxis,b,l.width/o+u+d,l.height/o+f+g,t.label.borderRadius,t.label.style.background,1,t.label.borderWidth,t.label.borderColor,0);return t.id&&y.node.classList.add(t.id),y}annotationsBackground(){const e=this.w,t=(r,a,i)=>{const s=e.dom.baseEl.querySelector(`.apexcharts-${i}-annotations .apexcharts-${i}-annotation-label[rel='${a}']`);if(s){const o=s.parentNode,l=this.addBackgroundToAnno(s,r);if(l){o?.insertBefore(l.node,s);const u=s.getAttribute("x");u!==null&&Es(l,parseFloat(u),e),r.label.mouseEnter&&l.node.addEventListener("mouseenter",r.label.mouseEnter.bind(this,r)),r.label.mouseLeave&&l.node.addEventListener("mouseleave",r.label.mouseLeave.bind(this,r)),r.label.click&&l.node.addEventListener("click",r.label.click.bind(this,r))}}};e.config.annotations.xaxis.forEach((r,a)=>t(r,a,"xaxis")),e.config.annotations.yaxis.forEach((r,a)=>t(r,a,"yaxis")),e.config.annotations.points.forEach((r,a)=>t(r,a,"point"))}getY1Y2(e,t){var r,a;const i=this.w,s=e==="y1"?t.y:t.y2;let o,l=!1;if(this.annoCtx.invertAxis){const u=i.config.xaxis.convertedCatToNumeric?i.labelData.categoryLabels:i.labelData.labels,d=u.indexOf(s),f=i.dom.baseEl.querySelector(`.apexcharts-yaxis-texts-g text:nth-child(${d+1})`);o=f?parseFloat((r=f.getAttribute("y"))!=null?r:"0"):(i.layout.gridHeight/u.length-1)*(d+1)-i.globals.barHeight,t.seriesIndex!==void 0&&i.globals.barHeight&&(o-=i.globals.barHeight/2*(i.seriesData.series.length-1)-i.globals.barHeight*t.seriesIndex)}else{const u=i.globals.seriesYAxisMap[t.yAxisIndex][0],d=i.config.yaxis[t.yAxisIndex].logarithmic?new Zn(this.w).getLogVal(i.config.yaxis[t.yAxisIndex].logBase,s,u)/i.globals.yLogRatio[u]:(s-i.globals.minYArr[u])/(i.globals.yRange[u]/i.layout.gridHeight);o=i.layout.gridHeight-Math.min(Math.max(d,0),i.layout.gridHeight),l=d>i.layout.gridHeight||d<0,t.marker&&(t.y===void 0||t.y===null)&&(o=0),(a=i.config.yaxis[t.yAxisIndex])!=null&&a.reversed&&(o=d)}return typeof s=="string"&&s.includes("px")&&(o=parseFloat(s)),{yP:o,clipped:l}}getX1X2(e,t){const r=this.w,a=e==="x1"?t.x:t.x2,i=this.annoCtx.invertAxis?r.globals.minY:r.globals.minX,s=this.annoCtx.invertAxis?r.globals.maxY:r.globals.maxX,o=this.annoCtx.invertAxis?r.globals.yRange[0]:r.globals.xRange;let l=!1,u=this.annoCtx.inversedReversedAxis?(s-a)/(o/r.layout.gridWidth):(a-i)/(o/r.layout.gridWidth);return(r.config.xaxis.type==="category"||r.config.xaxis.convertedCatToNumeric)&&!this.annoCtx.invertAxis&&!r.axisFlags.dataFormatXNumeric&&(r.config.chart.sparkline.enabled||(u=this.getStringX(a))),typeof a=="string"&&a.includes("px")&&(u=parseFloat(a)),a==null&&t.marker&&(u=r.layout.gridWidth),t.seriesIndex!==void 0&&r.globals.barWidth&&!this.annoCtx.invertAxis&&(u-=r.globals.barWidth/2*(r.seriesData.series.length-1)-r.globals.barWidth*t.seriesIndex),typeof u!="number"&&(u=0,l=!0),parseFloat(u.toFixed(10))>parseFloat(r.layout.gridWidth.toFixed(10))?(u=r.layout.gridWidth,l=!0):u<0&&(u=0,l=!0),{x:u,clipped:l}}getStringX(e){var t;const r=this.w;let a=e;if(r.config.xaxis.convertedCatToNumeric&&r.labelData.categoryLabels.length){const o=String(e);e=r.labelData.categoryLabels.findIndex(l=>String(l)===o)+1}const i=r.labelData.labels.map(o=>Array.isArray(o)?o.join(" "):o).indexOf(e),s=r.dom.baseEl.querySelector(`.apexcharts-xaxis-texts-g text:nth-child(${i+1})`);return s&&(a=parseFloat((t=s.getAttribute("x"))!=null?t:"0")),a}};class Yie{constructor(e){this.w=e.w,this.annoCtx=e,this.invertAxis=this.annoCtx.invertAxis,this.helpers=new zv(this.annoCtx)}addXaxisAnnotation(e,t,r){const a=this.w,i=this.helpers.getX1X2("x1",e);let s=i.x;const o=i.clipped;let l=!0,u;const d=e.label.text,f=e.strokeDashArray;if(ee.isNumber(s)){if(e.x2===null||typeof e.x2>"u"){if(!o){const g=this.annoCtx.graphics.drawLine(s+e.offsetX,0+e.offsetY,s+e.offsetX,a.layout.gridHeight+e.offsetY,e.borderColor,f,e.borderWidth);t.appendChild(g.node),e.id&&g.node.classList.add(e.id),Es(g,s+e.offsetX,a)}}else{const g=this.helpers.getX1X2("x2",e);if(u=g.x,l=g.clipped,u<s){const b=s;s=u,u=b}const p=this.annoCtx.graphics.drawRect(s+e.offsetX,0+e.offsetY,u-s,a.layout.gridHeight+e.offsetY,0,e.fillColor,e.opacity,1,e.borderColor,f);p.node.classList.add("apexcharts-annotation-rect"),p.attr("clip-path",`url(#gridRectMask${a.globals.cuid})`),t.appendChild(p.node),e.id&&p.node.classList.add(e.id),Es(p,s+e.offsetX,a)}if(!(o&&l)){const g=this.annoCtx.graphics.getTextRects(d,e.label.style.fontSize),p=e.label.position==="top"?4:e.label.position==="center"?a.layout.gridHeight/2+(e.label.orientation==="vertical"?g.width/2:0):a.layout.gridHeight,b=this.annoCtx.graphics.drawText({x:s+e.label.offsetX,y:p+e.label.offsetY-(e.label.orientation==="vertical"?e.label.position==="top"?g.width/2-12:-g.width/2:0),text:d,textAnchor:e.label.textAnchor,fontSize:e.label.style.fontSize,fontFamily:e.label.style.fontFamily,fontWeight:e.label.style.fontWeight,foreColor:e.label.style.color,cssClass:`apexcharts-xaxis-annotation-label ${e.label.style.cssClass} ${e.id?e.id:""}`});b.attr({rel:r}),t.appendChild(b.node),Es(b,s+e.label.offsetX,a),this.annoCtx.helpers.setOrientations(e,r)}}}drawXAxisAnnotations(){const e=this.w,t=this.annoCtx.graphics.group({class:"apexcharts-xaxis-annotations"});return e.config.annotations.xaxis.map((r,a)=>{this.addXaxisAnnotation(r,t.node,a)}),t}}class jie{constructor(e){this.w=e.w,this.annoCtx=e,this.helpers=new zv(this.annoCtx),this.axesUtils=new xo(this.annoCtx.w,{theme:this.annoCtx.theme,timeScale:this.annoCtx.timeScale})}addYaxisAnnotation(e,t,r){const a=this.w,i=e.strokeDashArray;let s=this.helpers.getY1Y2("y1",e),o=s.yP;const l=s.clipped;let u,d=!0,f=!1;const g=e.label.text;if(e.y2===null||typeof e.y2>"u"){if(!l){f=!0;const p=this.annoCtx.graphics.drawLine(0+e.offsetX,o+e.offsetY,this._getYAxisAnnotationWidth(e),o+e.offsetY,e.borderColor,i,e.borderWidth);t.appendChild(p.node),e.id&&p.node.classList.add(e.id)}}else{if(s=this.helpers.getY1Y2("y2",e),u=s.yP,d=s.clipped,u>o){const p=o;o=u,u=p}if(!(l&&d)){f=!0;const p=this.annoCtx.graphics.drawRect(0+e.offsetX,u+e.offsetY,this._getYAxisAnnotationWidth(e),o-u,0,e.fillColor,e.opacity,1,e.borderColor,i);p.node.classList.add("apexcharts-annotation-rect"),p.attr("clip-path",`url(#gridRectMask${a.globals.cuid})`),t.appendChild(p.node),e.id&&p.node.classList.add(e.id)}}if(f){const p=e.label.position==="right"?a.layout.gridWidth:e.label.position==="center"?a.layout.gridWidth/2:0,b=this.annoCtx.graphics.drawText({x:p+e.label.offsetX,y:(u??o)+e.label.offsetY-3,text:g,textAnchor:e.label.textAnchor,fontSize:e.label.style.fontSize,fontFamily:e.label.style.fontFamily,fontWeight:e.label.style.fontWeight,foreColor:e.label.style.color,cssClass:`apexcharts-yaxis-annotation-label ${e.label.style.cssClass} ${e.id?e.id:""}`});b.attr({rel:r}),t.appendChild(b.node)}}_getYAxisAnnotationWidth(e){const t=this.w;let r=t.layout.gridWidth;return e.width.indexOf("%")>-1?r=t.layout.gridWidth*parseInt(e.width,10)/100:r=parseInt(e.width,10),r+e.offsetX}drawYAxisAnnotations(){const e=this.w,t=this.annoCtx.graphics.group({class:"apexcharts-yaxis-annotations"});return e.config.annotations.yaxis.forEach((r,a)=>{r.yAxisIndex=this.axesUtils.translateYAxisIndex(r.yAxisIndex),this.axesUtils.isYAxisHidden(r.yAxisIndex)&&this.axesUtils.yAxisAllSeriesCollapsed(r.yAxisIndex)||this.addYaxisAnnotation(r,t.node,a)}),t}}class Wie{constructor(e){this.w=e.w,this.annoCtx=e,this.helpers=new zv(this.annoCtx)}addPointAnnotation(e,t,r){const a=this.w;if(a.globals.collapsedSeriesIndices.indexOf(e.seriesIndex)>-1)return;const i=this.helpers.getX1X2("x1",e),s=i.x,o=i.clipped,l=this.helpers.getY1Y2("y1",e),u=l.yP,d=l.clipped;if(ee.isNumber(s)&&!(d||o)){const f={pSize:e.marker.size,pointStrokeWidth:e.marker.strokeWidth,pointFillColor:e.marker.fillColor,pointStrokeColor:e.marker.strokeColor,shape:e.marker.shape,pRadius:e.marker.radius,class:`apexcharts-point-annotation-marker ${e.marker.cssClass} ${e.id?e.id:""}`};let g=this.annoCtx.graphics.drawMarker(s+e.marker.offsetX,u+e.marker.offsetY,f);t.appendChild(g.node),Es(g,s,a);const p=e.label.text?e.label.text:"",b=this.annoCtx.graphics.drawText({x:s+e.label.offsetX,y:u+e.label.offsetY-e.marker.size-parseFloat(e.label.style.fontSize)/1.6,text:p,textAnchor:e.label.textAnchor,fontSize:e.label.style.fontSize,fontFamily:e.label.style.fontFamily,fontWeight:e.label.style.fontWeight,foreColor:e.label.style.color,cssClass:`apexcharts-point-annotation-label ${e.label.style.cssClass} ${e.id?e.id:""}`});if(b.attr({rel:r}),t.appendChild(b.node),Es(b,s,a),e.customSVG.SVG){const y=this.annoCtx.graphics.group({class:"apexcharts-point-annotations-custom-svg "+e.customSVG.cssClass});y.attr({transform:`translate(${s+e.customSVG.offsetX}, ${u+e.customSVG.offsetY})`}),y.node.innerHTML=e.customSVG.SVG,t.appendChild(y.node)}if(e.image.path){const y=e.image.width?e.image.width:20,x=e.image.height?e.image.height:20;g=this.annoCtx.addImage({x:s+e.image.offsetX-y/2,y:u+e.image.offsetY-x/2,width:y,height:x,path:e.image.path,appendTo:".apexcharts-point-annotations"})}e.mouseEnter&&g.node.addEventListener("mouseenter",e.mouseEnter.bind(this,e)),e.mouseLeave&&g.node.addEventListener("mouseleave",e.mouseLeave.bind(this,e)),e.click&&g.node.addEventListener("click",e.click.bind(this,e))}}drawPointAnnotations(){const e=this.w,t=this.annoCtx.graphics.group({class:"apexcharts-point-annotations"});return e.config.annotations.points.map((r,a)=>{this.addPointAnnotation(r,t.node,a)}),t}}class qie{constructor(e,{theme:t=null,timeScale:r=null}={}){this.w=e,this.theme=t,this.timeScale=r,this.invertAxis=void 0,this.inversedReversedAxis=void 0,this.graphics=new ve(this.w),this.w.globals.isBarHorizontal&&(this.invertAxis=!0),this.helpers=new zv(this),this.xAxisAnnotations=new Yie(this),this.yAxisAnnotations=new jie(this),this.pointsAnnotations=new Wie(this),this.w.globals.isBarHorizontal&&this.w.config.yaxis[0].reversed&&(this.inversedReversedAxis=!0),this.xDivision=this.w.layout.gridWidth/this.w.globals.dataPoints}drawAxesAnnotations(){const e=this.w;if(e.globals.axisCharts&&e.globals.dataPoints){const t=this.yAxisAnnotations.drawYAxisAnnotations(),r=this.xAxisAnnotations.drawXAxisAnnotations(),a=this.pointsAnnotations.drawPointAnnotations(),i=e.config.chart.animations.enabled,s=[t,r,a],o=[r.node,t.node,a.node],l=e.config.chart.type==="line"||e.config.chart.type==="area"||e.config.chart.type==="rangeArea",u=[l,!1,l];for(let d=0;d<3;d++)e.dom.elGraphical.add(s[d]),i&&!e.globals.resized&&!e.globals.dataChanged&&e.config.chart.type!=="scatter"&&e.config.chart.type!=="bubble"&&e.globals.dataPoints>1&&!u[d]&&o[d].classList.add("apexcharts-element-hidden"),e.globals.delayedElements.push({el:o[d],index:0});this.helpers.annotationsBackground()}}drawImageAnnos(){this.w.config.annotations.images.map(t=>{this.addImage(t)})}drawTextAnnos(){this.w.config.annotations.texts.map(t=>{this.addText(t)})}addXaxisAnnotation(e,t,r){this.xAxisAnnotations.addXaxisAnnotation(e,t,r)}addYaxisAnnotation(e,t,r){this.yAxisAnnotations.addYaxisAnnotation(e,t,r)}addPointAnnotation(e,t,r){this.pointsAnnotations.addPointAnnotation(e,t,r)}addText(e){const{x:t,y:r,text:a,textAnchor:i,foreColor:s,fontSize:o,fontFamily:l,fontWeight:u,cssClass:d,backgroundColor:f,borderWidth:g,strokeDashArray:p,borderRadius:b,borderColor:y,appendTo:x=".apexcharts-svg",paddingLeft:S=4,paddingRight:C=4,paddingBottom:O=2,paddingTop:D=2}=e,M=this.w,A=this.graphics.drawText({x:t,y:r,text:a,textAnchor:i||"start",fontSize:o||"12px",fontWeight:u||"regular",fontFamily:l||M.config.chart.fontFamily,foreColor:s||M.config.chart.foreColor,cssClass:"apexcharts-text "+d?d:""}),T=M.dom.baseEl.querySelector(x);T&&T.appendChild(A.node);const P=A.bbox();if(a){const R=this.graphics.drawRect(P.x-S,P.y-D,P.width+S+C,P.height+O+D,b,f||"transparent",1,g,y,p);T.insertBefore(R.node,A.node)}}addImage(e){const t=this.w,{path:r,x:a=0,y:i=0,width:s=20,height:o=20,appendTo:l=".apexcharts-svg"}=e,u=t.dom.Paper.image(r);u.size(s,o).move(a,i);const d=t.dom.baseEl.querySelector(l);return d&&d.appendChild(u.node),u}addXaxisAnnotationExternal(e,t,r){return this.addAnnotationExternal({params:e,pushToMemory:t,context:r,type:"xaxis",contextMethod:r.addXaxisAnnotation}),r}addYaxisAnnotationExternal(e,t,r){return this.addAnnotationExternal({params:e,pushToMemory:t,context:r,type:"yaxis",contextMethod:r.addYaxisAnnotation}),r}addPointAnnotationExternal(e,t,r){return typeof this.invertAxis>"u"&&(this.invertAxis=r.w.globals.isBarHorizontal),this.addAnnotationExternal({params:e,pushToMemory:t,context:r,type:"point",contextMethod:r.addPointAnnotation}),r}addAnnotationExternal({params:e,pushToMemory:t,context:r,type:a,contextMethod:i}){const s=r,o=s.w,l=o.dom.baseEl.querySelector(`.apexcharts-${a}-annotations`),u=l.childNodes.length+1,d=new fl,f=Object.assign({},a==="xaxis"?d.xAxisAnnotation:a==="yaxis"?d.yAxisAnnotation:d.pointAnnotation),g=ee.extend(f,e);switch(a){case"xaxis":this.addXaxisAnnotation(g,l,u);break;case"yaxis":this.addYaxisAnnotation(g,l,u);break;case"point":this.addPointAnnotation(g,l,u);break}const p=o.dom.baseEl.querySelector(`.apexcharts-${a}-annotations .apexcharts-${a}-annotation-label[rel='${u}']`),b=this.helpers.addBackgroundToAnno(p,g);return b&&l.insertBefore(b.node,p),t&&o.globals.memory.methodsToExec.push({context:s,id:g.id?g.id:ee.randomId(),method:i,label:"addAnnotation",params:e}),r}clearAnnotations(e){const t=e.w,r=t.dom.baseEl.querySelectorAll(".apexcharts-yaxis-annotations, .apexcharts-xaxis-annotations, .apexcharts-point-annotations");for(let a=t.globals.memory.methodsToExec.length-1;a>=0;a--)(t.globals.memory.methodsToExec[a].label==="addText"||t.globals.memory.methodsToExec[a].label==="addAnnotation")&&t.globals.memory.methodsToExec.splice(a,1);Array.prototype.forEach.call(r,a=>{for(;a.firstChild;)a.removeChild(a.firstChild)})}removeAnnotation(e,t){const r=e.w,a=r.dom.baseEl.querySelectorAll(`.${t}`);a&&(r.globals.memory.methodsToExec.map((i,s)=>{i.id===t&&r.globals.memory.methodsToExec.splice(s,1)}),Object.keys(r.config.annotations).forEach(i=>{const s=r.config.annotations[i];Array.isArray(s)&&(r.config.annotations[i]=s.filter(o=>o.id!==t))}),Array.prototype.forEach.call(a,i=>{i.parentElement.removeChild(i)}))}}Zi.registerFeatures({annotations:qie});class Xie{constructor(e,t){this.w=e,this.ctx=t,this.seriesIndex=0,this.dataPointIndex=0,this.active=!1,this._tooltipDismissed=!1,this._focusedEl=null,this._hoveredBarEl=null,this._enlargedScatterMarker=null,this._onKeyDown=this._onKeyDown.bind(this),this._onFocus=this._onFocus.bind(this),this._onBlur=this._onBlur.bind(this),this._onLegendClick=this._onLegendClick.bind(this),this._onPointerDown=this._onPointerDown.bind(this),this._lastPointerDownAt=0}init(){const t=this.w.dom.Paper.node;t&&(t.setAttribute("tabindex","0"),t.addEventListener("focus",this._onFocus),t.addEventListener("blur",this._onBlur),t.addEventListener("mousedown",this._onPointerDown,{capture:!0}),t.addEventListener("pointerdown",this._onPointerDown,{capture:!0}),t.addEventListener("touchstart",this._onPointerDown,{capture:!0,passive:!0}),t.addEventListener("keydown",this._onKeyDown,{passive:!1}),this.ctx.events.addEventListener("legendClick",this._onLegendClick))}destroy(){const e=this.w,t=e.dom.Paper&&e.dom.Paper.node;t&&(t.removeEventListener("focus",this._onFocus),t.removeEventListener("blur",this._onBlur),t.removeEventListener("keydown",this._onKeyDown),t.removeEventListener("mousedown",this._onPointerDown,{capture:!0}),t.removeEventListener("pointerdown",this._onPointerDown,{capture:!0}),t.removeEventListener("touchstart",this._onPointerDown,{capture:!0}),this.ctx.events.removeEventListener("legendClick",this._onLegendClick))}_onPointerDown(){this._lastPointerDownAt=Date.now()}handleKey(e){}_onFocus(){this._isNavEnabled()&&(Date.now()-this._lastPointerDownAt<100||(this.active=!0,this._clampCursor(),this._snapToVisibleRange(),this._showCurrentPoint()))}_onBlur(){this.active=!1,this._tooltipDismissed=!1,this._hideFocus()}_onLegendClick(){this.active&&(this.active=!1,this._hideFocus())}_onKeyDown(e){var t,r,a;if(!(!this._isNavEnabled()||!this.active)){if(e.shiftKey&&(e.key==="ArrowRight"||e.key==="ArrowLeft")&&this._canPan()){e.preventDefault(),this._panBy(e.key==="ArrowRight"?1:-1);return}switch(e.key){case"ArrowRight":e.preventDefault(),this._move(0,1);break;case"ArrowLeft":e.preventDefault(),this._move(0,-1);break;case"ArrowUp":e.preventDefault(),this._move(-1,0);break;case"ArrowDown":e.preventDefault(),this._move(1,0);break;case"Home":e.preventDefault(),this.dataPointIndex=0,this._skipNullForward(),this._showCurrentPoint();break;case"End":e.preventDefault(),this.dataPointIndex=this._getDataPointCount(this.seriesIndex)-1,this._skipNullBackward(),this._showCurrentPoint();break;case"Enter":case" ":e.preventDefault(),this._fireClick();break;case"+":case"=":this._canZoom()&&(e.preventDefault(),(t=this.ctx.toolbar)==null||t.handleZoomIn(),this._announce("Zoomed in"));break;case"-":case"_":this._canZoom()&&(e.preventDefault(),(r=this.ctx.toolbar)==null||r.handleZoomOut(),this._announce("Zoomed out"));break;case"0":this._canZoom()&&this.w.interact.zoomed&&(e.preventDefault(),(a=this.ctx.toolbar)==null||a.handleZoomReset(),this._announce("Zoom reset"));break;case"Escape":e.preventDefault(),this._tooltipDismissed?(this.active=!1,this._tooltipDismissed=!1,this._hideFocus()):(this._tooltipDismissed=!0,this._hideFocus());break}}}_canZoom(){const e=this.w;return!!(e.globals.axisCharts&&e.config.chart.zoom&&e.config.chart.zoom.enabled)}_canPan(){return this._canZoom()}_panBy(e){const t=this.w,r=this.ctx.toolbar;if(!r)return;const a=Number(t.globals.minX),i=Number(t.globals.maxX);if(!isFinite(a)||!isFinite(i)||a===i)return;const o=(i-a)*.1*e;r.zoomUpdateOptions(a+o,i+o),this._announce(e>0?"Panned right":"Panned left")}_move(e,t){const r=this.w,a=r.config.chart.accessibility.keyboard.navigation.wrapAround;if(e!==0){const i=this.w.globals.tooltip;if(i&&i.tConfig&&i.tConfig.shared){const d=this.dataPointIndex;if(i.tooltipUtil&&i.tooltipUtil.isXoverlap(d)&&i.tooltipUtil.isInitialSeriesSameLen())return}const s=this._getSeriesCount();let o=this.seriesIndex+e,l=0;for(;l<s&&(o<0&&(o=a?s-1:0),o>=s&&(o=a?0:s-1),!!r.globals.collapsedSeriesIndices.includes(o));)o+=e,l++;this.seriesIndex=o;const u=this._getDataPointCount(o);this.dataPointIndex>=u&&(this.dataPointIndex=u-1)}if(t!==0){const i=this._getDataPointCount(this.seriesIndex);let s=this.dataPointIndex+t;s<0&&(s=a?i-1:0),s>=i&&(s=a?0:i-1),this.dataPointIndex=s,t>0?this._skipNullForward():this._skipNullBackward(),this._isDataPointVisible(this.seriesIndex,this.dataPointIndex)||this._snapToVisibleRangeInDirection(t)}this._showCurrentPoint()}_skipNullForward(){const e=this.w,t=this.seriesIndex,r=this._getDataPointCount(t);let a=this.dataPointIndex,i=0;if(Array.isArray(e.seriesData.series[t])){for(;i<r&&e.seriesData.series[t][a]===null;)a=(a+1)%r,i++;this.dataPointIndex=a}}_skipNullBackward(){const e=this.w,t=this.seriesIndex,r=this._getDataPointCount(t);let a=this.dataPointIndex,i=0;if(Array.isArray(e.seriesData.series[t])){for(;i<r&&e.seriesData.series[t][a]===null;)a=(a-1+r)%r,i++;this.dataPointIndex=a}}_showCurrentPoint(){const{seriesIndex:e,dataPointIndex:t}=this,r=this.w,a=r.globals.tooltip;!a||!a.ttItems||(r.interact.capturedSeriesIndex=e,r.interact.capturedDataPointIndex=t,this._applyFocusClass(e,t),this._showTooltip(e,t,a))}_hideFocus(){const e=this.w,t=e.globals.tooltip;if(this._removeFocusClass(),this._leaveHoveredBar(),!t)return;t.marker&&t.marker.resetPointsSize(),this._enlargedScatterMarker=null;const r=t.getElTooltip();r&&(r.classList.remove("apexcharts-active"),e.config.chart.accessibility.enabled&&e.config.chart.accessibility.announcements.enabled&&r.setAttribute("aria-hidden","true")),e.dom.baseEl.classList.remove("apexcharts-tooltip-active");const a=t.getElXCrosshairs();a&&a.classList.remove("apexcharts-active")}_showTooltip(e,t,r){const a=this.w,i=a.config.chart.type,s=r.getElTooltip();if(!s)return;const o=r.getCachedDimensions();r.tooltipRect={x:0,y:0,ttWidth:o.ttWidth||0,ttHeight:o.ttHeight||0},this._setSyntheticEvent(e,t,r),a.dom.baseEl.classList.add("apexcharts-tooltip-active"),s.classList.add("apexcharts-active"),a.config.chart.accessibility.enabled&&a.config.chart.accessibility.announcements.enabled&&s.removeAttribute("aria-hidden"),i==="pie"||i==="donut"||i==="polarArea"?this._showTooltipNonAxis(e,t,r,s):i==="radialBar"?this._showTooltipRadialBar(e,t,r,s):i==="heatmap"||i==="treemap"?this._showTooltipHeatTree(e,t,r,s,i):i==="bar"||i==="candlestick"||i==="boxPlot"||i==="violin"||i==="rangeBar"?this._showTooltipBar(e,t,r):this._showTooltipAxisLine(e,t,r)}_setSyntheticEvent(e,t,r){const a=this.w,i=a.config.chart.type;let s=0,o=0;const l=this._getFocusableElement(e,t);if(l){const u=l.getBoundingClientRect();s=u.left+u.width/2,o=u.top+u.height/2}else if(a.globals.pointsArray&&a.globals.pointsArray[e]&&a.globals.pointsArray[e][t]){const u=a.globals.pointsArray[e][t],d=r.getElGrid&&r.getElGrid();if(d){const f=d.getBoundingClientRect();s=f.left+(u[0]||0),o=f.top+(u[1]||0)}}else{const u=a.dom.Paper&&a.dom.Paper.node;if(u){const d=u.getBoundingClientRect();s=d.left+d.width/2,o=d.top+d.height/2}}if((i==="line"||i==="area"||i==="rangeArea"||i==="scatter"||i==="bubble"||i==="radar")&&a.globals.pointsArray&&a.globals.pointsArray[e]&&a.globals.pointsArray[e][t]){const u=a.globals.pointsArray[e][t],d=r.getElGrid&&r.getElGrid();if(d){const f=d.getBoundingClientRect();s=f.left+(u[0]||0),o=f.top+(u[1]||0)}}r.e={type:"mousemove",clientX:s,clientY:o}}_showTooltipBar(e,t,r){var a,i,s,o;const l=this.w,u=r.tConfig.shared&&(r.tooltipUtil.isXoverlap(t)||l.globals.isBarHorizontal)&&r.tooltipUtil.isInitialSeriesSameLen(),d=(o=(s=(i=(a=l.rangeData.seriesRange)==null?void 0:a[e])==null?void 0:i[t])==null?void 0:s.y)==null?void 0:o[0];r.tooltipLabels.drawSeriesTexts(Lt(ct(ct({ttItems:r.ttItems,i:e,j:t},d?.y1!==void 0&&{y1:d.y1}),d?.y2!==void 0&&{y2:d.y2}),{shared:u}));const f=`.apexcharts-series[data\\:realIndex='${e}']`,g=l.dom.Paper.findOne(`${f} path[j='${t}'], ${f} circle[j='${t}'], ${f} rect[j='${t}']`);if(g&&(this._leaveHoveredBar(),new ve(this.w,this.ctx).pathMouseEnter(g,null),this._hoveredBarEl=g),l.globals.isBarHorizontal){const p=g&&g.node;if(p){const b=l.dom.elWrap.getBoundingClientRect(),y=p.getBoundingClientRect(),x=y.left-b.left,S=y.top-b.top,C=y.height,O=y.width,D=r.tooltipRect.ttWidth||0,M=r.tooltipRect.ttHeight||0,A=S+C/2-M/2;let T=x+O;const P=r.xyRatios&&r.xyRatios.baseLineInvertedY!=null?r.xyRatios.baseLineInvertedY:b.width/2;x<P&&(T=x-D);const R=r.getElTooltip();R&&(R.style.left=T+"px",R.style.top=A+"px")}}else r.tooltipPosition.moveStickyTooltipOverBars(t,e)}_showTooltipAxisLine(e,t,r){const a=this.w,i=a.config.chart.type,o=r.tConfig.shared&&r.tooltipUtil.isXoverlap(t)&&r.tooltipUtil.isInitialSeriesSameLen();r.tooltipLabels.drawSeriesTexts({ttItems:r.ttItems,i:e,j:t,shared:o});const l=i==="scatter"||i==="bubble",u=a.globals.markers.largestSize>0;l?this._showScatterBubblePoint(e,t,r):u?o?r.marker.enlargePoints(t):r.tooltipPosition.moveDynamicPointOnHover(t,e):o?r.tooltipPosition.moveDynamicPointsOnHover(t):r.tooltipPosition.moveDynamicPointOnHover(t,e)}_showScatterBubblePoint(e,t,r){const a=this.w.dom.baseEl;this._enlargedScatterMarker&&(r.marker.oldPointSize(this._enlargedScatterMarker),this._enlargedScatterMarker=null);const i=a.querySelector(`.apexcharts-series[data\\:realIndex='${e}']`);if(!i)return;const s=i.querySelector(`.apexcharts-marker[rel='${t}']`);s&&(r.marker.enlargeCurrentPoint(t,s),this._enlargedScatterMarker=s)}_showTooltipNonAxis(e,t,r,a){var i,s;const o=this.w;r.tooltipLabels.drawSeriesTexts({ttItems:r.ttItems,i:t,shared:!1});const l=a.getBoundingClientRect(),u=l.width||r.tooltipRect.ttWidth||0,d=l.height||r.tooltipRect.ttHeight||0,f=o.dom.baseEl.querySelector(`.apexcharts-pie-area[j='${t}']`);if(f){const g=parseFloat((i=f.getAttribute("data:cx"))!=null?i:""),p=parseFloat((s=f.getAttribute("data:cy"))!=null?s:"");if(!isNaN(g)&&!isNaN(p)){const b=o.dom.Paper.node.getBoundingClientRect(),y=o.dom.elWrap.getBoundingClientRect(),x=b.left-y.left,S=b.top-y.top;a.style.left=x+g-u/2+"px",a.style.top=S+p-d-10+"px"}}}_showTooltipRadialBar(e,t,r,a){var i;const s=this.w;r.tooltipLabels.drawSeriesTexts({ttItems:r.ttItems,i:e,shared:!1});const{ttWidth:o=0,ttHeight:l=0}=r.getCachedDimensions(),u=s.dom.baseEl.querySelector(`.apexcharts-radialbar-series[data\\:realIndex='${e}'] path`);if(u){const d=parseFloat((i=u.getAttribute("data:angle"))!=null?i:"")||0,g=(s.config.plotOptions.radialBar.startAngle||0)+d/2,p=s.layout.gridWidth/2,b=s.layout.gridHeight/2,y=s.globals.radialSize||Math.min(s.layout.gridWidth,s.layout.gridHeight)/2,x=s.seriesData.series.length,S=y/Math.max(x,1),C=y-e*S,O=C-S,D=(C+O)/2,M=ee.polarToCartesian(p,b,D,g),A=M.x+(s.layout.translateX||0),T=M.y+(s.layout.translateY||0);a.style.left=A-o/2+"px",a.style.top=T-l-10+"px"}}_showTooltipHeatTree(e,t,r,a,i){var s,o;const l=this.w;r.tooltipLabels.drawSeriesTexts({ttItems:r.ttItems,i:e,j:t,shared:!1});const u=a.getBoundingClientRect(),d=u.width||r.tooltipRect.ttWidth||0,f=u.height||r.tooltipRect.ttHeight||0,g=i==="heatmap"?"apexcharts-heatmap-rect":"apexcharts-treemap-rect",p=l.dom.baseEl.querySelector(`.${g}[i='${e}'][j='${t}']`);if(p){const b=l.dom.elWrap.getBoundingClientRect(),y=p.getBoundingClientRect(),x=y.left-b.left,S=y.top-b.top,C=y.width,O=y.height,D=parseFloat((s=p.getAttribute("cx"))!=null?s:""),M=parseFloat((o=p.getAttribute("width"))!=null?o:"");r.tooltipPosition.moveXCrosshairs(D+M/2);let A=x+C+d/2;const T=S+O/2-f/2;x+C>l.layout.gridWidth/2&&(A=x-d/2),a.style.left=A+"px",a.style.top=T+"px"}}_applyFocusClass(e,t){this._removeFocusClass();const r=this._getFocusableElement(e,t);if(r){r.classList.add("apexcharts-keyboard-focused"),r.setAttribute("role","img");const a=this._buildPointLabel(e,t);a&&r.setAttribute("aria-label",a),this._focusedEl=r}}_removeFocusClass(){this._focusedEl&&(this._focusedEl.classList.remove("apexcharts-keyboard-focused"),this._focusedEl.removeAttribute("role"),this._focusedEl.removeAttribute("aria-label"),this._focusedEl=null)}_buildPointLabel(e,t){var r,a,i,s,o,l,u,d;const f=this.w,g=f.config.chart.type,p=f.seriesData.seriesNames||[],b=f.seriesData.series||[];if(g==="pie"||g==="donut"||g==="polarArea"){const T=(a=((r=f.labelData)==null?void 0:r.labels)&&f.labelData.labels[t])!=null?a:"",P=Array.isArray(b)?b[t]:"";return T?`${T}: ${P}`:`${P}`}if(g==="radialBar"){const T=p[e]||`Series ${e+1}`,P=Array.isArray(b)?b[e]:"";return`${T}: ${P}`}const y=p[e]||`Series ${e+1}`,S=(Array.isArray(b[e])?b[e]:[])[t];let C=S==null?"":String(S);const O=(s=(i=f.formatters)==null?void 0:i.yLabelFormatters)==null?void 0:s[e];if(typeof O=="function")try{C=O(S,{seriesIndex:e,dataPointIndex:t,w:f})}catch{}let D="";const M=(o=f.labelData)==null?void 0:o.categoryLabels,A=(u=(l=f.seriesData)==null?void 0:l.seriesX)==null?void 0:u[e];if(Array.isArray(M)&&M[t]!=null)D=String(M[t]);else if(Array.isArray(A)&&A[t]!=null){const T=(d=f.formatters)==null?void 0:d.xLabelFormatter;if(typeof T=="function")try{D=String(T(A[t],{seriesIndex:e,dataPointIndex:t,w:f}))}catch{D=String(A[t])}else D=String(A[t])}return D?`${y}: ${C}, ${D}`:`${y}: ${C}`}_leaveHoveredBar(){this._hoveredBarEl&&(new ve(this.w,this.ctx).pathMouseLeave(this._hoveredBarEl,null),this._hoveredBarEl=null)}_getFocusableElement(e,t){const r=this.w,a=r.config.chart.type,i=r.dom.baseEl;return a==="pie"||a==="donut"||a==="polarArea"?i.querySelector(`.apexcharts-pie-area[j='${t}']`):a==="heatmap"?i.querySelector(`.apexcharts-heatmap-rect[i='${e}'][j='${t}']`):a==="treemap"?i.querySelector(`.apexcharts-treemap-rect[i='${e}'][j='${t}']`):a==="radialBar"?i.querySelector(`.apexcharts-radialbar-series[data\\:realIndex='${e}'] path`):a==="bar"||a==="candlestick"||a==="boxPlot"||a==="violin"||a==="rangeBar"?i.querySelector(`.apexcharts-series[data\\:realIndex='${e}'] path[j='${t}']`):i.querySelector(`.apexcharts-series[data\\:realIndex='${e}'] .apexcharts-marker[rel='${t}']`)||null}_fireClick(){const t=this.w.globals.tooltip;if(!t)return;const r={type:"mouseup",clientX:0,clientY:0};t.markerClick(r,this.seriesIndex,this.dataPointIndex)}_isNavEnabled(){const e=this.w.config.chart.accessibility;return e.enabled&&e.keyboard.enabled&&e.keyboard.navigation.enabled}_getSeriesCount(){const e=this.w,t=e.config.chart.type;return t==="pie"||t==="donut"||t==="polarArea"?1:e.seriesData.series.length}_getDataPointCount(e){const t=this.w,r=t.config.chart.type;if(r==="pie"||r==="donut"||r==="polarArea")return t.seriesData.series.length;const a=t.seriesData.series;return a[e]&&Array.isArray(a[e])?a[e].length:0}_clampCursor(){const e=this._getSeriesCount();this.seriesIndex>=e&&(this.seriesIndex=e-1),this.seriesIndex<0&&(this.seriesIndex=0);const t=this._getDataPointCount(this.seriesIndex);this.dataPointIndex>=t&&(this.dataPointIndex=t-1),this.dataPointIndex<0&&(this.dataPointIndex=0)}_snapToVisibleRange(){const e=this.w,t=e.globals,r=this.seriesIndex;if(!e.interact.zoomed)return;const a=e.seriesData.seriesX&&e.seriesData.seriesX[r];if(!a||!a.length)return;const i=t.minX,s=t.maxX;if(i===void 0||s===void 0)return;const o=a[this.dataPointIndex];if(o>=i&&o<=s)return;const l=a.length;for(let u=0;u<l;u++)if(a[u]>=i&&a[u]<=s){this.dataPointIndex=u;return}}_snapToVisibleRangeInDirection(e){const t=this.w,r=t.globals,a=this.seriesIndex,i=t.seriesData.seriesX&&t.seriesData.seriesX[a];if(!i||!i.length)return;const s=r.minX,o=r.maxX;if(s===void 0||o===void 0)return;const l=i.length;if(e>=0){for(let u=0;u<l;u++)if(i[u]>=s&&i[u]<=o){this.dataPointIndex=u;return}}else for(let u=l-1;u>=0;u--)if(i[u]>=s&&i[u]<=o){this.dataPointIndex=u;return}}_isDataPointVisible(e,t){const r=this.w,a=r.globals;if(!r.interact.zoomed)return!0;const i=r.seriesData.seriesX&&r.seriesData.seriesX[e];if(!i)return!0;const s=i[t];return s===void 0?!0:s>=a.minX&&s<=a.maxX}_announce(e){const t=this.w;if(!t.config.chart.accessibility.announcements.enabled)return;const r=t.dom.baseEl;if(!r)return;const a=r.querySelector(".apexcharts-sr-status");a&&(a.textContent="",setTimeout(()=>{a.textContent=e},0))}}Zi.registerFeatures({keyboardNavigation:Xie});const Vie=new Set(["bar","funnel","pyramid"]),Uie=new Set(["pie","donut","polarArea","radialBar","gauge"]);function kc(n){return Vie.has(n)?"bar":Uie.has(n)?"radial":null}class Gie{constructor(e,t){this.w=e,this.ctx=t,this._snapshot=null}canMorphTypes(e,t){if(e===t)return!1;const r=kc(e),a=kc(t);return!(!r||!a)}isCompatibleSeriesShape(e,t,r){if(!Array.isArray(r)||r.length===0)return!1;const a=kc(e),i=kc(t);return i==="radial"?r.every(s=>typeof s=="number"):i==="bar"?r.every(s=>s&&typeof s=="object"&&Array.isArray(s.data)):a!==null&&i!==null}captureBeforeDestroy({fromType:e,toType:t,newSeries:r}){if(this._snapshot=null,!qe.isBrowser())return!1;const a=this.w.config.chart.animations;if(!a||a.enabled===!1||a.chartTypeMorph&&a.chartTypeMorph.enabled===!1||a.respectReducedMotion&&mj()||!this.canMorphTypes(e,t)||!this.isCompatibleSeriesShape(e,t,r))return!1;const i=this._captureFromDOM(e);if(!i.length)return!1;const s=this._buildMapping(i,e,t,r);return s.size===0?!1:(this._snapshot={fromType:e,toType:t,mapping:s,oldLayout:{translateX:this.w.layout.translateX||0,translateY:this.w.layout.translateY||0}},this.w.globals.previousPaths=[],!0)}_captureFromDOM(e){var t;const r=(t=this.w.globals.dom)==null?void 0:t.baseEl;if(!r)return[];const a=[],i=kc(e);if(i==="bar")r.querySelectorAll(".apexcharts-bar-series .apexcharts-series").forEach(o=>{var l;const u=parseInt((l=o.getAttribute("data:realIndex"))!=null?l:"0",10);o.querySelectorAll("path[pathTo]").forEach((f,g)=>{const p=f.getAttribute("pathTo")||f.getAttribute("d");p&&a.push({realIndex:u,j:g,d:p,fill:f.getAttribute("fill")})})});else if(i==="radial")if(e==="radialBar"||e==="gauge"){const s=this.w.layout.gridWidth/2,o=Math.min(this.w.layout.gridWidth,this.w.layout.gridHeight)/2;r.querySelectorAll(".apexcharts-radial-series .apexcharts-radialbar-area").forEach(u=>{var d;const f=u.parentElement,g=parseInt((d=f?.getAttribute("data:realIndex"))!=null?d:"0",10),p=u.getAttribute("d");if(!p)return;const b=parseFloat(u.getAttribute("stroke-width")||"0"),y=b>1&&this._radialArcToFilledSegment(p,b,s,o)||p;a.push({realIndex:g,j:0,d:y,fill:u.getAttribute("stroke")})})}else r.querySelectorAll(".apexcharts-pie-series .apexcharts-pie-area").forEach((o,l)=>{const u=o.getAttribute("d");u&&a.push({realIndex:l,j:0,d:u,fill:o.getAttribute("fill")})});return a}_radialArcToFilledSegment(e,t,r,a){const i=e.match(/M\s*(-?[\d.]+)\s+(-?[\d.]+)\s+A\s*(-?[\d.]+)\s+(?:-?[\d.]+)\s+(?:-?[\d.]+)\s+(\d)\s+(\d)\s+(-?[\d.]+)\s+(-?[\d.]+)/);if(!i)return null;const s=parseFloat(i[1]),o=parseFloat(i[2]),l=parseFloat(i[3]),u=parseInt(i[4],10),d=parseInt(i[5],10),f=parseFloat(i[6]),g=parseFloat(i[7]);if(!isFinite(l)||l<=0)return null;const p=t/2,b=l+p,y=Math.max(0,l-p),x=(A,T,P)=>{const R=A-r,N=T-a,I=Math.sqrt(R*R+N*N);if(I===0)return{x:r,y:a};const $=P/I;return{x:r+R*$,y:a+N*$}},S=x(s,o,b),C=x(f,g,b),O=x(s,o,y),D=x(f,g,y),M=d?0:1;return`M ${S.x} ${S.y} A ${b} ${b} 0 ${u} ${d} ${C.x} ${C.y} L ${D.x} ${D.y} A ${y} ${y} 0 ${u} ${M} ${O.x} ${O.y} Z`}buildRingSegmentPath(e,t,r,a,i,s){const o=a/2,l=r+o,u=Math.max(0,r-o),d=(i-90)*Math.PI/180,f=(s-90)*Math.PI/180,g={x:e+l*Math.cos(d),y:t+l*Math.sin(d)},p={x:e+l*Math.cos(f),y:t+l*Math.sin(f)},b={x:e+u*Math.cos(d),y:t+u*Math.sin(d)},y={x:e+u*Math.cos(f),y:t+u*Math.sin(f)},x=s>i?1:0,S=Math.abs(s-i)>180?1:0;return`M ${g.x} ${g.y} A ${l} ${l} 0 ${S} ${x} ${p.x} ${p.y} L ${y.x} ${y.y} A ${u} ${u} 0 ${S} ${1-x} ${b.x} ${b.y} Z`}getFromType(){return this._snapshot?this._snapshot.fromType:null}_buildMapping(e,t,r,a){const i=new Map,s=kc(r),o=e.slice().sort((l,u)=>l.realIndex-u.realIndex||l.j-u.j);if(s==="radial")return o.forEach((l,u)=>{i.set(`${u}:0`,{d:l.d,fill:l.fill})}),i;if(s==="bar"){const l=[];return(Array.isArray(a)?a:[]).forEach((d,f)=>{const g=d&&Array.isArray(d.data)?d.data:[];for(let p=0;p<g.length;p++)l.push({realIndex:f,j:p})}),o.forEach((d,f)=>{const g=l[f];g&&i.set(`${g.realIndex}:${g.j}`,{d:d.d,fill:d.fill})}),i}return i}isActive(){return this._snapshot!==null}getInitialPathFor(e,t){if(!this._snapshot)return null;const r=this._snapshot.mapping.get(`${e}:${t}`);if(!r)return null;const a=this._snapshot.oldLayout.translateX-(this.w.layout.translateX||0),i=this._snapshot.oldLayout.translateY-(this.w.layout.translateY||0);return a===0&&i===0?r.d:this._translatePathD(r.d,a,i)}_translatePathD(e,t,r){return t===0&&r===0?e:yh(e).map(i=>{const s=i[0];return s==="Z"?"Z":s==="M"||s==="L"||s==="T"?`${s} ${i[1]+t} ${i[2]+r}`:s==="H"?`${s} ${i[1]+t}`:s==="V"?`${s} ${i[1]+r}`:s==="C"?`${s} ${i[1]+t} ${i[2]+r} ${i[3]+t} ${i[4]+r} ${i[5]+t} ${i[6]+r}`:s==="S"||s==="Q"?`${s} ${i[1]+t} ${i[2]+r} ${i[3]+t} ${i[4]+r}`:s==="A"?`${s} ${i[1]} ${i[2]} ${i[3]} ${i[4]} ${i[5]} ${i[6]+t} ${i[7]+r}`:i.join(" ")}).join(" ")}getInitialFillFor(e,t){if(!this._snapshot)return null;const r=this._snapshot.mapping.get(`${e}:${t}`);return r?r.fill:null}getSpeed(){const e=this.w.config.chart.animations;return e.chartTypeMorph&&e.chartTypeMorph.speed||e.speed||600}applyChromeFade(){var e;if(!this._snapshot||!qe.isBrowser())return;const t=(e=this.w.globals.dom)==null?void 0:e.baseEl;if(!t)return;const r=this.getSpeed();[".apexcharts-xaxis",".apexcharts-yaxis",".apexcharts-grid",".apexcharts-gridlines-horizontal",".apexcharts-gridlines-vertical",".apexcharts-legend",".apexcharts-title-text",".apexcharts-subtitle-text"].forEach(i=>{t.querySelectorAll(i).forEach(s=>{s.style&&(s.style.opacity="0",s.style.transition=`opacity ${r}ms ease-out`,ke.requestAnimationFrame(()=>{s.style.opacity="1"}),setTimeout(()=>{s.style.transition="",s.style.opacity=""},r+80))})}),setTimeout(()=>this.cleanup(),r+100)}cleanup(){this._snapshot=null}}Zi.registerFeatures({morphTypeChange:Gie});class Zie{constructor(e){this.w=e.w,this.barCtx=e,this.totalFormatter=this.w.config.plotOptions.bar.dataLabels.total.formatter,this.totalFormatter||(this.totalFormatter=this.w.config.dataLabels.formatter)}handleBarDataLabels(e){const{x:t,y:r,y1:a,y2:i,i:s,j:o,realIndex:l,columnGroupIndex:u,series:d,barHeight:f,barWidth:g,barXPosition:p,barYPosition:b,visibleSeries:y}=e,x=this.w,S=new ve(this.barCtx.w),C=Array.isArray(this.barCtx.strokeWidth)?this.barCtx.strokeWidth[l]:this.barCtx.strokeWidth;let O,D;x.axisFlags.isXNumeric&&!x.globals.isBarHorizontal?(O=t+g*(y+1),D=r+f*(y+1)-C):(O=t+g*y,D=r+f*y);let M=null,A=null,T=t,P=r,R={};const N=x.config.dataLabels,I=this.barCtx.barOptions.dataLabels,$=this.barCtx.barOptions.dataLabels.total;typeof b<"u"&&(this.barCtx.isRangeBar||this.barCtx.isPyramid)&&(D=b,P=b),typeof p<"u"&&this.barCtx.isVerticalGroupedRangeBar&&(O=p,T=p);const Y=N.offsetX,k=N.offsetY;let H={width:0,height:0};if(x.config.dataLabels.enabled){const B=x.seriesData.series[s][o];H=S.getTextRects(x.config.dataLabels.formatter?x.config.dataLabels.formatter(B,Lt(ct({},x),{seriesIndex:s,dataPointIndex:o,w:x})):x.formatters.yLabelFormatters[0](B),parseFloat(N.style.fontSize).toString())}const F={x:t,y:r,i:s,j:o,realIndex:l,columnGroupIndex:u,bcx:O,bcy:D,barHeight:f,barWidth:g,textRects:H,strokeWidth:C,dataLabelsX:T,dataLabelsY:P,dataLabelsConfig:N,barDataLabelsConfig:I,barTotalDataLabelsConfig:$,offX:Y,offY:k};return this.barCtx.isHorizontal?R=this.calculateBarsDataLabelsPosition(F):R=this.calculateColumnsDataLabelsPosition(F),M=this.drawCalculatedDataLabels({x:R.dataLabelsX,y:R.dataLabelsY,val:this.barCtx.isRangeBar?[a,i]:x.config.chart.stackType==="100%"?d[l][o]:x.seriesData.series[l][o],i:l,j:o,barWidth:g,barHeight:f,textRects:H,dataLabelsConfig:N}),x.config.chart.stacked&&$.enabled&&(A=this.drawTotalDataLabels({x:R.totalDataLabelsX,y:R.totalDataLabelsY,barWidth:g,barHeight:f,realIndex:l,textAnchor:R.totalDataLabelsAnchor,val:this.getStackedTotalDataLabel({realIndex:l,j:o}),dataLabelsConfig:N,barTotalDataLabelsConfig:$})),{dataLabelsPos:R,dataLabels:M,totalDataLabels:A}}getStackedTotalDataLabel({realIndex:e,j:t}){const r=this.w;let a=this.barCtx.stackedSeriesTotals[t];return this.totalFormatter&&(a=this.totalFormatter(a,Lt(ct({},r),{seriesIndex:e,dataPointIndex:t,w:r}))),a}calculateColumnsDataLabelsPosition(e){const t=this.w;let{i:r,j:a,realIndex:i,y:s,bcx:o,barWidth:l,barHeight:u,textRects:d,dataLabelsX:f,dataLabelsY:g,dataLabelsConfig:p,barDataLabelsConfig:b,barTotalDataLabelsConfig:y,strokeWidth:x,offX:S,offY:C}=e,O,D;const M="middle",A=o;u=Math.abs(u);const T=t.config.plotOptions.bar.dataLabels.orientation==="vertical",{zeroEncounters:P}=this.barCtx.barHelpers.getZeroValueEncounters({i:r,j:a});o=o-x/2;const R=t.layout.gridWidth/t.globals.dataPoints;this.barCtx.isVerticalGroupedRangeBar?f+=l/2:(t.axisFlags.isXNumeric?f=o-l/2+S:f=o-R+l/2+S,!t.config.chart.stacked&&P>0&&t.config.plotOptions.bar.hideZeroBarsWhenGrouped&&(f-=l*P)),T&&(f=f+d.height/2-x/2-2);const N=t.seriesData.series[r][a]<0;let I=s;switch(this.barCtx.isReversed&&(I=s+(N?u:-u)),b.position){case"center":T?N?g=I-u/2+C:g=I+u/2-C:N?g=I-u/2+d.height/2+C:g=I+u/2+d.height/2-C;break;case"bottom":T?N?g=I-u+C:g=I+u-C:N?g=I-u+d.height+x+C:g=I+u-d.height/2+x-C;break;case"top":T?N?g=I+C:g=I-C:N?g=I-d.height/2-C:g=I+d.height+C;break}let $=I;if(t.labelData.seriesGroups.forEach(Y=>{var k;(k=this.barCtx[Y.join(",")])==null||k.prevY.forEach(H=>{N?$=Math.max(H[a],$):$=Math.min(H[a],$)})}),this.barCtx.lastActiveBarSerieIndex===i&&y.enabled){const H=new ve(this.barCtx.w).getTextRects(this.getStackedTotalDataLabel({realIndex:i,j:a}),p.fontSize);N?O=$-H.height/2-C-y.offsetY+18:O=$+H.height+C+y.offsetY-18;const F=R;D=A+(t.axisFlags.isXNumeric?-l*t.globals.barGroups.length/2:t.globals.barGroups.length*l/2-(t.globals.barGroups.length-1)*l-F)+y.offsetX}return t.config.chart.stacked||(g<0?g=0+x:g+d.height/3>t.layout.gridHeight&&(g=t.layout.gridHeight-x)),{bcx:o,bcy:s,dataLabelsX:f,dataLabelsY:g,totalDataLabelsX:D,totalDataLabelsY:O,totalDataLabelsAnchor:M}}calculateBarsDataLabelsPosition(e){var t;const r=this.w;let{x:a,i,j:s,realIndex:o,bcy:l,barHeight:u,barWidth:d,textRects:f,dataLabelsX:g,strokeWidth:p,dataLabelsConfig:b,barDataLabelsConfig:y,barTotalDataLabelsConfig:x,offX:S,offY:C}=e;const O=r.layout.gridHeight/r.globals.dataPoints,{zeroEncounters:D}=this.barCtx.barHelpers.getZeroValueEncounters({i,j:s});d=Math.abs(d);let M;if(this.barCtx.isPyramid){const $=(t=f.centerOffset)!=null?t:0;M=l+u/2+C-$}else M=l-(this.barCtx.isRangeBar?0:O)+u/2+f.height/2+C-3;!r.config.chart.stacked&&D>0&&r.config.plotOptions.bar.hideZeroBarsWhenGrouped&&(M-=u*D);let A,T,P="start";const R=r.seriesData.series[i][s]<0;let N=a;if(this.barCtx.isReversed&&(N=a+(R?-d:d),P=R?"start":"end"),this.barCtx.isPyramid)g=r.layout.gridWidth/2+S;else switch(y.position){case"center":R?g=N+d/2-S:g=Math.max(f.width/2,N-d/2)+S;break;case"bottom":R?g=N+d-p-S:g=N-d+p+S;break;case"top":R?g=N-p-S:g=N-p+S;break}let I=N;if(r.labelData.seriesGroups.forEach($=>{var Y;(Y=this.barCtx[$.join(",")])==null||Y.prevX.forEach(k=>{R?I=Math.min(k[s],I):I=Math.max(k[s],I)})}),this.barCtx.lastActiveBarSerieIndex===o&&x.enabled){const Y=new ve(this.barCtx.w).getTextRects(this.getStackedTotalDataLabel({realIndex:o,j:s}),b.fontSize);R?(A=I-p-S-x.offsetX,P="end"):A=I+S+x.offsetX+(this.barCtx.isReversed?-(d+p):p),T=M-f.height/2+Y.height/2+x.offsetY+p,r.globals.barGroups.length>1&&(T=T-r.globals.barGroups.length/2*(u/2))}return r.config.chart.stacked||(b.textAnchor==="start"?g-f.width<0?g=R?f.width+p:p:g+f.width>r.layout.gridWidth&&(g=R?r.layout.gridWidth-p:r.layout.gridWidth-f.width-p):b.textAnchor==="middle"?g-f.width/2<0?g=f.width/2+p:g+f.width/2>r.layout.gridWidth&&(g=r.layout.gridWidth-f.width/2-p):b.textAnchor==="end"&&(g<1?g=f.width+p:g+1>r.layout.gridWidth&&(g=r.layout.gridWidth-f.width-p))),{bcx:a,bcy:l,dataLabelsX:g,dataLabelsY:M,totalDataLabelsX:A,totalDataLabelsY:T,totalDataLabelsAnchor:P}}drawCalculatedDataLabels({x:e,y:t,val:r,i:a,j:i,textRects:s,barHeight:o,barWidth:l,dataLabelsConfig:u}){const d=this.w;let f="rotate(0)";d.config.plotOptions.bar.dataLabels.orientation==="vertical"&&(f=`rotate(-90, ${e}, ${t})`);const g=new Ol(this.barCtx.w,this.barCtx.ctx),p=new ve(this.barCtx.w),b=u.formatter;let y=null;const x=d.globals.collapsedSeriesIndices.indexOf(a)>-1;if(u.enabled&&!x){y=p.group({class:"apexcharts-data-labels",transform:f});let S="";typeof r<"u"&&(S=b(r,Lt(ct({},d),{seriesIndex:a,dataPointIndex:i,w:d}))),!r&&d.config.plotOptions.bar.hideZeroBarsWhenGrouped&&(S="");const C=d.seriesData.series[a][i]<0,O=d.config.plotOptions.bar.dataLabels.position;if(d.config.plotOptions.bar.dataLabels.orientation==="vertical"&&(O==="top"&&(C?u.textAnchor="end":u.textAnchor="start"),O==="center"&&(u.textAnchor="middle"),O==="bottom"&&(C?u.textAnchor="end":u.textAnchor="start")),this.barCtx.isRangeBar&&this.barCtx.barOptions.dataLabels.hideOverflowingLabels){const M=p.getTextRects(S,parseFloat(u.style.fontSize).toString());l<M.width&&(S="")}d.config.chart.stacked&&this.barCtx.barOptions.dataLabels.hideOverflowingLabels&&(this.barCtx.isHorizontal?s.width/1.6>Math.abs(l)&&(S=""):s.height/1.6>Math.abs(o)&&(S=""));const D=ct({},u);this.barCtx.isHorizontal&&r<0&&(u.textAnchor==="start"?D.textAnchor="end":u.textAnchor==="end"&&(D.textAnchor="start")),g.plotDataLabelsText({x:e,y:t,text:S,i:a,j:i,parent:y,dataLabelsConfig:D,alwaysDrawDataLabel:!0,offsetCorrection:!0})}return y}drawTotalDataLabels({x:e,y:t,val:r,realIndex:a,textAnchor:i,barTotalDataLabelsConfig:s}){const o=new ve(this.barCtx.w);let l;return s.enabled&&typeof e<"u"&&typeof t<"u"&&this.barCtx.lastActiveBarSerieIndex===a&&(l=o.drawText({x:e,y:t,foreColor:s.style.color,text:r,textAnchor:i,fontFamily:s.style.fontFamily,fontSize:s.style.fontSize,fontWeight:s.style.fontWeight})),l}}let Qie=class{constructor(e){this.w=e.w,this.barCtx=e}initVariables(e){const t=this.w;this.barCtx.series=e,this.barCtx.totalItems=0,this.barCtx.seriesLen=0,this.barCtx.visibleI=-1,this.barCtx.visibleItems=1;for(let r=0;r<e.length;r++)if(e[r].length>0&&(this.barCtx.seriesLen=this.barCtx.seriesLen+1,this.barCtx.totalItems+=e[r].length),t.axisFlags.isXNumeric)for(let a=0;a<e[r].length;a++)t.seriesData.seriesX[r][a]>t.globals.minX&&t.seriesData.seriesX[r][a]<t.globals.maxX&&this.barCtx.visibleItems++;else this.barCtx.visibleItems=t.globals.dataPoints;this.arrBorderRadius=this.createBorderRadiusArr(t.seriesData.series),ee.isSafari()&&(this.arrBorderRadius=this.arrBorderRadius.map(r=>r.map(a=>"none"))),this.barCtx.seriesLen===0&&(this.barCtx.seriesLen=1),this.barCtx.zeroSerieses=[],t.globals.comboCharts||this.checkZeroSeries({series:e})}initialPositions(e){const t=this.w;let r,a,i,s,o,l,u,d,f=t.globals.dataPoints;this.barCtx.isRangeBar&&(f=t.labelData.labels.length);let g=this.barCtx.seriesLen;if(t.config.plotOptions.bar.rangeBarGroupRows&&(g=1),this.barCtx.isHorizontal)i=t.layout.gridHeight/f,o=i/g,t.axisFlags.isXNumeric&&(i=t.layout.gridHeight/this.barCtx.totalItems,o=i/this.barCtx.seriesLen),o=o*parseInt(this.barCtx.barOptions.barHeight,10)/100,String(this.barCtx.barOptions.barHeight).indexOf("%")===-1&&(o=parseInt(this.barCtx.barOptions.barHeight,10)),d=this.barCtx.baseLineInvertedY+t.globals.padHorizontal+(this.barCtx.isReversed?t.layout.gridWidth:0)-(this.barCtx.isReversed?this.barCtx.baseLineInvertedY*2:0),this.barCtx.isFunnel&&(d=t.layout.gridWidth/2),a=(i-o*this.barCtx.seriesLen)/2;else{if(s=t.layout.gridWidth/this.barCtx.visibleItems,t.config.xaxis.convertedCatToNumeric&&(s=t.layout.gridWidth/t.globals.dataPoints),l=s/g*parseInt(this.barCtx.barOptions.columnWidth,10)/100,t.axisFlags.isXNumeric){const p=this.barCtx.xRatio;t.globals.minXDiff&&t.globals.minXDiff!==.5&&t.globals.minXDiff/p>0&&(s=t.globals.minXDiff/p),l=s/g*parseInt(this.barCtx.barOptions.columnWidth,10)/100,l<1&&(l=1)}String(this.barCtx.barOptions.columnWidth).indexOf("%")===-1&&(l=parseInt(this.barCtx.barOptions.columnWidth,10)),u=t.layout.gridHeight-this.barCtx.baseLineY[this.barCtx.translationsIndex]-(this.barCtx.isReversed?t.layout.gridHeight:0)+(this.barCtx.isReversed?this.barCtx.baseLineY[this.barCtx.translationsIndex]*2:0),t.axisFlags.isXNumeric?r=this.barCtx.getBarXForNumericXAxis({x:r,j:0,realIndex:e,barWidth:l}).x:r=t.globals.padHorizontal+ee.noExponents(s-l*this.barCtx.seriesLen)/2}return t.globals.barHeight=o,t.globals.barWidth=l,{x:r,y:a,yDivision:i,xDivision:s,barHeight:o,barWidth:l,zeroH:u,zeroW:d}}initializeStackedPrevVars(e){e.w.labelData.seriesGroups.forEach(r=>{e[r]||(e[r]={}),e[r].prevY=[],e[r].prevX=[],e[r].prevYF=[],e[r].prevXF=[],e[r].prevYVal=[],e[r].prevXVal=[]})}initializeStackedXYVars(e){e.w.labelData.seriesGroups.forEach(r=>{e[r]||(e[r]={}),e[r].xArrj=[],e[r].xArrjF=[],e[r].xArrjVal=[],e[r].yArrj=[],e[r].yArrjF=[],e[r].yArrjVal=[]})}getPathFillColor(e,t,r,a){var i,s,o,l;const u=this.w,d=new Ia(this.barCtx.w);let f=null;const g=this.barCtx.barOptions.distributed?r:t;let p=!1;return this.barCtx.barOptions.colors.ranges.length>0&&this.barCtx.barOptions.colors.ranges.map(x=>{e[t][r]>=x.from&&e[t][r]<=x.to&&(f=x.color,p=!0)}),{color:d.fillPath({seriesNumber:this.barCtx.barOptions.distributed?g:a,dataPointIndex:r,color:f,value:e[t][r],fillConfig:(i=u.config.series[t].data[r])==null?void 0:i.fill,fillType:(o=(s=u.config.series[t].data[r])==null?void 0:s.fill)!=null&&o.type?(l=u.config.series[t].data[r])==null?void 0:l.fill.type:Array.isArray(u.config.fill.type)?u.config.fill.type[a]:u.config.fill.type}),useRangeColor:p}}getStrokeWidth(e,t,r){let a=0;const i=this.w;return typeof this.barCtx.series[e][t]>"u"||this.barCtx.series[e][t]===null||i.config.chart.type==="bar"&&!this.barCtx.series[e][t]?this.barCtx.isNullValue=!0:this.barCtx.isNullValue=!1,i.config.stroke.show&&(this.barCtx.isNullValue||(a=Array.isArray(this.barCtx.strokeWidth)?this.barCtx.strokeWidth[r]:this.barCtx.strokeWidth)),a}createBorderRadiusArr(e){var t;const r=this.w,a=!this.w.config.chart.stacked||r.config.plotOptions.bar.borderRadius<=0,i=e.length,s=((t=e[0])==null?void 0:t.length)|0,o=Array.from({length:i},()=>Array(s).fill(a?"top":"none"));if(a)return o;const l=this.w.config.chart.type;for(let u=0;u<s;u++){const d=[],f=[];let g=0;for(let p=0;p<i;p++){const b=e[p][u];b>0?(d.push(p),g++):b<0&&(f.push(p),g++)}if(d.length>0&&f.length===0)if(d.length===1)o[d[0]][u]=l==="bar"&&s===1?"top":"both";else{const p=d[0],b=d[d.length-1];for(const y of d)y===p?o[y][u]=l==="bar"&&s===1?"top":"bottom":y===b?o[y][u]="top":o[y][u]="none"}else if(f.length>0&&d.length===0)if(f.length===1)o[f[0]][u]="both";else{const p=Math.max(...f),b=Math.min(...f);for(const y of f)y===p?o[y][u]="bottom":y===b?o[y][u]="top":o[y][u]="none"}else if(d.length>0&&f.length>0){const p=d[d.length-1];for(const y of d)y===p?o[y][u]="top":o[y][u]="none";const b=Math.max(...f);for(const y of f)y===b?o[y][u]="bottom":o[y][u]="none"}else if(g===1){const p=d[0]||f[0];o[p][u]="both"}}return o}barBackground({j:e,i:t,x1:r,x2:a,y1:i,y2:s,elSeries:o}){const l=this.w,u=new ve(this.barCtx.w),f=new Wn(this.barCtx.w).getActiveConfigSeriesIndex();if(this.barCtx.barOptions.colors.backgroundBarColors.length>0&&f===t){e>=this.barCtx.barOptions.colors.backgroundBarColors.length&&(e%=this.barCtx.barOptions.colors.backgroundBarColors.length);const g=this.barCtx.barOptions.colors.backgroundBarColors[e],p=u.drawRect(typeof r<"u"?r:0,typeof i<"u"?i:0,typeof a<"u"?a:l.layout.gridWidth,typeof s<"u"?s:l.layout.gridHeight,this.barCtx.barOptions.colors.backgroundBarRadius,g,this.barCtx.barOptions.colors.backgroundBarOpacity);o.add(p),p.node.classList.add("apexcharts-backgroundBar")}}getColumnPaths({barWidth:e,barXPosition:t,y1:r,y2:a,strokeWidth:i,isReversed:s,series:o,seriesGroup:l,realIndex:u,i:d,j:f,w:g}){var p,b,y;const x=new ve(this.barCtx.w);i=Array.isArray(i)?i[u]:i,i||(i=0);let S=e,C=t;(p=g.config.series[u].data[f])!=null&&p.columnWidthOffset&&(C=t-g.config.series[u].data[f].columnWidthOffset/2,S=e+g.config.series[u].data[f].columnWidthOffset);const O=i/2,D=C+O,M=C+S-O,A=(o[d][f]>=0?1:-1)*(s?-1:1);r+=.001-O*A,a+=.001+O*A;const T=x.line(M,r),P=g.config.plotOptions.bar.borderRadiusApplication==="around"||this.arrBorderRadius[u][f]==="both"?" Z":" z";let R=x.move(D,r)+x.line(D,a)+x.line(M,a)+T+P;this.arrBorderRadius[u][f]!=="none"&&(R=x.roundPathCorners(R,g.config.plotOptions.bar.borderRadius));let N;const I=(y=(b=this.barCtx.ctx)==null?void 0:b.morphTypeChange)==null?void 0:y.getInitialPathFor(u,f);if(I?N=I:g.globals.previousPaths.length>0?N=this.barCtx.getPreviousPath(u,f,R):N=x.move(D,r)+x.line(D,r)+T+T+T+T+T+x.line(D,r)+P,g.config.chart.stacked){let $=this.barCtx;$=this.barCtx[l],$.yArrj.push(a-O*A),$.yArrjF.push(Math.abs(r-a+i*A)),$.yArrjVal.push(this.barCtx.series[d][f])}return{pathTo:R,pathFrom:N}}getFunnelTrapezoidPaths({barYPosition:e,barHeight:t,series:r,i:a,j:i,realIndex:s,strokeWidth:o,w:l}){var u,d;const f=new ve(this.barCtx.w),g=l.layout.gridWidth/2,p=Y=>Math.abs(Y/this.barCtx.invertedYRatio)/2,b=p(r[a][i]),y=r[a].length-1,x=i===y,S=l.config.plotOptions.funnel.lastShape==="taper"?"taper":"flat";let C;x?C=S==="taper"?0:b:C=p(r[a][i+1]);const O=o/2,D=e+O,M=e+t-O,A=g-b,T=g+b,P=g-C,R=g+C,N=f.move(A,D)+f.line(T,D)+f.line(R,M)+f.line(P,M)+" Z";let I;const $=(d=(u=this.barCtx.ctx)==null?void 0:u.morphTypeChange)==null?void 0:d.getInitialPathFor(s,i);return $?I=$:l.globals.previousPaths.length>0?I=this.barCtx.getPreviousPath(s,i,N):I=f.move(g,D)+f.line(g,D)+f.line(g,M)+f.line(g,M)+" Z",{pathTo:N,pathFrom:I,x:T,x1:A,barXPosition:g}}computePyramidLayout(e){const t=this.w,r=t.layout.gridHeight,a=t.layout.gridWidth,i=e.map(d=>Math.abs(Number(d)||0)),s=i.reduce((d,f)=>d+f,0);if(s===0||r<=0)return i.map(()=>({y:0,height:0,topHalf:0,bottomHalf:0}));const o=a/2;let l=0;const u=[];for(let d=0;d<i.length;d++){const f=l/s;l+=i[d];const g=l/s,p=f*r,b=g*r;u.push({y:p,height:b-p,topHalf:f*o,bottomHalf:g*o})}return u}getPyramidPaths({barYPosition:e,barHeight:t,topHalf:r,bottomHalf:a,realIndex:i,j:s,strokeWidth:o,w:l}){var u,d;const f=new ve(this.barCtx.w),g=l.layout.gridWidth/2,p=o/2,b=e+p,y=e+t-p,x=g-r,S=g+r,C=g-a,O=g+a,D=f.move(x,b)+f.line(S,b)+f.line(O,y)+f.line(C,y)+" Z";let M;const A=(d=(u=this.barCtx.ctx)==null?void 0:u.morphTypeChange)==null?void 0:d.getInitialPathFor(i,s);return A?M=A:l.globals.previousPaths.length>0?M=this.barCtx.getPreviousPath(i,s,D):M=f.move(g,b)+f.line(g,b)+f.line(g,y)+f.line(g,y)+" Z",{pathTo:D,pathFrom:M,x:S,x1:x,barXPosition:g}}getBarpaths({barYPosition:e,barHeight:t,x1:r,x2:a,strokeWidth:i,isReversed:s,series:o,seriesGroup:l,realIndex:u,i:d,j:f,w:g}){var p,b,y;const x=new ve(this.barCtx.w);i=Array.isArray(i)?i[u]:i,i||(i=0);let S=e,C=t;(p=g.config.series[u].data[f])!=null&&p.barHeightOffset&&(S=e-g.config.series[u].data[f].barHeightOffset/2,C=t+g.config.series[u].data[f].barHeightOffset);const O=i/2,D=S+O,M=S+C-O,A=(o[d][f]>=0?1:-1)*(s?-1:1);r+=.001+O*A,a+=.001-O*A;const T=this.barCtx.isFunnel,P=T?(r+a)/2:r,R=x.line(r,M),N=g.config.plotOptions.bar.borderRadiusApplication==="around"||this.arrBorderRadius[u][f]==="both"?" Z":" z";let I=x.move(r,D)+x.line(a,D)+x.line(a,M)+R+N;this.arrBorderRadius[u][f]!=="none"&&(I=x.roundPathCorners(I,g.config.plotOptions.bar.borderRadius));let $;const Y=(y=(b=this.barCtx.ctx)==null?void 0:b.morphTypeChange)==null?void 0:y.getInitialPathFor(u,f);if(Y)$=Y;else if(g.globals.previousPaths.length>0)$=this.barCtx.getPreviousPath(u,f,I);else{const k=T?x.line(P,M):R;$=x.move(P,D)+x.line(P,D)+k+k+k+k+k+x.line(P,D)+N}if(g.config.chart.stacked){let k=this.barCtx;k=this.barCtx[l],k.xArrj.push(a+O*A),k.xArrjF.push(Math.abs(r-a-i*A)),k.xArrjVal.push(this.barCtx.series[d][f])}return{pathTo:I,pathFrom:$}}checkZeroSeries({series:e}){const t=this.w;for(let r=0;r<e.length;r++){let a=0;for(let i=0;i<e[t.globals.maxValsInArrayIndex].length;i++)a+=e[r][i];a===0&&this.barCtx.zeroSerieses.push(r)}}getXForValue(e,t,r=!0){let a=r?t:null;return typeof e<"u"&&e!==null&&(a=t+e/this.barCtx.invertedYRatio-(this.barCtx.isReversed?e/this.barCtx.invertedYRatio:0)*2),a}getYForValue(e,t,r,a=!0){let i=a?t:null;return typeof e<"u"&&e!==null&&(i=t-e/this.barCtx.yRatio[r]+(this.barCtx.isReversed?e/this.barCtx.yRatio[r]:0)*2),i}getGoalValues(e,t,r,a,i,s){const o=this.w,l=[],u=(d,f)=>{l.push({[e]:e==="x"?this.getXForValue(d,t,!1):this.getYForValue(d,r,s,!1),attrs:f})};if(o.seriesData.seriesGoals[a]&&o.seriesData.seriesGoals[a][i]&&Array.isArray(o.seriesData.seriesGoals[a][i])&&o.seriesData.seriesGoals[a][i].forEach(d=>{u(d.value,d)}),this.barCtx.barOptions.isDumbbell&&o.rangeData.seriesRange.length){const d=this.barCtx.barOptions.dumbbellColors?this.barCtx.barOptions.dumbbellColors:o.globals.colors,f={strokeHeight:e==="x"?0:o.globals.markers.size[a],strokeWidth:e==="x"?o.globals.markers.size[a]:0,strokeDashArray:0,strokeLineCap:"round",strokeColor:Array.isArray(d[a])?d[a][0]:d[a]};u(o.rangeData.seriesRangeStart[a][i],f),u(o.rangeData.seriesRangeEnd[a][i],Lt(ct({},f),{strokeColor:Array.isArray(d[a])?d[a][1]:d[a]}))}return l}drawGoalLine({barXPosition:e,barYPosition:t,goalX:r,goalY:a,barWidth:i,barHeight:s}){const o=new ve(this.barCtx.w),l=o.group({className:"apexcharts-bar-goals-groups"});l.node.classList.add("apexcharts-element-hidden"),this.barCtx.w.globals.delayedElements.push({el:l.node}),l.attr("clip-path",`url(#gridRectMarkerMask${this.barCtx.w.globals.cuid})`);let u=null;return this.barCtx.isHorizontal?Array.isArray(r)&&r.forEach(d=>{if(d.x>=-1&&d.x<=o.w.layout.gridWidth+1){const f=typeof d.attrs.strokeHeight<"u"?d.attrs.strokeHeight:s/2,g=t+f+s/2;u=o.drawLine(d.x,g-f*2,d.x,g,d.attrs.strokeColor?d.attrs.strokeColor:void 0,d.attrs.strokeDashArray,d.attrs.strokeWidth?d.attrs.strokeWidth:2,d.attrs.strokeLineCap),l.add(u)}}):Array.isArray(a)&&a.forEach(d=>{if(d.y>=-1&&d.y<=o.w.layout.gridHeight+1){const f=typeof d.attrs.strokeWidth<"u"?d.attrs.strokeWidth:i/2,g=e+f+i/2;u=o.drawLine(g-f*2,d.y,g,d.y,d.attrs.strokeColor?d.attrs.strokeColor:void 0,d.attrs.strokeDashArray,d.attrs.strokeHeight?d.attrs.strokeHeight:2,d.attrs.strokeLineCap),l.add(u)}}),l}drawBarShadow({prevPaths:e,currPaths:t,color:r,realIndex:a,j:i}){const s=this.w,{x:o,x1:l,barYPosition:u}=e,{x:d,x1:f,barYPosition:g}=t,p=u+t.barHeight,b=new ve(this.barCtx.w),y=new ee,x=b.move(l,p)+b.line(o,p)+b.line(d,g)+b.line(f,g)+b.line(l,p)+(s.config.plotOptions.bar.borderRadiusApplication==="around"||this.arrBorderRadius[a][i]==="both"?" Z":" z");return b.drawPath({d:x,fill:y.shadeColor(.5,ee.rgb2hex(r)),stroke:"none",strokeWidth:0,fillOpacity:1,classes:"apexcharts-bar-shadow apexcharts-decoration-element"})}getZeroValueEncounters({i:e,j:t}){var r;const a=this.w;let i=0,s=0;return(a.config.plotOptions.bar.horizontal?a.seriesData.series.map((l,u)=>u):((r=a.globals.columnSeries)==null?void 0:r.i.map(l=>l))||[]).forEach(l=>{const u=a.globals.seriesPercent[l][t];u&&i++,l<e&&u===0&&s++}),{nonZeroColumns:i,zeroEncounters:s}}getGroupIndex(e){const t=this.w,r=t.labelData.seriesGroups.findIndex(s=>s.indexOf(t.seriesData.seriesNames[e])>-1),a=this.barCtx.columnGroupIndices;let i=a.indexOf(r);return i<0&&(a.push(r),i=a.length-1),{groupIndex:r,columnGroupIndex:i}}};class Vi{constructor(e,t,r){this.ctx=t,this.w=e,this.barOptions=e.config.plotOptions.bar,this.isHorizontal=this.barOptions.horizontal,this.strokeWidth=e.config.stroke.width,this.isNullValue=!1,this.isRangeBar=e.rangeData.seriesRange.length&&this.isHorizontal,this.isVerticalGroupedRangeBar=!e.globals.isBarHorizontal&&e.rangeData.seriesRange.length&&e.config.plotOptions.bar.rangeBarGroupRows,this.isFunnel=this.barOptions.isFunnel,this.isPyramid=this.barOptions.isPyramid,this.pyramidLayout=null,this.xyRatios=r,this.xRatio=0,this.yRatio=[],this.invertedXRatio=0,this.invertedYRatio=0,this.baseLineY=[],this.baseLineInvertedY=0,this.xyRatios!==null&&(this.xRatio=r.xRatio,this.yRatio=r.yRatio,this.invertedXRatio=r.invertedXRatio,this.invertedYRatio=r.invertedYRatio,this.baseLineY=r.baseLineY,this.baseLineInvertedY=r.baseLineInvertedY),this.yaxisIndex=0,this.translationsIndex=0,this.seriesLen=0,this.pathArr=[],this.series=[],this.elSeries=null,this.visibleI=0,this.isReversed=!1;const a=new Wn(this.w);this.lastActiveBarSerieIndex=a.getActiveConfigSeriesIndex("desc",["bar","column"]),this.columnGroupIndices=[];const i=a.getBarSeriesIndices(),s=new Zn(this.w);this.stackedSeriesTotals=s.getStackedSeriesTotals(this.w.config.series.map((o,l)=>i.indexOf(l)===-1?l:-1).filter(o=>o!==-1)),this.barHelpers=new Qie(this)}draw(e,t){var r,a;const i=this.w,s=new ve(this.w),o=new Zn(this.w);e=o.getLogSeries(e),this.series=e,this.yRatio=o.getLogYRatios(this.yRatio),this.barHelpers.initVariables(e);const l=s.group({class:"apexcharts-bar-series apexcharts-plot-series"});i.config.dataLabels.enabled&&this.totalItems>this.barOptions.dataLabels.maxItems&&console.warn("WARNING: DataLabels are enabled but there are too many to display. This may cause performance issue when rendering - ApexCharts");for(let u=0,d=0;u<e.length;u++,d++){let f,g;const p=[],b=[],y=i.globals.comboCharts?t[u]:u,{columnGroupIndex:x}=this.barHelpers.getGroupIndex(y),S=s.group({class:"apexcharts-series",rel:u+1,seriesName:ee.escapeString(i.seriesData.seriesNames[y]),"data:realIndex":y});Wn.addCollapsedClassToSeries(this.w,S,y),e[u].length>0&&(this.visibleI=this.visibleI+1),this.yRatio.length>1&&(this.yaxisIndex=i.globals.seriesYAxisReverseMap[y],this.translationsIndex=y);const C=this.translationsIndex;this.isReversed=i.config.yaxis[this.yaxisIndex]&&i.config.yaxis[this.yaxisIndex].reversed,this.isPyramid&&(this.pyramidLayout=this.barHelpers.computePyramidLayout(e[u]));const O=this.barHelpers.initialPositions(y),{y:D,yDivision:M,zeroW:A,x:T,xDivision:P,zeroH:R}=O;let N=O.barHeight,I=O.barWidth;g=D,f=T,this.isHorizontal||b.push(f+(I??0)/2);const $=s.group({class:"apexcharts-datalabels","data:realIndex":y});i.globals.delayedElements.push({el:$.node}),$.node.classList.add("apexcharts-element-hidden");const Y=s.group({class:"apexcharts-bar-goals-markers"}),k=s.group({class:"apexcharts-bar-shadows"});i.globals.delayedElements.push({el:k.node}),k.node.classList.add("apexcharts-element-hidden");for(let H=0;H<e[u].length;H++){const F=this.barHelpers.getStrokeWidth(u,H,y);let B=null;const X={indexes:{i:u,j:H,realIndex:y,translationsIndex:C,bc:d},x:f,y:g,strokeWidth:F,elSeries:S};this.isHorizontal?(B=this.drawBarPaths(Lt(ct({},X),{barHeight:N,zeroW:A,yDivision:M})),I=this.series[u][H]/this.invertedYRatio):(B=this.drawColumnPaths(Lt(ct({},X),{xDivision:P,barWidth:I,zeroH:R})),N=this.series[u][H]/this.yRatio[C]);const Q=this.barHelpers.getPathFillColor(e,u,H,y);if(this.isFunnel&&!this.isPyramid&&this.barOptions.isFunnel3d&&((r=i.config.plotOptions.funnel)==null?void 0:r.shape)!=="trapezoid"&&this.pathArr.length&&H>0){const V=this.barHelpers.drawBarShadow({color:typeof Q.color=="string"&&((a=Q.color)==null?void 0:a.indexOf("url"))===-1?Q.color:ee.hexToRgba(i.globals.colors[u]),prevPaths:this.pathArr[this.pathArr.length-1],currPaths:B,realIndex:y,j:H});k.add(V),i.config.chart.dropShadow.enabled&&new jr(this.w).dropShadow(V,i.config.chart.dropShadow,y)}this.pathArr.push(B);const z=this.barHelpers.drawGoalLine({barXPosition:B.barXPosition,barYPosition:B.barYPosition,goalX:B.goalX,goalY:B.goalY,barHeight:N,barWidth:I});z&&Y.add(z),g=B.y,f=B.x,H>0&&b.push(f+(I??0)/2),p.push(g),this.renderSeries(Lt(ct({realIndex:y,pathFill:Q.color},Q.useRangeColor?{lineFill:Q.color}:{}),{j:H,i:u,columnGroupIndex:x,pathFrom:B.pathFrom,pathTo:B.pathTo,strokeWidth:F,elSeries:S,x:f,y:g,series:e,barHeight:Math.abs(B.barHeight?B.barHeight:N),barWidth:Math.abs(B.barWidth?B.barWidth:I),elDataLabelsWrap:$,elGoalsMarkers:Y,elBarShadows:k,visibleSeries:this.visibleI,type:"bar"}))}i.globals.seriesXvalues[y]=b,i.globals.seriesYvalues[y]=p,l.add(S)}return l}renderSeries({realIndex:e,pathFill:t,lineFill:r,j:a,i,columnGroupIndex:s,pathFrom:o,pathTo:l,strokeWidth:u,elSeries:d,x:f,y:g,y1:p,y2:b,series:y,barHeight:x,barWidth:S,barXPosition:C,barYPosition:O,elDataLabelsWrap:D,elGoalsMarkers:M,elBarShadows:A,visibleSeries:T,type:P,classes:R}){var N;const I=this.w,$=new ve(this.w,this.ctx);let Y=!1;if(d._bindingsDelegated||(d._bindingsDelegated=!0,$.setupEventDelegation(d,`.apexcharts-${P}-area`)),!r){let z=function(j){const q=I.config.stroke.colors;let G;return Array.isArray(q)&&q.length>0&&(G=q[j],G||(G=""),typeof G=="function")?G({value:I.seriesData.series[j][a],dataPointIndex:a,w:I}):G};const V=typeof I.globals.stroke.colors[e]=="function"?z(e):I.globals.stroke.colors[e];r=this.barOptions.distributed?I.globals.stroke.colors[a]:V}const H=new Zie(this).handleBarDataLabels({x:f,y:g,y1:p,y2:b,i,j:a,series:y,realIndex:e,columnGroupIndex:s,barHeight:x,barWidth:S,barXPosition:C,barYPosition:O,visibleSeries:T});I.globals.isBarHorizontal||(H.dataLabelsPos.dataLabelsX+Math.max(S,I.globals.barPadForNumericAxis)<0||H.dataLabelsPos.dataLabelsX-Math.max(S,I.globals.barPadForNumericAxis)>I.layout.gridWidth)&&(Y=!0),I.config.series[i].data[a]&&I.config.series[i].data[a].strokeColor&&(r=I.config.series[i].data[a].strokeColor),this.isNullValue&&(t="none");const F=I.config.chart.animations,B=F.animateGradually,X=B&&B.enabled!==!1;let Q=0;if(X){const z=I.globals.dataPoints||1,V=B.delay||0,j=Math.min(V,F.speed*.5/Math.max(1,z));let q=IM({style:"sequential",index:a,baseDelay:j});I.config.chart.stacked&&(q+=i*j*.5),Q=q/(V||1)}if(!Y){const V=((N=this.ctx.morphTypeChange)==null?void 0:N.isActive())===!0?this.ctx.morphTypeChange.getSpeed():I.config.chart.animations.dynamicAnimation.speed,j=$.renderPaths({i,j:a,realIndex:e,pathFrom:o,pathTo:l,stroke:r,strokeWidth:u,strokeLineCap:I.config.stroke.lineCap,fill:t,animationDelay:Q,initialSpeed:I.config.chart.animations.speed,dataChangeSpeed:V,className:`apexcharts-${P}-area ${R}`,chartType:P,bindEventsOnPaths:!1});j.attr("clip-path",`url(#gridRectBarMask${I.globals.cuid})`);const q=I.config.forecastDataPoints;q.count>0&&a>=I.globals.dataPoints-q.count&&(j.node.setAttribute("stroke-dasharray",q.dashArray),j.node.setAttribute("stroke-width",q.strokeWidth),j.node.setAttribute("fill-opacity",q.fillOpacity)),typeof p<"u"&&typeof b<"u"&&(j.attr("data-range-y1",p),j.attr("data-range-y2",b)),new jr(this.w).setSelectionFilter(j,e,a),d.add(j),j.attr({cy:H.dataLabelsPos.bcy,cx:H.dataLabelsPos.bcx,j:a,val:I.seriesData.series[i][a],barHeight:x,barWidth:S}),H.dataLabels!==null&&D.add(H.dataLabels),H.totalDataLabels&&D.add(H.totalDataLabels),d.add(D),M&&d.add(M),A&&d.add(A)}return d}drawBarPaths({indexes:e,barHeight:t,strokeWidth:r,zeroW:a,x:i,y:s,yDivision:o,elSeries:l}){const u=this.w,d=e.i,f=e.j;let g;if(u.axisFlags.isXNumeric)s=(u.seriesData.seriesX[d][f]-u.globals.minX)/this.invertedXRatio-t,g=s+t*this.visibleI;else if(u.config.plotOptions.bar.hideZeroBarsWhenGrouped){const{nonZeroColumns:S,zeroEncounters:C}=this.barHelpers.getZeroValueEncounters({i:d,j:f});S>0&&(t=this.seriesLen*t/S),g=s+t*this.visibleI,g-=t*C}else g=s+t*this.visibleI;const p=this.isFunnel&&u.config.plotOptions.funnel.shape==="trapezoid",b=this.isPyramid&&this.pyramidLayout?this.pyramidLayout[f]:null,y=!!b;if(b)g=b.y,t=b.height;else if(this.isFunnel&&!p){const S=a??0;a=S-(this.barHelpers.getXForValue(this.series[d][f],S)-S)/2}i=this.barHelpers.getXForValue(this.series[d][f],a??0);let x;return b?x=this.barHelpers.getPyramidPaths({barYPosition:g,barHeight:t,topHalf:b.topHalf,bottomHalf:b.bottomHalf,realIndex:e.realIndex,j:f,strokeWidth:r,w:u}):p?x=this.barHelpers.getFunnelTrapezoidPaths({barYPosition:g,barHeight:t,series:this.series,i:d,j:f,realIndex:e.realIndex,strokeWidth:r,w:u}):x=this.barHelpers.getBarpaths({barYPosition:g,barHeight:t,x1:a,x2:i,strokeWidth:r,isReversed:this.isReversed,series:this.series,realIndex:e.realIndex,i:d,j:f,w:u}),(p||y)&&(a=x.x1,i=x.x),!u.axisFlags.isXNumeric&&!y&&(s=s+o),y&&(s=g),this.barHelpers.barBackground({j:f,i:d,y1:g-t*this.visibleI,y2:t*this.seriesLen,elSeries:l}),{pathTo:x.pathTo,pathFrom:x.pathFrom,x1:a,x:i,y:s,goalX:this.barHelpers.getGoalValues("x",a,null,d,f,0),barYPosition:g,barHeight:t}}drawColumnPaths({indexes:e,x:t,y:r,xDivision:a,barWidth:i,zeroH:s,strokeWidth:o,elSeries:l}){const u=this.w,d=e.realIndex,f=e.translationsIndex,g=e.i,p=e.j,b=e.bc;let y;if(u.axisFlags.isXNumeric){const S=this.getBarXForNumericXAxis({x:t,j:p,realIndex:d,barWidth:i});t=S.x,y=S.barXPosition}else if(u.config.plotOptions.bar.hideZeroBarsWhenGrouped){const{nonZeroColumns:S,zeroEncounters:C}=this.barHelpers.getZeroValueEncounters({i:g,j:p});S>0&&(i=this.seriesLen*i/S),y=t+i*this.visibleI,y-=i*C}else y=t+i*this.visibleI;r=this.barHelpers.getYForValue(this.series[g][p],s,f);const x=this.barHelpers.getColumnPaths({barXPosition:y,barWidth:i,y1:s,y2:r,strokeWidth:o,isReversed:this.isReversed,series:this.series,realIndex:d,i:g,j:p,w:u});return u.axisFlags.isXNumeric||(t=t+a),this.barHelpers.barBackground({bc:b,j:p,i:g,x1:y-o/2-i*this.visibleI,x2:i*this.seriesLen+o/2,elSeries:l}),{pathTo:x.pathTo,pathFrom:x.pathFrom,x:t,y:r,goalY:this.barHelpers.getGoalValues("y",null,s,g,p,f),barXPosition:y,barWidth:i}}getBarXForNumericXAxis({x:e,barWidth:t,realIndex:r,j:a}){const i=this.w;let s=r;return i.seriesData.seriesX[r].length||(s=i.globals.maxValsInArrayIndex),ee.isNumber(i.seriesData.seriesX[s][a])&&(e=(i.seriesData.seriesX[s][a]-i.globals.minX)/this.xRatio-t*this.seriesLen/2),{barXPosition:e+t*this.visibleI,x:e}}getPreviousPath(e,t,r){const a=this.w;let i=null;for(let s=0;s<a.globals.previousPaths.length;s++){const o=a.globals.previousPaths[s];o.paths&&o.paths.length>0&&parseInt(o.realIndex,10)===parseInt(String(e),10)&&typeof o.paths[t]<"u"&&(i=o.paths[t].d)}return i&&Vi.pathCommandCount(i)===Vi.pathCommandCount(r)?i:r}static pathCommandCount(e){if(!e)return 0;const t=e.match(/[A-Za-z]/g);return t?t.length:0}}class Kie extends Vi{draw(e,t){const r=this.w;this.graphics=new ve(this.w),this.bar=new Vi(this.w,this.ctx,this.xyRatios);const a=new Zn(this.w);e=a.getLogSeries(e),this.yRatio=a.getLogYRatios(this.yRatio),this.barHelpers.initVariables(e),r.config.chart.stackType==="100%"&&(e=r.globals.comboCharts?t.map(l=>r.globals.seriesPercent[l]):r.globals.seriesPercent.slice()),this.series=e,this.barHelpers.initializeStackedPrevVars(this);const i=this.graphics.group({class:"apexcharts-bar-series apexcharts-plot-series"});let s=0,o=0;for(let l=0,u=0;l<e.length;l++,u++){const d=r.globals.comboCharts?t[l]:l,{groupIndex:f,columnGroupIndex:g}=this.barHelpers.getGroupIndex(d);this.groupCtx=this[r.labelData.seriesGroups[f]];const p=[],b=[];let y=0;this.yRatio.length>1&&(this.yaxisIndex=r.globals.seriesYAxisReverseMap[d][0],y=d),this.isReversed=r.config.yaxis[this.yaxisIndex]&&r.config.yaxis[this.yaxisIndex].reversed;let x=this.graphics.group({class:"apexcharts-series",seriesName:ee.escapeString(r.seriesData.seriesNames[d]),rel:l+1,"data:realIndex":d});Wn.addCollapsedClassToSeries(this.w,x,d);const S=this.graphics.group({class:"apexcharts-datalabels","data:realIndex":d}),C=this.graphics.group({class:"apexcharts-bar-goals-markers"}),O=this.initialPositions(s,o,void 0,void 0,void 0,void 0,y),{xDivision:D,yDivision:M,zeroH:A,zeroW:T}=O;let P=O.barHeight,R=O.barWidth;o=O.y,s=O.x,r.globals.barHeight=P,r.globals.barWidth=R,this.barHelpers.initializeStackedXYVars(this),this.groupCtx.prevY.length===1&&this.groupCtx.prevY[0].every(N=>isNaN(N))&&(this.groupCtx.prevY[0]=this.groupCtx.prevY[0].map(()=>A),this.groupCtx.prevYF[0]=this.groupCtx.prevYF[0].map(()=>0));for(let N=0;N<r.globals.dataPoints;N++){const I=this.barHelpers.getStrokeWidth(l,N,d),$={indexes:{i:l,j:N,realIndex:d,translationsIndex:y,bc:u},strokeWidth:I,x:s,y:o,elSeries:x,columnGroupIndex:g,seriesGroup:r.labelData.seriesGroups[f]};let Y=null;this.isHorizontal?(Y=this.drawStackedBarPaths(Lt(ct({},$),{zeroW:T,barHeight:P,yDivision:M})),R=this.series[l][N]/this.invertedYRatio):(Y=this.drawStackedColumnPaths(Lt(ct({},$),{xDivision:D,barWidth:R,zeroH:A})),P=this.series[l][N]/this.yRatio[y]);const k=this.barHelpers.drawGoalLine({barXPosition:Y.barXPosition,barYPosition:Y.barYPosition,goalX:Y.goalX,goalY:Y.goalY,barHeight:P,barWidth:R});k&&C.add(k),o=Y.y,s=Y.x,p.push(s),b.push(o);const H=this.barHelpers.getPathFillColor(e,l,N,d);let F="";const B=r.globals.isBarHorizontal?"apexcharts-flip-x":"apexcharts-flip-y";(this.barHelpers.arrBorderRadius[d][N]==="bottom"&&r.seriesData.series[d][N]>0||this.barHelpers.arrBorderRadius[d][N]==="top"&&r.seriesData.series[d][N]<0)&&(F=B),x=this.renderSeries(Lt(ct({realIndex:d,pathFill:H.color},H.useRangeColor?{lineFill:H.color}:{}),{j:N,i:l,columnGroupIndex:g,pathFrom:Y.pathFrom,pathTo:Y.pathTo,strokeWidth:I,elSeries:x,x:s,y:o,series:e,barHeight:P,barWidth:R,elDataLabelsWrap:S,elGoalsMarkers:C,type:"bar",visibleSeries:g,classes:F}))}r.globals.seriesXvalues[d]=p,r.globals.seriesYvalues[d]=b,this.groupCtx.prevY.push(this.groupCtx.yArrj),this.groupCtx.prevYF.push(this.groupCtx.yArrjF),this.groupCtx.prevYVal.push(this.groupCtx.yArrjVal),this.groupCtx.prevX.push(this.groupCtx.xArrj),this.groupCtx.prevXF.push(this.groupCtx.xArrjF),this.groupCtx.prevXVal.push(this.groupCtx.xArrjVal),i.add(x)}return i}initialPositions(e,t,r,a,i,s,o){const l=this.w;let u,d;if(this.isHorizontal){a=l.layout.gridHeight/l.globals.dataPoints;const g=l.config.plotOptions.bar.barHeight;String(g).indexOf("%")===-1?u=parseInt(g,10):u=a*parseInt(g,10)/100,s=l.globals.padHorizontal+(this.isReversed?l.layout.gridWidth-this.baseLineInvertedY:this.baseLineInvertedY),t=(a-u)/2}else{r=l.layout.gridWidth/l.globals.dataPoints,d=r;const g=l.config.plotOptions.bar.columnWidth;l.axisFlags.isXNumeric&&l.globals.dataPoints>1?(r=l.globals.minXDiff/this.xRatio,d=r*parseInt(this.barOptions.columnWidth,10)/100):String(g).indexOf("%")===-1?d=parseInt(g,10):d*=parseInt(g,10)/100,this.isReversed?i=this.baseLineY[o]:i=l.layout.gridHeight-this.baseLineY[o],e=l.globals.padHorizontal+(r-d)/2}const f=l.globals.barGroups.length||1;return{x:e,y:t,yDivision:a,xDivision:r,barHeight:(u??0)/f,barWidth:(d??0)/f,zeroH:i,zeroW:s}}drawStackedBarPaths({indexes:e,barHeight:t,strokeWidth:r,zeroW:a,x:i,y:s,columnGroupIndex:o,seriesGroup:l,yDivision:u,elSeries:d}){var f,g,p,b,y;const x=this.w,S=s+o*t;let C;const O=e.i,D=e.j,M=e.realIndex,A=e.translationsIndex;let T=0;for(let N=0;N<this.groupCtx.prevXF.length;N++)T=T+this.groupCtx.prevXF[N][D];let P=O;if(x.config.series[M].name&&(P=l.indexOf(x.config.series[M].name)),P>0){let N=a;this.groupCtx.prevXVal[P-1][D]<0?N=((f=this.series[O])==null?void 0:f[D])>=0?this.groupCtx.prevX[P-1][D]+T-(this.isReversed?T:0)*2:this.groupCtx.prevX[P-1][D]:this.groupCtx.prevXVal[P-1][D]>=0&&(N=((g=this.series[O])==null?void 0:g[D])>=0?this.groupCtx.prevX[P-1][D]:this.groupCtx.prevX[P-1][D]-T+(this.isReversed?T:0)*2),C=N}else C=a;((p=this.series[O])==null?void 0:p[D])===null?i=C:i=C+((b=this.series[O])==null?void 0:b[D])/this.invertedYRatio-(this.isReversed?((y=this.series[O])==null?void 0:y[D])/this.invertedYRatio:0)*2;const R=this.barHelpers.getBarpaths({barYPosition:S,barHeight:t,x1:C,x2:i,strokeWidth:r,isReversed:this.isReversed,series:this.series,realIndex:e.realIndex,seriesGroup:l,i:O,j:D,w:x});return this.barHelpers.barBackground({j:D,i:O,y1:S,y2:t,elSeries:d}),s=s+u,{pathTo:R.pathTo,pathFrom:R.pathFrom,goalX:this.barHelpers.getGoalValues("x",a,null,O,D,A),barXPosition:C,barYPosition:S,x:i,y:s}}drawStackedColumnPaths({indexes:e,x:t,y:r,xDivision:a,barWidth:i,zeroH:s,columnGroupIndex:o,seriesGroup:l,elSeries:u}){var d,f,g,p,b,y,x,S,C;const O=this.w,D=e.i,M=e.j,A=e.bc,T=e.realIndex,P=e.translationsIndex;if(O.axisFlags.isXNumeric){let k=O.seriesData.seriesX[T][M];k||(k=0),t=(k-O.globals.minX)/this.xRatio-i/2*O.globals.barGroups.length}const R=t+o*i;let N,I=0;for(let k=0;k<this.groupCtx.prevYF.length;k++)I=I+(isNaN(this.groupCtx.prevYF[k][M])?0:this.groupCtx.prevYF[k][M]);let $=D;if(l&&($=l.indexOf(O.seriesData.seriesNames[T])),$>0&&!O.axisFlags.isXNumeric||$>0&&O.axisFlags.isXNumeric&&O.seriesData.seriesX[T-1][M]===O.seriesData.seriesX[T][M]){let k,H;const F=Math.min(this.yRatio.length+1,T+1);if(this.groupCtx.prevY[$-1]!==void 0&&this.groupCtx.prevY[$-1].length){for(let B=1;B<F;B++)if(!isNaN((d=this.groupCtx.prevY[$-B])==null?void 0:d[M])){H=this.groupCtx.prevY[$-B][M];break}}for(let B=1;B<F;B++)if(((f=this.groupCtx.prevYVal[$-B])==null?void 0:f[M])<0){k=((g=this.series[D])==null?void 0:g[M])>=0?H-I+(this.isReversed?I:0)*2:H;break}else if(((p=this.groupCtx.prevYVal[$-B])==null?void 0:p[M])>=0){k=((b=this.series[D])==null?void 0:b[M])>=0?H:H+I-(this.isReversed?I:0)*2;break}typeof k>"u"&&(k=O.layout.gridHeight),(y=this.groupCtx.prevYF[0])!=null&&y.every(B=>B===0)&&this.groupCtx.prevYF.slice(1,$).every(B=>B.every(X=>isNaN(X)))?N=s:N=k}else N=s;(x=this.series[D])!=null&&x[M]?r=N-((S=this.series[D])==null?void 0:S[M])/this.yRatio[P]+(this.isReversed?((C=this.series[D])==null?void 0:C[M])/this.yRatio[P]:0)*2:r=N;const Y=this.barHelpers.getColumnPaths({barXPosition:R,barWidth:i,y1:N,y2:r,yRatio:this.yRatio[P],strokeWidth:this.strokeWidth,isReversed:this.isReversed,series:this.series,seriesGroup:l,realIndex:e.realIndex,i:D,j:M,w:O});return this.barHelpers.barBackground({bc:A,j:M,i:D,x1:R,x2:i,elSeries:u}),{pathTo:Y.pathTo,pathFrom:Y.pathFrom,goalY:this.barHelpers.getGoalValues("y",null,s,D,M,0),barXPosition:R,x:O.axisFlags.isXNumeric?t:t+a,y:r}}}function Aj({w:n,points:e,seedA:t,seedB:r,center:a,halfExtent:i,alongFn:s,isHorizontal:o,options:l,clampAt:u}){const d=l;if(!d||d.show===!1)return[];if(!e||!e.length)return[];const f=d.maxPoints||3e3,g=e.length>f?Math.ceil(e.length/f):1,p=d.size!=null?d.size:2.5,b=d.jitter!=null?d.jitter:.5,y=i*b,x=d.constrainToViolin!==!1&&typeof u=="function",S=d.shape==="square",C=d.colorScale,O=C&&Array.isArray(C.colors)&&C.colors.length>0,D=O?Math.max(2,C.steps||24):1,M=O&&C.min!=null?C.min:n.globals.minY,T=(O&&C.max!=null?C.max:n.globals.maxY)-M||1,P=O?new Array(D).fill(""):[""];for(let N=0;N<e.length;N+=g){const I=e[N],$=s(I);let Y=(ese(t*7919+r*100003+N)-.5)*2*y;if(x){const B=u(I);Y>B&&(Y=B),Y<-B&&(Y=-B)}const k=o?$:a+Y,H=o?a+Y:$,F=S?nse(k,H,p):tse(k,H,p);if(O){let B=(I-M)/T;B<0&&(B=0),B>1&&(B=1),P[Math.round(B*(D-1))]+=F}else P[0]+=F}if(!O)return P[0]?[{fill:null,d:P[0]}]:[];const R=[];for(let N=0;N<D;N++)P[N]&&R.push({fill:Jie(C.colors,N/(D-1)),d:P[N]});return R}function Tj({graphics:n,w:e,elSeries:t,pointsByCat:r,options:a,distributed:i,realIndex:s,wrapClass:o,pointClass:l}){if(!a||a.show===!1||!r.length)return;const u=a.opacity!=null?a.opacity:.9,d=a.strokeColor!=null?a.strokeColor:"#fff",f=a.strokeWidth!=null?a.strokeWidth:1,g=e.config.chart.animations.enabled&&!e.globals.resized&&!e.globals.dataChanged,p=n.group({class:g?`${o} apexcharts-element-hidden`:o});g&&e.globals.delayedElements.push({el:p.node}),r.forEach(({groups:b,j:y})=>{const x=i?e.globals.colors[y]:e.globals.colors[s],S=a.fillColor,C=S==="series"?x:S==="series-dark"?z2(x,.45):S||z2(x,.45);b.forEach(O=>{const D=n.drawPath({d:O.d,fill:O.fill!=null?O.fill:C,stroke:f>0?d:"none",strokeWidth:f,fillOpacity:u,classes:l});D.attr("data:realIndex",s),D.attr("j",y),D.attr("clip-path",`url(#gridRectBarMask${e.globals.cuid})`),D.node.style.pointerEvents="none",p.add(D)})}),t.add(p)}function z2(n,e){const t=ee.parseHex(n);if(!t)return n;const r=Math.max(0,1-e);return`rgb(${Math.round(t[0]*r)},${Math.round(t[1]*r)},${Math.round(t[2]*r)})`}function Jie(n,e){if(!n.length)return"#000";if(n.length===1)return n[0];const t=Math.max(0,Math.min(1,e))*(n.length-1),r=Math.floor(t),a=t-r,i=ee.parseHex(n[r])||[0,0,0],s=ee.parseHex(n[Math.min(r+1,n.length-1)])||i,o=(l,u)=>Math.round(l+(u-l)*a);return`rgb(${o(i[0],s[0])},${o(i[1],s[1])},${o(i[2],s[2])})`}function ese(n){let e=(n^2654435769)>>>0;return e=Math.imul(e^e>>>16,73244475),e=Math.imul(e^e>>>16,73244475),((e^e>>>16)>>>0)/4294967296}function tse(n,e,t){return`M ${n-t} ${e} a ${t} ${t} 0 1 0 ${2*t} 0 a ${t} ${t} 0 1 0 ${-2*t} 0 `}function nse(n,e,t){return`M ${n-t} ${e-t} h ${2*t} v ${2*t} h ${-2*t} z `}class B2 extends Vi{draw(e,t,r){var a;const i=this.w,s=new ve(this.w),o=i.globals.comboCharts?t:i.config.chart.type,l=new Ia(this.w);this.candlestickOptions=this.w.config.plotOptions.candlestick,this.boxOptions=this.w.config.plotOptions.boxPlot,this.isHorizontal=i.config.plotOptions.bar.horizontal,this.isOHLC=this.candlestickOptions&&this.candlestickOptions.type==="ohlc",this.coreUtils=new Zn(this.w),e=this.coreUtils.getLogSeries(e),this.series=e,this.yRatio=this.coreUtils.getLogYRatios(this.yRatio),this.barHelpers.initVariables(e);const u=s.group({class:`apexcharts-${o}-series apexcharts-plot-series`});for(let d=0;d<e.length;d++){this.isBoxPlot=i.config.chart.type==="boxPlot"||i.config.series[d].type==="boxPlot";let f,g;const p=[],b=[],y=i.globals.comboCharts?r[d]:d,{columnGroupIndex:x}=this.barHelpers.getGroupIndex(y),S=s.group({class:"apexcharts-series",seriesName:ee.escapeString(i.seriesData.seriesNames[y]),rel:d+1,"data:realIndex":y});Wn.addCollapsedClassToSeries(this.w,S,y),e[d].length>0&&(this.visibleI=this.visibleI+1);let C=0;this.yRatio.length>1&&(this.yaxisIndex=i.globals.seriesYAxisReverseMap[y][0],C=y);const O=this.barHelpers.initialPositions(y),{y:D,barHeight:M,yDivision:A,zeroW:T,x:P,barWidth:R,xDivision:N,zeroH:I}=O;g=D,f=P,b.push(f+(R??0)/2);const $=s.group({class:"apexcharts-datalabels","data:realIndex":y}),Y=s.group({class:"apexcharts-bar-goals-markers"}),k=this.isBoxPlot?this.boxOptions.points:null,H=[],F=i.layout.gridWidth,B=R??0;for(let X=0;X<i.globals.dataPoints;X++){const Q=this.barHelpers.getStrokeWidth(d,X,y);let z=null;const V={indexes:{i:d,j:X,realIndex:y,translationsIndex:C},x:f,y:g,strokeWidth:Q,elSeries:S};if(this.isHorizontal?z=this.drawHorizontalBoxPaths(Lt(ct({},V),{yDivision:A,barHeight:M,zeroW:T})):z=this.drawVerticalBoxPaths(Lt(ct({},V),{xDivision:N,barWidth:R,zeroH:I,cullBounds:{lo:-B,hi:F+B}})),g=z.y,f=z.x,X>0&&b.push(f+(R??0)/2),p.push(g),z.culled)continue;const j=this.barHelpers.drawGoalLine({barXPosition:z.barXPosition,barYPosition:z.barYPosition,goalX:z.goalX,goalY:z.goalY,barHeight:M,barWidth:R});if(j&&Y.add(j),z.pathTo.forEach((q,G)=>{const U=!this.isBoxPlot&&this.candlestickOptions.wick.useFillColor?z.color[G]:i.globals.stroke.colors[d],K=l.fillPath({seriesNumber:y,dataPointIndex:X,color:z.color[G],value:e[d][X]});this.renderSeries({realIndex:y,pathFill:K,lineFill:U,j:X,i:d,pathFrom:z.pathFrom,pathTo:q,strokeWidth:Q,elSeries:S,x:f,y:g,series:e,columnGroupIndex:x,barHeight:M,barWidth:R,elDataLabelsWrap:$,elGoalsMarkers:Y,visibleSeries:this.visibleI,type:i.config.chart.type})}),k&&k.show!==!1){const q=(a=i.candleData.seriesBoxPoints[y])==null?void 0:a[X];if(q&&q.length){const G=ie=>this.coreUtils.getLogValAtSeriesIndex(ie,y);let U,K,te;if(this.isHorizontal){const ie=this.invertedYRatio,ce=M??0,ue=T??0;U=z.barYPosition+ce/2,K=ce/2,te=be=>ue+G(be)/ie}else{const ie=this.yRatio[C],ce=R??0,ue=I??0;U=z.barXPosition+ce/2,K=ce/2,te=be=>ue-G(be)/ie}const ne=Aj({w:i,points:q,seedA:y,seedB:X,center:U,halfExtent:K,alongFn:te,isHorizontal:this.isHorizontal,options:k});ne.length&&H.push({groups:ne,j:X})}}}k&&Tj({graphics:s,w:i,elSeries:S,pointsByCat:H,options:k,distributed:i.config.plotOptions.bar.distributed,realIndex:y,wrapClass:"apexcharts-boxPlot-points-wrap",pointClass:"apexcharts-boxPlot-points"}),i.globals.seriesXvalues[y]=b,i.globals.seriesYvalues[y]=p,u.add(S)}return u}drawVerticalBoxPaths({indexes:e,x:t,xDivision:r,barWidth:a,zeroH:i,strokeWidth:s,cullBounds:o=null}){var l,u;const d=this.w,f=new ve(this.w),g=e.i,p=e.j,{colors:b}=d.config.plotOptions.candlestick,{colors:y}=this.boxOptions,x=e.realIndex,S=H=>Array.isArray(H)?H[x]:H,C=S(b.upward),O=S(b.downward),D=this.yRatio[e.translationsIndex],M=this.getOHLCValue(x,p);let A=i,T=i,P=M.o<M.c?[C]:[O];this.isBoxPlot&&(P=[S(y.lower),S(y.upper)]);let R=Math.min(M.o,M.c),N=Math.max(M.o,M.c),I=M.m;d.axisFlags.isXNumeric&&(t=(d.seriesData.seriesX[x][p]-d.globals.minX)/this.xRatio-a/2);const $=t+a*this.visibleI;if(typeof((l=this.series[g])==null?void 0:l[p])>"u"||((u=this.series[g])==null?void 0:u[p])===null?(R=i,N=i):(R=i-R/D,N=i-N/D,A=i-M.h/D,T=i-M.l/D,I=i-M.m/D),o&&($+a<o.lo||$>o.hi))return{pathTo:null,pathFrom:null,x:d.axisFlags.isXNumeric?t:t+r,y:N,barXPosition:$,color:P,culled:!0};let Y;if(this.isOHLC){const H=$+a/2,F=i-M.o/D,B=i-M.c/D;Y=[f.move(H,A)+f.line(H,T)+f.move(H,F)+f.line($,F)+f.move(H,B)+f.line($+a,B)]}else this.isBoxPlot?Y=[f.move($,R)+f.line($+a/2,R)+f.line($+a/2,A)+f.line($+a/4,A)+f.line($+a-a/4,A)+f.line($+a/2,A)+f.line($+a/2,R)+f.line($+a,R)+f.line($+a,I)+f.line($,I)+f.line($,R+s/2),f.move($,I)+f.line($+a,I)+f.line($+a,N)+f.line($+a/2,N)+f.line($+a/2,T)+f.line($+a-a/4,T)+f.line($+a/4,T)+f.line($+a/2,T)+f.line($+a/2,N)+f.line($,N)+f.line($,I)+"z"]:Y=[f.move($,N)+f.line($+a/2,N)+f.line($+a/2,A)+f.line($+a/2,N)+f.line($+a,N)+f.line($+a,R)+f.line($+a/2,R)+f.line($+a/2,T)+f.line($+a/2,R)+f.line($,R)+f.line($,N-s/2)];let k;return d.globals.previousPaths.length>0?k=this.getPreviousPath(x,p,Y[0]):k=f.move($+a/2,R)+f.move($,R),d.axisFlags.isXNumeric||(t=t+r),{pathTo:Y,pathFrom:k,x:t,y:N,goalY:this.barHelpers.getGoalValues("y",null,i,g,p,e.translationsIndex),barXPosition:$,color:P}}drawHorizontalBoxPaths({indexes:e,y:t,yDivision:r,barHeight:a,zeroW:i,strokeWidth:s}){var o,l;const u=this.w,d=new ve(this.w),f=e.i,g=e.j,p=e.realIndex,{colors:b}=u.config.plotOptions.candlestick,{colors:y}=this.boxOptions,x=$=>Array.isArray($)?$[p]:$,S=this.invertedYRatio,C=this.getOHLCValue(p,g);let O=C.o<C.c?[x(b.upward)]:[x(b.downward)];this.isBoxPlot&&(O=[x(y.lower),x(y.upper)]);let D=i,M=i,A=Math.min(C.o,C.c),T=Math.max(C.o,C.c),P=C.m;u.axisFlags.isXNumeric&&(t=(u.seriesData.seriesX[p][g]-u.globals.minX)/this.invertedXRatio-a/2);const R=t+a*this.visibleI;typeof((o=this.series[f])==null?void 0:o[g])>"u"||((l=this.series[f])==null?void 0:l[g])===null?(A=i,T=i):(A=i+A/S,T=i+T/S,D=i+C.h/S,M=i+C.l/S,P=i+C.m/S);const N=[d.move(A,R)+d.line(A,R+a/2)+d.line(D,R+a/2)+d.line(D,R+a/2-a/4)+d.line(D,R+a/2+a/4)+d.line(D,R+a/2)+d.line(A,R+a/2)+d.line(A,R+a)+d.line(P,R+a)+d.line(P,R)+d.line(A+s/2,R),d.move(P,R)+d.line(P,R+a)+d.line(T,R+a)+d.line(T,R+a/2)+d.line(M,R+a/2)+d.line(M,R+a-a/4)+d.line(M,R+a/4)+d.line(M,R+a/2)+d.line(T,R+a/2)+d.line(T,R)+d.line(P,R)+"z"];let I;return u.globals.previousPaths.length>0?I=this.getPreviousPath(p,g,N[0]):I=d.move(A,R+a/2)+d.move(A,R),u.axisFlags.isXNumeric||(t=t+r),{pathTo:N,pathFrom:I,x:T,y:t,goalX:this.barHelpers.getGoalValues("x",i,null,f,g,0),barYPosition:R,color:O}}getOHLCValue(e,t){const r=this.w,a=this.coreUtils,i=f=>f[e]&&f[e][t]!=null?a.getLogValAtSeriesIndex(f[e][t],e):0,s=i(r.candleData.seriesCandleH),o=i(r.candleData.seriesCandleO),l=i(r.candleData.seriesCandleM),u=i(r.candleData.seriesCandleC),d=i(r.candleData.seriesCandleL);return{o:this.isBoxPlot?s:o,h:this.isBoxPlot?o:s,m:l,l:this.isBoxPlot?u:d,c:this.isBoxPlot?d:u}}}const rse=n=>{const e=ase(n),t=n.length-1,r=1e-6,a=[];let i,s,o,l;for(let u=0;u<t;u++)o=fE(n[u],n[u+1]),Math.abs(o)<r?e[u]=e[u+1]=0:(i=e[u]/o,s=e[u+1]/o,l=i*i+s*s,l>9&&(l=o*3/Math.sqrt(l),e[u]=l*i,e[u+1]=l*s));for(let u=0;u<=t;u++)l=(n[Math.min(t,u+1)][0]-n[Math.max(0,u-1)][0])/(6*(1+e[u]*e[u])),a.push([l||0,e[u]*l||0]);return a},Rj=n=>{let e="";for(let t=0;t<n.length;t++){const r=n[t],a=r.length;a>4?(e+=`C${r[0]}, ${r[1]}`,e+=`, ${r[2]}, ${r[3]}`,e+=`, ${r[4]}, ${r[5]}`):a>2&&(e+=`S${r[0]}, ${r[1]}`,e+=`, ${r[2]}, ${r[3]}`)}return e},dE={points(n){const e=rse(n),t=n[1],r=n[0],a=[],i=e[1],s=e[0];a.push(r,[r[0]+s[0],r[1]+s[1],t[0]-i[0],t[1]-i[1],t[0],t[1]]);for(let o=2,l=e.length;o<l;o++){const u=n[o],d=e[o];a.push([u[0]-d[0],u[1]-d[1],u[0],u[1]])}return a},slice(n,e,t){const r=n.slice(e,t);if(e){if(t-e>1&&r[1].length<6){const a=r[0].length;r[1]=[r[0][a-2]*2-r[0][a-4],r[0][a-1]*2-r[0][a-3]].concat(r[1])}r[0]=r[0].slice(-2)}return r}};function fE(n,e){return(e[1]-n[1])/(e[0]-n[0])}function ase(n){const e=[];let t=n[0],r=n[1],a=e[0]=fE(t,r),i=1;for(let s=n.length-1;i<s;i++)t=r,r=n[i+1],e[i]=(a+(a=fE(t,r)))*.5;return e[i]=a,e}class ise extends Vi{draw(e,t,r){const a=this.w,i=new ve(this.w),s=new Ia(this.w);this.violinOptions=a.config.plotOptions.violin,this.pointsOptions=this.violinOptions.points,this.bandwidthScale=this.violinOptions.bandwidthScale||1,this.normalize=this.violinOptions.normalize||"individual",this.distributed=a.config.plotOptions.bar.distributed,this.isHorizontal=a.config.plotOptions.bar.horizontal,this.coreUtils=new Zn(this.w),e=this.coreUtils.getLogSeries(e),this.series=e,this.yRatio=this.coreUtils.getLogYRatios(this.yRatio),this.barHelpers.initVariables(e);const o=i.group({class:"apexcharts-violin-series apexcharts-plot-series"});for(let l=0;l<e.length;l++){let u,d;const f=[],g=[],p=a.globals.comboCharts?r[l]:l,{columnGroupIndex:b}=this.barHelpers.getGroupIndex(p),y=i.group({class:"apexcharts-series",seriesName:ee.escapeString(a.seriesData.seriesNames[p]),rel:l+1,"data:realIndex":p});Wn.addCollapsedClassToSeries(this.w,y,p),e[l].length>0&&(this.visibleI=this.visibleI+1);let x=0;this.yRatio.length>1&&(this.yaxisIndex=a.globals.seriesYAxisReverseMap[p][0],x=p);const S=this.barHelpers.initialPositions(p),{y:C,barHeight:O,yDivision:D,zeroW:M,x:A,barWidth:T,xDivision:P,zeroH:R}=S;d=C,u=A,g.push(u+(T??0)/2);const N=i.group({class:"apexcharts-datalabels","data:realIndex":p});this.seriesMaxWeight=0,this.normalize==="group"&&(a.violinData.seriesViolinDensity[p]||[]).forEach(Y=>{Y&&Y.maxWeight>this.seriesMaxWeight&&(this.seriesMaxWeight=Y.maxWeight)});const I=[];for(let $=0;$<a.globals.dataPoints;$++){const Y=this.barHelpers.getStrokeWidth(l,$,p),k=this.isHorizontal?this.drawHorizontalViolin({indexes:{i:l,j:$,realIndex:p,translationsIndex:x},y:d,yDivision:D,barHeight:O,zeroW:M}):this.drawVerticalViolin({indexes:{i:l,j:$,realIndex:p,translationsIndex:x},x:u,xDivision:P,barWidth:T,zeroH:R});u=k.x,d=k.y,$>0&&g.push(k.center),f.push(k.alongRepresentative);const H=this.buildPointsSubPath({realIndex:p,j:$,center:k.center,halfExtent:k.halfExtent,alongFn:k.alongFn,density:k.density,maxWeight:k.maxWeight});H.length&&I.push({groups:H,j:$});const F=s.fillPath({seriesNumber:this.distributed?$:p,dataPointIndex:$,color:this.distributed?a.globals.colors[$]:void 0,value:e[l][$]});this.renderSeries({realIndex:p,pathFill:F,lineFill:a.globals.stroke.colors[p],j:$,i:l,pathFrom:k.pathFrom,pathTo:k.pathTo,strokeWidth:Y,elSeries:y,x:u,y:d,series:e,columnGroupIndex:b,barHeight:O,barWidth:T,elDataLabelsWrap:N,visibleSeries:this.visibleI,type:"violin"});const B=y.node.querySelector(`path.apexcharts-violin-area[j='${$}']`);B&&isFinite(k.alongRepresentative)&&B.setAttribute(this.isHorizontal?"cx":"cy",`${k.alongRepresentative}`)}Tj({graphics:i,w:a,elSeries:y,pointsByCat:I,options:this.pointsOptions,distributed:this.distributed,realIndex:p,wrapClass:"apexcharts-violin-points-wrap",pointClass:"apexcharts-violin-points"}),a.globals.seriesXvalues[p]=g,a.globals.seriesYvalues[p]=f,o.add(y)}return o}drawVerticalViolin({indexes:e,x:t,xDivision:r,barWidth:a,zeroH:i}){var s;const o=this.w,{realIndex:l,j:u,translationsIndex:d}=e,f=this.yRatio[d];o.axisFlags.isXNumeric&&(t=(o.seriesData.seriesX[l][u]-o.globals.minX)/this.xRatio-a/2);const p=t+a*this.visibleI+a/2,b=a/2,y=this.getDensity(l,u),x=this.effectiveMaxWeight(y),S=D=>i-this.logVal(D,l)/f,C=this.buildBodyPath({nodes:y.nodes,center:p,halfExtent:b,maxWeight:x,vertical:!0,alongFn:S,collapsed:!1});let O;return o.globals.previousPaths.length>0?O=this.getPreviousPath(l,u,C):O=this.buildBodyPath({nodes:y.nodes,center:p,halfExtent:b,maxWeight:x,vertical:!0,alongFn:S,collapsed:!0}),o.axisFlags.isXNumeric||(t=t+r),{pathTo:C,pathFrom:O,x:t,y:i,center:p,halfExtent:b,alongFn:S,density:y,maxWeight:x,alongRepresentative:S((s=this.series[e.i][u])!=null?s:0)}}drawHorizontalViolin({indexes:e,y:t,yDivision:r,barHeight:a,zeroW:i}){var s;const o=this.w,{realIndex:l,j:u}=e,d=this.invertedYRatio;o.axisFlags.isXNumeric&&(t=(o.seriesData.seriesX[l][u]-o.globals.minX)/this.invertedXRatio-a/2);const g=t+a*this.visibleI+a/2,p=a/2,b=this.getDensity(l,u),y=this.effectiveMaxWeight(b),x=O=>i+this.logVal(O,l)/d,S=this.buildBodyPath({nodes:b.nodes,center:g,halfExtent:p,maxWeight:y,vertical:!1,alongFn:x,collapsed:!1});let C;return o.globals.previousPaths.length>0?C=this.getPreviousPath(l,u,S):C=this.buildBodyPath({nodes:b.nodes,center:g,halfExtent:p,maxWeight:y,vertical:!1,alongFn:x,collapsed:!0}),o.axisFlags.isXNumeric||(t=t+r),{pathTo:S,pathFrom:C,x:i,y:t,center:g,halfExtent:p,alongFn:x,maxWeight:y,density:b,alongRepresentative:x((s=this.series[e.i][u])!=null?s:0)}}getDensity(e,t){var r;const i=(r=this.w.violinData.seriesViolinDensity[e])==null?void 0:r[t];if(!i||!i.values.length)return{nodes:[],maxWeight:0};const s=i.values.map((u,d)=>d);s.sort((u,d)=>i.values[u]-i.values[d]);const o=[];let l=null;for(const u of s){const d=i.values[u];l!==null&&d===l||(o.push({v:d,w:i.weights[u]}),l=d)}return{nodes:o,maxWeight:i.maxWeight}}effectiveMaxWeight(e){return this.normalize==="group"&&this.seriesMaxWeight>0?this.seriesMaxWeight:e.maxWeight}buildBodyPath({nodes:e,center:t,halfExtent:r,maxWeight:a,vertical:i,alongFn:s,collapsed:o}){const l=new ve(this.w);if(e.length===0){const g=s(0);return i?l.move(t,g)+l.line(t,g):l.move(g,t)+l.line(g,t)}const u=g=>{if(o||a<=0)return 0;const p=g/a*r*this.bandwidthScale;return Math.min(r,Math.max(0,p))},d=[],f=[];for(let g=0;g<e.length;g++){const p=s(e[g].v),b=u(e[g].w);i?(d.push([t+b,p]),f.push([t-b,p])):(d.push([p,t+b]),f.push([p,t-b]))}return f.reverse(),this.smoothSegment(d,i,!1)+this.smoothSegment(f,i,!0)+"z"}smoothSegment(e,t,r){const a=new ve(this.w),i=e[0];let s=r?a.line(i[0],i[1]):a.move(i[0],i[1]);if(e.length<3||!this.strictlyMonotonic(e,t)){for(let f=1;f<e.length;f++)s+=a.line(e[f][0],e[f][1]);return s}const l=e.map(([f,g])=>t?[g,f]:[f,g]),u=dE.points(l),d=t?u.map(sse):u;return s+=Rj(d),s}strictlyMonotonic(e,t){const r=t?1:0;for(let a=1;a<e.length;a++)if(e[a][r]===e[a-1][r])return!1;return!0}buildPointsSubPath({realIndex:e,j:t,center:r,halfExtent:a,alongFn:i,density:s,maxWeight:o}){var l;return Aj({w:this.w,points:(l=this.w.violinData.seriesViolinPoints[e])==null?void 0:l[t],seedA:e,seedB:t,center:r,halfExtent:a,alongFn:i,isHorizontal:this.isHorizontal,options:this.pointsOptions,clampAt:u=>this.halfWidthAtValue(u,s,a,o)})}halfWidthAtValue(e,t,r,a){const{nodes:i}=t,s=a??t.maxWeight;if(!i.length||s<=0)return 0;const o=l=>Math.min(r,l/s*r*this.bandwidthScale);if(e<=i[0].v)return o(i[0].w);if(e>=i[i.length-1].v)return o(i[i.length-1].w);for(let l=1;l<i.length;l++)if(e<=i[l].v){const u=i[l-1],d=i[l],f=d.v===u.v?0:(e-u.v)/(d.v-u.v);return o(u.w+(d.w-u.w)*f)}return 0}logVal(e,t){return this.coreUtils.getLogValAtSeriesIndex(e,t)}}function sse(n){const e=[];for(let t=0;t<n.length;t+=2)e.push(n[t+1],n[t]);return e}class Pj{constructor(e,t){this.ctx=t,this.w=e}checkColorRange(){const e=this.w;let t=!1;const r=e.config.plotOptions[e.config.chart.type];return r.colorScale.ranges.length>0&&r.colorScale.ranges.map(a=>{a.from<=0&&(t=!0)}),t}getShadeColor(e,t,r,a){const i=this.w;let s=1;const o=i.config.plotOptions[e].shadeIntensity,l=this.determineColor(e,t,r);i.globals.hasNegs||a?i.config.plotOptions[e].reverseNegativeShade?l.percent<0?s=l.percent/100*(o*1.25):s=(1-l.percent/100)*(o*1.25):l.percent<=0?s=1-(1+l.percent/100)*o:s=(1-l.percent/100)*o:(s=1-l.percent/100,e==="treemap"&&(s=(1-l.percent/100)*(o*1.25)));let u=l.color;const d=new ee;if(i.config.plotOptions[e].enableShades)if(this.w.config.theme.mode==="dark"){const f=d.shadeColor(s*-1,l.color);u=ee.hexToRgba(ee.isColorHex(f)?f:ee.rgb2hex(f),i.config.fill.opacity)}else{const f=d.shadeColor(s,l.color);u=ee.hexToRgba(ee.isColorHex(f)?f:ee.rgb2hex(f),i.config.fill.opacity)}return{color:u,colorProps:l}}determineColor(e,t,r){const a=this.w,i=a.seriesData.series[t][r],s=a.config.plotOptions[e];let o=s.colorScale.inverse?r:t;s.distributed&&a.config.chart.type==="treemap"&&(o=r);let l=a.globals.colors[o],u=null,d=Math.min(...a.seriesData.series[t]),f=Math.max(...a.seriesData.series[t]);!s.distributed&&e==="heatmap"&&(d=a.globals.minY,f=a.globals.maxY),typeof s.colorScale.min<"u"&&(d=s.colorScale.min<a.globals.minY?s.colorScale.min:a.globals.minY,f=s.colorScale.max>a.globals.maxY?s.colorScale.max:a.globals.maxY);const g=Math.abs(f)+Math.abs(d);let p=g===0?0:100*i/g;return s.colorScale.ranges.length>0&&s.colorScale.ranges.map(y=>{if(i>=y.from&&i<=y.to){l=y.color,u=y.foreColor?y.foreColor:null,d=y.from,f=y.to;const x=Math.abs(f)+Math.abs(d);p=x===0?0:100*i/x}}),{color:l,foreColor:u,percent:p}}calculateDataLabels({text:e,x:t,y:r,i:a,j:i,colorProps:s,fontSize:o}){const u=this.w.config.dataLabels,d=new ve(this.w),f=new Ol(this.w,this.ctx);let g=null;if(u.enabled){g=d.group({class:"apexcharts-data-labels"});const p=u.offsetX,b=u.offsetY,y=t+p,x=r+parseFloat(u.style.fontSize)/3+b;f.plotDataLabelsText({x:y,y:x,text:e,i:a,j:i,color:s.foreColor,parent:g,fontSize:o,dataLabelsConfig:u})}return g}}class ose{constructor(e,t,r){this.ctx=t,this.w=e,this.xRatio=r.xRatio,this.yRatio=r.yRatio,this.dynamicAnim=this.w.config.chart.animations.dynamicAnimation,this.helpers=new Pj(e,t),this.rectRadius=this.w.config.plotOptions.heatmap.radius,this.strokeWidth=this.w.config.stroke.show?this.w.config.stroke.width:0}draw(e){const t=this.w,r=new ve(this.w,this.ctx),a=r.group({class:"apexcharts-heatmap"});a.attr("clip-path",`url(#gridRectMask${t.globals.cuid})`);const i=t.layout.gridWidth/t.globals.dataPoints,s=t.layout.gridHeight/t.seriesData.series.length;let o=0,l=!1;this.negRange=this.helpers.checkColorRange();const u=e.slice();t.config.yaxis[0].reversed&&(l=!0,u.reverse());for(let f=l?0:u.length-1;l?f<u.length:f>=0;l?f++:f--){const g=r.group({class:"apexcharts-series apexcharts-heatmap-series",seriesName:ee.escapeString(t.seriesData.seriesNames[f]),rel:f+1,"data:realIndex":f});if(Wn.addCollapsedClassToSeries(this.w,g,f),r.setupEventDelegation(g,".apexcharts-heatmap-rect"),t.config.chart.dropShadow.enabled){const x=t.config.chart.dropShadow;new jr(this.w).dropShadow(g,x,f)}let p=0;const b=t.config.plotOptions.heatmap.shadeIntensity;let y=0;for(let x=0;x<t.globals.dataPoints;x++){if(t.seriesData.seriesX.length&&!t.globals.allSeriesHasEqualX&&t.globals.minX+t.globals.minXDiff*x<t.seriesData.seriesX[f][y]){p=p+i;continue}if(y>=u[f].length)break;const S=this.helpers.getShadeColor(t.config.chart.type,f,y,this.negRange);let C=S.color;const O=S.colorProps;t.config.fill.type==="image"&&(C=new Ia(this.w).fillPath({seriesNumber:f,dataPointIndex:y,opacity:t.globals.hasNegs?O.percent<0?1-(1+O.percent/100):b+O.percent/100:O.percent/100,patternID:ee.randomId(),width:t.config.fill.image.width?t.config.fill.image.width:i,height:t.config.fill.image.height?t.config.fill.image.height:s}));const D=this.rectRadius,M=r.drawRect(p,o,i,s,D);if(M.attr({cx:p,cy:o}),M.node.classList.add("apexcharts-heatmap-rect"),g.add(M),M.attr({fill:C,i:f,index:f,j:y,val:e[f][y],"stroke-width":this.strokeWidth,stroke:t.config.plotOptions.heatmap.useFillColorAsStroke?C:t.globals.stroke.colors[0],color:C}),t.config.chart.animations.enabled&&!t.globals.dataChanged){let R=1;t.globals.resized||(R=t.config.chart.animations.speed),this.animateHeatMap(M,p,o,i,s,R,f,y)}if(t.globals.dataChanged){let R=1;if(this.dynamicAnim.enabled&&t.globals.shouldAnimate){R=this.dynamicAnim.speed;let N=t.globals.previousPaths[f]&&t.globals.previousPaths[f][y]&&t.globals.previousPaths[f][y].color;N||(N="rgba(255, 255, 255, 0)"),this.animateHeatColor(M,ee.isColorHex(N)?N:ee.rgb2hex(N),ee.isColorHex(C)?C:ee.rgb2hex(C),R)}}const A=t.config.dataLabels.formatter,T=A(t.seriesData.series[f][y],{value:t.seriesData.series[f][y],seriesIndex:f,dataPointIndex:y,w:t}),P=this.helpers.calculateDataLabels({text:T,x:p+i/2,y:o+s/2,i:f,j:y,colorProps:O,series:u});P!==null&&g.add(P),p=p+i,y++}o=o+s,a.add(g)}const d=t.globals.yAxisScale[0].result.slice();return t.config.yaxis[0].reversed?d.unshift(""):d.push(""),t.globals.yAxisScale[0].result=d,a}animateHeatMap(e,t,r,a,i,s,o=0,l=0){const u=this.w,d=new Mu(this.w),g=u.config.chart.animations.animateGradually,p=g&&g.enabled!==!1;let b=0;if(p){const y=(u.seriesData.series||[]).length||1,x=u.globals.dataPoints||1,S=y+x-2,C=Math.min(g.delay||0,s*.5/Math.max(1,S));b=IM({style:"diagonal",index:l,row:o,col:l,baseDelay:C})}d.animateRect(e,{x:t+a/2,y:r+i/2,width:0,height:0},{x:t,y:r,width:a,height:i},s,()=>{d.animationCompleted(e)},b)}animateHeatColor(e,t,r,a){e.attr({fill:t}).animate(a).attr({fill:r})}}class lse{constructor(e){this.w=e.w,this.lineCtx=e}sameValueSeriesFix(e,t){const r=this.w;if((r.config.fill.type==="gradient"||r.config.fill.type[e]==="gradient")&&new Zn(this.lineCtx.w).seriesHaveSameValues(e)){const i=t[e].slice();i[i.length-1]=i[i.length-1]+1e-6,t[e]=i}return t}calculatePoints({series:e,realIndex:t,x:r,y:a,i,j:s,prevY:o}){const l=this.w,u=[],d=[];let f=this.lineCtx.categoryAxisCorrection+l.config.markers.offsetX;return l.axisFlags.isXNumeric&&(f=(l.seriesData.seriesX[t][0]-l.globals.minX)/this.lineCtx.xRatio+l.config.markers.offsetX),s===0&&(u.push(f),d.push(ee.isNumber(e[i][0])?o+l.config.markers.offsetY:null)),u.push(r+l.config.markers.offsetX),d.push(ee.isNumber(e[i][s+1])?a+l.config.markers.offsetY:null),{x:u,y:d}}checkPreviousPaths({pathFromLine:e,pathFromArea:t,realIndex:r}){const a=this.w;for(let i=0;i<a.globals.previousPaths.length;i++){const s=a.globals.previousPaths[i];(s.type==="line"||s.type==="area")&&s.paths.length>0&&parseInt(s.realIndex,10)===parseInt(r,10)&&(s.type==="line"?(this.lineCtx.appendPathFrom=!1,e=a.globals.previousPaths[i].paths[0].d):s.type==="area"&&(this.lineCtx.appendPathFrom=!1,t=a.globals.previousPaths[i].paths[0].d,a.config.stroke.show&&a.globals.previousPaths[i].paths[1]&&(e=a.globals.previousPaths[i].paths[1].d)))}return{pathFromLine:e,pathFromArea:t}}determineFirstPrevY({i:e,realIndex:t,series:r,prevY:a,lineYPosition:i,translationsIndex:s}){var o,l,u;const d=this.w,f=d.config.chart.stacked&&!d.globals.comboCharts||d.config.chart.stacked&&d.globals.comboCharts&&(!this.w.config.chart.stackOnlyBar||((o=this.w.config.series[t])==null?void 0:o.type)==="bar"||((l=this.w.config.series[t])==null?void 0:l.type)==="column");if(typeof((u=r[e])==null?void 0:u[0])<"u")f?e>0?i=this.lineCtx.prevSeriesY[e-1][0]:i=this.lineCtx.zeroY:i=this.lineCtx.zeroY,a=i-r[e][0]/this.lineCtx.yRatio[s]+(this.lineCtx.isReversed?r[e][0]/this.lineCtx.yRatio[s]:0)*2;else if(f&&e>0&&typeof r[e][0]>"u"){for(let g=e-1;g>=0;g--)if(r[g][0]!==null&&typeof r[g][0]<"u"){i=this.lineCtx.prevSeriesY[g][0],a=i;break}}return{prevY:a,lineYPosition:i}}}class xf{constructor(e,t,r,a){this.ctx=t,this.w=e,this.xyRatios=r,this.xRatio=0,this.yRatio=[],this.zRatio=0,this.baseLineY=[],this.pointsChart=!(this.w.config.chart.type!=="bubble"&&this.w.config.chart.type!=="scatter")||a,this.scatter=new vj(this.w,this.ctx),this.noNegatives=this.w.globals.minX===Number.MAX_VALUE,this.lineHelpers=new lse(this),this.markers=new Du(this.w,this.ctx),this.prevSeriesY=[],this.categoryAxisCorrection=0,this.yaxisIndex=0,this.xDivision=0,this.zeroY=0,this.areaBottomY=0,this.strokeWidth=0,this.isReversed=!1,this.appendPathFrom=!1,this.elSeries=null,this.elPointsMain=null,this.elDataLabelsWrap=null}draw(e,t,r,a){var i;const s=this.w,o=new ve(this.w),l=s.globals.comboCharts?t:s.config.chart.type,u=o.group({class:`apexcharts-${l}-series apexcharts-plot-series`}),d=new Zn(this.w);this.yRatio=this.xyRatios.yRatio,this.zRatio=this.xyRatios.zRatio,this.xRatio=this.xyRatios.xRatio,this.baseLineY=this.xyRatios.baseLineY,e=d.getLogSeries(e),this.yRatio=d.getLogYRatios(this.yRatio),this.prevSeriesY=[];const f=[];for(let g=0;g<e.length;g++){e=this.lineHelpers.sameValueSeriesFix(g,e);const p=s.globals.comboCharts?r[g]:g,b=this.yRatio.length>1?p:0;this._initSerieVariables(e,g,p);const y=[],x=[],S=[];let C=s.globals.padHorizontal+this.categoryAxisCorrection;const O=1,D=[],M=[];Wn.addCollapsedClassToSeries(this.w,this.elSeries,p),s.axisFlags.isXNumeric&&s.seriesData.seriesX.length>0&&(C=(s.seriesData.seriesX[p][0]-s.globals.minX)/this.xRatio),S.push(C);const A=C;let T;const P=A;let R=this.zeroY,N=this.zeroY;const I=0;R=this.lineHelpers.determineFirstPrevY({i:g,realIndex:p,series:e,prevY:R,lineYPosition:I,translationsIndex:b}).prevY,s.config.stroke.curve==="monotoneCubic"&&e[g][0]===null?y.push(null):y.push(R);const Y=R;let k;l==="rangeArea"&&(k=this.lineHelpers.determineFirstPrevY({i:g,realIndex:p,series:a,prevY:N,lineYPosition:I,translationsIndex:b}),N=k.prevY,T=N,x.push(y[0]!==null?N:null));const H=this._calculatePathsFrom({type:l,series:e,i:g,realIndex:p,translationsIndex:b,prevX:P,prevY:R,prevY2:N}),F=[y[0]],B=[x[0]],X={type:l,series:e,realIndex:p,translationsIndex:b,i:g,x:C,y:O,pX:A,pY:Y,pathsFrom:H,linePaths:D,areaPaths:M,seriesIndex:r,lineYPosition:I,xArrj:S,yArrj:y,y2Arrj:x,seriesRangeEnd:a},Q=this._iterateOverDataPoints(Lt(ct({},X),{iterations:l==="rangeArea"?e[g].length-1:void 0,isRangeStart:!0}));if(l==="rangeArea"){const z=this._calculatePathsFrom({series:a,i:g,realIndex:p,prevX:P,prevY:N}),V=this._iterateOverDataPoints(Lt(ct({},X),{series:a,xArrj:[C],yArrj:F,y2Arrj:B,pY:T,areaPaths:Q.areaPaths,pathsFrom:z,iterations:a[g].length-1,isRangeStart:!1})),j=Q.linePaths.length/2;for(let q=0;q<j;q++)Q.linePaths[q]=V.linePaths[q+j]+Q.linePaths[q];Q.linePaths.splice(j),Q.pathFromLine=V.pathFromLine+Q.pathFromLine}else Q.pathFromArea+="z";this._handlePaths({type:l,realIndex:p,i:g,paths:Q}),this.elSeries.add(this.elPointsMain),this.elSeries.add(this.elDataLabelsWrap),f.push(this.elSeries)}if(typeof((i=s.config.series[0])==null?void 0:i.zIndex)<"u"&&f.sort((g,p)=>Number(g.node.getAttribute("zIndex"))-Number(p.node.getAttribute("zIndex"))),s.config.chart.stacked)for(let g=f.length-1;g>=0;g--)u.add(f[g]);else for(let g=0;g<f.length;g++)u.add(f[g]);return u}_initSerieVariables(e,t,r){const a=this.w,i=new ve(this.w);this.xDivision=a.layout.gridWidth/(a.globals.dataPoints-(a.config.xaxis.tickPlacement==="on"?1:0)),this.strokeWidth=Array.isArray(a.config.stroke.width)?a.config.stroke.width[r]:a.config.stroke.width;let s=0;this.yRatio.length>1&&(this.yaxisIndex=a.globals.seriesYAxisReverseMap[r],s=r),this.isReversed=a.config.yaxis[this.yaxisIndex]&&a.config.yaxis[this.yaxisIndex].reversed,this.zeroY=a.layout.gridHeight-this.baseLineY[s]-(this.isReversed?a.layout.gridHeight:0)+(this.isReversed?this.baseLineY[s]*2:0),this.areaBottomY=this.zeroY,(this.zeroY>a.layout.gridHeight||a.config.plotOptions.area.fillTo==="end")&&(this.areaBottomY=a.layout.gridHeight),this.categoryAxisCorrection=this.xDivision/2;const o=a.config.series[r];if(this.elSeries=i.group({class:"apexcharts-series",zIndex:typeof o.zIndex<"u"?o.zIndex:r,seriesName:ee.escapeString(a.seriesData.seriesNames[r])}),this.elPointsMain=i.group({class:"apexcharts-series-markers-wrap","data:realIndex":r}),a.globals.hasNullValues){const u=this.markers.plotChartMarkers({pointsPos:{x:[0],y:[a.layout.gridHeight+a.globals.markers.largestSize]},seriesIndex:t,j:0,pSize:.1,alwaysDrawMarker:!0,isVirtualPoint:!0});u!==null&&this.elPointsMain.add(u)}this.elDataLabelsWrap=i.group({class:"apexcharts-datalabels","data:realIndex":r});const l=e[t].length===a.globals.dataPoints;this.elSeries.attr({"data:longestSeries":l,rel:t+1,"data:realIndex":r}),this.appendPathFrom=!0}_calculatePathsFrom({type:e,series:t,i:r,realIndex:a,translationsIndex:i,prevX:s,prevY:o,prevY2:l}){const u=this.w,d=new ve(this.w);let f,g,p,b;if(t[r][0]===null){for(let y=0;y<t[r].length;y++)if(t[r][y]!==null){s=this.xDivision*y,o=this.zeroY-t[r][y]/this.yRatio[i],f=d.move(s,o),g=d.move(s,this.areaBottomY);break}}else f=d.move(s,o),e==="rangeArea"&&(f=d.move(s,l)+d.line(s,o)),g=d.move(s,this.areaBottomY)+d.line(s,o);if(p=d.move(0,this.areaBottomY)+d.line(0,this.areaBottomY),b=d.move(0,this.areaBottomY)+d.line(0,this.areaBottomY),u.globals.previousPaths.length>0){const y=this.lineHelpers.checkPreviousPaths({pathFromLine:p,pathFromArea:b,realIndex:a});p=y.pathFromLine,b=y.pathFromArea}return{prevX:s,prevY:o,linePath:f,areaPath:g,pathFromLine:p,pathFromArea:b}}_handlePaths({type:e,realIndex:t,i:r,paths:a}){const i=this.w,s=new ve(this.w),o=new Ia(this.w);this.prevSeriesY.push(a.yArrj),i.globals.seriesXvalues[t]=a.xArrj,i.globals.seriesYvalues[t]=a.yArrj;const l=i.config.forecastDataPoints;if(l.count>0&&e!=="rangeArea"){const d=i.globals.seriesXvalues[t][i.globals.seriesXvalues[t].length-l.count-1],f=s.drawRect(d,0,i.layout.gridWidth,i.layout.gridHeight,0);i.dom.elForecastMask.appendChild(f.node);const g=s.drawRect(0,0,d,i.layout.gridHeight,0);i.dom.elNonForecastMask.appendChild(g.node)}this.pointsChart||i.globals.delayedElements.push({el:this.elPointsMain.node,index:t});const u={i:r,realIndex:t,animationDelay:r,initialSpeed:i.config.chart.animations.speed,dataChangeSpeed:i.config.chart.animations.dynamicAnimation.speed,className:`apexcharts-${e}`};if(e==="area"){const d=o.fillPath({seriesNumber:t});for(let f=0;f<a.areaPaths.length;f++){const g=s.renderPaths(Lt(ct({},u),{pathFrom:a.pathFromArea,pathTo:a.areaPaths[f],stroke:"none",strokeWidth:0,strokeLineCap:null,fill:d}));this.elSeries.add(g)}}if(i.config.stroke.show&&!this.pointsChart){let d=null;if(e==="line")d=o.fillPath({seriesNumber:t,i:r});else if(i.config.stroke.fill.type==="solid")d=i.globals.stroke.colors[t];else{const f=i.config.fill;i.config.fill=i.config.stroke.fill,d=o.fillPath({seriesNumber:t,i:r}),i.config.fill=f}for(let f=0;f<a.linePaths.length;f++){let g=d;e==="rangeArea"&&(g=o.fillPath({seriesNumber:t}));const p=Lt(ct({},u),{pathFrom:a.pathFromLine,pathTo:a.linePaths[f],stroke:d,strokeWidth:this.strokeWidth,strokeLineCap:i.config.stroke.lineCap,fill:e==="rangeArea"?g:"none"}),b=s.renderPaths(p);if(this.elSeries.add(b),b.attr("fill-rule","evenodd"),l.count>0&&e!=="rangeArea"){const y=s.renderPaths(p);y.node.setAttribute("stroke-dasharray",l.dashArray),l.strokeWidth&&y.node.setAttribute("stroke-width",l.strokeWidth),this.elSeries.add(y),y.attr("clip-path",`url(#forecastMask${i.globals.cuid})`),b.attr("clip-path",`url(#nonForecastMask${i.globals.cuid})`)}}}}_iterateOverDataPoints({type:e,series:t,iterations:r,realIndex:a,translationsIndex:i,i:s,x:o,y:l,pX:u,pY:d,pathsFrom:f,linePaths:g,areaPaths:p,seriesIndex:b,lineYPosition:y,xArrj:x,yArrj:S,y2Arrj:C,isRangeStart:O,seriesRangeEnd:D}){var M,A;const T=this.w,P=new ve(this.w),R=this.yRatio;let{prevY:N,linePath:I,areaPath:$,pathFromLine:Y,pathFromArea:k}=f;const H=ee.isNumber(T.globals.minYArr[a])?T.globals.minYArr[a]:T.globals.minY;r||(r=T.globals.dataPoints>1?T.globals.dataPoints-1:T.globals.dataPoints);const F=(j,q)=>q-j/R[i]+(this.isReversed?j/R[i]:0)*2;let B=l;const X=T.config.chart.stacked&&!T.globals.comboCharts||T.config.chart.stacked&&T.globals.comboCharts&&(!this.w.config.chart.stackOnlyBar||((M=this.w.config.series[a])==null?void 0:M.type)==="bar"||((A=this.w.config.series[a])==null?void 0:A.type)==="column");let Q=T.config.stroke.curve;Array.isArray(Q)&&(Array.isArray(b)?Q=Q[b[s]]:Q=Q[s]);let z=0,V;for(let j=0;j<r&&t[s].length!==0;j++){const q=typeof t[s][j+1]>"u"||t[s][j+1]===null;if(T.axisFlags.isXNumeric){let K=T.seriesData.seriesX[a][j+1];typeof T.seriesData.seriesX[a][j+1]>"u"&&(K=T.seriesData.seriesX[a][r-1]),o=(K-T.globals.minX)/this.xRatio}else o=o+this.xDivision;if(X)if(s>0&&T.globals.collapsedSeries.length<T.config.series.length-1){const K=te=>{for(let ne=te;ne>0;ne--)if(T.globals.collapsedSeriesIndices.indexOf(b?.[ne]||ne)>-1)ne--;else return ne;return 0};y=this.prevSeriesY[K(s-1)][j+1]}else y=this.zeroY;else y=this.zeroY;q?l=F(H,y):(l=F(t[s][j+1],y),e==="rangeArea"&&(B=F(D[s][j+1],y))),x.push(t[s][j+1]===null?null:o),q&&(T.config.stroke.curve==="smooth"||T.config.stroke.curve==="monotoneCubic")?(S.push(null),C.push(null)):(S.push(l),C.push(B));const G=this.lineHelpers.calculatePoints({series:t,x:o,y:l,realIndex:a,i:s,j,prevY:N}),U=this._createPaths({type:e,series:t,i:s,j,x:o,y:l,y2:B,xArrj:x,yArrj:S,y2Arrj:C,pX:u,pY:d,pathState:z,segmentStartX:V,linePath:I,areaPath:$,linePaths:g,areaPaths:p,curve:Q,isRangeStart:O});p=U.areaPaths,g=U.linePaths,u=U.pX,d=U.pY,z=U.pathState,V=U.segmentStartX,$=U.areaPath,I=U.linePath,this.appendPathFrom&&!T.globals.hasNullValues&&!(Q==="monotoneCubic"&&e==="rangeArea")&&(Y+=P.line(o,this.areaBottomY),k+=P.line(o,this.areaBottomY)),this.handleNullDataPoints(t,G,s,j,a),this._handleMarkersAndLabels({type:e,pointsPos:G,i:s,j,realIndex:a,isRangeStart:O})}return{yArrj:S,xArrj:x,pathFromArea:k,areaPaths:p,pathFromLine:Y,linePaths:g,linePath:I,areaPath:$}}_handleMarkersAndLabels({type:e,pointsPos:t,isRangeStart:r,i:a,j:i,realIndex:s}){const o=this.w,l=new Ol(this.w,this.ctx);if(this.pointsChart)this.scatter.draw(this.elSeries,i,{realIndex:s,pointsPos:t,zRatio:this.zRatio,elParent:this.elPointsMain});else{!(!o.globals.dataChanged&&!o.globals.resized)&&o.seriesData.series[a].length>1&&this.elPointsMain.node.classList.add("apexcharts-element-hidden");const f=this.markers.plotChartMarkers({pointsPos:t,seriesIndex:s,j:i+1});f!==null&&this.elPointsMain.add(f)}const u=l.drawDataLabel({type:e,isRangeStart:r,pos:t,i:s,j:i+1});u!==null&&this.elDataLabelsWrap.add(u)}_createPaths({type:e,series:t,i:r,j:a,x:i,y:s,xArrj:o,yArrj:l,y2:u,y2Arrj:d,pX:f,pY:g,pathState:p,segmentStartX:b,linePath:y,areaPath:x,linePaths:S,areaPaths:C,curve:O,isRangeStart:D}){const M=new ve(this.w),A=this.areaBottomY,T=e==="rangeArea",P=e==="rangeArea"&&D;switch(O){case"monotoneCubic":{const R=D?l:d,N=(Y,k)=>Y.map((H,F)=>[H,k[F]]).filter(H=>H[1]!==null),I=Y=>{const k=[];let H=0;return Y.forEach(F=>{F!==null?H++:H>0&&(k.push(H),H=0)}),H>0&&k.push(H),k},$=(Y,k)=>{const H=I(Y),F=[];for(let B=0,X=0;B<H.length;X+=H[B++])F[B]=dE.slice(k,X,X+H[B]);return F};switch(p){case 0:if(R[a+1]===null)break;p=1;case 1:if(!(T?o.length===t[r].length:a===t[r].length-2))break;case 2:{const Y=D?o:o.slice().reverse(),k=D?R:R.slice().reverse(),H=N(Y,k),F=H.length>1?dE.points(H):H;let B=[];T&&(P?C=H:B=C.reverse());let X=0,Q=0;if($(k,F).forEach(z=>{X++;const V=Rj(z),j=Q;Q+=z.length;const q=Q-1;P?y=M.move(H[j][0],H[j][1])+V:T?y=M.move(B[j][0],B[j][1])+M.line(H[j][0],H[j][1])+V+M.line(B[q][0],B[q][1]):(y=M.move(H[j][0],H[j][1])+V,x=y+M.line(H[q][0],A)+M.line(H[j][0],A)+"z",C.push(x)),S.push(y)}),T&&X>1&&!P){const z=S.slice(X).reverse();S.splice(X),z.forEach(V=>S.push(V))}p=0;break}}break}case"smooth":{const R=(i-f)*.35;if(t[r][a]===null)p=0;else switch(p){case 0:if(b=f,P?y=M.move(f,d[a])+M.line(f,g):y=M.move(f,g),x=M.move(f,g),t[r][a+1]===null||typeof t[r][a+1]>"u"){S.push(y),C.push(x);break}if(p=1,a<t[r].length-2){const N=M.curve(f+R,g,i-R,s,i,s);y+=N,x+=N;break}case 1:if(t[r][a+1]===null)P?y+=M.line(f,u):y+=M.move(f,g),x+=M.line(f,A)+M.line(b,A)+"z",S.push(y),C.push(x),p=-1;else{const N=M.curve(f+R,g,i-R,s,i,s);y+=N,x+=N,a>=t[r].length-2&&(P&&(y+=M.curve(i,s,i,s,i,u)+M.move(i,u)),x+=M.curve(i,s,i,s,i,A)+M.line(b,A)+"z",S.push(y),C.push(x),p=-1)}break}f=i,g=s;break}default:{const R=(N,I,$)=>{let Y="";switch(N){case"stepline":Y=M.line(I,null,"H")+M.line(null,$,"V");break;case"linestep":Y=M.line(null,$,"V")+M.line(I,null,"H");break;case"straight":Y=M.line(I,$);break}return Y};if(t[r][a]===null)p=0;else switch(p){case 0:if(b=f,P?y=M.move(f,d[a])+M.line(f,g):y=M.move(f,g),x=M.move(f,g),t[r][a+1]===null||typeof t[r][a+1]>"u"){S.push(y),C.push(x);break}if(p=1,a<t[r].length-2){const N=R(O,i,s);y+=N,x+=N;break}case 1:if(t[r][a+1]===null)P?y+=M.line(f,u):y+=M.move(f,g),x+=M.line(f,A)+M.line(b,A)+"z",S.push(y),C.push(x),p=-1;else{const N=R(O,i,s);y+=N,x+=N,a>=t[r].length-2&&(P&&(y+=M.line(i,u)),x+=M.line(i,A)+M.line(b,A)+"z",S.push(y),C.push(x),p=-1)}break}f=i,g=s;break}}return{linePaths:S,areaPaths:C,pX:f,pY:g,pathState:p,segmentStartX:b,linePath:y,areaPath:x}}handleNullDataPoints(e,t,r,a,i){const s=this.w;if(e[r][a]===null&&s.config.markers.showNullDataPoints||e[r].length===1){let o=this.strokeWidth-s.config.markers.strokeWidth/2;o>0||(o=0);const l=this.markers.plotChartMarkers({pointsPos:t,seriesIndex:i,j:a+1,pSize:o,alwaysDrawMarker:!0});l!==null&&this.elPointsMain.add(l)}}}class Lj{constructor(e){this.w=e}drawYAxisTexts(e,t,r,a){const i=this.w,s=i.config.yaxis[0],o=i.formatters.yLabelFormatters[0];return new ve(this.w).drawText({x:e+s.labels.offsetX,y:t+s.labels.offsetY,text:o(a,r),textAnchor:"middle",fontSize:s.labels.style.fontSize,fontFamily:s.labels.style.fontFamily,foreColor:Array.isArray(s.labels.style.colors)?s.labels.style.colors[r]:s.labels.style.colors})}}class _m{constructor(e,t){this.ctx=t,this.w=e,this.chartType=this.w.config.chart.type,this.initialAnim=this.w.config.chart.animations.enabled,this.dynamicAnim=this.initialAnim&&this.w.config.chart.animations.dynamicAnimation.enabled,this.animBeginArr=[0],this.animDur=0,this.donutDataLabels=this.w.config.plotOptions.pie.donut.labels,this.lineColorArr=e.globals.stroke.colors!==void 0?e.globals.stroke.colors:e.globals.colors,this.defaultSize=Math.min(e.layout.gridWidth,e.layout.gridHeight),this.centerY=this.defaultSize/2,this.centerX=e.layout.gridWidth/2,e.config.chart.type==="radialBar"?this.fullAngle=360:this.fullAngle=Math.abs(e.config.plotOptions.pie.endAngle-e.config.plotOptions.pie.startAngle),this.initialAngle=e.config.plotOptions.pie.startAngle%this.fullAngle,e.globals.radialSize=this.defaultSize/2.05-e.config.stroke.width-(e.config.chart.sparkline.enabled?0:e.config.chart.dropShadow.blur),this.donutSize=e.globals.radialSize*parseInt(e.config.plotOptions.pie.donut.size,10)/100;const r=e.config.plotOptions.pie.customScale,a=e.layout.gridWidth/2,i=e.layout.gridHeight/2;this.translateX=a-a*r,this.translateY=i-i*r,this.dataLabelsGroup=new ve(this.w).group({class:"apexcharts-datalabels-group",transform:`translate(${this.translateX}, ${this.translateY}) scale(${r})`}),this.maxY=0,this.sliceLabels=[],this.sliceSizes=[],this.prevSectorAngleArr=[]}draw(e){var t;const r=this,a=this.w,i=new ve(this.w),s=i.group({class:"apexcharts-pie"});if(a.globals.noData)return s;let o=0;for(let g=0;g<e.length;g++)o+=ee.negToZero(e[g]);const l=[],u=i.group();o===0&&(o=1e-5),e.forEach(g=>{this.maxY=Math.max(this.maxY,g)}),a.config.yaxis[0].max&&(this.maxY=a.config.yaxis[0].max),a.config.grid.position==="back"&&this.chartType==="polarArea"&&this.drawPolarElements(s);for(let g=0;g<e.length;g++){const p=this.fullAngle*ee.negToZero(e[g])/o;l.push(p),this.chartType==="polarArea"?(l[g]=this.fullAngle/e.length,this.sliceSizes.push(a.globals.radialSize*e[g]/this.maxY)):this.sliceSizes.push(a.globals.radialSize)}const d=((t=this.ctx.morphTypeChange)==null?void 0:t.isActive())===!0;if(a.globals.dataChanged&&!d){let g=0;for(let b=0;b<a.globals.previousPaths.length;b++)g+=ee.negToZero(a.globals.previousPaths[b]);let p;for(let b=0;b<a.globals.previousPaths.length;b++)p=this.fullAngle*ee.negToZero(a.globals.previousPaths[b])/g,this.prevSectorAngleArr.push(p)}if(this.donutSize<0&&(this.donutSize=0),this.chartType==="donut"){const g=i.drawCircle(this.donutSize);g.attr({cx:this.centerX,cy:this.centerY,fill:a.config.plotOptions.pie.donut.background?a.config.plotOptions.pie.donut.background:"transparent"}),u.add(g)}const f=r.drawArcs(l,e);if(this.sliceLabels.forEach(g=>{f.add(g)}),u.attr({transform:`translate(${this.translateX}, ${this.translateY}) scale(${a.config.plotOptions.pie.customScale})`}),u.add(f),s.add(u),this.donutDataLabels.show){const g=this.initialAnim&&!a.globals.resized&&!a.globals.dataChanged&&this.animDur>0,p=this.renderInnerDataLabels(this.dataLabelsGroup,this.donutDataLabels,{hollowSize:this.donutSize,centerX:this.centerX,centerY:this.centerY,opacity:g?0:this.donutDataLabels.show});if(g){const b=this.dataLabelsGroup.node;b.style.transition="opacity 280ms ease-out",setTimeout(()=>{b.style.opacity="1"},this.animDur)}s.add(p)}return a.config.grid.position==="front"&&this.chartType==="polarArea"&&this.drawPolarElements(s),s}drawArcs(e,t){var r,a;const i=this.w,s=new jr(this.w),o=new ve(this.w),l=new Ia(this.w),u=o.group({class:"apexcharts-slices"});let d=this.initialAngle,f=this.initialAngle,g=this.initialAngle,p=this.initialAngle;this.strokeWidth=i.config.stroke.show?i.config.stroke.width:0;const b=((r=this.ctx.morphTypeChange)==null?void 0:r.isActive())===!0;for(let y=0;y<e.length;y++){const x=o.group({class:"apexcharts-series apexcharts-pie-series",seriesName:ee.escapeString(i.seriesData.seriesNames[y]),rel:y+1,"data:realIndex":y});u.add(x),d=g,f=p,g=d+e[y],p=f+this.prevSectorAngleArr[y];const S=g<d?this.fullAngle+g-d:g-d,C=l.fillPath({seriesNumber:y,size:this.sliceSizes[y],value:t[y]}),O=b?this.ctx.morphTypeChange.getInitialPathFor(y,0):null,D=O||this.getChangedPath(f,p),M=o.drawPath({d:D,stroke:Array.isArray(this.lineColorArr)?(a=this.lineColorArr[y])!=null?a:this.lineColorArr[y%this.lineColorArr.length]:this.lineColorArr,strokeWidth:0,fill:C,fillOpacity:i.config.fill.opacity,classes:`apexcharts-pie-area apexcharts-${this.chartType.toLowerCase()}-slice-${y}`});if(M.attr({index:0,j:y}),s.setSelectionFilter(M,0,y),i.config.chart.dropShadow.enabled){const N=i.config.chart.dropShadow;s.dropShadow(M,N,y)}this.addListeners(M,this.donutDataLabels);let A={x:0,y:0};const T=(d+S/2)%this.fullAngle;let P={x:this.centerX,y:this.centerY};this.chartType==="pie"||this.chartType==="polarArea"?(A=ee.polarToCartesian(this.centerX,this.centerY,i.globals.radialSize/1.25+i.config.plotOptions.pie.dataLabels.offset,T),P=ee.polarToCartesian(this.centerX,this.centerY,i.globals.radialSize/2,T)):this.chartType==="donut"&&(A=ee.polarToCartesian(this.centerX,this.centerY,(i.globals.radialSize+this.donutSize)/2+i.config.plotOptions.pie.dataLabels.offset,T),P=ee.polarToCartesian(this.centerX,this.centerY,(i.globals.radialSize+this.donutSize)/2,T)),ve.setAttrs(M.node,{"data:angle":S,"data:startAngle":d,"data:strokeWidth":this.strokeWidth,"data:value":t[y],"data:cx":P.x,"data:cy":P.y}),x.add(M);let R=0;if(this.initialAnim&&!i.globals.resized&&!i.globals.dataChanged?(R=S/this.fullAngle*i.config.chart.animations.speed,R===0&&(R=1),this.animDur=R+this.animDur,this.animBeginArr.push(this.animDur)):this.animBeginArr.push(0),b&&O){const N=this.getPiePath({me:this,startAngle:d,angle:S,size:this.sliceSizes[y]}),I=this.ctx.morphTypeChange.getSpeed();M.node.setAttribute("data:pathOrig",N),M.animate(I).plot(N,"polygons").attr({"stroke-width":this.strokeWidth})}else this.dynamicAnim&&i.globals.dataChanged?this.animatePaths(M,{size:this.sliceSizes[y],endAngle:g,startAngle:d,prevStartAngle:f,prevEndAngle:p,animateStartingPos:!0,i:y,animBeginArr:this.animBeginArr,shouldSetPrevPaths:!0,dur:i.config.chart.animations.dynamicAnimation.speed}):this.animatePaths(M,{size:this.sliceSizes[y],endAngle:g,startAngle:d,i:y,totalItems:e.length-1,animBeginArr:this.animBeginArr,dur:R});if(i.config.plotOptions.pie.expandOnClick&&this.chartType!=="polarArea"&&M.node.addEventListener("mouseup",this.pieClicked.bind(this,y)),typeof i.interact.selectedDataPoints[0]<"u"&&i.interact.selectedDataPoints[0].indexOf(y)>-1)if(this.initialAnim&&!i.globals.resized&&!i.globals.dataChanged&&this.animDur>0){const N=this,I=y;setTimeout(()=>N.pieClicked(I),this.animDur)}else this.pieClicked(y);if(i.config.dataLabels.enabled){const N=A.x,I=A.y;let $=100*S/this.fullAngle+"%";if(S!==0&&i.config.plotOptions.pie.dataLabels.minAngleToShowLabel<e[y]){const Y=i.config.dataLabels.formatter;Y!==void 0&&($=Y(i.globals.seriesPercent[y][0],{seriesIndex:y,w:i}));const k=i.globals.dataLabels.style.colors[y],H=o.group({class:"apexcharts-datalabels"}),F=o.drawText({x:N,y:I,text:$,textAnchor:"middle",fontSize:i.config.dataLabels.style.fontSize,fontFamily:i.config.dataLabels.style.fontFamily,fontWeight:i.config.dataLabels.style.fontWeight,foreColor:k});if(H.add(F),i.config.dataLabels.dropShadow.enabled){const B=i.config.dataLabels.dropShadow;s.dropShadow(F,B)}F.node.classList.add("apexcharts-pie-label"),i.config.chart.animations.animate&&i.globals.resized===!1&&(F.node.classList.add("apexcharts-pie-label-delay"),F.node.style.animationDelay=i.config.chart.animations.speed/940+"s"),this.sliceLabels.push(H)}}}return u}addListeners(e,t){const r=new ve(this.w);e.node.addEventListener("mouseenter",r.pathMouseEnter.bind(this,e)),e.node.addEventListener("mouseleave",r.pathMouseLeave.bind(this,e)),e.node.addEventListener("mouseleave",this.revertDataLabelsInner.bind(this)),e.node.addEventListener("mousedown",r.pathMouseDown.bind(this,e)),this.donutDataLabels.total.showAlways||(e.node.addEventListener("mouseenter",this.printDataLabelsInner.bind(this,e.node,t)),e.node.addEventListener("mousedown",this.printDataLabelsInner.bind(this,e.node,t)))}animatePaths(e,t){const r=this.w,a=this;let i=t.endAngle<t.startAngle?this.fullAngle+t.endAngle-t.startAngle:t.endAngle-t.startAngle,s=i,o=t.startAngle;const l=t.startAngle;t.prevStartAngle!==void 0&&t.prevEndAngle!==void 0&&(o=t.prevEndAngle,s=t.prevEndAngle<t.prevStartAngle?this.fullAngle+t.prevEndAngle-t.prevStartAngle:t.prevEndAngle-t.prevStartAngle),t.i===r.config.series.length-1&&(i+l>this.fullAngle?t.endAngle=t.endAngle-(i+l):i+l<this.fullAngle&&(t.endAngle=t.endAngle+(this.fullAngle-(i+l)))),i===this.fullAngle&&(i=this.fullAngle-.01),a.animateArc(e,o,l,i,s,t)}animateArc(e,t,r,a,i,s){const o=this,l=this.w,u=new Mu(this.w),d=s.size;let f;(isNaN(t)||isNaN(i))&&(t=r,i=a,s.dur=0);let g=a,p=r;const b=t<r?this.fullAngle+t-r:t-r;l.globals.dataChanged&&s.shouldSetPrevPaths&&s.prevEndAngle&&(f=o.getPiePath({me:o,startAngle:s.prevStartAngle,angle:s.prevEndAngle<s.prevStartAngle?this.fullAngle+s.prevEndAngle-s.prevStartAngle:s.prevEndAngle-s.prevStartAngle,size:d}),e.attr({d:f})),s.dur!==0?e.animate(s.dur,s.animBeginArr[s.i]).after(function(){(o.chartType==="pie"||o.chartType==="donut"||o.chartType==="polarArea")&&this.animate(l.config.chart.animations.dynamicAnimation.speed).attr({"stroke-width":o.strokeWidth}),s.i===l.config.series.length-1&&u.animationCompleted(e)}).during(y=>{g=b+(a-b)*y,s.animateStartingPos&&(g=i+(a-i)*y,p=t-i+(r-(t-i))*y),f=o.getPiePath({me:o,startAngle:p,angle:g,size:d}),e.node.setAttribute("data:pathOrig",f),e.attr({d:f})}):(f=o.getPiePath({me:o,startAngle:p,angle:a,size:d}),s.isTrack||(l.globals.animationEnded=!0),e.node.setAttribute("data:pathOrig",f),e.attr({d:f,"stroke-width":o.strokeWidth}))}pieClicked(e){const t=this.w,r=this,a=r.sliceSizes[e]+(t.config.plotOptions.pie.expandOnClick?4:0),i=t.dom.Paper.findOne(`.apexcharts-${r.chartType.toLowerCase()}-slice-${e}`);if(i.attr("data:pieClicked")==="true"){i.attr({"data:pieClicked":"false"}),this.revertDataLabelsInner();const u=i.attr("data:pathOrig");i.attr({d:u});return}else{const u=t.dom.baseEl.getElementsByClassName("apexcharts-pie-area");Array.prototype.forEach.call(u,d=>{d.setAttribute("data:pieClicked","false");const f=d.getAttribute("data:pathOrig");f&&d.setAttribute("d",f)}),t.interact.capturedDataPointIndex=e,i.attr("data:pieClicked","true")}const s=parseInt(i.attr("data:startAngle"),10),o=parseInt(i.attr("data:angle"),10),l=r.getPiePath({me:r,startAngle:s,angle:o,size:a});o!==360&&i.plot(l)}getChangedPath(e,t){let r="";return this.dynamicAnim&&this.w.globals.dataChanged&&(r=this.getPiePath({me:this,startAngle:e,angle:t-e,size:this.size})),r}getPiePath({me:e,startAngle:t,angle:r,size:a}){let i;const s=new ve(this.w),o=t,l=Math.PI*(o-90)/180;let u=r+t;Math.ceil(u)>=this.fullAngle+this.w.config.plotOptions.pie.startAngle%this.fullAngle&&(u=this.fullAngle+this.w.config.plotOptions.pie.startAngle%this.fullAngle-.01),Math.ceil(u)>this.fullAngle&&(u-=this.fullAngle);const d=Math.PI*(u-90)/180,f=e.centerX+a*Math.cos(l),g=e.centerY+a*Math.sin(l),p=e.centerX+a*Math.cos(d),b=e.centerY+a*Math.sin(d),y=ee.polarToCartesian(e.centerX,e.centerY,e.donutSize,u),x=ee.polarToCartesian(e.centerX,e.centerY,e.donutSize,o),S=r>180?1:0,C=["M",f,g,"A",a,a,0,S,1,p,b];return e.chartType==="donut"?i=[...C,"L",y.x,y.y,"A",e.donutSize,e.donutSize,0,S,0,x.x,x.y,"L",f,g,"z"].join(" "):e.chartType==="pie"||e.chartType==="polarArea"?i=[...C,"L",e.centerX,e.centerY,"L",f,g].join(" "):i=[...C].join(" "),s.roundPathCorners(i,this.strokeWidth*2)}drawPolarElements(e){const t=this.w,r=new yj(this.w),a=new ve(this.w),i=new Lj(this.w),s=a.group(),o=a.group(),l=r.niceScale(0,Math.ceil(this.maxY),0),u=l.result.reverse(),d=l.result.length;this.maxY=l.niceMax;let f=t.globals.radialSize;const g=f/(d-1);for(let p=0;p<d-1;p++){const b=a.drawCircle(f);if(b.attr({cx:this.centerX,cy:this.centerY,fill:"none","stroke-width":t.config.plotOptions.polarArea.rings.strokeWidth,stroke:t.config.plotOptions.polarArea.rings.strokeColor}),t.config.yaxis[0].show){const y=i.drawYAxisTexts(this.centerX,this.centerY-f+parseInt(t.config.yaxis[0].labels.style.fontSize,10)/2,p,u[p]);o.add(y)}s.add(b),f=f-g}this.drawSpokes(e),e.add(s),e.add(o)}renderInnerDataLabels(e,t,r){const a=this.w,i=new ve(this.w),s=t.total.show;e.node.innerHTML="",e.node.style.opacity=r.opacity;const o=r.centerX,l=this.donutDataLabels.total.label?r.centerY:r.centerY-r.centerY/6;let u,d;t.name.color===void 0?u=a.globals.colors[0]:u=t.name.color;let f=t.name.fontSize,g=t.name.fontFamily,p=t.name.fontWeight;t.value.color===void 0?d=a.config.chart.foreColor:d=t.value.color;const b=t.value.formatter;let y="",x="";if(s?(u=t.total.color,f=t.total.fontSize,g=t.total.fontFamily,p=t.total.fontWeight,x=this.donutDataLabels.total.label?t.total.label:"",y=t.total.formatter(a)):a.seriesData.series.length===1&&(y=b(a.seriesData.series[0],a),x=a.seriesData.seriesNames[0]),x&&(x=t.name.formatter(x,t.total.show,a)),t.name.show){const S=i.drawText({x:o,y:l+parseFloat(t.name.offsetY),text:x,textAnchor:"middle",foreColor:u,fontSize:f,fontWeight:p,fontFamily:g});S.node.classList.add("apexcharts-datalabel-label"),e.add(S)}if(t.value.show){const S=t.name.show?parseFloat(t.value.offsetY)+16:t.value.offsetY,C=i.drawText({x:o,y:l+S,text:y,textAnchor:"middle",foreColor:d,fontWeight:t.value.fontWeight,fontSize:t.value.fontSize,fontFamily:t.value.fontFamily});C.node.classList.add("apexcharts-datalabel-value"),e.add(C)}return e}printInnerLabels(e,t,r,a){const i=this.w;let s;a?e.name.color===void 0?s=i.globals.colors[parseInt(a.parentNode.getAttribute("rel"),10)-1]:s=e.name.color:i.seriesData.series.length>1&&e.total.show&&(s=e.total.color);const o=i.dom.baseEl.querySelector(".apexcharts-datalabel-label"),l=i.dom.baseEl.querySelector(".apexcharts-datalabel-value"),u=e.value.formatter;r=u(r,i),!a&&typeof e.total.formatter=="function"&&(r=e.total.formatter(i));const d=t===e.total.label;if(t=this.donutDataLabels.total.label?e.name.formatter(t,d,i):"",o!==null&&(o.textContent=t),l!==null&&(l.textContent=r),o!==null){const f=o;f.style.fill=s}}printDataLabelsInner(e,t){const r=this.w,a=e.getAttribute("data:value"),i=r.seriesData.seriesNames[parseInt(e.parentNode.getAttribute("rel"),10)-1];r.seriesData.series.length>1&&this.printInnerLabels(t,i,a,e);const s=r.dom.baseEl.querySelector(".apexcharts-datalabels-group");if(s!==null){const o=s;o.style.opacity="1"}}drawSpokes(e){const t=this.w,r=new ve(this.w),a=t.config.plotOptions.polarArea.spokes;if(a.strokeWidth===0)return;const i=[],s=360/t.seriesData.series.length;for(let o=0;o<t.seriesData.series.length;o++)i.push(ee.polarToCartesian(this.centerX,this.centerY,t.globals.radialSize,t.config.plotOptions.pie.startAngle+s*o));i.forEach((o,l)=>{const u=r.drawLine(o.x,o.y,this.centerX,this.centerY,Array.isArray(a.connectorColors)?a.connectorColors[l]:a.connectorColors);e.add(u)})}revertDataLabelsInner(){const e=this.w;if(this.donutDataLabels.show){const t=e.dom.Paper.findOne(".apexcharts-datalabels-group"),r=this.renderInnerDataLabels(t,this.donutDataLabels,{hollowSize:this.donutSize,centerX:this.centerX,centerY:this.centerY,opacity:this.donutDataLabels.show});e.dom.Paper.findOne(".apexcharts-radialbar, .apexcharts-pie").add(r)}}}class cse{constructor(e,t){this.ctx=t,this.w=e,this.chartType=this.w.config.chart.type,this.initialAnim=this.w.config.chart.animations.enabled,this.dynamicAnim=this.initialAnim&&this.w.config.chart.animations.dynamicAnimation.enabled,this.animDur=0,this.graphics=new ve(this.w),this.lineColorArr=e.globals.stroke.colors!==void 0?e.globals.stroke.colors:e.globals.colors,this.defaultSize=e.globals.svgHeight<e.globals.svgWidth?e.layout.gridHeight:e.layout.gridWidth,this.isLog=e.config.yaxis[0].logarithmic,this.logBase=e.config.yaxis[0].logBase,this.coreUtils=new Zn(this.w),this.maxValue=this.isLog?this.coreUtils.getLogVal(this.logBase,e.globals.maxY,0):e.globals.maxY,this.minValue=this.isLog?this.coreUtils.getLogVal(this.logBase,this.w.globals.minY,0):e.globals.minY,this.polygons=e.config.plotOptions.radar.polygons,this.strokeWidth=e.config.stroke.show?e.config.stroke.width:0,this.size=this.defaultSize/2.1-this.strokeWidth-e.config.chart.dropShadow.blur,e.config.xaxis.labels.show&&(this.size=this.size-e.layout.xAxisLabelsWidth/1.75),e.config.plotOptions.radar.size!==void 0&&(this.size=e.config.plotOptions.radar.size),this.dataRadiusOfPercent=[],this.dataRadius=[],this.angleArr=[],this.dataPointsLen=0,this.disAngle=0,this.yaxisLabelsTextsPos=[]}draw(e){const t=this.w,r=new Ia(this.w),a=[],i=new Ol(this.w,this.ctx);e.length&&(this.dataPointsLen=e[t.globals.maxValsInArrayIndex].length),this.disAngle=Math.PI*2/this.dataPointsLen;const s=t.layout.gridWidth/2,o=t.layout.gridHeight/2,l=s+t.config.plotOptions.radar.offsetX,u=o+t.config.plotOptions.radar.offsetY,d=this.graphics.group({class:"apexcharts-radar-series apexcharts-plot-series",transform:`translate(${l||0}, ${u||0})`});let f=[],g=null,p=null;if(this.yaxisLabels=this.graphics.group({class:"apexcharts-yaxis"}),e.forEach((b,y)=>{const x=b.length===t.globals.dataPoints,S=this.graphics.group().attr({class:"apexcharts-series","data:longestSeries":x,seriesName:ee.escapeString(t.seriesData.seriesNames[y]),rel:y+1,"data:realIndex":y});this.dataRadiusOfPercent[y]=[],this.dataRadius[y]=[],this.angleArr[y]=[],b.forEach((M,A)=>{const T=Math.abs(this.maxValue-this.minValue);M=M-this.minValue,this.isLog&&(M=this.coreUtils.getLogVal(this.logBase,M,0)),this.dataRadiusOfPercent[y][A]=M/T,this.dataRadius[y][A]=this.dataRadiusOfPercent[y][A]*this.size,this.angleArr[y][A]=A*this.disAngle}),f=this.getDataPointsPos(this.dataRadius[y],this.angleArr[y]);const C=this.createPaths(f,{x:0,y:0});g=this.graphics.group({class:"apexcharts-series-markers-wrap apexcharts-element-hidden"}),p=this.graphics.group({class:"apexcharts-datalabels","data:realIndex":y}),t.globals.delayedElements.push({el:g.node,index:y});const O={i:y,realIndex:y,animationDelay:y,initialSpeed:t.config.chart.animations.speed,dataChangeSpeed:t.config.chart.animations.dynamicAnimation.speed,className:"apexcharts-radar",shouldClipToGrid:!1,bindEventsOnPaths:!1,stroke:t.globals.stroke.colors[y],strokeLineCap:t.config.stroke.lineCap};let D=null;t.globals.previousPaths.length>0&&(D=this.getPreviousPath(y));for(let M=0;M<C.linePathsTo.length;M++){const A=this.graphics.renderPaths(Lt(ct({},O),{pathFrom:D===null?C.linePathsFrom[M]:D,pathTo:C.linePathsTo[M],strokeWidth:Array.isArray(this.strokeWidth)?this.strokeWidth[y]:this.strokeWidth,fill:"none",drawShadow:!1}));S.add(A);const T=r.fillPath({seriesNumber:y}),P=this.graphics.renderPaths(Lt(ct({},O),{pathFrom:D===null?C.areaPathsFrom[M]:D,pathTo:C.areaPathsTo[M],strokeWidth:0,fill:T,drawShadow:!1,drawMask:{type:"radial",cx:0,cy:0,r:this.size}}));if(t.config.chart.dropShadow.enabled){const R=new jr(this.w),N=t.config.chart.dropShadow;R.dropShadow(P,Object.assign({},N,{noUserSpaceOnUse:!0}),y)}S.add(P)}b.forEach((M,A)=>{const P=new Du(this.w,this.ctx).getMarkerConfig({cssClass:"apexcharts-marker",seriesIndex:y,dataPointIndex:A}),R=this.graphics.drawMarker(f[A].x,f[A].y,P);R.attr("rel",A),R.attr("j",A),R.attr("index",y),R.node.setAttribute("default-marker-size",P.pSize);const N=this.graphics.group({class:"apexcharts-series-markers"});N&&N.add(R),g.add(N),S.add(g);const I=t.config.dataLabels;if(I.enabled){const $=I.formatter(t.seriesData.series[y][A],{seriesIndex:y,dataPointIndex:A,w:t});i.plotDataLabelsText({x:f[A].x,y:f[A].y,text:$,textAnchor:"middle",i:y,j:y,parent:p,offsetCorrection:!1,dataLabelsConfig:ct({},I)})}S.add(p)}),a.push(S)}),this.drawPolygons({parent:d}),t.config.xaxis.labels.show){const b=this.drawXAxisTexts();d.add(b)}return a.forEach(b=>{d.add(b)}),d.add(this.yaxisLabels),d}drawPolygons(e){const t=this.w,{parent:r}=e,a=new Lj(this.w),i=t.globals.yAxisScale[0].result.reverse(),s=i.length,o=[],l=this.size/(s-1);for(let f=0;f<s;f++)o[f]=l*f;o.reverse();const u=[],d=[];o.forEach((f,g)=>{const p=ee.getPolygonPos(f,this.dataPointsLen);let b="";p.forEach((y,x)=>{if(g===0){const S=this.graphics.drawLine(y.x,y.y,0,0,Array.isArray(this.polygons.connectorColors)?this.polygons.connectorColors[x]:this.polygons.connectorColors);d.push(S)}x===0&&this.yaxisLabelsTextsPos.push({x:y.x,y:y.y}),b+=y.x+","+y.y+" "}),u.push(b)}),u.forEach((f,g)=>{const p=this.polygons.strokeColors,b=this.polygons.strokeWidth,y=this.graphics.drawPolygon(f,Array.isArray(p)?p[g]:p,Array.isArray(b)?b[g]:b,t.globals.radarPolygons.fill.colors[g]);r.add(y)}),d.forEach(f=>{r.add(f)}),t.config.yaxis[0].show&&this.yaxisLabelsTextsPos.forEach((f,g)=>{const p=a.drawYAxisTexts(f.x,f.y,g,i[g]);this.yaxisLabels.add(p)})}drawXAxisTexts(){const e=this.w,t=e.config.xaxis.labels,r=this.graphics.group({class:"apexcharts-xaxis"}),a=ee.getPolygonPos(this.size,this.dataPointsLen);return e.labelData.labels.forEach((i,s)=>{const o=e.config.xaxis.labels.formatter,l=new Ol(this.w,this.ctx);if(a[s]){const u=this.getTextPos(a[s],this.size),d=o(i,{seriesIndex:-1,dataPointIndex:s,w:e});l.plotDataLabelsText({x:u.newX,y:u.newY,text:d,textAnchor:u.textAnchor,i:s,j:s,parent:r,className:"apexcharts-xaxis-label",color:Array.isArray(t.style.colors)&&t.style.colors[s]?t.style.colors[s]:"#a8a8a8",dataLabelsConfig:ct({textAnchor:u.textAnchor,dropShadow:{enabled:!1}},t),offsetCorrection:!1}).on("click",g=>{if(typeof e.config.chart.events.xAxisLabelClick=="function"){const p=Object.assign({},e,{labelIndex:s});e.config.chart.events.xAxisLabelClick(g,this.ctx,p)}})}}),r}createPaths(e,t){const r=[];let a=[];const i=[];let s=[];if(e.length){a=[this.graphics.move(t.x,t.y)],s=[this.graphics.move(t.x,t.y)];let o=this.graphics.move(e[0].x,e[0].y),l=this.graphics.move(e[0].x,e[0].y);e.forEach((u,d)=>{o+=this.graphics.line(u.x,u.y),l+=this.graphics.line(u.x,u.y),d===e.length-1&&(o+="Z",l+="Z")}),r.push(o),i.push(l)}return{linePathsFrom:a,linePathsTo:r,areaPathsFrom:s,areaPathsTo:i}}getTextPos(e,t){let a="middle",i=e.x,s=e.y;return Math.abs(e.x)>=10?e.x>0?(a="start",i+=10):e.x<0&&(a="end",i-=10):a="middle",Math.abs(e.y)>=t-10&&(e.y<0?s-=10:e.y>0&&(s+=10)),{textAnchor:a,newX:i,newY:s}}getPreviousPath(e){const t=this.w;let r=null;for(let a=0;a<t.globals.previousPaths.length;a++){const i=t.globals.previousPaths[a];i.paths.length>0&&parseInt(i.realIndex,10)===parseInt(String(e),10)&&typeof t.globals.previousPaths[a].paths[0]<"u"&&(r=t.globals.previousPaths[a].paths[0].d)}return r}getDataPointsPos(e,t,r=this.dataPointsLen){e=e||[],t=t||[];const a=[];for(let i=0;i<r;i++){const s={};s.x=e[i]*Math.sin(t[i]),s.y=-e[i]*Math.cos(t[i]),a.push(s)}return a}}class use extends _m{constructor(e,t){super(e,t),this.ctx=t,this.w=e,this.animBeginArr=[0],this.animDur=0,this.startAngle=e.config.plotOptions.radialBar.startAngle,this.endAngle=e.config.plotOptions.radialBar.endAngle,this.totalAngle=Math.abs(e.config.plotOptions.radialBar.endAngle-e.config.plotOptions.radialBar.startAngle),this.trackStartAngle=e.config.plotOptions.radialBar.track.startAngle,this.trackEndAngle=e.config.plotOptions.radialBar.track.endAngle,this.barLabels=this.w.config.plotOptions.radialBar.barLabels,this.donutDataLabels=this.w.config.plotOptions.radialBar.dataLabels,this.radialDataLabels=this.donutDataLabels,this.trackStartAngle||(this.trackStartAngle=this.startAngle),this.trackEndAngle||(this.trackEndAngle=this.endAngle),this.endAngle===360&&(this.endAngle=359.99),this.margin=parseInt(e.config.plotOptions.radialBar.track.margin,10),this.onBarLabelClick=this.onBarLabelClick.bind(this)}draw(e){var t;const r=this.w,a=new ve(this.w),i=a.group({class:"apexcharts-radialbar"});if(r.globals.noData)return i;const s=a.group(),o=this.defaultSize/2,l=r.layout.gridWidth/2;let u=this.defaultSize/2.05;r.config.chart.sparkline.enabled||(u=u-r.config.stroke.width-r.config.chart.dropShadow.blur);const d=r.globals.fill.colors,f=r.config.plotOptions.radialBar,g=Array.isArray(f.bands)&&f.bands.length>0,p=g&&f.bandsStyle&&f.bandsStyle.hideTrackWhenPresent,b=f.shape==="needle";if(f.track.show&&!p){const C=this.drawTracks({size:u,centerX:l,centerY:o,colorArr:d,series:e});s.add(C)}if(g){const C=this.drawBands({size:u,centerX:l,centerY:o,series:e});s.add(C)}const y=this.drawArcs({size:u,centerX:l,centerY:o,colorArr:d,series:e,skipValueArc:b&&!((t=f.needle)!=null&&t.showValueArc)});if(f.ticks&&f.ticks.show){const C=this.drawTicks({size:u,centerX:l,centerY:o,series:e});if(this.initialAnim&&!r.globals.dataChanged&&!r.globals.resized&&qe.isBrowser()&&r.globals.shouldAnimate){const D=C.node;D.style.opacity="0",D.style.transition="opacity 280ms ease-out";const M=r.config.chart.animations.speed||800;setTimeout(()=>{D.style.opacity="1"},M)}s.add(C)}if(b){const C=this.drawNeedle({size:u,centerX:l,centerY:o,series:e});s.add(C)}let x=360;r.config.plotOptions.radialBar.startAngle<0&&(x=this.totalAngle);const S=(360-x)/360;if(r.globals.radialSize=u-u*S,this.radialDataLabels.value.show){const C=Math.max(this.radialDataLabels.value.offsetY,this.radialDataLabels.name.offsetY);r.globals.radialSize+=C*S}return s.add(y.g),r.config.plotOptions.radialBar.hollow.position==="front"&&(y.g.add(y.elHollow),y.dataLabels&&y.g.add(y.dataLabels)),i.add(s),i}drawTracks(e){const t=this.w,r=new ve(this.w),a=r.group({class:"apexcharts-tracks"}),i=new jr(this.w),s=new Ia(this.w),o=this.getStrokeWidth(e);e.size=e.size-o/2;for(let l=0;l<e.series.length;l++){const u=r.group({class:"apexcharts-radialbar-track apexcharts-track"});a.add(u),u.attr({rel:l+1}),e.size=e.size-o-this.margin;const d=t.config.plotOptions.radialBar.track,f=s.fillPath({seriesNumber:0,size:e.size,fillColors:Array.isArray(d.background)?d.background[l]:d.background,solid:!0}),g=this.trackStartAngle;let p=this.trackEndAngle;Math.abs(p)+Math.abs(g)>=360&&(p=360-Math.abs(this.startAngle)-.1);const b=r.drawPath({d:"",stroke:f,strokeWidth:o*parseInt(d.strokeWidth,10)/100,fill:"none",strokeOpacity:d.opacity,classes:"apexcharts-radialbar-area"});if(d.dropShadow.enabled){const y=d.dropShadow;i.dropShadow(b,y)}u.add(b),b.attr("id","apexcharts-radialbarTrack-"+l),this.animatePaths(b,{centerX:e.centerX,centerY:e.centerY,endAngle:p,startAngle:g,size:e.size,i:l,totalItems:2,animBeginArr:0,dur:0,isTrack:!0})}return a}drawArcs(e){var t;const r=this.w,a=new ve(this.w),i=new Ia(this.w),s=new jr(this.w),o=a.group(),l=this.getStrokeWidth(e);e.size=e.size-l/2;let u=r.config.plotOptions.radialBar.hollow.background;const d=e.size-l*e.series.length-this.margin*e.series.length-l*parseInt(r.config.plotOptions.radialBar.track.strokeWidth,10)/100/2,f=d-r.config.plotOptions.radialBar.hollow.margin;r.config.plotOptions.radialBar.hollow.image!==void 0&&(u=this.drawHollowImage(e,o,d,u));const g=this.drawHollow({size:f,centerX:e.centerX,centerY:e.centerY,fill:u||"transparent"});if(r.config.plotOptions.radialBar.hollow.dropShadow.enabled){const S=r.config.plotOptions.radialBar.hollow.dropShadow;s.dropShadow(g,S)}let p=1;!this.radialDataLabels.total.show&&r.seriesData.series.length>1&&(p=0);let b=null;if(this.radialDataLabels.show){const S=r.dom.Paper.findOne(".apexcharts-datalabels-group");b=this.renderInnerDataLabels(S,this.radialDataLabels,{hollowSize:d,centerX:e.centerX,centerY:e.centerY,opacity:p})}r.config.plotOptions.radialBar.hollow.position==="back"&&(o.add(g),b&&o.add(b));let y=!1;r.config.plotOptions.radialBar.inverseOrder&&(y=!0);const x=((t=this.ctx.morphTypeChange)==null?void 0:t.isActive())===!0;for(let S=y?e.series.length-1:0;y?S>=0:S<e.series.length;y?S--:S++){const C=a.group({class:"apexcharts-series apexcharts-radial-series",seriesName:ee.escapeString(r.seriesData.seriesNames[S])});o.add(C),C.attr({rel:S+1,"data:realIndex":S}),Wn.addCollapsedClassToSeries(this.w,C,S),e.size=e.size-l-this.margin;const O=i.fillPath({seriesNumber:S,size:e.size,value:e.series[S]}),D=this.startAngle;let M;const A=r.config.plotOptions.radialBar,T=typeof A.min=="number"?A.min:0,P=typeof A.max=="number"?A.max:100,R=P===T?1:P-T,N=U=>{const K=Math.min(Math.max(U,T),P);return Math.max(0,(K-T)/R)},I=N(ee.negToZero(e.series[S]));let $=Math.round(this.totalAngle*I)+this.startAngle,Y;r.globals.dataChanged&&(M=this.startAngle,Y=Math.round(this.totalAngle*N(ee.negToZero(r.globals.previousPaths[S])))+M),Math.abs($)+Math.abs(D)>360&&($=$-.01),Math.abs(Y)+Math.abs(M)>360&&(Y=Y-.01);const F=$-D,B=Array.isArray(r.config.stroke.dashArray)?r.config.stroke.dashArray[S]:r.config.stroke.dashArray,X=x?this.ctx.morphTypeChange.getInitialPathFor(S,0):null,Q=x?this.ctx.morphTypeChange.getFromType():null,z=!!X&&(Q==="bar"||Q==="funnel"||Q==="pyramid"||Q==="pie"||Q==="donut"||Q==="polarArea"),V=a.drawPath({d:X||"",stroke:z||e.skipValueArc?"transparent":O,strokeWidth:z||e.skipValueArc?0:l,fill:z?O:"none",fillOpacity:r.config.fill.opacity,classes:"apexcharts-radialbar-area apexcharts-radialbar-slice-"+S,strokeDashArray:B}),j=D+F/2,q=ee.polarToCartesian(e.centerX,e.centerY,e.size,j);if(ve.setAttrs(V.node,{"data:angle":F,"data:value":e.series[S],"data:cx":q.x,"data:cy":q.y}),r.config.chart.dropShadow.enabled){const U=r.config.chart.dropShadow;s.dropShadow(V,U,S)}if(s.setSelectionFilter(V,0,S),this.addListeners(V,this.radialDataLabels),C.add(V),V.attr({index:0,j:S}),this.barLabels.enabled){const U=ee.polarToCartesian(e.centerX,e.centerY,e.size,D),K=this.barLabels.formatter(r.seriesData.seriesNames[S],{seriesIndex:S,w:r}),te=["apexcharts-radialbar-label"];this.barLabels.onClick||te.push("apexcharts-no-click");let ne=this.barLabels.useSeriesColors?r.globals.colors[S]:r.config.chart.foreColor;ne||(ne=r.config.chart.foreColor);const ie=U.x+this.barLabels.offsetX,ce=U.y+this.barLabels.offsetY,ue=a.drawText({x:ie,y:ce,text:K,textAnchor:"end",dominantBaseline:"middle",fontFamily:this.barLabels.fontFamily,fontWeight:this.barLabels.fontWeight,fontSize:this.barLabels.fontSize,foreColor:ne,cssClass:te.join(" ")});ue.on("click",this.onBarLabelClick),ue.attr({rel:S+1}),D!==0&&ue.attr({"transform-origin":`${ie} ${ce}`,transform:`rotate(${D} 0 0)`}),C.add(ue)}let G=0;if(this.initialAnim&&!r.globals.resized&&!r.globals.dataChanged&&(G=r.config.chart.animations.speed),r.globals.dataChanged&&(G=r.config.chart.animations.dynamicAnimation.speed),this.animDur=G/(e.series.length*1.2)+this.animDur,this.animBeginArr.push(this.animDur),x&&X){const U=this.ctx.morphTypeChange.getSpeed(),K=this.getPiePath({me:this,startAngle:D,angle:F,size:e.size});if(z){const te=this.ctx.morphTypeChange.buildRingSegmentPath(e.centerX,e.centerY,e.size,l,D,D+F);V.animate(U).plot(te,"polygons").after(function(){this.attr({d:K,fill:"none",stroke:e.skipValueArc?"transparent":O,"stroke-width":e.skipValueArc?0:l})})}else V.animate(U).plot(K,"polygons").attr({"stroke-width":l})}else this.animatePaths(V,{centerX:e.centerX,centerY:e.centerY,endAngle:$,startAngle:D,prevEndAngle:Y,prevStartAngle:M,size:e.size,i:S,totalItems:2,animBeginArr:this.animBeginArr,dur:G,shouldSetPrevPaths:!0})}return{g:o,elHollow:g,dataLabels:b}}_angleAtValue(e){const t=this.w.config.plotOptions.radialBar,r=typeof t.min=="number"?t.min:0,a=typeof t.max=="number"?t.max:100,i=a===r?r+1:a,o=(Math.max(r,Math.min(i,Number(e)))-r)/(i-r);return this.startAngle+o*(this.endAngle-this.startAngle)}_describeArc(e,t,r,a,i){const s=ee.polarToCartesian(e,t,r,i),o=ee.polarToCartesian(e,t,r,a),l=i-a,u=Math.abs(l)>180?1:0;return`M ${s.x} ${s.y} A ${r} ${r} 0 ${u} 0 ${o.x} ${o.y}`}drawBands(e){const t=this.w,r=new ve(this.w),a=t.config.plotOptions.radialBar,i=a.bands||[],s=r.group({class:"apexcharts-gauge-bands"}),o=this.getStrokeWidth(e),l=e.size-o/2-o-this.margin,u=o*parseInt(a.bandsStyle.strokeWidth,10)/100,d=typeof a.min=="number"?a.min:0,f=typeof a.max=="number"?a.max:100,g=f===d?0:(a.bandsStyle.gap||0)*((this.endAngle-this.startAngle)/(f-d));for(let p=0;p<i.length;p++){const b=i[p];if(b.from===void 0||b.to===void 0)continue;const y=this._angleAtValue(b.from),x=this._angleAtValue(b.to),S=Math.min(y,x)+g/2,C=Math.max(y,x)-g/2;if(C-S<=0)continue;const O=r.drawPath({d:this._describeArc(e.centerX,e.centerY,l,S,C),stroke:b.color||"#ccc",strokeWidth:u,fill:"none",strokeLinecap:a.bandsStyle.linecap||"butt",classes:"apexcharts-gauge-band"});O.node.setAttribute("data-band-index",String(p)),s.add(O)}return s}drawTicks(e){var t,r,a,i;const s=this.w,o=new ve(this.w),l=s.config.plotOptions.radialBar,u=l.ticks,d=o.group({class:"apexcharts-gauge-ticks"}),f=this.getStrokeWidth(e),g=e.size-f/2-f-this.margin,p=typeof l.min=="number"?l.min:0,b=typeof l.max=="number"?l.max:100,y=Math.max(2,(r=(t=u.major)==null?void 0:t.count)!=null?r:11),x=Math.max(0,(i=(a=u.minor)==null?void 0:a.count)!=null?i:0),S=(C,O,D)=>{var M,A,T;const P=this._angleAtValue(C),R=(M=O.length)!=null?M:8,N=O.placement==="inside"?g-R:g,I=O.placement==="inside"?g:g+R,$=ee.polarToCartesian(e.centerX,e.centerY,N,P),Y=ee.polarToCartesian(e.centerX,e.centerY,I,P),k=o.drawLine($.x,$.y,Y.x,Y.y,O.color||(D?"#666":"#999"),0,O.width||(D?2:1));if(d.add(k),D&&((A=u.labels)!=null&&A.show)){const H=(O.placement==="inside"?N:I)+(O.placement==="inside"?-1:1)*((T=u.labels.offset)!=null?T:6),F=ee.polarToCartesian(e.centerX,e.centerY,H,P),B=typeof u.labels.formatter=="function"?u.labels.formatter(C):String(C),X=o.drawText({x:F.x,y:F.y,text:B,textAnchor:"middle",dominantBaseline:"middle",fontFamily:u.labels.fontFamily,fontSize:u.labels.fontSize,fontWeight:u.labels.fontWeight,foreColor:u.labels.color,cssClass:"apexcharts-gauge-tick-label"});d.add(X)}};for(let C=0;C<y;C++){const O=C/(y-1),D=p+O*(b-p);if(S(D,u.major||{},!0),C<y-1&&x>0)for(let M=1;M<=x;M++){const A=(C+M/(x+1))/(y-1),T=p+A*(b-p);S(T,u.minor||{},!1)}}return d}drawNeedle(e){var t,r,a,i,s;const o=this.w,l=new ve(this.w),d=o.config.plotOptions.radialBar.needle||{},f=l.group({class:"apexcharts-gauge-needle"});if(!e.series||e.series.length===0)return f;const g=this.getStrokeWidth(e),p=e.size-g/2-g-this.margin,b=typeof d.length=="string"&&d.length.endsWith("%")?p*parseInt(d.length,10)/100:Number(d.length||p*.85),y=(t=d.baseWidth)!=null?t:4,x=(r=d.tipWidth)!=null?r:1,S=d.color||"#333",C=e.centerX,O=Number((a=d.offsetY)!=null?a:0),D=e.centerY+O,M=`M ${C+y/2} ${D} A ${y/2} ${y/2} 0 0 1 ${C-y/2} ${D} L ${C-x/2} ${D-b} L ${C+x/2} ${D-b} Z`,A=l.drawPath({d:M,stroke:S,strokeWidth:0,fill:S,classes:"apexcharts-gauge-needle-shape"});f.add(A);const T=Number(e.series[0]),P=this._angleAtValue(T),R=this.initialAnim&&!o.globals.dataChanged&&!o.globals.resized,N=this.ctx,I=typeof N._lastNeedleAngle=="number"?N._lastNeedleAngle:this.startAngle;if(N._lastNeedleAngle=P,qe.isBrowser()&&o.globals.shouldAnimate&&(R||o.globals.dataChanged)&&I!==P){const Y=f.node;Y.setAttribute("transform-origin",`${C} ${D}`),Y.setAttribute("transform",`rotate(${I})`);const k=((i=d.animation)==null?void 0:i.duration)&&Number(d.animation.duration)||d.animationSpeed&&Number(d.animationSpeed)||((s=o.config.chart.animations.dynamicAnimation)==null?void 0:s.speed)||o.config.chart.animations.speed||800,H=1.70158,F=H+1,Q=R?j=>1+F*Math.pow(j-1,3)+H*Math.pow(j-1,2):j=>1-Math.pow(1-j,3),z=performance.now(),V=j=>{const q=Math.max(0,Math.min(1,(j-z)/k)),G=I+(P-I)*Q(q);Y.setAttribute("transform",`rotate(${G})`),q<1&&ke.requestAnimationFrame(V)};ke.requestAnimationFrame(V)}else f.attr({"transform-origin":`${C} ${D}`,transform:`rotate(${P})`});return f}drawHollow(e){var t;const r=new ve(this.w),a=this.w.config.plotOptions.radialBar.hollow,i=r.drawCircle(e.size*2),s={class:"apexcharts-radialbar-hollow",cx:e.centerX,cy:e.centerY,r:e.size,fill:e.fill};return(a.stroke||a.strokeDasharray)&&(s.stroke=a.stroke||"transparent",s["stroke-width"]=(t=a.strokeWidth)!=null?t:1,a.strokeDasharray&&(s["stroke-dasharray"]=a.strokeDasharray)),i.attr(s),i}drawHollowImage(e,t,r,a){const i=this.w,s=new Ia(this.w),o=ee.randomId(),l=i.config.plotOptions.radialBar.hollow.image;if(i.config.plotOptions.radialBar.hollow.imageClipped)s.clippedImgArea({width:r,height:r,image:l,patternID:`pattern${i.globals.cuid}${o}`}),a=`url(#pattern${i.globals.cuid}${o})`;else{const u=i.config.plotOptions.radialBar.hollow.imageWidth,d=i.config.plotOptions.radialBar.hollow.imageHeight;if(u===void 0&&d===void 0){const f=i.dom.Paper.image(l,function(g){this.move(e.centerX-g.width/2+i.config.plotOptions.radialBar.hollow.imageOffsetX,e.centerY-g.height/2+i.config.plotOptions.radialBar.hollow.imageOffsetY)});t.add(f)}else{const f=i.dom.Paper.image(l,function(){this.move(e.centerX-u/2+i.config.plotOptions.radialBar.hollow.imageOffsetX,e.centerY-d/2+i.config.plotOptions.radialBar.hollow.imageOffsetY),this.size(u,d)});t.add(f)}}return a}getStrokeWidth(e){const t=this.w;return e.size*(100-parseInt(t.config.plotOptions.radialBar.hollow.size,10))/100/(e.series.length+1)-this.margin}onBarLabelClick(e){var t;const r=e.target,a=parseInt((t=r.getAttribute("rel"))!=null?t:"",10)-1,i=this.barLabels.onClick,s=this.w;i&&i(s.seriesData.seriesNames[a],{w:s,seriesIndex:a})}}class dse extends Vi{draw(e,t){var r,a,i,s,o,l,u,d,f;const g=this.w,p=new ve(this.w);this.rangeBarOptions=this.w.config.plotOptions.rangeBar,this.series=e,this.seriesRangeStart=g.rangeData.seriesRangeStart,this.seriesRangeEnd=g.rangeData.seriesRangeEnd,this.barHelpers.initVariables(e);const b=p.group({class:"apexcharts-rangebar-series apexcharts-plot-series"});for(let y=0;y<e.length;y++){let x,S;const C=g.globals.comboCharts?t[y]:y,{columnGroupIndex:O}=this.barHelpers.getGroupIndex(C),D=p.group({class:"apexcharts-series",seriesName:ee.escapeString(g.seriesData.seriesNames[C]),rel:y+1,"data:realIndex":C});Wn.addCollapsedClassToSeries(this.w,D,C),e[y].length>0&&(this.visibleI=this.visibleI+1);let M=0;this.yRatio.length>1&&(this.yaxisIndex=g.globals.seriesYAxisReverseMap[C][0],M=C);const A=this.barHelpers.initialPositions(C),{y:T,zeroW:P,x:R,zeroH:N}=A;let I=(r=A.barWidth)!=null?r:0,$=(a=A.barHeight)!=null?a:0;const Y=(i=A.yDivision)!=null?i:0,k=(s=A.xDivision)!=null?s:0;S=T,x=R;const H=p.group({class:"apexcharts-datalabels","data:realIndex":C}),F=p.group({class:"apexcharts-rangebar-goals-markers"});for(let B=0;B<g.globals.dataPoints;B++){const X=this.barHelpers.getStrokeWidth(y,B,C),Q=this.seriesRangeStart[y][B],z=this.seriesRangeEnd[y][B];let V=null,j=null,q=null;const G={x,y:S,strokeWidth:X,elSeries:D};let U=this.seriesLen;if(g.config.plotOptions.bar.rangeBarGroupRows&&(U=1),typeof((o=g.config.series[y].data)==null?void 0:o[B])>"u")break;if(this.isHorizontal){q=S+$*this.visibleI;const ne=(Y-$*U)/2;if((u=(l=g.config.series[y].data)==null?void 0:l[B])!=null&&u.x){const ie=this.detectOverlappingBars({i:y,j:B,barYPosition:q,srty:ne,barHeight:$,yDivision:Y,initPositions:A});$=ie.barHeight,q=ie.barYPosition}V=this.drawRangeBarPaths(ct({indexes:{i:y,j:B,realIndex:C},barHeight:$,barYPosition:q,zeroW:P,yDivision:Y,y1:Q,y2:z},G)),I=V.barWidth}else{g.axisFlags.isXNumeric&&(x=(g.seriesData.seriesX[y][B]-g.globals.minX)/this.xRatio-I/2),j=x+I*this.visibleI;const ne=(k-I*U)/2;if((f=(d=g.config.series[y].data)==null?void 0:d[B])!=null&&f.x){const ie=this.detectOverlappingBars({i:y,j:B,barXPosition:j,srtx:ne,barWidth:I,xDivision:k,initPositions:A});I=ie.barWidth,j=ie.barXPosition}V=this.drawRangeColumnPaths(ct({indexes:{i:y,j:B,realIndex:C,translationsIndex:M},barWidth:I,barXPosition:j,zeroH:N,xDivision:k},G)),$=V.barHeight}const K=this.barHelpers.drawGoalLine({barXPosition:V.barXPosition,barYPosition:q,goalX:V.goalX,goalY:V.goalY,barHeight:$,barWidth:I});K&&F.add(K),S=V.y,x=V.x;const te=this.barHelpers.getPathFillColor(e,y,B,C);this.renderSeries({realIndex:C,pathFill:te.color,lineFill:te.useRangeColor?te.color:g.globals.stroke.colors[C],j:B,i:y,x,y:S,y1:Q,y2:z,pathFrom:V.pathFrom,pathTo:V.pathTo,strokeWidth:X,elSeries:D,series:e,barHeight:$,barWidth:I,barXPosition:j,barYPosition:q,columnGroupIndex:O,elDataLabelsWrap:H,elGoalsMarkers:F,visibleSeries:this.visibleI,type:"rangebar"})}b.add(D)}return b}detectOverlappingBars({i:e,j:t,barYPosition:r,barXPosition:a,srty:i,srtx:s,barHeight:o,barWidth:l,yDivision:u,xDivision:d,initPositions:f}){var g,p,b,y;const x=this.w;let S=[];const C=(p=(g=x.config.series[e].data)==null?void 0:g[t])==null?void 0:p.rangeName,O=(y=(b=x.config.series[e].data)==null?void 0:b[t])==null?void 0:y.x,D=Array.isArray(O)?O.join(" "):O,M=x.labelData.labels.map(T=>Array.isArray(T)?T.join(" "):T).indexOf(D),A=x.rangeData.seriesRange[e].findIndex(T=>{var P;return T.x===D&&((P=T.overlaps)==null?void 0:P.size)>0});return this.isHorizontal?(x.config.plotOptions.bar.rangeBarGroupRows?r=i+u*M:r=i+o*this.visibleI+u*M,A>-1&&!x.config.plotOptions.bar.rangeBarOverlap&&(S=Array.from(x.rangeData.seriesRange[e][A].overlaps),S.indexOf(C)>-1&&(o=f.barHeight/S.length,r=o*this.visibleI+u*(100-parseInt(this.barOptions.barHeight,10))/100/2+o*(this.visibleI+S.indexOf(C))+u*M))):(M>-1&&!x.labelData.timescaleLabels.length&&(x.config.plotOptions.bar.rangeBarGroupRows?a=s+d*M:a=s+l*this.visibleI+d*M),A>-1&&!x.config.plotOptions.bar.rangeBarOverlap&&(S=Array.from(x.rangeData.seriesRange[e][A].overlaps),S.indexOf(C)>-1&&(l=f.barWidth/S.length,a=l*this.visibleI+d*(100-parseInt(this.barOptions.barWidth,10))/100/2+l*(this.visibleI+S.indexOf(C))+d*M))),{barYPosition:r,barXPosition:a,barHeight:o,barWidth:l}}drawRangeColumnPaths({indexes:e,x:t,xDivision:r,barWidth:a,barXPosition:i,zeroH:s}){var o,l;const u=this.w,{i:d,j:f,realIndex:g,translationsIndex:p}=e,b=this.yRatio[p],y=this.getRangeValue(g,f);let x=Math.min(y.start,y.end),S=Math.max(y.start,y.end);typeof((o=this.series[d])==null?void 0:o[f])>"u"||((l=this.series[d])==null?void 0:l[f])===null?x=s:(x=s-x/b,S=s-S/b);const C=Math.abs(S-x),O=this.barHelpers.getColumnPaths({barXPosition:i,barWidth:a,y1:x,y2:S,strokeWidth:this.strokeWidth,series:this.seriesRangeEnd,realIndex:g,i:g,j:f,w:u});if(!u.axisFlags.isXNumeric)t=t+r;else{const D=this.getBarXForNumericXAxis({x:t,j:f,realIndex:g,barWidth:a});t=D.x,i=D.barXPosition}return{pathTo:O.pathTo,pathFrom:O.pathFrom,barHeight:C,x:t,y:y.start<0&&y.end<0?x:S,goalY:this.barHelpers.getGoalValues("y",null,s,d,f,p),barXPosition:i}}preventBarOverflow(e){const t=this.w;return e<0&&(e=0),e>t.layout.gridWidth&&(e=t.layout.gridWidth),e}drawRangeBarPaths({indexes:e,y:t,y1:r,y2:a,yDivision:i,barHeight:s,barYPosition:o,zeroW:l}){const u=this.w,{realIndex:d,j:f}=e,g=this.preventBarOverflow(l+r/this.invertedYRatio),p=this.preventBarOverflow(l+a/this.invertedYRatio),b=this.getRangeValue(d,f),y=Math.abs(p-g),x=this.barHelpers.getBarpaths({barYPosition:o,barHeight:s,x1:g,x2:p,strokeWidth:this.strokeWidth,series:this.seriesRangeEnd,i:d,realIndex:d,j:f,w:u});return u.axisFlags.isXNumeric||(t=t+i),{pathTo:x.pathTo,pathFrom:x.pathFrom,barWidth:y,x:b.start<0&&b.end<0?g:p,goalX:this.barHelpers.getGoalValues("x",l,null,d,f,0),y:t}}getRangeValue(e,t){const r=this.w;return{start:r.rangeData.seriesRangeStart[e][t],end:r.rangeData.seriesRangeEnd[e][t]}}}function Y2(n,e){let t=0;for(let i=0;i<n.length;i++)t+=n[i];const r=e/t,a=new Array(n.length);for(let i=0;i<n.length;i++)a[i]=n[i]*r;return a}function j2(n,e,t,r){const a=r*r,i=t*t;return Math.max(a*e/i,i/(a*n))}function fse(n,e,t,r,a,i){if(n===0)return!0;const s=j2(e,t,r,i),o=j2(Math.min(e,a),Math.max(t,a),r+a,i);return s>=o}function W2(n,e,t,r,a,i,s,o){if(s>=o){const l=r/o;let u=i;for(let d=0;d<t;d++){const f=e[d]/l;n.push([a,u,a+l,u+f]),u+=f}}else{const l=r/s;let u=a;for(let d=0;d<t;d++){const f=e[d]/l;n.push([u,i,u+f,i+l]),u+=f}}}function q2(n,e,t,r,a){const i=[],s=n.length;if(s===0)return i;const o=new Array(s);let l=0,u=0,d=1/0,f=-1/0,g=0;for(;g<s;){const p=Math.min(r,a),b=n[g];if(fse(l,d,f,u,b,p))o[l]=b,l++,u+=b,b<d&&(d=b),b>f&&(f=b),g++;else{if(W2(i,o,l,u,e,t,r,a),r>=a){const y=u/a;e+=y,r-=y}else{const y=u/r;t+=y,a-=y}l=0,u=0,d=1/0,f=-1/0}}return l>0&&W2(i,o,l,u,e,t,r,a),i}function hse(n,e,t){const r=n.length,a=new Array(r);for(let o=0;o<r;o++){let l=0;const u=n[o];for(let d=0;d<u.length;d++)l+=u[d];a[o]=l}const i=q2(Y2(a,e*t),0,0,e,t),s=new Array(r);for(let o=0;o<r;o++){const l=i[o],u=l[0],d=l[1],f=l[2]-u,g=l[3]-d;s[o]=q2(Y2(n[o],f*g),u,d,f,g)}return s}const gse={generate:hse};class pse{constructor(e,t){this.ctx=t,this.w=e,this.strokeWidth=this.w.config.stroke.width,this.helpers=new Pj(e,t),this.dynamicAnim=this.w.config.chart.animations.dynamicAnimation,this.labels=[]}draw(e){const t=this.w,r=new ve(this.w,this.ctx),a=new Ia(this.w),i=r.group({class:"apexcharts-treemap"});if(t.globals.noData)return i;const s=[];return e.forEach(l=>{const u=l.map(d=>Math.abs(d));s.push(u)}),this.negRange=this.helpers.checkColorRange(),t.config.series.forEach((l,u)=>{l.data.forEach(d=>{Array.isArray(this.labels[u])||(this.labels[u]=[]),this.labels[u].push(d.x)})}),gse.generate(s,t.layout.gridWidth,t.layout.gridHeight).forEach((l,u)=>{var d;const f=r.group({class:"apexcharts-series apexcharts-treemap-series",seriesName:ee.escapeString(t.seriesData.seriesNames[u]),rel:u+1,"data:realIndex":u});if(r.setupEventDelegation(f,".apexcharts-treemap-rect"),t.config.chart.dropShadow.enabled){const O=t.config.chart.dropShadow;new jr(this.w).dropShadow(i,O,u)}const g=r.group({class:"apexcharts-data-labels"}),p={xMin:1/0,yMin:1/0,xMax:-1/0,yMax:-1/0},b=t.config.chart.animations,y=b.animateGradually,x=y&&y.enabled!==!1,S=new Array(l.length).fill(0);if(x){const O=l.length||1,D=Math.min(y.delay||0,b.speed*.5/O);l.map((A,T)=>({j:T,area:(A[2]-A[0])*(A[3]-A[1])})).sort((A,T)=>T.area-A.area).forEach((A,T)=>{S[A.j]=T*D})}l.forEach((O,D)=>{const M=O[0],A=O[1],T=O[2],P=O[3];p.xMin=Math.min(p.xMin,M),p.yMin=Math.min(p.yMin,A),p.xMax=Math.max(p.xMax,T),p.yMax=Math.max(p.yMax,P);const R=this.helpers.getShadeColor(t.config.chart.type,u,D,this.negRange),N=R.color,I=a.fillPath({color:N,seriesNumber:u,dataPointIndex:D}),$=r.drawRect(M,A,T-M,P-A,t.config.plotOptions.treemap.borderRadius,"#fff",1,this.strokeWidth,t.config.plotOptions.treemap.useFillColorAsStroke?N:t.globals.stroke.colors[u]);$.attr({cx:M,cy:A,index:u,i:u,j:D,width:T-M,height:P-A,fill:I}),$.node.classList.add("apexcharts-treemap-rect");let Y={x:M+(T-M)/2,y:A+(P-A)/2,width:0,height:0};const k={x:M,y:A,width:T-M,height:P-A};if(t.config.chart.animations.enabled&&!t.globals.dataChanged){let X=1;t.globals.resized||(X=t.config.chart.animations.speed),this.animateTreemap($,Y,k,X,S[D]||0)}if(t.globals.dataChanged){let X=1;this.dynamicAnim.enabled&&t.globals.shouldAnimate&&(X=this.dynamicAnim.speed,t.globals.previousPaths[u]&&t.globals.previousPaths[u][D]&&t.globals.previousPaths[u][D].rect&&(Y=t.globals.previousPaths[u][D].rect),this.animateTreemap($,Y,k,X))}let H=this.getFontSize(O),F=t.config.dataLabels.formatter(this.labels[u][D],{value:t.seriesData.series[u][D],seriesIndex:u,dataPointIndex:D,w:t});t.config.plotOptions.treemap.dataLabels.format==="truncate"&&(H=parseInt(String(t.config.dataLabels.style.fontSize),10),F=this.truncateLabels(String(F),H,M,A,T,P));let B=null;t.seriesData.series[u][D]&&(B=this.helpers.calculateDataLabels({text:F,x:(M+T)/2,y:(A+P)/2+this.strokeWidth/2+H/3,i:u,j:D,colorProps:R,fontSize:H,series:e})),t.config.dataLabels.enabled&&B&&this.rotateToFitLabel(B,H,F,M,A,T,P),f.add($),B!==null&&f.add(B)});const C=t.config.plotOptions.treemap.seriesTitle;if(t.config.series.length>1&&C&&C.show){const O=t.config.series[u].name||"";if(O&&p.xMin<1/0&&p.yMin<1/0){const{offsetX:D,offsetY:M,borderColor:A,borderWidth:T,borderRadius:P,style:R}=C,N=R.color||t.config.chart.foreColor,I={left:R.padding.left,right:R.padding.right,top:R.padding.top,bottom:R.padding.bottom},$=r.getTextRects(O,R.fontSize,R.fontFamily),Y=$.width+I.left+I.right,k=$.height+I.top+I.bottom,H=p.xMin+(D||0),F=p.yMin+(M||0),B=r.drawRect(H,F,Y,k,P,R.background,1,T,A),X=r.drawText({x:H+I.left,y:F+I.top+((d=$?.height)!=null?d:0)*.75,text:O,fontSize:R.fontSize,fontFamily:R.fontFamily,fontWeight:R.fontWeight,foreColor:N,cssClass:R.cssClass||""});f.add(B),f.add(X)}}f.add(g),i.add(f)}),i}getFontSize(e){const t=this.w;function r(o){let l,u=0;if(Array.isArray(o[0]))for(l=0;l<o.length;l++)u+=r(o[l]);else for(l=0;l<o.length;l++)u+=o[l].length;return u}function a(o){let l,u=0;if(Array.isArray(o[0]))for(l=0;l<o.length;l++)u+=a(o[l]);else for(l=0;l<o.length;l++)u+=1;return u}const i=r(this.labels)/a(this.labels);function s(o,l){const u=o*l,d=Math.pow(u,.5);return Math.min(d/i,parseInt(t.config.dataLabels.style.fontSize,10))}return s(e[2]-e[0],e[3]-e[1])}rotateToFitLabel(e,t,r,a,i,s,o){const l=new ve(this.w),u=l.getTextRects(r,String(t));if(u.width+this.w.config.stroke.width+5>s-a&&u.width<=o-i){const d=l.rotateAroundCenter(e.node);e.node.setAttribute("transform",`rotate(-90 ${d.x} ${d.y}) translate(${u.height/3})`)}}truncateLabels(e,t,r,a,i,s){const o=new ve(this.w),u=o.getTextRects(e,String(t)).width+this.w.config.stroke.width+5>i-r&&s-a>i-r?s-a:i-r,d=o.getTextBasedOnMaxWidth({text:e,maxWidth:u,fontSize:t});return e.length!==d.length&&u/t<5?"":d}animateTreemap(e,t,r,a,i=0){const s=new Mu(this.w);s.animateRect(e,t,r,a,()=>{s.animationCompleted(e)},i)}}Zi.use({line:xf,area:xf,scatter:xf,bubble:xf,rangeArea:xf,bar:Vi,column:Vi,barStacked:Kie,rangeBar:dse,candlestick:B2,boxPlot:B2,violin:ise,pie:_m,donut:_m,polarArea:_m,radialBar:use,radar:cse,heatmap:ose,treemap:pse});function mse(n,e,t){return(e=(function(r){var a=(function(i,s){if(typeof i!="object"||!i)return i;var o=i[Symbol.toPrimitive];if(o!==void 0){var l=o.call(i,s);if(typeof l!="object")return l;throw new TypeError("@@toPrimitive must return a primitive value.")}return(s==="string"?String:Number)(i)})(r,"string");return typeof a=="symbol"?a:a+""})(e))in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}function hE(){return hE=Object.assign?Object.assign.bind():function(n){for(var e=1;e<arguments.length;e++){var t=arguments[e];for(var r in t)({}).hasOwnProperty.call(t,r)&&(n[r]=t[r])}return n},hE.apply(null,arguments)}function X2(n,e){var t=Object.keys(n);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(n);e&&(r=r.filter((function(a){return Object.getOwnPropertyDescriptor(n,a).enumerable}))),t.push.apply(t,r)}return t}function Nj(n){for(var e=1;e<arguments.length;e++){var t=arguments[e]!=null?arguments[e]:{};e%2?X2(Object(t),!0).forEach((function(r){mse(n,r,t[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(t)):X2(Object(t)).forEach((function(r){Object.defineProperty(n,r,Object.getOwnPropertyDescriptor(t,r))}))}return n}function xh(n){return xh=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},xh(n)}var vse=["type","width","height","series","options","chartRef"];function Zy(n){return n&&xh(n)==="object"&&!Array.isArray(n)}function Ij(n,e){var t=Nj({},n);return Zy(n)&&Zy(e)&&Object.keys(e).forEach((function(r){Zy(e[r])?t[r]=r in n?Ij(n[r],e[r]):e[r]:t[r]=e[r]})),t}function gE(n,e){var t=arguments.length>2&&arguments[2]!==void 0?arguments[2]:new WeakSet;if(n===e)return!0;if(xh(n)!=="object"||n===null||xh(e)!=="object"||e===null)return!1;if(t.has(n)||t.has(e))return!0;t.add(n),t.add(e);var r=Object.keys(n),a=Object.keys(e);if(r.length!==a.length)return!1;for(var i=0,s=r;i<s.length;i++){var o=s[i];if(!a.includes(o)||!gE(n[o],e[o],t))return!1}return!0}var bse=["type","series","options","width","height","chartRef"];function yse(n){var e=n.type,t=e===void 0?"line":e,r=n.width,a=r===void 0?"100%":r,i=n.height,s=i===void 0?"auto":i,o=n.series,l=n.options,u=n.chartRef,d=(function(O,D){if(O==null)return{};var M,A,T=(function(R,N){if(R==null)return{};var I={};for(var $ in R)if({}.hasOwnProperty.call(R,$)){if(N.includes($))continue;I[$]=R[$]}return I})(O,D);if(Object.getOwnPropertySymbols){var P=Object.getOwnPropertySymbols(O);for(A=0;A<P.length;A++)M=P[A],D.includes(M)||{}.propertyIsEnumerable.call(O,M)&&(T[M]=O[M])}return T})(n,vse),f=E.useRef(null),g=E.useRef(null),p=E.useRef(null),b=u||p,y=function(){return Ij(l,{chart:{type:t,height:s,width:a},series:o})};E.useEffect((function(){return b.current=new Zi(f.current,y()),b.current.render(),g.current=l,function(){try{b.current&&typeof b.current.destroy=="function"&&b.current.destroy()}catch{}finally{b.current=null}}}),[]),E.useEffect((function(){if(b.current&&b.current.w){var O=!gE(b.current.w.config.series,o),D=!gE(g.current,l)||s!==b.current.opts.chart.height||a!==b.current.opts.chart.width;(O||D)&&(O?D?b.current.updateOptions(y()):b.current.updateSeries(o):b.current.updateOptions(y())),g.current=l}}),[l,o,s,a]);var x,S,C=(x=bse,S=Nj({},d),x.forEach((function(O){delete S[O]})),S);return pe.createElement("div",hE({ref:f},C))}yse.propTypes={type:Ae.string.isRequired,series:Ae.array.isRequired,options:Ae.object.isRequired,width:Ae.oneOfType([Ae.string,Ae.number]),height:Ae.oneOfType([Ae.string,Ae.number]),chartRef:Ae.shape({current:Ae.any})};var Qy={},wf={},Sf={},ol={},Ky={},Jy={},ex={},tx={},St={},V2;function Ht(){if(V2)return St;V2=1,St.secondsInYear=St.secondsInWeek=St.secondsInQuarter=St.secondsInMonth=St.secondsInMinute=St.secondsInHour=St.secondsInDay=St.quartersInYear=St.monthsInYear=St.monthsInQuarter=St.minutesInYear=St.minutesInMonth=St.minutesInHour=St.minutesInDay=St.minTime=St.millisecondsInWeek=St.millisecondsInSecond=St.millisecondsInMinute=St.millisecondsInHour=St.millisecondsInDay=St.maxTime=St.daysInYear=St.daysInWeek=St.constructFromSymbol=void 0,St.daysInWeek=7;const n=St.daysInYear=365.2425,e=St.maxTime=Math.pow(10,8)*24*60*60*1e3;St.minTime=-e,St.millisecondsInWeek=6048e5,St.millisecondsInDay=864e5,St.millisecondsInMinute=6e4,St.millisecondsInHour=36e5,St.millisecondsInSecond=1e3,St.minutesInYear=525600,St.minutesInMonth=43200,St.minutesInDay=1440,St.minutesInHour=60,St.monthsInQuarter=3,St.monthsInYear=12,St.quartersInYear=4;const t=St.secondsInHour=3600;St.secondsInMinute=60;const r=St.secondsInDay=t*24;St.secondsInWeek=r*7;const a=St.secondsInYear=r*n,i=St.secondsInMonth=a/12;return St.secondsInQuarter=i*3,St.constructFromSymbol=Symbol.for("constructDateFrom"),St}var U2;function mt(){if(U2)return tx;U2=1,tx.constructFrom=e;var n=Ht();function e(t,r){return typeof t=="function"?t(r):t&&typeof t=="object"&&n.constructFromSymbol in t?t[n.constructFromSymbol](r):t instanceof Date?new t.constructor(r):new Date(r)}return tx}var nx={},G2;function _e(){if(G2)return nx;G2=1,nx.toDate=e;var n=mt();function e(t,r){return(0,n.constructFrom)(r||t,t)}return nx}var Z2;function Rs(){if(Z2)return ex;Z2=1,ex.addDays=t;var n=mt(),e=_e();function t(r,a,i){const s=(0,e.toDate)(r,i?.in);return isNaN(a)?(0,n.constructFrom)(i?.in||r,NaN):(a&&s.setDate(s.getDate()+a),s)}return ex}var rx={},Q2;function Gh(){if(Q2)return rx;Q2=1,rx.addMonths=t;var n=mt(),e=_e();function t(r,a,i){const s=(0,e.toDate)(r,i?.in);if(isNaN(a))return(0,n.constructFrom)(i?.in||r,NaN);if(!a)return s;const o=s.getDate(),l=(0,n.constructFrom)(i?.in||r,s.getTime());l.setMonth(s.getMonth()+a+1,0);const u=l.getDate();return o>=u?l:(s.setFullYear(l.getFullYear(),l.getMonth(),o),s)}return rx}var K2;function $j(){if(K2)return Jy;K2=1,Jy.add=a;var n=Rs(),e=Gh(),t=mt(),r=_e();function a(i,s,o){const{years:l=0,months:u=0,weeks:d=0,days:f=0,hours:g=0,minutes:p=0,seconds:b=0}=s,y=(0,r.toDate)(i,o?.in),x=u||l?(0,e.addMonths)(y,u+l*12):y,S=f||d?(0,n.addDays)(x,f+d*7):x,C=p+g*60,D=(b+C*60)*1e3;return(0,t.constructFrom)(o?.in||i,+S+D)}return Jy}var ax={},ix={},J2;function Fj(){if(J2)return ix;J2=1,ix.isSaturday=e;var n=_e();function e(t,r){return(0,n.toDate)(t,r?.in).getDay()===6}return ix}var sx={},eL;function kj(){if(eL)return sx;eL=1,sx.isSunday=e;var n=_e();function e(t,r){return(0,n.toDate)(t,r?.in).getDay()===0}return sx}var ox={},tL;function Bv(){if(tL)return ox;tL=1,ox.isWeekend=e;var n=_e();function e(t,r){const a=(0,n.toDate)(t,r?.in).getDay();return a===0||a===6}return ox}var nL;function Hj(){if(nL)return ax;nL=1,ax.addBusinessDays=i;var n=mt(),e=Fj(),t=kj(),r=Bv(),a=_e();function i(s,o,l){const u=(0,a.toDate)(s,l?.in),d=(0,r.isWeekend)(u,l);if(isNaN(o))return(0,n.constructFrom)(l?.in,NaN);const f=u.getHours(),g=o<0?-1:1,p=Math.trunc(o/5);u.setDate(u.getDate()+p*7);let b=Math.abs(o%5);for(;b>0;)u.setDate(u.getDate()+g),(0,r.isWeekend)(u,l)||(b-=1);return d&&(0,r.isWeekend)(u,l)&&o!==0&&((0,e.isSaturday)(u,l)&&u.setDate(u.getDate()+(g<0?2:-1)),(0,t.isSunday)(u,l)&&u.setDate(u.getDate()+(g<0?1:-2))),u.setHours(f),u}return ax}var lx={},cx={},rL;function Yv(){if(rL)return cx;rL=1,cx.addMilliseconds=t;var n=mt(),e=_e();function t(r,a,i){return(0,n.constructFrom)(i?.in||r,+(0,e.toDate)(r)+a)}return cx}var aL;function zj(){if(aL)return lx;aL=1,lx.addHours=t;var n=Yv(),e=Ht();function t(r,a,i){return(0,n.addMilliseconds)(r,a*e.millisecondsInHour,i)}return lx}var ux={},dx={},fx={},hx={},mp={},iL;function ua(){if(iL)return mp;iL=1,mp.getDefaultOptions=e,mp.setDefaultOptions=t;let n={};function e(){return n}function t(r){n=r}return mp}var sL;function Qi(){if(sL)return hx;sL=1,hx.startOfWeek=t;var n=ua(),e=_e();function t(r,a){const i=(0,n.getDefaultOptions)(),s=a?.weekStartsOn??a?.locale?.options?.weekStartsOn??i.weekStartsOn??i.locale?.options?.weekStartsOn??0,o=(0,e.toDate)(r,a?.in),l=o.getDay(),u=(l<s?7:0)+l-s;return o.setDate(o.getDate()-u),o.setHours(0,0,0,0),o}return hx}var oL;function Ps(){if(oL)return fx;oL=1,fx.startOfISOWeek=e;var n=Qi();function e(t,r){return(0,n.startOfWeek)(t,{...r,weekStartsOn:1})}return fx}var lL;function Nl(){if(lL)return dx;lL=1,dx.getISOWeekYear=r;var n=mt(),e=Ps(),t=_e();function r(a,i){const s=(0,t.toDate)(a,i?.in),o=s.getFullYear(),l=(0,n.constructFrom)(s,0);l.setFullYear(o+1,0,4),l.setHours(0,0,0,0);const u=(0,e.startOfISOWeek)(l),d=(0,n.constructFrom)(s,0);d.setFullYear(o,0,4),d.setHours(0,0,0,0);const f=(0,e.startOfISOWeek)(d);return s.getTime()>=u.getTime()?o+1:s.getTime()>=f.getTime()?o:o-1}return dx}var gx={},px={},mx={},cL;function Mo(){if(cL)return mx;cL=1,mx.getTimezoneOffsetInMilliseconds=e;var n=_e();function e(t){const r=(0,n.toDate)(t),a=new Date(Date.UTC(r.getFullYear(),r.getMonth(),r.getDate(),r.getHours(),r.getMinutes(),r.getSeconds(),r.getMilliseconds()));return a.setUTCFullYear(r.getFullYear()),+t-+a}return mx}var vx={},uL;function _n(){if(uL)return vx;uL=1,vx.normalizeDates=e;var n=mt();function e(t,...r){const a=n.constructFrom.bind(null,t||r.find(i=>typeof i=="object"));return r.map(a)}return vx}var bx={},dL;function jv(){if(dL)return bx;dL=1,bx.startOfDay=e;var n=_e();function e(t,r){const a=(0,n.toDate)(t,r?.in);return a.setHours(0,0,0,0),a}return bx}var fL;function Do(){if(fL)return px;fL=1,px.differenceInCalendarDays=a;var n=Mo(),e=_n(),t=Ht(),r=jv();function a(i,s,o){const[l,u]=(0,e.normalizeDates)(o?.in,i,s),d=(0,r.startOfDay)(l),f=(0,r.startOfDay)(u),g=+d-(0,n.getTimezoneOffsetInMilliseconds)(d),p=+f-(0,n.getTimezoneOffsetInMilliseconds)(f);return Math.round((g-p)/t.millisecondsInDay)}return px}var yx={},hL;function Zh(){if(hL)return yx;hL=1,yx.startOfISOWeekYear=r;var n=mt(),e=Nl(),t=Ps();function r(a,i){const s=(0,e.getISOWeekYear)(a,i),o=(0,n.constructFrom)(i?.in||a,0);return o.setFullYear(s,0,4),o.setHours(0,0,0,0),(0,t.startOfISOWeek)(o)}return yx}var gL;function Bj(){if(gL)return gx;gL=1,gx.setISOWeekYear=a;var n=mt(),e=Do(),t=Zh(),r=_e();function a(i,s,o){let l=(0,r.toDate)(i,o?.in);const u=(0,e.differenceInCalendarDays)(l,(0,t.startOfISOWeekYear)(l,o)),d=(0,n.constructFrom)(o?.in||i,0);return d.setFullYear(s,0,4),d.setHours(0,0,0,0),l=(0,t.startOfISOWeekYear)(d),l.setDate(l.getDate()+u),l}return gx}var pL;function Yj(){if(pL)return ux;pL=1,ux.addISOWeekYears=t;var n=Nl(),e=Bj();function t(r,a,i){return(0,e.setISOWeekYear)(r,(0,n.getISOWeekYear)(r,i)+a,i)}return ux}var xx={},mL;function HM(){if(mL)return xx;mL=1,xx.addMinutes=t;var n=Ht(),e=_e();function t(r,a,i){const s=(0,e.toDate)(r,i?.in);return s.setTime(s.getTime()+a*n.millisecondsInMinute),s}return xx}var wx={},vL;function zM(){if(vL)return wx;vL=1,wx.addQuarters=e;var n=Gh();function e(t,r,a){return(0,n.addMonths)(t,r*3,a)}return wx}var Sx={},bL;function jj(){if(bL)return Sx;bL=1,Sx.addSeconds=e;var n=Yv();function e(t,r,a){return(0,n.addMilliseconds)(t,r*1e3,a)}return Sx}var Cx={},yL;function Wv(){if(yL)return Cx;yL=1,Cx.addWeeks=e;var n=Rs();function e(t,r,a){return(0,n.addDays)(t,r*7,a)}return Cx}var Ox={},xL;function Wj(){if(xL)return Ox;xL=1,Ox.addYears=e;var n=Gh();function e(t,r,a){return(0,n.addMonths)(t,r*12,a)}return Ox}var Ex={},wL;function xse(){if(wL)return Ex;wL=1,Ex.areIntervalsOverlapping=e;var n=_e();function e(t,r,a){const[i,s]=[+(0,n.toDate)(t.start,a?.in),+(0,n.toDate)(t.end,a?.in)].sort((u,d)=>u-d),[o,l]=[+(0,n.toDate)(r.start,a?.in),+(0,n.toDate)(r.end,a?.in)].sort((u,d)=>u-d);return a?.inclusive?i<=l&&o<=s:i<l&&o<s}return Ex}var Mx={},Dx={},SL;function qj(){if(SL)return Dx;SL=1,Dx.max=t;var n=mt(),e=_e();function t(r,a){let i,s=a?.in;return r.forEach(o=>{!s&&typeof o=="object"&&(s=n.constructFrom.bind(null,o));const l=(0,e.toDate)(o,s);(!i||i<l||isNaN(+l))&&(i=l)}),(0,n.constructFrom)(s,i||NaN)}return Dx}var _x={},CL;function Xj(){if(CL)return _x;CL=1,_x.min=t;var n=mt(),e=_e();function t(r,a){let i,s=a?.in;return r.forEach(o=>{!s&&typeof o=="object"&&(s=n.constructFrom.bind(null,o));const l=(0,e.toDate)(o,s);(!i||i>l||isNaN(+l))&&(i=l)}),(0,n.constructFrom)(s,i||NaN)}return _x}var OL;function wse(){if(OL)return Mx;OL=1,Mx.clamp=r;var n=_n(),e=qj(),t=Xj();function r(a,i,s){const[o,l,u]=(0,n.normalizeDates)(s?.in,a,i.start,i.end);return(0,t.min)([(0,e.max)([o,l],s),u],s)}return Mx}var Ax={},EL;function Vj(){if(EL)return Ax;EL=1,Ax.closestIndexTo=e;var n=_e();function e(t,r){const a=+(0,n.toDate)(t);if(isNaN(a))return NaN;let i,s;return r.forEach((o,l)=>{const u=(0,n.toDate)(o);if(isNaN(+u)){i=NaN,s=NaN;return}const d=Math.abs(a-+u);(i==null||d<s)&&(i=l,s=d)}),i}return Ax}var Tx={},ML;function Sse(){if(ML)return Tx;ML=1,Tx.closestTo=r;var n=_n(),e=Vj(),t=mt();function r(a,i,s){const[o,...l]=(0,n.normalizeDates)(s?.in,a,...i),u=(0,e.closestIndexTo)(o,l);if(typeof u=="number"&&isNaN(u))return(0,t.constructFrom)(o,NaN);if(u!==void 0)return l[u]}return Tx}var Rx={},DL;function _u(){if(DL)return Rx;DL=1,Rx.compareAsc=e;var n=_e();function e(t,r){const a=+(0,n.toDate)(t)-+(0,n.toDate)(r);return a<0?-1:a>0?1:a}return Rx}var Px={},_L;function Cse(){if(_L)return Px;_L=1,Px.compareDesc=e;var n=_e();function e(t,r){const a=+(0,n.toDate)(t)-+(0,n.toDate)(r);return a>0?-1:a<0?1:a}return Px}var Lx={},AL;function Rr(){if(AL)return Lx;AL=1,Lx.constructNow=e;var n=mt();function e(t){return(0,n.constructFrom)(t,Date.now())}return Lx}var Nx={},TL;function Ose(){if(TL)return Nx;TL=1,Nx.daysToWeeks=e;var n=Ht();function e(t){const r=Math.trunc(t/n.daysInWeek);return r===0?0:r}return Nx}var Ix={},$x={},RL;function Qh(){if(RL)return $x;RL=1,$x.isSameDay=t;var n=_n(),e=jv();function t(r,a,i){const[s,o]=(0,n.normalizeDates)(i?.in,r,a);return+(0,e.startOfDay)(s)==+(0,e.startOfDay)(o)}return $x}var Fx={},kx={},PL;function Uj(){if(PL)return kx;PL=1,kx.isDate=n;function n(e){return e instanceof Date||typeof e=="object"&&Object.prototype.toString.call(e)==="[object Date]"}return kx}var LL;function _o(){if(LL)return Fx;LL=1,Fx.isValid=t;var n=Uj(),e=_e();function t(r){return!(!(0,n.isDate)(r)&&typeof r!="number"||isNaN(+(0,e.toDate)(r)))}return Fx}var NL;function Ese(){if(NL)return Ix;NL=1,Ix.differenceInBusinessDays=s;var n=_n(),e=Rs(),t=Do(),r=Qh(),a=_o(),i=Bv();function s(o,l,u){const[d,f]=(0,n.normalizeDates)(u?.in,o,l);if(!(0,a.isValid)(d)||!(0,a.isValid)(f))return NaN;const g=(0,t.differenceInCalendarDays)(d,f),p=g<0?-1:1,b=Math.trunc(g/7);let y=b*5,x=(0,e.addDays)(f,b*7);for(;!(0,r.isSameDay)(d,x);)y+=(0,i.isWeekend)(x,u)?0:p,x=(0,e.addDays)(x,p);return y===0?0:y}return Ix}var Hx={},IL;function Gj(){if(IL)return Hx;IL=1,Hx.differenceInCalendarISOWeekYears=t;var n=_n(),e=Nl();function t(r,a,i){const[s,o]=(0,n.normalizeDates)(i?.in,r,a);return(0,e.getISOWeekYear)(s,i)-(0,e.getISOWeekYear)(o,i)}return Hx}var zx={},$L;function Mse(){if($L)return zx;$L=1,zx.differenceInCalendarISOWeeks=a;var n=Mo(),e=_n(),t=Ht(),r=Ps();function a(i,s,o){const[l,u]=(0,e.normalizeDates)(o?.in,i,s),d=(0,r.startOfISOWeek)(l),f=(0,r.startOfISOWeek)(u),g=+d-(0,n.getTimezoneOffsetInMilliseconds)(d),p=+f-(0,n.getTimezoneOffsetInMilliseconds)(f);return Math.round((g-p)/t.millisecondsInWeek)}return zx}var Bx={},FL;function BM(){if(FL)return Bx;FL=1,Bx.differenceInCalendarMonths=e;var n=_n();function e(t,r,a){const[i,s]=(0,n.normalizeDates)(a?.in,t,r),o=i.getFullYear()-s.getFullYear(),l=i.getMonth()-s.getMonth();return o*12+l}return Bx}var Yx={},jx={},kL;function Zj(){if(kL)return jx;kL=1,jx.getQuarter=e;var n=_e();function e(t,r){const a=(0,n.toDate)(t,r?.in);return Math.trunc(a.getMonth()/3)+1}return jx}var HL;function Qj(){if(HL)return Yx;HL=1,Yx.differenceInCalendarQuarters=t;var n=_n(),e=Zj();function t(r,a,i){const[s,o]=(0,n.normalizeDates)(i?.in,r,a),l=s.getFullYear()-o.getFullYear(),u=(0,e.getQuarter)(s)-(0,e.getQuarter)(o);return l*4+u}return Yx}var Wx={},zL;function YM(){if(zL)return Wx;zL=1,Wx.differenceInCalendarWeeks=a;var n=Mo(),e=_n(),t=Ht(),r=Qi();function a(i,s,o){const[l,u]=(0,e.normalizeDates)(o?.in,i,s),d=(0,r.startOfWeek)(l,o),f=(0,r.startOfWeek)(u,o),g=+d-(0,n.getTimezoneOffsetInMilliseconds)(d),p=+f-(0,n.getTimezoneOffsetInMilliseconds)(f);return Math.round((g-p)/t.millisecondsInWeek)}return Wx}var qx={},BL;function jM(){if(BL)return qx;BL=1,qx.differenceInCalendarYears=e;var n=_n();function e(t,r,a){const[i,s]=(0,n.normalizeDates)(a?.in,t,r);return i.getFullYear()-s.getFullYear()}return qx}var Xx={},YL;function WM(){if(YL)return Xx;YL=1,Xx.differenceInDays=t;var n=_n(),e=Do();function t(a,i,s){const[o,l]=(0,n.normalizeDates)(s?.in,a,i),u=r(o,l),d=Math.abs((0,e.differenceInCalendarDays)(o,l));o.setDate(o.getDate()-u*d);const f=+(r(o,l)===-u),g=u*(d-f);return g===0?0:g}function r(a,i){const s=a.getFullYear()-i.getFullYear()||a.getMonth()-i.getMonth()||a.getDate()-i.getDate()||a.getHours()-i.getHours()||a.getMinutes()-i.getMinutes()||a.getSeconds()-i.getSeconds()||a.getMilliseconds()-i.getMilliseconds();return s<0?-1:s>0?1:s}return Xx}var Vx={},Ux={},jL;function Ao(){if(jL)return Ux;jL=1,Ux.getRoundingMethod=n;function n(e){return t=>{const a=(e?Math[e]:Math.trunc)(t);return a===0?0:a}}return Ux}var WL;function qM(){if(WL)return Vx;WL=1,Vx.differenceInHours=r;var n=Ao(),e=_n(),t=Ht();function r(a,i,s){const[o,l]=(0,e.normalizeDates)(s?.in,a,i),u=(+o-+l)/t.millisecondsInHour;return(0,n.getRoundingMethod)(s?.roundingMethod)(u)}return Vx}var Gx={},Zx={},qL;function Kj(){if(qL)return Zx;qL=1,Zx.subISOWeekYears=e;var n=Yj();function e(t,r,a){return(0,n.addISOWeekYears)(t,-r,a)}return Zx}var XL;function Dse(){if(XL)return Gx;XL=1,Gx.differenceInISOWeekYears=a;var n=_n(),e=_u(),t=Gj(),r=Kj();function a(i,s,o){const[l,u]=(0,n.normalizeDates)(o?.in,i,s),d=(0,e.compareAsc)(l,u),f=Math.abs((0,t.differenceInCalendarISOWeekYears)(l,u,o)),g=(0,r.subISOWeekYears)(l,d*f,o),p=+((0,e.compareAsc)(g,u)===-d),b=d*(f-p);return b===0?0:b}return Gx}var Qx={},VL;function XM(){if(VL)return Qx;VL=1,Qx.differenceInMilliseconds=e;var n=_e();function e(t,r){return+(0,n.toDate)(t)-+(0,n.toDate)(r)}return Qx}var Kx={},UL;function VM(){if(UL)return Kx;UL=1,Kx.differenceInMinutes=r;var n=Ao(),e=Ht(),t=XM();function r(a,i,s){const o=(0,t.differenceInMilliseconds)(a,i)/e.millisecondsInMinute;return(0,n.getRoundingMethod)(s?.roundingMethod)(o)}return Kx}var Jx={},ew={},tw={},GL;function UM(){if(GL)return tw;GL=1,tw.endOfDay=e;var n=_e();function e(t,r){const a=(0,n.toDate)(t,r?.in);return a.setHours(23,59,59,999),a}return tw}var nw={},ZL;function GM(){if(ZL)return nw;ZL=1,nw.endOfMonth=e;var n=_e();function e(t,r){const a=(0,n.toDate)(t,r?.in),i=a.getMonth();return a.setFullYear(a.getFullYear(),i+1,0),a.setHours(23,59,59,999),a}return nw}var QL;function Jj(){if(QL)return ew;QL=1,ew.isLastDayOfMonth=r;var n=UM(),e=GM(),t=_e();function r(a,i){const s=(0,t.toDate)(a,i?.in);return+(0,n.endOfDay)(s,i)==+(0,e.endOfMonth)(s,i)}return ew}var KL;function qv(){if(KL)return Jx;KL=1,Jx.differenceInMonths=a;var n=_n(),e=_u(),t=BM(),r=Jj();function a(i,s,o){const[l,u,d]=(0,n.normalizeDates)(o?.in,i,i,s),f=(0,e.compareAsc)(u,d),g=Math.abs((0,t.differenceInCalendarMonths)(u,d));if(g<1)return 0;u.getMonth()===1&&u.getDate()>27&&u.setDate(30),u.setMonth(u.getMonth()-f*g);let p=(0,e.compareAsc)(u,d)===-f;(0,r.isLastDayOfMonth)(l)&&g===1&&(0,e.compareAsc)(l,d)===1&&(p=!1);const b=f*(g-+p);return b===0?0:b}return Jx}var rw={},JL;function _se(){if(JL)return rw;JL=1,rw.differenceInQuarters=t;var n=Ao(),e=qv();function t(r,a,i){const s=(0,e.differenceInMonths)(r,a,i)/3;return(0,n.getRoundingMethod)(i?.roundingMethod)(s)}return rw}var aw={},eN;function Xv(){if(eN)return aw;eN=1,aw.differenceInSeconds=t;var n=Ao(),e=XM();function t(r,a,i){const s=(0,e.differenceInMilliseconds)(r,a)/1e3;return(0,n.getRoundingMethod)(i?.roundingMethod)(s)}return aw}var iw={},tN;function Ase(){if(tN)return iw;tN=1,iw.differenceInWeeks=t;var n=Ao(),e=WM();function t(r,a,i){const s=(0,e.differenceInDays)(r,a,i)/7;return(0,n.getRoundingMethod)(i?.roundingMethod)(s)}return iw}var sw={},nN;function eW(){if(nN)return sw;nN=1,sw.differenceInYears=r;var n=_n(),e=_u(),t=jM();function r(a,i,s){const[o,l]=(0,n.normalizeDates)(s?.in,a,i),u=(0,e.compareAsc)(o,l),d=Math.abs((0,t.differenceInCalendarYears)(o,l));o.setFullYear(1584),l.setFullYear(1584);const f=(0,e.compareAsc)(o,l)===-u,g=u*(d-+f);return g===0?0:g}return sw}var ow={},lw={},rN;function Ls(){if(rN)return lw;rN=1,lw.normalizeInterval=e;var n=_n();function e(t,r){const[a,i]=(0,n.normalizeDates)(t,r.start,r.end);return{start:a,end:i}}return lw}var aN;function tW(){if(aN)return ow;aN=1,ow.eachDayOfInterval=t;var n=Ls(),e=mt();function t(r,a){const{start:i,end:s}=(0,n.normalizeInterval)(a?.in,r);let o=+i>+s;const l=o?+i:+s,u=o?s:i;u.setHours(0,0,0,0);let d=a?.step??1;if(!d)return[];d<0&&(d=-d,o=!o);const f=[];for(;+u<=l;)f.push((0,e.constructFrom)(i,u)),u.setDate(u.getDate()+d),u.setHours(0,0,0,0);return o?f.reverse():f}return ow}var cw={},iN;function Tse(){if(iN)return cw;iN=1,cw.eachHourOfInterval=t;var n=Ls(),e=mt();function t(r,a){const{start:i,end:s}=(0,n.normalizeInterval)(a?.in,r);let o=+i>+s;const l=o?+i:+s,u=o?s:i;u.setMinutes(0,0,0);let d=a?.step??1;if(!d)return[];d<0&&(d=-d,o=!o);const f=[];for(;+u<=l;)f.push((0,e.constructFrom)(i,u)),u.setHours(u.getHours()+d);return o?f.reverse():f}return cw}var uw={},sN;function Rse(){if(sN)return uw;sN=1,uw.eachMinuteOfInterval=r;var n=Ls(),e=HM(),t=mt();function r(a,i){const{start:s,end:o}=(0,n.normalizeInterval)(i?.in,a);s.setSeconds(0,0);let l=+s>+o;const u=l?+s:+o;let d=l?o:s,f=i?.step??1;if(!f)return[];f<0&&(f=-f,l=!l);const g=[];for(;+d<=u;)g.push((0,t.constructFrom)(s,d)),d=(0,e.addMinutes)(d,f);return l?g.reverse():g}return uw}var dw={},oN;function Pse(){if(oN)return dw;oN=1,dw.eachMonthOfInterval=t;var n=Ls(),e=mt();function t(r,a){const{start:i,end:s}=(0,n.normalizeInterval)(a?.in,r);let o=+i>+s;const l=o?+i:+s,u=o?s:i;u.setHours(0,0,0,0),u.setDate(1);let d=a?.step??1;if(!d)return[];d<0&&(d=-d,o=!o);const f=[];for(;+u<=l;)f.push((0,e.constructFrom)(i,u)),u.setMonth(u.getMonth()+d);return o?f.reverse():f}return dw}var fw={},hw={},lN;function ZM(){if(lN)return hw;lN=1,hw.startOfQuarter=e;var n=_e();function e(t,r){const a=(0,n.toDate)(t,r?.in),i=a.getMonth(),s=i-i%3;return a.setMonth(s,1),a.setHours(0,0,0,0),a}return hw}var cN;function Lse(){if(cN)return fw;cN=1,fw.eachQuarterOfInterval=a;var n=Ls(),e=zM(),t=mt(),r=ZM();function a(i,s){const{start:o,end:l}=(0,n.normalizeInterval)(s?.in,i);let u=+o>+l;const d=u?+(0,r.startOfQuarter)(o):+(0,r.startOfQuarter)(l);let f=u?(0,r.startOfQuarter)(l):(0,r.startOfQuarter)(o),g=s?.step??1;if(!g)return[];g<0&&(g=-g,u=!u);const p=[];for(;+f<=d;)p.push((0,t.constructFrom)(o,f)),f=(0,e.addQuarters)(f,g);return u?p.reverse():p}return fw}var gw={},uN;function Nse(){if(uN)return gw;uN=1,gw.eachWeekOfInterval=a;var n=Ls(),e=Wv(),t=mt(),r=Qi();function a(i,s){const{start:o,end:l}=(0,n.normalizeInterval)(s?.in,i);let u=+o>+l;const d=u?(0,r.startOfWeek)(l,s):(0,r.startOfWeek)(o,s),f=u?(0,r.startOfWeek)(o,s):(0,r.startOfWeek)(l,s);d.setHours(15),f.setHours(15);const g=+f.getTime();let p=d,b=s?.step??1;if(!b)return[];b<0&&(b=-b,u=!u);const y=[];for(;+p<=g;)p.setHours(0),y.push((0,t.constructFrom)(o,p)),p=(0,e.addWeeks)(p,b),p.setHours(15);return u?y.reverse():y}return gw}var pw={},dN;function QM(){if(dN)return pw;dN=1,pw.eachWeekendOfInterval=a;var n=Ls(),e=mt(),t=tW(),r=Bv();function a(i,s){const{start:o,end:l}=(0,n.normalizeInterval)(s?.in,i),u=(0,t.eachDayOfInterval)({start:o,end:l},s),d=[];let f=0;for(;f<u.length;){const g=u[f++];(0,r.isWeekend)(g)&&d.push((0,e.constructFrom)(o,g))}return d}return pw}var mw={},vw={},fN;function Vv(){if(fN)return vw;fN=1,vw.startOfMonth=e;var n=_e();function e(t,r){const a=(0,n.toDate)(t,r?.in);return a.setDate(1),a.setHours(0,0,0,0),a}return vw}var hN;function Ise(){if(hN)return mw;hN=1,mw.eachWeekendOfMonth=r;var n=QM(),e=GM(),t=Vv();function r(a,i){const s=(0,t.startOfMonth)(a,i),o=(0,e.endOfMonth)(a,i);return(0,n.eachWeekendOfInterval)({start:s,end:o},i)}return mw}var bw={},yw={},gN;function nW(){if(gN)return yw;gN=1,yw.endOfYear=e;var n=_e();function e(t,r){const a=(0,n.toDate)(t,r?.in),i=a.getFullYear();return a.setFullYear(i+1,0,0),a.setHours(23,59,59,999),a}return yw}var xw={},pN;function KM(){if(pN)return xw;pN=1,xw.startOfYear=e;var n=_e();function e(t,r){const a=(0,n.toDate)(t,r?.in);return a.setFullYear(a.getFullYear(),0,1),a.setHours(0,0,0,0),a}return xw}var mN;function $se(){if(mN)return bw;mN=1,bw.eachWeekendOfYear=r;var n=QM(),e=nW(),t=KM();function r(a,i){const s=(0,t.startOfYear)(a,i),o=(0,e.endOfYear)(a,i);return(0,n.eachWeekendOfInterval)({start:s,end:o},i)}return bw}var ww={},vN;function Fse(){if(vN)return ww;vN=1,ww.eachYearOfInterval=t;var n=Ls(),e=mt();function t(r,a){const{start:i,end:s}=(0,n.normalizeInterval)(a?.in,r);let o=+i>+s;const l=o?+i:+s,u=o?s:i;u.setHours(0,0,0,0),u.setMonth(0,1);let d=a?.step??1;if(!d)return[];d<0&&(d=-d,o=!o);const f=[];for(;+u<=l;)f.push((0,e.constructFrom)(i,u)),u.setFullYear(u.getFullYear()+d);return o?f.reverse():f}return ww}var Sw={},bN;function kse(){if(bN)return Sw;bN=1,Sw.endOfDecade=e;var n=_e();function e(t,r){const a=(0,n.toDate)(t,r?.in),i=a.getFullYear(),s=9+Math.floor(i/10)*10;return a.setFullYear(s,11,31),a.setHours(23,59,59,999),a}return Sw}var Cw={},yN;function Hse(){if(yN)return Cw;yN=1,Cw.endOfHour=e;var n=_e();function e(t,r){const a=(0,n.toDate)(t,r?.in);return a.setMinutes(59,59,999),a}return Cw}var Ow={},Ew={},xN;function rW(){if(xN)return Ew;xN=1,Ew.endOfWeek=t;var n=ua(),e=_e();function t(r,a){const i=(0,n.getDefaultOptions)(),s=a?.weekStartsOn??a?.locale?.options?.weekStartsOn??i.weekStartsOn??i.locale?.options?.weekStartsOn??0,o=(0,e.toDate)(r,a?.in),l=o.getDay(),u=(l<s?-7:0)+6-(l-s);return o.setDate(o.getDate()+u),o.setHours(23,59,59,999),o}return Ew}var wN;function zse(){if(wN)return Ow;wN=1,Ow.endOfISOWeek=e;var n=rW();function e(t,r){return(0,n.endOfWeek)(t,{...r,weekStartsOn:1})}return Ow}var Mw={},SN;function Bse(){if(SN)return Mw;SN=1,Mw.endOfISOWeekYear=r;var n=mt(),e=Nl(),t=Ps();function r(a,i){const s=(0,e.getISOWeekYear)(a,i),o=(0,n.constructFrom)(i?.in||a,0);o.setFullYear(s+1,0,4),o.setHours(0,0,0,0);const l=(0,t.startOfISOWeek)(o,i);return l.setMilliseconds(l.getMilliseconds()-1),l}return Mw}var Dw={},CN;function Yse(){if(CN)return Dw;CN=1,Dw.endOfMinute=e;var n=_e();function e(t,r){const a=(0,n.toDate)(t,r?.in);return a.setSeconds(59,999),a}return Dw}var _w={},ON;function jse(){if(ON)return _w;ON=1,_w.endOfQuarter=e;var n=_e();function e(t,r){const a=(0,n.toDate)(t,r?.in),i=a.getMonth(),s=i-i%3+3;return a.setMonth(s,0),a.setHours(23,59,59,999),a}return _w}var Aw={},EN;function Wse(){if(EN)return Aw;EN=1,Aw.endOfSecond=e;var n=_e();function e(t,r){const a=(0,n.toDate)(t,r?.in);return a.setMilliseconds(999),a}return Aw}var Tw={},MN;function qse(){if(MN)return Tw;MN=1,Tw.endOfToday=e;var n=UM();function e(t){return(0,n.endOfDay)(Date.now(),t)}return Tw}var Rw={},DN;function Xse(){if(DN)return Rw;DN=1,Rw.endOfTomorrow=e;var n=Rr();function e(t){const r=(0,n.constructNow)(t?.in),a=r.getFullYear(),i=r.getMonth(),s=r.getDate(),o=(0,n.constructNow)(t?.in);return o.setFullYear(a,i,s+1),o.setHours(23,59,59,999),t?.in?t.in(o):o}return Rw}var Pw={},_N;function Vse(){if(_N)return Pw;_N=1,Pw.endOfYesterday=t;var n=mt(),e=Rr();function t(r){const a=(0,e.constructNow)(r?.in),i=(0,n.constructFrom)(r?.in,0);return i.setFullYear(a.getFullYear(),a.getMonth(),a.getDate()-1),i.setHours(23,59,59,999),i}return Pw}var Lw={},Nw={},vp={},bp={},AN;function Use(){if(AN)return bp;AN=1,bp.formatDistance=void 0;const n={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}},e=(t,r,a)=>{let i;const s=n[t];return typeof s=="string"?i=s:r===1?i=s.one:i=s.other.replace("{{count}}",r.toString()),a?.addSuffix?a.comparison&&a.comparison>0?"in "+i:i+" ago":i};return bp.formatDistance=e,bp}var yp={},Iw={},TN;function Gse(){if(TN)return Iw;TN=1,Iw.buildFormatLongFn=n;function n(e){return(t={})=>{const r=t.width?String(t.width):e.defaultWidth;return e.formats[r]||e.formats[e.defaultWidth]}}return Iw}var RN;function Zse(){if(RN)return yp;RN=1,yp.formatLong=void 0;var n=Gse();const e={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},t={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},r={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"};return yp.formatLong={date:(0,n.buildFormatLongFn)({formats:e,defaultWidth:"full"}),time:(0,n.buildFormatLongFn)({formats:t,defaultWidth:"full"}),dateTime:(0,n.buildFormatLongFn)({formats:r,defaultWidth:"full"})},yp}var xp={},PN;function Qse(){if(PN)return xp;PN=1,xp.formatRelative=void 0;const n={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},e=(t,r,a,i)=>n[t];return xp.formatRelative=e,xp}var wp={},$w={},LN;function Kse(){if(LN)return $w;LN=1,$w.buildLocalizeFn=n;function n(e){return(t,r)=>{const a=r?.context?String(r.context):"standalone";let i;if(a==="formatting"&&e.formattingValues){const o=e.defaultFormattingWidth||e.defaultWidth,l=r?.width?String(r.width):o;i=e.formattingValues[l]||e.formattingValues[o]}else{const o=e.defaultWidth,l=r?.width?String(r.width):e.defaultWidth;i=e.values[l]||e.values[o]}const s=e.argumentCallback?e.argumentCallback(t):t;return i[s]}}return $w}var NN;function Jse(){if(NN)return wp;NN=1,wp.localize=void 0;var n=Kse();const e={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},t={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},r={narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},a={narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},i={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},s={narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},o=(l,u)=>{const d=Number(l),f=d%100;if(f>20||f<10)switch(f%10){case 1:return d+"st";case 2:return d+"nd";case 3:return d+"rd"}return d+"th"};return wp.localize={ordinalNumber:o,era:(0,n.buildLocalizeFn)({values:e,defaultWidth:"wide"}),quarter:(0,n.buildLocalizeFn)({values:t,defaultWidth:"wide",argumentCallback:l=>l-1}),month:(0,n.buildLocalizeFn)({values:r,defaultWidth:"wide"}),day:(0,n.buildLocalizeFn)({values:a,defaultWidth:"wide"}),dayPeriod:(0,n.buildLocalizeFn)({values:i,defaultWidth:"wide",formattingValues:s,defaultFormattingWidth:"wide"})},wp}var Sp={},Fw={},IN;function eoe(){if(IN)return Fw;IN=1,Fw.buildMatchFn=n;function n(r){return(a,i={})=>{const s=i.width,o=s&&r.matchPatterns[s]||r.matchPatterns[r.defaultMatchWidth],l=a.match(o);if(!l)return null;const u=l[0],d=s&&r.parsePatterns[s]||r.parsePatterns[r.defaultParseWidth],f=Array.isArray(d)?t(d,b=>b.test(u)):e(d,b=>b.test(u));let g;g=r.valueCallback?r.valueCallback(f):f,g=i.valueCallback?i.valueCallback(g):g;const p=a.slice(u.length);return{value:g,rest:p}}}function e(r,a){for(const i in r)if(Object.prototype.hasOwnProperty.call(r,i)&&a(r[i]))return i}function t(r,a){for(let i=0;i<r.length;i++)if(a(r[i]))return i}return Fw}var kw={},$N;function toe(){if($N)return kw;$N=1,kw.buildMatchPatternFn=n;function n(e){return(t,r={})=>{const a=t.match(e.matchPattern);if(!a)return null;const i=a[0],s=t.match(e.parsePattern);if(!s)return null;let o=e.valueCallback?e.valueCallback(s[0]):s[0];o=r.valueCallback?r.valueCallback(o):o;const l=t.slice(i.length);return{value:o,rest:l}}}return kw}var FN;function noe(){if(FN)return Sp;FN=1,Sp.match=void 0;var n=eoe(),e=toe();const t=/^(\d+)(th|st|nd|rd)?/i,r=/\d+/i,a={narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},i={any:[/^b/i,/^(a|c)/i]},s={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},o={any:[/1/i,/2/i,/3/i,/4/i]},l={narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},u={narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},d={narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},f={narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},g={narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},p={any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}};return Sp.match={ordinalNumber:(0,e.buildMatchPatternFn)({matchPattern:t,parsePattern:r,valueCallback:b=>parseInt(b,10)}),era:(0,n.buildMatchFn)({matchPatterns:a,defaultMatchWidth:"wide",parsePatterns:i,defaultParseWidth:"any"}),quarter:(0,n.buildMatchFn)({matchPatterns:s,defaultMatchWidth:"wide",parsePatterns:o,defaultParseWidth:"any",valueCallback:b=>b+1}),month:(0,n.buildMatchFn)({matchPatterns:l,defaultMatchWidth:"wide",parsePatterns:u,defaultParseWidth:"any"}),day:(0,n.buildMatchFn)({matchPatterns:d,defaultMatchWidth:"wide",parsePatterns:f,defaultParseWidth:"any"}),dayPeriod:(0,n.buildMatchFn)({matchPatterns:g,defaultMatchWidth:"any",parsePatterns:p,defaultParseWidth:"any"})},Sp}var kN;function aW(){if(kN)return vp;kN=1,vp.enUS=void 0;var n=Use(),e=Zse(),t=Qse(),r=Jse(),a=noe();return vp.enUS={code:"en-US",formatDistance:n.formatDistance,formatLong:e.formatLong,formatRelative:t.formatRelative,localize:r.localize,match:a.match,options:{weekStartsOn:0,firstWeekContainsDate:1}},vp}var HN;function Au(){return HN||(HN=1,(function(n){Object.defineProperty(n,"defaultLocale",{enumerable:!0,get:function(){return e.enUS}});var e=aW()})(Nw)),Nw}var Cp={},Hw={},zN;function iW(){if(zN)return Hw;zN=1,Hw.getDayOfYear=r;var n=Do(),e=KM(),t=_e();function r(a,i){const s=(0,t.toDate)(a,i?.in);return(0,n.differenceInCalendarDays)(s,(0,e.startOfYear)(s))+1}return Hw}var zw={},BN;function JM(){if(BN)return zw;BN=1,zw.getISOWeek=a;var n=Ht(),e=Ps(),t=Zh(),r=_e();function a(i,s){const o=(0,r.toDate)(i,s?.in),l=+(0,e.startOfISOWeek)(o)-+(0,t.startOfISOWeekYear)(o);return Math.round(l/n.millisecondsInWeek)+1}return zw}var Bw={},Yw={},jw={},YN;function Uv(){if(YN)return jw;YN=1,jw.getWeekYear=a;var n=ua(),e=mt(),t=Qi(),r=_e();function a(i,s){const o=(0,r.toDate)(i,s?.in),l=o.getFullYear(),u=(0,n.getDefaultOptions)(),d=s?.firstWeekContainsDate??s?.locale?.options?.firstWeekContainsDate??u.firstWeekContainsDate??u.locale?.options?.firstWeekContainsDate??1,f=(0,e.constructFrom)(s?.in||i,0);f.setFullYear(l+1,0,d),f.setHours(0,0,0,0);const g=(0,t.startOfWeek)(f,s),p=(0,e.constructFrom)(s?.in||i,0);p.setFullYear(l,0,d),p.setHours(0,0,0,0);const b=(0,t.startOfWeek)(p,s);return+o>=+g?l+1:+o>=+b?l:l-1}return jw}var jN;function eD(){if(jN)return Yw;jN=1,Yw.startOfWeekYear=a;var n=ua(),e=mt(),t=Uv(),r=Qi();function a(i,s){const o=(0,n.getDefaultOptions)(),l=s?.firstWeekContainsDate??s?.locale?.options?.firstWeekContainsDate??o.firstWeekContainsDate??o.locale?.options?.firstWeekContainsDate??1,u=(0,t.getWeekYear)(i,s),d=(0,e.constructFrom)(s?.in||i,0);return d.setFullYear(u,0,l),d.setHours(0,0,0,0),(0,r.startOfWeek)(d,s)}return Yw}var WN;function tD(){if(WN)return Bw;WN=1,Bw.getWeek=a;var n=Ht(),e=Qi(),t=eD(),r=_e();function a(i,s){const o=(0,r.toDate)(i,s?.in),l=+(0,e.startOfWeek)(o,s)-+(0,t.startOfWeekYear)(o,s);return Math.round(l/n.millisecondsInWeek)+1}return Bw}var Ww={},qN;function Tu(){if(qN)return Ww;qN=1,Ww.addLeadingZeros=n;function n(e,t){const r=e<0?"-":"",a=Math.abs(e).toString().padStart(t,"0");return r+a}return Ww}var Op={},XN;function sW(){if(XN)return Op;XN=1,Op.lightFormatters=void 0;var n=Tu();return Op.lightFormatters={y(e,t){const r=e.getFullYear(),a=r>0?r:1-r;return(0,n.addLeadingZeros)(t==="yy"?a%100:a,t.length)},M(e,t){const r=e.getMonth();return t==="M"?String(r+1):(0,n.addLeadingZeros)(r+1,2)},d(e,t){return(0,n.addLeadingZeros)(e.getDate(),t.length)},a(e,t){const r=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.toUpperCase();case"aaa":return r;case"aaaaa":return r[0];case"aaaa":default:return r==="am"?"a.m.":"p.m."}},h(e,t){return(0,n.addLeadingZeros)(e.getHours()%12||12,t.length)},H(e,t){return(0,n.addLeadingZeros)(e.getHours(),t.length)},m(e,t){return(0,n.addLeadingZeros)(e.getMinutes(),t.length)},s(e,t){return(0,n.addLeadingZeros)(e.getSeconds(),t.length)},S(e,t){const r=t.length,a=e.getMilliseconds(),i=Math.trunc(a*Math.pow(10,r-3));return(0,n.addLeadingZeros)(i,t.length)}},Op}var VN;function roe(){if(VN)return Cp;VN=1,Cp.formatters=void 0;var n=iW(),e=JM(),t=Nl(),r=tD(),a=Uv(),i=Tu(),s=sW();const o={midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"};Cp.formatters={G:function(f,g,p){const b=f.getFullYear()>0?1:0;switch(g){case"G":case"GG":case"GGG":return p.era(b,{width:"abbreviated"});case"GGGGG":return p.era(b,{width:"narrow"});case"GGGG":default:return p.era(b,{width:"wide"})}},y:function(f,g,p){if(g==="yo"){const b=f.getFullYear(),y=b>0?b:1-b;return p.ordinalNumber(y,{unit:"year"})}return s.lightFormatters.y(f,g)},Y:function(f,g,p,b){const y=(0,a.getWeekYear)(f,b),x=y>0?y:1-y;if(g==="YY"){const S=x%100;return(0,i.addLeadingZeros)(S,2)}return g==="Yo"?p.ordinalNumber(x,{unit:"year"}):(0,i.addLeadingZeros)(x,g.length)},R:function(f,g){const p=(0,t.getISOWeekYear)(f);return(0,i.addLeadingZeros)(p,g.length)},u:function(f,g){const p=f.getFullYear();return(0,i.addLeadingZeros)(p,g.length)},Q:function(f,g,p){const b=Math.ceil((f.getMonth()+1)/3);switch(g){case"Q":return String(b);case"QQ":return(0,i.addLeadingZeros)(b,2);case"Qo":return p.ordinalNumber(b,{unit:"quarter"});case"QQQ":return p.quarter(b,{width:"abbreviated",context:"formatting"});case"QQQQQ":return p.quarter(b,{width:"narrow",context:"formatting"});case"QQQQ":default:return p.quarter(b,{width:"wide",context:"formatting"})}},q:function(f,g,p){const b=Math.ceil((f.getMonth()+1)/3);switch(g){case"q":return String(b);case"qq":return(0,i.addLeadingZeros)(b,2);case"qo":return p.ordinalNumber(b,{unit:"quarter"});case"qqq":return p.quarter(b,{width:"abbreviated",context:"standalone"});case"qqqqq":return p.quarter(b,{width:"narrow",context:"standalone"});case"qqqq":default:return p.quarter(b,{width:"wide",context:"standalone"})}},M:function(f,g,p){const b=f.getMonth();switch(g){case"M":case"MM":return s.lightFormatters.M(f,g);case"Mo":return p.ordinalNumber(b+1,{unit:"month"});case"MMM":return p.month(b,{width:"abbreviated",context:"formatting"});case"MMMMM":return p.month(b,{width:"narrow",context:"formatting"});case"MMMM":default:return p.month(b,{width:"wide",context:"formatting"})}},L:function(f,g,p){const b=f.getMonth();switch(g){case"L":return String(b+1);case"LL":return(0,i.addLeadingZeros)(b+1,2);case"Lo":return p.ordinalNumber(b+1,{unit:"month"});case"LLL":return p.month(b,{width:"abbreviated",context:"standalone"});case"LLLLL":return p.month(b,{width:"narrow",context:"standalone"});case"LLLL":default:return p.month(b,{width:"wide",context:"standalone"})}},w:function(f,g,p,b){const y=(0,r.getWeek)(f,b);return g==="wo"?p.ordinalNumber(y,{unit:"week"}):(0,i.addLeadingZeros)(y,g.length)},I:function(f,g,p){const b=(0,e.getISOWeek)(f);return g==="Io"?p.ordinalNumber(b,{unit:"week"}):(0,i.addLeadingZeros)(b,g.length)},d:function(f,g,p){return g==="do"?p.ordinalNumber(f.getDate(),{unit:"date"}):s.lightFormatters.d(f,g)},D:function(f,g,p){const b=(0,n.getDayOfYear)(f);return g==="Do"?p.ordinalNumber(b,{unit:"dayOfYear"}):(0,i.addLeadingZeros)(b,g.length)},E:function(f,g,p){const b=f.getDay();switch(g){case"E":case"EE":case"EEE":return p.day(b,{width:"abbreviated",context:"formatting"});case"EEEEE":return p.day(b,{width:"narrow",context:"formatting"});case"EEEEEE":return p.day(b,{width:"short",context:"formatting"});case"EEEE":default:return p.day(b,{width:"wide",context:"formatting"})}},e:function(f,g,p,b){const y=f.getDay(),x=(y-b.weekStartsOn+8)%7||7;switch(g){case"e":return String(x);case"ee":return(0,i.addLeadingZeros)(x,2);case"eo":return p.ordinalNumber(x,{unit:"day"});case"eee":return p.day(y,{width:"abbreviated",context:"formatting"});case"eeeee":return p.day(y,{width:"narrow",context:"formatting"});case"eeeeee":return p.day(y,{width:"short",context:"formatting"});case"eeee":default:return p.day(y,{width:"wide",context:"formatting"})}},c:function(f,g,p,b){const y=f.getDay(),x=(y-b.weekStartsOn+8)%7||7;switch(g){case"c":return String(x);case"cc":return(0,i.addLeadingZeros)(x,g.length);case"co":return p.ordinalNumber(x,{unit:"day"});case"ccc":return p.day(y,{width:"abbreviated",context:"standalone"});case"ccccc":return p.day(y,{width:"narrow",context:"standalone"});case"cccccc":return p.day(y,{width:"short",context:"standalone"});case"cccc":default:return p.day(y,{width:"wide",context:"standalone"})}},i:function(f,g,p){const b=f.getDay(),y=b===0?7:b;switch(g){case"i":return String(y);case"ii":return(0,i.addLeadingZeros)(y,g.length);case"io":return p.ordinalNumber(y,{unit:"day"});case"iii":return p.day(b,{width:"abbreviated",context:"formatting"});case"iiiii":return p.day(b,{width:"narrow",context:"formatting"});case"iiiiii":return p.day(b,{width:"short",context:"formatting"});case"iiii":default:return p.day(b,{width:"wide",context:"formatting"})}},a:function(f,g,p){const y=f.getHours()/12>=1?"pm":"am";switch(g){case"a":case"aa":return p.dayPeriod(y,{width:"abbreviated",context:"formatting"});case"aaa":return p.dayPeriod(y,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return p.dayPeriod(y,{width:"narrow",context:"formatting"});case"aaaa":default:return p.dayPeriod(y,{width:"wide",context:"formatting"})}},b:function(f,g,p){const b=f.getHours();let y;switch(b===12?y=o.noon:b===0?y=o.midnight:y=b/12>=1?"pm":"am",g){case"b":case"bb":return p.dayPeriod(y,{width:"abbreviated",context:"formatting"});case"bbb":return p.dayPeriod(y,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return p.dayPeriod(y,{width:"narrow",context:"formatting"});case"bbbb":default:return p.dayPeriod(y,{width:"wide",context:"formatting"})}},B:function(f,g,p){const b=f.getHours();let y;switch(b>=17?y=o.evening:b>=12?y=o.afternoon:b>=4?y=o.morning:y=o.night,g){case"B":case"BB":case"BBB":return p.dayPeriod(y,{width:"abbreviated",context:"formatting"});case"BBBBB":return p.dayPeriod(y,{width:"narrow",context:"formatting"});case"BBBB":default:return p.dayPeriod(y,{width:"wide",context:"formatting"})}},h:function(f,g,p){if(g==="ho"){let b=f.getHours()%12;return b===0&&(b=12),p.ordinalNumber(b,{unit:"hour"})}return s.lightFormatters.h(f,g)},H:function(f,g,p){return g==="Ho"?p.ordinalNumber(f.getHours(),{unit:"hour"}):s.lightFormatters.H(f,g)},K:function(f,g,p){const b=f.getHours()%12;return g==="Ko"?p.ordinalNumber(b,{unit:"hour"}):(0,i.addLeadingZeros)(b,g.length)},k:function(f,g,p){let b=f.getHours();return b===0&&(b=24),g==="ko"?p.ordinalNumber(b,{unit:"hour"}):(0,i.addLeadingZeros)(b,g.length)},m:function(f,g,p){return g==="mo"?p.ordinalNumber(f.getMinutes(),{unit:"minute"}):s.lightFormatters.m(f,g)},s:function(f,g,p){return g==="so"?p.ordinalNumber(f.getSeconds(),{unit:"second"}):s.lightFormatters.s(f,g)},S:function(f,g){return s.lightFormatters.S(f,g)},X:function(f,g,p){const b=f.getTimezoneOffset();if(b===0)return"Z";switch(g){case"X":return u(b);case"XXXX":case"XX":return d(b);case"XXXXX":case"XXX":default:return d(b,":")}},x:function(f,g,p){const b=f.getTimezoneOffset();switch(g){case"x":return u(b);case"xxxx":case"xx":return d(b);case"xxxxx":case"xxx":default:return d(b,":")}},O:function(f,g,p){const b=f.getTimezoneOffset();switch(g){case"O":case"OO":case"OOO":return"GMT"+l(b,":");case"OOOO":default:return"GMT"+d(b,":")}},z:function(f,g,p){const b=f.getTimezoneOffset();switch(g){case"z":case"zz":case"zzz":return"GMT"+l(b,":");case"zzzz":default:return"GMT"+d(b,":")}},t:function(f,g,p){const b=Math.trunc(+f/1e3);return(0,i.addLeadingZeros)(b,g.length)},T:function(f,g,p){return(0,i.addLeadingZeros)(+f,g.length)}};function l(f,g=""){const p=f>0?"-":"+",b=Math.abs(f),y=Math.trunc(b/60),x=b%60;return x===0?p+String(y):p+String(y)+g+(0,i.addLeadingZeros)(x,2)}function u(f,g){return f%60===0?(f>0?"-":"+")+(0,i.addLeadingZeros)(Math.abs(f)/60,2):d(f,g)}function d(f,g=""){const p=f>0?"-":"+",b=Math.abs(f),y=(0,i.addLeadingZeros)(Math.trunc(b/60),2),x=(0,i.addLeadingZeros)(b%60,2);return p+y+g+x}return Cp}var Ep={},UN;function oW(){if(UN)return Ep;UN=1,Ep.longFormatters=void 0;const n=(r,a)=>{switch(r){case"P":return a.date({width:"short"});case"PP":return a.date({width:"medium"});case"PPP":return a.date({width:"long"});case"PPPP":default:return a.date({width:"full"})}},e=(r,a)=>{switch(r){case"p":return a.time({width:"short"});case"pp":return a.time({width:"medium"});case"ppp":return a.time({width:"long"});case"pppp":default:return a.time({width:"full"})}},t=(r,a)=>{const i=r.match(/(P+)(p+)?/)||[],s=i[1],o=i[2];if(!o)return n(r,a);let l;switch(s){case"P":l=a.dateTime({width:"short"});break;case"PP":l=a.dateTime({width:"medium"});break;case"PPP":l=a.dateTime({width:"long"});break;case"PPPP":default:l=a.dateTime({width:"full"});break}return l.replace("{{date}}",n(s,a)).replace("{{time}}",e(o,a))};return Ep.longFormatters={p:e,P:t},Ep}var Cf={},GN;function lW(){if(GN)return Cf;GN=1,Cf.isProtectedDayOfYearToken=r,Cf.isProtectedWeekYearToken=a,Cf.warnOrThrowProtectedError=i;const n=/^D+$/,e=/^Y+$/,t=["D","DD","YY","YYYY"];function r(o){return n.test(o)}function a(o){return e.test(o)}function i(o,l,u){const d=s(o,l,u);if(console.warn(d),t.includes(o))throw new RangeError(d)}function s(o,l,u){const d=o[0]==="Y"?"years":"days of the month";return`Use \`${o.toLowerCase()}\` instead of \`${o}\` (in \`${l}\`) for formatting ${d} to the input \`${u}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}return Cf}var ZN;function cW(){return ZN||(ZN=1,(function(n){n.format=n.formatDate=p,Object.defineProperty(n,"formatters",{enumerable:!0,get:function(){return r.formatters}}),Object.defineProperty(n,"longFormatters",{enumerable:!0,get:function(){return a.longFormatters}});var e=Au(),t=ua(),r=roe(),a=oW(),i=lW(),s=_o(),o=_e();const l=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,u=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,d=/^'([^]*?)'?$/,f=/''/g,g=/[a-zA-Z]/;function p(y,x,S){const C=(0,t.getDefaultOptions)(),O=S?.locale??C.locale??e.defaultLocale,D=S?.firstWeekContainsDate??S?.locale?.options?.firstWeekContainsDate??C.firstWeekContainsDate??C.locale?.options?.firstWeekContainsDate??1,M=S?.weekStartsOn??S?.locale?.options?.weekStartsOn??C.weekStartsOn??C.locale?.options?.weekStartsOn??0,A=(0,o.toDate)(y,S?.in);if(!(0,s.isValid)(A))throw new RangeError("Invalid time value");let T=x.match(u).map(R=>{const N=R[0];if(N==="p"||N==="P"){const I=a.longFormatters[N];return I(R,O.formatLong)}return R}).join("").match(l).map(R=>{if(R==="''")return{isToken:!1,value:"'"};const N=R[0];if(N==="'")return{isToken:!1,value:b(R)};if(r.formatters[N])return{isToken:!0,value:R};if(N.match(g))throw new RangeError("Format string contains an unescaped latin alphabet character `"+N+"`");return{isToken:!1,value:R}});O.localize.preprocessor&&(T=O.localize.preprocessor(A,T));const P={firstWeekContainsDate:D,weekStartsOn:M,locale:O};return T.map(R=>{if(!R.isToken)return R.value;const N=R.value;(!S?.useAdditionalWeekYearTokens&&(0,i.isProtectedWeekYearToken)(N)||!S?.useAdditionalDayOfYearTokens&&(0,i.isProtectedDayOfYearToken)(N))&&(0,i.warnOrThrowProtectedError)(N,x,String(y));const I=r.formatters[N[0]];return I(A,N,O.localize,P)}).join("")}function b(y){const x=y.match(d);return x?x[1].replace(f,"'"):y}})(Lw)),Lw}var qw={},QN;function uW(){if(QN)return qw;QN=1,qw.formatDistance=l;var n=Au(),e=ua(),t=Mo(),r=_n(),a=_u(),i=Ht(),s=qv(),o=Xv();function l(u,d,f){const g=(0,e.getDefaultOptions)(),p=f?.locale??g.locale??n.defaultLocale,b=2520,y=(0,a.compareAsc)(u,d);if(isNaN(y))throw new RangeError("Invalid time value");const x=Object.assign({},f,{addSuffix:f?.addSuffix,comparison:y}),[S,C]=(0,r.normalizeDates)(f?.in,...y>0?[d,u]:[u,d]),O=(0,o.differenceInSeconds)(C,S),D=((0,t.getTimezoneOffsetInMilliseconds)(C)-(0,t.getTimezoneOffsetInMilliseconds)(S))/1e3,M=Math.round((O-D)/60);let A;if(M<2)return f?.includeSeconds?O<5?p.formatDistance("lessThanXSeconds",5,x):O<10?p.formatDistance("lessThanXSeconds",10,x):O<20?p.formatDistance("lessThanXSeconds",20,x):O<40?p.formatDistance("halfAMinute",0,x):O<60?p.formatDistance("lessThanXMinutes",1,x):p.formatDistance("xMinutes",1,x):M===0?p.formatDistance("lessThanXMinutes",1,x):p.formatDistance("xMinutes",M,x);if(M<45)return p.formatDistance("xMinutes",M,x);if(M<90)return p.formatDistance("aboutXHours",1,x);if(M<i.minutesInDay){const T=Math.round(M/60);return p.formatDistance("aboutXHours",T,x)}else{if(M<b)return p.formatDistance("xDays",1,x);if(M<i.minutesInMonth){const T=Math.round(M/i.minutesInDay);return p.formatDistance("xDays",T,x)}else if(M<i.minutesInMonth*2)return A=Math.round(M/i.minutesInMonth),p.formatDistance("aboutXMonths",A,x)}if(A=(0,s.differenceInMonths)(C,S),A<12){const T=Math.round(M/i.minutesInMonth);return p.formatDistance("xMonths",T,x)}else{const T=A%12,P=Math.trunc(A/12);return T<3?p.formatDistance("aboutXYears",P,x):T<9?p.formatDistance("overXYears",P,x):p.formatDistance("almostXYears",P+1,x)}}return qw}var Xw={},KN;function dW(){if(KN)return Xw;KN=1,Xw.formatDistanceStrict=o;var n=Au(),e=ua(),t=Ao(),r=Mo(),a=_n(),i=_u(),s=Ht();function o(l,u,d){const f=(0,e.getDefaultOptions)(),g=d?.locale??f.locale??n.defaultLocale,p=(0,i.compareAsc)(l,u);if(isNaN(p))throw new RangeError("Invalid time value");const b=Object.assign({},d,{addSuffix:d?.addSuffix,comparison:p}),[y,x]=(0,a.normalizeDates)(d?.in,...p>0?[u,l]:[l,u]),S=(0,t.getRoundingMethod)(d?.roundingMethod??"round"),C=x.getTime()-y.getTime(),O=C/s.millisecondsInMinute,D=(0,r.getTimezoneOffsetInMilliseconds)(x)-(0,r.getTimezoneOffsetInMilliseconds)(y),M=(C-D)/s.millisecondsInMinute,A=d?.unit;let T;if(A?T=A:O<1?T="second":O<60?T="minute":O<s.minutesInDay?T="hour":M<s.minutesInMonth?T="day":M<s.minutesInYear?T="month":T="year",T==="second"){const P=S(C/1e3);return g.formatDistance("xSeconds",P,b)}else if(T==="minute"){const P=S(O);return g.formatDistance("xMinutes",P,b)}else if(T==="hour"){const P=S(O/60);return g.formatDistance("xHours",P,b)}else if(T==="day"){const P=S(M/s.minutesInDay);return g.formatDistance("xDays",P,b)}else if(T==="month"){const P=S(M/s.minutesInMonth);return P===12&&A!=="month"?g.formatDistance("xYears",1,b):g.formatDistance("xMonths",P,b)}else{const P=S(M/s.minutesInYear);return g.formatDistance("xYears",P,b)}}return Xw}var Vw={},JN;function aoe(){if(JN)return Vw;JN=1,Vw.formatDistanceToNow=t;var n=Rr(),e=uW();function t(r,a){return(0,e.formatDistance)(r,(0,n.constructNow)(r),a)}return Vw}var Uw={},eI;function ioe(){if(eI)return Uw;eI=1,Uw.formatDistanceToNowStrict=t;var n=Rr(),e=dW();function t(r,a){return(0,e.formatDistanceStrict)(r,(0,n.constructNow)(r),a)}return Uw}var Gw={},tI;function soe(){if(tI)return Gw;tI=1,Gw.formatDuration=r;var n=Au(),e=ua();const t=["years","months","weeks","days","hours","minutes","seconds"];function r(a,i){const s=(0,e.getDefaultOptions)(),o=i?.locale??s.locale??n.defaultLocale,l=i?.format??t,u=i?.zero??!1,d=i?.delimiter??" ";return o.formatDistance?l.reduce((g,p)=>{const b=`x${p.replace(/(^.)/,x=>x.toUpperCase())}`,y=a[p];return y!==void 0&&(u||a[p])?g.concat(o.formatDistance(b,y)):g},[]).join(d):""}return Gw}var Zw={},nI;function ooe(){if(nI)return Zw;nI=1,Zw.formatISO=t;var n=Tu(),e=_e();function t(r,a){const i=(0,e.toDate)(r,a?.in);if(isNaN(+i))throw new RangeError("Invalid time value");const s=a?.format??"extended",o=a?.representation??"complete";let l="",u="";const d=s==="extended"?"-":"",f=s==="extended"?":":"";if(o!=="time"){const g=(0,n.addLeadingZeros)(i.getDate(),2),p=(0,n.addLeadingZeros)(i.getMonth()+1,2);l=`${(0,n.addLeadingZeros)(i.getFullYear(),4)}${d}${p}${d}${g}`}if(o!=="date"){const g=i.getTimezoneOffset();if(g!==0){const C=Math.abs(g),O=(0,n.addLeadingZeros)(Math.trunc(C/60),2),D=(0,n.addLeadingZeros)(C%60,2);u=`${g<0?"+":"-"}${O}:${D}`}else u="Z";const p=(0,n.addLeadingZeros)(i.getHours(),2),b=(0,n.addLeadingZeros)(i.getMinutes(),2),y=(0,n.addLeadingZeros)(i.getSeconds(),2),x=l===""?"":"T",S=[p,b,y].join(f);l=`${l}${x}${S}${u}`}return l}return Zw}var Qw={},rI;function loe(){if(rI)return Qw;rI=1,Qw.formatISO9075=r;var n=Tu(),e=_o(),t=_e();function r(a,i){const s=(0,t.toDate)(a,i?.in);if(!(0,e.isValid)(s))throw new RangeError("Invalid time value");const o=i?.format??"extended",l=i?.representation??"complete";let u="";const d=o==="extended"?"-":"",f=o==="extended"?":":"";if(l!=="time"){const g=(0,n.addLeadingZeros)(s.getDate(),2),p=(0,n.addLeadingZeros)(s.getMonth()+1,2);u=`${(0,n.addLeadingZeros)(s.getFullYear(),4)}${d}${p}${d}${g}`}if(l!=="date"){const g=(0,n.addLeadingZeros)(s.getHours(),2),p=(0,n.addLeadingZeros)(s.getMinutes(),2),b=(0,n.addLeadingZeros)(s.getSeconds(),2);u=`${u}${u===""?"":" "}${g}${f}${p}${f}${b}`}return u}return Qw}var Kw={},aI;function coe(){if(aI)return Kw;aI=1,Kw.formatISODuration=n;function n(e){const{years:t=0,months:r=0,days:a=0,hours:i=0,minutes:s=0,seconds:o=0}=e;return`P${t}Y${r}M${a}DT${i}H${s}M${o}S`}return Kw}var Jw={},iI;function uoe(){if(iI)return Jw;iI=1,Jw.formatRFC3339=r;var n=Tu(),e=_o(),t=_e();function r(a,i){const s=(0,t.toDate)(a,i?.in);if(!(0,e.isValid)(s))throw new RangeError("Invalid time value");const o=i?.fractionDigits??0,l=(0,n.addLeadingZeros)(s.getDate(),2),u=(0,n.addLeadingZeros)(s.getMonth()+1,2),d=s.getFullYear(),f=(0,n.addLeadingZeros)(s.getHours(),2),g=(0,n.addLeadingZeros)(s.getMinutes(),2),p=(0,n.addLeadingZeros)(s.getSeconds(),2);let b="";if(o>0){const S=s.getMilliseconds(),C=Math.trunc(S*Math.pow(10,o-3));b="."+(0,n.addLeadingZeros)(C,o)}let y="";const x=s.getTimezoneOffset();if(x!==0){const S=Math.abs(x),C=(0,n.addLeadingZeros)(Math.trunc(S/60),2),O=(0,n.addLeadingZeros)(S%60,2);y=`${x<0?"+":"-"}${C}:${O}`}else y="Z";return`${d}-${u}-${l}T${f}:${g}:${p}${b}${y}`}return Jw}var e1={},sI;function doe(){if(sI)return e1;sI=1,e1.formatRFC7231=i;var n=Tu(),e=_o(),t=_e();const r=["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],a=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function i(s){const o=(0,t.toDate)(s);if(!(0,e.isValid)(o))throw new RangeError("Invalid time value");const l=r[o.getUTCDay()],u=(0,n.addLeadingZeros)(o.getUTCDate(),2),d=a[o.getUTCMonth()],f=o.getUTCFullYear(),g=(0,n.addLeadingZeros)(o.getUTCHours(),2),p=(0,n.addLeadingZeros)(o.getUTCMinutes(),2),b=(0,n.addLeadingZeros)(o.getUTCSeconds(),2);return`${l}, ${u} ${d} ${f} ${g}:${p}:${b} GMT`}return e1}var t1={},oI;function foe(){if(oI)return t1;oI=1,t1.formatRelative=i;var n=Au(),e=ua(),t=_n(),r=Do(),a=cW();function i(s,o,l){const[u,d]=(0,t.normalizeDates)(l?.in,s,o),f=(0,e.getDefaultOptions)(),g=l?.locale??f.locale??n.defaultLocale,p=l?.weekStartsOn??l?.locale?.options?.weekStartsOn??f.weekStartsOn??f.locale?.options?.weekStartsOn??0,b=(0,r.differenceInCalendarDays)(u,d);if(isNaN(b))throw new RangeError("Invalid time value");let y;b<-6?y="other":b<-1?y="lastWeek":b<0?y="yesterday":b<1?y="today":b<2?y="tomorrow":b<7?y="nextWeek":y="other";const x=g.formatRelative(y,u,d,{locale:g,weekStartsOn:p});return(0,a.format)(u,x,{locale:g,weekStartsOn:p})}return t1}var n1={},lI;function hoe(){if(lI)return n1;lI=1,n1.fromUnixTime=e;var n=_e();function e(t,r){return(0,n.toDate)(t*1e3,r?.in)}return n1}var r1={},cI;function fW(){if(cI)return r1;cI=1,r1.getDate=e;var n=_e();function e(t,r){return(0,n.toDate)(t,r?.in).getDate()}return r1}var a1={},uI;function Gv(){if(uI)return a1;uI=1,a1.getDay=e;var n=_e();function e(t,r){return(0,n.toDate)(t,r?.in).getDay()}return a1}var i1={},dI;function hW(){if(dI)return i1;dI=1,i1.getDaysInMonth=t;var n=mt(),e=_e();function t(r,a){const i=(0,e.toDate)(r,a?.in),s=i.getFullYear(),o=i.getMonth(),l=(0,n.constructFrom)(i,0);return l.setFullYear(s,o+1,0),l.setHours(0,0,0,0),l.getDate()}return i1}var s1={},o1={},fI;function gW(){if(fI)return o1;fI=1,o1.isLeapYear=e;var n=_e();function e(t,r){const i=(0,n.toDate)(t,r?.in).getFullYear();return i%400===0||i%4===0&&i%100!==0}return o1}var hI;function goe(){if(hI)return s1;hI=1,s1.getDaysInYear=t;var n=gW(),e=_e();function t(r,a){const i=(0,e.toDate)(r,a?.in);return Number.isNaN(+i)?NaN:(0,n.isLeapYear)(i)?366:365}return s1}var l1={},gI;function poe(){if(gI)return l1;gI=1,l1.getDecade=e;var n=_e();function e(t,r){const i=(0,n.toDate)(t,r?.in).getFullYear();return Math.floor(i/10)*10}return l1}var c1={},pI;function pW(){if(pI)return c1;pI=1,c1.getDefaultOptions=e;var n=ua();function e(){return Object.assign({},(0,n.getDefaultOptions)())}return c1}var u1={},mI;function moe(){if(mI)return u1;mI=1,u1.getHours=e;var n=_e();function e(t,r){return(0,n.toDate)(t,r?.in).getHours()}return u1}var d1={},vI;function mW(){if(vI)return d1;vI=1,d1.getISODay=e;var n=_e();function e(t,r){const a=(0,n.toDate)(t,r?.in).getDay();return a===0?7:a}return d1}var f1={},bI;function voe(){if(bI)return f1;bI=1,f1.getISOWeeksInYear=r;var n=Wv(),e=Ht(),t=Zh();function r(a,i){const s=(0,t.startOfISOWeekYear)(a,i),l=+(0,t.startOfISOWeekYear)((0,n.addWeeks)(s,60))-+s;return Math.round(l/e.millisecondsInWeek)}return f1}var h1={},yI;function boe(){if(yI)return h1;yI=1,h1.getMilliseconds=e;var n=_e();function e(t){return(0,n.toDate)(t).getMilliseconds()}return h1}var g1={},xI;function yoe(){if(xI)return g1;xI=1,g1.getMinutes=e;var n=_e();function e(t,r){return(0,n.toDate)(t,r?.in).getMinutes()}return g1}var p1={},wI;function xoe(){if(wI)return p1;wI=1,p1.getMonth=e;var n=_e();function e(t,r){return(0,n.toDate)(t,r?.in).getMonth()}return p1}var m1={},SI;function woe(){if(SI)return m1;SI=1,m1.getOverlappingDaysInIntervals=r;var n=Mo(),e=Ht(),t=_e();function r(a,i){const[s,o]=[+(0,t.toDate)(a.start),+(0,t.toDate)(a.end)].sort((y,x)=>y-x),[l,u]=[+(0,t.toDate)(i.start),+(0,t.toDate)(i.end)].sort((y,x)=>y-x);if(!(s<u&&l<o))return 0;const f=l<s?s:l,g=f-(0,n.getTimezoneOffsetInMilliseconds)(f),p=u>o?o:u,b=p-(0,n.getTimezoneOffsetInMilliseconds)(p);return Math.ceil((b-g)/e.millisecondsInDay)}return m1}var v1={},CI;function Soe(){if(CI)return v1;CI=1,v1.getSeconds=e;var n=_e();function e(t){return(0,n.toDate)(t).getSeconds()}return v1}var b1={},OI;function Coe(){if(OI)return b1;OI=1,b1.getTime=e;var n=_e();function e(t){return+(0,n.toDate)(t)}return b1}var y1={},EI;function Ooe(){if(EI)return y1;EI=1,y1.getUnixTime=e;var n=_e();function e(t){return Math.trunc(+(0,n.toDate)(t)/1e3)}return y1}var x1={},MI;function Eoe(){if(MI)return x1;MI=1,x1.getWeekOfMonth=i;var n=ua(),e=fW(),t=Gv(),r=Vv(),a=_e();function i(s,o){const l=(0,n.getDefaultOptions)(),u=o?.weekStartsOn??o?.locale?.options?.weekStartsOn??l.weekStartsOn??l.locale?.options?.weekStartsOn??0,d=(0,e.getDate)((0,a.toDate)(s,o?.in));if(isNaN(d))return NaN;const f=(0,t.getDay)((0,r.startOfMonth)(s,o));let g=u-f;g<=0&&(g+=7);const p=d-g;return Math.ceil(p/7)+1}return x1}var w1={},S1={},DI;function vW(){if(DI)return S1;DI=1,S1.lastDayOfMonth=e;var n=_e();function e(t,r){const a=(0,n.toDate)(t,r?.in),i=a.getMonth();return a.setFullYear(a.getFullYear(),i+1,0),a.setHours(0,0,0,0),(0,n.toDate)(a,r?.in)}return S1}var _I;function Moe(){if(_I)return w1;_I=1,w1.getWeeksInMonth=a;var n=YM(),e=vW(),t=Vv(),r=_e();function a(i,s){const o=(0,r.toDate)(i,s?.in);return(0,n.differenceInCalendarWeeks)((0,e.lastDayOfMonth)(o,s),(0,t.startOfMonth)(o,s),s)+1}return w1}var C1={},AI;function Doe(){if(AI)return C1;AI=1,C1.getYear=e;var n=_e();function e(t,r){return(0,n.toDate)(t,r?.in).getFullYear()}return C1}var O1={},TI;function _oe(){if(TI)return O1;TI=1,O1.hoursToMilliseconds=e;var n=Ht();function e(t){return Math.trunc(t*n.millisecondsInHour)}return O1}var E1={},RI;function Aoe(){if(RI)return E1;RI=1,E1.hoursToMinutes=e;var n=Ht();function e(t){return Math.trunc(t*n.minutesInHour)}return E1}var M1={},PI;function Toe(){if(PI)return M1;PI=1,M1.hoursToSeconds=e;var n=Ht();function e(t){return Math.trunc(t*n.secondsInHour)}return M1}var D1={},LI;function Roe(){if(LI)return D1;LI=1,D1.interval=e;var n=_n();function e(t,r,a){const[i,s]=(0,n.normalizeDates)(a?.in,t,r);if(isNaN(+i))throw new TypeError("Start date is invalid");if(isNaN(+s))throw new TypeError("End date is invalid");if(a?.assertPositive&&+i>+s)throw new TypeError("End date must be after start date");return{start:i,end:s}}return D1}var _1={},NI;function Poe(){if(NI)return _1;NI=1,_1.intervalToDuration=l;var n=Ls(),e=$j(),t=WM(),r=qM(),a=VM(),i=qv(),s=Xv(),o=eW();function l(u,d){const{start:f,end:g}=(0,n.normalizeInterval)(d?.in,u),p={},b=(0,o.differenceInYears)(g,f);b&&(p.years=b);const y=(0,e.add)(f,{years:p.years}),x=(0,i.differenceInMonths)(g,y);x&&(p.months=x);const S=(0,e.add)(y,{months:p.months}),C=(0,t.differenceInDays)(g,S);C&&(p.days=C);const O=(0,e.add)(S,{days:p.days}),D=(0,r.differenceInHours)(g,O);D&&(p.hours=D);const M=(0,e.add)(O,{hours:p.hours}),A=(0,a.differenceInMinutes)(g,M);A&&(p.minutes=A);const T=(0,e.add)(M,{minutes:p.minutes}),P=(0,s.differenceInSeconds)(g,T);return P&&(p.seconds=P),p}return _1}var A1={},II;function Loe(){if(II)return A1;II=1,A1.intlFormat=e;var n=_e();function e(r,a,i){let s;return t(a)?s=a:i=a,new Intl.DateTimeFormat(i?.locale,s).format((0,n.toDate)(r))}function t(r){return r!==void 0&&!("locale"in r)}return A1}var T1={},$I;function Noe(){if($I)return T1;$I=1,T1.intlFormatDistance=d;var n=_n(),e=Ht(),t=Do(),r=BM(),a=Qj(),i=YM(),s=jM(),o=qM(),l=VM(),u=Xv();function d(f,g,p){let b=0,y;const[x,S]=(0,n.normalizeDates)(p?.in,f,g);if(p?.unit)y=p?.unit,y==="second"?b=(0,u.differenceInSeconds)(x,S):y==="minute"?b=(0,l.differenceInMinutes)(x,S):y==="hour"?b=(0,o.differenceInHours)(x,S):y==="day"?b=(0,t.differenceInCalendarDays)(x,S):y==="week"?b=(0,i.differenceInCalendarWeeks)(x,S):y==="month"?b=(0,r.differenceInCalendarMonths)(x,S):y==="quarter"?b=(0,a.differenceInCalendarQuarters)(x,S):y==="year"&&(b=(0,s.differenceInCalendarYears)(x,S));else{const O=(0,u.differenceInSeconds)(x,S);Math.abs(O)<e.secondsInMinute?(b=(0,u.differenceInSeconds)(x,S),y="second"):Math.abs(O)<e.secondsInHour?(b=(0,l.differenceInMinutes)(x,S),y="minute"):Math.abs(O)<e.secondsInDay&&Math.abs((0,t.differenceInCalendarDays)(x,S))<1?(b=(0,o.differenceInHours)(x,S),y="hour"):Math.abs(O)<e.secondsInWeek&&(b=(0,t.differenceInCalendarDays)(x,S))&&Math.abs(b)<7?y="day":Math.abs(O)<e.secondsInMonth?(b=(0,i.differenceInCalendarWeeks)(x,S),y="week"):Math.abs(O)<e.secondsInQuarter?(b=(0,r.differenceInCalendarMonths)(x,S),y="month"):Math.abs(O)<e.secondsInYear&&(0,a.differenceInCalendarQuarters)(x,S)<4?(b=(0,a.differenceInCalendarQuarters)(x,S),y="quarter"):(b=(0,s.differenceInCalendarYears)(x,S),y="year")}return new Intl.RelativeTimeFormat(p?.locale,{numeric:"auto",...p}).format(b,y)}return T1}var R1={},FI;function Ioe(){if(FI)return R1;FI=1,R1.isAfter=e;var n=_e();function e(t,r){return+(0,n.toDate)(t)>+(0,n.toDate)(r)}return R1}var P1={},kI;function $oe(){if(kI)return P1;kI=1,P1.isBefore=e;var n=_e();function e(t,r){return+(0,n.toDate)(t)<+(0,n.toDate)(r)}return P1}var L1={},HI;function Foe(){if(HI)return L1;HI=1,L1.isEqual=e;var n=_e();function e(t,r){return+(0,n.toDate)(t)==+(0,n.toDate)(r)}return L1}var N1={},zI;function koe(){if(zI)return N1;zI=1,N1.isExists=n;function n(e,t,r){const a=new Date(e,t,r);return a.getFullYear()===e&&a.getMonth()===t&&a.getDate()===r}return N1}var I1={},BI;function Hoe(){if(BI)return I1;BI=1,I1.isFirstDayOfMonth=e;var n=_e();function e(t,r){return(0,n.toDate)(t,r?.in).getDate()===1}return I1}var $1={},YI;function zoe(){if(YI)return $1;YI=1,$1.isFriday=e;var n=_e();function e(t,r){return(0,n.toDate)(t,r?.in).getDay()===5}return $1}var F1={},jI;function Boe(){if(jI)return F1;jI=1,F1.isFuture=e;var n=_e();function e(t){return+(0,n.toDate)(t)>Date.now()}return F1}var k1={},H1={},oo={},z1={},WI;function bW(){if(WI)return z1;WI=1,z1.transpose=e;var n=mt();function e(r,a){const i=t(a)?new a(0):(0,n.constructFrom)(a,0);return i.setFullYear(r.getFullYear(),r.getMonth(),r.getDate()),i.setHours(r.getHours(),r.getMinutes(),r.getSeconds(),r.getMilliseconds()),i}function t(r){return typeof r=="function"&&r.prototype?.constructor===r}return z1}var qI;function yW(){if(qI)return oo;qI=1,oo.ValueSetter=oo.Setter=oo.DateTimezoneSetter=void 0;var n=mt(),e=bW();const t=10;let r=class{subPriority=0;validate(o,l){return!0}};oo.Setter=r;class a extends r{constructor(o,l,u,d,f){super(),this.value=o,this.validateValue=l,this.setValue=u,this.priority=d,f&&(this.subPriority=f)}validate(o,l){return this.validateValue(o,this.value,l)}set(o,l,u){return this.setValue(o,l,this.value,u)}}oo.ValueSetter=a;class i extends r{priority=t;subPriority=-1;constructor(o,l){super(),this.context=o||(u=>(0,n.constructFrom)(l,u))}set(o,l){return l.timestampIsSet?o:(0,n.constructFrom)(o,(0,e.transpose)(o,this.context))}}return oo.DateTimezoneSetter=i,oo}var Mp={},Dp={},_p={},XI;function hn(){if(XI)return _p;XI=1,_p.Parser=void 0;var n=yW();let e=class{run(r,a,i,s){const o=this.parse(r,a,i,s);return o?{setter:new n.ValueSetter(o.value,this.validate,this.set,this.priority,this.subPriority),rest:o.rest}:null}validate(r,a,i){return!0}};return _p.Parser=e,_p}var VI;function Yoe(){if(VI)return Dp;VI=1,Dp.EraParser=void 0;var n=hn();let e=class extends n.Parser{priority=140;parse(r,a,i){switch(a){case"G":case"GG":case"GGG":return i.era(r,{width:"abbreviated"})||i.era(r,{width:"narrow"});case"GGGGG":return i.era(r,{width:"narrow"});case"GGGG":default:return i.era(r,{width:"wide"})||i.era(r,{width:"abbreviated"})||i.era(r,{width:"narrow"})}}set(r,a,i){return a.era=i,r.setFullYear(i,0,1),r.setHours(0,0,0,0),r}incompatibleTokens=["R","u","t","T"]};return Dp.EraParser=e,Dp}var Ap={},mi={},Hc={},UI;function da(){return UI||(UI=1,Hc.timezonePatterns=Hc.numericPatterns=void 0,Hc.numericPatterns={month:/^(1[0-2]|0?\d)/,date:/^(3[0-1]|[0-2]?\d)/,dayOfYear:/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,week:/^(5[0-3]|[0-4]?\d)/,hour23h:/^(2[0-3]|[0-1]?\d)/,hour24h:/^(2[0-4]|[0-1]?\d)/,hour11h:/^(1[0-1]|0?\d)/,hour12h:/^(1[0-2]|0?\d)/,minute:/^[0-5]?\d/,second:/^[0-5]?\d/,singleDigit:/^\d/,twoDigits:/^\d{1,2}/,threeDigits:/^\d{1,3}/,fourDigits:/^\d{1,4}/,anyDigitsSigned:/^-?\d+/,singleDigitSigned:/^-?\d/,twoDigitsSigned:/^-?\d{1,2}/,threeDigitsSigned:/^-?\d{1,3}/,fourDigitsSigned:/^-?\d{1,4}/},Hc.timezonePatterns={basicOptionalMinutes:/^([+-])(\d{2})(\d{2})?|Z/,basic:/^([+-])(\d{2})(\d{2})|Z/,basicOptionalSeconds:/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,extended:/^([+-])(\d{2}):(\d{2})|Z/,extendedOptionalSeconds:/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/}),Hc}var GI;function wn(){if(GI)return mi;GI=1,mi.dayPeriodEnumToHours=l,mi.isLeapYearIndex=d,mi.mapValue=t,mi.normalizeTwoDigitYear=u,mi.parseAnyDigitsSigned=i,mi.parseNDigits=s,mi.parseNDigitsSigned=o,mi.parseNumericPattern=r,mi.parseTimezonePattern=a;var n=Ht(),e=da();function t(f,g){return f&&{value:g(f.value),rest:f.rest}}function r(f,g){const p=g.match(f);return p?{value:parseInt(p[0],10),rest:g.slice(p[0].length)}:null}function a(f,g){const p=g.match(f);if(!p)return null;if(p[0]==="Z")return{value:0,rest:g.slice(1)};const b=p[1]==="+"?1:-1,y=p[2]?parseInt(p[2],10):0,x=p[3]?parseInt(p[3],10):0,S=p[5]?parseInt(p[5],10):0;return{value:b*(y*n.millisecondsInHour+x*n.millisecondsInMinute+S*n.millisecondsInSecond),rest:g.slice(p[0].length)}}function i(f){return r(e.numericPatterns.anyDigitsSigned,f)}function s(f,g){switch(f){case 1:return r(e.numericPatterns.singleDigit,g);case 2:return r(e.numericPatterns.twoDigits,g);case 3:return r(e.numericPatterns.threeDigits,g);case 4:return r(e.numericPatterns.fourDigits,g);default:return r(new RegExp("^\\d{1,"+f+"}"),g)}}function o(f,g){switch(f){case 1:return r(e.numericPatterns.singleDigitSigned,g);case 2:return r(e.numericPatterns.twoDigitsSigned,g);case 3:return r(e.numericPatterns.threeDigitsSigned,g);case 4:return r(e.numericPatterns.fourDigitsSigned,g);default:return r(new RegExp("^-?\\d{1,"+f+"}"),g)}}function l(f){switch(f){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;case"am":case"midnight":case"night":default:return 0}}function u(f,g){const p=g>0,b=p?g:1-g;let y;if(b<=50)y=f||100;else{const x=b+50,S=Math.trunc(x/100)*100,C=f>=x%100;y=f+S-(C?100:0)}return p?y:1-y}function d(f){return f%400===0||f%4===0&&f%100!==0}return mi}var ZI;function joe(){if(ZI)return Ap;ZI=1,Ap.YearParser=void 0;var n=hn(),e=wn();let t=class extends n.Parser{priority=130;incompatibleTokens=["Y","R","u","w","I","i","e","c","t","T"];parse(a,i,s){const o=l=>({year:l,isTwoDigitYear:i==="yy"});switch(i){case"y":return(0,e.mapValue)((0,e.parseNDigits)(4,a),o);case"yo":return(0,e.mapValue)(s.ordinalNumber(a,{unit:"year"}),o);default:return(0,e.mapValue)((0,e.parseNDigits)(i.length,a),o)}}validate(a,i){return i.isTwoDigitYear||i.year>0}set(a,i,s){const o=a.getFullYear();if(s.isTwoDigitYear){const u=(0,e.normalizeTwoDigitYear)(s.year,o);return a.setFullYear(u,0,1),a.setHours(0,0,0,0),a}const l=!("era"in i)||i.era===1?s.year:1-s.year;return a.setFullYear(l,0,1),a.setHours(0,0,0,0),a}};return Ap.YearParser=t,Ap}var Tp={},QI;function Woe(){if(QI)return Tp;QI=1,Tp.LocalWeekYearParser=void 0;var n=Uv(),e=Qi(),t=hn(),r=wn();let a=class extends t.Parser{priority=130;parse(s,o,l){const u=d=>({year:d,isTwoDigitYear:o==="YY"});switch(o){case"Y":return(0,r.mapValue)((0,r.parseNDigits)(4,s),u);case"Yo":return(0,r.mapValue)(l.ordinalNumber(s,{unit:"year"}),u);default:return(0,r.mapValue)((0,r.parseNDigits)(o.length,s),u)}}validate(s,o){return o.isTwoDigitYear||o.year>0}set(s,o,l,u){const d=(0,n.getWeekYear)(s,u);if(l.isTwoDigitYear){const g=(0,r.normalizeTwoDigitYear)(l.year,d);return s.setFullYear(g,0,u.firstWeekContainsDate),s.setHours(0,0,0,0),(0,e.startOfWeek)(s,u)}const f=!("era"in o)||o.era===1?l.year:1-l.year;return s.setFullYear(f,0,u.firstWeekContainsDate),s.setHours(0,0,0,0),(0,e.startOfWeek)(s,u)}incompatibleTokens=["y","R","u","Q","q","M","L","I","d","D","i","t","T"]};return Tp.LocalWeekYearParser=a,Tp}var Rp={},KI;function qoe(){if(KI)return Rp;KI=1,Rp.ISOWeekYearParser=void 0;var n=Ps(),e=mt(),t=hn(),r=wn();let a=class extends t.Parser{priority=130;parse(s,o){return o==="R"?(0,r.parseNDigitsSigned)(4,s):(0,r.parseNDigitsSigned)(o.length,s)}set(s,o,l){const u=(0,e.constructFrom)(s,0);return u.setFullYear(l,0,4),u.setHours(0,0,0,0),(0,n.startOfISOWeek)(u)}incompatibleTokens=["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"]};return Rp.ISOWeekYearParser=a,Rp}var Pp={},JI;function Xoe(){if(JI)return Pp;JI=1,Pp.ExtendedYearParser=void 0;var n=hn(),e=wn();let t=class extends n.Parser{priority=130;parse(a,i){return i==="u"?(0,e.parseNDigitsSigned)(4,a):(0,e.parseNDigitsSigned)(i.length,a)}set(a,i,s){return a.setFullYear(s,0,1),a.setHours(0,0,0,0),a}incompatibleTokens=["G","y","Y","R","w","I","i","e","c","t","T"]};return Pp.ExtendedYearParser=t,Pp}var Lp={},e$;function Voe(){if(e$)return Lp;e$=1,Lp.QuarterParser=void 0;var n=hn(),e=wn();let t=class extends n.Parser{priority=120;parse(a,i,s){switch(i){case"Q":case"QQ":return(0,e.parseNDigits)(i.length,a);case"Qo":return s.ordinalNumber(a,{unit:"quarter"});case"QQQ":return s.quarter(a,{width:"abbreviated",context:"formatting"})||s.quarter(a,{width:"narrow",context:"formatting"});case"QQQQQ":return s.quarter(a,{width:"narrow",context:"formatting"});case"QQQQ":default:return s.quarter(a,{width:"wide",context:"formatting"})||s.quarter(a,{width:"abbreviated",context:"formatting"})||s.quarter(a,{width:"narrow",context:"formatting"})}}validate(a,i){return i>=1&&i<=4}set(a,i,s){return a.setMonth((s-1)*3,1),a.setHours(0,0,0,0),a}incompatibleTokens=["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"]};return Lp.QuarterParser=t,Lp}var Np={},t$;function Uoe(){if(t$)return Np;t$=1,Np.StandAloneQuarterParser=void 0;var n=hn(),e=wn();let t=class extends n.Parser{priority=120;parse(a,i,s){switch(i){case"q":case"qq":return(0,e.parseNDigits)(i.length,a);case"qo":return s.ordinalNumber(a,{unit:"quarter"});case"qqq":return s.quarter(a,{width:"abbreviated",context:"standalone"})||s.quarter(a,{width:"narrow",context:"standalone"});case"qqqqq":return s.quarter(a,{width:"narrow",context:"standalone"});case"qqqq":default:return s.quarter(a,{width:"wide",context:"standalone"})||s.quarter(a,{width:"abbreviated",context:"standalone"})||s.quarter(a,{width:"narrow",context:"standalone"})}}validate(a,i){return i>=1&&i<=4}set(a,i,s){return a.setMonth((s-1)*3,1),a.setHours(0,0,0,0),a}incompatibleTokens=["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"]};return Np.StandAloneQuarterParser=t,Np}var Ip={},n$;function Goe(){if(n$)return Ip;n$=1,Ip.MonthParser=void 0;var n=da(),e=hn(),t=wn();let r=class extends e.Parser{incompatibleTokens=["Y","R","q","Q","L","w","I","D","i","e","c","t","T"];priority=110;parse(i,s,o){const l=u=>u-1;switch(s){case"M":return(0,t.mapValue)((0,t.parseNumericPattern)(n.numericPatterns.month,i),l);case"MM":return(0,t.mapValue)((0,t.parseNDigits)(2,i),l);case"Mo":return(0,t.mapValue)(o.ordinalNumber(i,{unit:"month"}),l);case"MMM":return o.month(i,{width:"abbreviated",context:"formatting"})||o.month(i,{width:"narrow",context:"formatting"});case"MMMMM":return o.month(i,{width:"narrow",context:"formatting"});case"MMMM":default:return o.month(i,{width:"wide",context:"formatting"})||o.month(i,{width:"abbreviated",context:"formatting"})||o.month(i,{width:"narrow",context:"formatting"})}}validate(i,s){return s>=0&&s<=11}set(i,s,o){return i.setMonth(o,1),i.setHours(0,0,0,0),i}};return Ip.MonthParser=r,Ip}var $p={},r$;function Zoe(){if(r$)return $p;r$=1,$p.StandAloneMonthParser=void 0;var n=da(),e=hn(),t=wn();let r=class extends e.Parser{priority=110;parse(i,s,o){const l=u=>u-1;switch(s){case"L":return(0,t.mapValue)((0,t.parseNumericPattern)(n.numericPatterns.month,i),l);case"LL":return(0,t.mapValue)((0,t.parseNDigits)(2,i),l);case"Lo":return(0,t.mapValue)(o.ordinalNumber(i,{unit:"month"}),l);case"LLL":return o.month(i,{width:"abbreviated",context:"standalone"})||o.month(i,{width:"narrow",context:"standalone"});case"LLLLL":return o.month(i,{width:"narrow",context:"standalone"});case"LLLL":default:return o.month(i,{width:"wide",context:"standalone"})||o.month(i,{width:"abbreviated",context:"standalone"})||o.month(i,{width:"narrow",context:"standalone"})}}validate(i,s){return s>=0&&s<=11}set(i,s,o){return i.setMonth(o,1),i.setHours(0,0,0,0),i}incompatibleTokens=["Y","R","q","Q","M","w","I","D","i","e","c","t","T"]};return $p.StandAloneMonthParser=r,$p}var Fp={},B1={},a$;function xW(){if(a$)return B1;a$=1,B1.setWeek=t;var n=tD(),e=_e();function t(r,a,i){const s=(0,e.toDate)(r,i?.in),o=(0,n.getWeek)(s,i)-a;return s.setDate(s.getDate()-o*7),(0,e.toDate)(s,i?.in)}return B1}var i$;function Qoe(){if(i$)return Fp;i$=1,Fp.LocalWeekParser=void 0;var n=xW(),e=Qi(),t=da(),r=hn(),a=wn();let i=class extends r.Parser{priority=100;parse(o,l,u){switch(l){case"w":return(0,a.parseNumericPattern)(t.numericPatterns.week,o);case"wo":return u.ordinalNumber(o,{unit:"week"});default:return(0,a.parseNDigits)(l.length,o)}}validate(o,l){return l>=1&&l<=53}set(o,l,u,d){return(0,e.startOfWeek)((0,n.setWeek)(o,u,d),d)}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","i","t","T"]};return Fp.LocalWeekParser=i,Fp}var kp={},Y1={},s$;function wW(){if(s$)return Y1;s$=1,Y1.setISOWeek=t;var n=JM(),e=_e();function t(r,a,i){const s=(0,e.toDate)(r,i?.in),o=(0,n.getISOWeek)(s,i)-a;return s.setDate(s.getDate()-o*7),s}return Y1}var o$;function Koe(){if(o$)return kp;o$=1,kp.ISOWeekParser=void 0;var n=wW(),e=Ps(),t=da(),r=hn(),a=wn();let i=class extends r.Parser{priority=100;parse(o,l,u){switch(l){case"I":return(0,a.parseNumericPattern)(t.numericPatterns.week,o);case"Io":return u.ordinalNumber(o,{unit:"week"});default:return(0,a.parseNDigits)(l.length,o)}}validate(o,l){return l>=1&&l<=53}set(o,l,u){return(0,e.startOfISOWeek)((0,n.setISOWeek)(o,u))}incompatibleTokens=["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]};return kp.ISOWeekParser=i,kp}var Hp={},l$;function Joe(){if(l$)return Hp;l$=1,Hp.DateParser=void 0;var n=da(),e=hn(),t=wn();const r=[31,28,31,30,31,30,31,31,30,31,30,31],a=[31,29,31,30,31,30,31,31,30,31,30,31];let i=class extends e.Parser{priority=90;subPriority=1;parse(o,l,u){switch(l){case"d":return(0,t.parseNumericPattern)(n.numericPatterns.date,o);case"do":return u.ordinalNumber(o,{unit:"date"});default:return(0,t.parseNDigits)(l.length,o)}}validate(o,l){const u=o.getFullYear(),d=(0,t.isLeapYearIndex)(u),f=o.getMonth();return d?l>=1&&l<=a[f]:l>=1&&l<=r[f]}set(o,l,u){return o.setDate(u),o.setHours(0,0,0,0),o}incompatibleTokens=["Y","R","q","Q","w","I","D","i","e","c","t","T"]};return Hp.DateParser=i,Hp}var zp={},c$;function ele(){if(c$)return zp;c$=1,zp.DayOfYearParser=void 0;var n=da(),e=hn(),t=wn();let r=class extends e.Parser{priority=90;subpriority=1;parse(i,s,o){switch(s){case"D":case"DD":return(0,t.parseNumericPattern)(n.numericPatterns.dayOfYear,i);case"Do":return o.ordinalNumber(i,{unit:"date"});default:return(0,t.parseNDigits)(s.length,i)}}validate(i,s){const o=i.getFullYear();return(0,t.isLeapYearIndex)(o)?s>=1&&s<=366:s>=1&&s<=365}set(i,s,o){return i.setMonth(0,o),i.setHours(0,0,0,0),i}incompatibleTokens=["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"]};return zp.DayOfYearParser=r,zp}var Bp={},j1={},u$;function Zv(){if(u$)return j1;u$=1,j1.setDay=r;var n=ua(),e=Rs(),t=_e();function r(a,i,s){const o=(0,n.getDefaultOptions)(),l=s?.weekStartsOn??s?.locale?.options?.weekStartsOn??o.weekStartsOn??o.locale?.options?.weekStartsOn??0,u=(0,t.toDate)(a,s?.in),d=u.getDay(),g=(i%7+7)%7,p=7-l,b=i<0||i>6?i-(d+p)%7:(g+p)%7-(d+p)%7;return(0,e.addDays)(u,b,s)}return j1}var d$;function tle(){if(d$)return Bp;d$=1,Bp.DayParser=void 0;var n=Zv(),e=hn();let t=class extends e.Parser{priority=90;parse(a,i,s){switch(i){case"E":case"EE":case"EEE":return s.day(a,{width:"abbreviated",context:"formatting"})||s.day(a,{width:"short",context:"formatting"})||s.day(a,{width:"narrow",context:"formatting"});case"EEEEE":return s.day(a,{width:"narrow",context:"formatting"});case"EEEEEE":return s.day(a,{width:"short",context:"formatting"})||s.day(a,{width:"narrow",context:"formatting"});case"EEEE":default:return s.day(a,{width:"wide",context:"formatting"})||s.day(a,{width:"abbreviated",context:"formatting"})||s.day(a,{width:"short",context:"formatting"})||s.day(a,{width:"narrow",context:"formatting"})}}validate(a,i){return i>=0&&i<=6}set(a,i,s,o){return a=(0,n.setDay)(a,s,o),a.setHours(0,0,0,0),a}incompatibleTokens=["D","i","e","c","t","T"]};return Bp.DayParser=t,Bp}var Yp={},f$;function nle(){if(f$)return Yp;f$=1,Yp.LocalDayParser=void 0;var n=Zv(),e=hn(),t=wn();let r=class extends e.Parser{priority=90;parse(i,s,o,l){const u=d=>{const f=Math.floor((d-1)/7)*7;return(d+l.weekStartsOn+6)%7+f};switch(s){case"e":case"ee":return(0,t.mapValue)((0,t.parseNDigits)(s.length,i),u);case"eo":return(0,t.mapValue)(o.ordinalNumber(i,{unit:"day"}),u);case"eee":return o.day(i,{width:"abbreviated",context:"formatting"})||o.day(i,{width:"short",context:"formatting"})||o.day(i,{width:"narrow",context:"formatting"});case"eeeee":return o.day(i,{width:"narrow",context:"formatting"});case"eeeeee":return o.day(i,{width:"short",context:"formatting"})||o.day(i,{width:"narrow",context:"formatting"});case"eeee":default:return o.day(i,{width:"wide",context:"formatting"})||o.day(i,{width:"abbreviated",context:"formatting"})||o.day(i,{width:"short",context:"formatting"})||o.day(i,{width:"narrow",context:"formatting"})}}validate(i,s){return s>=0&&s<=6}set(i,s,o,l){return i=(0,n.setDay)(i,o,l),i.setHours(0,0,0,0),i}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"]};return Yp.LocalDayParser=r,Yp}var jp={},h$;function rle(){if(h$)return jp;h$=1,jp.StandAloneLocalDayParser=void 0;var n=Zv(),e=hn(),t=wn();let r=class extends e.Parser{priority=90;parse(i,s,o,l){const u=d=>{const f=Math.floor((d-1)/7)*7;return(d+l.weekStartsOn+6)%7+f};switch(s){case"c":case"cc":return(0,t.mapValue)((0,t.parseNDigits)(s.length,i),u);case"co":return(0,t.mapValue)(o.ordinalNumber(i,{unit:"day"}),u);case"ccc":return o.day(i,{width:"abbreviated",context:"standalone"})||o.day(i,{width:"short",context:"standalone"})||o.day(i,{width:"narrow",context:"standalone"});case"ccccc":return o.day(i,{width:"narrow",context:"standalone"});case"cccccc":return o.day(i,{width:"short",context:"standalone"})||o.day(i,{width:"narrow",context:"standalone"});case"cccc":default:return o.day(i,{width:"wide",context:"standalone"})||o.day(i,{width:"abbreviated",context:"standalone"})||o.day(i,{width:"short",context:"standalone"})||o.day(i,{width:"narrow",context:"standalone"})}}validate(i,s){return s>=0&&s<=6}set(i,s,o,l){return i=(0,n.setDay)(i,o,l),i.setHours(0,0,0,0),i}incompatibleTokens=["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"]};return jp.StandAloneLocalDayParser=r,jp}var Wp={},W1={},g$;function SW(){if(g$)return W1;g$=1,W1.setISODay=r;var n=Rs(),e=mW(),t=_e();function r(a,i,s){const o=(0,t.toDate)(a,s?.in),l=(0,e.getISODay)(o,s),u=i-l;return(0,n.addDays)(o,u,s)}return W1}var p$;function ale(){if(p$)return Wp;p$=1,Wp.ISODayParser=void 0;var n=SW(),e=hn(),t=wn();let r=class extends e.Parser{priority=90;parse(i,s,o){const l=u=>u===0?7:u;switch(s){case"i":case"ii":return(0,t.parseNDigits)(s.length,i);case"io":return o.ordinalNumber(i,{unit:"day"});case"iii":return(0,t.mapValue)(o.day(i,{width:"abbreviated",context:"formatting"})||o.day(i,{width:"short",context:"formatting"})||o.day(i,{width:"narrow",context:"formatting"}),l);case"iiiii":return(0,t.mapValue)(o.day(i,{width:"narrow",context:"formatting"}),l);case"iiiiii":return(0,t.mapValue)(o.day(i,{width:"short",context:"formatting"})||o.day(i,{width:"narrow",context:"formatting"}),l);case"iiii":default:return(0,t.mapValue)(o.day(i,{width:"wide",context:"formatting"})||o.day(i,{width:"abbreviated",context:"formatting"})||o.day(i,{width:"short",context:"formatting"})||o.day(i,{width:"narrow",context:"formatting"}),l)}}validate(i,s){return s>=1&&s<=7}set(i,s,o){return i=(0,n.setISODay)(i,o),i.setHours(0,0,0,0),i}incompatibleTokens=["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"]};return Wp.ISODayParser=r,Wp}var qp={},m$;function ile(){if(m$)return qp;m$=1,qp.AMPMParser=void 0;var n=hn(),e=wn();let t=class extends n.Parser{priority=80;parse(a,i,s){switch(i){case"a":case"aa":case"aaa":return s.dayPeriod(a,{width:"abbreviated",context:"formatting"})||s.dayPeriod(a,{width:"narrow",context:"formatting"});case"aaaaa":return s.dayPeriod(a,{width:"narrow",context:"formatting"});case"aaaa":default:return s.dayPeriod(a,{width:"wide",context:"formatting"})||s.dayPeriod(a,{width:"abbreviated",context:"formatting"})||s.dayPeriod(a,{width:"narrow",context:"formatting"})}}set(a,i,s){return a.setHours((0,e.dayPeriodEnumToHours)(s),0,0,0),a}incompatibleTokens=["b","B","H","k","t","T"]};return qp.AMPMParser=t,qp}var Xp={},v$;function sle(){if(v$)return Xp;v$=1,Xp.AMPMMidnightParser=void 0;var n=hn(),e=wn();let t=class extends n.Parser{priority=80;parse(a,i,s){switch(i){case"b":case"bb":case"bbb":return s.dayPeriod(a,{width:"abbreviated",context:"formatting"})||s.dayPeriod(a,{width:"narrow",context:"formatting"});case"bbbbb":return s.dayPeriod(a,{width:"narrow",context:"formatting"});case"bbbb":default:return s.dayPeriod(a,{width:"wide",context:"formatting"})||s.dayPeriod(a,{width:"abbreviated",context:"formatting"})||s.dayPeriod(a,{width:"narrow",context:"formatting"})}}set(a,i,s){return a.setHours((0,e.dayPeriodEnumToHours)(s),0,0,0),a}incompatibleTokens=["a","B","H","k","t","T"]};return Xp.AMPMMidnightParser=t,Xp}var Vp={},b$;function ole(){if(b$)return Vp;b$=1,Vp.DayPeriodParser=void 0;var n=hn(),e=wn();let t=class extends n.Parser{priority=80;parse(a,i,s){switch(i){case"B":case"BB":case"BBB":return s.dayPeriod(a,{width:"abbreviated",context:"formatting"})||s.dayPeriod(a,{width:"narrow",context:"formatting"});case"BBBBB":return s.dayPeriod(a,{width:"narrow",context:"formatting"});case"BBBB":default:return s.dayPeriod(a,{width:"wide",context:"formatting"})||s.dayPeriod(a,{width:"abbreviated",context:"formatting"})||s.dayPeriod(a,{width:"narrow",context:"formatting"})}}set(a,i,s){return a.setHours((0,e.dayPeriodEnumToHours)(s),0,0,0),a}incompatibleTokens=["a","b","t","T"]};return Vp.DayPeriodParser=t,Vp}var Up={},y$;function lle(){if(y$)return Up;y$=1,Up.Hour1to12Parser=void 0;var n=da(),e=hn(),t=wn();let r=class extends e.Parser{priority=70;parse(i,s,o){switch(s){case"h":return(0,t.parseNumericPattern)(n.numericPatterns.hour12h,i);case"ho":return o.ordinalNumber(i,{unit:"hour"});default:return(0,t.parseNDigits)(s.length,i)}}validate(i,s){return s>=1&&s<=12}set(i,s,o){const l=i.getHours()>=12;return l&&o<12?i.setHours(o+12,0,0,0):!l&&o===12?i.setHours(0,0,0,0):i.setHours(o,0,0,0),i}incompatibleTokens=["H","K","k","t","T"]};return Up.Hour1to12Parser=r,Up}var Gp={},x$;function cle(){if(x$)return Gp;x$=1,Gp.Hour0to23Parser=void 0;var n=da(),e=hn(),t=wn();let r=class extends e.Parser{priority=70;parse(i,s,o){switch(s){case"H":return(0,t.parseNumericPattern)(n.numericPatterns.hour23h,i);case"Ho":return o.ordinalNumber(i,{unit:"hour"});default:return(0,t.parseNDigits)(s.length,i)}}validate(i,s){return s>=0&&s<=23}set(i,s,o){return i.setHours(o,0,0,0),i}incompatibleTokens=["a","b","h","K","k","t","T"]};return Gp.Hour0to23Parser=r,Gp}var Zp={},w$;function ule(){if(w$)return Zp;w$=1,Zp.Hour0To11Parser=void 0;var n=da(),e=hn(),t=wn();let r=class extends e.Parser{priority=70;parse(i,s,o){switch(s){case"K":return(0,t.parseNumericPattern)(n.numericPatterns.hour11h,i);case"Ko":return o.ordinalNumber(i,{unit:"hour"});default:return(0,t.parseNDigits)(s.length,i)}}validate(i,s){return s>=0&&s<=11}set(i,s,o){return i.getHours()>=12&&o<12?i.setHours(o+12,0,0,0):i.setHours(o,0,0,0),i}incompatibleTokens=["h","H","k","t","T"]};return Zp.Hour0To11Parser=r,Zp}var Qp={},S$;function dle(){if(S$)return Qp;S$=1,Qp.Hour1To24Parser=void 0;var n=da(),e=hn(),t=wn();let r=class extends e.Parser{priority=70;parse(i,s,o){switch(s){case"k":return(0,t.parseNumericPattern)(n.numericPatterns.hour24h,i);case"ko":return o.ordinalNumber(i,{unit:"hour"});default:return(0,t.parseNDigits)(s.length,i)}}validate(i,s){return s>=1&&s<=24}set(i,s,o){const l=o<=24?o%24:o;return i.setHours(l,0,0,0),i}incompatibleTokens=["a","b","h","H","K","t","T"]};return Qp.Hour1To24Parser=r,Qp}var Kp={},C$;function fle(){if(C$)return Kp;C$=1,Kp.MinuteParser=void 0;var n=da(),e=hn(),t=wn();let r=class extends e.Parser{priority=60;parse(i,s,o){switch(s){case"m":return(0,t.parseNumericPattern)(n.numericPatterns.minute,i);case"mo":return o.ordinalNumber(i,{unit:"minute"});default:return(0,t.parseNDigits)(s.length,i)}}validate(i,s){return s>=0&&s<=59}set(i,s,o){return i.setMinutes(o,0,0),i}incompatibleTokens=["t","T"]};return Kp.MinuteParser=r,Kp}var Jp={},O$;function hle(){if(O$)return Jp;O$=1,Jp.SecondParser=void 0;var n=da(),e=hn(),t=wn();let r=class extends e.Parser{priority=50;parse(i,s,o){switch(s){case"s":return(0,t.parseNumericPattern)(n.numericPatterns.second,i);case"so":return o.ordinalNumber(i,{unit:"second"});default:return(0,t.parseNDigits)(s.length,i)}}validate(i,s){return s>=0&&s<=59}set(i,s,o){return i.setSeconds(o,0),i}incompatibleTokens=["t","T"]};return Jp.SecondParser=r,Jp}var em={},E$;function gle(){if(E$)return em;E$=1,em.FractionOfSecondParser=void 0;var n=hn(),e=wn();let t=class extends n.Parser{priority=30;parse(a,i){const s=o=>Math.trunc(o*Math.pow(10,-i.length+3));return(0,e.mapValue)((0,e.parseNDigits)(i.length,a),s)}set(a,i,s){return a.setMilliseconds(s),a}incompatibleTokens=["t","T"]};return em.FractionOfSecondParser=t,em}var tm={},M$;function ple(){if(M$)return tm;M$=1,tm.ISOTimezoneWithZParser=void 0;var n=mt(),e=Mo(),t=da(),r=hn(),a=wn();let i=class extends r.Parser{priority=10;parse(o,l){switch(l){case"X":return(0,a.parseTimezonePattern)(t.timezonePatterns.basicOptionalMinutes,o);case"XX":return(0,a.parseTimezonePattern)(t.timezonePatterns.basic,o);case"XXXX":return(0,a.parseTimezonePattern)(t.timezonePatterns.basicOptionalSeconds,o);case"XXXXX":return(0,a.parseTimezonePattern)(t.timezonePatterns.extendedOptionalSeconds,o);case"XXX":default:return(0,a.parseTimezonePattern)(t.timezonePatterns.extended,o)}}set(o,l,u){return l.timestampIsSet?o:(0,n.constructFrom)(o,o.getTime()-(0,e.getTimezoneOffsetInMilliseconds)(o)-u)}incompatibleTokens=["t","T","x"]};return tm.ISOTimezoneWithZParser=i,tm}var nm={},D$;function mle(){if(D$)return nm;D$=1,nm.ISOTimezoneParser=void 0;var n=mt(),e=Mo(),t=da(),r=hn(),a=wn();let i=class extends r.Parser{priority=10;parse(o,l){switch(l){case"x":return(0,a.parseTimezonePattern)(t.timezonePatterns.basicOptionalMinutes,o);case"xx":return(0,a.parseTimezonePattern)(t.timezonePatterns.basic,o);case"xxxx":return(0,a.parseTimezonePattern)(t.timezonePatterns.basicOptionalSeconds,o);case"xxxxx":return(0,a.parseTimezonePattern)(t.timezonePatterns.extendedOptionalSeconds,o);case"xxx":default:return(0,a.parseTimezonePattern)(t.timezonePatterns.extended,o)}}set(o,l,u){return l.timestampIsSet?o:(0,n.constructFrom)(o,o.getTime()-(0,e.getTimezoneOffsetInMilliseconds)(o)-u)}incompatibleTokens=["t","T","X"]};return nm.ISOTimezoneParser=i,nm}var rm={},_$;function vle(){if(_$)return rm;_$=1,rm.TimestampSecondsParser=void 0;var n=mt(),e=hn(),t=wn();let r=class extends e.Parser{priority=40;parse(i){return(0,t.parseAnyDigitsSigned)(i)}set(i,s,o){return[(0,n.constructFrom)(i,o*1e3),{timestampIsSet:!0}]}incompatibleTokens="*"};return rm.TimestampSecondsParser=r,rm}var am={},A$;function ble(){if(A$)return am;A$=1,am.TimestampMillisecondsParser=void 0;var n=mt(),e=hn(),t=wn();let r=class extends e.Parser{priority=20;parse(i){return(0,t.parseAnyDigitsSigned)(i)}set(i,s,o){return[(0,n.constructFrom)(i,o),{timestampIsSet:!0}]}incompatibleTokens="*"};return am.TimestampMillisecondsParser=r,am}var T$;function yle(){if(T$)return Mp;T$=1,Mp.parsers=void 0;var n=Yoe(),e=joe(),t=Woe(),r=qoe(),a=Xoe(),i=Voe(),s=Uoe(),o=Goe(),l=Zoe(),u=Qoe(),d=Koe(),f=Joe(),g=ele(),p=tle(),b=nle(),y=rle(),x=ale(),S=ile(),C=sle(),O=ole(),D=lle(),M=cle(),A=ule(),T=dle(),P=fle(),R=hle(),N=gle(),I=ple(),$=mle(),Y=vle(),k=ble();return Mp.parsers={G:new n.EraParser,y:new e.YearParser,Y:new t.LocalWeekYearParser,R:new r.ISOWeekYearParser,u:new a.ExtendedYearParser,Q:new i.QuarterParser,q:new s.StandAloneQuarterParser,M:new o.MonthParser,L:new l.StandAloneMonthParser,w:new u.LocalWeekParser,I:new d.ISOWeekParser,d:new f.DateParser,D:new g.DayOfYearParser,E:new p.DayParser,e:new b.LocalDayParser,c:new y.StandAloneLocalDayParser,i:new x.ISODayParser,a:new S.AMPMParser,b:new C.AMPMMidnightParser,B:new O.DayPeriodParser,h:new D.Hour1to12Parser,H:new M.Hour0to23Parser,K:new A.Hour0To11Parser,k:new T.Hour1To24Parser,m:new P.MinuteParser,s:new R.SecondParser,S:new N.FractionOfSecondParser,X:new I.ISOTimezoneWithZParser,x:new $.ISOTimezoneParser,t:new Y.TimestampSecondsParser,T:new k.TimestampMillisecondsParser},Mp}var R$;function CW(){return R$||(R$=1,(function(n){Object.defineProperty(n,"longFormatters",{enumerable:!0,get:function(){return t.longFormatters}}),n.parse=y,Object.defineProperty(n,"parsers",{enumerable:!0,get:function(){return l.parsers}});var e=Au(),t=oW(),r=lW(),a=mt(),i=pW(),s=_e(),o=yW(),l=yle();const u=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,d=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,f=/^'([^]*?)'?$/,g=/''/g,p=/\S/,b=/[a-zA-Z]/;function y(S,C,O,D){const M=()=>(0,a.constructFrom)(D?.in||O,NaN),A=(0,i.getDefaultOptions)(),T=D?.locale??A.locale??e.defaultLocale,P=D?.firstWeekContainsDate??D?.locale?.options?.firstWeekContainsDate??A.firstWeekContainsDate??A.locale?.options?.firstWeekContainsDate??1,R=D?.weekStartsOn??D?.locale?.options?.weekStartsOn??A.weekStartsOn??A.locale?.options?.weekStartsOn??0;if(!C)return S?M():(0,s.toDate)(O,D?.in);const N={firstWeekContainsDate:P,weekStartsOn:R,locale:T},I=[new o.DateTimezoneSetter(D?.in,O)],$=C.match(d).map(B=>{const X=B[0];if(X in t.longFormatters){const Q=t.longFormatters[X];return Q(B,T.formatLong)}return B}).join("").match(u),Y=[];for(let B of $){!D?.useAdditionalWeekYearTokens&&(0,r.isProtectedWeekYearToken)(B)&&(0,r.warnOrThrowProtectedError)(B,C,S),!D?.useAdditionalDayOfYearTokens&&(0,r.isProtectedDayOfYearToken)(B)&&(0,r.warnOrThrowProtectedError)(B,C,S);const X=B[0],Q=l.parsers[X];if(Q){const{incompatibleTokens:z}=Q;if(Array.isArray(z)){const j=Y.find(q=>z.includes(q.token)||q.token===X);if(j)throw new RangeError(`The format string mustn't contain \`${j.fullToken}\` and \`${B}\` at the same time`)}else if(Q.incompatibleTokens==="*"&&Y.length>0)throw new RangeError(`The format string mustn't contain \`${B}\` and any other token at the same time`);Y.push({token:X,fullToken:B});const V=Q.run(S,B,T.match,N);if(!V)return M();I.push(V.setter),S=V.rest}else{if(X.match(b))throw new RangeError("Format string contains an unescaped latin alphabet character `"+X+"`");if(B==="''"?B="'":X==="'"&&(B=x(B)),S.indexOf(B)===0)S=S.slice(B.length);else return M()}}if(S.length>0&&p.test(S))return M();const k=I.map(B=>B.priority).sort((B,X)=>X-B).filter((B,X,Q)=>Q.indexOf(B)===X).map(B=>I.filter(X=>X.priority===B).sort((X,Q)=>Q.subPriority-X.subPriority)).map(B=>B[0]);let H=(0,s.toDate)(O,D?.in);if(isNaN(+H))return M();const F={};for(const B of k){if(!B.validate(H,N))return M();const X=B.set(H,F,N);Array.isArray(X)?(H=X[0],Object.assign(F,X[1])):H=X}return H}function x(S){return S.match(f)[1].replace(g,"'")}})(H1)),H1}var P$;function xle(){if(P$)return k1;P$=1,k1.isMatch=t;var n=_o(),e=CW();function t(r,a,i){return(0,n.isValid)((0,e.parse)(r,a,new Date,i))}return k1}var q1={},L$;function wle(){if(L$)return q1;L$=1,q1.isMonday=e;var n=_e();function e(t,r){return(0,n.toDate)(t,r?.in).getDay()===1}return q1}var X1={},N$;function Sle(){if(N$)return X1;N$=1,X1.isPast=e;var n=_e();function e(t){return+(0,n.toDate)(t)<Date.now()}return X1}var V1={},U1={},I$;function OW(){if(I$)return U1;I$=1,U1.startOfHour=e;var n=_e();function e(t,r){const a=(0,n.toDate)(t,r?.in);return a.setMinutes(0,0,0),a}return U1}var $$;function EW(){if($$)return V1;$$=1,V1.isSameHour=t;var n=_n(),e=OW();function t(r,a,i){const[s,o]=(0,n.normalizeDates)(i?.in,r,a);return+(0,e.startOfHour)(s)==+(0,e.startOfHour)(o)}return V1}var G1={},Z1={},F$;function nD(){if(F$)return Z1;F$=1,Z1.isSameWeek=t;var n=_n(),e=Qi();function t(r,a,i){const[s,o]=(0,n.normalizeDates)(i?.in,r,a);return+(0,e.startOfWeek)(s,i)==+(0,e.startOfWeek)(o,i)}return Z1}var k$;function MW(){if(k$)return G1;k$=1,G1.isSameISOWeek=e;var n=nD();function e(t,r,a){return(0,n.isSameWeek)(t,r,{...a,weekStartsOn:1})}return G1}var Q1={},H$;function Cle(){if(H$)return Q1;H$=1,Q1.isSameISOWeekYear=t;var n=Zh(),e=_n();function t(r,a,i){const[s,o]=(0,e.normalizeDates)(i?.in,r,a);return+(0,n.startOfISOWeekYear)(s)==+(0,n.startOfISOWeekYear)(o)}return Q1}var K1={},J1={},z$;function DW(){if(z$)return J1;z$=1,J1.startOfMinute=e;var n=_e();function e(t,r){const a=(0,n.toDate)(t,r?.in);return a.setSeconds(0,0),a}return J1}var B$;function _W(){if(B$)return K1;B$=1,K1.isSameMinute=e;var n=DW();function e(t,r){return+(0,n.startOfMinute)(t)==+(0,n.startOfMinute)(r)}return K1}var eS={},Y$;function AW(){if(Y$)return eS;Y$=1,eS.isSameMonth=e;var n=_n();function e(t,r,a){const[i,s]=(0,n.normalizeDates)(a?.in,t,r);return i.getFullYear()===s.getFullYear()&&i.getMonth()===s.getMonth()}return eS}var tS={},j$;function TW(){if(j$)return tS;j$=1,tS.isSameQuarter=t;var n=_n(),e=ZM();function t(r,a,i){const[s,o]=(0,n.normalizeDates)(i?.in,r,a);return+(0,e.startOfQuarter)(s)==+(0,e.startOfQuarter)(o)}return tS}var nS={},rS={},W$;function RW(){if(W$)return rS;W$=1,rS.startOfSecond=e;var n=_e();function e(t,r){const a=(0,n.toDate)(t,r?.in);return a.setMilliseconds(0),a}return rS}var q$;function PW(){if(q$)return nS;q$=1,nS.isSameSecond=e;var n=RW();function e(t,r){return+(0,n.startOfSecond)(t)==+(0,n.startOfSecond)(r)}return nS}var aS={},X$;function LW(){if(X$)return aS;X$=1,aS.isSameYear=e;var n=_n();function e(t,r,a){const[i,s]=(0,n.normalizeDates)(a?.in,t,r);return i.getFullYear()===s.getFullYear()}return aS}var iS={},V$;function Ole(){if(V$)return iS;V$=1,iS.isThisHour=r;var n=Rr(),e=EW(),t=_e();function r(a,i){return(0,e.isSameHour)((0,t.toDate)(a,i?.in),(0,n.constructNow)(i?.in||a))}return iS}var sS={},U$;function Ele(){if(U$)return sS;U$=1,sS.isThisISOWeek=r;var n=mt(),e=Rr(),t=MW();function r(a,i){return(0,t.isSameISOWeek)((0,n.constructFrom)(i?.in||a,a),(0,e.constructNow)(i?.in||a))}return sS}var oS={},G$;function Mle(){if(G$)return oS;G$=1,oS.isThisMinute=t;var n=Rr(),e=_W();function t(r){return(0,e.isSameMinute)(r,(0,n.constructNow)(r))}return oS}var lS={},Z$;function Dle(){if(Z$)return lS;Z$=1,lS.isThisMonth=r;var n=mt(),e=Rr(),t=AW();function r(a,i){return(0,t.isSameMonth)((0,n.constructFrom)(i?.in||a,a),(0,e.constructNow)(i?.in||a))}return lS}var cS={},Q$;function _le(){if(Q$)return cS;Q$=1,cS.isThisQuarter=r;var n=mt(),e=Rr(),t=TW();function r(a,i){return(0,t.isSameQuarter)((0,n.constructFrom)(i?.in||a,a),(0,e.constructNow)(i?.in||a))}return cS}var uS={},K$;function Ale(){if(K$)return uS;K$=1,uS.isThisSecond=t;var n=Rr(),e=PW();function t(r){return(0,e.isSameSecond)(r,(0,n.constructNow)(r))}return uS}var dS={},J$;function Tle(){if(J$)return dS;J$=1,dS.isThisWeek=r;var n=mt(),e=Rr(),t=nD();function r(a,i){return(0,t.isSameWeek)((0,n.constructFrom)(i?.in||a,a),(0,e.constructNow)(i?.in||a),i)}return dS}var fS={},eF;function Rle(){if(eF)return fS;eF=1,fS.isThisYear=r;var n=mt(),e=Rr(),t=LW();function r(a,i){return(0,t.isSameYear)((0,n.constructFrom)(i?.in||a,a),(0,e.constructNow)(i?.in||a))}return fS}var hS={},tF;function Ple(){if(tF)return hS;tF=1,hS.isThursday=e;var n=_e();function e(t,r){return(0,n.toDate)(t,r?.in).getDay()===4}return hS}var gS={},nF;function Lle(){if(nF)return gS;nF=1,gS.isToday=r;var n=mt(),e=Rr(),t=Qh();function r(a,i){return(0,t.isSameDay)((0,n.constructFrom)(i?.in||a,a),(0,e.constructNow)(i?.in||a))}return gS}var pS={},rF;function Nle(){if(rF)return pS;rF=1,pS.isTomorrow=r;var n=Rs(),e=Rr(),t=Qh();function r(a,i){return(0,t.isSameDay)(a,(0,n.addDays)((0,e.constructNow)(i?.in||a),1),i)}return pS}var mS={},aF;function Ile(){if(aF)return mS;aF=1,mS.isTuesday=e;var n=_e();function e(t,r){return(0,n.toDate)(t,r?.in).getDay()===2}return mS}var vS={},iF;function $le(){if(iF)return vS;iF=1,vS.isWednesday=e;var n=_e();function e(t,r){return(0,n.toDate)(t,r?.in).getDay()===3}return vS}var bS={},sF;function Fle(){if(sF)return bS;sF=1,bS.isWithinInterval=e;var n=_e();function e(t,r,a){const i=+(0,n.toDate)(t,a?.in),[s,o]=[+(0,n.toDate)(r.start,a?.in),+(0,n.toDate)(r.end,a?.in)].sort((l,u)=>l-u);return i>=s&&i<=o}return bS}var yS={},xS={},oF;function Qv(){if(oF)return xS;oF=1,xS.subDays=e;var n=Rs();function e(t,r,a){return(0,n.addDays)(t,-r,a)}return xS}var lF;function kle(){if(lF)return yS;lF=1,yS.isYesterday=a;var n=mt(),e=Rr(),t=Qh(),r=Qv();function a(i,s){return(0,t.isSameDay)((0,n.constructFrom)(s?.in||i,i),(0,r.subDays)((0,e.constructNow)(s?.in||i),1))}return yS}var wS={},cF;function Hle(){if(cF)return wS;cF=1,wS.lastDayOfDecade=e;var n=_e();function e(t,r){const a=(0,n.toDate)(t,r?.in),i=a.getFullYear(),s=9+Math.floor(i/10)*10;return a.setFullYear(s+1,0,0),a.setHours(0,0,0,0),(0,n.toDate)(a,r?.in)}return wS}var SS={},CS={},uF;function NW(){if(uF)return CS;uF=1,CS.lastDayOfWeek=t;var n=ua(),e=_e();function t(r,a){const i=(0,n.getDefaultOptions)(),s=a?.weekStartsOn??a?.locale?.options?.weekStartsOn??i.weekStartsOn??i.locale?.options?.weekStartsOn??0,o=(0,e.toDate)(r,a?.in),l=o.getDay(),u=(l<s?-7:0)+6-(l-s);return o.setHours(0,0,0,0),o.setDate(o.getDate()+u),o}return CS}var dF;function zle(){if(dF)return SS;dF=1,SS.lastDayOfISOWeek=e;var n=NW();function e(t,r){return(0,n.lastDayOfWeek)(t,{...r,weekStartsOn:1})}return SS}var OS={},fF;function Ble(){if(fF)return OS;fF=1,OS.lastDayOfISOWeekYear=r;var n=mt(),e=Nl(),t=Ps();function r(a,i){const s=(0,e.getISOWeekYear)(a,i),o=(0,n.constructFrom)(i?.in||a,0);o.setFullYear(s+1,0,4),o.setHours(0,0,0,0);const l=(0,t.startOfISOWeek)(o,i);return l.setDate(l.getDate()-1),l}return OS}var ES={},hF;function Yle(){if(hF)return ES;hF=1,ES.lastDayOfQuarter=e;var n=_e();function e(t,r){const a=(0,n.toDate)(t,r?.in),i=a.getMonth(),s=i-i%3+3;return a.setMonth(s,0),a.setHours(0,0,0,0),a}return ES}var MS={},gF;function jle(){if(gF)return MS;gF=1,MS.lastDayOfYear=e;var n=_e();function e(t,r){const a=(0,n.toDate)(t,r?.in),i=a.getFullYear();return a.setFullYear(i+1,0,0),a.setHours(0,0,0,0),a}return MS}var DS={},pF;function Wle(){return pF||(pF=1,(function(n){n.lightFormat=l,Object.defineProperty(n,"lightFormatters",{enumerable:!0,get:function(){return e.lightFormatters}});var e=sW(),t=_o(),r=_e();const a=/(\w)\1*|''|'(''|[^'])+('|$)|./g,i=/^'([^]*?)'?$/,s=/''/g,o=/[a-zA-Z]/;function l(d,f){const g=(0,r.toDate)(d);if(!(0,t.isValid)(g))throw new RangeError("Invalid time value");const p=f.match(a);return p?p.map(y=>{if(y==="''")return"'";const x=y[0];if(x==="'")return u(y);const S=e.lightFormatters[x];if(S)return S(g,y);if(x.match(o))throw new RangeError("Format string contains an unescaped latin alphabet character `"+x+"`");return y}).join(""):""}function u(d){const f=d.match(i);return f?f[1].replace(s,"'"):d}})(DS)),DS}var _S={},mF;function qle(){if(mF)return _S;mF=1,_S.milliseconds=e;var n=Ht();function e({years:t,months:r,weeks:a,days:i,hours:s,minutes:o,seconds:l}){let u=0;t&&(u+=t*n.daysInYear),r&&(u+=r*(n.daysInYear/12)),a&&(u+=a*7),i&&(u+=i);let d=u*24*60*60;return s&&(d+=s*60*60),o&&(d+=o*60),l&&(d+=l),Math.trunc(d*1e3)}return _S}var AS={},vF;function Xle(){if(vF)return AS;vF=1,AS.millisecondsToHours=e;var n=Ht();function e(t){const r=t/n.millisecondsInHour;return Math.trunc(r)}return AS}var TS={},bF;function Vle(){if(bF)return TS;bF=1,TS.millisecondsToMinutes=e;var n=Ht();function e(t){const r=t/n.millisecondsInMinute;return Math.trunc(r)}return TS}var RS={},yF;function Ule(){if(yF)return RS;yF=1,RS.millisecondsToSeconds=e;var n=Ht();function e(t){const r=t/n.millisecondsInSecond;return Math.trunc(r)}return RS}var PS={},xF;function Gle(){if(xF)return PS;xF=1,PS.minutesToHours=e;var n=Ht();function e(t){const r=t/n.minutesInHour;return Math.trunc(r)}return PS}var LS={},wF;function Zle(){if(wF)return LS;wF=1,LS.minutesToMilliseconds=e;var n=Ht();function e(t){return Math.trunc(t*n.millisecondsInMinute)}return LS}var NS={},SF;function Qle(){if(SF)return NS;SF=1,NS.minutesToSeconds=e;var n=Ht();function e(t){return Math.trunc(t*n.secondsInMinute)}return NS}var IS={},CF;function Kle(){if(CF)return IS;CF=1,IS.monthsToQuarters=e;var n=Ht();function e(t){const r=t/n.monthsInQuarter;return Math.trunc(r)}return IS}var $S={},OF;function Jle(){if(OF)return $S;OF=1,$S.monthsToYears=e;var n=Ht();function e(t){const r=t/n.monthsInYear;return Math.trunc(r)}return $S}var FS={},EF;function To(){if(EF)return FS;EF=1,FS.nextDay=t;var n=Rs(),e=Gv();function t(r,a,i){let s=a-(0,e.getDay)(r,i);return s<=0&&(s+=7),(0,n.addDays)(r,s,i)}return FS}var kS={},MF;function ece(){if(MF)return kS;MF=1,kS.nextFriday=e;var n=To();function e(t,r){return(0,n.nextDay)(t,5,r)}return kS}var HS={},DF;function tce(){if(DF)return HS;DF=1,HS.nextMonday=e;var n=To();function e(t,r){return(0,n.nextDay)(t,1,r)}return HS}var zS={},_F;function nce(){if(_F)return zS;_F=1,zS.nextSaturday=e;var n=To();function e(t,r){return(0,n.nextDay)(t,6,r)}return zS}var BS={},AF;function rce(){if(AF)return BS;AF=1,BS.nextSunday=e;var n=To();function e(t,r){return(0,n.nextDay)(t,0,r)}return BS}var YS={},TF;function ace(){if(TF)return YS;TF=1,YS.nextThursday=e;var n=To();function e(t,r){return(0,n.nextDay)(t,4,r)}return YS}var jS={},RF;function ice(){if(RF)return jS;RF=1,jS.nextTuesday=e;var n=To();function e(t,r){return(0,n.nextDay)(t,2,r)}return jS}var WS={},PF;function sce(){if(PF)return WS;PF=1,WS.nextWednesday=e;var n=To();function e(t,r){return(0,n.nextDay)(t,3,r)}return WS}var qS={},LF;function oce(){if(LF)return qS;LF=1,qS.parseISO=r;var n=Ht(),e=mt(),t=_e();function r(T,P){const R=()=>(0,e.constructFrom)(P?.in,NaN),N=P?.additionalDigits??2,I=l(T);let $;if(I.date){const F=u(I.date,N);$=d(F.restDateString,F.year)}if(!$||isNaN(+$))return R();const Y=+$;let k=0,H;if(I.time&&(k=g(I.time),isNaN(k)))return R();if(I.timezone){if(H=b(I.timezone),isNaN(H))return R()}else{const F=new Date(Y+k),B=(0,t.toDate)(0,P?.in);return B.setFullYear(F.getUTCFullYear(),F.getUTCMonth(),F.getUTCDate()),B.setHours(F.getUTCHours(),F.getUTCMinutes(),F.getUTCSeconds(),F.getUTCMilliseconds()),B}return(0,t.toDate)(Y+k+H,P?.in)}const a={dateTimeDelimiter:/[T ]/,timeZoneDelimiter:/[Z ]/i,timezone:/([Z+-].*)$/},i=/^-?(?:(\d{3})|(\d{2})(?:-?(\d{2}))?|W(\d{2})(?:-?(\d{1}))?|)$/,s=/^(\d{2}(?:[.,]\d*)?)(?::?(\d{2}(?:[.,]\d*)?))?(?::?(\d{2}(?:[.,]\d*)?))?$/,o=/^([+-])(\d{2})(?::?(\d{2}))?$/;function l(T){const P={},R=T.split(a.dateTimeDelimiter);let N;if(R.length>2)return P;if(/:/.test(R[0])?N=R[0]:(P.date=R[0],N=R[1],a.timeZoneDelimiter.test(P.date)&&(P.date=T.split(a.timeZoneDelimiter)[0],N=T.substr(P.date.length,T.length))),N){const I=a.timezone.exec(N);I?(P.time=N.replace(I[1],""),P.timezone=I[1]):P.time=N}return P}function u(T,P){const R=new RegExp("^(?:(\\d{4}|[+-]\\d{"+(4+P)+"})|(\\d{2}|[+-]\\d{"+(2+P)+"})$)"),N=T.match(R);if(!N)return{year:NaN,restDateString:""};const I=N[1]?parseInt(N[1]):null,$=N[2]?parseInt(N[2]):null;return{year:$===null?I:$*100,restDateString:T.slice((N[1]||N[2]).length)}}function d(T,P){if(P===null)return new Date(NaN);const R=T.match(i);if(!R)return new Date(NaN);const N=!!R[4],I=f(R[1]),$=f(R[2])-1,Y=f(R[3]),k=f(R[4]),H=f(R[5])-1;if(N)return D(P,k,H)?y(P,k,H):new Date(NaN);{const F=new Date(0);return!C(P,$,Y)||!O(P,I)?new Date(NaN):(F.setUTCFullYear(P,$,Math.max(I,Y)),F)}}function f(T){return T?parseInt(T):1}function g(T){const P=T.match(s);if(!P)return NaN;const R=p(P[1]),N=p(P[2]),I=p(P[3]);return M(R,N,I)?R*n.millisecondsInHour+N*n.millisecondsInMinute+I*1e3:NaN}function p(T){return T&&parseFloat(T.replace(",","."))||0}function b(T){if(T==="Z")return 0;const P=T.match(o);if(!P)return 0;const R=P[1]==="+"?-1:1,N=parseInt(P[2]),I=P[3]&&parseInt(P[3])||0;return A(N,I)?R*(N*n.millisecondsInHour+I*n.millisecondsInMinute):NaN}function y(T,P,R){const N=new Date(0);N.setUTCFullYear(T,0,4);const I=N.getUTCDay()||7,$=(P-1)*7+R+1-I;return N.setUTCDate(N.getUTCDate()+$),N}const x=[31,null,31,30,31,30,31,31,30,31,30,31];function S(T){return T%400===0||T%4===0&&T%100!==0}function C(T,P,R){return P>=0&&P<=11&&R>=1&&R<=(x[P]||(S(T)?29:28))}function O(T,P){return P>=1&&P<=(S(T)?366:365)}function D(T,P,R){return P>=1&&P<=53&&R>=0&&R<=6}function M(T,P,R){return T===24?P===0&&R===0:R>=0&&R<60&&P>=0&&P<60&&T>=0&&T<25}function A(T,P){return P>=0&&P<=59}return qS}var XS={},NF;function lce(){if(NF)return XS;NF=1,XS.parseJSON=e;var n=_e();function e(t,r){const a=t.match(/(\d{4})-(\d{2})-(\d{2})[T ](\d{2}):(\d{2}):(\d{2})(?:\.(\d{0,7}))?(?:Z|(.)(\d{2}):?(\d{2})?)?/);return a?(0,n.toDate)(Date.UTC(+a[1],+a[2]-1,+a[3],+a[4]-(+a[9]||0)*(a[8]=="-"?-1:1),+a[5]-(+a[10]||0)*(a[8]=="-"?-1:1),+a[6],+((a[7]||"0")+"00").substring(0,3)),r?.in):(0,n.toDate)(NaN,r?.in)}return XS}var VS={},IF;function Ro(){if(IF)return VS;IF=1,VS.previousDay=t;var n=Gv(),e=Qv();function t(r,a,i){let s=(0,n.getDay)(r,i)-a;return s<=0&&(s+=7),(0,e.subDays)(r,s,i)}return VS}var US={},$F;function cce(){if($F)return US;$F=1,US.previousFriday=e;var n=Ro();function e(t,r){return(0,n.previousDay)(t,5,r)}return US}var GS={},FF;function uce(){if(FF)return GS;FF=1,GS.previousMonday=e;var n=Ro();function e(t,r){return(0,n.previousDay)(t,1,r)}return GS}var ZS={},kF;function dce(){if(kF)return ZS;kF=1,ZS.previousSaturday=e;var n=Ro();function e(t,r){return(0,n.previousDay)(t,6,r)}return ZS}var QS={},HF;function fce(){if(HF)return QS;HF=1,QS.previousSunday=e;var n=Ro();function e(t,r){return(0,n.previousDay)(t,0,r)}return QS}var KS={},zF;function hce(){if(zF)return KS;zF=1,KS.previousThursday=e;var n=Ro();function e(t,r){return(0,n.previousDay)(t,4,r)}return KS}var JS={},BF;function gce(){if(BF)return JS;BF=1,JS.previousTuesday=e;var n=Ro();function e(t,r){return(0,n.previousDay)(t,2,r)}return JS}var eC={},YF;function pce(){if(YF)return eC;YF=1,eC.previousWednesday=e;var n=Ro();function e(t,r){return(0,n.previousDay)(t,3,r)}return eC}var tC={},jF;function mce(){if(jF)return tC;jF=1,tC.quartersToMonths=e;var n=Ht();function e(t){return Math.trunc(t*n.monthsInQuarter)}return tC}var nC={},WF;function vce(){if(WF)return nC;WF=1,nC.quartersToYears=e;var n=Ht();function e(t){const r=t/n.quartersInYear;return Math.trunc(r)}return nC}var rC={},qF;function bce(){if(qF)return rC;qF=1,rC.roundToNearestHours=r;var n=Ao(),e=mt(),t=_e();function r(a,i){const s=i?.nearestTo??1;if(s<1||s>12)return(0,e.constructFrom)(i?.in||a,NaN);const o=(0,t.toDate)(a,i?.in),l=o.getMinutes()/60,u=o.getSeconds()/60/60,d=o.getMilliseconds()/1e3/60/60,f=o.getHours()+l+u+d,g=i?.roundingMethod??"round",b=(0,n.getRoundingMethod)(g)(f/s)*s;return o.setHours(b,0,0,0),o}return rC}var aC={},XF;function yce(){if(XF)return aC;XF=1,aC.roundToNearestMinutes=r;var n=Ao(),e=mt(),t=_e();function r(a,i){const s=i?.nearestTo??1;if(s<1||s>30)return(0,e.constructFrom)(a,NaN);const o=(0,t.toDate)(a,i?.in),l=o.getSeconds()/60,u=o.getMilliseconds()/1e3/60,d=o.getMinutes()+l+u,f=i?.roundingMethod??"round",p=(0,n.getRoundingMethod)(f)(d/s)*s;return o.setMinutes(p,0,0),o}return aC}var iC={},VF;function xce(){if(VF)return iC;VF=1,iC.secondsToHours=e;var n=Ht();function e(t){const r=t/n.secondsInHour;return Math.trunc(r)}return iC}var sC={},UF;function wce(){if(UF)return sC;UF=1,sC.secondsToMilliseconds=e;var n=Ht();function e(t){return t*n.millisecondsInSecond}return sC}var oC={},GF;function Sce(){if(GF)return oC;GF=1,oC.secondsToMinutes=e;var n=Ht();function e(t){const r=t/n.secondsInMinute;return Math.trunc(r)}return oC}var lC={},cC={},ZF;function rD(){if(ZF)return cC;ZF=1,cC.setMonth=r;var n=mt(),e=hW(),t=_e();function r(a,i,s){const o=(0,t.toDate)(a,s?.in),l=o.getFullYear(),u=o.getDate(),d=(0,n.constructFrom)(s?.in||a,0);d.setFullYear(l,i,15),d.setHours(0,0,0,0);const f=(0,e.getDaysInMonth)(d);return o.setMonth(i,Math.min(u,f)),o}return cC}var QF;function Cce(){if(QF)return lC;QF=1,lC.set=r;var n=mt(),e=rD(),t=_e();function r(a,i,s){let o=(0,t.toDate)(a,s?.in);return isNaN(+o)?(0,n.constructFrom)(s?.in||a,NaN):(i.year!=null&&o.setFullYear(i.year),i.month!=null&&(o=(0,e.setMonth)(o,i.month)),i.date!=null&&o.setDate(i.date),i.hours!=null&&o.setHours(i.hours),i.minutes!=null&&o.setMinutes(i.minutes),i.seconds!=null&&o.setSeconds(i.seconds),i.milliseconds!=null&&o.setMilliseconds(i.milliseconds),o)}return lC}var uC={},KF;function Oce(){if(KF)return uC;KF=1,uC.setDate=e;var n=_e();function e(t,r,a){const i=(0,n.toDate)(t,a?.in);return i.setDate(r),i}return uC}var dC={},JF;function Ece(){if(JF)return dC;JF=1,dC.setDayOfYear=e;var n=_e();function e(t,r,a){const i=(0,n.toDate)(t,a?.in);return i.setMonth(0),i.setDate(r),i}return dC}var fC={},ek;function Mce(){if(ek)return fC;ek=1,fC.setDefaultOptions=e;var n=ua();function e(t){const r={},a=(0,n.getDefaultOptions)();for(const i in a)Object.prototype.hasOwnProperty.call(a,i)&&(r[i]=a[i]);for(const i in t)Object.prototype.hasOwnProperty.call(t,i)&&(t[i]===void 0?delete r[i]:r[i]=t[i]);(0,n.setDefaultOptions)(r)}return fC}var hC={},tk;function Dce(){if(tk)return hC;tk=1,hC.setHours=e;var n=_e();function e(t,r,a){const i=(0,n.toDate)(t,a?.in);return i.setHours(r),i}return hC}var gC={},nk;function _ce(){if(nk)return gC;nk=1,gC.setMilliseconds=e;var n=_e();function e(t,r,a){const i=(0,n.toDate)(t,a?.in);return i.setMilliseconds(r),i}return gC}var pC={},rk;function Ace(){if(rk)return pC;rk=1,pC.setMinutes=e;var n=_e();function e(t,r,a){const i=(0,n.toDate)(t,a?.in);return i.setMinutes(r),i}return pC}var mC={},ak;function Tce(){if(ak)return mC;ak=1,mC.setQuarter=t;var n=rD(),e=_e();function t(r,a,i){const s=(0,e.toDate)(r,i?.in),o=Math.trunc(s.getMonth()/3)+1,l=a-o;return(0,n.setMonth)(s,s.getMonth()+l*3)}return mC}var vC={},ik;function Rce(){if(ik)return vC;ik=1,vC.setSeconds=e;var n=_e();function e(t,r,a){const i=(0,n.toDate)(t,a?.in);return i.setSeconds(r),i}return vC}var bC={},sk;function Pce(){if(sk)return bC;sk=1,bC.setWeekYear=i;var n=ua(),e=mt(),t=Do(),r=eD(),a=_e();function i(s,o,l){const u=(0,n.getDefaultOptions)(),d=l?.firstWeekContainsDate??l?.locale?.options?.firstWeekContainsDate??u.firstWeekContainsDate??u.locale?.options?.firstWeekContainsDate??1,f=(0,t.differenceInCalendarDays)((0,a.toDate)(s,l?.in),(0,r.startOfWeekYear)(s,l),l),g=(0,e.constructFrom)(l?.in||s,0);g.setFullYear(o,0,d),g.setHours(0,0,0,0);const p=(0,r.startOfWeekYear)(g,l);return p.setDate(p.getDate()+f),p}return bC}var yC={},ok;function Lce(){if(ok)return yC;ok=1,yC.setYear=t;var n=mt(),e=_e();function t(r,a,i){const s=(0,e.toDate)(r,i?.in);return isNaN(+s)?(0,n.constructFrom)(i?.in||r,NaN):(s.setFullYear(a),s)}return yC}var xC={},lk;function Nce(){if(lk)return xC;lk=1,xC.startOfDecade=e;var n=_e();function e(t,r){const a=(0,n.toDate)(t,r?.in),i=a.getFullYear(),s=Math.floor(i/10)*10;return a.setFullYear(s,0,1),a.setHours(0,0,0,0),a}return xC}var wC={},ck;function Ice(){if(ck)return wC;ck=1,wC.startOfToday=e;var n=jv();function e(t){return(0,n.startOfDay)(Date.now(),t)}return wC}var SC={},uk;function $ce(){if(uk)return SC;uk=1,SC.startOfTomorrow=t;var n=mt(),e=Rr();function t(r){const a=(0,e.constructNow)(r?.in),i=a.getFullYear(),s=a.getMonth(),o=a.getDate(),l=(0,n.constructFrom)(r?.in,0);return l.setFullYear(i,s,o+1),l.setHours(0,0,0,0),l}return SC}var CC={},dk;function Fce(){if(dk)return CC;dk=1,CC.startOfYesterday=e;var n=Rr();function e(t){const r=(0,n.constructNow)(t?.in),a=r.getFullYear(),i=r.getMonth(),s=r.getDate(),o=(0,n.constructNow)(t?.in);return o.setFullYear(a,i,s-1),o.setHours(0,0,0,0),o}return CC}var OC={},EC={},fk;function IW(){if(fk)return EC;fk=1,EC.subMonths=e;var n=Gh();function e(t,r,a){return(0,n.addMonths)(t,-r,a)}return EC}var hk;function kce(){if(hk)return OC;hk=1,OC.sub=r;var n=mt(),e=Qv(),t=IW();function r(a,i,s){const{years:o=0,months:l=0,weeks:u=0,days:d=0,hours:f=0,minutes:g=0,seconds:p=0}=i,b=(0,t.subMonths)(a,l+o*12,s),y=(0,e.subDays)(b,d+u*7,s),x=g+f*60,C=(p+x*60)*1e3;return(0,n.constructFrom)(s?.in||a,+y-C)}return OC}var MC={},gk;function Hce(){if(gk)return MC;gk=1,MC.subBusinessDays=e;var n=Hj();function e(t,r,a){return(0,n.addBusinessDays)(t,-r,a)}return MC}var DC={},pk;function zce(){if(pk)return DC;pk=1,DC.subHours=e;var n=zj();function e(t,r,a){return(0,n.addHours)(t,-r,a)}return DC}var _C={},mk;function Bce(){if(mk)return _C;mk=1,_C.subMilliseconds=e;var n=Yv();function e(t,r,a){return(0,n.addMilliseconds)(t,-r,a)}return _C}var AC={},vk;function Yce(){if(vk)return AC;vk=1,AC.subMinutes=e;var n=HM();function e(t,r,a){return(0,n.addMinutes)(t,-r,a)}return AC}var TC={},bk;function jce(){if(bk)return TC;bk=1,TC.subQuarters=e;var n=zM();function e(t,r,a){return(0,n.addQuarters)(t,-r,a)}return TC}var RC={},yk;function Wce(){if(yk)return RC;yk=1,RC.subSeconds=e;var n=jj();function e(t,r,a){return(0,n.addSeconds)(t,-r,a)}return RC}var PC={},xk;function qce(){if(xk)return PC;xk=1,PC.subWeeks=e;var n=Wv();function e(t,r,a){return(0,n.addWeeks)(t,-r,a)}return PC}var LC={},wk;function Xce(){if(wk)return LC;wk=1,LC.subYears=e;var n=Wj();function e(t,r,a){return(0,n.addYears)(t,-r,a)}return LC}var NC={},Sk;function Vce(){if(Sk)return NC;Sk=1,NC.weeksToDays=e;var n=Ht();function e(t){return Math.trunc(t*n.daysInWeek)}return NC}var IC={},Ck;function Uce(){if(Ck)return IC;Ck=1,IC.yearsToDays=e;var n=Ht();function e(t){return Math.trunc(t*n.daysInYear)}return IC}var $C={},Ok;function Gce(){if(Ok)return $C;Ok=1,$C.yearsToMonths=e;var n=Ht();function e(t){return Math.trunc(t*n.monthsInYear)}return $C}var FC={},Ek;function Zce(){if(Ek)return FC;Ek=1,FC.yearsToQuarters=e;var n=Ht();function e(t){return Math.trunc(t*n.quartersInYear)}return FC}var Mk;function Il(){return Mk||(Mk=1,(function(n){var e=$j();Object.keys(e).forEach(function(v){v==="default"||v==="__esModule"||v in n&&n[v]===e[v]||Object.defineProperty(n,v,{enumerable:!0,get:function(){return e[v]}})});var t=Hj();Object.keys(t).forEach(function(v){v==="default"||v==="__esModule"||v in n&&n[v]===t[v]||Object.defineProperty(n,v,{enumerable:!0,get:function(){return t[v]}})});var r=Rs();Object.keys(r).forEach(function(v){v==="default"||v==="__esModule"||v in n&&n[v]===r[v]||Object.defineProperty(n,v,{enumerable:!0,get:function(){return r[v]}})});var a=zj();Object.keys(a).forEach(function(v){v==="default"||v==="__esModule"||v in n&&n[v]===a[v]||Object.defineProperty(n,v,{enumerable:!0,get:function(){return a[v]}})});var i=Yj();Object.keys(i).forEach(function(v){v==="default"||v==="__esModule"||v in n&&n[v]===i[v]||Object.defineProperty(n,v,{enumerable:!0,get:function(){return i[v]}})});var s=Yv();Object.keys(s).forEach(function(v){v==="default"||v==="__esModule"||v in n&&n[v]===s[v]||Object.defineProperty(n,v,{enumerable:!0,get:function(){return s[v]}})});var o=HM();Object.keys(o).forEach(function(v){v==="default"||v==="__esModule"||v in n&&n[v]===o[v]||Object.defineProperty(n,v,{enumerable:!0,get:function(){return o[v]}})});var l=Gh();Object.keys(l).forEach(function(v){v==="default"||v==="__esModule"||v in n&&n[v]===l[v]||Object.defineProperty(n,v,{enumerable:!0,get:function(){return l[v]}})});var u=zM();Object.keys(u).forEach(function(v){v==="default"||v==="__esModule"||v in n&&n[v]===u[v]||Object.defineProperty(n,v,{enumerable:!0,get:function(){return u[v]}})});var d=jj();Object.keys(d).forEach(function(v){v==="default"||v==="__esModule"||v in n&&n[v]===d[v]||Object.defineProperty(n,v,{enumerable:!0,get:function(){return d[v]}})});var f=Wv();Object.keys(f).forEach(function(v){v==="default"||v==="__esModule"||v in n&&n[v]===f[v]||Object.defineProperty(n,v,{enumerable:!0,get:function(){return f[v]}})});var g=Wj();Object.keys(g).forEach(function(v){v==="default"||v==="__esModule"||v in n&&n[v]===g[v]||Object.defineProperty(n,v,{enumerable:!0,get:function(){return g[v]}})});var p=xse();Object.keys(p).forEach(function(v){v==="default"||v==="__esModule"||v in n&&n[v]===p[v]||Object.defineProperty(n,v,{enumerable:!0,get:function(){return p[v]}})});var b=wse();Object.keys(b).forEach(function(v){v==="default"||v==="__esModule"||v in n&&n[v]===b[v]||Object.defineProperty(n,v,{enumerable:!0,get:function(){return b[v]}})});var y=Vj();Object.keys(y).forEach(function(v){v==="default"||v==="__esModule"||v in n&&n[v]===y[v]||Object.defineProperty(n,v,{enumerable:!0,get:function(){return y[v]}})});var x=Sse();Object.keys(x).forEach(function(v){v==="default"||v==="__esModule"||v in n&&n[v]===x[v]||Object.defineProperty(n,v,{enumerable:!0,get:function(){return x[v]}})});var S=_u();Object.keys(S).forEach(function(v){v==="default"||v==="__esModule"||v in n&&n[v]===S[v]||Object.defineProperty(n,v,{enumerable:!0,get:function(){return S[v]}})});var C=Cse();Object.keys(C).forEach(function(v){v==="default"||v==="__esModule"||v in n&&n[v]===C[v]||Object.defineProperty(n,v,{enumerable:!0,get:function(){return C[v]}})});var O=mt();Object.keys(O).forEach(function(v){v==="default"||v==="__esModule"||v in n&&n[v]===O[v]||Object.defineProperty(n,v,{enumerable:!0,get:function(){return O[v]}})});var D=Rr();Object.keys(D).forEach(function(v){v==="default"||v==="__esModule"||v in n&&n[v]===D[v]||Object.defineProperty(n,v,{enumerable:!0,get:function(){return D[v]}})});var M=Ose();Object.keys(M).forEach(function(v){v==="default"||v==="__esModule"||v in n&&n[v]===M[v]||Object.defineProperty(n,v,{enumerable:!0,get:function(){return M[v]}})});var A=Ese();Object.keys(A).forEach(function(v){v==="default"||v==="__esModule"||v in n&&n[v]===A[v]||Object.defineProperty(n,v,{enumerable:!0,get:function(){return A[v]}})});var T=Do();Object.keys(T).forEach(function(v){v==="default"||v==="__esModule"||v in n&&n[v]===T[v]||Object.defineProperty(n,v,{enumerable:!0,get:function(){return T[v]}})});var P=Gj();Object.keys(P).forEach(function(v){v==="default"||v==="__esModule"||v in n&&n[v]===P[v]||Object.defineProperty(n,v,{enumerable:!0,get:function(){return P[v]}})});var R=Mse();Object.keys(R).forEach(function(v){v==="default"||v==="__esModule"||v in n&&n[v]===R[v]||Object.defineProperty(n,v,{enumerable:!0,get:function(){return R[v]}})});var N=BM();Object.keys(N).forEach(function(v){v==="default"||v==="__esModule"||v in n&&n[v]===N[v]||Object.defineProperty(n,v,{enumerable:!0,get:function(){return N[v]}})});var I=Qj();Object.keys(I).forEach(function(v){v==="default"||v==="__esModule"||v in n&&n[v]===I[v]||Object.defineProperty(n,v,{enumerable:!0,get:function(){return I[v]}})});var $=YM();Object.keys($).forEach(function(v){v==="default"||v==="__esModule"||v in n&&n[v]===$[v]||Object.defineProperty(n,v,{enumerable:!0,get:function(){return $[v]}})});var Y=jM();Object.keys(Y).forEach(function(v){v==="default"||v==="__esModule"||v in n&&n[v]===Y[v]||Object.defineProperty(n,v,{enumerable:!0,get:function(){return Y[v]}})});var k=WM();Object.keys(k).forEach(function(v){v==="default"||v==="__esModule"||v in n&&n[v]===k[v]||Object.defineProperty(n,v,{enumerable:!0,get:function(){return k[v]}})});var H=qM();Object.keys(H).forEach(function(v){v==="default"||v==="__esModule"||v in n&&n[v]===H[v]||Object.defineProperty(n,v,{enumerable:!0,get:function(){return H[v]}})});var F=Dse();Object.keys(F).forEach(function(v){v==="default"||v==="__esModule"||v in n&&n[v]===F[v]||Object.defineProperty(n,v,{enumerable:!0,get:function(){return F[v]}})});var B=XM();Object.keys(B).forEach(function(v){v==="default"||v==="__esModule"||v in n&&n[v]===B[v]||Object.defineProperty(n,v,{enumerable:!0,get:function(){return B[v]}})});var X=VM();Object.keys(X).forEach(function(v){v==="default"||v==="__esModule"||v in n&&n[v]===X[v]||Object.defineProperty(n,v,{enumerable:!0,get:function(){return X[v]}})});var Q=qv();Object.keys(Q).forEach(function(v){v==="default"||v==="__esModule"||v in n&&n[v]===Q[v]||Object.defineProperty(n,v,{enumerable:!0,get:function(){return Q[v]}})});var z=_se();Object.keys(z).forEach(function(v){v==="default"||v==="__esModule"||v in n&&n[v]===z[v]||Object.defineProperty(n,v,{enumerable:!0,get:function(){return z[v]}})});var V=Xv();Object.keys(V).forEach(function(v){v==="default"||v==="__esModule"||v in n&&n[v]===V[v]||Object.defineProperty(n,v,{enumerable:!0,get:function(){return V[v]}})});var j=Ase();Object.keys(j).forEach(function(v){v==="default"||v==="__esModule"||v in n&&n[v]===j[v]||Object.defineProperty(n,v,{enumerable:!0,get:function(){return j[v]}})});var q=eW();Object.keys(q).forEach(function(v){v==="default"||v==="__esModule"||v in n&&n[v]===q[v]||Object.defineProperty(n,v,{enumerable:!0,get:function(){return q[v]}})});var G=tW();Object.keys(G).forEach(function(v){v==="default"||v==="__esModule"||v in n&&n[v]===G[v]||Object.defineProperty(n,v,{enumerable:!0,get:function(){return G[v]}})});var U=Tse();Object.keys(U).forEach(function(v){v==="default"||v==="__esModule"||v in n&&n[v]===U[v]||Object.defineProperty(n,v,{enumerable:!0,get:function(){return U[v]}})});var K=Rse();Object.keys(K).forEach(function(v){v==="default"||v==="__esModule"||v in n&&n[v]===K[v]||Object.defineProperty(n,v,{enumerable:!0,get:function(){return K[v]}})});var te=Pse();Object.keys(te).forEach(function(v){v==="default"||v==="__esModule"||v in n&&n[v]===te[v]||Object.defineProperty(n,v,{enumerable:!0,get:function(){return te[v]}})});var ne=Lse();Object.keys(ne).forEach(function(v){v==="default"||v==="__esModule"||v in n&&n[v]===ne[v]||Object.defineProperty(n,v,{enumerable:!0,get:function(){return ne[v]}})});var ie=Nse();Object.keys(ie).forEach(function(v){v==="default"||v==="__esModule"||v in n&&n[v]===ie[v]||Object.defineProperty(n,v,{enumerable:!0,get:function(){return ie[v]}})});var ce=QM();Object.keys(ce).forEach(function(v){v==="default"||v==="__esModule"||v in n&&n[v]===ce[v]||Object.defineProperty(n,v,{enumerable:!0,get:function(){return ce[v]}})});var ue=Ise();Object.keys(ue).forEach(function(v){v==="default"||v==="__esModule"||v in n&&n[v]===ue[v]||Object.defineProperty(n,v,{enumerable:!0,get:function(){return ue[v]}})});var be=$se();Object.keys(be).forEach(function(v){v==="default"||v==="__esModule"||v in n&&n[v]===be[v]||Object.defineProperty(n,v,{enumerable:!0,get:function(){return be[v]}})});var me=Fse();Object.keys(me).forEach(function(v){v==="default"||v==="__esModule"||v in n&&n[v]===me[v]||Object.defineProperty(n,v,{enumerable:!0,get:function(){return me[v]}})});var ye=UM();Object.keys(ye).forEach(function(v){v==="default"||v==="__esModule"||v in n&&n[v]===ye[v]||Object.defineProperty(n,v,{enumerable:!0,get:function(){return ye[v]}})});var De=kse();Object.keys(De).forEach(function(v){v==="default"||v==="__esModule"||v in n&&n[v]===De[v]||Object.defineProperty(n,v,{enumerable:!0,get:function(){return De[v]}})});var Ce=Hse();Object.keys(Ce).forEach(function(v){v==="default"||v==="__esModule"||v in n&&n[v]===Ce[v]||Object.defineProperty(n,v,{enumerable:!0,get:function(){return Ce[v]}})});var Le=zse();Object.keys(Le).forEach(function(v){v==="default"||v==="__esModule"||v in n&&n[v]===Le[v]||Object.defineProperty(n,v,{enumerable:!0,get:function(){return Le[v]}})});var Ne=Bse();Object.keys(Ne).forEach(function(v){v==="default"||v==="__esModule"||v in n&&n[v]===Ne[v]||Object.defineProperty(n,v,{enumerable:!0,get:function(){return Ne[v]}})});var Ve=Yse();Object.keys(Ve).forEach(function(v){v==="default"||v==="__esModule"||v in n&&n[v]===Ve[v]||Object.defineProperty(n,v,{enumerable:!0,get:function(){return Ve[v]}})});var ze=GM();Object.keys(ze).forEach(function(v){v==="default"||v==="__esModule"||v in n&&n[v]===ze[v]||Object.defineProperty(n,v,{enumerable:!0,get:function(){return ze[v]}})});var $e=jse();Object.keys($e).forEach(function(v){v==="default"||v==="__esModule"||v in n&&n[v]===$e[v]||Object.defineProperty(n,v,{enumerable:!0,get:function(){return $e[v]}})});var Be=Wse();Object.keys(Be).forEach(function(v){v==="default"||v==="__esModule"||v in n&&n[v]===Be[v]||Object.defineProperty(n,v,{enumerable:!0,get:function(){return Be[v]}})});var ut=qse();Object.keys(ut).forEach(function(v){v==="default"||v==="__esModule"||v in n&&n[v]===ut[v]||Object.defineProperty(n,v,{enumerable:!0,get:function(){return ut[v]}})});var He=Xse();Object.keys(He).forEach(function(v){v==="default"||v==="__esModule"||v in n&&n[v]===He[v]||Object.defineProperty(n,v,{enumerable:!0,get:function(){return He[v]}})});var Qe=rW();Object.keys(Qe).forEach(function(v){v==="default"||v==="__esModule"||v in n&&n[v]===Qe[v]||Object.defineProperty(n,v,{enumerable:!0,get:function(){return Qe[v]}})});var Ee=nW();Object.keys(Ee).forEach(function(v){v==="default"||v==="__esModule"||v in n&&n[v]===Ee[v]||Object.defineProperty(n,v,{enumerable:!0,get:function(){return Ee[v]}})});var st=Vse();Object.keys(st).forEach(function(v){v==="default"||v==="__esModule"||v in n&&n[v]===st[v]||Object.defineProperty(n,v,{enumerable:!0,get:function(){return st[v]}})});var ht=cW();Object.keys(ht).forEach(function(v){v==="default"||v==="__esModule"||v in n&&n[v]===ht[v]||Object.defineProperty(n,v,{enumerable:!0,get:function(){return ht[v]}})});var at=uW();Object.keys(at).forEach(function(v){v==="default"||v==="__esModule"||v in n&&n[v]===at[v]||Object.defineProperty(n,v,{enumerable:!0,get:function(){return at[v]}})});var Ut=dW();Object.keys(Ut).forEach(function(v){v==="default"||v==="__esModule"||v in n&&n[v]===Ut[v]||Object.defineProperty(n,v,{enumerable:!0,get:function(){return Ut[v]}})});var Nt=aoe();Object.keys(Nt).forEach(function(v){v==="default"||v==="__esModule"||v in n&&n[v]===Nt[v]||Object.defineProperty(n,v,{enumerable:!0,get:function(){return Nt[v]}})});var Ue=ioe();Object.keys(Ue).forEach(function(v){v==="default"||v==="__esModule"||v in n&&n[v]===Ue[v]||Object.defineProperty(n,v,{enumerable:!0,get:function(){return Ue[v]}})});var yt=soe();Object.keys(yt).forEach(function(v){v==="default"||v==="__esModule"||v in n&&n[v]===yt[v]||Object.defineProperty(n,v,{enumerable:!0,get:function(){return yt[v]}})});var Pe=ooe();Object.keys(Pe).forEach(function(v){v==="default"||v==="__esModule"||v in n&&n[v]===Pe[v]||Object.defineProperty(n,v,{enumerable:!0,get:function(){return Pe[v]}})});var Fe=loe();Object.keys(Fe).forEach(function(v){v==="default"||v==="__esModule"||v in n&&n[v]===Fe[v]||Object.defineProperty(n,v,{enumerable:!0,get:function(){return Fe[v]}})});var We=coe();Object.keys(We).forEach(function(v){v==="default"||v==="__esModule"||v in n&&n[v]===We[v]||Object.defineProperty(n,v,{enumerable:!0,get:function(){return We[v]}})});var we=uoe();Object.keys(we).forEach(function(v){v==="default"||v==="__esModule"||v in n&&n[v]===we[v]||Object.defineProperty(n,v,{enumerable:!0,get:function(){return we[v]}})});var Ie=doe();Object.keys(Ie).forEach(function(v){v==="default"||v==="__esModule"||v in n&&n[v]===Ie[v]||Object.defineProperty(n,v,{enumerable:!0,get:function(){return Ie[v]}})});var Dt=foe();Object.keys(Dt).forEach(function(v){v==="default"||v==="__esModule"||v in n&&n[v]===Dt[v]||Object.defineProperty(n,v,{enumerable:!0,get:function(){return Dt[v]}})});var At=hoe();Object.keys(At).forEach(function(v){v==="default"||v==="__esModule"||v in n&&n[v]===At[v]||Object.defineProperty(n,v,{enumerable:!0,get:function(){return At[v]}})});var Tt=fW();Object.keys(Tt).forEach(function(v){v==="default"||v==="__esModule"||v in n&&n[v]===Tt[v]||Object.defineProperty(n,v,{enumerable:!0,get:function(){return Tt[v]}})});var vn=Gv();Object.keys(vn).forEach(function(v){v==="default"||v==="__esModule"||v in n&&n[v]===vn[v]||Object.defineProperty(n,v,{enumerable:!0,get:function(){return vn[v]}})});var un=iW();Object.keys(un).forEach(function(v){v==="default"||v==="__esModule"||v in n&&n[v]===un[v]||Object.defineProperty(n,v,{enumerable:!0,get:function(){return un[v]}})});var Jt=hW();Object.keys(Jt).forEach(function(v){v==="default"||v==="__esModule"||v in n&&n[v]===Jt[v]||Object.defineProperty(n,v,{enumerable:!0,get:function(){return Jt[v]}})});var It=goe();Object.keys(It).forEach(function(v){v==="default"||v==="__esModule"||v in n&&n[v]===It[v]||Object.defineProperty(n,v,{enumerable:!0,get:function(){return It[v]}})});var Ct=poe();Object.keys(Ct).forEach(function(v){v==="default"||v==="__esModule"||v in n&&n[v]===Ct[v]||Object.defineProperty(n,v,{enumerable:!0,get:function(){return Ct[v]}})});var Ge=pW();Object.keys(Ge).forEach(function(v){v==="default"||v==="__esModule"||v in n&&n[v]===Ge[v]||Object.defineProperty(n,v,{enumerable:!0,get:function(){return Ge[v]}})});var ot=moe();Object.keys(ot).forEach(function(v){v==="default"||v==="__esModule"||v in n&&n[v]===ot[v]||Object.defineProperty(n,v,{enumerable:!0,get:function(){return ot[v]}})});var it=mW();Object.keys(it).forEach(function(v){v==="default"||v==="__esModule"||v in n&&n[v]===it[v]||Object.defineProperty(n,v,{enumerable:!0,get:function(){return it[v]}})});var nt=JM();Object.keys(nt).forEach(function(v){v==="default"||v==="__esModule"||v in n&&n[v]===nt[v]||Object.defineProperty(n,v,{enumerable:!0,get:function(){return nt[v]}})});var gt=Nl();Object.keys(gt).forEach(function(v){v==="default"||v==="__esModule"||v in n&&n[v]===gt[v]||Object.defineProperty(n,v,{enumerable:!0,get:function(){return gt[v]}})});var jt=voe();Object.keys(jt).forEach(function(v){v==="default"||v==="__esModule"||v in n&&n[v]===jt[v]||Object.defineProperty(n,v,{enumerable:!0,get:function(){return jt[v]}})});var rn=boe();Object.keys(rn).forEach(function(v){v==="default"||v==="__esModule"||v in n&&n[v]===rn[v]||Object.defineProperty(n,v,{enumerable:!0,get:function(){return rn[v]}})});var en=yoe();Object.keys(en).forEach(function(v){v==="default"||v==="__esModule"||v in n&&n[v]===en[v]||Object.defineProperty(n,v,{enumerable:!0,get:function(){return en[v]}})});var dr=xoe();Object.keys(dr).forEach(function(v){v==="default"||v==="__esModule"||v in n&&n[v]===dr[v]||Object.defineProperty(n,v,{enumerable:!0,get:function(){return dr[v]}})});var fr=woe();Object.keys(fr).forEach(function(v){v==="default"||v==="__esModule"||v in n&&n[v]===fr[v]||Object.defineProperty(n,v,{enumerable:!0,get:function(){return fr[v]}})});var zt=Zj();Object.keys(zt).forEach(function(v){v==="default"||v==="__esModule"||v in n&&n[v]===zt[v]||Object.defineProperty(n,v,{enumerable:!0,get:function(){return zt[v]}})});var Gt=Soe();Object.keys(Gt).forEach(function(v){v==="default"||v==="__esModule"||v in n&&n[v]===Gt[v]||Object.defineProperty(n,v,{enumerable:!0,get:function(){return Gt[v]}})});var Sn=Coe();Object.keys(Sn).forEach(function(v){v==="default"||v==="__esModule"||v in n&&n[v]===Sn[v]||Object.defineProperty(n,v,{enumerable:!0,get:function(){return Sn[v]}})});var sn=Ooe();Object.keys(sn).forEach(function(v){v==="default"||v==="__esModule"||v in n&&n[v]===sn[v]||Object.defineProperty(n,v,{enumerable:!0,get:function(){return sn[v]}})});var Pn=tD();Object.keys(Pn).forEach(function(v){v==="default"||v==="__esModule"||v in n&&n[v]===Pn[v]||Object.defineProperty(n,v,{enumerable:!0,get:function(){return Pn[v]}})});var Ln=Eoe();Object.keys(Ln).forEach(function(v){v==="default"||v==="__esModule"||v in n&&n[v]===Ln[v]||Object.defineProperty(n,v,{enumerable:!0,get:function(){return Ln[v]}})});var Cn=Uv();Object.keys(Cn).forEach(function(v){v==="default"||v==="__esModule"||v in n&&n[v]===Cn[v]||Object.defineProperty(n,v,{enumerable:!0,get:function(){return Cn[v]}})});var Et=Moe();Object.keys(Et).forEach(function(v){v==="default"||v==="__esModule"||v in n&&n[v]===Et[v]||Object.defineProperty(n,v,{enumerable:!0,get:function(){return Et[v]}})});var Qn=Doe();Object.keys(Qn).forEach(function(v){v==="default"||v==="__esModule"||v in n&&n[v]===Qn[v]||Object.defineProperty(n,v,{enumerable:!0,get:function(){return Qn[v]}})});var Bn=_oe();Object.keys(Bn).forEach(function(v){v==="default"||v==="__esModule"||v in n&&n[v]===Bn[v]||Object.defineProperty(n,v,{enumerable:!0,get:function(){return Bn[v]}})});var qn=Aoe();Object.keys(qn).forEach(function(v){v==="default"||v==="__esModule"||v in n&&n[v]===qn[v]||Object.defineProperty(n,v,{enumerable:!0,get:function(){return qn[v]}})});var Rt=Toe();Object.keys(Rt).forEach(function(v){v==="default"||v==="__esModule"||v in n&&n[v]===Rt[v]||Object.defineProperty(n,v,{enumerable:!0,get:function(){return Rt[v]}})});var Pr=Roe();Object.keys(Pr).forEach(function(v){v==="default"||v==="__esModule"||v in n&&n[v]===Pr[v]||Object.defineProperty(n,v,{enumerable:!0,get:function(){return Pr[v]}})});var Lr=Poe();Object.keys(Lr).forEach(function(v){v==="default"||v==="__esModule"||v in n&&n[v]===Lr[v]||Object.defineProperty(n,v,{enumerable:!0,get:function(){return Lr[v]}})});var rr=Loe();Object.keys(rr).forEach(function(v){v==="default"||v==="__esModule"||v in n&&n[v]===rr[v]||Object.defineProperty(n,v,{enumerable:!0,get:function(){return rr[v]}})});var ar=Noe();Object.keys(ar).forEach(function(v){v==="default"||v==="__esModule"||v in n&&n[v]===ar[v]||Object.defineProperty(n,v,{enumerable:!0,get:function(){return ar[v]}})});var ir=Ioe();Object.keys(ir).forEach(function(v){v==="default"||v==="__esModule"||v in n&&n[v]===ir[v]||Object.defineProperty(n,v,{enumerable:!0,get:function(){return ir[v]}})});var Sr=$oe();Object.keys(Sr).forEach(function(v){v==="default"||v==="__esModule"||v in n&&n[v]===Sr[v]||Object.defineProperty(n,v,{enumerable:!0,get:function(){return Sr[v]}})});var Yn=Uj();Object.keys(Yn).forEach(function(v){v==="default"||v==="__esModule"||v in n&&n[v]===Yn[v]||Object.defineProperty(n,v,{enumerable:!0,get:function(){return Yn[v]}})});var Xr=Foe();Object.keys(Xr).forEach(function(v){v==="default"||v==="__esModule"||v in n&&n[v]===Xr[v]||Object.defineProperty(n,v,{enumerable:!0,get:function(){return Xr[v]}})});var sr=koe();Object.keys(sr).forEach(function(v){v==="default"||v==="__esModule"||v in n&&n[v]===sr[v]||Object.defineProperty(n,v,{enumerable:!0,get:function(){return sr[v]}})});var Xn=Hoe();Object.keys(Xn).forEach(function(v){v==="default"||v==="__esModule"||v in n&&n[v]===Xn[v]||Object.defineProperty(n,v,{enumerable:!0,get:function(){return Xn[v]}})});var Nr=zoe();Object.keys(Nr).forEach(function(v){v==="default"||v==="__esModule"||v in n&&n[v]===Nr[v]||Object.defineProperty(n,v,{enumerable:!0,get:function(){return Nr[v]}})});var hr=Boe();Object.keys(hr).forEach(function(v){v==="default"||v==="__esModule"||v in n&&n[v]===hr[v]||Object.defineProperty(n,v,{enumerable:!0,get:function(){return hr[v]}})});var aa=Jj();Object.keys(aa).forEach(function(v){v==="default"||v==="__esModule"||v in n&&n[v]===aa[v]||Object.defineProperty(n,v,{enumerable:!0,get:function(){return aa[v]}})});var Ir=gW();Object.keys(Ir).forEach(function(v){v==="default"||v==="__esModule"||v in n&&n[v]===Ir[v]||Object.defineProperty(n,v,{enumerable:!0,get:function(){return Ir[v]}})});var on=xle();Object.keys(on).forEach(function(v){v==="default"||v==="__esModule"||v in n&&n[v]===on[v]||Object.defineProperty(n,v,{enumerable:!0,get:function(){return on[v]}})});var gr=wle();Object.keys(gr).forEach(function(v){v==="default"||v==="__esModule"||v in n&&n[v]===gr[v]||Object.defineProperty(n,v,{enumerable:!0,get:function(){return gr[v]}})});var Cr=Sle();Object.keys(Cr).forEach(function(v){v==="default"||v==="__esModule"||v in n&&n[v]===Cr[v]||Object.defineProperty(n,v,{enumerable:!0,get:function(){return Cr[v]}})});var Kn=Qh();Object.keys(Kn).forEach(function(v){v==="default"||v==="__esModule"||v in n&&n[v]===Kn[v]||Object.defineProperty(n,v,{enumerable:!0,get:function(){return Kn[v]}})});var Vr=EW();Object.keys(Vr).forEach(function(v){v==="default"||v==="__esModule"||v in n&&n[v]===Vr[v]||Object.defineProperty(n,v,{enumerable:!0,get:function(){return Vr[v]}})});var Ur=MW();Object.keys(Ur).forEach(function(v){v==="default"||v==="__esModule"||v in n&&n[v]===Ur[v]||Object.defineProperty(n,v,{enumerable:!0,get:function(){return Ur[v]}})});var fa=Cle();Object.keys(fa).forEach(function(v){v==="default"||v==="__esModule"||v in n&&n[v]===fa[v]||Object.defineProperty(n,v,{enumerable:!0,get:function(){return fa[v]}})});var In=_W();Object.keys(In).forEach(function(v){v==="default"||v==="__esModule"||v in n&&n[v]===In[v]||Object.defineProperty(n,v,{enumerable:!0,get:function(){return In[v]}})});var Gr=AW();Object.keys(Gr).forEach(function(v){v==="default"||v==="__esModule"||v in n&&n[v]===Gr[v]||Object.defineProperty(n,v,{enumerable:!0,get:function(){return Gr[v]}})});var pt=TW();Object.keys(pt).forEach(function(v){v==="default"||v==="__esModule"||v in n&&n[v]===pt[v]||Object.defineProperty(n,v,{enumerable:!0,get:function(){return pt[v]}})});var lt=PW();Object.keys(lt).forEach(function(v){v==="default"||v==="__esModule"||v in n&&n[v]===lt[v]||Object.defineProperty(n,v,{enumerable:!0,get:function(){return lt[v]}})});var gn=nD();Object.keys(gn).forEach(function(v){v==="default"||v==="__esModule"||v in n&&n[v]===gn[v]||Object.defineProperty(n,v,{enumerable:!0,get:function(){return gn[v]}})});var Jn=LW();Object.keys(Jn).forEach(function(v){v==="default"||v==="__esModule"||v in n&&n[v]===Jn[v]||Object.defineProperty(n,v,{enumerable:!0,get:function(){return Jn[v]}})});var ia=Fj();Object.keys(ia).forEach(function(v){v==="default"||v==="__esModule"||v in n&&n[v]===ia[v]||Object.defineProperty(n,v,{enumerable:!0,get:function(){return ia[v]}})});var $r=kj();Object.keys($r).forEach(function(v){v==="default"||v==="__esModule"||v in n&&n[v]===$r[v]||Object.defineProperty(n,v,{enumerable:!0,get:function(){return $r[v]}})});var si=Ole();Object.keys(si).forEach(function(v){v==="default"||v==="__esModule"||v in n&&n[v]===si[v]||Object.defineProperty(n,v,{enumerable:!0,get:function(){return si[v]}})});var za=Ele();Object.keys(za).forEach(function(v){v==="default"||v==="__esModule"||v in n&&n[v]===za[v]||Object.defineProperty(n,v,{enumerable:!0,get:function(){return za[v]}})});var Mt=Mle();Object.keys(Mt).forEach(function(v){v==="default"||v==="__esModule"||v in n&&n[v]===Mt[v]||Object.defineProperty(n,v,{enumerable:!0,get:function(){return Mt[v]}})});var Ke=Dle();Object.keys(Ke).forEach(function(v){v==="default"||v==="__esModule"||v in n&&n[v]===Ke[v]||Object.defineProperty(n,v,{enumerable:!0,get:function(){return Ke[v]}})});var xt=_le();Object.keys(xt).forEach(function(v){v==="default"||v==="__esModule"||v in n&&n[v]===xt[v]||Object.defineProperty(n,v,{enumerable:!0,get:function(){return xt[v]}})});var an=Ale();Object.keys(an).forEach(function(v){v==="default"||v==="__esModule"||v in n&&n[v]===an[v]||Object.defineProperty(n,v,{enumerable:!0,get:function(){return an[v]}})});var $t=Tle();Object.keys($t).forEach(function(v){v==="default"||v==="__esModule"||v in n&&n[v]===$t[v]||Object.defineProperty(n,v,{enumerable:!0,get:function(){return $t[v]}})});var Zr=Rle();Object.keys(Zr).forEach(function(v){v==="default"||v==="__esModule"||v in n&&n[v]===Zr[v]||Object.defineProperty(n,v,{enumerable:!0,get:function(){return Zr[v]}})});var Oa=Ple();Object.keys(Oa).forEach(function(v){v==="default"||v==="__esModule"||v in n&&n[v]===Oa[v]||Object.defineProperty(n,v,{enumerable:!0,get:function(){return Oa[v]}})});var or=Lle();Object.keys(or).forEach(function(v){v==="default"||v==="__esModule"||v in n&&n[v]===or[v]||Object.defineProperty(n,v,{enumerable:!0,get:function(){return or[v]}})});var pr=Nle();Object.keys(pr).forEach(function(v){v==="default"||v==="__esModule"||v in n&&n[v]===pr[v]||Object.defineProperty(n,v,{enumerable:!0,get:function(){return pr[v]}})});var Ba=Ile();Object.keys(Ba).forEach(function(v){v==="default"||v==="__esModule"||v in n&&n[v]===Ba[v]||Object.defineProperty(n,v,{enumerable:!0,get:function(){return Ba[v]}})});var Ya=_o();Object.keys(Ya).forEach(function(v){v==="default"||v==="__esModule"||v in n&&n[v]===Ya[v]||Object.defineProperty(n,v,{enumerable:!0,get:function(){return Ya[v]}})});var Di=$le();Object.keys(Di).forEach(function(v){v==="default"||v==="__esModule"||v in n&&n[v]===Di[v]||Object.defineProperty(n,v,{enumerable:!0,get:function(){return Di[v]}})});var Ea=Bv();Object.keys(Ea).forEach(function(v){v==="default"||v==="__esModule"||v in n&&n[v]===Ea[v]||Object.defineProperty(n,v,{enumerable:!0,get:function(){return Ea[v]}})});var Fr=Fle();Object.keys(Fr).forEach(function(v){v==="default"||v==="__esModule"||v in n&&n[v]===Fr[v]||Object.defineProperty(n,v,{enumerable:!0,get:function(){return Fr[v]}})});var Ye=kle();Object.keys(Ye).forEach(function(v){v==="default"||v==="__esModule"||v in n&&n[v]===Ye[v]||Object.defineProperty(n,v,{enumerable:!0,get:function(){return Ye[v]}})});var dt=Hle();Object.keys(dt).forEach(function(v){v==="default"||v==="__esModule"||v in n&&n[v]===dt[v]||Object.defineProperty(n,v,{enumerable:!0,get:function(){return dt[v]}})});var Wt=zle();Object.keys(Wt).forEach(function(v){v==="default"||v==="__esModule"||v in n&&n[v]===Wt[v]||Object.defineProperty(n,v,{enumerable:!0,get:function(){return Wt[v]}})});var An=Ble();Object.keys(An).forEach(function(v){v==="default"||v==="__esModule"||v in n&&n[v]===An[v]||Object.defineProperty(n,v,{enumerable:!0,get:function(){return An[v]}})});var dn=vW();Object.keys(dn).forEach(function(v){v==="default"||v==="__esModule"||v in n&&n[v]===dn[v]||Object.defineProperty(n,v,{enumerable:!0,get:function(){return dn[v]}})});var oi=Yle();Object.keys(oi).forEach(function(v){v==="default"||v==="__esModule"||v in n&&n[v]===oi[v]||Object.defineProperty(n,v,{enumerable:!0,get:function(){return oi[v]}})});var ja=NW();Object.keys(ja).forEach(function(v){v==="default"||v==="__esModule"||v in n&&n[v]===ja[v]||Object.defineProperty(n,v,{enumerable:!0,get:function(){return ja[v]}})});var li=jle();Object.keys(li).forEach(function(v){v==="default"||v==="__esModule"||v in n&&n[v]===li[v]||Object.defineProperty(n,v,{enumerable:!0,get:function(){return li[v]}})});var ci=Wle();Object.keys(ci).forEach(function(v){v==="default"||v==="__esModule"||v in n&&n[v]===ci[v]||Object.defineProperty(n,v,{enumerable:!0,get:function(){return ci[v]}})});var Or=qj();Object.keys(Or).forEach(function(v){v==="default"||v==="__esModule"||v in n&&n[v]===Or[v]||Object.defineProperty(n,v,{enumerable:!0,get:function(){return Or[v]}})});var ui=qle();Object.keys(ui).forEach(function(v){v==="default"||v==="__esModule"||v in n&&n[v]===ui[v]||Object.defineProperty(n,v,{enumerable:!0,get:function(){return ui[v]}})});var Ns=Xle();Object.keys(Ns).forEach(function(v){v==="default"||v==="__esModule"||v in n&&n[v]===Ns[v]||Object.defineProperty(n,v,{enumerable:!0,get:function(){return Ns[v]}})});var Ki=Vle();Object.keys(Ki).forEach(function(v){v==="default"||v==="__esModule"||v in n&&n[v]===Ki[v]||Object.defineProperty(n,v,{enumerable:!0,get:function(){return Ki[v]}})});var Ru=Ule();Object.keys(Ru).forEach(function(v){v==="default"||v==="__esModule"||v in n&&n[v]===Ru[v]||Object.defineProperty(n,v,{enumerable:!0,get:function(){return Ru[v]}})});var Po=Xj();Object.keys(Po).forEach(function(v){v==="default"||v==="__esModule"||v in n&&n[v]===Po[v]||Object.defineProperty(n,v,{enumerable:!0,get:function(){return Po[v]}})});var Lo=Gle();Object.keys(Lo).forEach(function(v){v==="default"||v==="__esModule"||v in n&&n[v]===Lo[v]||Object.defineProperty(n,v,{enumerable:!0,get:function(){return Lo[v]}})});var Ji=Zle();Object.keys(Ji).forEach(function(v){v==="default"||v==="__esModule"||v in n&&n[v]===Ji[v]||Object.defineProperty(n,v,{enumerable:!0,get:function(){return Ji[v]}})});var Is=Qle();Object.keys(Is).forEach(function(v){v==="default"||v==="__esModule"||v in n&&n[v]===Is[v]||Object.defineProperty(n,v,{enumerable:!0,get:function(){return Is[v]}})});var $l=Kle();Object.keys($l).forEach(function(v){v==="default"||v==="__esModule"||v in n&&n[v]===$l[v]||Object.defineProperty(n,v,{enumerable:!0,get:function(){return $l[v]}})});var Pu=Jle();Object.keys(Pu).forEach(function(v){v==="default"||v==="__esModule"||v in n&&n[v]===Pu[v]||Object.defineProperty(n,v,{enumerable:!0,get:function(){return Pu[v]}})});var Lu=To();Object.keys(Lu).forEach(function(v){v==="default"||v==="__esModule"||v in n&&n[v]===Lu[v]||Object.defineProperty(n,v,{enumerable:!0,get:function(){return Lu[v]}})});var Nu=ece();Object.keys(Nu).forEach(function(v){v==="default"||v==="__esModule"||v in n&&n[v]===Nu[v]||Object.defineProperty(n,v,{enumerable:!0,get:function(){return Nu[v]}})});var No=tce();Object.keys(No).forEach(function(v){v==="default"||v==="__esModule"||v in n&&n[v]===No[v]||Object.defineProperty(n,v,{enumerable:!0,get:function(){return No[v]}})});var Iu=nce();Object.keys(Iu).forEach(function(v){v==="default"||v==="__esModule"||v in n&&n[v]===Iu[v]||Object.defineProperty(n,v,{enumerable:!0,get:function(){return Iu[v]}})});var $u=rce();Object.keys($u).forEach(function(v){v==="default"||v==="__esModule"||v in n&&n[v]===$u[v]||Object.defineProperty(n,v,{enumerable:!0,get:function(){return $u[v]}})});var Fu=ace();Object.keys(Fu).forEach(function(v){v==="default"||v==="__esModule"||v in n&&n[v]===Fu[v]||Object.defineProperty(n,v,{enumerable:!0,get:function(){return Fu[v]}})});var ku=ice();Object.keys(ku).forEach(function(v){v==="default"||v==="__esModule"||v in n&&n[v]===ku[v]||Object.defineProperty(n,v,{enumerable:!0,get:function(){return ku[v]}})});var Hu=sce();Object.keys(Hu).forEach(function(v){v==="default"||v==="__esModule"||v in n&&n[v]===Hu[v]||Object.defineProperty(n,v,{enumerable:!0,get:function(){return Hu[v]}})});var Fl=CW();Object.keys(Fl).forEach(function(v){v==="default"||v==="__esModule"||v in n&&n[v]===Fl[v]||Object.defineProperty(n,v,{enumerable:!0,get:function(){return Fl[v]}})});var zu=oce();Object.keys(zu).forEach(function(v){v==="default"||v==="__esModule"||v in n&&n[v]===zu[v]||Object.defineProperty(n,v,{enumerable:!0,get:function(){return zu[v]}})});var Bu=lce();Object.keys(Bu).forEach(function(v){v==="default"||v==="__esModule"||v in n&&n[v]===Bu[v]||Object.defineProperty(n,v,{enumerable:!0,get:function(){return Bu[v]}})});var Yu=Ro();Object.keys(Yu).forEach(function(v){v==="default"||v==="__esModule"||v in n&&n[v]===Yu[v]||Object.defineProperty(n,v,{enumerable:!0,get:function(){return Yu[v]}})});var ju=cce();Object.keys(ju).forEach(function(v){v==="default"||v==="__esModule"||v in n&&n[v]===ju[v]||Object.defineProperty(n,v,{enumerable:!0,get:function(){return ju[v]}})});var Io=uce();Object.keys(Io).forEach(function(v){v==="default"||v==="__esModule"||v in n&&n[v]===Io[v]||Object.defineProperty(n,v,{enumerable:!0,get:function(){return Io[v]}})});var Wu=dce();Object.keys(Wu).forEach(function(v){v==="default"||v==="__esModule"||v in n&&n[v]===Wu[v]||Object.defineProperty(n,v,{enumerable:!0,get:function(){return Wu[v]}})});var qu=fce();Object.keys(qu).forEach(function(v){v==="default"||v==="__esModule"||v in n&&n[v]===qu[v]||Object.defineProperty(n,v,{enumerable:!0,get:function(){return qu[v]}})});var Xu=hce();Object.keys(Xu).forEach(function(v){v==="default"||v==="__esModule"||v in n&&n[v]===Xu[v]||Object.defineProperty(n,v,{enumerable:!0,get:function(){return Xu[v]}})});var kl=gce();Object.keys(kl).forEach(function(v){v==="default"||v==="__esModule"||v in n&&n[v]===kl[v]||Object.defineProperty(n,v,{enumerable:!0,get:function(){return kl[v]}})});var Vu=pce();Object.keys(Vu).forEach(function(v){v==="default"||v==="__esModule"||v in n&&n[v]===Vu[v]||Object.defineProperty(n,v,{enumerable:!0,get:function(){return Vu[v]}})});var Uu=mce();Object.keys(Uu).forEach(function(v){v==="default"||v==="__esModule"||v in n&&n[v]===Uu[v]||Object.defineProperty(n,v,{enumerable:!0,get:function(){return Uu[v]}})});var Gu=vce();Object.keys(Gu).forEach(function(v){v==="default"||v==="__esModule"||v in n&&n[v]===Gu[v]||Object.defineProperty(n,v,{enumerable:!0,get:function(){return Gu[v]}})});var Zu=bce();Object.keys(Zu).forEach(function(v){v==="default"||v==="__esModule"||v in n&&n[v]===Zu[v]||Object.defineProperty(n,v,{enumerable:!0,get:function(){return Zu[v]}})});var Qu=yce();Object.keys(Qu).forEach(function(v){v==="default"||v==="__esModule"||v in n&&n[v]===Qu[v]||Object.defineProperty(n,v,{enumerable:!0,get:function(){return Qu[v]}})});var Ku=xce();Object.keys(Ku).forEach(function(v){v==="default"||v==="__esModule"||v in n&&n[v]===Ku[v]||Object.defineProperty(n,v,{enumerable:!0,get:function(){return Ku[v]}})});var Ju=wce();Object.keys(Ju).forEach(function(v){v==="default"||v==="__esModule"||v in n&&n[v]===Ju[v]||Object.defineProperty(n,v,{enumerable:!0,get:function(){return Ju[v]}})});var ed=Sce();Object.keys(ed).forEach(function(v){v==="default"||v==="__esModule"||v in n&&n[v]===ed[v]||Object.defineProperty(n,v,{enumerable:!0,get:function(){return ed[v]}})});var td=Cce();Object.keys(td).forEach(function(v){v==="default"||v==="__esModule"||v in n&&n[v]===td[v]||Object.defineProperty(n,v,{enumerable:!0,get:function(){return td[v]}})});var $o=Oce();Object.keys($o).forEach(function(v){v==="default"||v==="__esModule"||v in n&&n[v]===$o[v]||Object.defineProperty(n,v,{enumerable:!0,get:function(){return $o[v]}})});var es=Zv();Object.keys(es).forEach(function(v){v==="default"||v==="__esModule"||v in n&&n[v]===es[v]||Object.defineProperty(n,v,{enumerable:!0,get:function(){return es[v]}})});var nd=Ece();Object.keys(nd).forEach(function(v){v==="default"||v==="__esModule"||v in n&&n[v]===nd[v]||Object.defineProperty(n,v,{enumerable:!0,get:function(){return nd[v]}})});var Hl=Mce();Object.keys(Hl).forEach(function(v){v==="default"||v==="__esModule"||v in n&&n[v]===Hl[v]||Object.defineProperty(n,v,{enumerable:!0,get:function(){return Hl[v]}})});var zl=Dce();Object.keys(zl).forEach(function(v){v==="default"||v==="__esModule"||v in n&&n[v]===zl[v]||Object.defineProperty(n,v,{enumerable:!0,get:function(){return zl[v]}})});var Bl=SW();Object.keys(Bl).forEach(function(v){v==="default"||v==="__esModule"||v in n&&n[v]===Bl[v]||Object.defineProperty(n,v,{enumerable:!0,get:function(){return Bl[v]}})});var Yl=wW();Object.keys(Yl).forEach(function(v){v==="default"||v==="__esModule"||v in n&&n[v]===Yl[v]||Object.defineProperty(n,v,{enumerable:!0,get:function(){return Yl[v]}})});var jl=Bj();Object.keys(jl).forEach(function(v){v==="default"||v==="__esModule"||v in n&&n[v]===jl[v]||Object.defineProperty(n,v,{enumerable:!0,get:function(){return jl[v]}})});var _i=_ce();Object.keys(_i).forEach(function(v){v==="default"||v==="__esModule"||v in n&&n[v]===_i[v]||Object.defineProperty(n,v,{enumerable:!0,get:function(){return _i[v]}})});var rd=Ace();Object.keys(rd).forEach(function(v){v==="default"||v==="__esModule"||v in n&&n[v]===rd[v]||Object.defineProperty(n,v,{enumerable:!0,get:function(){return rd[v]}})});var ad=rD();Object.keys(ad).forEach(function(v){v==="default"||v==="__esModule"||v in n&&n[v]===ad[v]||Object.defineProperty(n,v,{enumerable:!0,get:function(){return ad[v]}})});var id=Tce();Object.keys(id).forEach(function(v){v==="default"||v==="__esModule"||v in n&&n[v]===id[v]||Object.defineProperty(n,v,{enumerable:!0,get:function(){return id[v]}})});var Wl=Rce();Object.keys(Wl).forEach(function(v){v==="default"||v==="__esModule"||v in n&&n[v]===Wl[v]||Object.defineProperty(n,v,{enumerable:!0,get:function(){return Wl[v]}})});var ql=xW();Object.keys(ql).forEach(function(v){v==="default"||v==="__esModule"||v in n&&n[v]===ql[v]||Object.defineProperty(n,v,{enumerable:!0,get:function(){return ql[v]}})});var ts=Pce();Object.keys(ts).forEach(function(v){v==="default"||v==="__esModule"||v in n&&n[v]===ts[v]||Object.defineProperty(n,v,{enumerable:!0,get:function(){return ts[v]}})});var ns=Lce();Object.keys(ns).forEach(function(v){v==="default"||v==="__esModule"||v in n&&n[v]===ns[v]||Object.defineProperty(n,v,{enumerable:!0,get:function(){return ns[v]}})});var sd=jv();Object.keys(sd).forEach(function(v){v==="default"||v==="__esModule"||v in n&&n[v]===sd[v]||Object.defineProperty(n,v,{enumerable:!0,get:function(){return sd[v]}})});var $s=Nce();Object.keys($s).forEach(function(v){v==="default"||v==="__esModule"||v in n&&n[v]===$s[v]||Object.defineProperty(n,v,{enumerable:!0,get:function(){return $s[v]}})});var Xl=OW();Object.keys(Xl).forEach(function(v){v==="default"||v==="__esModule"||v in n&&n[v]===Xl[v]||Object.defineProperty(n,v,{enumerable:!0,get:function(){return Xl[v]}})});var Vl=Ps();Object.keys(Vl).forEach(function(v){v==="default"||v==="__esModule"||v in n&&n[v]===Vl[v]||Object.defineProperty(n,v,{enumerable:!0,get:function(){return Vl[v]}})});var Fo=Zh();Object.keys(Fo).forEach(function(v){v==="default"||v==="__esModule"||v in n&&n[v]===Fo[v]||Object.defineProperty(n,v,{enumerable:!0,get:function(){return Fo[v]}})});var ko=DW();Object.keys(ko).forEach(function(v){v==="default"||v==="__esModule"||v in n&&n[v]===ko[v]||Object.defineProperty(n,v,{enumerable:!0,get:function(){return ko[v]}})});var Ul=Vv();Object.keys(Ul).forEach(function(v){v==="default"||v==="__esModule"||v in n&&n[v]===Ul[v]||Object.defineProperty(n,v,{enumerable:!0,get:function(){return Ul[v]}})});var Gl=ZM();Object.keys(Gl).forEach(function(v){v==="default"||v==="__esModule"||v in n&&n[v]===Gl[v]||Object.defineProperty(n,v,{enumerable:!0,get:function(){return Gl[v]}})});var Zl=RW();Object.keys(Zl).forEach(function(v){v==="default"||v==="__esModule"||v in n&&n[v]===Zl[v]||Object.defineProperty(n,v,{enumerable:!0,get:function(){return Zl[v]}})});var od=Ice();Object.keys(od).forEach(function(v){v==="default"||v==="__esModule"||v in n&&n[v]===od[v]||Object.defineProperty(n,v,{enumerable:!0,get:function(){return od[v]}})});var ld=$ce();Object.keys(ld).forEach(function(v){v==="default"||v==="__esModule"||v in n&&n[v]===ld[v]||Object.defineProperty(n,v,{enumerable:!0,get:function(){return ld[v]}})});var cd=Qi();Object.keys(cd).forEach(function(v){v==="default"||v==="__esModule"||v in n&&n[v]===cd[v]||Object.defineProperty(n,v,{enumerable:!0,get:function(){return cd[v]}})});var ud=eD();Object.keys(ud).forEach(function(v){v==="default"||v==="__esModule"||v in n&&n[v]===ud[v]||Object.defineProperty(n,v,{enumerable:!0,get:function(){return ud[v]}})});var dd=KM();Object.keys(dd).forEach(function(v){v==="default"||v==="__esModule"||v in n&&n[v]===dd[v]||Object.defineProperty(n,v,{enumerable:!0,get:function(){return dd[v]}})});var kr=Fce();Object.keys(kr).forEach(function(v){v==="default"||v==="__esModule"||v in n&&n[v]===kr[v]||Object.defineProperty(n,v,{enumerable:!0,get:function(){return kr[v]}})});var rs=kce();Object.keys(rs).forEach(function(v){v==="default"||v==="__esModule"||v in n&&n[v]===rs[v]||Object.defineProperty(n,v,{enumerable:!0,get:function(){return rs[v]}})});var Ql=Hce();Object.keys(Ql).forEach(function(v){v==="default"||v==="__esModule"||v in n&&n[v]===Ql[v]||Object.defineProperty(n,v,{enumerable:!0,get:function(){return Ql[v]}})});var Kl=Qv();Object.keys(Kl).forEach(function(v){v==="default"||v==="__esModule"||v in n&&n[v]===Kl[v]||Object.defineProperty(n,v,{enumerable:!0,get:function(){return Kl[v]}})});var Jl=zce();Object.keys(Jl).forEach(function(v){v==="default"||v==="__esModule"||v in n&&n[v]===Jl[v]||Object.defineProperty(n,v,{enumerable:!0,get:function(){return Jl[v]}})});var ec=Kj();Object.keys(ec).forEach(function(v){v==="default"||v==="__esModule"||v in n&&n[v]===ec[v]||Object.defineProperty(n,v,{enumerable:!0,get:function(){return ec[v]}})});var Ho=Bce();Object.keys(Ho).forEach(function(v){v==="default"||v==="__esModule"||v in n&&n[v]===Ho[v]||Object.defineProperty(n,v,{enumerable:!0,get:function(){return Ho[v]}})});var fd=Yce();Object.keys(fd).forEach(function(v){v==="default"||v==="__esModule"||v in n&&n[v]===fd[v]||Object.defineProperty(n,v,{enumerable:!0,get:function(){return fd[v]}})});var Ai=IW();Object.keys(Ai).forEach(function(v){v==="default"||v==="__esModule"||v in n&&n[v]===Ai[v]||Object.defineProperty(n,v,{enumerable:!0,get:function(){return Ai[v]}})});var zo=jce();Object.keys(zo).forEach(function(v){v==="default"||v==="__esModule"||v in n&&n[v]===zo[v]||Object.defineProperty(n,v,{enumerable:!0,get:function(){return zo[v]}})});var as=Wce();Object.keys(as).forEach(function(v){v==="default"||v==="__esModule"||v in n&&n[v]===as[v]||Object.defineProperty(n,v,{enumerable:!0,get:function(){return as[v]}})});var Bo=qce();Object.keys(Bo).forEach(function(v){v==="default"||v==="__esModule"||v in n&&n[v]===Bo[v]||Object.defineProperty(n,v,{enumerable:!0,get:function(){return Bo[v]}})});var tc=Xce();Object.keys(tc).forEach(function(v){v==="default"||v==="__esModule"||v in n&&n[v]===tc[v]||Object.defineProperty(n,v,{enumerable:!0,get:function(){return tc[v]}})});var di=_e();Object.keys(di).forEach(function(v){v==="default"||v==="__esModule"||v in n&&n[v]===di[v]||Object.defineProperty(n,v,{enumerable:!0,get:function(){return di[v]}})});var Ti=bW();Object.keys(Ti).forEach(function(v){v==="default"||v==="__esModule"||v in n&&n[v]===Ti[v]||Object.defineProperty(n,v,{enumerable:!0,get:function(){return Ti[v]}})});var Yo=Vce();Object.keys(Yo).forEach(function(v){v==="default"||v==="__esModule"||v in n&&n[v]===Yo[v]||Object.defineProperty(n,v,{enumerable:!0,get:function(){return Yo[v]}})});var nc=Uce();Object.keys(nc).forEach(function(v){v==="default"||v==="__esModule"||v in n&&n[v]===nc[v]||Object.defineProperty(n,v,{enumerable:!0,get:function(){return nc[v]}})});var fi=Gce();Object.keys(fi).forEach(function(v){v==="default"||v==="__esModule"||v in n&&n[v]===fi[v]||Object.defineProperty(n,v,{enumerable:!0,get:function(){return fi[v]}})});var rc=Zce();Object.keys(rc).forEach(function(v){v==="default"||v==="__esModule"||v in n&&n[v]===rc[v]||Object.defineProperty(n,v,{enumerable:!0,get:function(){return rc[v]}})})})(Ky)),Ky}var Dk;function Kv(){if(Dk)return ol;Dk=1,Object.defineProperty(ol,"__esModule",{value:!0}),ol.rangeShape=ol.default=void 0;var n=s(ii()),e=a(Gi()),t=a(wo()),r=Il();function a(p){return p&&p.__esModule?p:{default:p}}function i(p){if(typeof WeakMap!="function")return null;var b=new WeakMap,y=new WeakMap;return(i=function(x){return x?y:b})(p)}function s(p,b){if(p&&p.__esModule)return p;if(p===null||typeof p!="object"&&typeof p!="function")return{default:p};var y=i(b);if(y&&y.has(p))return y.get(p);var x={__proto__:null},S=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var C in p)if(C!=="default"&&Object.prototype.hasOwnProperty.call(p,C)){var O=S?Object.getOwnPropertyDescriptor(p,C):null;O&&(O.get||O.set)?Object.defineProperty(x,C,O):x[C]=p[C]}return x.default=p,y&&y.set(p,x),x}function o(){return o=Object.assign?Object.assign.bind():function(p){for(var b=1;b<arguments.length;b++){var y=arguments[b];for(var x in y)Object.prototype.hasOwnProperty.call(y,x)&&(p[x]=y[x])}return p},o.apply(this,arguments)}function l(p,b,y){return b=u(b),b in p?Object.defineProperty(p,b,{value:y,enumerable:!0,configurable:!0,writable:!0}):p[b]=y,p}function u(p){var b=d(p,"string");return typeof b=="symbol"?b:String(b)}function d(p,b){if(typeof p!="object"||!p)return p;var y=p[Symbol.toPrimitive];if(y!==void 0){var x=y.call(p,b);if(typeof x!="object")return x;throw new TypeError("@@toPrimitive must return a primitive value.")}return(b==="string"?String:Number)(p)}let f=class extends n.Component{constructor(b,y){super(b,y),l(this,"handleKeyEvent",x=>{const{day:S,onMouseDown:C,onMouseUp:O}=this.props;[13,32].includes(x.keyCode)&&(x.type==="keydown"?C(S):O(S))}),l(this,"handleMouseEvent",x=>{const{day:S,disabled:C,onPreviewChange:O,onMouseEnter:D,onMouseDown:M,onMouseUp:A}=this.props,T={};if(C){O();return}switch(x.type){case"mouseenter":D(S),O(S),T.hover=!0;break;case"blur":case"mouseleave":T.hover=!1;break;case"mousedown":T.active=!0,M(S);break;case"mouseup":x.stopPropagation(),T.active=!1,A(S);break;case"focus":O(S);break}Object.keys(T).length&&this.setState(T)}),l(this,"getClassNames",()=>{const{isPassive:x,isToday:S,isWeekend:C,isStartOfWeek:O,isEndOfWeek:D,isStartOfMonth:M,isEndOfMonth:A,disabled:T,styles:P}=this.props;return(0,t.default)(P.day,{[P.dayPassive]:x,[P.dayDisabled]:T,[P.dayToday]:S,[P.dayWeekend]:C,[P.dayStartOfWeek]:O,[P.dayEndOfWeek]:D,[P.dayStartOfMonth]:M,[P.dayEndOfMonth]:A,[P.dayHovered]:this.state.hover,[P.dayActive]:this.state.active})}),l(this,"renderPreviewPlaceholder",()=>{const{preview:x,day:S,styles:C}=this.props;if(!x)return null;const O=x.startDate?(0,r.endOfDay)(x.startDate):null,D=x.endDate?(0,r.startOfDay)(x.endDate):null,M=(!O||(0,r.isAfter)(S,O))&&(!D||(0,r.isBefore)(S,D)),A=!M&&(0,r.isSameDay)(S,O),T=!M&&(0,r.isSameDay)(S,D);return n.default.createElement("span",{className:(0,t.default)({[C.dayStartPreview]:A,[C.dayInPreview]:M,[C.dayEndPreview]:T}),style:{color:x.color}})}),l(this,"renderSelectionPlaceholders",()=>{const{styles:x,ranges:S,day:C}=this.props;return this.props.displayMode==="date"?(0,r.isSameDay)(this.props.day,this.props.date)?n.default.createElement("span",{className:x.selected,style:{color:this.props.color}}):null:S.reduce((D,M)=>{let A=M.startDate,T=M.endDate;A&&T&&(0,r.isBefore)(T,A)&&([A,T]=[T,A]),A=A?(0,r.endOfDay)(A):null,T=T?(0,r.startOfDay)(T):null;const P=(!A||(0,r.isAfter)(C,A))&&(!T||(0,r.isBefore)(C,T)),R=!P&&(0,r.isSameDay)(C,A),N=!P&&(0,r.isSameDay)(C,T);return P||R||N?[...D,{isStartEdge:R,isEndEdge:N,isInRange:P,...M}]:D},[]).map((D,M)=>n.default.createElement("span",{key:M,className:(0,t.default)({[x.startEdge]:D.isStartEdge,[x.endEdge]:D.isEndEdge,[x.inRange]:D.isInRange}),style:{color:D.color||this.props.color}}))}),this.state={hover:!1,active:!1}}render(){const{dayContentRenderer:b}=this.props;return n.default.createElement("button",o({type:"button",onMouseEnter:this.handleMouseEvent,onMouseLeave:this.handleMouseEvent,onFocus:this.handleMouseEvent,onMouseDown:this.handleMouseEvent,onMouseUp:this.handleMouseEvent,onBlur:this.handleMouseEvent,onPauseCapture:this.handleMouseEvent,onKeyDown:this.handleKeyEvent,onKeyUp:this.handleKeyEvent,className:this.getClassNames(this.props.styles)},this.props.disabled||this.props.isPassive?{tabIndex:-1}:{},{style:{color:this.props.color}}),this.renderSelectionPlaceholders(),this.renderPreviewPlaceholder(),n.default.createElement("span",{className:this.props.styles.dayNumber},b?.(this.props.day)||n.default.createElement("span",null,(0,r.format)(this.props.day,this.props.dayDisplayFormat))))}};f.defaultProps={};const g=ol.rangeShape=e.default.shape({startDate:e.default.object,endDate:e.default.object,color:e.default.string,key:e.default.string,autoFocus:e.default.bool,disabled:e.default.bool,showDateDisplay:e.default.bool});return f.propTypes={day:e.default.object.isRequired,dayDisplayFormat:e.default.string,date:e.default.object,ranges:e.default.arrayOf(g),preview:e.default.shape({startDate:e.default.object,endDate:e.default.object,color:e.default.string}),onPreviewChange:e.default.func,previewColor:e.default.string,disabled:e.default.bool,isPassive:e.default.bool,isToday:e.default.bool,isWeekend:e.default.bool,isStartOfWeek:e.default.bool,isEndOfWeek:e.default.bool,isStartOfMonth:e.default.bool,isEndOfMonth:e.default.bool,color:e.default.string,displayMode:e.default.oneOf(["dateRange","date"]),styles:e.default.object,onMouseDown:e.default.func,onMouseUp:e.default.func,onMouseEnter:e.default.func,dayContentRenderer:e.default.func},ol.default=f,ol}var Of={},ll={},_k;function Jv(){if(_k)return ll;_k=1,Object.defineProperty(ll,"__esModule",{value:!0}),ll.calcFocusDate=r,ll.findNextRangeIndex=a,ll.generateStyles=s,ll.getMonthDisplayRange=i;var n=t(wo()),e=Il();function t(o){return o&&o.__esModule?o:{default:o}}function r(o,l){const{shownDate:u,date:d,months:f,ranges:g,focusedRange:p,displayMode:b}=l;let y;if(b==="dateRange"){const S=g[p[0]]||{};y={start:S.startDate,end:S.endDate}}else y={start:d,end:d};y.start=(0,e.startOfMonth)(y.start||new Date),y.end=(0,e.endOfMonth)(y.end||y.start);const x=y.start||y.end||u||new Date;return o?(0,e.differenceInCalendarMonths)(y.start,y.end)>f?o:x:u||x}function a(o){let l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:-1;const u=o.findIndex((d,f)=>f>l&&d.autoFocus!==!1&&!d.disabled);return u!==-1?u:o.findIndex(d=>d.autoFocus!==!1&&!d.disabled)}function i(o,l,u){const d=(0,e.startOfMonth)(o,l),f=(0,e.endOfMonth)(o,l),g=(0,e.startOfWeek)(d,l);let p=(0,e.endOfWeek)(f,l);return u&&(0,e.differenceInCalendarDays)(p,g)<=34&&(p=(0,e.addDays)(p,7)),{start:g,end:p,startDateOfMonth:d,endDateOfMonth:f}}function s(o){return o.length?o.filter(u=>!!u).reduce((u,d)=>(Object.keys(d).forEach(f=>{u[f]=(0,n.default)(u[f],d[f])}),u),{}):{}}return ll}var Ak;function Qce(){if(Ak)return Of;Ak=1,Object.defineProperty(Of,"__esModule",{value:!0}),Of.default=void 0;var n=o(ii()),e=i(Gi()),t=o(Kv()),r=Il(),a=Jv();function i(f){return f&&f.__esModule?f:{default:f}}function s(f){if(typeof WeakMap!="function")return null;var g=new WeakMap,p=new WeakMap;return(s=function(b){return b?p:g})(f)}function o(f,g){if(f&&f.__esModule)return f;if(f===null||typeof f!="object"&&typeof f!="function")return{default:f};var p=s(g);if(p&&p.has(f))return p.get(f);var b={__proto__:null},y=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var x in f)if(x!=="default"&&Object.prototype.hasOwnProperty.call(f,x)){var S=y?Object.getOwnPropertyDescriptor(f,x):null;S&&(S.get||S.set)?Object.defineProperty(b,x,S):b[x]=f[x]}return b.default=f,p&&p.set(f,b),b}function l(){return l=Object.assign?Object.assign.bind():function(f){for(var g=1;g<arguments.length;g++){var p=arguments[g];for(var b in p)Object.prototype.hasOwnProperty.call(p,b)&&(f[b]=p[b])}return f},l.apply(this,arguments)}function u(f,g,p){const b=new Date;return n.default.createElement("div",{className:f.weekDays},(0,r.eachDayOfInterval)({start:(0,r.startOfWeek)(b,g),end:(0,r.endOfWeek)(b,g)}).map((y,x)=>n.default.createElement("span",{className:f.weekDay,key:x},(0,r.format)(y,p,g))))}let d=class extends n.PureComponent{render(){const g=new Date,{displayMode:p,focusedRange:b,drag:y,styles:x,disabledDates:S,disabledDay:C}=this.props,O=this.props.minDate&&(0,r.startOfDay)(this.props.minDate),D=this.props.maxDate&&(0,r.endOfDay)(this.props.maxDate),M=(0,a.getMonthDisplayRange)(this.props.month,this.props.dateOptions,this.props.fixedHeight);let A=this.props.ranges;if(p==="dateRange"&&y.status){let{startDate:P,endDate:R}=y.range;A=A.map((N,I)=>I!==b[0]?N:{...N,startDate:P,endDate:R})}const T=this.props.showPreview&&!y.disablePreview;return n.default.createElement("div",{className:x.month,style:this.props.style},this.props.showMonthName?n.default.createElement("div",{className:x.monthName},(0,r.format)(this.props.month,this.props.monthDisplayFormat,this.props.dateOptions)):null,this.props.showWeekDays&&u(x,this.props.dateOptions,this.props.weekdayDisplayFormat),n.default.createElement("div",{className:x.days,onMouseLeave:this.props.onMouseLeave},(0,r.eachDayOfInterval)({start:M.start,end:M.end}).map((P,R)=>{const N=(0,r.isSameDay)(P,M.startDateOfMonth),I=(0,r.isSameDay)(P,M.endDateOfMonth),$=O&&(0,r.isBefore)(P,O)||D&&(0,r.isAfter)(P,D),Y=S.some(H=>(0,r.isSameDay)(H,P)),k=C(P);return n.default.createElement(t.default,l({},this.props,{ranges:A,day:P,preview:T?this.props.preview:null,isWeekend:(0,r.isWeekend)(P,this.props.dateOptions),isToday:(0,r.isSameDay)(P,g),isStartOfWeek:(0,r.isSameDay)(P,(0,r.startOfWeek)(P,this.props.dateOptions)),isEndOfWeek:(0,r.isSameDay)(P,(0,r.endOfWeek)(P,this.props.dateOptions)),isStartOfMonth:N,isEndOfMonth:I,key:R,disabled:$||Y||k,isPassive:!(0,r.isWithinInterval)(P,{start:M.startDateOfMonth,end:M.endDateOfMonth}),styles:x,onMouseDown:this.props.onDragSelectionStart,onMouseUp:this.props.onDragSelectionEnd,onMouseEnter:this.props.onDragSelectionMove,dragRange:y.range,drag:y.status}))})))}};return d.defaultProps={},d.propTypes={style:e.default.object,styles:e.default.object,month:e.default.object,drag:e.default.object,dateOptions:e.default.object,disabledDates:e.default.array,disabledDay:e.default.func,preview:e.default.shape({startDate:e.default.object,endDate:e.default.object}),showPreview:e.default.bool,displayMode:e.default.oneOf(["dateRange","date"]),minDate:e.default.object,maxDate:e.default.object,ranges:e.default.arrayOf(t.rangeShape),focusedRange:e.default.arrayOf(e.default.number),onDragSelectionStart:e.default.func,onDragSelectionEnd:e.default.func,onDragSelectionMove:e.default.func,onMouseLeave:e.default.func,monthDisplayFormat:e.default.string,weekdayDisplayFormat:e.default.string,dayDisplayFormat:e.default.string,showWeekDays:e.default.bool,showMonthName:e.default.bool,fixedHeight:e.default.bool},Of.default=d,Of}var Ef={},Tk;function Kce(){if(Tk)return Ef;Tk=1,Object.defineProperty(Ef,"__esModule",{value:!0}),Ef.default=void 0;var n=s(ii()),e=a(Gi()),t=a(wo()),r=Il();function a(f){return f&&f.__esModule?f:{default:f}}function i(f){if(typeof WeakMap!="function")return null;var g=new WeakMap,p=new WeakMap;return(i=function(b){return b?p:g})(f)}function s(f,g){if(f&&f.__esModule)return f;if(f===null||typeof f!="object"&&typeof f!="function")return{default:f};var p=i(g);if(p&&p.has(f))return p.get(f);var b={__proto__:null},y=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var x in f)if(x!=="default"&&Object.prototype.hasOwnProperty.call(f,x)){var S=y?Object.getOwnPropertyDescriptor(f,x):null;S&&(S.get||S.set)?Object.defineProperty(b,x,S):b[x]=f[x]}return b.default=f,p&&p.set(f,b),b}function o(f,g,p){return g=l(g),g in f?Object.defineProperty(f,g,{value:p,enumerable:!0,configurable:!0,writable:!0}):f[g]=p,f}function l(f){var g=u(f,"string");return typeof g=="symbol"?g:String(g)}function u(f,g){if(typeof f!="object"||!f)return f;var p=f[Symbol.toPrimitive];if(p!==void 0){var b=p.call(f,g);if(typeof b!="object")return b;throw new TypeError("@@toPrimitive must return a primitive value.")}return(g==="string"?String:Number)(f)}let d=class extends n.PureComponent{constructor(g,p){super(g,p),o(this,"onKeyDown",b=>{const{value:y}=this.state;b.key==="Enter"&&this.update(y)}),o(this,"onChange",b=>{this.setState({value:b.target.value,changed:!0,invalid:!1})}),o(this,"onBlur",()=>{const{value:b}=this.state;this.update(b)}),this.state={invalid:!1,changed:!1,value:this.formatDate(g)}}componentDidUpdate(g){const{value:p}=g;(0,r.isEqual)(p,this.props.value)||this.setState({value:this.formatDate(this.props)})}formatDate(g){let{value:p,dateDisplayFormat:b,dateOptions:y}=g;return p&&(0,r.isValid)(p)?(0,r.format)(p,b,y):""}update(g){const{invalid:p,changed:b}=this.state;if(p||!b||!g)return;const{onChange:y,dateDisplayFormat:x,dateOptions:S}=this.props,C=(0,r.parse)(g,x,new Date,S);(0,r.isValid)(C)?this.setState({changed:!1},()=>y(C)):this.setState({invalid:!0})}render(){const{className:g,readOnly:p,placeholder:b,ariaLabel:y,disabled:x,onFocus:S}=this.props,{value:C,invalid:O}=this.state;return n.default.createElement("span",{className:(0,t.default)("rdrDateInput",g)},n.default.createElement("input",{readOnly:p,disabled:x,value:C,placeholder:b,"aria-label":y,onKeyDown:this.onKeyDown,onChange:this.onChange,onBlur:this.onBlur,onFocus:S}),O&&n.default.createElement("span",{className:"rdrWarning"},"⚠"))}};return d.propTypes={value:e.default.object,placeholder:e.default.string,disabled:e.default.bool,readOnly:e.default.bool,dateOptions:e.default.object,dateDisplayFormat:e.default.string,ariaLabel:e.default.string,className:e.default.string,onFocus:e.default.func.isRequired,onChange:e.default.func.isRequired},d.defaultProps={readOnly:!0,disabled:!1,dateDisplayFormat:"MMM D, YYYY"},Ef.default=d,Ef}var im={},Rk;function Jce(){return Rk||(Rk=1,(function(n){(function(e,t){t(n,ii(),Xk())})(typeof globalThis<"u"?globalThis:typeof self<"u"?self:im,function(e,t,r){Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;function a(j){"@babel/helpers - typeof";return a=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(q){return typeof q}:function(q){return q&&typeof Symbol=="function"&&q.constructor===Symbol&&q!==Symbol.prototype?"symbol":typeof q},a(j)}function i(j,q){if(!(j instanceof q))throw new TypeError("Cannot call a class as a function")}function s(j,q){for(var G=0;G<q.length;G++){var U=q[G];U.enumerable=U.enumerable||!1,U.configurable=!0,"value"in U&&(U.writable=!0),Object.defineProperty(j,C(U.key),U)}}function o(j,q,G){return q&&s(j.prototype,q),G&&s(j,G),Object.defineProperty(j,"prototype",{writable:!1}),j}function l(j,q,G){return q=g(q),u(j,f()?Reflect.construct(q,G||[],g(j).constructor):q.apply(j,G))}function u(j,q){if(q&&(a(q)=="object"||typeof q=="function"))return q;if(q!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return d(j)}function d(j){if(j===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return j}function f(){try{var j=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(f=function(){return!!j})()}function g(j){return g=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(q){return q.__proto__||Object.getPrototypeOf(q)},g(j)}function p(j,q){if(typeof q!="function"&&q!==null)throw new TypeError("Super expression must either be null or a function");j.prototype=Object.create(q&&q.prototype,{constructor:{value:j,writable:!0,configurable:!0}}),Object.defineProperty(j,"prototype",{writable:!1}),q&&b(j,q)}function b(j,q){return b=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(G,U){return G.__proto__=U,G},b(j,q)}function y(j,q){var G=Object.keys(j);if(Object.getOwnPropertySymbols){var U=Object.getOwnPropertySymbols(j);q&&(U=U.filter(function(K){return Object.getOwnPropertyDescriptor(j,K).enumerable})),G.push.apply(G,U)}return G}function x(j){for(var q=1;q<arguments.length;q++){var G=arguments[q]!=null?arguments[q]:{};q%2?y(Object(G),!0).forEach(function(U){S(j,U,G[U])}):Object.getOwnPropertyDescriptors?Object.defineProperties(j,Object.getOwnPropertyDescriptors(G)):y(Object(G)).forEach(function(U){Object.defineProperty(j,U,Object.getOwnPropertyDescriptor(G,U))})}return j}function S(j,q,G){return(q=C(q))in j?Object.defineProperty(j,q,{value:G,enumerable:!0,configurable:!0,writable:!0}):j[q]=G,j}function C(j){var q=O(j,"string");return a(q)=="symbol"?q:q+""}function O(j,q){if(a(j)!="object"||!j)return j;var G=j[Symbol.toPrimitive];if(G!==void 0){var U=G.call(j,q);if(a(U)!="object")return U;throw new TypeError("@@toPrimitive must return a primitive value.")}return(q==="string"?String:Number)(j)}var D={x:"clientWidth",y:"clientHeight"},M={x:"clientTop",y:"clientLeft"},A={x:"innerWidth",y:"innerHeight"},T={x:"offsetWidth",y:"offsetHeight"},P={x:"offsetLeft",y:"offsetTop"},R={x:"overflowX",y:"overflowY"},N={x:"scrollWidth",y:"scrollHeight"},I={x:"scrollLeft",y:"scrollTop"},$={x:"width",y:"height"},Y=function(){},k=(function(){if(typeof window>"u")return!1;var j=!1;try{document.createElement("div").addEventListener("test",Y,{get passive(){return j=!0,!1}})}catch{}return j})()?{passive:!0}:!1,H="ReactList failed to reach a stable state.",F=40,B=function(q,G){for(var U in G)if(q[U]!==G[U])return!1;return!0},X=function(q){for(var G=q.props.axis,U=q.getEl(),K=R[G];U=U.parentElement;)switch(window.getComputedStyle(U)[K]){case"auto":case"scroll":case"overlay":return U}return window},Q=function(q){var G=q.props.axis,U=q.scrollParent;return U===window?window[A[G]]:U[D[G]]},z=function(q,G){var U=q.length,K=q.minSize,te=q.type,ne=G.from,ie=G.size,ce=G.itemsPerRow;ie=Math.max(ie,K);var ue=ie%ce;return ue&&(ie+=ce-ue),ie>U&&(ie=U),ne=te==="simple"||!ne?0:Math.max(Math.min(ne,U-ie),0),(ue=ne%ce)&&(ne-=ue,ie+=ue),ne===G.from&&ie===G.size?G:x(x({},G),{},{from:ne,size:ie})},V=e.default=(function(j){function q(G){var U;return i(this,q),U=l(this,q,[G]),U.state=z(G,{itemsPerRow:1,from:G.initialIndex,size:0}),U.cache={},U.cachedScrollPosition=null,U.prevPrevState={},U.unstable=!1,U.updateCounter=0,U}return p(q,j),o(q,[{key:"componentDidMount",value:function(){this.updateFrameAndClearCache=this.updateFrameAndClearCache.bind(this),window.addEventListener("resize",this.updateFrameAndClearCache),this.updateFrame(this.scrollTo.bind(this,this.props.initialIndex))}},{key:"componentDidUpdate",value:function(U){var K=this;if(this.props.axis!==U.axis&&this.clearSizeCache(),!this.unstable){if(++this.updateCounter>F)return this.unstable=!0,console.error(H);this.updateCounterTimeoutId||(this.updateCounterTimeoutId=setTimeout(function(){K.updateCounter=0,delete K.updateCounterTimeoutId},0)),this.updateFrame()}}},{key:"maybeSetState",value:function(U,K){if(B(this.state,U))return K();this.setState(U,K)}},{key:"componentWillUnmount",value:function(){window.removeEventListener("resize",this.updateFrameAndClearCache),this.scrollParent.removeEventListener("scroll",this.updateFrameAndClearCache,k),this.scrollParent.removeEventListener("mousewheel",Y,k)}},{key:"getOffset",value:function(U){var K=this.props.axis,te=U[M[K]]||0,ne=P[K];do te+=U[ne]||0;while(U=U.offsetParent);return te}},{key:"getEl",value:function(){return this.el||this.items}},{key:"getScrollPosition",value:function(){if(typeof this.cachedScrollPosition=="number")return this.cachedScrollPosition;var U=this.scrollParent,K=this.props.axis,te=I[K],ne=U===window?document.body[te]||document.documentElement[te]:U[te],ie=this.getScrollSize()-this.props.scrollParentViewportSizeGetter(this),ce=Math.max(0,Math.min(ne,ie)),ue=this.getEl();return this.cachedScrollPosition=this.getOffset(U)+ce-this.getOffset(ue),this.cachedScrollPosition}},{key:"setScroll",value:function(U){var K=this.scrollParent,te=this.props.axis;if(U+=this.getOffset(this.getEl()),K===window)return window.scrollTo(0,U);U-=this.getOffset(this.scrollParent),K[I[te]]=U}},{key:"getScrollSize",value:function(){var U=this.scrollParent,K=document,te=K.body,ne=K.documentElement,ie=N[this.props.axis];return U===window?Math.max(te[ie],ne[ie]):U[ie]}},{key:"hasDeterminateSize",value:function(){var U=this.props,K=U.itemSizeGetter,te=U.type;return te==="uniform"||K}},{key:"getStartAndEnd",value:function(){var U=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.props.threshold,K=this.getScrollPosition(),te=Math.max(0,K-U),ne=K+this.props.scrollParentViewportSizeGetter(this)+U;return this.hasDeterminateSize()&&(ne=Math.min(ne,this.getSpaceBefore(this.props.length))),{start:te,end:ne}}},{key:"getItemSizeAndItemsPerRow",value:function(){var U=this.props,K=U.axis,te=U.useStaticSize,ne=this.state,ie=ne.itemSize,ce=ne.itemsPerRow;if(te&&ie&&ce)return{itemSize:ie,itemsPerRow:ce};var ue=this.items.children;if(!ue.length)return{};var be=ue[0],me=be[T[K]],ye=Math.abs(me-ie);if((isNaN(ye)||ye>=1)&&(ie=me),!ie)return{};var De=P[K],Ce=be[De];ce=1;for(var Le=ue[ce];Le&&Le[De]===Ce;Le=ue[ce])++ce;return{itemSize:ie,itemsPerRow:ce}}},{key:"clearSizeCache",value:function(){this.cachedScrollPosition=null}},{key:"updateFrameAndClearCache",value:function(U){return this.clearSizeCache(),this.updateFrame(U)}},{key:"updateFrame",value:function(U){switch(this.updateScrollParent(),typeof U!="function"&&(U=Y),this.props.type){case"simple":return this.updateSimpleFrame(U);case"variable":return this.updateVariableFrame(U);case"uniform":return this.updateUniformFrame(U)}}},{key:"updateScrollParent",value:function(){var U=this.scrollParent;this.scrollParent=this.props.scrollParentGetter(this),U!==this.scrollParent&&(U&&(U.removeEventListener("scroll",this.updateFrameAndClearCache),U.removeEventListener("mousewheel",Y)),this.clearSizeCache(),this.scrollParent.addEventListener("scroll",this.updateFrameAndClearCache,k),this.scrollParent.addEventListener("mousewheel",Y,k))}},{key:"updateSimpleFrame",value:function(U){var K=this.getStartAndEnd(),te=K.end,ne=this.items.children,ie=0;if(ne.length){var ce=this.props.axis,ue=ne[0],be=ne[ne.length-1];ie=this.getOffset(be)+be[T[ce]]-this.getOffset(ue)}if(ie>te)return U();var me=this.props,ye=me.pageSize,De=me.length,Ce=Math.min(this.state.size+ye,De);this.maybeSetState({size:Ce},U)}},{key:"updateVariableFrame",value:function(U){this.props.itemSizeGetter||this.cacheSizes();for(var K=this.getStartAndEnd(),te=K.start,ne=K.end,ie=this.props,ce=ie.length,ue=ie.pageSize,be=0,me=0,ye=0,De=ce-1;me<De;){var Ce=this.getSizeOfItem(me);if(Ce==null||be+Ce>te)break;be+=Ce,++me}for(var Le=ce-me;ye<Le&&be<ne;){var Ne=this.getSizeOfItem(me+ye);if(Ne==null){ye=Math.min(ye+ue,Le);break}be+=Ne,++ye}this.maybeSetState(z(this.props,{from:me,itemsPerRow:1,size:ye}),U)}},{key:"updateUniformFrame",value:function(U){var K=this.getItemSizeAndItemsPerRow(),te=K.itemSize,ne=K.itemsPerRow;if(!te||!ne)return U();var ie=this.getStartAndEnd(),ce=ie.start,ue=ie.end,be=z(this.props,{from:Math.floor(ce/te)*ne,size:(Math.ceil((ue-ce)/te)+1)*ne,itemsPerRow:ne}),me=be.from,ye=be.size;return this.maybeSetState({itemsPerRow:ne,from:me,itemSize:te,size:ye},U)}},{key:"getSpaceBefore",value:function(U){var K=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(K[U]!=null)return K[U];var te=this.state,ne=te.itemSize,ie=te.itemsPerRow;if(ne)return K[U]=Math.floor(U/ie)*ne;for(var ce=U;ce>0&&K[--ce]==null;);for(var ue=K[ce]||0,be=ce;be<U;++be){K[be]=ue;var me=this.getSizeOfItem(be);if(me==null)break;ue+=me}return K[U]=ue}},{key:"cacheSizes",value:function(){for(var U=this.cache,K=this.state.from,te=this.items.children,ne=T[this.props.axis],ie=0,ce=te.length;ie<ce;++ie)U[K+ie]=te[ie][ne]}},{key:"getSizeOfItem",value:function(U){var K=this.cache,te=this.items,ne=this.props,ie=ne.axis,ce=ne.itemSizeGetter,ue=ne.itemSizeEstimator,be=ne.type,me=this.state,ye=me.from,De=me.itemSize,Ce=me.size;if(De)return De;if(ce)return ce(U);if(U in K)return K[U];if(be==="simple"&&U>=ye&&U<ye+Ce&&te){var Le=te.children[U-ye];if(Le)return Le[T[ie]]}if(ue)return ue(U,K)}},{key:"scrollTo",value:function(U){U!=null&&this.setScroll(this.getSpaceBefore(U))}},{key:"scrollAround",value:function(U){var K=this.getScrollPosition(),te=this.getSpaceBefore(U),ne=te-this.props.scrollParentViewportSizeGetter(this)+this.getSizeOfItem(U),ie=Math.min(ne,te),ce=Math.max(ne,te);if(K<=ie)return this.setScroll(ie);if(K>ce)return this.setScroll(ce)}},{key:"getVisibleRange",value:function(){for(var U=this.state,K=U.from,te=U.size,ne=this.getStartAndEnd(0),ie=ne.start,ce=ne.end,ue={},be,me,ye=K;ye<K+te;++ye){var De=this.getSpaceBefore(ye,ue),Ce=De+this.getSizeOfItem(ye);be==null&&Ce>ie&&(be=ye),be!=null&&De<ce&&(me=ye)}return[be,me]}},{key:"renderItems",value:function(){for(var U=this,K=this.props,te=K.itemRenderer,ne=K.itemsRenderer,ie=this.state,ce=ie.from,ue=ie.size,be=[],me=0;me<ue;++me)be.push(te(ce+me,me));return ne(be,function(ye){return U.items=ye})}},{key:"render",value:function(){var U=this,K=this.props,te=K.axis,ne=K.length,ie=K.type,ce=K.useTranslate3d,ue=this.state,be=ue.from,me=ue.itemsPerRow,ye=this.renderItems();if(ie==="simple")return ye;var De={position:"relative"},Ce={},Le=Math.ceil(ne/me)*me,Ne=this.getSpaceBefore(Le,Ce);Ne&&(De[$[te]]=Ne,te==="x"&&(De.overflowX="hidden"));var Ve=this.getSpaceBefore(be,Ce),ze=te==="x"?Ve:0,$e=te==="y"?Ve:0,Be=ce?"translate3d(".concat(ze,"px, ").concat($e,"px, 0)"):"translate(".concat(ze,"px, ").concat($e,"px)"),ut={msTransform:Be,WebkitTransform:Be,transform:Be};return(0,r.jsx)("div",{style:De,ref:function(Qe){return U.el=Qe},children:(0,r.jsx)("div",{style:ut,children:ye})})}}],[{key:"getDerivedStateFromProps",value:function(U,K){var te=z(U,K);return te===K?null:te}}])})(t.Component);S(V,"displayName","ReactList"),S(V,"defaultProps",{axis:"y",itemRenderer:function(q,G){return(0,r.jsx)("div",{children:q},G)},itemsRenderer:function(q,G){return(0,r.jsx)("div",{ref:G,children:q})},length:0,minSize:1,pageSize:10,scrollParentGetter:X,scrollParentViewportSizeGetter:Q,threshold:100,type:"simple",useStaticSize:!1,useTranslate3d:!1})})})(im)),im}function eue(n,e){if(n===e)return!0;if(!n||!e)return!1;var t=Object.keys(n),r=Object.keys(e),a=t.length;if(r.length!==a)return!1;for(var i=0;i<a;i++){var s=t[i];if(n[s]!==e[s]||!Object.prototype.hasOwnProperty.call(e,s))return!1}return!0}function tue(n,e){if(n===e)return!0;if(!n||!e)return!1;var t=n.length;if(e.length!==t)return!1;for(var r=0;r<t;r++)if(n[r]!==e[r])return!1;return!0}const nue=Object.freeze(Object.defineProperty({__proto__:null,shallowEqualArrays:tue,shallowEqualObjects:eue},Symbol.toStringTag,{value:"Module"})),rue=m5(nue);var Mf={},Pk;function eb(){return Pk||(Pk=1,Object.defineProperty(Mf,"__esModule",{value:!0}),Mf.default=void 0,Mf.default={dateRangeWrapper:"rdrDateRangeWrapper",calendarWrapper:"rdrCalendarWrapper",dateDisplay:"rdrDateDisplay",dateDisplayItem:"rdrDateDisplayItem",dateDisplayItemActive:"rdrDateDisplayItemActive",monthAndYearWrapper:"rdrMonthAndYearWrapper",monthAndYearPickers:"rdrMonthAndYearPickers",nextPrevButton:"rdrNextPrevButton",month:"rdrMonth",weekDays:"rdrWeekDays",weekDay:"rdrWeekDay",days:"rdrDays",day:"rdrDay",dayNumber:"rdrDayNumber",dayPassive:"rdrDayPassive",dayToday:"rdrDayToday",dayStartOfWeek:"rdrDayStartOfWeek",dayEndOfWeek:"rdrDayEndOfWeek",daySelected:"rdrDaySelected",dayDisabled:"rdrDayDisabled",dayStartOfMonth:"rdrDayStartOfMonth",dayEndOfMonth:"rdrDayEndOfMonth",dayWeekend:"rdrDayWeekend",dayStartPreview:"rdrDayStartPreview",dayInPreview:"rdrDayInPreview",dayEndPreview:"rdrDayEndPreview",dayHovered:"rdrDayHovered",dayActive:"rdrDayActive",inRange:"rdrInRange",endEdge:"rdrEndEdge",startEdge:"rdrStartEdge",prevButton:"rdrPprevButton",nextButton:"rdrNextButton",selected:"rdrSelected",months:"rdrMonths",monthPicker:"rdrMonthPicker",yearPicker:"rdrYearPicker",dateDisplayWrapper:"rdrDateDisplayWrapper",definedRangesWrapper:"rdrDefinedRangesWrapper",staticRanges:"rdrStaticRanges",staticRange:"rdrStaticRange",inputRanges:"rdrInputRanges",inputRange:"rdrInputRange",inputRangeInput:"rdrInputRangeInput",dateRangePickerWrapper:"rdrDateRangePickerWrapper",staticRangeLabel:"rdrStaticRangeLabel",staticRangeSelected:"rdrStaticRangeSelected",monthName:"rdrMonthName",infiniteMonths:"rdrInfiniteMonths",monthsVertical:"rdrMonthsVertical",monthsHorizontal:"rdrMonthsHorizontal"}),Mf}var Df={},Lk;function aue(){if(Lk)return Df;Lk=1,Object.defineProperty(Df,"__esModule",{value:!0}),Df.ariaLabelsShape=void 0;var n=e(Gi());function e(t){return t&&t.__esModule?t:{default:t}}return Df.ariaLabelsShape=n.default.shape({dateInput:n.default.objectOf(n.default.shape({startDate:n.default.string,endDate:n.default.string})),monthPicker:n.default.string,yearPicker:n.default.string,prevButton:n.default.string,nextButton:n.default.string}),Df}var Nk;function $W(){if(Nk)return Sf;Nk=1,Object.defineProperty(Sf,"__esModule",{value:!0}),Sf.default=void 0;var n=y(ii()),e=p(Gi()),t=Kv(),r=p(Qce()),a=p(Kce()),i=Jv(),s=p(wo()),o=p(Jce()),l=rue,u=Il(),d=aW(),f=p(eb()),g=aue();function p(M){return M&&M.__esModule?M:{default:M}}function b(M){if(typeof WeakMap!="function")return null;var A=new WeakMap,T=new WeakMap;return(b=function(P){return P?T:A})(M)}function y(M,A){if(M&&M.__esModule)return M;if(M===null||typeof M!="object"&&typeof M!="function")return{default:M};var T=b(A);if(T&&T.has(M))return T.get(M);var P={__proto__:null},R=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var N in M)if(N!=="default"&&Object.prototype.hasOwnProperty.call(M,N)){var I=R?Object.getOwnPropertyDescriptor(M,N):null;I&&(I.get||I.set)?Object.defineProperty(P,N,I):P[N]=M[N]}return P.default=M,T&&T.set(M,P),P}function x(){return x=Object.assign?Object.assign.bind():function(M){for(var A=1;A<arguments.length;A++){var T=arguments[A];for(var P in T)Object.prototype.hasOwnProperty.call(T,P)&&(M[P]=T[P])}return M},x.apply(this,arguments)}function S(M,A,T){return A=C(A),A in M?Object.defineProperty(M,A,{value:T,enumerable:!0,configurable:!0,writable:!0}):M[A]=T,M}function C(M){var A=O(M,"string");return typeof A=="symbol"?A:String(A)}function O(M,A){if(typeof M!="object"||!M)return M;var T=M[Symbol.toPrimitive];if(T!==void 0){var P=T.call(M,A);if(typeof P!="object")return P;throw new TypeError("@@toPrimitive must return a primitive value.")}return(A==="string"?String:Number)(M)}let D=class pE extends n.PureComponent{constructor(A,T){var P;super(A,T),P=this,S(this,"focusToDate",function(R){let N=arguments.length>1&&arguments[1]!==void 0?arguments[1]:P.props,I=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(!N.scroll.enabled){if(I&&N.preventSnapRefocus){const k=(0,u.differenceInCalendarMonths)(R,P.state.focusedDate),H=N.calendarFocus==="forwards"&&k>=0,F=N.calendarFocus==="backwards"&&k<=0;if((H||F)&&Math.abs(k)<N.months)return}P.setState({focusedDate:R});return}const $=(0,u.differenceInCalendarMonths)(R,N.minDate,P.dateOptions),Y=P.list.getVisibleRange();I&&Y.includes($)||(P.isFirstRender=!0,P.list.scrollTo($),P.setState({focusedDate:R}))}),S(this,"updateShownDate",function(){let R=arguments.length>0&&arguments[0]!==void 0?arguments[0]:P.props;const N=R.scroll.enabled?{...R,months:P.list.getVisibleRange().length}:R,I=(0,i.calcFocusDate)(P.state.focusedDate,N);P.focusToDate(I,N)}),S(this,"updatePreview",R=>{if(!R){this.setState({preview:null});return}const N={startDate:R,endDate:R,color:this.props.color};this.setState({preview:N})}),S(this,"changeShownDate",function(R){let N=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"set";const{focusedDate:I}=P.state,{onShownDateChange:$,minDate:Y,maxDate:k}=P.props,H={monthOffset:()=>(0,u.addMonths)(I,R),setMonth:()=>(0,u.setMonth)(I,R),setYear:()=>(0,u.setYear)(I,R),set:()=>R},F=(0,u.min)([(0,u.max)([H[N](),Y]),k]);P.focusToDate(F,P.props,!1),$&&$(F)}),S(this,"handleRangeFocusChange",(R,N)=>{this.props.onRangeFocusChange&&this.props.onRangeFocusChange([R,N])}),S(this,"handleScroll",()=>{const{onShownDateChange:R,minDate:N}=this.props,{focusedDate:I}=this.state,{isFirstRender:$}=this,Y=this.list.getVisibleRange();if(Y[0]===void 0)return;const k=(0,u.addMonths)(N,Y[0]||0);!(0,u.isSameMonth)(k,I)&&!$&&(this.setState({focusedDate:k}),R&&R(k)),this.isFirstRender=!1}),S(this,"renderMonthAndYear",(R,N,I)=>{const{showMonthArrow:$,minDate:Y,maxDate:k,showMonthAndYearPickers:H,ariaLabels:F}=I,B=(k||pE.defaultProps.maxDate).getFullYear(),X=(Y||pE.defaultProps.minDate).getFullYear(),Q=this.styles;return n.default.createElement("div",{onMouseUp:z=>z.stopPropagation(),className:Q.monthAndYearWrapper},$?n.default.createElement("button",{type:"button",className:(0,s.default)(Q.nextPrevButton,Q.prevButton),onClick:()=>N(-1,"monthOffset"),"aria-label":F.prevButton},n.default.createElement("i",null)):null,H?n.default.createElement("span",{className:Q.monthAndYearPickers},n.default.createElement("span",{className:Q.monthPicker},n.default.createElement("select",{value:R.getMonth(),onChange:z=>N(z.target.value,"setMonth"),"aria-label":F.monthPicker},this.state.monthNames.map((z,V)=>n.default.createElement("option",{key:V,value:V},z)))),n.default.createElement("span",{className:Q.monthAndYearDivider}),n.default.createElement("span",{className:Q.yearPicker},n.default.createElement("select",{value:R.getFullYear(),onChange:z=>N(z.target.value,"setYear"),"aria-label":F.yearPicker},new Array(B-X+1).fill(B).map((z,V)=>{const j=z-V;return n.default.createElement("option",{key:j,value:j},j)})))):n.default.createElement("span",{className:Q.monthAndYearPickers},this.state.monthNames[R.getMonth()]," ",R.getFullYear()),$?n.default.createElement("button",{type:"button",className:(0,s.default)(Q.nextPrevButton,Q.nextButton),onClick:()=>N(1,"monthOffset"),"aria-label":F.nextButton},n.default.createElement("i",null)):null)}),S(this,"renderDateDisplay",()=>{const{focusedRange:R,color:N,ranges:I,rangeColors:$,dateDisplayFormat:Y,editableDateInputs:k,startDatePlaceholder:H,endDatePlaceholder:F,ariaLabels:B}=this.props,X=$[R[0]]||N,Q=this.styles;return n.default.createElement("div",{className:Q.dateDisplayWrapper},I.map((z,V)=>z.showDateDisplay===!1||z.disabled&&!z.showDateDisplay?null:n.default.createElement("div",{className:Q.dateDisplay,key:V,style:{color:z.color||X}},n.default.createElement(a.default,{className:(0,s.default)(Q.dateDisplayItem,{[Q.dateDisplayItemActive]:R[0]===V&&R[1]===0}),readOnly:!k,disabled:z.disabled,value:z.startDate,placeholder:H,dateOptions:this.dateOptions,dateDisplayFormat:Y,ariaLabel:B.dateInput&&B.dateInput[z.key]&&B.dateInput[z.key].startDate,onChange:this.onDragSelectionEnd,onFocus:()=>this.handleRangeFocusChange(V,0)}),n.default.createElement(a.default,{className:(0,s.default)(Q.dateDisplayItem,{[Q.dateDisplayItemActive]:R[0]===V&&R[1]===1}),readOnly:!k,disabled:z.disabled,value:z.endDate,placeholder:F,dateOptions:this.dateOptions,dateDisplayFormat:Y,ariaLabel:B.dateInput&&B.dateInput[z.key]&&B.dateInput[z.key].endDate,onChange:this.onDragSelectionEnd,onFocus:()=>this.handleRangeFocusChange(V,1)}))))}),S(this,"onDragSelectionStart",R=>{const{onChange:N,dragSelectionEnabled:I}=this.props;I?this.setState({drag:{status:!0,range:{startDate:R,endDate:R},disablePreview:!0}}):N&&N(R)}),S(this,"onDragSelectionEnd",R=>{const{updateRange:N,displayMode:I,onChange:$,dragSelectionEnabled:Y}=this.props;if(!Y)return;if(I==="date"||!this.state.drag.status){$&&$(R);return}const k={startDate:this.state.drag.range.startDate,endDate:R};I!=="dateRange"||(0,u.isSameDay)(k.startDate,R)?this.setState({drag:{status:!1,range:{}}},()=>$&&$(R)):this.setState({drag:{status:!1,range:{}}},()=>{N&&N(k)})}),S(this,"onDragSelectionMove",R=>{const{drag:N}=this.state;!N.status||!this.props.dragSelectionEnabled||this.setState({drag:{status:N.status,range:{startDate:N.range.startDate,endDate:R},disablePreview:!0}})}),S(this,"estimateMonthSize",(R,N)=>{const{direction:I,minDate:$}=this.props,{scrollArea:Y}=this.state;if(N&&(this.listSizeCache=N,N[R]))return N[R];if(I==="horizontal")return Y.monthWidth;const k=(0,u.addMonths)($,R),{start:H,end:F}=(0,i.getMonthDisplayRange)(k,this.dateOptions);return(0,u.differenceInDays)(F,H,this.dateOptions)+1>35?Y.longMonthHeight:Y.monthHeight}),this.dateOptions={locale:A.locale},A.weekStartsOn!==void 0&&(this.dateOptions.weekStartsOn=A.weekStartsOn),this.styles=(0,i.generateStyles)([f.default,A.classNames]),this.listSizeCache={},this.isFirstRender=!0,this.state={monthNames:this.getMonthNames(),focusedDate:(0,i.calcFocusDate)(null,A),drag:{status:!1,range:{startDate:null,endDate:null},disablePreview:!1},scrollArea:this.calcScrollArea(A)}}getMonthNames(){return[...Array(12).keys()].map(A=>this.props.locale.localize.month(A))}calcScrollArea(A){const{direction:T,months:P,scroll:R}=A;if(!R.enabled)return{enabled:!1};const N=R.longMonthHeight||R.monthHeight;return T==="vertical"?{enabled:!0,monthHeight:R.monthHeight||220,longMonthHeight:N||260,calendarWidth:"auto",calendarHeight:(R.calendarHeight||N||240)*P}:{enabled:!0,monthWidth:R.monthWidth||332,calendarWidth:(R.calendarWidth||R.monthWidth||332)*P,monthHeight:N||300,calendarHeight:N||300}}componentDidMount(){this.props.scroll.enabled&&setTimeout(()=>this.focusToDate(this.state.focusedDate))}componentDidUpdate(A){const P={dateRange:"ranges",date:"date"}[this.props.displayMode];this.props[P]!==A[P]&&this.updateShownDate(this.props),(A.locale!==this.props.locale||A.weekStartsOn!==this.props.weekStartsOn)&&(this.dateOptions={locale:this.props.locale},this.props.weekStartsOn!==void 0&&(this.dateOptions.weekStartsOn=this.props.weekStartsOn),this.setState({monthNames:this.getMonthNames()})),(0,l.shallowEqualObjects)(A.scroll,this.props.scroll)||this.setState({scrollArea:this.calcScrollArea(this.props)})}renderWeekdays(){const A=new Date;return n.default.createElement("div",{className:this.styles.weekDays},(0,u.eachDayOfInterval)({start:(0,u.startOfWeek)(A,this.dateOptions),end:(0,u.endOfWeek)(A,this.dateOptions)}).map((T,P)=>n.default.createElement("span",{className:this.styles.weekDay,key:P},(0,u.format)(T,this.props.weekdayDisplayFormat,this.dateOptions))))}render(){const{showDateDisplay:A,onPreviewChange:T,scroll:P,direction:R,disabledDates:N,disabledDay:I,maxDate:$,minDate:Y,rangeColors:k,color:H,navigatorRenderer:F,className:B,preview:X}=this.props,{scrollArea:Q,focusedDate:z}=this.state,V=R==="vertical",j=F||this.renderMonthAndYear,q=this.props.ranges.map((G,U)=>({...G,color:G.color||k[U]||H}));return n.default.createElement("div",{className:(0,s.default)(this.styles.calendarWrapper,B),onMouseUp:()=>this.setState({drag:{status:!1,range:{}}}),onMouseLeave:()=>{this.setState({drag:{status:!1,range:{}}})}},A&&this.renderDateDisplay(),j(z,this.changeShownDate,this.props),P.enabled?n.default.createElement("div",null,V&&this.renderWeekdays(this.dateOptions),n.default.createElement("div",{className:(0,s.default)(this.styles.infiniteMonths,V?this.styles.monthsVertical:this.styles.monthsHorizontal),onMouseLeave:()=>T&&T(),style:{width:Q.calendarWidth+11,height:Q.calendarHeight+11},onScroll:this.handleScroll},n.default.createElement(o.default,{length:(0,u.differenceInCalendarMonths)((0,u.endOfMonth)($),(0,u.addDays)((0,u.startOfMonth)(Y),-1),this.dateOptions),treshold:500,type:"variable",ref:G=>this.list=G,itemSizeEstimator:this.estimateMonthSize,axis:V?"y":"x",itemRenderer:(G,U)=>{const K=(0,u.addMonths)(Y,G);return n.default.createElement(r.default,x({},this.props,{onPreviewChange:T||this.updatePreview,preview:X||this.state.preview,ranges:q,key:U,drag:this.state.drag,dateOptions:this.dateOptions,disabledDates:N,disabledDay:I,month:K,onDragSelectionStart:this.onDragSelectionStart,onDragSelectionEnd:this.onDragSelectionEnd,onDragSelectionMove:this.onDragSelectionMove,onMouseLeave:()=>T&&T(),styles:this.styles,style:V?{height:this.estimateMonthSize(G)}:{height:Q.monthHeight,width:this.estimateMonthSize(G)},showMonthName:!0,showWeekDays:!V}))}}))):n.default.createElement("div",{className:(0,s.default)(this.styles.months,V?this.styles.monthsVertical:this.styles.monthsHorizontal)},new Array(this.props.months).fill(null).map((G,U)=>{let K=(0,u.addMonths)(this.state.focusedDate,U);return this.props.calendarFocus==="backwards"&&(K=(0,u.subMonths)(this.state.focusedDate,this.props.months-1-U)),n.default.createElement(r.default,x({},this.props,{onPreviewChange:T||this.updatePreview,preview:X||this.state.preview,ranges:q,key:U,drag:this.state.drag,dateOptions:this.dateOptions,disabledDates:N,disabledDay:I,month:K,onDragSelectionStart:this.onDragSelectionStart,onDragSelectionEnd:this.onDragSelectionEnd,onDragSelectionMove:this.onDragSelectionMove,onMouseLeave:()=>T&&T(),styles:this.styles,showWeekDays:!V||U===0,showMonthName:!V||U>0}))})))}};return D.defaultProps={showMonthArrow:!0,showMonthAndYearPickers:!0,disabledDates:[],disabledDay:()=>{},classNames:{},locale:d.enUS,ranges:[],focusedRange:[0,0],dateDisplayFormat:"MMM d, yyyy",monthDisplayFormat:"MMM yyyy",weekdayDisplayFormat:"E",dayDisplayFormat:"d",showDateDisplay:!0,showPreview:!0,displayMode:"date",months:1,color:"#3d91ff",scroll:{enabled:!1},direction:"vertical",maxDate:(0,u.addYears)(new Date,20),minDate:(0,u.addYears)(new Date,-100),rangeColors:["#3d91ff","#3ecf8e","#fed14c"],startDatePlaceholder:"Early",endDatePlaceholder:"Continuous",editableDateInputs:!1,dragSelectionEnabled:!0,fixedHeight:!1,calendarFocus:"forwards",preventSnapRefocus:!1,ariaLabels:{}},D.propTypes={showMonthArrow:e.default.bool,showMonthAndYearPickers:e.default.bool,disabledDates:e.default.array,disabledDay:e.default.func,minDate:e.default.object,maxDate:e.default.object,date:e.default.object,onChange:e.default.func,onPreviewChange:e.default.func,onRangeFocusChange:e.default.func,classNames:e.default.object,locale:e.default.object,shownDate:e.default.object,onShownDateChange:e.default.func,ranges:e.default.arrayOf(t.rangeShape),preview:e.default.shape({startDate:e.default.object,endDate:e.default.object,color:e.default.string}),dateDisplayFormat:e.default.string,monthDisplayFormat:e.default.string,weekdayDisplayFormat:e.default.string,weekStartsOn:e.default.number,dayDisplayFormat:e.default.string,focusedRange:e.default.arrayOf(e.default.number),initialFocusedRange:e.default.arrayOf(e.default.number),months:e.default.number,className:e.default.string,showDateDisplay:e.default.bool,showPreview:e.default.bool,displayMode:e.default.oneOf(["dateRange","date"]),color:e.default.string,updateRange:e.default.func,scroll:e.default.shape({enabled:e.default.bool,monthHeight:e.default.number,longMonthHeight:e.default.number,monthWidth:e.default.number,calendarWidth:e.default.number,calendarHeight:e.default.number}),direction:e.default.oneOf(["vertical","horizontal"]),startDatePlaceholder:e.default.string,endDatePlaceholder:e.default.string,navigatorRenderer:e.default.func,rangeColors:e.default.arrayOf(e.default.string),editableDateInputs:e.default.bool,dragSelectionEnabled:e.default.bool,fixedHeight:e.default.bool,calendarFocus:e.default.string,preventSnapRefocus:e.default.bool,ariaLabels:g.ariaLabelsShape},Sf.default=D,Sf}var Ik;function FW(){if(Ik)return wf;Ik=1,Object.defineProperty(wf,"__esModule",{value:!0}),wf.default=void 0;var n=d(ii()),e=l(Gi()),t=l($W()),r=Kv(),a=Jv(),i=Il(),s=l(wo()),o=l(eb());function l(x){return x&&x.__esModule?x:{default:x}}function u(x){if(typeof WeakMap!="function")return null;var S=new WeakMap,C=new WeakMap;return(u=function(O){return O?C:S})(x)}function d(x,S){if(x&&x.__esModule)return x;if(x===null||typeof x!="object"&&typeof x!="function")return{default:x};var C=u(S);if(C&&C.has(x))return C.get(x);var O={__proto__:null},D=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var M in x)if(M!=="default"&&Object.prototype.hasOwnProperty.call(x,M)){var A=D?Object.getOwnPropertyDescriptor(x,M):null;A&&(A.get||A.set)?Object.defineProperty(O,M,A):O[M]=x[M]}return O.default=x,C&&C.set(x,O),O}function f(){return f=Object.assign?Object.assign.bind():function(x){for(var S=1;S<arguments.length;S++){var C=arguments[S];for(var O in C)Object.prototype.hasOwnProperty.call(C,O)&&(x[O]=C[O])}return x},f.apply(this,arguments)}function g(x,S,C){return S=p(S),S in x?Object.defineProperty(x,S,{value:C,enumerable:!0,configurable:!0,writable:!0}):x[S]=C,x}function p(x){var S=b(x,"string");return typeof S=="symbol"?S:String(S)}function b(x,S){if(typeof x!="object"||!x)return x;var C=x[Symbol.toPrimitive];if(C!==void 0){var O=C.call(x,S);if(typeof O!="object")return O;throw new TypeError("@@toPrimitive must return a primitive value.")}return(S==="string"?String:Number)(x)}let y=class extends n.Component{constructor(S,C){var O;super(S,C),O=this,g(this,"calcNewSelection",function(D){let M=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0;const A=O.props.focusedRange||O.state.focusedRange,{ranges:T,onChange:P,maxDate:R,moveRangeOnFirstSelection:N,retainEndDateOnFirstSelection:I,disabledDates:$}=O.props,Y=A[0],k=T[Y];if(!k||!P)return{};let{startDate:H,endDate:F}=k;const B=new Date;let X;if(!M)H=D.startDate,F=D.endDate;else if(A[1]===0){const V=(0,i.differenceInCalendarDays)(F||B,H),j=()=>N?(0,i.addDays)(D,V):I?!F||(0,i.isBefore)(D,F)?F:D:D||B;H=D,F=j(),R&&(F=(0,i.min)([F,R])),X=[A[0],1]}else F=D;let Q=A[1]===0;(0,i.isBefore)(F,H)&&(Q=!Q,[H,F]=[F,H]);const z=$.filter(V=>(0,i.isWithinInterval)(V,{start:H,end:F}));return z.length>0&&(Q?H=(0,i.addDays)((0,i.max)(z),1):F=(0,i.addDays)((0,i.min)(z),-1)),X||(X=[(0,a.findNextRangeIndex)(O.props.ranges,A[0]),0]),{wasValid:!(z.length>0),range:{startDate:H,endDate:F},nextFocusRange:X}}),g(this,"setSelection",(D,M)=>{const{onChange:A,ranges:T,onRangeFocusChange:P}=this.props,N=(this.props.focusedRange||this.state.focusedRange)[0],I=T[N];if(!I)return;const $=this.calcNewSelection(D,M);A({[I.key||`range${N+1}`]:{...I,...$.range}}),this.setState({focusedRange:$.nextFocusRange,preview:null}),P&&P($.nextFocusRange)}),g(this,"handleRangeFocusChange",D=>{this.setState({focusedRange:D}),this.props.onRangeFocusChange&&this.props.onRangeFocusChange(D)}),g(this,"updatePreview",D=>{if(!D){this.setState({preview:null});return}const{rangeColors:M,ranges:A}=this.props,T=this.props.focusedRange||this.state.focusedRange,P=A[T[0]]?.color||M[T[0]]||P;this.setState({preview:{...D.range,color:P}})}),this.state={focusedRange:S.initialFocusedRange||[(0,a.findNextRangeIndex)(S.ranges),0],preview:null},this.styles=(0,a.generateStyles)([o.default,S.classNames])}render(){return n.default.createElement(t.default,f({focusedRange:this.state.focusedRange,onRangeFocusChange:this.handleRangeFocusChange,preview:this.state.preview,onPreviewChange:S=>{this.updatePreview(S?this.calcNewSelection(S):null)}},this.props,{displayMode:"dateRange",className:(0,s.default)(this.styles.dateRangeWrapper,this.props.className),onChange:this.setSelection,updateRange:S=>this.setSelection(S,!1),ref:S=>{this.calendar=S}}))}};return y.defaultProps={classNames:{},ranges:[],moveRangeOnFirstSelection:!1,retainEndDateOnFirstSelection:!1,rangeColors:["#3d91ff","#3ecf8e","#fed14c"],disabledDates:[]},y.propTypes={...t.default.propTypes,onChange:e.default.func,onRangeFocusChange:e.default.func,className:e.default.string,ranges:e.default.arrayOf(r.rangeShape),moveRangeOnFirstSelection:e.default.bool,retainEndDateOnFirstSelection:e.default.bool},wf.default=y,wf}var _f={},Af={},lo={},$k;function kW(){if($k)return lo;$k=1,Object.defineProperty(lo,"__esModule",{value:!0}),lo.createStaticRanges=r,lo.defaultStaticRanges=lo.defaultInputRanges=void 0;var n=Il();const e={startOfWeek:(0,n.startOfWeek)(new Date),endOfWeek:(0,n.endOfWeek)(new Date),startOfLastWeek:(0,n.startOfWeek)((0,n.addDays)(new Date,-7)),endOfLastWeek:(0,n.endOfWeek)((0,n.addDays)(new Date,-7)),startOfToday:(0,n.startOfDay)(new Date),endOfToday:(0,n.endOfDay)(new Date),startOfYesterday:(0,n.startOfDay)((0,n.addDays)(new Date,-1)),endOfYesterday:(0,n.endOfDay)((0,n.addDays)(new Date,-1)),startOfMonth:(0,n.startOfMonth)(new Date),endOfMonth:(0,n.endOfMonth)(new Date),startOfLastMonth:(0,n.startOfMonth)((0,n.addMonths)(new Date,-1)),endOfLastMonth:(0,n.endOfMonth)((0,n.addMonths)(new Date,-1))},t={range:{},isSelected(a){const i=this.range();return(0,n.isSameDay)(a.startDate,i.startDate)&&(0,n.isSameDay)(a.endDate,i.endDate)}};function r(a){return a.map(i=>({...t,...i}))}return lo.defaultStaticRanges=r([{label:"Today",range:()=>({startDate:e.startOfToday,endDate:e.endOfToday})},{label:"Yesterday",range:()=>({startDate:e.startOfYesterday,endDate:e.endOfYesterday})},{label:"This Week",range:()=>({startDate:e.startOfWeek,endDate:e.endOfWeek})},{label:"Last Week",range:()=>({startDate:e.startOfLastWeek,endDate:e.endOfLastWeek})},{label:"This Month",range:()=>({startDate:e.startOfMonth,endDate:e.endOfMonth})},{label:"Last Month",range:()=>({startDate:e.startOfLastMonth,endDate:e.endOfLastMonth})}]),lo.defaultInputRanges=[{label:"days up to today",range(a){return{startDate:(0,n.addDays)(e.startOfToday,(Math.max(Number(a),1)-1)*-1),endDate:e.endOfToday}},getCurrentValue(a){return(0,n.isSameDay)(a.endDate,e.endOfToday)?a.startDate?(0,n.differenceInCalendarDays)(e.endOfToday,a.startDate)+1:"∞":"-"}},{label:"days starting today",range(a){const i=new Date;return{startDate:i,endDate:(0,n.addDays)(i,Math.max(Number(a),1)-1)}},getCurrentValue(a){return(0,n.isSameDay)(a.startDate,e.startOfToday)?a.endDate?(0,n.differenceInCalendarDays)(a.endDate,e.startOfToday)+1:"∞":"-"}}],lo}var Tf={},Fk;function iue(){if(Fk)return Tf;Fk=1,Object.defineProperty(Tf,"__esModule",{value:!0}),Tf.default=void 0;var n=a(ii()),e=t(Gi());function t(f){return f&&f.__esModule?f:{default:f}}function r(f){if(typeof WeakMap!="function")return null;var g=new WeakMap,p=new WeakMap;return(r=function(b){return b?p:g})(f)}function a(f,g){if(f&&f.__esModule)return f;if(f===null||typeof f!="object"&&typeof f!="function")return{default:f};var p=r(g);if(p&&p.has(f))return p.get(f);var b={__proto__:null},y=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var x in f)if(x!=="default"&&Object.prototype.hasOwnProperty.call(f,x)){var S=y?Object.getOwnPropertyDescriptor(f,x):null;S&&(S.get||S.set)?Object.defineProperty(b,x,S):b[x]=f[x]}return b.default=f,p&&p.set(f,b),b}function i(f,g,p){return g=s(g),g in f?Object.defineProperty(f,g,{value:p,enumerable:!0,configurable:!0,writable:!0}):f[g]=p,f}function s(f){var g=o(f,"string");return typeof g=="symbol"?g:String(g)}function o(f,g){if(typeof f!="object"||!f)return f;var p=f[Symbol.toPrimitive];if(p!==void 0){var b=p.call(f,g);if(typeof b!="object")return b;throw new TypeError("@@toPrimitive must return a primitive value.")}return(g==="string"?String:Number)(f)}const l=0,u=99999;let d=class extends n.Component{constructor(g,p){super(g,p),i(this,"onChange",b=>{const{onChange:y}=this.props;let x=parseInt(b.target.value,10);x=isNaN(x)?0:Math.max(Math.min(u,x),l),y(x)})}shouldComponentUpdate(g){const{value:p,label:b,placeholder:y}=this.props;return p!==g.value||b!==g.label||y!==g.placeholder}render(){const{label:g,placeholder:p,value:b,styles:y,onBlur:x,onFocus:S}=this.props;return n.default.createElement("div",{className:y.inputRange},n.default.createElement("input",{className:y.inputRangeInput,placeholder:p,value:b,min:l,max:u,onChange:this.onChange,onFocus:S,onBlur:x}),n.default.createElement("span",{className:y.inputRangeLabel},g))}};return d.propTypes={value:e.default.oneOfType([e.default.string,e.default.number]),label:e.default.oneOfType([e.default.element,e.default.node]).isRequired,placeholder:e.default.string,styles:e.default.shape({inputRange:e.default.string,inputRangeInput:e.default.string,inputRangeLabel:e.default.string}).isRequired,onBlur:e.default.func.isRequired,onFocus:e.default.func.isRequired,onChange:e.default.func.isRequired},d.defaultProps={value:"",placeholder:"-"},Tf.default=d,Tf}var kk;function HW(){if(kk)return Af;kk=1,Object.defineProperty(Af,"__esModule",{value:!0}),Af.default=void 0;var n=u(ii()),e=o(Gi()),t=o(eb()),r=kW(),a=Kv(),i=o(iue()),s=o(wo());function o(b){return b&&b.__esModule?b:{default:b}}function l(b){if(typeof WeakMap!="function")return null;var y=new WeakMap,x=new WeakMap;return(l=function(S){return S?x:y})(b)}function u(b,y){if(b&&b.__esModule)return b;if(b===null||typeof b!="object"&&typeof b!="function")return{default:b};var x=l(y);if(x&&x.has(b))return x.get(b);var S={__proto__:null},C=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var O in b)if(O!=="default"&&Object.prototype.hasOwnProperty.call(b,O)){var D=C?Object.getOwnPropertyDescriptor(b,O):null;D&&(D.get||D.set)?Object.defineProperty(S,O,D):S[O]=b[O]}return S.default=b,x&&x.set(b,S),S}function d(b,y,x){return y=f(y),y in b?Object.defineProperty(b,y,{value:x,enumerable:!0,configurable:!0,writable:!0}):b[y]=x,b}function f(b){var y=g(b,"string");return typeof y=="symbol"?y:String(y)}function g(b,y){if(typeof b!="object"||!b)return b;var x=b[Symbol.toPrimitive];if(x!==void 0){var S=x.call(b,y);if(typeof S!="object")return S;throw new TypeError("@@toPrimitive must return a primitive value.")}return(y==="string"?String:Number)(b)}let p=class extends n.Component{constructor(y){super(y),d(this,"handleRangeChange",x=>{const{onChange:S,ranges:C,focusedRange:O}=this.props,D=C[O[0]];!S||!D||S({[D.key||`range${O[0]+1}`]:{...D,...x}})}),this.state={rangeOffset:0,focusedInput:-1}}getRangeOptionValue(y){const{ranges:x=[],focusedRange:S=[]}=this.props;if(typeof y.getCurrentValue!="function")return"";const C=x[S[0]]||{};return y.getCurrentValue(C)||""}getSelectedRange(y,x){const S=y.findIndex(O=>!O.startDate||!O.endDate||O.disabled?!1:x.isSelected(O));return{selectedRange:y[S],focusedRangeIndex:S}}render(){const{headerContent:y,footerContent:x,onPreviewChange:S,inputRanges:C,staticRanges:O,ranges:D,renderStaticRangeLabel:M,rangeColors:A,className:T}=this.props;return n.default.createElement("div",{className:(0,s.default)(t.default.definedRangesWrapper,T)},y,n.default.createElement("div",{className:t.default.staticRanges},O.map((P,R)=>{const{selectedRange:N,focusedRangeIndex:I}=this.getSelectedRange(D,P);let $;return P.hasCustomRendering?$=M(P):$=P.label,n.default.createElement("button",{type:"button",className:(0,s.default)(t.default.staticRange,{[t.default.staticRangeSelected]:!!N}),style:{color:N?N.color||A[I]:null},key:R,onClick:()=>this.handleRangeChange(P.range(this.props)),onFocus:()=>S&&S(P.range(this.props)),onMouseOver:()=>S&&S(P.range(this.props)),onMouseLeave:()=>{S&&S()}},n.default.createElement("span",{tabIndex:-1,className:t.default.staticRangeLabel},$))})),n.default.createElement("div",{className:t.default.inputRanges},C.map((P,R)=>n.default.createElement(i.default,{key:R,styles:t.default,label:P.label,onFocus:()=>this.setState({focusedInput:R,rangeOffset:0}),onBlur:()=>this.setState({rangeOffset:0}),onChange:N=>this.handleRangeChange(P.range(N,this.props)),value:this.getRangeOptionValue(P)}))),x)}};return p.propTypes={inputRanges:e.default.array,staticRanges:e.default.array,ranges:e.default.arrayOf(a.rangeShape),focusedRange:e.default.arrayOf(e.default.number),onPreviewChange:e.default.func,onChange:e.default.func,footerContent:e.default.any,headerContent:e.default.any,rangeColors:e.default.arrayOf(e.default.string),className:e.default.string,renderStaticRangeLabel:e.default.func},p.defaultProps={inputRanges:r.defaultInputRanges,staticRanges:r.defaultStaticRanges,ranges:[],rangeColors:["#3d91ff","#3ecf8e","#fed14c"],focusedRange:[0,0]},Af.default=p,Af}var Hk;function sue(){if(Hk)return _f;Hk=1,Object.defineProperty(_f,"__esModule",{value:!0}),_f.default=void 0;var n=u(ii()),e=o(Gi()),t=o(FW()),r=o(HW()),a=Jv(),i=o(wo()),s=o(eb());function o(g){return g&&g.__esModule?g:{default:g}}function l(g){if(typeof WeakMap!="function")return null;var p=new WeakMap,b=new WeakMap;return(l=function(y){return y?b:p})(g)}function u(g,p){if(g&&g.__esModule)return g;if(g===null||typeof g!="object"&&typeof g!="function")return{default:g};var b=l(p);if(b&&b.has(g))return b.get(g);var y={__proto__:null},x=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var S in g)if(S!=="default"&&Object.prototype.hasOwnProperty.call(g,S)){var C=x?Object.getOwnPropertyDescriptor(g,S):null;C&&(C.get||C.set)?Object.defineProperty(y,S,C):y[S]=g[S]}return y.default=g,b&&b.set(g,y),y}function d(){return d=Object.assign?Object.assign.bind():function(g){for(var p=1;p<arguments.length;p++){var b=arguments[p];for(var y in b)Object.prototype.hasOwnProperty.call(b,y)&&(g[y]=b[y])}return g},d.apply(this,arguments)}let f=class extends n.Component{constructor(p){super(p),this.state={focusedRange:[(0,a.findNextRangeIndex)(p.ranges),0]},this.styles=(0,a.generateStyles)([s.default,p.classNames])}render(){const{focusedRange:p}=this.state;return n.default.createElement("div",{className:(0,i.default)(this.styles.dateRangePickerWrapper,this.props.className)},n.default.createElement(r.default,d({focusedRange:p,onPreviewChange:b=>this.dateRange.updatePreview(b?this.dateRange.calcNewSelection(b,typeof b=="string"):null)},this.props,{range:this.props.ranges[p[0]],className:void 0})),n.default.createElement(t.default,d({onRangeFocusChange:b=>this.setState({focusedRange:b}),focusedRange:p},this.props,{ref:b=>this.dateRange=b,className:void 0})))}};return f.defaultProps={},f.propTypes={...t.default.propTypes,...r.default.propTypes,className:e.default.string},_f.default=f,_f}var zk;function oue(){return zk||(zk=1,(function(n){Object.defineProperty(n,"__esModule",{value:!0}),Object.defineProperty(n,"Calendar",{enumerable:!0,get:function(){return t.default}}),Object.defineProperty(n,"DateRange",{enumerable:!0,get:function(){return e.default}}),Object.defineProperty(n,"DateRangePicker",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(n,"DefinedRange",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(n,"createStaticRanges",{enumerable:!0,get:function(){return i.createStaticRanges}}),Object.defineProperty(n,"defaultInputRanges",{enumerable:!0,get:function(){return i.defaultInputRanges}}),Object.defineProperty(n,"defaultStaticRanges",{enumerable:!0,get:function(){return i.defaultStaticRanges}});var e=s(FW()),t=s($W()),r=s(sue()),a=s(HW()),i=kW();function s(o){return o&&o.__esModule?o:{default:o}}})(Qy)),Qy}var ofe=oue();function kC(n){return(e={})=>{const t=e.width?String(e.width):n.defaultWidth;return n.formats[t]||n.formats[n.defaultWidth]}}function Rf(n){return(e,t)=>{const r=t?.context?String(t.context):"standalone";let a;if(r==="formatting"&&n.formattingValues){const s=n.defaultFormattingWidth||n.defaultWidth,o=t?.width?String(t.width):s;a=n.formattingValues[o]||n.formattingValues[s]}else{const s=n.defaultWidth,o=t?.width?String(t.width):n.defaultWidth;a=n.values[o]||n.values[s]}const i=n.argumentCallback?n.argumentCallback(e):e;return a[i]}}function Pf(n){return(e,t={})=>{const r=t.width,a=r&&n.matchPatterns[r]||n.matchPatterns[n.defaultMatchWidth],i=e.match(a);if(!i)return null;const s=i[0],o=r&&n.parsePatterns[r]||n.parsePatterns[n.defaultParseWidth],l=Array.isArray(o)?cue(o,f=>f.test(s)):lue(o,f=>f.test(s));let u;u=n.valueCallback?n.valueCallback(l):l,u=t.valueCallback?t.valueCallback(u):u;const d=e.slice(s.length);return{value:u,rest:d}}}function lue(n,e){for(const t in n)if(Object.prototype.hasOwnProperty.call(n,t)&&e(n[t]))return t}function cue(n,e){for(let t=0;t<n.length;t++)if(e(n[t]))return t}function uue(n){return(e,t={})=>{const r=e.match(n.matchPattern);if(!r)return null;const a=r[0],i=e.match(n.parsePattern);if(!i)return null;let s=n.valueCallback?n.valueCallback(i[0]):i[0];s=t.valueCallback?t.valueCallback(s):s;const o=e.slice(a.length);return{value:s,rest:o}}}const Bk=Symbol.for("constructDateFrom");function zW(n,e){return typeof n=="function"?n(e):n&&typeof n=="object"&&Bk in n?n[Bk](e):n instanceof Date?new n.constructor(e):new Date(e)}function due(n,...e){const t=zW.bind(null,n||e.find(r=>typeof r=="object"));return e.map(t)}let fue={};function hue(){return fue}function gue(n,e){return zW(e||n,n)}function Yk(n,e){const t=hue(),r=e?.weekStartsOn??e?.locale?.options?.weekStartsOn??t.weekStartsOn??t.locale?.options?.weekStartsOn??0,a=gue(n,e?.in),i=a.getDay(),s=(i<r?7:0)+i-r;return a.setDate(a.getDate()-s),a.setHours(0,0,0,0),a}function pue(n,e,t){const[r,a]=due(t?.in,n,e);return+Yk(r,t)==+Yk(a,t)}const mue={lessThanXSeconds:{one:"不到 1 秒",other:"不到 {{count}} 秒"},xSeconds:{one:"1 秒",other:"{{count}} 秒"},halfAMinute:"半分钟",lessThanXMinutes:{one:"不到 1 分钟",other:"不到 {{count}} 分钟"},xMinutes:{one:"1 分钟",other:"{{count}} 分钟"},xHours:{one:"1 小时",other:"{{count}} 小时"},aboutXHours:{one:"大约 1 小时",other:"大约 {{count}} 小时"},xDays:{one:"1 天",other:"{{count}} 天"},aboutXWeeks:{one:"大约 1 个星期",other:"大约 {{count}} 个星期"},xWeeks:{one:"1 个星期",other:"{{count}} 个星期"},aboutXMonths:{one:"大约 1 个月",other:"大约 {{count}} 个月"},xMonths:{one:"1 个月",other:"{{count}} 个月"},aboutXYears:{one:"大约 1 年",other:"大约 {{count}} 年"},xYears:{one:"1 年",other:"{{count}} 年"},overXYears:{one:"超过 1 年",other:"超过 {{count}} 年"},almostXYears:{one:"将近 1 年",other:"将近 {{count}} 年"}},vue=(n,e,t)=>{let r;const a=mue[n];return typeof a=="string"?r=a:e===1?r=a.one:r=a.other.replace("{{count}}",String(e)),t?.addSuffix?t.comparison&&t.comparison>0?r+"内":r+"前":r},bue={full:"y'年'M'月'd'日' EEEE",long:"y'年'M'月'd'日'",medium:"yyyy-MM-dd",short:"yy-MM-dd"},yue={full:"zzzz a h:mm:ss",long:"z a h:mm:ss",medium:"a h:mm:ss",short:"a h:mm"},xue={full:"{{date}} {{time}}",long:"{{date}} {{time}}",medium:"{{date}} {{time}}",short:"{{date}} {{time}}"},wue={date:kC({formats:bue,defaultWidth:"full"}),time:kC({formats:yue,defaultWidth:"full"}),dateTime:kC({formats:xue,defaultWidth:"full"})};function jk(n,e,t){const r="eeee p";return pue(n,e,t)?r:n.getTime()>e.getTime()?"'下个'"+r:"'上个'"+r}const Sue={lastWeek:jk,yesterday:"'昨天' p",today:"'今天' p",tomorrow:"'明天' p",nextWeek:jk,other:"PP p"},Cue=(n,e,t,r)=>{const a=Sue[n];return typeof a=="function"?a(e,t,r):a},Oue={narrow:["前","公元"],abbreviated:["前","公元"],wide:["公元前","公元"]},Eue={narrow:["1","2","3","4"],abbreviated:["第一季","第二季","第三季","第四季"],wide:["第一季度","第二季度","第三季度","第四季度"]},Mue={narrow:["一","二","三","四","五","六","七","八","九","十","十一","十二"],abbreviated:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],wide:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"]},Due={narrow:["日","一","二","三","四","五","六"],short:["日","一","二","三","四","五","六"],abbreviated:["周日","周一","周二","周三","周四","周五","周六"],wide:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"]},_ue={narrow:{am:"上",pm:"下",midnight:"凌晨",noon:"午",morning:"早",afternoon:"下午",evening:"晚",night:"夜"},abbreviated:{am:"上午",pm:"下午",midnight:"凌晨",noon:"中午",morning:"早晨",afternoon:"中午",evening:"晚上",night:"夜间"},wide:{am:"上午",pm:"下午",midnight:"凌晨",noon:"中午",morning:"早晨",afternoon:"中午",evening:"晚上",night:"夜间"}},Aue={narrow:{am:"上",pm:"下",midnight:"凌晨",noon:"午",morning:"早",afternoon:"下午",evening:"晚",night:"夜"},abbreviated:{am:"上午",pm:"下午",midnight:"凌晨",noon:"中午",morning:"早晨",afternoon:"中午",evening:"晚上",night:"夜间"},wide:{am:"上午",pm:"下午",midnight:"凌晨",noon:"中午",morning:"早晨",afternoon:"中午",evening:"晚上",night:"夜间"}},Tue=(n,e)=>{const t=Number(n);switch(e?.unit){case"date":return t.toString()+"日";case"hour":return t.toString()+"时";case"minute":return t.toString()+"分";case"second":return t.toString()+"秒";default:return"第 "+t.toString()}},Rue={ordinalNumber:Tue,era:Rf({values:Oue,defaultWidth:"wide"}),quarter:Rf({values:Eue,defaultWidth:"wide",argumentCallback:n=>n-1}),month:Rf({values:Mue,defaultWidth:"wide"}),day:Rf({values:Due,defaultWidth:"wide"}),dayPeriod:Rf({values:_ue,defaultWidth:"wide",formattingValues:Aue,defaultFormattingWidth:"wide"})},Pue=/^(第\s*)?\d+(日|时|分|秒)?/i,Lue=/\d+/i,Nue={narrow:/^(前)/i,abbreviated:/^(前)/i,wide:/^(公元前|公元)/i},Iue={any:[/^(前)/i,/^(公元)/i]},$ue={narrow:/^[1234]/i,abbreviated:/^第[一二三四]刻/i,wide:/^第[一二三四]刻钟/i},Fue={any:[/(1|一)/i,/(2|二)/i,/(3|三)/i,/(4|四)/i]},kue={narrow:/^(一|二|三|四|五|六|七|八|九|十[二一])/i,abbreviated:/^(一|二|三|四|五|六|七|八|九|十[二一]|\d|1[12])月/i,wide:/^(一|二|三|四|五|六|七|八|九|十[二一])月/i},Hue={narrow:[/^一/i,/^二/i,/^三/i,/^四/i,/^五/i,/^六/i,/^七/i,/^八/i,/^九/i,/^十(?!(一|二))/i,/^十一/i,/^十二/i],any:[/^一|1/i,/^二|2/i,/^三|3/i,/^四|4/i,/^五|5/i,/^六|6/i,/^七|7/i,/^八|8/i,/^九|9/i,/^十(?!(一|二))|10/i,/^十一|11/i,/^十二|12/i]},zue={narrow:/^[一二三四五六日]/i,short:/^[一二三四五六日]/i,abbreviated:/^周[一二三四五六日]/i,wide:/^星期[一二三四五六日]/i},Bue={any:[/日/i,/一/i,/二/i,/三/i,/四/i,/五/i,/六/i]},Yue={any:/^(上午?|下午?|午夜|[中正]午|早上?|下午|晚上?|凌晨|)/i},jue={any:{am:/^上午?/i,pm:/^下午?/i,midnight:/^午夜/i,noon:/^[中正]午/i,morning:/^早上/i,afternoon:/^下午/i,evening:/^晚上?/i,night:/^凌晨/i}},Wue={ordinalNumber:uue({matchPattern:Pue,parsePattern:Lue,valueCallback:n=>parseInt(n,10)}),era:Pf({matchPatterns:Nue,defaultMatchWidth:"wide",parsePatterns:Iue,defaultParseWidth:"any"}),quarter:Pf({matchPatterns:$ue,defaultMatchWidth:"wide",parsePatterns:Fue,defaultParseWidth:"any",valueCallback:n=>n+1}),month:Pf({matchPatterns:kue,defaultMatchWidth:"wide",parsePatterns:Hue,defaultParseWidth:"any"}),day:Pf({matchPatterns:zue,defaultMatchWidth:"wide",parsePatterns:Bue,defaultParseWidth:"any"}),dayPeriod:Pf({matchPatterns:Yue,defaultMatchWidth:"any",parsePatterns:jue,defaultParseWidth:"any"})},lfe={code:"zh-CN",formatDistance:vue,formatLong:wue,formatRelative:Cue,localize:Rue,match:Wue,options:{weekStartsOn:1,firstWeekContainsDate:4}};var que=Object.defineProperty,rv=Object.getOwnPropertySymbols,BW=Object.prototype.hasOwnProperty,YW=Object.prototype.propertyIsEnumerable,Wk=(n,e,t)=>e in n?que(n,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):n[e]=t,mE=(n,e)=>{for(var t in e||(e={}))BW.call(e,t)&&Wk(n,t,e[t]);if(rv)for(var t of rv(e))YW.call(e,t)&&Wk(n,t,e[t]);return n},vE=(n,e)=>{var t={};for(var r in n)BW.call(n,r)&&e.indexOf(r)<0&&(t[r]=n[r]);if(n!=null&&rv)for(var r of rv(n))e.indexOf(r)<0&&YW.call(n,r)&&(t[r]=n[r]);return t};/**
 * @license QR Code generator library (TypeScript)
 * Copyright (c) Project Nayuki.
 * SPDX-License-Identifier: MIT
 */var El;(n=>{const e=class Vt{constructor(l,u,d,f){if(this.version=l,this.errorCorrectionLevel=u,this.modules=[],this.isFunction=[],l<Vt.MIN_VERSION||l>Vt.MAX_VERSION)throw new RangeError("Version value out of range");if(f<-1||f>7)throw new RangeError("Mask value out of range");this.size=l*4+17;let g=[];for(let b=0;b<this.size;b++)g.push(!1);for(let b=0;b<this.size;b++)this.modules.push(g.slice()),this.isFunction.push(g.slice());this.drawFunctionPatterns();const p=this.addEccAndInterleave(d);if(this.drawCodewords(p),f==-1){let b=1e9;for(let y=0;y<8;y++){this.applyMask(y),this.drawFormatBits(y);const x=this.getPenaltyScore();x<b&&(f=y,b=x),this.applyMask(y)}}a(0<=f&&f<=7),this.mask=f,this.applyMask(f),this.drawFormatBits(f),this.isFunction=[]}static encodeText(l,u){const d=n.QrSegment.makeSegments(l);return Vt.encodeSegments(d,u)}static encodeBinary(l,u){const d=n.QrSegment.makeBytes(l);return Vt.encodeSegments([d],u)}static encodeSegments(l,u,d=1,f=40,g=-1,p=!0){if(!(Vt.MIN_VERSION<=d&&d<=f&&f<=Vt.MAX_VERSION)||g<-1||g>7)throw new RangeError("Invalid value");let b,y;for(b=d;;b++){const O=Vt.getNumDataCodewords(b,u)*8,D=s.getTotalBits(l,b);if(D<=O){y=D;break}if(b>=f)throw new RangeError("Data too long")}for(const O of[Vt.Ecc.MEDIUM,Vt.Ecc.QUARTILE,Vt.Ecc.HIGH])p&&y<=Vt.getNumDataCodewords(b,O)*8&&(u=O);let x=[];for(const O of l){t(O.mode.modeBits,4,x),t(O.numChars,O.mode.numCharCountBits(b),x);for(const D of O.getData())x.push(D)}a(x.length==y);const S=Vt.getNumDataCodewords(b,u)*8;a(x.length<=S),t(0,Math.min(4,S-x.length),x),t(0,(8-x.length%8)%8,x),a(x.length%8==0);for(let O=236;x.length<S;O^=253)t(O,8,x);let C=[];for(;C.length*8<x.length;)C.push(0);return x.forEach((O,D)=>C[D>>>3]|=O<<7-(D&7)),new Vt(b,u,C,g)}getModule(l,u){return 0<=l&&l<this.size&&0<=u&&u<this.size&&this.modules[u][l]}getModules(){return this.modules}drawFunctionPatterns(){for(let d=0;d<this.size;d++)this.setFunctionModule(6,d,d%2==0),this.setFunctionModule(d,6,d%2==0);this.drawFinderPattern(3,3),this.drawFinderPattern(this.size-4,3),this.drawFinderPattern(3,this.size-4);const l=this.getAlignmentPatternPositions(),u=l.length;for(let d=0;d<u;d++)for(let f=0;f<u;f++)d==0&&f==0||d==0&&f==u-1||d==u-1&&f==0||this.drawAlignmentPattern(l[d],l[f]);this.drawFormatBits(0),this.drawVersion()}drawFormatBits(l){const u=this.errorCorrectionLevel.formatBits<<3|l;let d=u;for(let g=0;g<10;g++)d=d<<1^(d>>>9)*1335;const f=(u<<10|d)^21522;a(f>>>15==0);for(let g=0;g<=5;g++)this.setFunctionModule(8,g,r(f,g));this.setFunctionModule(8,7,r(f,6)),this.setFunctionModule(8,8,r(f,7)),this.setFunctionModule(7,8,r(f,8));for(let g=9;g<15;g++)this.setFunctionModule(14-g,8,r(f,g));for(let g=0;g<8;g++)this.setFunctionModule(this.size-1-g,8,r(f,g));for(let g=8;g<15;g++)this.setFunctionModule(8,this.size-15+g,r(f,g));this.setFunctionModule(8,this.size-8,!0)}drawVersion(){if(this.version<7)return;let l=this.version;for(let d=0;d<12;d++)l=l<<1^(l>>>11)*7973;const u=this.version<<12|l;a(u>>>18==0);for(let d=0;d<18;d++){const f=r(u,d),g=this.size-11+d%3,p=Math.floor(d/3);this.setFunctionModule(g,p,f),this.setFunctionModule(p,g,f)}}drawFinderPattern(l,u){for(let d=-4;d<=4;d++)for(let f=-4;f<=4;f++){const g=Math.max(Math.abs(f),Math.abs(d)),p=l+f,b=u+d;0<=p&&p<this.size&&0<=b&&b<this.size&&this.setFunctionModule(p,b,g!=2&&g!=4)}}drawAlignmentPattern(l,u){for(let d=-2;d<=2;d++)for(let f=-2;f<=2;f++)this.setFunctionModule(l+f,u+d,Math.max(Math.abs(f),Math.abs(d))!=1)}setFunctionModule(l,u,d){this.modules[u][l]=d,this.isFunction[u][l]=!0}addEccAndInterleave(l){const u=this.version,d=this.errorCorrectionLevel;if(l.length!=Vt.getNumDataCodewords(u,d))throw new RangeError("Invalid argument");const f=Vt.NUM_ERROR_CORRECTION_BLOCKS[d.ordinal][u],g=Vt.ECC_CODEWORDS_PER_BLOCK[d.ordinal][u],p=Math.floor(Vt.getNumRawDataModules(u)/8),b=f-p%f,y=Math.floor(p/f);let x=[];const S=Vt.reedSolomonComputeDivisor(g);for(let O=0,D=0;O<f;O++){let M=l.slice(D,D+y-g+(O<b?0:1));D+=M.length;const A=Vt.reedSolomonComputeRemainder(M,S);O<b&&M.push(0),x.push(M.concat(A))}let C=[];for(let O=0;O<x[0].length;O++)x.forEach((D,M)=>{(O!=y-g||M>=b)&&C.push(D[O])});return a(C.length==p),C}drawCodewords(l){if(l.length!=Math.floor(Vt.getNumRawDataModules(this.version)/8))throw new RangeError("Invalid argument");let u=0;for(let d=this.size-1;d>=1;d-=2){d==6&&(d=5);for(let f=0;f<this.size;f++)for(let g=0;g<2;g++){const p=d-g,y=(d+1&2)==0?this.size-1-f:f;!this.isFunction[y][p]&&u<l.length*8&&(this.modules[y][p]=r(l[u>>>3],7-(u&7)),u++)}}a(u==l.length*8)}applyMask(l){if(l<0||l>7)throw new RangeError("Mask value out of range");for(let u=0;u<this.size;u++)for(let d=0;d<this.size;d++){let f;switch(l){case 0:f=(d+u)%2==0;break;case 1:f=u%2==0;break;case 2:f=d%3==0;break;case 3:f=(d+u)%3==0;break;case 4:f=(Math.floor(d/3)+Math.floor(u/2))%2==0;break;case 5:f=d*u%2+d*u%3==0;break;case 6:f=(d*u%2+d*u%3)%2==0;break;case 7:f=((d+u)%2+d*u%3)%2==0;break;default:throw new Error("Unreachable")}!this.isFunction[u][d]&&f&&(this.modules[u][d]=!this.modules[u][d])}}getPenaltyScore(){let l=0;for(let g=0;g<this.size;g++){let p=!1,b=0,y=[0,0,0,0,0,0,0];for(let x=0;x<this.size;x++)this.modules[g][x]==p?(b++,b==5?l+=Vt.PENALTY_N1:b>5&&l++):(this.finderPenaltyAddHistory(b,y),p||(l+=this.finderPenaltyCountPatterns(y)*Vt.PENALTY_N3),p=this.modules[g][x],b=1);l+=this.finderPenaltyTerminateAndCount(p,b,y)*Vt.PENALTY_N3}for(let g=0;g<this.size;g++){let p=!1,b=0,y=[0,0,0,0,0,0,0];for(let x=0;x<this.size;x++)this.modules[x][g]==p?(b++,b==5?l+=Vt.PENALTY_N1:b>5&&l++):(this.finderPenaltyAddHistory(b,y),p||(l+=this.finderPenaltyCountPatterns(y)*Vt.PENALTY_N3),p=this.modules[x][g],b=1);l+=this.finderPenaltyTerminateAndCount(p,b,y)*Vt.PENALTY_N3}for(let g=0;g<this.size-1;g++)for(let p=0;p<this.size-1;p++){const b=this.modules[g][p];b==this.modules[g][p+1]&&b==this.modules[g+1][p]&&b==this.modules[g+1][p+1]&&(l+=Vt.PENALTY_N2)}let u=0;for(const g of this.modules)u=g.reduce((p,b)=>p+(b?1:0),u);const d=this.size*this.size,f=Math.ceil(Math.abs(u*20-d*10)/d)-1;return a(0<=f&&f<=9),l+=f*Vt.PENALTY_N4,a(0<=l&&l<=2568888),l}getAlignmentPatternPositions(){if(this.version==1)return[];{const l=Math.floor(this.version/7)+2,u=this.version==32?26:Math.ceil((this.version*4+4)/(l*2-2))*2;let d=[6];for(let f=this.size-7;d.length<l;f-=u)d.splice(1,0,f);return d}}static getNumRawDataModules(l){if(l<Vt.MIN_VERSION||l>Vt.MAX_VERSION)throw new RangeError("Version number out of range");let u=(16*l+128)*l+64;if(l>=2){const d=Math.floor(l/7)+2;u-=(25*d-10)*d-55,l>=7&&(u-=36)}return a(208<=u&&u<=29648),u}static getNumDataCodewords(l,u){return Math.floor(Vt.getNumRawDataModules(l)/8)-Vt.ECC_CODEWORDS_PER_BLOCK[u.ordinal][l]*Vt.NUM_ERROR_CORRECTION_BLOCKS[u.ordinal][l]}static reedSolomonComputeDivisor(l){if(l<1||l>255)throw new RangeError("Degree out of range");let u=[];for(let f=0;f<l-1;f++)u.push(0);u.push(1);let d=1;for(let f=0;f<l;f++){for(let g=0;g<u.length;g++)u[g]=Vt.reedSolomonMultiply(u[g],d),g+1<u.length&&(u[g]^=u[g+1]);d=Vt.reedSolomonMultiply(d,2)}return u}static reedSolomonComputeRemainder(l,u){let d=u.map(f=>0);for(const f of l){const g=f^d.shift();d.push(0),u.forEach((p,b)=>d[b]^=Vt.reedSolomonMultiply(p,g))}return d}static reedSolomonMultiply(l,u){if(l>>>8||u>>>8)throw new RangeError("Byte out of range");let d=0;for(let f=7;f>=0;f--)d=d<<1^(d>>>7)*285,d^=(u>>>f&1)*l;return a(d>>>8==0),d}finderPenaltyCountPatterns(l){const u=l[1];a(u<=this.size*3);const d=u>0&&l[2]==u&&l[3]==u*3&&l[4]==u&&l[5]==u;return(d&&l[0]>=u*4&&l[6]>=u?1:0)+(d&&l[6]>=u*4&&l[0]>=u?1:0)}finderPenaltyTerminateAndCount(l,u,d){return l&&(this.finderPenaltyAddHistory(u,d),u=0),u+=this.size,this.finderPenaltyAddHistory(u,d),this.finderPenaltyCountPatterns(d)}finderPenaltyAddHistory(l,u){u[0]==0&&(l+=this.size),u.pop(),u.unshift(l)}};e.MIN_VERSION=1,e.MAX_VERSION=40,e.PENALTY_N1=3,e.PENALTY_N2=3,e.PENALTY_N3=40,e.PENALTY_N4=10,e.ECC_CODEWORDS_PER_BLOCK=[[-1,7,10,15,20,26,18,20,24,30,18,20,24,26,30,22,24,28,30,28,28,28,28,30,30,26,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,10,16,26,18,24,16,18,22,22,26,30,22,22,24,24,28,28,26,26,26,26,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28,28],[-1,13,22,18,26,18,24,18,22,20,24,28,26,24,20,30,24,28,28,26,30,28,30,30,30,30,28,30,30,30,30,30,30,30,30,30,30,30,30,30,30],[-1,17,28,22,16,22,28,26,26,24,28,24,28,22,24,24,30,28,28,26,28,30,24,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30,30]],e.NUM_ERROR_CORRECTION_BLOCKS=[[-1,1,1,1,1,1,2,2,2,2,4,4,4,4,4,6,6,6,6,7,8,8,9,9,10,12,12,12,13,14,15,16,17,18,19,19,20,21,22,24,25],[-1,1,1,1,2,2,4,4,4,5,5,5,8,9,9,10,10,11,13,14,16,17,17,18,20,21,23,25,26,28,29,31,33,35,37,38,40,43,45,47,49],[-1,1,1,2,2,4,4,6,6,8,8,8,10,12,16,12,17,16,18,21,20,23,23,25,27,29,34,34,35,38,40,43,45,48,51,53,56,59,62,65,68],[-1,1,1,2,4,4,4,5,6,8,8,11,11,16,16,18,16,19,21,25,25,25,34,30,32,35,37,40,42,45,48,51,54,57,60,63,66,70,74,77,81]],n.QrCode=e;function t(o,l,u){if(l<0||l>31||o>>>l)throw new RangeError("Value out of range");for(let d=l-1;d>=0;d--)u.push(o>>>d&1)}function r(o,l){return(o>>>l&1)!=0}function a(o){if(!o)throw new Error("Assertion error")}const i=class Gn{constructor(l,u,d){if(this.mode=l,this.numChars=u,this.bitData=d,u<0)throw new RangeError("Invalid argument");this.bitData=d.slice()}static makeBytes(l){let u=[];for(const d of l)t(d,8,u);return new Gn(Gn.Mode.BYTE,l.length,u)}static makeNumeric(l){if(!Gn.isNumeric(l))throw new RangeError("String contains non-numeric characters");let u=[];for(let d=0;d<l.length;){const f=Math.min(l.length-d,3);t(parseInt(l.substring(d,d+f),10),f*3+1,u),d+=f}return new Gn(Gn.Mode.NUMERIC,l.length,u)}static makeAlphanumeric(l){if(!Gn.isAlphanumeric(l))throw new RangeError("String contains unencodable characters in alphanumeric mode");let u=[],d;for(d=0;d+2<=l.length;d+=2){let f=Gn.ALPHANUMERIC_CHARSET.indexOf(l.charAt(d))*45;f+=Gn.ALPHANUMERIC_CHARSET.indexOf(l.charAt(d+1)),t(f,11,u)}return d<l.length&&t(Gn.ALPHANUMERIC_CHARSET.indexOf(l.charAt(d)),6,u),new Gn(Gn.Mode.ALPHANUMERIC,l.length,u)}static makeSegments(l){return l==""?[]:Gn.isNumeric(l)?[Gn.makeNumeric(l)]:Gn.isAlphanumeric(l)?[Gn.makeAlphanumeric(l)]:[Gn.makeBytes(Gn.toUtf8ByteArray(l))]}static makeEci(l){let u=[];if(l<0)throw new RangeError("ECI assignment value out of range");if(l<128)t(l,8,u);else if(l<16384)t(2,2,u),t(l,14,u);else if(l<1e6)t(6,3,u),t(l,21,u);else throw new RangeError("ECI assignment value out of range");return new Gn(Gn.Mode.ECI,0,u)}static isNumeric(l){return Gn.NUMERIC_REGEX.test(l)}static isAlphanumeric(l){return Gn.ALPHANUMERIC_REGEX.test(l)}getData(){return this.bitData.slice()}static getTotalBits(l,u){let d=0;for(const f of l){const g=f.mode.numCharCountBits(u);if(f.numChars>=1<<g)return 1/0;d+=4+g+f.bitData.length}return d}static toUtf8ByteArray(l){l=encodeURI(l);let u=[];for(let d=0;d<l.length;d++)l.charAt(d)!="%"?u.push(l.charCodeAt(d)):(u.push(parseInt(l.substring(d+1,d+3),16)),d+=2);return u}};i.NUMERIC_REGEX=/^[0-9]*$/,i.ALPHANUMERIC_REGEX=/^[A-Z0-9 $%*+.\/:-]*$/,i.ALPHANUMERIC_CHARSET="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:";let s=i;n.QrSegment=i})(El||(El={}));(n=>{(e=>{const t=class{constructor(a,i){this.ordinal=a,this.formatBits=i}};t.LOW=new t(0,1),t.MEDIUM=new t(1,0),t.QUARTILE=new t(2,3),t.HIGH=new t(3,2),e.Ecc=t})(n.QrCode||(n.QrCode={}))})(El||(El={}));(n=>{(e=>{const t=class{constructor(a,i){this.modeBits=a,this.numBitsCharCount=i}numCharCountBits(a){return this.numBitsCharCount[Math.floor((a+7)/17)]}};t.NUMERIC=new t(1,[10,12,14]),t.ALPHANUMERIC=new t(2,[9,11,13]),t.BYTE=new t(4,[8,16,16]),t.KANJI=new t(8,[8,10,12]),t.ECI=new t(7,[0,0,0]),e.Mode=t})(n.QrSegment||(n.QrSegment={}))})(El||(El={}));var Wc=El;/**
 * @license qrcode.react
 * Copyright (c) Paul O'Shannessy
 * SPDX-License-Identifier: ISC
 */var Xue={L:Wc.QrCode.Ecc.LOW,M:Wc.QrCode.Ecc.MEDIUM,Q:Wc.QrCode.Ecc.QUARTILE,H:Wc.QrCode.Ecc.HIGH},jW=128,WW="L",qW="#FFFFFF",XW="#000000",VW=!1,UW=1,Vue=4,Uue=0,Gue=.1;function GW(n,e=0){const t=[];return n.forEach(function(r,a){let i=null;r.forEach(function(s,o){if(!s&&i!==null){t.push(`M${i+e} ${a+e}h${o-i}v1H${i+e}z`),i=null;return}if(o===r.length-1){if(!s)return;i===null?t.push(`M${o+e},${a+e} h1v1H${o+e}z`):t.push(`M${i+e},${a+e} h${o+1-i}v1H${i+e}z`);return}s&&i===null&&(i=o)})}),t.join("")}function ZW(n,e){return n.slice().map((t,r)=>r<e.y||r>=e.y+e.h?t:t.map((a,i)=>i<e.x||i>=e.x+e.w?a:!1))}function Zue(n,e,t,r){if(r==null)return null;const a=n.length+t*2,i=Math.floor(e*Gue),s=a/e,o=(r.width||i)*s,l=(r.height||i)*s,u=r.x==null?n.length/2-o/2:r.x*s,d=r.y==null?n.length/2-l/2:r.y*s,f=r.opacity==null?1:r.opacity;let g=null;if(r.excavate){let b=Math.floor(u),y=Math.floor(d),x=Math.ceil(o+u-b),S=Math.ceil(l+d-y);g={x:b,y,w:x,h:S}}const p=r.crossOrigin;return{x:u,y:d,h:l,w:o,excavation:g,opacity:f,crossOrigin:p}}function Que(n,e){return e!=null?Math.max(Math.floor(e),0):n?Vue:Uue}function QW({value:n,level:e,minVersion:t,includeMargin:r,marginSize:a,imageSettings:i,size:s,boostLevel:o}){let l=pe.useMemo(()=>{const b=(Array.isArray(n)?n:[n]).reduce((y,x)=>(y.push(...Wc.QrSegment.makeSegments(x)),y),[]);return Wc.QrCode.encodeSegments(b,Xue[e],t,void 0,void 0,o)},[n,e,t,o]);const{cells:u,margin:d,numCells:f,calculatedImageSettings:g}=pe.useMemo(()=>{let p=l.getModules();const b=Que(r,a),y=p.length+b*2,x=Zue(p,s,b,i);return{cells:p,margin:b,numCells:y,calculatedImageSettings:x}},[l,s,i,r,a]);return{qrcode:l,margin:d,cells:u,numCells:f,calculatedImageSettings:g}}var Kue=(function(){try{new Path2D().addPath(new Path2D)}catch{return!1}return!0})(),Jue=pe.forwardRef(function(e,t){const r=e,{value:a,size:i=jW,level:s=WW,bgColor:o=qW,fgColor:l=XW,includeMargin:u=VW,minVersion:d=UW,boostLevel:f,marginSize:g,imageSettings:p}=r,y=vE(r,["value","size","level","bgColor","fgColor","includeMargin","minVersion","boostLevel","marginSize","imageSettings"]),{style:x}=y,S=vE(y,["style"]),C=p?.src,O=pe.useRef(null),D=pe.useRef(null),M=pe.useCallback(k=>{O.current=k,typeof t=="function"?t(k):t&&(t.current=k)},[t]),[A,T]=pe.useState(!1),{margin:P,cells:R,numCells:N,calculatedImageSettings:I}=QW({value:a,level:s,minVersion:d,boostLevel:f,includeMargin:u,marginSize:g,imageSettings:p,size:i});pe.useEffect(()=>{if(O.current!=null){const k=O.current,H=k.getContext("2d");if(!H)return;let F=R;const B=D.current,X=I!=null&&B!==null&&B.complete&&B.naturalHeight!==0&&B.naturalWidth!==0;X&&I.excavation!=null&&(F=ZW(R,I.excavation));const Q=window.devicePixelRatio||1;k.height=k.width=i*Q;const z=i/N*Q;H.scale(z,z),H.fillStyle=o,H.fillRect(0,0,N,N),H.fillStyle=l,Kue?H.fill(new Path2D(GW(F,P))):R.forEach(function(V,j){V.forEach(function(q,G){q&&H.fillRect(G+P,j+P,1,1)})}),I&&(H.globalAlpha=I.opacity),X&&H.drawImage(B,I.x+P,I.y+P,I.w,I.h)}}),pe.useEffect(()=>{T(!1)},[C]);const $=mE({height:i,width:i},x);let Y=null;return C!=null&&(Y=pe.createElement("img",{src:C,key:C,style:{display:"none"},onLoad:()=>{T(!0)},ref:D,crossOrigin:I?.crossOrigin})),pe.createElement(pe.Fragment,null,pe.createElement("canvas",mE({style:$,height:i,width:i,ref:M,role:"img"},S)),Y)});Jue.displayName="QRCodeCanvas";var ede=pe.forwardRef(function(e,t){const r=e,{value:a,size:i=jW,level:s=WW,bgColor:o=qW,fgColor:l=XW,includeMargin:u=VW,minVersion:d=UW,boostLevel:f,title:g,marginSize:p,imageSettings:b}=r,y=vE(r,["value","size","level","bgColor","fgColor","includeMargin","minVersion","boostLevel","title","marginSize","imageSettings"]),{margin:x,cells:S,numCells:C,calculatedImageSettings:O}=QW({value:a,level:s,minVersion:d,boostLevel:f,includeMargin:u,marginSize:p,imageSettings:b,size:i});let D=S,M=null;b!=null&&O!=null&&(O.excavation!=null&&(D=ZW(S,O.excavation)),M=pe.createElement("image",{href:b.src,height:O.h,width:O.w,x:O.x+x,y:O.y+x,preserveAspectRatio:"none",opacity:O.opacity,crossOrigin:O.crossOrigin}));const A=GW(D,x);return pe.createElement("svg",mE({height:i,width:i,viewBox:`0 0 ${C} ${C}`,ref:t,role:"img"},y),!!g&&pe.createElement("title",null,g),pe.createElement("path",{fill:o,d:`M0,0 h${C}v${C}H0z`,shapeRendering:"crispEdges"}),pe.createElement("path",{fill:l,d:A,shapeRendering:"crispEdges"}),M)});ede.displayName="QRCodeSVG";export{TH as B,Tl as C,ude as D,cde as F,ide as H,dde as L,fde as M,rde as N,hde as O,u8 as P,ede as Q,pe as R,i8 as T,Cs as a,Yq as b,gde as c,Bte as d,ma as e,d8 as f,Bq as g,Xh as h,ofe as i,Re as j,lfe as k,yse as l,As as m,sde as n,ade as o,f6 as p,nde as q,E as r,gae as s,wE as u,mde as z};
