var Gj=e=>{throw TypeError(e)};var Pv=(e,t,n)=>t.has(e)||Gj("Cannot "+n);var P=(e,t,n)=>(Pv(e,t,"read from private field"),n?n.call(e):t.get(e)),ce=(e,t,n)=>t.has(e)?Gj("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),J=(e,t,n,r)=>(Pv(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),Ae=(e,t,n)=>(Pv(e,t,"access private method"),n);var qd=(e,t,n,r)=>({set _(a){J(e,t,a,n)},get _(){return P(e,t,r)}});(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const a of document.querySelectorAll('link[rel="modulepreload"]'))r(a);new MutationObserver(a=>{for(const i of a)if(i.type==="childList")for(const s of i.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&r(s)}).observe(document,{childList:!0,subtree:!0});function n(a){const i={};return a.integrity&&(i.integrity=a.integrity),a.referrerPolicy&&(i.referrerPolicy=a.referrerPolicy),a.crossOrigin==="use-credentials"?i.credentials="include":a.crossOrigin==="anonymous"?i.credentials="omit":i.credentials="same-origin",i}function r(a){if(a.ep)return;a.ep=!0;const i=n(a);fetch(a.href,i)}})();var Vd=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function ze(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var UC={exports:{}},ny={};/**
 * @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 ZL=Symbol.for("react.transitional.element"),JL=Symbol.for("react.fragment");function qC(e,t,n){var r=null;if(n!==void 0&&(r=""+n),t.key!==void 0&&(r=""+t.key),"key"in t){n={};for(var a in t)a!=="key"&&(n[a]=t[a])}else n=t;return t=n.ref,{$$typeof:ZL,type:e,key:r,ref:t!==void 0?t:null,props:n}}ny.Fragment=JL;ny.jsx=qC;ny.jsxs=qC;UC.exports=ny;var u=UC.exports,VC={exports:{}},ve={};/**
 * @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 _1=Symbol.for("react.transitional.element"),e6=Symbol.for("react.portal"),t6=Symbol.for("react.fragment"),n6=Symbol.for("react.strict_mode"),r6=Symbol.for("react.profiler"),a6=Symbol.for("react.consumer"),i6=Symbol.for("react.context"),s6=Symbol.for("react.forward_ref"),o6=Symbol.for("react.suspense"),l6=Symbol.for("react.memo"),HC=Symbol.for("react.lazy"),c6=Symbol.for("react.activity"),Kj=Symbol.iterator;function u6(e){return e===null||typeof e!="object"?null:(e=Kj&&e[Kj]||e["@@iterator"],typeof e=="function"?e:null)}var FC={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},GC=Object.assign,KC={};function mc(e,t,n){this.props=e,this.context=t,this.refs=KC,this.updater=n||FC}mc.prototype.isReactComponent={};mc.prototype.setState=function(e,t){if(typeof e!="object"&&typeof e!="function"&&e!=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,e,t,"setState")};mc.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function YC(){}YC.prototype=mc.prototype;function C1(e,t,n){this.props=e,this.context=t,this.refs=KC,this.updater=n||FC}var P1=C1.prototype=new YC;P1.constructor=C1;GC(P1,mc.prototype);P1.isPureReactComponent=!0;var Yj=Array.isArray;function vb(){}var rt={H:null,A:null,T:null,S:null},XC=Object.prototype.hasOwnProperty;function M1(e,t,n){var r=n.ref;return{$$typeof:_1,type:e,key:t,ref:r!==void 0?r:null,props:n}}function f6(e,t){return M1(e.type,t,e.props)}function R1(e){return typeof e=="object"&&e!==null&&e.$$typeof===_1}function d6(e){var t={"=":"=0",":":"=2"};return"$"+e.replace(/[=:]/g,function(n){return t[n]})}var Xj=/\/+/g;function Mv(e,t){return typeof e=="object"&&e!==null&&e.key!=null?d6(""+e.key):t.toString(36)}function h6(e){switch(e.status){case"fulfilled":return e.value;case"rejected":throw e.reason;default:switch(typeof e.status=="string"?e.then(vb,vb):(e.status="pending",e.then(function(t){e.status==="pending"&&(e.status="fulfilled",e.value=t)},function(t){e.status==="pending"&&(e.status="rejected",e.reason=t)})),e.status){case"fulfilled":return e.value;case"rejected":throw e.reason}}throw e}function Mo(e,t,n,r,a){var i=typeof e;(i==="undefined"||i==="boolean")&&(e=null);var s=!1;if(e===null)s=!0;else switch(i){case"bigint":case"string":case"number":s=!0;break;case"object":switch(e.$$typeof){case _1:case e6:s=!0;break;case HC:return s=e._init,Mo(s(e._payload),t,n,r,a)}}if(s)return a=a(e),s=r===""?"."+Mv(e,0):r,Yj(a)?(n="",s!=null&&(n=s.replace(Xj,"$&/")+"/"),Mo(a,t,n,"",function(c){return c})):a!=null&&(R1(a)&&(a=f6(a,n+(a.key==null||e&&e.key===a.key?"":(""+a.key).replace(Xj,"$&/")+"/")+s)),t.push(a)),1;s=0;var o=r===""?".":r+":";if(Yj(e))for(var l=0;l<e.length;l++)r=e[l],i=o+Mv(r,l),s+=Mo(r,t,n,i,a);else if(l=u6(e),typeof l=="function")for(e=l.call(e),l=0;!(r=e.next()).done;)r=r.value,i=o+Mv(r,l++),s+=Mo(r,t,n,i,a);else if(i==="object"){if(typeof e.then=="function")return Mo(h6(e),t,n,r,a);throw t=String(e),Error("Objects are not valid as a React child (found: "+(t==="[object Object]"?"object with keys {"+Object.keys(e).join(", ")+"}":t)+"). If you meant to render a collection of children, use an array instead.")}return s}function Hd(e,t,n){if(e==null)return e;var r=[],a=0;return Mo(e,r,"","",function(i){return t.call(n,i,a++)}),r}function p6(e){if(e._status===-1){var t=e._result;t=t(),t.then(function(n){(e._status===0||e._status===-1)&&(e._status=1,e._result=n)},function(n){(e._status===0||e._status===-1)&&(e._status=2,e._result=n)}),e._status===-1&&(e._status=0,e._result=t)}if(e._status===1)return e._result.default;throw e._result}var Wj=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},m6={map:Hd,forEach:function(e,t,n){Hd(e,function(){t.apply(this,arguments)},n)},count:function(e){var t=0;return Hd(e,function(){t++}),t},toArray:function(e){return Hd(e,function(t){return t})||[]},only:function(e){if(!R1(e))throw Error("React.Children.only expected to receive a single React element child.");return e}};ve.Activity=c6;ve.Children=m6;ve.Component=mc;ve.Fragment=t6;ve.Profiler=r6;ve.PureComponent=C1;ve.StrictMode=n6;ve.Suspense=o6;ve.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=rt;ve.__COMPILER_RUNTIME={__proto__:null,c:function(e){return rt.H.useMemoCache(e)}};ve.cache=function(e){return function(){return e.apply(null,arguments)}};ve.cacheSignal=function(){return null};ve.cloneElement=function(e,t,n){if(e==null)throw Error("The argument must be a React element, but you passed "+e+".");var r=GC({},e.props),a=e.key;if(t!=null)for(i in t.key!==void 0&&(a=""+t.key),t)!XC.call(t,i)||i==="key"||i==="__self"||i==="__source"||i==="ref"&&t.ref===void 0||(r[i]=t[i]);var i=arguments.length-2;if(i===1)r.children=n;else if(1<i){for(var s=Array(i),o=0;o<i;o++)s[o]=arguments[o+2];r.children=s}return M1(e.type,a,r)};ve.createContext=function(e){return e={$$typeof:i6,_currentValue:e,_currentValue2:e,_threadCount:0,Provider:null,Consumer:null},e.Provider=e,e.Consumer={$$typeof:a6,_context:e},e};ve.createElement=function(e,t,n){var r,a={},i=null;if(t!=null)for(r in t.key!==void 0&&(i=""+t.key),t)XC.call(t,r)&&r!=="key"&&r!=="__self"&&r!=="__source"&&(a[r]=t[r]);var s=arguments.length-2;if(s===1)a.children=n;else if(1<s){for(var o=Array(s),l=0;l<s;l++)o[l]=arguments[l+2];a.children=o}if(e&&e.defaultProps)for(r in s=e.defaultProps,s)a[r]===void 0&&(a[r]=s[r]);return M1(e,i,a)};ve.createRef=function(){return{current:null}};ve.forwardRef=function(e){return{$$typeof:s6,render:e}};ve.isValidElement=R1;ve.lazy=function(e){return{$$typeof:HC,_payload:{_status:-1,_result:e},_init:p6}};ve.memo=function(e,t){return{$$typeof:l6,type:e,compare:t===void 0?null:t}};ve.startTransition=function(e){var t=rt.T,n={};rt.T=n;try{var r=e(),a=rt.S;a!==null&&a(n,r),typeof r=="object"&&r!==null&&typeof r.then=="function"&&r.then(vb,Wj)}catch(i){Wj(i)}finally{t!==null&&n.types!==null&&(t.types=n.types),rt.T=t}};ve.unstable_useCacheRefresh=function(){return rt.H.useCacheRefresh()};ve.use=function(e){return rt.H.use(e)};ve.useActionState=function(e,t,n){return rt.H.useActionState(e,t,n)};ve.useCallback=function(e,t){return rt.H.useCallback(e,t)};ve.useContext=function(e){return rt.H.useContext(e)};ve.useDebugValue=function(){};ve.useDeferredValue=function(e,t){return rt.H.useDeferredValue(e,t)};ve.useEffect=function(e,t){return rt.H.useEffect(e,t)};ve.useEffectEvent=function(e){return rt.H.useEffectEvent(e)};ve.useId=function(){return rt.H.useId()};ve.useImperativeHandle=function(e,t,n){return rt.H.useImperativeHandle(e,t,n)};ve.useInsertionEffect=function(e,t){return rt.H.useInsertionEffect(e,t)};ve.useLayoutEffect=function(e,t){return rt.H.useLayoutEffect(e,t)};ve.useMemo=function(e,t){return rt.H.useMemo(e,t)};ve.useOptimistic=function(e,t){return rt.H.useOptimistic(e,t)};ve.useReducer=function(e,t,n){return rt.H.useReducer(e,t,n)};ve.useRef=function(e){return rt.H.useRef(e)};ve.useState=function(e){return rt.H.useState(e)};ve.useSyncExternalStore=function(e,t,n){return rt.H.useSyncExternalStore(e,t,n)};ve.useTransition=function(){return rt.H.useTransition()};ve.version="19.2.7";VC.exports=ve;var A=VC.exports;const N=ze(A);var WC={exports:{}},ry={},QC={exports:{}},ZC={};/**
 * @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.
 */(function(e){function t(R,$){var B=R.length;R.push($);e:for(;0<B;){var V=B-1>>>1,H=R[V];if(0<a(H,$))R[V]=$,R[B]=H,B=V;else break e}}function n(R){return R.length===0?null:R[0]}function r(R){if(R.length===0)return null;var $=R[0],B=R.pop();if(B!==$){R[0]=B;e:for(var V=0,H=R.length,Q=H>>>1;V<Q;){var Y=2*(V+1)-1,re=R[Y],ee=Y+1,be=R[ee];if(0>a(re,B))ee<H&&0>a(be,re)?(R[V]=be,R[ee]=B,V=ee):(R[V]=re,R[Y]=B,V=Y);else if(ee<H&&0>a(be,B))R[V]=be,R[ee]=B,V=ee;else break e}}return $}function a(R,$){var B=R.sortIndex-$.sortIndex;return B!==0?B:R.id-$.id}if(e.unstable_now=void 0,typeof performance=="object"&&typeof performance.now=="function"){var i=performance;e.unstable_now=function(){return i.now()}}else{var s=Date,o=s.now();e.unstable_now=function(){return s.now()-o}}var l=[],c=[],f=1,d=null,h=3,p=!1,v=!1,y=!1,b=!1,m=typeof setTimeout=="function"?setTimeout:null,g=typeof clearTimeout=="function"?clearTimeout:null,x=typeof setImmediate<"u"?setImmediate:null;function w(R){for(var $=n(c);$!==null;){if($.callback===null)r(c);else if($.startTime<=R)r(c),$.sortIndex=$.expirationTime,t(l,$);else break;$=n(c)}}function S(R){if(y=!1,w(R),!v)if(n(l)!==null)v=!0,j||(j=!0,C());else{var $=n(c);$!==null&&k(S,$.startTime-R)}}var j=!1,O=-1,E=5,T=-1;function _(){return b?!0:!(e.unstable_now()-T<E)}function M(){if(b=!1,j){var R=e.unstable_now();T=R;var $=!0;try{e:{v=!1,y&&(y=!1,g(O),O=-1),p=!0;var B=h;try{t:{for(w(R),d=n(l);d!==null&&!(d.expirationTime>R&&_());){var V=d.callback;if(typeof V=="function"){d.callback=null,h=d.priorityLevel;var H=V(d.expirationTime<=R);if(R=e.unstable_now(),typeof H=="function"){d.callback=H,w(R),$=!0;break t}d===n(l)&&r(l),w(R)}else r(l);d=n(l)}if(d!==null)$=!0;else{var Q=n(c);Q!==null&&k(S,Q.startTime-R),$=!1}}break e}finally{d=null,h=B,p=!1}$=void 0}}finally{$?C():j=!1}}}var C;if(typeof x=="function")C=function(){x(M)};else if(typeof MessageChannel<"u"){var z=new MessageChannel,L=z.port2;z.port1.onmessage=M,C=function(){L.postMessage(null)}}else C=function(){m(M,0)};function k(R,$){O=m(function(){R(e.unstable_now())},$)}e.unstable_IdlePriority=5,e.unstable_ImmediatePriority=1,e.unstable_LowPriority=4,e.unstable_NormalPriority=3,e.unstable_Profiling=null,e.unstable_UserBlockingPriority=2,e.unstable_cancelCallback=function(R){R.callback=null},e.unstable_forceFrameRate=function(R){0>R||125<R?console.error("forceFrameRate takes a positive int between 0 and 125, forcing frame rates higher than 125 fps is not supported"):E=0<R?Math.floor(1e3/R):5},e.unstable_getCurrentPriorityLevel=function(){return h},e.unstable_next=function(R){switch(h){case 1:case 2:case 3:var $=3;break;default:$=h}var B=h;h=$;try{return R()}finally{h=B}},e.unstable_requestPaint=function(){b=!0},e.unstable_runWithPriority=function(R,$){switch(R){case 1:case 2:case 3:case 4:case 5:break;default:R=3}var B=h;h=R;try{return $()}finally{h=B}},e.unstable_scheduleCallback=function(R,$,B){var V=e.unstable_now();switch(typeof B=="object"&&B!==null?(B=B.delay,B=typeof B=="number"&&0<B?V+B:V):B=V,R){case 1:var H=-1;break;case 2:H=250;break;case 5:H=1073741823;break;case 4:H=1e4;break;default:H=5e3}return H=B+H,R={id:f++,callback:$,priorityLevel:R,startTime:B,expirationTime:H,sortIndex:-1},B>V?(R.sortIndex=B,t(c,R),n(l)===null&&R===n(c)&&(y?(g(O),O=-1):y=!0,k(S,B-V))):(R.sortIndex=H,t(l,R),v||p||(v=!0,j||(j=!0,C()))),R},e.unstable_shouldYield=_,e.unstable_wrapCallback=function(R){var $=h;return function(){var B=h;h=$;try{return R.apply(this,arguments)}finally{h=B}}}})(ZC);QC.exports=ZC;var y6=QC.exports,JC={exports:{}},yn={};/**
 * @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 v6=A;function eP(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function ri(){}var un={d:{f:ri,r:function(){throw Error(eP(522))},D:ri,C:ri,L:ri,m:ri,X:ri,S:ri,M:ri},p:0,findDOMNode:null},g6=Symbol.for("react.portal");function b6(e,t,n){var r=3<arguments.length&&arguments[3]!==void 0?arguments[3]:null;return{$$typeof:g6,key:r==null?null:""+r,children:e,containerInfo:t,implementation:n}}var Su=v6.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE;function ay(e,t){if(e==="font")return"";if(typeof t=="string")return t==="use-credentials"?t:""}yn.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE=un;yn.createPortal=function(e,t){var n=2<arguments.length&&arguments[2]!==void 0?arguments[2]:null;if(!t||t.nodeType!==1&&t.nodeType!==9&&t.nodeType!==11)throw Error(eP(299));return b6(e,t,null,n)};yn.flushSync=function(e){var t=Su.T,n=un.p;try{if(Su.T=null,un.p=2,e)return e()}finally{Su.T=t,un.p=n,un.d.f()}};yn.preconnect=function(e,t){typeof e=="string"&&(t?(t=t.crossOrigin,t=typeof t=="string"?t==="use-credentials"?t:"":void 0):t=null,un.d.C(e,t))};yn.prefetchDNS=function(e){typeof e=="string"&&un.d.D(e)};yn.preinit=function(e,t){if(typeof e=="string"&&t&&typeof t.as=="string"){var n=t.as,r=ay(n,t.crossOrigin),a=typeof t.integrity=="string"?t.integrity:void 0,i=typeof t.fetchPriority=="string"?t.fetchPriority:void 0;n==="style"?un.d.S(e,typeof t.precedence=="string"?t.precedence:void 0,{crossOrigin:r,integrity:a,fetchPriority:i}):n==="script"&&un.d.X(e,{crossOrigin:r,integrity:a,fetchPriority:i,nonce:typeof t.nonce=="string"?t.nonce:void 0})}};yn.preinitModule=function(e,t){if(typeof e=="string")if(typeof t=="object"&&t!==null){if(t.as==null||t.as==="script"){var n=ay(t.as,t.crossOrigin);un.d.M(e,{crossOrigin:n,integrity:typeof t.integrity=="string"?t.integrity:void 0,nonce:typeof t.nonce=="string"?t.nonce:void 0})}}else t==null&&un.d.M(e)};yn.preload=function(e,t){if(typeof e=="string"&&typeof t=="object"&&t!==null&&typeof t.as=="string"){var n=t.as,r=ay(n,t.crossOrigin);un.d.L(e,n,{crossOrigin:r,integrity:typeof t.integrity=="string"?t.integrity:void 0,nonce:typeof t.nonce=="string"?t.nonce:void 0,type:typeof t.type=="string"?t.type:void 0,fetchPriority:typeof t.fetchPriority=="string"?t.fetchPriority:void 0,referrerPolicy:typeof t.referrerPolicy=="string"?t.referrerPolicy:void 0,imageSrcSet:typeof t.imageSrcSet=="string"?t.imageSrcSet:void 0,imageSizes:typeof t.imageSizes=="string"?t.imageSizes:void 0,media:typeof t.media=="string"?t.media:void 0})}};yn.preloadModule=function(e,t){if(typeof e=="string")if(t){var n=ay(t.as,t.crossOrigin);un.d.m(e,{as:typeof t.as=="string"&&t.as!=="script"?t.as:void 0,crossOrigin:n,integrity:typeof t.integrity=="string"?t.integrity:void 0})}else un.d.m(e)};yn.requestFormReset=function(e){un.d.r(e)};yn.unstable_batchedUpdates=function(e,t){return e(t)};yn.useFormState=function(e,t,n){return Su.H.useFormState(e,t,n)};yn.useFormStatus=function(){return Su.H.useHostTransitionStatus()};yn.version="19.2.7";function tP(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(tP)}catch(e){console.error(e)}}tP(),JC.exports=yn;var x6=JC.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 $t=y6,nP=A,S6=x6;function U(e){var t="https://react.dev/errors/"+e;if(1<arguments.length){t+="?args[]="+encodeURIComponent(arguments[1]);for(var n=2;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n])}return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}function rP(e){return!(!e||e.nodeType!==1&&e.nodeType!==9&&e.nodeType!==11)}function od(e){var t=e,n=e;if(e.alternate)for(;t.return;)t=t.return;else{e=t;do t=e,t.flags&4098&&(n=t.return),e=t.return;while(e)}return t.tag===3?n:null}function aP(e){if(e.tag===13){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function iP(e){if(e.tag===31){var t=e.memoizedState;if(t===null&&(e=e.alternate,e!==null&&(t=e.memoizedState)),t!==null)return t.dehydrated}return null}function Qj(e){if(od(e)!==e)throw Error(U(188))}function w6(e){var t=e.alternate;if(!t){if(t=od(e),t===null)throw Error(U(188));return t!==e?null:e}for(var n=e,r=t;;){var a=n.return;if(a===null)break;var i=a.alternate;if(i===null){if(r=a.return,r!==null){n=r;continue}break}if(a.child===i.child){for(i=a.child;i;){if(i===n)return Qj(a),e;if(i===r)return Qj(a),t;i=i.sibling}throw Error(U(188))}if(n.return!==r.return)n=a,r=i;else{for(var s=!1,o=a.child;o;){if(o===n){s=!0,n=a,r=i;break}if(o===r){s=!0,r=a,n=i;break}o=o.sibling}if(!s){for(o=i.child;o;){if(o===n){s=!0,n=i,r=a;break}if(o===r){s=!0,r=i,n=a;break}o=o.sibling}if(!s)throw Error(U(189))}}if(n.alternate!==r)throw Error(U(190))}if(n.tag!==3)throw Error(U(188));return n.stateNode.current===n?e:t}function sP(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e;for(e=e.child;e!==null;){if(t=sP(e),t!==null)return t;e=e.sibling}return null}var at=Object.assign,j6=Symbol.for("react.element"),Fd=Symbol.for("react.transitional.element"),fu=Symbol.for("react.portal"),$o=Symbol.for("react.fragment"),oP=Symbol.for("react.strict_mode"),gb=Symbol.for("react.profiler"),lP=Symbol.for("react.consumer"),Oa=Symbol.for("react.context"),D1=Symbol.for("react.forward_ref"),bb=Symbol.for("react.suspense"),xb=Symbol.for("react.suspense_list"),$1=Symbol.for("react.memo"),li=Symbol.for("react.lazy"),Sb=Symbol.for("react.activity"),A6=Symbol.for("react.memo_cache_sentinel"),Zj=Symbol.iterator;function Vc(e){return e===null||typeof e!="object"?null:(e=Zj&&e[Zj]||e["@@iterator"],typeof e=="function"?e:null)}var O6=Symbol.for("react.client.reference");function wb(e){if(e==null)return null;if(typeof e=="function")return e.$$typeof===O6?null:e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case $o:return"Fragment";case gb:return"Profiler";case oP:return"StrictMode";case bb:return"Suspense";case xb:return"SuspenseList";case Sb:return"Activity"}if(typeof e=="object")switch(e.$$typeof){case fu:return"Portal";case Oa:return e.displayName||"Context";case lP:return(e._context.displayName||"Context")+".Consumer";case D1:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case $1:return t=e.displayName||null,t!==null?t:wb(e.type)||"Memo";case li:t=e._payload,e=e._init;try{return wb(e(t))}catch{}}return null}var du=Array.isArray,he=nP.__CLIENT_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,De=S6.__DOM_INTERNALS_DO_NOT_USE_OR_WARN_USERS_THEY_CANNOT_UPGRADE,Ls={pending:!1,data:null,method:null,action:null},jb=[],ko=-1;function oa(e){return{current:e}}function Ht(e){0>ko||(e.current=jb[ko],jb[ko]=null,ko--)}function Qe(e,t){ko++,jb[ko]=e.current,e.current=t}var Jr=oa(null),Yu=oa(null),Pi=oa(null),op=oa(null);function lp(e,t){switch(Qe(Pi,t),Qe(Yu,e),Qe(Jr,null),t.nodeType){case 9:case 11:e=(e=t.documentElement)&&(e=e.namespaceURI)?aA(e):0;break;default:if(e=t.tagName,t=t.namespaceURI)t=aA(t),e=NR(t,e);else switch(e){case"svg":e=1;break;case"math":e=2;break;default:e=0}}Ht(Jr),Qe(Jr,e)}function Tl(){Ht(Jr),Ht(Yu),Ht(Pi)}function Ab(e){e.memoizedState!==null&&Qe(op,e);var t=Jr.current,n=NR(t,e.type);t!==n&&(Qe(Yu,e),Qe(Jr,n))}function cp(e){Yu.current===e&&(Ht(Jr),Ht(Yu)),op.current===e&&(Ht(op),sf._currentValue=Ls)}var Rv,Jj;function cs(e){if(Rv===void 0)try{throw Error()}catch(n){var t=n.stack.trim().match(/\n( *(at )?)/);Rv=t&&t[1]||"",Jj=-1<n.stack.indexOf(`
    at`)?" (<anonymous>)":-1<n.stack.indexOf("@")?"@unknown:0:0":""}return`
`+Rv+e+Jj}var Dv=!1;function $v(e,t){if(!e||Dv)return"";Dv=!0;var n=Error.prepareStackTrace;Error.prepareStackTrace=void 0;try{var r={DetermineComponentFrameRoot:function(){try{if(t){var d=function(){throw Error()};if(Object.defineProperty(d.prototype,"props",{set:function(){throw Error()}}),typeof Reflect=="object"&&Reflect.construct){try{Reflect.construct(d,[])}catch(p){var h=p}Reflect.construct(e,[],d)}else{try{d.call()}catch(p){h=p}e.call(d.prototype)}}else{try{throw Error()}catch(p){h=p}(d=e())&&typeof d.catch=="function"&&d.catch(function(){})}}catch(p){if(p&&h&&typeof p.stack=="string")return[p.stack,h.stack]}return[null,null]}};r.DetermineComponentFrameRoot.displayName="DetermineComponentFrameRoot";var a=Object.getOwnPropertyDescriptor(r.DetermineComponentFrameRoot,"name");a&&a.configurable&&Object.defineProperty(r.DetermineComponentFrameRoot,"name",{value:"DetermineComponentFrameRoot"});var i=r.DetermineComponentFrameRoot(),s=i[0],o=i[1];if(s&&o){var l=s.split(`
`),c=o.split(`
`);for(a=r=0;r<l.length&&!l[r].includes("DetermineComponentFrameRoot");)r++;for(;a<c.length&&!c[a].includes("DetermineComponentFrameRoot");)a++;if(r===l.length||a===c.length)for(r=l.length-1,a=c.length-1;1<=r&&0<=a&&l[r]!==c[a];)a--;for(;1<=r&&0<=a;r--,a--)if(l[r]!==c[a]){if(r!==1||a!==1)do if(r--,a--,0>a||l[r]!==c[a]){var f=`
`+l[r].replace(" at new "," at ");return e.displayName&&f.includes("<anonymous>")&&(f=f.replace("<anonymous>",e.displayName)),f}while(1<=r&&0<=a);break}}}finally{Dv=!1,Error.prepareStackTrace=n}return(n=e?e.displayName||e.name:"")?cs(n):""}function E6(e,t){switch(e.tag){case 26:case 27:case 5:return cs(e.type);case 16:return cs("Lazy");case 13:return e.child!==t&&t!==null?cs("Suspense Fallback"):cs("Suspense");case 19:return cs("SuspenseList");case 0:case 15:return $v(e.type,!1);case 11:return $v(e.type.render,!1);case 1:return $v(e.type,!0);case 31:return cs("Activity");default:return""}}function e2(e){try{var t="",n=null;do t+=E6(e,n),n=e,e=e.return;while(e);return t}catch(r){return`
Error generating stack: `+r.message+`
`+r.stack}}var Ob=Object.prototype.hasOwnProperty,k1=$t.unstable_scheduleCallback,kv=$t.unstable_cancelCallback,T6=$t.unstable_shouldYield,N6=$t.unstable_requestPaint,Vn=$t.unstable_now,_6=$t.unstable_getCurrentPriorityLevel,cP=$t.unstable_ImmediatePriority,uP=$t.unstable_UserBlockingPriority,up=$t.unstable_NormalPriority,C6=$t.unstable_LowPriority,fP=$t.unstable_IdlePriority,P6=$t.log,M6=$t.unstable_setDisableYieldValue,ld=null,Hn=null;function Ai(e){if(typeof P6=="function"&&M6(e),Hn&&typeof Hn.setStrictMode=="function")try{Hn.setStrictMode(ld,e)}catch{}}var Fn=Math.clz32?Math.clz32:$6,R6=Math.log,D6=Math.LN2;function $6(e){return e>>>=0,e===0?32:31-(R6(e)/D6|0)|0}var Gd=256,Kd=262144,Yd=4194304;function us(e){var t=e&42;if(t!==0)return t;switch(e&-e){case 1:return 1;case 2:return 2;case 4:return 4;case 8:return 8;case 16:return 16;case 32:return 32;case 64:return 64;case 128:return 128;case 256:case 512:case 1024:case 2048:case 4096:case 8192:case 16384:case 32768:case 65536:case 131072:return e&261888;case 262144:case 524288:case 1048576:case 2097152:return e&3932160;case 4194304:case 8388608:case 16777216:case 33554432:return e&62914560;case 67108864:return 67108864;case 134217728:return 134217728;case 268435456:return 268435456;case 536870912:return 536870912;case 1073741824:return 0;default:return e}}function iy(e,t,n){var r=e.pendingLanes;if(r===0)return 0;var a=0,i=e.suspendedLanes,s=e.pingedLanes;e=e.warmLanes;var o=r&134217727;return o!==0?(r=o&~i,r!==0?a=us(r):(s&=o,s!==0?a=us(s):n||(n=o&~e,n!==0&&(a=us(n))))):(o=r&~i,o!==0?a=us(o):s!==0?a=us(s):n||(n=r&~e,n!==0&&(a=us(n)))),a===0?0:t!==0&&t!==a&&!(t&i)&&(i=a&-a,n=t&-t,i>=n||i===32&&(n&4194048)!==0)?t:a}function cd(e,t){return(e.pendingLanes&~(e.suspendedLanes&~e.pingedLanes)&t)===0}function k6(e,t){switch(e){case 1:case 2:case 4:case 8:case 64:return t+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 t+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 dP(){var e=Yd;return Yd<<=1,!(Yd&62914560)&&(Yd=4194304),e}function Lv(e){for(var t=[],n=0;31>n;n++)t.push(e);return t}function ud(e,t){e.pendingLanes|=t,t!==268435456&&(e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0)}function L6(e,t,n,r,a,i){var s=e.pendingLanes;e.pendingLanes=n,e.suspendedLanes=0,e.pingedLanes=0,e.warmLanes=0,e.expiredLanes&=n,e.entangledLanes&=n,e.errorRecoveryDisabledLanes&=n,e.shellSuspendCounter=0;var o=e.entanglements,l=e.expirationTimes,c=e.hiddenUpdates;for(n=s&~n;0<n;){var f=31-Fn(n),d=1<<f;o[f]=0,l[f]=-1;var h=c[f];if(h!==null)for(c[f]=null,f=0;f<h.length;f++){var p=h[f];p!==null&&(p.lane&=-536870913)}n&=~d}r!==0&&hP(e,r,0),i!==0&&a===0&&e.tag!==0&&(e.suspendedLanes|=i&~(s&~t))}function hP(e,t,n){e.pendingLanes|=t,e.suspendedLanes&=~t;var r=31-Fn(t);e.entangledLanes|=t,e.entanglements[r]=e.entanglements[r]|1073741824|n&261930}function pP(e,t){var n=e.entangledLanes|=t;for(e=e.entanglements;n;){var r=31-Fn(n),a=1<<r;a&t|e[r]&t&&(e[r]|=t),n&=~a}}function mP(e,t){var n=t&-t;return n=n&42?1:L1(n),n&(e.suspendedLanes|t)?0:n}function L1(e){switch(e){case 2:e=1;break;case 8:e=4;break;case 32:e=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:e=128;break;case 268435456:e=134217728;break;default:e=0}return e}function z1(e){return e&=-e,2<e?8<e?e&134217727?32:268435456:8:2}function yP(){var e=De.p;return e!==0?e:(e=window.event,e===void 0?32:BR(e.type))}function t2(e,t){var n=De.p;try{return De.p=e,t()}finally{De.p=n}}var Xi=Math.random().toString(36).slice(2),Wt="__reactFiber$"+Xi,Nn="__reactProps$"+Xi,yc="__reactContainer$"+Xi,Eb="__reactEvents$"+Xi,z6="__reactListeners$"+Xi,B6="__reactHandles$"+Xi,n2="__reactResources$"+Xi,fd="__reactMarker$"+Xi;function B1(e){delete e[Wt],delete e[Nn],delete e[Eb],delete e[z6],delete e[B6]}function Lo(e){var t=e[Wt];if(t)return t;for(var n=e.parentNode;n;){if(t=n[yc]||n[Wt]){if(n=t.alternate,t.child!==null||n!==null&&n.child!==null)for(e=cA(e);e!==null;){if(n=e[Wt])return n;e=cA(e)}return t}e=n,n=e.parentNode}return null}function vc(e){if(e=e[Wt]||e[yc]){var t=e.tag;if(t===5||t===6||t===13||t===31||t===26||t===27||t===3)return e}return null}function hu(e){var t=e.tag;if(t===5||t===26||t===27||t===6)return e.stateNode;throw Error(U(33))}function rl(e){var t=e[n2];return t||(t=e[n2]={hoistableStyles:new Map,hoistableScripts:new Map}),t}function qt(e){e[fd]=!0}var vP=new Set,gP={};function lo(e,t){Nl(e,t),Nl(e+"Capture",t)}function Nl(e,t){for(gP[e]=t,e=0;e<t.length;e++)vP.add(t[e])}var I6=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]*$"),r2={},a2={};function U6(e){return Ob.call(a2,e)?!0:Ob.call(r2,e)?!1:I6.test(e)?a2[e]=!0:(r2[e]=!0,!1)}function Dh(e,t,n){if(U6(t))if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":e.removeAttribute(t);return;case"boolean":var r=t.toLowerCase().slice(0,5);if(r!=="data-"&&r!=="aria-"){e.removeAttribute(t);return}}e.setAttribute(t,""+n)}}function Xd(e,t,n){if(n===null)e.removeAttribute(t);else{switch(typeof n){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(t);return}e.setAttribute(t,""+n)}}function ha(e,t,n,r){if(r===null)e.removeAttribute(n);else{switch(typeof r){case"undefined":case"function":case"symbol":case"boolean":e.removeAttribute(n);return}e.setAttributeNS(t,n,""+r)}}function sr(e){switch(typeof e){case"bigint":case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function bP(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function q6(e,t,n){var r=Object.getOwnPropertyDescriptor(e.constructor.prototype,t);if(!e.hasOwnProperty(t)&&typeof r<"u"&&typeof r.get=="function"&&typeof r.set=="function"){var a=r.get,i=r.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return a.call(this)},set:function(s){n=""+s,i.call(this,s)}}),Object.defineProperty(e,t,{enumerable:r.enumerable}),{getValue:function(){return n},setValue:function(s){n=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Tb(e){if(!e._valueTracker){var t=bP(e)?"checked":"value";e._valueTracker=q6(e,t,""+e[t])}}function xP(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=bP(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function fp(e){if(e=e||(typeof document<"u"?document:void 0),typeof e>"u")return null;try{return e.activeElement||e.body}catch{return e.body}}var V6=/[\n"\\]/g;function cr(e){return e.replace(V6,function(t){return"\\"+t.charCodeAt(0).toString(16)+" "})}function Nb(e,t,n,r,a,i,s,o){e.name="",s!=null&&typeof s!="function"&&typeof s!="symbol"&&typeof s!="boolean"?e.type=s:e.removeAttribute("type"),t!=null?s==="number"?(t===0&&e.value===""||e.value!=t)&&(e.value=""+sr(t)):e.value!==""+sr(t)&&(e.value=""+sr(t)):s!=="submit"&&s!=="reset"||e.removeAttribute("value"),t!=null?_b(e,s,sr(t)):n!=null?_b(e,s,sr(n)):r!=null&&e.removeAttribute("value"),a==null&&i!=null&&(e.defaultChecked=!!i),a!=null&&(e.checked=a&&typeof a!="function"&&typeof a!="symbol"),o!=null&&typeof o!="function"&&typeof o!="symbol"&&typeof o!="boolean"?e.name=""+sr(o):e.removeAttribute("name")}function SP(e,t,n,r,a,i,s,o){if(i!=null&&typeof i!="function"&&typeof i!="symbol"&&typeof i!="boolean"&&(e.type=i),t!=null||n!=null){if(!(i!=="submit"&&i!=="reset"||t!=null)){Tb(e);return}n=n!=null?""+sr(n):"",t=t!=null?""+sr(t):n,o||t===e.value||(e.value=t),e.defaultValue=t}r=r??a,r=typeof r!="function"&&typeof r!="symbol"&&!!r,e.checked=o?e.checked:!!r,e.defaultChecked=!!r,s!=null&&typeof s!="function"&&typeof s!="symbol"&&typeof s!="boolean"&&(e.name=s),Tb(e)}function _b(e,t,n){t==="number"&&fp(e.ownerDocument)===e||e.defaultValue===""+n||(e.defaultValue=""+n)}function al(e,t,n,r){if(e=e.options,t){t={};for(var a=0;a<n.length;a++)t["$"+n[a]]=!0;for(n=0;n<e.length;n++)a=t.hasOwnProperty("$"+e[n].value),e[n].selected!==a&&(e[n].selected=a),a&&r&&(e[n].defaultSelected=!0)}else{for(n=""+sr(n),t=null,a=0;a<e.length;a++){if(e[a].value===n){e[a].selected=!0,r&&(e[a].defaultSelected=!0);return}t!==null||e[a].disabled||(t=e[a])}t!==null&&(t.selected=!0)}}function wP(e,t,n){if(t!=null&&(t=""+sr(t),t!==e.value&&(e.value=t),n==null)){e.defaultValue!==t&&(e.defaultValue=t);return}e.defaultValue=n!=null?""+sr(n):""}function jP(e,t,n,r){if(t==null){if(r!=null){if(n!=null)throw Error(U(92));if(du(r)){if(1<r.length)throw Error(U(93));r=r[0]}n=r}n==null&&(n=""),t=n}n=sr(t),e.defaultValue=n,r=e.textContent,r===n&&r!==""&&r!==null&&(e.value=r),Tb(e)}function _l(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var H6=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 i2(e,t,n){var r=t.indexOf("--")===0;n==null||typeof n=="boolean"||n===""?r?e.setProperty(t,""):t==="float"?e.cssFloat="":e[t]="":r?e.setProperty(t,n):typeof n!="number"||n===0||H6.has(t)?t==="float"?e.cssFloat=n:e[t]=(""+n).trim():e[t]=n+"px"}function AP(e,t,n){if(t!=null&&typeof t!="object")throw Error(U(62));if(e=e.style,n!=null){for(var r in n)!n.hasOwnProperty(r)||t!=null&&t.hasOwnProperty(r)||(r.indexOf("--")===0?e.setProperty(r,""):r==="float"?e.cssFloat="":e[r]="");for(var a in t)r=t[a],t.hasOwnProperty(a)&&n[a]!==r&&i2(e,a,r)}else for(var i in t)t.hasOwnProperty(i)&&i2(e,i,t[i])}function I1(e){if(e.indexOf("-")===-1)return!1;switch(e){case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return!1;default:return!0}}var F6=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"]]),G6=/^[\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 $h(e){return G6.test(""+e)?"javascript:throw new Error('React has blocked a javascript: URL as a security precaution.')":e}function Ea(){}var Cb=null;function U1(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var zo=null,il=null;function s2(e){var t=vc(e);if(t&&(e=t.stateNode)){var n=e[Nn]||null;e:switch(e=t.stateNode,t.type){case"input":if(Nb(e,n.value,n.defaultValue,n.defaultValue,n.checked,n.defaultChecked,n.type,n.name),t=n.name,n.type==="radio"&&t!=null){for(n=e;n.parentNode;)n=n.parentNode;for(n=n.querySelectorAll('input[name="'+cr(""+t)+'"][type="radio"]'),t=0;t<n.length;t++){var r=n[t];if(r!==e&&r.form===e.form){var a=r[Nn]||null;if(!a)throw Error(U(90));Nb(r,a.value,a.defaultValue,a.defaultValue,a.checked,a.defaultChecked,a.type,a.name)}}for(t=0;t<n.length;t++)r=n[t],r.form===e.form&&xP(r)}break e;case"textarea":wP(e,n.value,n.defaultValue);break e;case"select":t=n.value,t!=null&&al(e,!!n.multiple,t,!1)}}}var zv=!1;function OP(e,t,n){if(zv)return e(t,n);zv=!0;try{var r=e(t);return r}finally{if(zv=!1,(zo!==null||il!==null)&&(vy(),zo&&(t=zo,e=il,il=zo=null,s2(t),e)))for(t=0;t<e.length;t++)s2(e[t])}}function Xu(e,t){var n=e.stateNode;if(n===null)return null;var r=n[Nn]||null;if(r===null)return null;n=r[t];e:switch(t){case"onClick":case"onClickCapture":case"onDoubleClick":case"onDoubleClickCapture":case"onMouseDown":case"onMouseDownCapture":case"onMouseMove":case"onMouseMoveCapture":case"onMouseUp":case"onMouseUpCapture":case"onMouseEnter":(r=!r.disabled)||(e=e.type,r=!(e==="button"||e==="input"||e==="select"||e==="textarea")),e=!r;break e;default:e=!1}if(e)return null;if(n&&typeof n!="function")throw Error(U(231,t,typeof n));return n}var Ia=!(typeof window>"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),Pb=!1;if(Ia)try{var Hc={};Object.defineProperty(Hc,"passive",{get:function(){Pb=!0}}),window.addEventListener("test",Hc,Hc),window.removeEventListener("test",Hc,Hc)}catch{Pb=!1}var Oi=null,q1=null,kh=null;function EP(){if(kh)return kh;var e,t=q1,n=t.length,r,a="value"in Oi?Oi.value:Oi.textContent,i=a.length;for(e=0;e<n&&t[e]===a[e];e++);var s=n-e;for(r=1;r<=s&&t[n-r]===a[i-r];r++);return kh=a.slice(e,1<r?1-r:void 0)}function Lh(e){var t=e.keyCode;return"charCode"in e?(e=e.charCode,e===0&&t===13&&(e=13)):e=t,e===10&&(e=13),32<=e||e===13?e:0}function Wd(){return!0}function o2(){return!1}function _n(e){function t(n,r,a,i,s){this._reactName=n,this._targetInst=a,this.type=r,this.nativeEvent=i,this.target=s,this.currentTarget=null;for(var o in e)e.hasOwnProperty(o)&&(n=e[o],this[o]=n?n(i):i[o]);return this.isDefaultPrevented=(i.defaultPrevented!=null?i.defaultPrevented:i.returnValue===!1)?Wd:o2,this.isPropagationStopped=o2,this}return at(t.prototype,{preventDefault:function(){this.defaultPrevented=!0;var n=this.nativeEvent;n&&(n.preventDefault?n.preventDefault():typeof n.returnValue!="unknown"&&(n.returnValue=!1),this.isDefaultPrevented=Wd)},stopPropagation:function(){var n=this.nativeEvent;n&&(n.stopPropagation?n.stopPropagation():typeof n.cancelBubble!="unknown"&&(n.cancelBubble=!0),this.isPropagationStopped=Wd)},persist:function(){},isPersistent:Wd}),t}var co={eventPhase:0,bubbles:0,cancelable:0,timeStamp:function(e){return e.timeStamp||Date.now()},defaultPrevented:0,isTrusted:0},sy=_n(co),dd=at({},co,{view:0,detail:0}),K6=_n(dd),Bv,Iv,Fc,oy=at({},dd,{screenX:0,screenY:0,clientX:0,clientY:0,pageX:0,pageY:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,getModifierState:V1,button:0,buttons:0,relatedTarget:function(e){return e.relatedTarget===void 0?e.fromElement===e.srcElement?e.toElement:e.fromElement:e.relatedTarget},movementX:function(e){return"movementX"in e?e.movementX:(e!==Fc&&(Fc&&e.type==="mousemove"?(Bv=e.screenX-Fc.screenX,Iv=e.screenY-Fc.screenY):Iv=Bv=0,Fc=e),Bv)},movementY:function(e){return"movementY"in e?e.movementY:Iv}}),l2=_n(oy),Y6=at({},oy,{dataTransfer:0}),X6=_n(Y6),W6=at({},dd,{relatedTarget:0}),Uv=_n(W6),Q6=at({},co,{animationName:0,elapsedTime:0,pseudoElement:0}),Z6=_n(Q6),J6=at({},co,{clipboardData:function(e){return"clipboardData"in e?e.clipboardData:window.clipboardData}}),ez=_n(J6),tz=at({},co,{data:0}),c2=_n(tz),nz={Esc:"Escape",Spacebar:" ",Left:"ArrowLeft",Up:"ArrowUp",Right:"ArrowRight",Down:"ArrowDown",Del:"Delete",Win:"OS",Menu:"ContextMenu",Apps:"ContextMenu",Scroll:"ScrollLock",MozPrintableKey:"Unidentified"},rz={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"},az={Alt:"altKey",Control:"ctrlKey",Meta:"metaKey",Shift:"shiftKey"};function iz(e){var t=this.nativeEvent;return t.getModifierState?t.getModifierState(e):(e=az[e])?!!t[e]:!1}function V1(){return iz}var sz=at({},dd,{key:function(e){if(e.key){var t=nz[e.key]||e.key;if(t!=="Unidentified")return t}return e.type==="keypress"?(e=Lh(e),e===13?"Enter":String.fromCharCode(e)):e.type==="keydown"||e.type==="keyup"?rz[e.keyCode]||"Unidentified":""},code:0,location:0,ctrlKey:0,shiftKey:0,altKey:0,metaKey:0,repeat:0,locale:0,getModifierState:V1,charCode:function(e){return e.type==="keypress"?Lh(e):0},keyCode:function(e){return e.type==="keydown"||e.type==="keyup"?e.keyCode:0},which:function(e){return e.type==="keypress"?Lh(e):e.type==="keydown"||e.type==="keyup"?e.keyCode:0}}),oz=_n(sz),lz=at({},oy,{pointerId:0,width:0,height:0,pressure:0,tangentialPressure:0,tiltX:0,tiltY:0,twist:0,pointerType:0,isPrimary:0}),u2=_n(lz),cz=at({},dd,{touches:0,targetTouches:0,changedTouches:0,altKey:0,metaKey:0,ctrlKey:0,shiftKey:0,getModifierState:V1}),uz=_n(cz),fz=at({},co,{propertyName:0,elapsedTime:0,pseudoElement:0}),dz=_n(fz),hz=at({},oy,{deltaX:function(e){return"deltaX"in e?e.deltaX:"wheelDeltaX"in e?-e.wheelDeltaX:0},deltaY:function(e){return"deltaY"in e?e.deltaY:"wheelDeltaY"in e?-e.wheelDeltaY:"wheelDelta"in e?-e.wheelDelta:0},deltaZ:0,deltaMode:0}),pz=_n(hz),mz=at({},co,{newState:0,oldState:0}),yz=_n(mz),vz=[9,13,27,32],H1=Ia&&"CompositionEvent"in window,wu=null;Ia&&"documentMode"in document&&(wu=document.documentMode);var gz=Ia&&"TextEvent"in window&&!wu,TP=Ia&&(!H1||wu&&8<wu&&11>=wu),f2=" ",d2=!1;function NP(e,t){switch(e){case"keyup":return vz.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function _P(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var Bo=!1;function bz(e,t){switch(e){case"compositionend":return _P(t);case"keypress":return t.which!==32?null:(d2=!0,f2);case"textInput":return e=t.data,e===f2&&d2?null:e;default:return null}}function xz(e,t){if(Bo)return e==="compositionend"||!H1&&NP(e,t)?(e=EP(),kh=q1=Oi=null,Bo=!1,e):null;switch(e){case"paste":return null;case"keypress":if(!(t.ctrlKey||t.altKey||t.metaKey)||t.ctrlKey&&t.altKey){if(t.char&&1<t.char.length)return t.char;if(t.which)return String.fromCharCode(t.which)}return null;case"compositionend":return TP&&t.locale!=="ko"?null:t.data;default:return null}}var Sz={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 h2(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t==="input"?!!Sz[e.type]:t==="textarea"}function CP(e,t,n,r){zo?il?il.push(r):il=[r]:zo=r,t=_p(t,"onChange"),0<t.length&&(n=new sy("onChange","change",null,n,r),e.push({event:n,listeners:t}))}var ju=null,Wu=null;function wz(e){OR(e,0)}function ly(e){var t=hu(e);if(xP(t))return e}function p2(e,t){if(e==="change")return t}var PP=!1;if(Ia){var qv;if(Ia){var Vv="oninput"in document;if(!Vv){var m2=document.createElement("div");m2.setAttribute("oninput","return;"),Vv=typeof m2.oninput=="function"}qv=Vv}else qv=!1;PP=qv&&(!document.documentMode||9<document.documentMode)}function y2(){ju&&(ju.detachEvent("onpropertychange",MP),Wu=ju=null)}function MP(e){if(e.propertyName==="value"&&ly(Wu)){var t=[];CP(t,Wu,e,U1(e)),OP(wz,t)}}function jz(e,t,n){e==="focusin"?(y2(),ju=t,Wu=n,ju.attachEvent("onpropertychange",MP)):e==="focusout"&&y2()}function Az(e){if(e==="selectionchange"||e==="keyup"||e==="keydown")return ly(Wu)}function Oz(e,t){if(e==="click")return ly(t)}function Ez(e,t){if(e==="input"||e==="change")return ly(t)}function Tz(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var Xn=typeof Object.is=="function"?Object.is:Tz;function Qu(e,t){if(Xn(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(r=0;r<n.length;r++){var a=n[r];if(!Ob.call(t,a)||!Xn(e[a],t[a]))return!1}return!0}function v2(e){for(;e&&e.firstChild;)e=e.firstChild;return e}function g2(e,t){var n=v2(e);e=0;for(var r;n;){if(n.nodeType===3){if(r=e+n.textContent.length,e<=t&&r>=t)return{node:n,offset:t-e};e=r}e:{for(;n;){if(n.nextSibling){n=n.nextSibling;break e}n=n.parentNode}n=void 0}n=v2(n)}}function RP(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?RP(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function DP(e){e=e!=null&&e.ownerDocument!=null&&e.ownerDocument.defaultView!=null?e.ownerDocument.defaultView:window;for(var t=fp(e.document);t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=fp(e.document)}return t}function F1(e){var t=e&&e.nodeName&&e.nodeName.toLowerCase();return t&&(t==="input"&&(e.type==="text"||e.type==="search"||e.type==="tel"||e.type==="url"||e.type==="password")||t==="textarea"||e.contentEditable==="true")}var Nz=Ia&&"documentMode"in document&&11>=document.documentMode,Io=null,Mb=null,Au=null,Rb=!1;function b2(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;Rb||Io==null||Io!==fp(r)||(r=Io,"selectionStart"in r&&F1(r)?r={start:r.selectionStart,end:r.selectionEnd}:(r=(r.ownerDocument&&r.ownerDocument.defaultView||window).getSelection(),r={anchorNode:r.anchorNode,anchorOffset:r.anchorOffset,focusNode:r.focusNode,focusOffset:r.focusOffset}),Au&&Qu(Au,r)||(Au=r,r=_p(Mb,"onSelect"),0<r.length&&(t=new sy("onSelect","select",null,t,n),e.push({event:t,listeners:r}),t.target=Io)))}function as(e,t){var n={};return n[e.toLowerCase()]=t.toLowerCase(),n["Webkit"+e]="webkit"+t,n["Moz"+e]="moz"+t,n}var Uo={animationend:as("Animation","AnimationEnd"),animationiteration:as("Animation","AnimationIteration"),animationstart:as("Animation","AnimationStart"),transitionrun:as("Transition","TransitionRun"),transitionstart:as("Transition","TransitionStart"),transitioncancel:as("Transition","TransitionCancel"),transitionend:as("Transition","TransitionEnd")},Hv={},$P={};Ia&&($P=document.createElement("div").style,"AnimationEvent"in window||(delete Uo.animationend.animation,delete Uo.animationiteration.animation,delete Uo.animationstart.animation),"TransitionEvent"in window||delete Uo.transitionend.transition);function uo(e){if(Hv[e])return Hv[e];if(!Uo[e])return e;var t=Uo[e],n;for(n in t)if(t.hasOwnProperty(n)&&n in $P)return Hv[e]=t[n];return e}var kP=uo("animationend"),LP=uo("animationiteration"),zP=uo("animationstart"),_z=uo("transitionrun"),Cz=uo("transitionstart"),Pz=uo("transitioncancel"),BP=uo("transitionend"),IP=new Map,Db="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(" ");Db.push("scrollEnd");function Lr(e,t){IP.set(e,t),lo(t,[e])}var dp=typeof reportError=="function"?reportError:function(e){if(typeof window=="object"&&typeof window.ErrorEvent=="function"){var t=new window.ErrorEvent("error",{bubbles:!0,cancelable:!0,message:typeof e=="object"&&e!==null&&typeof e.message=="string"?String(e.message):String(e),error:e});if(!window.dispatchEvent(t))return}else if(typeof process=="object"&&typeof process.emit=="function"){process.emit("uncaughtException",e);return}console.error(e)},ir=[],qo=0,G1=0;function cy(){for(var e=qo,t=G1=qo=0;t<e;){var n=ir[t];ir[t++]=null;var r=ir[t];ir[t++]=null;var a=ir[t];ir[t++]=null;var i=ir[t];if(ir[t++]=null,r!==null&&a!==null){var s=r.pending;s===null?a.next=a:(a.next=s.next,s.next=a),r.pending=a}i!==0&&UP(n,a,i)}}function uy(e,t,n,r){ir[qo++]=e,ir[qo++]=t,ir[qo++]=n,ir[qo++]=r,G1|=r,e.lanes|=r,e=e.alternate,e!==null&&(e.lanes|=r)}function K1(e,t,n,r){return uy(e,t,n,r),hp(e)}function fo(e,t){return uy(e,null,null,t),hp(e)}function UP(e,t,n){e.lanes|=n;var r=e.alternate;r!==null&&(r.lanes|=n);for(var a=!1,i=e.return;i!==null;)i.childLanes|=n,r=i.alternate,r!==null&&(r.childLanes|=n),i.tag===22&&(e=i.stateNode,e===null||e._visibility&1||(a=!0)),e=i,i=i.return;return e.tag===3?(i=e.stateNode,a&&t!==null&&(a=31-Fn(n),e=i.hiddenUpdates,r=e[a],r===null?e[a]=[t]:r.push(t),t.lane=n|536870912),i):null}function hp(e){if(50<Ru)throw Ru=0,t0=null,Error(U(185));for(var t=e.return;t!==null;)e=t,t=e.return;return e.tag===3?e.stateNode:null}var Vo={};function Mz(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.refCleanup=this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function In(e,t,n,r){return new Mz(e,t,n,r)}function Y1(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Ma(e,t){var n=e.alternate;return n===null?(n=In(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&65011712,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n.refCleanup=e.refCleanup,n}function qP(e,t){e.flags&=65011714;var n=e.alternate;return n===null?(e.childLanes=0,e.lanes=t,e.child=null,e.subtreeFlags=0,e.memoizedProps=null,e.memoizedState=null,e.updateQueue=null,e.dependencies=null,e.stateNode=null):(e.childLanes=n.childLanes,e.lanes=n.lanes,e.child=n.child,e.subtreeFlags=0,e.deletions=null,e.memoizedProps=n.memoizedProps,e.memoizedState=n.memoizedState,e.updateQueue=n.updateQueue,e.type=n.type,t=n.dependencies,e.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext}),e}function zh(e,t,n,r,a,i){var s=0;if(r=e,typeof e=="function")Y1(e)&&(s=1);else if(typeof e=="string")s=L8(e,n,Jr.current)?26:e==="html"||e==="head"||e==="body"?27:5;else e:switch(e){case Sb:return e=In(31,n,t,a),e.elementType=Sb,e.lanes=i,e;case $o:return zs(n.children,a,i,t);case oP:s=8,a|=24;break;case gb:return e=In(12,n,t,a|2),e.elementType=gb,e.lanes=i,e;case bb:return e=In(13,n,t,a),e.elementType=bb,e.lanes=i,e;case xb:return e=In(19,n,t,a),e.elementType=xb,e.lanes=i,e;default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Oa:s=10;break e;case lP:s=9;break e;case D1:s=11;break e;case $1:s=14;break e;case li:s=16,r=null;break e}s=29,n=Error(U(130,e===null?"null":typeof e,"")),r=null}return t=In(s,n,t,a),t.elementType=e,t.type=r,t.lanes=i,t}function zs(e,t,n,r){return e=In(7,e,r,t),e.lanes=n,e}function Fv(e,t,n){return e=In(6,e,null,t),e.lanes=n,e}function VP(e){var t=In(18,null,null,0);return t.stateNode=e,t}function Gv(e,t,n){return t=In(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}var x2=new WeakMap;function ur(e,t){if(typeof e=="object"&&e!==null){var n=x2.get(e);return n!==void 0?n:(t={value:e,source:t,stack:e2(t)},x2.set(e,t),t)}return{value:e,source:t,stack:e2(t)}}var Ho=[],Fo=0,pp=null,Zu=0,or=[],lr=0,Hi=null,Gr=1,Kr="";function Sa(e,t){Ho[Fo++]=Zu,Ho[Fo++]=pp,pp=e,Zu=t}function HP(e,t,n){or[lr++]=Gr,or[lr++]=Kr,or[lr++]=Hi,Hi=e;var r=Gr;e=Kr;var a=32-Fn(r)-1;r&=~(1<<a),n+=1;var i=32-Fn(t)+a;if(30<i){var s=a-a%5;i=(r&(1<<s)-1).toString(32),r>>=s,a-=s,Gr=1<<32-Fn(t)+a|n<<a|r,Kr=i+e}else Gr=1<<i|n<<a|r,Kr=e}function X1(e){e.return!==null&&(Sa(e,1),HP(e,1,0))}function W1(e){for(;e===pp;)pp=Ho[--Fo],Ho[Fo]=null,Zu=Ho[--Fo],Ho[Fo]=null;for(;e===Hi;)Hi=or[--lr],or[lr]=null,Kr=or[--lr],or[lr]=null,Gr=or[--lr],or[lr]=null}function FP(e,t){or[lr++]=Gr,or[lr++]=Kr,or[lr++]=Hi,Gr=t.id,Kr=t.overflow,Hi=e}var Qt=null,nt=null,Ne=!1,Mi=null,fr=!1,$b=Error(U(519));function Fi(e){var t=Error(U(418,1<arguments.length&&arguments[1]!==void 0&&arguments[1]?"text":"HTML",""));throw Ju(ur(t,e)),$b}function S2(e){var t=e.stateNode,n=e.type,r=e.memoizedProps;switch(t[Wt]=e,t[Nn]=r,n){case"dialog":Se("cancel",t),Se("close",t);break;case"iframe":case"object":case"embed":Se("load",t);break;case"video":case"audio":for(n=0;n<rf.length;n++)Se(rf[n],t);break;case"source":Se("error",t);break;case"img":case"image":case"link":Se("error",t),Se("load",t);break;case"details":Se("toggle",t);break;case"input":Se("invalid",t),SP(t,r.value,r.defaultValue,r.checked,r.defaultChecked,r.type,r.name,!0);break;case"select":Se("invalid",t);break;case"textarea":Se("invalid",t),jP(t,r.value,r.defaultValue,r.children)}n=r.children,typeof n!="string"&&typeof n!="number"&&typeof n!="bigint"||t.textContent===""+n||r.suppressHydrationWarning===!0||TR(t.textContent,n)?(r.popover!=null&&(Se("beforetoggle",t),Se("toggle",t)),r.onScroll!=null&&Se("scroll",t),r.onScrollEnd!=null&&Se("scrollend",t),r.onClick!=null&&(t.onclick=Ea),t=!0):t=!1,t||Fi(e,!0)}function w2(e){for(Qt=e.return;Qt;)switch(Qt.tag){case 5:case 31:case 13:fr=!1;return;case 27:case 3:fr=!0;return;default:Qt=Qt.return}}function Ao(e){if(e!==Qt)return!1;if(!Ne)return w2(e),Ne=!0,!1;var t=e.tag,n;if((n=t!==3&&t!==27)&&((n=t===5)&&(n=e.type,n=!(n!=="form"&&n!=="button")||s0(e.type,e.memoizedProps)),n=!n),n&&nt&&Fi(e),w2(e),t===13){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(U(317));nt=lA(e)}else if(t===31){if(e=e.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(U(317));nt=lA(e)}else t===27?(t=nt,Wi(e.type)?(e=u0,u0=null,nt=e):nt=t):nt=Qt?mr(e.stateNode.nextSibling):null;return!0}function Ks(){nt=Qt=null,Ne=!1}function Kv(){var e=Mi;return e!==null&&(jn===null?jn=e:jn.push.apply(jn,e),Mi=null),e}function Ju(e){Mi===null?Mi=[e]:Mi.push(e)}var kb=oa(null),ho=null,Ta=null;function fi(e,t,n){Qe(kb,t._currentValue),t._currentValue=n}function Ra(e){e._currentValue=kb.current,Ht(kb)}function Lb(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function zb(e,t,n,r){var a=e.child;for(a!==null&&(a.return=e);a!==null;){var i=a.dependencies;if(i!==null){var s=a.child;i=i.firstContext;e:for(;i!==null;){var o=i;i=a;for(var l=0;l<t.length;l++)if(o.context===t[l]){i.lanes|=n,o=i.alternate,o!==null&&(o.lanes|=n),Lb(i.return,n,e),r||(s=null);break e}i=o.next}}else if(a.tag===18){if(s=a.return,s===null)throw Error(U(341));s.lanes|=n,i=s.alternate,i!==null&&(i.lanes|=n),Lb(s,n,e),s=null}else s=a.child;if(s!==null)s.return=a;else for(s=a;s!==null;){if(s===e){s=null;break}if(a=s.sibling,a!==null){a.return=s.return,s=a;break}s=s.return}a=s}}function gc(e,t,n,r){e=null;for(var a=t,i=!1;a!==null;){if(!i){if(a.flags&524288)i=!0;else if(a.flags&262144)break}if(a.tag===10){var s=a.alternate;if(s===null)throw Error(U(387));if(s=s.memoizedProps,s!==null){var o=a.type;Xn(a.pendingProps.value,s.value)||(e!==null?e.push(o):e=[o])}}else if(a===op.current){if(s=a.alternate,s===null)throw Error(U(387));s.memoizedState.memoizedState!==a.memoizedState.memoizedState&&(e!==null?e.push(sf):e=[sf])}a=a.return}e!==null&&zb(t,e,n,r),t.flags|=262144}function mp(e){for(e=e.firstContext;e!==null;){if(!Xn(e.context._currentValue,e.memoizedValue))return!0;e=e.next}return!1}function Ys(e){ho=e,Ta=null,e=e.dependencies,e!==null&&(e.firstContext=null)}function Jt(e){return GP(ho,e)}function Qd(e,t){return ho===null&&Ys(e),GP(e,t)}function GP(e,t){var n=t._currentValue;if(t={context:t,memoizedValue:n,next:null},Ta===null){if(e===null)throw Error(U(308));Ta=t,e.dependencies={lanes:0,firstContext:t},e.flags|=524288}else Ta=Ta.next=t;return n}var Rz=typeof AbortController<"u"?AbortController:function(){var e=[],t=this.signal={aborted:!1,addEventListener:function(n,r){e.push(r)}};this.abort=function(){t.aborted=!0,e.forEach(function(n){return n()})}},Dz=$t.unstable_scheduleCallback,$z=$t.unstable_NormalPriority,Et={$$typeof:Oa,Consumer:null,Provider:null,_currentValue:null,_currentValue2:null,_threadCount:0};function Q1(){return{controller:new Rz,data:new Map,refCount:0}}function hd(e){e.refCount--,e.refCount===0&&Dz($z,function(){e.controller.abort()})}var Ou=null,Bb=0,Cl=0,sl=null;function kz(e,t){if(Ou===null){var n=Ou=[];Bb=0,Cl=wS(),sl={status:"pending",value:void 0,then:function(r){n.push(r)}}}return Bb++,t.then(j2,j2),t}function j2(){if(--Bb===0&&Ou!==null){sl!==null&&(sl.status="fulfilled");var e=Ou;Ou=null,Cl=0,sl=null;for(var t=0;t<e.length;t++)(0,e[t])()}}function Lz(e,t){var n=[],r={status:"pending",value:null,reason:null,then:function(a){n.push(a)}};return e.then(function(){r.status="fulfilled",r.value=t;for(var a=0;a<n.length;a++)(0,n[a])(t)},function(a){for(r.status="rejected",r.reason=a,a=0;a<n.length;a++)(0,n[a])(void 0)}),r}var A2=he.S;he.S=function(e,t){sR=Vn(),typeof t=="object"&&t!==null&&typeof t.then=="function"&&kz(e,t),A2!==null&&A2(e,t)};var Bs=oa(null);function Z1(){var e=Bs.current;return e!==null?e:Ke.pooledCache}function Bh(e,t){t===null?Qe(Bs,Bs.current):Qe(Bs,t.pool)}function KP(){var e=Z1();return e===null?null:{parent:Et._currentValue,pool:e}}var bc=Error(U(460)),J1=Error(U(474)),fy=Error(U(542)),yp={then:function(){}};function O2(e){return e=e.status,e==="fulfilled"||e==="rejected"}function YP(e,t,n){switch(n=e[n],n===void 0?e.push(t):n!==t&&(t.then(Ea,Ea),t=n),t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,T2(e),e;default:if(typeof t.status=="string")t.then(Ea,Ea);else{if(e=Ke,e!==null&&100<e.shellSuspendCounter)throw Error(U(482));e=t,e.status="pending",e.then(function(r){if(t.status==="pending"){var a=t;a.status="fulfilled",a.value=r}},function(r){if(t.status==="pending"){var a=t;a.status="rejected",a.reason=r}})}switch(t.status){case"fulfilled":return t.value;case"rejected":throw e=t.reason,T2(e),e}throw Is=t,bc}}function fs(e){try{var t=e._init;return t(e._payload)}catch(n){throw n!==null&&typeof n=="object"&&typeof n.then=="function"?(Is=n,bc):n}}var Is=null;function E2(){if(Is===null)throw Error(U(459));var e=Is;return Is=null,e}function T2(e){if(e===bc||e===fy)throw Error(U(483))}var ol=null,ef=0;function Zd(e){var t=ef;return ef+=1,ol===null&&(ol=[]),YP(ol,e,t)}function Gc(e,t){t=t.props.ref,e.ref=t!==void 0?t:null}function Jd(e,t){throw t.$$typeof===j6?Error(U(525)):(e=Object.prototype.toString.call(t),Error(U(31,e==="[object Object]"?"object with keys {"+Object.keys(t).join(", ")+"}":e)))}function XP(e){function t(m,g){if(e){var x=m.deletions;x===null?(m.deletions=[g],m.flags|=16):x.push(g)}}function n(m,g){if(!e)return null;for(;g!==null;)t(m,g),g=g.sibling;return null}function r(m){for(var g=new Map;m!==null;)m.key!==null?g.set(m.key,m):g.set(m.index,m),m=m.sibling;return g}function a(m,g){return m=Ma(m,g),m.index=0,m.sibling=null,m}function i(m,g,x){return m.index=x,e?(x=m.alternate,x!==null?(x=x.index,x<g?(m.flags|=67108866,g):x):(m.flags|=67108866,g)):(m.flags|=1048576,g)}function s(m){return e&&m.alternate===null&&(m.flags|=67108866),m}function o(m,g,x,w){return g===null||g.tag!==6?(g=Fv(x,m.mode,w),g.return=m,g):(g=a(g,x),g.return=m,g)}function l(m,g,x,w){var S=x.type;return S===$o?f(m,g,x.props.children,w,x.key):g!==null&&(g.elementType===S||typeof S=="object"&&S!==null&&S.$$typeof===li&&fs(S)===g.type)?(g=a(g,x.props),Gc(g,x),g.return=m,g):(g=zh(x.type,x.key,x.props,null,m.mode,w),Gc(g,x),g.return=m,g)}function c(m,g,x,w){return g===null||g.tag!==4||g.stateNode.containerInfo!==x.containerInfo||g.stateNode.implementation!==x.implementation?(g=Gv(x,m.mode,w),g.return=m,g):(g=a(g,x.children||[]),g.return=m,g)}function f(m,g,x,w,S){return g===null||g.tag!==7?(g=zs(x,m.mode,w,S),g.return=m,g):(g=a(g,x),g.return=m,g)}function d(m,g,x){if(typeof g=="string"&&g!==""||typeof g=="number"||typeof g=="bigint")return g=Fv(""+g,m.mode,x),g.return=m,g;if(typeof g=="object"&&g!==null){switch(g.$$typeof){case Fd:return x=zh(g.type,g.key,g.props,null,m.mode,x),Gc(x,g),x.return=m,x;case fu:return g=Gv(g,m.mode,x),g.return=m,g;case li:return g=fs(g),d(m,g,x)}if(du(g)||Vc(g))return g=zs(g,m.mode,x,null),g.return=m,g;if(typeof g.then=="function")return d(m,Zd(g),x);if(g.$$typeof===Oa)return d(m,Qd(m,g),x);Jd(m,g)}return null}function h(m,g,x,w){var S=g!==null?g.key:null;if(typeof x=="string"&&x!==""||typeof x=="number"||typeof x=="bigint")return S!==null?null:o(m,g,""+x,w);if(typeof x=="object"&&x!==null){switch(x.$$typeof){case Fd:return x.key===S?l(m,g,x,w):null;case fu:return x.key===S?c(m,g,x,w):null;case li:return x=fs(x),h(m,g,x,w)}if(du(x)||Vc(x))return S!==null?null:f(m,g,x,w,null);if(typeof x.then=="function")return h(m,g,Zd(x),w);if(x.$$typeof===Oa)return h(m,g,Qd(m,x),w);Jd(m,x)}return null}function p(m,g,x,w,S){if(typeof w=="string"&&w!==""||typeof w=="number"||typeof w=="bigint")return m=m.get(x)||null,o(g,m,""+w,S);if(typeof w=="object"&&w!==null){switch(w.$$typeof){case Fd:return m=m.get(w.key===null?x:w.key)||null,l(g,m,w,S);case fu:return m=m.get(w.key===null?x:w.key)||null,c(g,m,w,S);case li:return w=fs(w),p(m,g,x,w,S)}if(du(w)||Vc(w))return m=m.get(x)||null,f(g,m,w,S,null);if(typeof w.then=="function")return p(m,g,x,Zd(w),S);if(w.$$typeof===Oa)return p(m,g,x,Qd(g,w),S);Jd(g,w)}return null}function v(m,g,x,w){for(var S=null,j=null,O=g,E=g=0,T=null;O!==null&&E<x.length;E++){O.index>E?(T=O,O=null):T=O.sibling;var _=h(m,O,x[E],w);if(_===null){O===null&&(O=T);break}e&&O&&_.alternate===null&&t(m,O),g=i(_,g,E),j===null?S=_:j.sibling=_,j=_,O=T}if(E===x.length)return n(m,O),Ne&&Sa(m,E),S;if(O===null){for(;E<x.length;E++)O=d(m,x[E],w),O!==null&&(g=i(O,g,E),j===null?S=O:j.sibling=O,j=O);return Ne&&Sa(m,E),S}for(O=r(O);E<x.length;E++)T=p(O,m,E,x[E],w),T!==null&&(e&&T.alternate!==null&&O.delete(T.key===null?E:T.key),g=i(T,g,E),j===null?S=T:j.sibling=T,j=T);return e&&O.forEach(function(M){return t(m,M)}),Ne&&Sa(m,E),S}function y(m,g,x,w){if(x==null)throw Error(U(151));for(var S=null,j=null,O=g,E=g=0,T=null,_=x.next();O!==null&&!_.done;E++,_=x.next()){O.index>E?(T=O,O=null):T=O.sibling;var M=h(m,O,_.value,w);if(M===null){O===null&&(O=T);break}e&&O&&M.alternate===null&&t(m,O),g=i(M,g,E),j===null?S=M:j.sibling=M,j=M,O=T}if(_.done)return n(m,O),Ne&&Sa(m,E),S;if(O===null){for(;!_.done;E++,_=x.next())_=d(m,_.value,w),_!==null&&(g=i(_,g,E),j===null?S=_:j.sibling=_,j=_);return Ne&&Sa(m,E),S}for(O=r(O);!_.done;E++,_=x.next())_=p(O,m,E,_.value,w),_!==null&&(e&&_.alternate!==null&&O.delete(_.key===null?E:_.key),g=i(_,g,E),j===null?S=_:j.sibling=_,j=_);return e&&O.forEach(function(C){return t(m,C)}),Ne&&Sa(m,E),S}function b(m,g,x,w){if(typeof x=="object"&&x!==null&&x.type===$o&&x.key===null&&(x=x.props.children),typeof x=="object"&&x!==null){switch(x.$$typeof){case Fd:e:{for(var S=x.key;g!==null;){if(g.key===S){if(S=x.type,S===$o){if(g.tag===7){n(m,g.sibling),w=a(g,x.props.children),w.return=m,m=w;break e}}else if(g.elementType===S||typeof S=="object"&&S!==null&&S.$$typeof===li&&fs(S)===g.type){n(m,g.sibling),w=a(g,x.props),Gc(w,x),w.return=m,m=w;break e}n(m,g);break}else t(m,g);g=g.sibling}x.type===$o?(w=zs(x.props.children,m.mode,w,x.key),w.return=m,m=w):(w=zh(x.type,x.key,x.props,null,m.mode,w),Gc(w,x),w.return=m,m=w)}return s(m);case fu:e:{for(S=x.key;g!==null;){if(g.key===S)if(g.tag===4&&g.stateNode.containerInfo===x.containerInfo&&g.stateNode.implementation===x.implementation){n(m,g.sibling),w=a(g,x.children||[]),w.return=m,m=w;break e}else{n(m,g);break}else t(m,g);g=g.sibling}w=Gv(x,m.mode,w),w.return=m,m=w}return s(m);case li:return x=fs(x),b(m,g,x,w)}if(du(x))return v(m,g,x,w);if(Vc(x)){if(S=Vc(x),typeof S!="function")throw Error(U(150));return x=S.call(x),y(m,g,x,w)}if(typeof x.then=="function")return b(m,g,Zd(x),w);if(x.$$typeof===Oa)return b(m,g,Qd(m,x),w);Jd(m,x)}return typeof x=="string"&&x!==""||typeof x=="number"||typeof x=="bigint"?(x=""+x,g!==null&&g.tag===6?(n(m,g.sibling),w=a(g,x),w.return=m,m=w):(n(m,g),w=Fv(x,m.mode,w),w.return=m,m=w),s(m)):n(m,g)}return function(m,g,x,w){try{ef=0;var S=b(m,g,x,w);return ol=null,S}catch(O){if(O===bc||O===fy)throw O;var j=In(29,O,null,m.mode);return j.lanes=w,j.return=m,j}finally{}}}var Xs=XP(!0),WP=XP(!1),ci=!1;function eS(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,lanes:0,hiddenCallbacks:null},callbacks:null}}function Ib(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,callbacks:null})}function Ri(e){return{lane:e,tag:0,payload:null,callback:null,next:null}}function Di(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,Me&2){var a=r.pending;return a===null?t.next=t:(t.next=a.next,a.next=t),r.pending=t,t=hp(e),UP(e,null,n),t}return uy(e,r,t,n),hp(e)}function Eu(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194048)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,pP(e,n)}}function Yv(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var a=null,i=null;if(n=n.firstBaseUpdate,n!==null){do{var s={lane:n.lane,tag:n.tag,payload:n.payload,callback:null,next:null};i===null?a=i=s:i=i.next=s,n=n.next}while(n!==null);i===null?a=i=t:i=i.next=t}else a=i=t;n={baseState:r.baseState,firstBaseUpdate:a,lastBaseUpdate:i,shared:r.shared,callbacks:r.callbacks},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}var Ub=!1;function Tu(){if(Ub){var e=sl;if(e!==null)throw e}}function Nu(e,t,n,r){Ub=!1;var a=e.updateQueue;ci=!1;var i=a.firstBaseUpdate,s=a.lastBaseUpdate,o=a.shared.pending;if(o!==null){a.shared.pending=null;var l=o,c=l.next;l.next=null,s===null?i=c:s.next=c,s=l;var f=e.alternate;f!==null&&(f=f.updateQueue,o=f.lastBaseUpdate,o!==s&&(o===null?f.firstBaseUpdate=c:o.next=c,f.lastBaseUpdate=l))}if(i!==null){var d=a.baseState;s=0,f=c=l=null,o=i;do{var h=o.lane&-536870913,p=h!==o.lane;if(p?(Ee&h)===h:(r&h)===h){h!==0&&h===Cl&&(Ub=!0),f!==null&&(f=f.next={lane:0,tag:o.tag,payload:o.payload,callback:null,next:null});e:{var v=e,y=o;h=t;var b=n;switch(y.tag){case 1:if(v=y.payload,typeof v=="function"){d=v.call(b,d,h);break e}d=v;break e;case 3:v.flags=v.flags&-65537|128;case 0:if(v=y.payload,h=typeof v=="function"?v.call(b,d,h):v,h==null)break e;d=at({},d,h);break e;case 2:ci=!0}}h=o.callback,h!==null&&(e.flags|=64,p&&(e.flags|=8192),p=a.callbacks,p===null?a.callbacks=[h]:p.push(h))}else p={lane:h,tag:o.tag,payload:o.payload,callback:o.callback,next:null},f===null?(c=f=p,l=d):f=f.next=p,s|=h;if(o=o.next,o===null){if(o=a.shared.pending,o===null)break;p=o,o=p.next,p.next=null,a.lastBaseUpdate=p,a.shared.pending=null}}while(!0);f===null&&(l=d),a.baseState=l,a.firstBaseUpdate=c,a.lastBaseUpdate=f,i===null&&(a.shared.lanes=0),Ki|=s,e.lanes=s,e.memoizedState=d}}function QP(e,t){if(typeof e!="function")throw Error(U(191,e));e.call(t)}function ZP(e,t){var n=e.callbacks;if(n!==null)for(e.callbacks=null,e=0;e<n.length;e++)QP(n[e],t)}var Pl=oa(null),vp=oa(0);function N2(e,t){e=Ha,Qe(vp,e),Qe(Pl,t),Ha=e|t.baseLanes}function qb(){Qe(vp,Ha),Qe(Pl,Pl.current)}function tS(){Ha=vp.current,Ht(Pl),Ht(vp)}var Wn=oa(null),pr=null;function di(e){var t=e.alternate;Qe(bt,bt.current&1),Qe(Wn,e),pr===null&&(t===null||Pl.current!==null||t.memoizedState!==null)&&(pr=e)}function Vb(e){Qe(bt,bt.current),Qe(Wn,e),pr===null&&(pr=e)}function JP(e){e.tag===22?(Qe(bt,bt.current),Qe(Wn,e),pr===null&&(pr=e)):hi()}function hi(){Qe(bt,bt.current),Qe(Wn,Wn.current)}function Bn(e){Ht(Wn),pr===e&&(pr=null),Ht(bt)}var bt=oa(0);function gp(e){for(var t=e;t!==null;){if(t.tag===13){var n=t.memoizedState;if(n!==null&&(n=n.dehydrated,n===null||l0(n)||c0(n)))return t}else if(t.tag===19&&(t.memoizedProps.revealOrder==="forwards"||t.memoizedProps.revealOrder==="backwards"||t.memoizedProps.revealOrder==="unstable_legacy-backwards"||t.memoizedProps.revealOrder==="together")){if(t.flags&128)return t}else if(t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return null;t=t.return}t.sibling.return=t.return,t=t.sibling}return null}var Ua=0,ge=null,Fe=null,At=null,bp=!1,ll=!1,Ws=!1,xp=0,tf=0,cl=null,zz=0;function ht(){throw Error(U(321))}function nS(e,t){if(t===null)return!1;for(var n=0;n<t.length&&n<e.length;n++)if(!Xn(e[n],t[n]))return!1;return!0}function rS(e,t,n,r,a,i){return Ua=i,ge=t,t.memoizedState=null,t.updateQueue=null,t.lanes=0,he.H=e===null||e.memoizedState===null?CM:pS,Ws=!1,i=n(r,a),Ws=!1,ll&&(i=tM(t,n,r,a)),eM(e),i}function eM(e){he.H=nf;var t=Fe!==null&&Fe.next!==null;if(Ua=0,At=Fe=ge=null,bp=!1,tf=0,cl=null,t)throw Error(U(300));e===null||Tt||(e=e.dependencies,e!==null&&mp(e)&&(Tt=!0))}function tM(e,t,n,r){ge=e;var a=0;do{if(ll&&(cl=null),tf=0,ll=!1,25<=a)throw Error(U(301));if(a+=1,At=Fe=null,e.updateQueue!=null){var i=e.updateQueue;i.lastEffect=null,i.events=null,i.stores=null,i.memoCache!=null&&(i.memoCache.index=0)}he.H=PM,i=t(n,r)}while(ll);return i}function Bz(){var e=he.H,t=e.useState()[0];return t=typeof t.then=="function"?pd(t):t,e=e.useState()[0],(Fe!==null?Fe.memoizedState:null)!==e&&(ge.flags|=1024),t}function aS(){var e=xp!==0;return xp=0,e}function iS(e,t,n){t.updateQueue=e.updateQueue,t.flags&=-2053,e.lanes&=~n}function sS(e){if(bp){for(e=e.memoizedState;e!==null;){var t=e.queue;t!==null&&(t.pending=null),e=e.next}bp=!1}Ua=0,At=Fe=ge=null,ll=!1,tf=xp=0,cl=null}function cn(){var e={memoizedState:null,baseState:null,baseQueue:null,queue:null,next:null};return At===null?ge.memoizedState=At=e:At=At.next=e,At}function St(){if(Fe===null){var e=ge.alternate;e=e!==null?e.memoizedState:null}else e=Fe.next;var t=At===null?ge.memoizedState:At.next;if(t!==null)At=t,Fe=e;else{if(e===null)throw ge.alternate===null?Error(U(467)):Error(U(310));Fe=e,e={memoizedState:Fe.memoizedState,baseState:Fe.baseState,baseQueue:Fe.baseQueue,queue:Fe.queue,next:null},At===null?ge.memoizedState=At=e:At=At.next=e}return At}function dy(){return{lastEffect:null,events:null,stores:null,memoCache:null}}function pd(e){var t=tf;return tf+=1,cl===null&&(cl=[]),e=YP(cl,e,t),t=ge,(At===null?t.memoizedState:At.next)===null&&(t=t.alternate,he.H=t===null||t.memoizedState===null?CM:pS),e}function hy(e){if(e!==null&&typeof e=="object"){if(typeof e.then=="function")return pd(e);if(e.$$typeof===Oa)return Jt(e)}throw Error(U(438,String(e)))}function oS(e){var t=null,n=ge.updateQueue;if(n!==null&&(t=n.memoCache),t==null){var r=ge.alternate;r!==null&&(r=r.updateQueue,r!==null&&(r=r.memoCache,r!=null&&(t={data:r.data.map(function(a){return a.slice()}),index:0})))}if(t==null&&(t={data:[],index:0}),n===null&&(n=dy(),ge.updateQueue=n),n.memoCache=t,n=t.data[t.index],n===void 0)for(n=t.data[t.index]=Array(e),r=0;r<e;r++)n[r]=A6;return t.index++,n}function qa(e,t){return typeof t=="function"?t(e):t}function Ih(e){var t=St();return lS(t,Fe,e)}function lS(e,t,n){var r=e.queue;if(r===null)throw Error(U(311));r.lastRenderedReducer=n;var a=e.baseQueue,i=r.pending;if(i!==null){if(a!==null){var s=a.next;a.next=i.next,i.next=s}t.baseQueue=a=i,r.pending=null}if(i=e.baseState,a===null)e.memoizedState=i;else{t=a.next;var o=s=null,l=null,c=t,f=!1;do{var d=c.lane&-536870913;if(d!==c.lane?(Ee&d)===d:(Ua&d)===d){var h=c.revertLane;if(h===0)l!==null&&(l=l.next={lane:0,revertLane:0,gesture:null,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null}),d===Cl&&(f=!0);else if((Ua&h)===h){c=c.next,h===Cl&&(f=!0);continue}else d={lane:0,revertLane:c.revertLane,gesture:null,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null},l===null?(o=l=d,s=i):l=l.next=d,ge.lanes|=h,Ki|=h;d=c.action,Ws&&n(i,d),i=c.hasEagerState?c.eagerState:n(i,d)}else h={lane:d,revertLane:c.revertLane,gesture:c.gesture,action:c.action,hasEagerState:c.hasEagerState,eagerState:c.eagerState,next:null},l===null?(o=l=h,s=i):l=l.next=h,ge.lanes|=d,Ki|=d;c=c.next}while(c!==null&&c!==t);if(l===null?s=i:l.next=o,!Xn(i,e.memoizedState)&&(Tt=!0,f&&(n=sl,n!==null)))throw n;e.memoizedState=i,e.baseState=s,e.baseQueue=l,r.lastRenderedState=i}return a===null&&(r.lanes=0),[e.memoizedState,r.dispatch]}function Xv(e){var t=St(),n=t.queue;if(n===null)throw Error(U(311));n.lastRenderedReducer=e;var r=n.dispatch,a=n.pending,i=t.memoizedState;if(a!==null){n.pending=null;var s=a=a.next;do i=e(i,s.action),s=s.next;while(s!==a);Xn(i,t.memoizedState)||(Tt=!0),t.memoizedState=i,t.baseQueue===null&&(t.baseState=i),n.lastRenderedState=i}return[i,r]}function nM(e,t,n){var r=ge,a=St(),i=Ne;if(i){if(n===void 0)throw Error(U(407));n=n()}else n=t();var s=!Xn((Fe||a).memoizedState,n);if(s&&(a.memoizedState=n,Tt=!0),a=a.queue,cS(iM.bind(null,r,a,e),[e]),a.getSnapshot!==t||s||At!==null&&At.memoizedState.tag&1){if(r.flags|=2048,Ml(9,{destroy:void 0},aM.bind(null,r,a,n,t),null),Ke===null)throw Error(U(349));i||Ua&127||rM(r,t,n)}return n}function rM(e,t,n){e.flags|=16384,e={getSnapshot:t,value:n},t=ge.updateQueue,t===null?(t=dy(),ge.updateQueue=t,t.stores=[e]):(n=t.stores,n===null?t.stores=[e]:n.push(e))}function aM(e,t,n,r){t.value=n,t.getSnapshot=r,sM(t)&&oM(e)}function iM(e,t,n){return n(function(){sM(t)&&oM(e)})}function sM(e){var t=e.getSnapshot;e=e.value;try{var n=t();return!Xn(e,n)}catch{return!0}}function oM(e){var t=fo(e,2);t!==null&&En(t,e,2)}function Hb(e){var t=cn();if(typeof e=="function"){var n=e;if(e=n(),Ws){Ai(!0);try{n()}finally{Ai(!1)}}}return t.memoizedState=t.baseState=e,t.queue={pending:null,lanes:0,dispatch:null,lastRenderedReducer:qa,lastRenderedState:e},t}function lM(e,t,n,r){return e.baseState=n,lS(e,Fe,typeof r=="function"?r:qa)}function Iz(e,t,n,r,a){if(my(e))throw Error(U(485));if(e=t.action,e!==null){var i={payload:a,action:e,next:null,isTransition:!0,status:"pending",value:null,reason:null,listeners:[],then:function(s){i.listeners.push(s)}};he.T!==null?n(!0):i.isTransition=!1,r(i),n=t.pending,n===null?(i.next=t.pending=i,cM(t,i)):(i.next=n.next,t.pending=n.next=i)}}function cM(e,t){var n=t.action,r=t.payload,a=e.state;if(t.isTransition){var i=he.T,s={};he.T=s;try{var o=n(a,r),l=he.S;l!==null&&l(s,o),_2(e,t,o)}catch(c){Fb(e,t,c)}finally{i!==null&&s.types!==null&&(i.types=s.types),he.T=i}}else try{i=n(a,r),_2(e,t,i)}catch(c){Fb(e,t,c)}}function _2(e,t,n){n!==null&&typeof n=="object"&&typeof n.then=="function"?n.then(function(r){C2(e,t,r)},function(r){return Fb(e,t,r)}):C2(e,t,n)}function C2(e,t,n){t.status="fulfilled",t.value=n,uM(t),e.state=n,t=e.pending,t!==null&&(n=t.next,n===t?e.pending=null:(n=n.next,t.next=n,cM(e,n)))}function Fb(e,t,n){var r=e.pending;if(e.pending=null,r!==null){r=r.next;do t.status="rejected",t.reason=n,uM(t),t=t.next;while(t!==r)}e.action=null}function uM(e){e=e.listeners;for(var t=0;t<e.length;t++)(0,e[t])()}function fM(e,t){return t}function P2(e,t){if(Ne){var n=Ke.formState;if(n!==null){e:{var r=ge;if(Ne){if(nt){t:{for(var a=nt,i=fr;a.nodeType!==8;){if(!i){a=null;break t}if(a=mr(a.nextSibling),a===null){a=null;break t}}i=a.data,a=i==="F!"||i==="F"?a:null}if(a){nt=mr(a.nextSibling),r=a.data==="F!";break e}}Fi(r)}r=!1}r&&(t=n[0])}}return n=cn(),n.memoizedState=n.baseState=t,r={pending:null,lanes:0,dispatch:null,lastRenderedReducer:fM,lastRenderedState:t},n.queue=r,n=TM.bind(null,ge,r),r.dispatch=n,r=Hb(!1),i=hS.bind(null,ge,!1,r.queue),r=cn(),a={state:t,dispatch:null,action:e,pending:null},r.queue=a,n=Iz.bind(null,ge,a,i,n),a.dispatch=n,r.memoizedState=e,[t,n,!1]}function M2(e){var t=St();return dM(t,Fe,e)}function dM(e,t,n){if(t=lS(e,t,fM)[0],e=Ih(qa)[0],typeof t=="object"&&t!==null&&typeof t.then=="function")try{var r=pd(t)}catch(s){throw s===bc?fy:s}else r=t;t=St();var a=t.queue,i=a.dispatch;return n!==t.memoizedState&&(ge.flags|=2048,Ml(9,{destroy:void 0},Uz.bind(null,a,n),null)),[r,i,e]}function Uz(e,t){e.action=t}function R2(e){var t=St(),n=Fe;if(n!==null)return dM(t,n,e);St(),t=t.memoizedState,n=St();var r=n.queue.dispatch;return n.memoizedState=e,[t,r,!1]}function Ml(e,t,n,r){return e={tag:e,create:n,deps:r,inst:t,next:null},t=ge.updateQueue,t===null&&(t=dy(),ge.updateQueue=t),n=t.lastEffect,n===null?t.lastEffect=e.next=e:(r=n.next,n.next=e,e.next=r,t.lastEffect=e),e}function hM(){return St().memoizedState}function Uh(e,t,n,r){var a=cn();ge.flags|=e,a.memoizedState=Ml(1|t,{destroy:void 0},n,r===void 0?null:r)}function py(e,t,n,r){var a=St();r=r===void 0?null:r;var i=a.memoizedState.inst;Fe!==null&&r!==null&&nS(r,Fe.memoizedState.deps)?a.memoizedState=Ml(t,i,n,r):(ge.flags|=e,a.memoizedState=Ml(1|t,i,n,r))}function D2(e,t){Uh(8390656,8,e,t)}function cS(e,t){py(2048,8,e,t)}function qz(e){ge.flags|=4;var t=ge.updateQueue;if(t===null)t=dy(),ge.updateQueue=t,t.events=[e];else{var n=t.events;n===null?t.events=[e]:n.push(e)}}function pM(e){var t=St().memoizedState;return qz({ref:t,nextImpl:e}),function(){if(Me&2)throw Error(U(440));return t.impl.apply(void 0,arguments)}}function mM(e,t){return py(4,2,e,t)}function yM(e,t){return py(4,4,e,t)}function vM(e,t){if(typeof t=="function"){e=e();var n=t(e);return function(){typeof n=="function"?n():t(null)}}if(t!=null)return e=e(),t.current=e,function(){t.current=null}}function gM(e,t,n){n=n!=null?n.concat([e]):null,py(4,4,vM.bind(null,t,e),n)}function uS(){}function bM(e,t){var n=St();t=t===void 0?null:t;var r=n.memoizedState;return t!==null&&nS(t,r[1])?r[0]:(n.memoizedState=[e,t],e)}function xM(e,t){var n=St();t=t===void 0?null:t;var r=n.memoizedState;if(t!==null&&nS(t,r[1]))return r[0];if(r=e(),Ws){Ai(!0);try{e()}finally{Ai(!1)}}return n.memoizedState=[r,t],r}function fS(e,t,n){return n===void 0||Ua&1073741824&&!(Ee&261930)?e.memoizedState=t:(e.memoizedState=n,e=lR(),ge.lanes|=e,Ki|=e,n)}function SM(e,t,n,r){return Xn(n,t)?n:Pl.current!==null?(e=fS(e,n,r),Xn(e,t)||(Tt=!0),e):!(Ua&42)||Ua&1073741824&&!(Ee&261930)?(Tt=!0,e.memoizedState=n):(e=lR(),ge.lanes|=e,Ki|=e,t)}function wM(e,t,n,r,a){var i=De.p;De.p=i!==0&&8>i?i:8;var s=he.T,o={};he.T=o,hS(e,!1,t,n);try{var l=a(),c=he.S;if(c!==null&&c(o,l),l!==null&&typeof l=="object"&&typeof l.then=="function"){var f=Lz(l,r);_u(e,t,f,Gn(e))}else _u(e,t,r,Gn(e))}catch(d){_u(e,t,{then:function(){},status:"rejected",reason:d},Gn())}finally{De.p=i,s!==null&&o.types!==null&&(s.types=o.types),he.T=s}}function Vz(){}function Gb(e,t,n,r){if(e.tag!==5)throw Error(U(476));var a=jM(e).queue;wM(e,a,t,Ls,n===null?Vz:function(){return AM(e),n(r)})}function jM(e){var t=e.memoizedState;if(t!==null)return t;t={memoizedState:Ls,baseState:Ls,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:qa,lastRenderedState:Ls},next:null};var n={};return t.next={memoizedState:n,baseState:n,baseQueue:null,queue:{pending:null,lanes:0,dispatch:null,lastRenderedReducer:qa,lastRenderedState:n},next:null},e.memoizedState=t,e=e.alternate,e!==null&&(e.memoizedState=t),t}function AM(e){var t=jM(e);t.next===null&&(t=e.alternate.memoizedState),_u(e,t.next.queue,{},Gn())}function dS(){return Jt(sf)}function OM(){return St().memoizedState}function EM(){return St().memoizedState}function Hz(e){for(var t=e.return;t!==null;){switch(t.tag){case 24:case 3:var n=Gn();e=Ri(n);var r=Di(t,e,n);r!==null&&(En(r,t,n),Eu(r,t,n)),t={cache:Q1()},e.payload=t;return}t=t.return}}function Fz(e,t,n){var r=Gn();n={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null},my(e)?NM(t,n):(n=K1(e,t,n,r),n!==null&&(En(n,e,r),_M(n,t,r)))}function TM(e,t,n){var r=Gn();_u(e,t,n,r)}function _u(e,t,n,r){var a={lane:r,revertLane:0,gesture:null,action:n,hasEagerState:!1,eagerState:null,next:null};if(my(e))NM(t,a);else{var i=e.alternate;if(e.lanes===0&&(i===null||i.lanes===0)&&(i=t.lastRenderedReducer,i!==null))try{var s=t.lastRenderedState,o=i(s,n);if(a.hasEagerState=!0,a.eagerState=o,Xn(o,s))return uy(e,t,a,0),Ke===null&&cy(),!1}catch{}finally{}if(n=K1(e,t,a,r),n!==null)return En(n,e,r),_M(n,t,r),!0}return!1}function hS(e,t,n,r){if(r={lane:2,revertLane:wS(),gesture:null,action:r,hasEagerState:!1,eagerState:null,next:null},my(e)){if(t)throw Error(U(479))}else t=K1(e,n,r,2),t!==null&&En(t,e,2)}function my(e){var t=e.alternate;return e===ge||t!==null&&t===ge}function NM(e,t){ll=bp=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function _M(e,t,n){if(n&4194048){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,pP(e,n)}}var nf={readContext:Jt,use:hy,useCallback:ht,useContext:ht,useEffect:ht,useImperativeHandle:ht,useLayoutEffect:ht,useInsertionEffect:ht,useMemo:ht,useReducer:ht,useRef:ht,useState:ht,useDebugValue:ht,useDeferredValue:ht,useTransition:ht,useSyncExternalStore:ht,useId:ht,useHostTransitionStatus:ht,useFormState:ht,useActionState:ht,useOptimistic:ht,useMemoCache:ht,useCacheRefresh:ht};nf.useEffectEvent=ht;var CM={readContext:Jt,use:hy,useCallback:function(e,t){return cn().memoizedState=[e,t===void 0?null:t],e},useContext:Jt,useEffect:D2,useImperativeHandle:function(e,t,n){n=n!=null?n.concat([e]):null,Uh(4194308,4,vM.bind(null,t,e),n)},useLayoutEffect:function(e,t){return Uh(4194308,4,e,t)},useInsertionEffect:function(e,t){Uh(4,2,e,t)},useMemo:function(e,t){var n=cn();t=t===void 0?null:t;var r=e();if(Ws){Ai(!0);try{e()}finally{Ai(!1)}}return n.memoizedState=[r,t],r},useReducer:function(e,t,n){var r=cn();if(n!==void 0){var a=n(t);if(Ws){Ai(!0);try{n(t)}finally{Ai(!1)}}}else a=t;return r.memoizedState=r.baseState=a,e={pending:null,lanes:0,dispatch:null,lastRenderedReducer:e,lastRenderedState:a},r.queue=e,e=e.dispatch=Fz.bind(null,ge,e),[r.memoizedState,e]},useRef:function(e){var t=cn();return e={current:e},t.memoizedState=e},useState:function(e){e=Hb(e);var t=e.queue,n=TM.bind(null,ge,t);return t.dispatch=n,[e.memoizedState,n]},useDebugValue:uS,useDeferredValue:function(e,t){var n=cn();return fS(n,e,t)},useTransition:function(){var e=Hb(!1);return e=wM.bind(null,ge,e.queue,!0,!1),cn().memoizedState=e,[!1,e]},useSyncExternalStore:function(e,t,n){var r=ge,a=cn();if(Ne){if(n===void 0)throw Error(U(407));n=n()}else{if(n=t(),Ke===null)throw Error(U(349));Ee&127||rM(r,t,n)}a.memoizedState=n;var i={value:n,getSnapshot:t};return a.queue=i,D2(iM.bind(null,r,i,e),[e]),r.flags|=2048,Ml(9,{destroy:void 0},aM.bind(null,r,i,n,t),null),n},useId:function(){var e=cn(),t=Ke.identifierPrefix;if(Ne){var n=Kr,r=Gr;n=(r&~(1<<32-Fn(r)-1)).toString(32)+n,t="_"+t+"R_"+n,n=xp++,0<n&&(t+="H"+n.toString(32)),t+="_"}else n=zz++,t="_"+t+"r_"+n.toString(32)+"_";return e.memoizedState=t},useHostTransitionStatus:dS,useFormState:P2,useActionState:P2,useOptimistic:function(e){var t=cn();t.memoizedState=t.baseState=e;var n={pending:null,lanes:0,dispatch:null,lastRenderedReducer:null,lastRenderedState:null};return t.queue=n,t=hS.bind(null,ge,!0,n),n.dispatch=t,[e,t]},useMemoCache:oS,useCacheRefresh:function(){return cn().memoizedState=Hz.bind(null,ge)},useEffectEvent:function(e){var t=cn(),n={impl:e};return t.memoizedState=n,function(){if(Me&2)throw Error(U(440));return n.impl.apply(void 0,arguments)}}},pS={readContext:Jt,use:hy,useCallback:bM,useContext:Jt,useEffect:cS,useImperativeHandle:gM,useInsertionEffect:mM,useLayoutEffect:yM,useMemo:xM,useReducer:Ih,useRef:hM,useState:function(){return Ih(qa)},useDebugValue:uS,useDeferredValue:function(e,t){var n=St();return SM(n,Fe.memoizedState,e,t)},useTransition:function(){var e=Ih(qa)[0],t=St().memoizedState;return[typeof e=="boolean"?e:pd(e),t]},useSyncExternalStore:nM,useId:OM,useHostTransitionStatus:dS,useFormState:M2,useActionState:M2,useOptimistic:function(e,t){var n=St();return lM(n,Fe,e,t)},useMemoCache:oS,useCacheRefresh:EM};pS.useEffectEvent=pM;var PM={readContext:Jt,use:hy,useCallback:bM,useContext:Jt,useEffect:cS,useImperativeHandle:gM,useInsertionEffect:mM,useLayoutEffect:yM,useMemo:xM,useReducer:Xv,useRef:hM,useState:function(){return Xv(qa)},useDebugValue:uS,useDeferredValue:function(e,t){var n=St();return Fe===null?fS(n,e,t):SM(n,Fe.memoizedState,e,t)},useTransition:function(){var e=Xv(qa)[0],t=St().memoizedState;return[typeof e=="boolean"?e:pd(e),t]},useSyncExternalStore:nM,useId:OM,useHostTransitionStatus:dS,useFormState:R2,useActionState:R2,useOptimistic:function(e,t){var n=St();return Fe!==null?lM(n,Fe,e,t):(n.baseState=e,[e,n.queue.dispatch])},useMemoCache:oS,useCacheRefresh:EM};PM.useEffectEvent=pM;function Wv(e,t,n,r){t=e.memoizedState,n=n(r,t),n=n==null?t:at({},t,n),e.memoizedState=n,e.lanes===0&&(e.updateQueue.baseState=n)}var Kb={enqueueSetState:function(e,t,n){e=e._reactInternals;var r=Gn(),a=Ri(r);a.payload=t,n!=null&&(a.callback=n),t=Di(e,a,r),t!==null&&(En(t,e,r),Eu(t,e,r))},enqueueReplaceState:function(e,t,n){e=e._reactInternals;var r=Gn(),a=Ri(r);a.tag=1,a.payload=t,n!=null&&(a.callback=n),t=Di(e,a,r),t!==null&&(En(t,e,r),Eu(t,e,r))},enqueueForceUpdate:function(e,t){e=e._reactInternals;var n=Gn(),r=Ri(n);r.tag=2,t!=null&&(r.callback=t),t=Di(e,r,n),t!==null&&(En(t,e,n),Eu(t,e,n))}};function $2(e,t,n,r,a,i,s){return e=e.stateNode,typeof e.shouldComponentUpdate=="function"?e.shouldComponentUpdate(r,i,s):t.prototype&&t.prototype.isPureReactComponent?!Qu(n,r)||!Qu(a,i):!0}function k2(e,t,n,r){e=t.state,typeof t.componentWillReceiveProps=="function"&&t.componentWillReceiveProps(n,r),typeof t.UNSAFE_componentWillReceiveProps=="function"&&t.UNSAFE_componentWillReceiveProps(n,r),t.state!==e&&Kb.enqueueReplaceState(t,t.state,null)}function Qs(e,t){var n=t;if("ref"in t){n={};for(var r in t)r!=="ref"&&(n[r]=t[r])}if(e=e.defaultProps){n===t&&(n=at({},n));for(var a in e)n[a]===void 0&&(n[a]=e[a])}return n}function MM(e){dp(e)}function RM(e){console.error(e)}function DM(e){dp(e)}function Sp(e,t){try{var n=e.onUncaughtError;n(t.value,{componentStack:t.stack})}catch(r){setTimeout(function(){throw r})}}function L2(e,t,n){try{var r=e.onCaughtError;r(n.value,{componentStack:n.stack,errorBoundary:t.tag===1?t.stateNode:null})}catch(a){setTimeout(function(){throw a})}}function Yb(e,t,n){return n=Ri(n),n.tag=3,n.payload={element:null},n.callback=function(){Sp(e,t)},n}function $M(e){return e=Ri(e),e.tag=3,e}function kM(e,t,n,r){var a=n.type.getDerivedStateFromError;if(typeof a=="function"){var i=r.value;e.payload=function(){return a(i)},e.callback=function(){L2(t,n,r)}}var s=n.stateNode;s!==null&&typeof s.componentDidCatch=="function"&&(e.callback=function(){L2(t,n,r),typeof a!="function"&&($i===null?$i=new Set([this]):$i.add(this));var o=r.stack;this.componentDidCatch(r.value,{componentStack:o!==null?o:""})})}function Gz(e,t,n,r,a){if(n.flags|=32768,r!==null&&typeof r=="object"&&typeof r.then=="function"){if(t=n.alternate,t!==null&&gc(t,n,a,!0),n=Wn.current,n!==null){switch(n.tag){case 31:case 13:return pr===null?Ep():n.alternate===null&&vt===0&&(vt=3),n.flags&=-257,n.flags|=65536,n.lanes=a,r===yp?n.flags|=16384:(t=n.updateQueue,t===null?n.updateQueue=new Set([r]):t.add(r),og(e,r,a)),!1;case 22:return n.flags|=65536,r===yp?n.flags|=16384:(t=n.updateQueue,t===null?(t={transitions:null,markerInstances:null,retryQueue:new Set([r])},n.updateQueue=t):(n=t.retryQueue,n===null?t.retryQueue=new Set([r]):n.add(r)),og(e,r,a)),!1}throw Error(U(435,n.tag))}return og(e,r,a),Ep(),!1}if(Ne)return t=Wn.current,t!==null?(!(t.flags&65536)&&(t.flags|=256),t.flags|=65536,t.lanes=a,r!==$b&&(e=Error(U(422),{cause:r}),Ju(ur(e,n)))):(r!==$b&&(t=Error(U(423),{cause:r}),Ju(ur(t,n))),e=e.current.alternate,e.flags|=65536,a&=-a,e.lanes|=a,r=ur(r,n),a=Yb(e.stateNode,r,a),Yv(e,a),vt!==4&&(vt=2)),!1;var i=Error(U(520),{cause:r});if(i=ur(i,n),Mu===null?Mu=[i]:Mu.push(i),vt!==4&&(vt=2),t===null)return!0;r=ur(r,n),n=t;do{switch(n.tag){case 3:return n.flags|=65536,e=a&-a,n.lanes|=e,e=Yb(n.stateNode,r,e),Yv(n,e),!1;case 1:if(t=n.type,i=n.stateNode,(n.flags&128)===0&&(typeof t.getDerivedStateFromError=="function"||i!==null&&typeof i.componentDidCatch=="function"&&($i===null||!$i.has(i))))return n.flags|=65536,a&=-a,n.lanes|=a,a=$M(a),kM(a,e,n,r),Yv(n,a),!1}n=n.return}while(n!==null);return!1}var mS=Error(U(461)),Tt=!1;function Yt(e,t,n,r){t.child=e===null?WP(t,null,n,r):Xs(t,e.child,n,r)}function z2(e,t,n,r,a){n=n.render;var i=t.ref;if("ref"in r){var s={};for(var o in r)o!=="ref"&&(s[o]=r[o])}else s=r;return Ys(t),r=rS(e,t,n,s,i,a),o=aS(),e!==null&&!Tt?(iS(e,t,a),Va(e,t,a)):(Ne&&o&&X1(t),t.flags|=1,Yt(e,t,r,a),t.child)}function B2(e,t,n,r,a){if(e===null){var i=n.type;return typeof i=="function"&&!Y1(i)&&i.defaultProps===void 0&&n.compare===null?(t.tag=15,t.type=i,LM(e,t,i,r,a)):(e=zh(n.type,null,r,t,t.mode,a),e.ref=t.ref,e.return=t,t.child=e)}if(i=e.child,!yS(e,a)){var s=i.memoizedProps;if(n=n.compare,n=n!==null?n:Qu,n(s,r)&&e.ref===t.ref)return Va(e,t,a)}return t.flags|=1,e=Ma(i,r),e.ref=t.ref,e.return=t,t.child=e}function LM(e,t,n,r,a){if(e!==null){var i=e.memoizedProps;if(Qu(i,r)&&e.ref===t.ref)if(Tt=!1,t.pendingProps=r=i,yS(e,a))e.flags&131072&&(Tt=!0);else return t.lanes=e.lanes,Va(e,t,a)}return Xb(e,t,n,r,a)}function zM(e,t,n,r){var a=r.children,i=e!==null?e.memoizedState:null;if(e===null&&t.stateNode===null&&(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),r.mode==="hidden"){if(t.flags&128){if(i=i!==null?i.baseLanes|n:n,e!==null){for(r=t.child=e.child,a=0;r!==null;)a=a|r.lanes|r.childLanes,r=r.sibling;r=a&~i}else r=0,t.child=null;return I2(e,t,i,n,r)}if(n&536870912)t.memoizedState={baseLanes:0,cachePool:null},e!==null&&Bh(t,i!==null?i.cachePool:null),i!==null?N2(t,i):qb(),JP(t);else return r=t.lanes=536870912,I2(e,t,i!==null?i.baseLanes|n:n,n,r)}else i!==null?(Bh(t,i.cachePool),N2(t,i),hi(),t.memoizedState=null):(e!==null&&Bh(t,null),qb(),hi());return Yt(e,t,a,n),t.child}function pu(e,t){return e!==null&&e.tag===22||t.stateNode!==null||(t.stateNode={_visibility:1,_pendingMarkers:null,_retryCache:null,_transitions:null}),t.sibling}function I2(e,t,n,r,a){var i=Z1();return i=i===null?null:{parent:Et._currentValue,pool:i},t.memoizedState={baseLanes:n,cachePool:i},e!==null&&Bh(t,null),qb(),JP(t),e!==null&&gc(e,t,r,!0),t.childLanes=a,null}function qh(e,t){return t=wp({mode:t.mode,children:t.children},e.mode),t.ref=e.ref,e.child=t,t.return=e,t}function U2(e,t,n){return Xs(t,e.child,null,n),e=qh(t,t.pendingProps),e.flags|=2,Bn(t),t.memoizedState=null,e}function Kz(e,t,n){var r=t.pendingProps,a=(t.flags&128)!==0;if(t.flags&=-129,e===null){if(Ne){if(r.mode==="hidden")return e=qh(t,r),t.lanes=536870912,pu(null,e);if(Vb(t),(e=nt)?(e=CR(e,fr),e=e!==null&&e.data==="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Hi!==null?{id:Gr,overflow:Kr}:null,retryLane:536870912,hydrationErrors:null},n=VP(e),n.return=t,t.child=n,Qt=t,nt=null)):e=null,e===null)throw Fi(t);return t.lanes=536870912,null}return qh(t,r)}var i=e.memoizedState;if(i!==null){var s=i.dehydrated;if(Vb(t),a)if(t.flags&256)t.flags&=-257,t=U2(e,t,n);else if(t.memoizedState!==null)t.child=e.child,t.flags|=128,t=null;else throw Error(U(558));else if(Tt||gc(e,t,n,!1),a=(n&e.childLanes)!==0,Tt||a){if(r=Ke,r!==null&&(s=mP(r,n),s!==0&&s!==i.retryLane))throw i.retryLane=s,fo(e,s),En(r,e,s),mS;Ep(),t=U2(e,t,n)}else e=i.treeContext,nt=mr(s.nextSibling),Qt=t,Ne=!0,Mi=null,fr=!1,e!==null&&FP(t,e),t=qh(t,r),t.flags|=4096;return t}return e=Ma(e.child,{mode:r.mode,children:r.children}),e.ref=t.ref,t.child=e,e.return=t,e}function Vh(e,t){var n=t.ref;if(n===null)e!==null&&e.ref!==null&&(t.flags|=4194816);else{if(typeof n!="function"&&typeof n!="object")throw Error(U(284));(e===null||e.ref!==n)&&(t.flags|=4194816)}}function Xb(e,t,n,r,a){return Ys(t),n=rS(e,t,n,r,void 0,a),r=aS(),e!==null&&!Tt?(iS(e,t,a),Va(e,t,a)):(Ne&&r&&X1(t),t.flags|=1,Yt(e,t,n,a),t.child)}function q2(e,t,n,r,a,i){return Ys(t),t.updateQueue=null,n=tM(t,r,n,a),eM(e),r=aS(),e!==null&&!Tt?(iS(e,t,i),Va(e,t,i)):(Ne&&r&&X1(t),t.flags|=1,Yt(e,t,n,i),t.child)}function V2(e,t,n,r,a){if(Ys(t),t.stateNode===null){var i=Vo,s=n.contextType;typeof s=="object"&&s!==null&&(i=Jt(s)),i=new n(r,i),t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,i.updater=Kb,t.stateNode=i,i._reactInternals=t,i=t.stateNode,i.props=r,i.state=t.memoizedState,i.refs={},eS(t),s=n.contextType,i.context=typeof s=="object"&&s!==null?Jt(s):Vo,i.state=t.memoizedState,s=n.getDerivedStateFromProps,typeof s=="function"&&(Wv(t,n,s,r),i.state=t.memoizedState),typeof n.getDerivedStateFromProps=="function"||typeof i.getSnapshotBeforeUpdate=="function"||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(s=i.state,typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount(),s!==i.state&&Kb.enqueueReplaceState(i,i.state,null),Nu(t,r,i,a),Tu(),i.state=t.memoizedState),typeof i.componentDidMount=="function"&&(t.flags|=4194308),r=!0}else if(e===null){i=t.stateNode;var o=t.memoizedProps,l=Qs(n,o);i.props=l;var c=i.context,f=n.contextType;s=Vo,typeof f=="object"&&f!==null&&(s=Jt(f));var d=n.getDerivedStateFromProps;f=typeof d=="function"||typeof i.getSnapshotBeforeUpdate=="function",o=t.pendingProps!==o,f||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(o||c!==s)&&k2(t,i,r,s),ci=!1;var h=t.memoizedState;i.state=h,Nu(t,r,i,a),Tu(),c=t.memoizedState,o||h!==c||ci?(typeof d=="function"&&(Wv(t,n,d,r),c=t.memoizedState),(l=ci||$2(t,n,l,r,h,c,s))?(f||typeof i.UNSAFE_componentWillMount!="function"&&typeof i.componentWillMount!="function"||(typeof i.componentWillMount=="function"&&i.componentWillMount(),typeof i.UNSAFE_componentWillMount=="function"&&i.UNSAFE_componentWillMount()),typeof i.componentDidMount=="function"&&(t.flags|=4194308)):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),t.memoizedProps=r,t.memoizedState=c),i.props=r,i.state=c,i.context=s,r=l):(typeof i.componentDidMount=="function"&&(t.flags|=4194308),r=!1)}else{i=t.stateNode,Ib(e,t),s=t.memoizedProps,f=Qs(n,s),i.props=f,d=t.pendingProps,h=i.context,c=n.contextType,l=Vo,typeof c=="object"&&c!==null&&(l=Jt(c)),o=n.getDerivedStateFromProps,(c=typeof o=="function"||typeof i.getSnapshotBeforeUpdate=="function")||typeof i.UNSAFE_componentWillReceiveProps!="function"&&typeof i.componentWillReceiveProps!="function"||(s!==d||h!==l)&&k2(t,i,r,l),ci=!1,h=t.memoizedState,i.state=h,Nu(t,r,i,a),Tu();var p=t.memoizedState;s!==d||h!==p||ci||e!==null&&e.dependencies!==null&&mp(e.dependencies)?(typeof o=="function"&&(Wv(t,n,o,r),p=t.memoizedState),(f=ci||$2(t,n,f,r,h,p,l)||e!==null&&e.dependencies!==null&&mp(e.dependencies))?(c||typeof i.UNSAFE_componentWillUpdate!="function"&&typeof i.componentWillUpdate!="function"||(typeof i.componentWillUpdate=="function"&&i.componentWillUpdate(r,p,l),typeof i.UNSAFE_componentWillUpdate=="function"&&i.UNSAFE_componentWillUpdate(r,p,l)),typeof i.componentDidUpdate=="function"&&(t.flags|=4),typeof i.getSnapshotBeforeUpdate=="function"&&(t.flags|=1024)):(typeof i.componentDidUpdate!="function"||s===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),t.memoizedProps=r,t.memoizedState=p),i.props=r,i.state=p,i.context=l,r=f):(typeof i.componentDidUpdate!="function"||s===e.memoizedProps&&h===e.memoizedState||(t.flags|=4),typeof i.getSnapshotBeforeUpdate!="function"||s===e.memoizedProps&&h===e.memoizedState||(t.flags|=1024),r=!1)}return i=r,Vh(e,t),r=(t.flags&128)!==0,i||r?(i=t.stateNode,n=r&&typeof n.getDerivedStateFromError!="function"?null:i.render(),t.flags|=1,e!==null&&r?(t.child=Xs(t,e.child,null,a),t.child=Xs(t,null,n,a)):Yt(e,t,n,a),t.memoizedState=i.state,e=t.child):e=Va(e,t,a),e}function H2(e,t,n,r){return Ks(),t.flags|=256,Yt(e,t,n,r),t.child}var Qv={dehydrated:null,treeContext:null,retryLane:0,hydrationErrors:null};function Zv(e){return{baseLanes:e,cachePool:KP()}}function Jv(e,t,n){return e=e!==null?e.childLanes&~n:0,t&&(e|=qn),e}function BM(e,t,n){var r=t.pendingProps,a=!1,i=(t.flags&128)!==0,s;if((s=i)||(s=e!==null&&e.memoizedState===null?!1:(bt.current&2)!==0),s&&(a=!0,t.flags&=-129),s=(t.flags&32)!==0,t.flags&=-33,e===null){if(Ne){if(a?di(t):hi(),(e=nt)?(e=CR(e,fr),e=e!==null&&e.data!=="&"?e:null,e!==null&&(t.memoizedState={dehydrated:e,treeContext:Hi!==null?{id:Gr,overflow:Kr}:null,retryLane:536870912,hydrationErrors:null},n=VP(e),n.return=t,t.child=n,Qt=t,nt=null)):e=null,e===null)throw Fi(t);return c0(e)?t.lanes=32:t.lanes=536870912,null}var o=r.children;return r=r.fallback,a?(hi(),a=t.mode,o=wp({mode:"hidden",children:o},a),r=zs(r,a,n,null),o.return=t,r.return=t,o.sibling=r,t.child=o,r=t.child,r.memoizedState=Zv(n),r.childLanes=Jv(e,s,n),t.memoizedState=Qv,pu(null,r)):(di(t),Wb(t,o))}var l=e.memoizedState;if(l!==null&&(o=l.dehydrated,o!==null)){if(i)t.flags&256?(di(t),t.flags&=-257,t=eg(e,t,n)):t.memoizedState!==null?(hi(),t.child=e.child,t.flags|=128,t=null):(hi(),o=r.fallback,a=t.mode,r=wp({mode:"visible",children:r.children},a),o=zs(o,a,n,null),o.flags|=2,r.return=t,o.return=t,r.sibling=o,t.child=r,Xs(t,e.child,null,n),r=t.child,r.memoizedState=Zv(n),r.childLanes=Jv(e,s,n),t.memoizedState=Qv,t=pu(null,r));else if(di(t),c0(o)){if(s=o.nextSibling&&o.nextSibling.dataset,s)var c=s.dgst;s=c,r=Error(U(419)),r.stack="",r.digest=s,Ju({value:r,source:null,stack:null}),t=eg(e,t,n)}else if(Tt||gc(e,t,n,!1),s=(n&e.childLanes)!==0,Tt||s){if(s=Ke,s!==null&&(r=mP(s,n),r!==0&&r!==l.retryLane))throw l.retryLane=r,fo(e,r),En(s,e,r),mS;l0(o)||Ep(),t=eg(e,t,n)}else l0(o)?(t.flags|=192,t.child=e.child,t=null):(e=l.treeContext,nt=mr(o.nextSibling),Qt=t,Ne=!0,Mi=null,fr=!1,e!==null&&FP(t,e),t=Wb(t,r.children),t.flags|=4096);return t}return a?(hi(),o=r.fallback,a=t.mode,l=e.child,c=l.sibling,r=Ma(l,{mode:"hidden",children:r.children}),r.subtreeFlags=l.subtreeFlags&65011712,c!==null?o=Ma(c,o):(o=zs(o,a,n,null),o.flags|=2),o.return=t,r.return=t,r.sibling=o,t.child=r,pu(null,r),r=t.child,o=e.child.memoizedState,o===null?o=Zv(n):(a=o.cachePool,a!==null?(l=Et._currentValue,a=a.parent!==l?{parent:l,pool:l}:a):a=KP(),o={baseLanes:o.baseLanes|n,cachePool:a}),r.memoizedState=o,r.childLanes=Jv(e,s,n),t.memoizedState=Qv,pu(e.child,r)):(di(t),n=e.child,e=n.sibling,n=Ma(n,{mode:"visible",children:r.children}),n.return=t,n.sibling=null,e!==null&&(s=t.deletions,s===null?(t.deletions=[e],t.flags|=16):s.push(e)),t.child=n,t.memoizedState=null,n)}function Wb(e,t){return t=wp({mode:"visible",children:t},e.mode),t.return=e,e.child=t}function wp(e,t){return e=In(22,e,null,t),e.lanes=0,e}function eg(e,t,n){return Xs(t,e.child,null,n),e=Wb(t,t.pendingProps.children),e.flags|=2,t.memoizedState=null,e}function F2(e,t,n){e.lanes|=t;var r=e.alternate;r!==null&&(r.lanes|=t),Lb(e.return,t,n)}function tg(e,t,n,r,a,i){var s=e.memoizedState;s===null?e.memoizedState={isBackwards:t,rendering:null,renderingStartTime:0,last:r,tail:n,tailMode:a,treeForkCount:i}:(s.isBackwards=t,s.rendering=null,s.renderingStartTime=0,s.last=r,s.tail=n,s.tailMode=a,s.treeForkCount=i)}function IM(e,t,n){var r=t.pendingProps,a=r.revealOrder,i=r.tail;r=r.children;var s=bt.current,o=(s&2)!==0;if(o?(s=s&1|2,t.flags|=128):s&=1,Qe(bt,s),Yt(e,t,r,n),r=Ne?Zu:0,!o&&e!==null&&e.flags&128)e:for(e=t.child;e!==null;){if(e.tag===13)e.memoizedState!==null&&F2(e,n,t);else if(e.tag===19)F2(e,n,t);else if(e.child!==null){e.child.return=e,e=e.child;continue}if(e===t)break e;for(;e.sibling===null;){if(e.return===null||e.return===t)break e;e=e.return}e.sibling.return=e.return,e=e.sibling}switch(a){case"forwards":for(n=t.child,a=null;n!==null;)e=n.alternate,e!==null&&gp(e)===null&&(a=n),n=n.sibling;n=a,n===null?(a=t.child,t.child=null):(a=n.sibling,n.sibling=null),tg(t,!1,a,n,i,r);break;case"backwards":case"unstable_legacy-backwards":for(n=null,a=t.child,t.child=null;a!==null;){if(e=a.alternate,e!==null&&gp(e)===null){t.child=a;break}e=a.sibling,a.sibling=n,n=a,a=e}tg(t,!0,n,null,i,r);break;case"together":tg(t,!1,null,null,void 0,r);break;default:t.memoizedState=null}return t.child}function Va(e,t,n){if(e!==null&&(t.dependencies=e.dependencies),Ki|=t.lanes,!(n&t.childLanes))if(e!==null){if(gc(e,t,n,!1),(n&t.childLanes)===0)return null}else return null;if(e!==null&&t.child!==e.child)throw Error(U(153));if(t.child!==null){for(e=t.child,n=Ma(e,e.pendingProps),t.child=n,n.return=t;e.sibling!==null;)e=e.sibling,n=n.sibling=Ma(e,e.pendingProps),n.return=t;n.sibling=null}return t.child}function yS(e,t){return e.lanes&t?!0:(e=e.dependencies,!!(e!==null&&mp(e)))}function Yz(e,t,n){switch(t.tag){case 3:lp(t,t.stateNode.containerInfo),fi(t,Et,e.memoizedState.cache),Ks();break;case 27:case 5:Ab(t);break;case 4:lp(t,t.stateNode.containerInfo);break;case 10:fi(t,t.type,t.memoizedProps.value);break;case 31:if(t.memoizedState!==null)return t.flags|=128,Vb(t),null;break;case 13:var r=t.memoizedState;if(r!==null)return r.dehydrated!==null?(di(t),t.flags|=128,null):n&t.child.childLanes?BM(e,t,n):(di(t),e=Va(e,t,n),e!==null?e.sibling:null);di(t);break;case 19:var a=(e.flags&128)!==0;if(r=(n&t.childLanes)!==0,r||(gc(e,t,n,!1),r=(n&t.childLanes)!==0),a){if(r)return IM(e,t,n);t.flags|=128}if(a=t.memoizedState,a!==null&&(a.rendering=null,a.tail=null,a.lastEffect=null),Qe(bt,bt.current),r)break;return null;case 22:return t.lanes=0,zM(e,t,n,t.pendingProps);case 24:fi(t,Et,e.memoizedState.cache)}return Va(e,t,n)}function UM(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps)Tt=!0;else{if(!yS(e,n)&&!(t.flags&128))return Tt=!1,Yz(e,t,n);Tt=!!(e.flags&131072)}else Tt=!1,Ne&&t.flags&1048576&&HP(t,Zu,t.index);switch(t.lanes=0,t.tag){case 16:e:{var r=t.pendingProps;if(e=fs(t.elementType),t.type=e,typeof e=="function")Y1(e)?(r=Qs(e,r),t.tag=1,t=V2(null,t,e,r,n)):(t.tag=0,t=Xb(null,t,e,r,n));else{if(e!=null){var a=e.$$typeof;if(a===D1){t.tag=11,t=z2(null,t,e,r,n);break e}else if(a===$1){t.tag=14,t=B2(null,t,e,r,n);break e}}throw t=wb(e)||e,Error(U(306,t,""))}}return t;case 0:return Xb(e,t,t.type,t.pendingProps,n);case 1:return r=t.type,a=Qs(r,t.pendingProps),V2(e,t,r,a,n);case 3:e:{if(lp(t,t.stateNode.containerInfo),e===null)throw Error(U(387));r=t.pendingProps;var i=t.memoizedState;a=i.element,Ib(e,t),Nu(t,r,null,n);var s=t.memoizedState;if(r=s.cache,fi(t,Et,r),r!==i.cache&&zb(t,[Et],n,!0),Tu(),r=s.element,i.isDehydrated)if(i={element:r,isDehydrated:!1,cache:s.cache},t.updateQueue.baseState=i,t.memoizedState=i,t.flags&256){t=H2(e,t,r,n);break e}else if(r!==a){a=ur(Error(U(424)),t),Ju(a),t=H2(e,t,r,n);break e}else{switch(e=t.stateNode.containerInfo,e.nodeType){case 9:e=e.body;break;default:e=e.nodeName==="HTML"?e.ownerDocument.body:e}for(nt=mr(e.firstChild),Qt=t,Ne=!0,Mi=null,fr=!0,n=WP(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling}else{if(Ks(),r===a){t=Va(e,t,n);break e}Yt(e,t,r,n)}t=t.child}return t;case 26:return Vh(e,t),e===null?(n=fA(t.type,null,t.pendingProps,null))?t.memoizedState=n:Ne||(n=t.type,e=t.pendingProps,r=Cp(Pi.current).createElement(n),r[Wt]=t,r[Nn]=e,en(r,n,e),qt(r),t.stateNode=r):t.memoizedState=fA(t.type,e.memoizedProps,t.pendingProps,e.memoizedState),null;case 27:return Ab(t),e===null&&Ne&&(r=t.stateNode=PR(t.type,t.pendingProps,Pi.current),Qt=t,fr=!0,a=nt,Wi(t.type)?(u0=a,nt=mr(r.firstChild)):nt=a),Yt(e,t,t.pendingProps.children,n),Vh(e,t),e===null&&(t.flags|=4194304),t.child;case 5:return e===null&&Ne&&((a=r=nt)&&(r=A8(r,t.type,t.pendingProps,fr),r!==null?(t.stateNode=r,Qt=t,nt=mr(r.firstChild),fr=!1,a=!0):a=!1),a||Fi(t)),Ab(t),a=t.type,i=t.pendingProps,s=e!==null?e.memoizedProps:null,r=i.children,s0(a,i)?r=null:s!==null&&s0(a,s)&&(t.flags|=32),t.memoizedState!==null&&(a=rS(e,t,Bz,null,null,n),sf._currentValue=a),Vh(e,t),Yt(e,t,r,n),t.child;case 6:return e===null&&Ne&&((e=n=nt)&&(n=O8(n,t.pendingProps,fr),n!==null?(t.stateNode=n,Qt=t,nt=null,e=!0):e=!1),e||Fi(t)),null;case 13:return BM(e,t,n);case 4:return lp(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Xs(t,null,r,n):Yt(e,t,r,n),t.child;case 11:return z2(e,t,t.type,t.pendingProps,n);case 7:return Yt(e,t,t.pendingProps,n),t.child;case 8:return Yt(e,t,t.pendingProps.children,n),t.child;case 12:return Yt(e,t,t.pendingProps.children,n),t.child;case 10:return r=t.pendingProps,fi(t,t.type,r.value),Yt(e,t,r.children,n),t.child;case 9:return a=t.type._context,r=t.pendingProps.children,Ys(t),a=Jt(a),r=r(a),t.flags|=1,Yt(e,t,r,n),t.child;case 14:return B2(e,t,t.type,t.pendingProps,n);case 15:return LM(e,t,t.type,t.pendingProps,n);case 19:return IM(e,t,n);case 31:return Kz(e,t,n);case 22:return zM(e,t,n,t.pendingProps);case 24:return Ys(t),r=Jt(Et),e===null?(a=Z1(),a===null&&(a=Ke,i=Q1(),a.pooledCache=i,i.refCount++,i!==null&&(a.pooledCacheLanes|=n),a=i),t.memoizedState={parent:r,cache:a},eS(t),fi(t,Et,a)):(e.lanes&n&&(Ib(e,t),Nu(t,null,null,n),Tu()),a=e.memoizedState,i=t.memoizedState,a.parent!==r?(a={parent:r,cache:r},t.memoizedState=a,t.lanes===0&&(t.memoizedState=t.updateQueue.baseState=a),fi(t,Et,r)):(r=i.cache,fi(t,Et,r),r!==a.cache&&zb(t,[Et],n,!0))),Yt(e,t,t.pendingProps.children,n),t.child;case 29:throw t.pendingProps}throw Error(U(156,t.tag))}function pa(e){e.flags|=4}function ng(e,t,n,r,a){if((t=(e.mode&32)!==0)&&(t=!1),t){if(e.flags|=16777216,(a&335544128)===a)if(e.stateNode.complete)e.flags|=8192;else if(fR())e.flags|=8192;else throw Is=yp,J1}else e.flags&=-16777217}function G2(e,t){if(t.type!=="stylesheet"||t.state.loading&4)e.flags&=-16777217;else if(e.flags|=16777216,!DR(t))if(fR())e.flags|=8192;else throw Is=yp,J1}function eh(e,t){t!==null&&(e.flags|=4),e.flags&16384&&(t=e.tag!==22?dP():536870912,e.lanes|=t,Rl|=t)}function Kc(e,t){if(!Ne)switch(e.tailMode){case"hidden":t=e.tail;for(var n=null;t!==null;)t.alternate!==null&&(n=t),t=t.sibling;n===null?e.tail=null:n.sibling=null;break;case"collapsed":n=e.tail;for(var r=null;n!==null;)n.alternate!==null&&(r=n),n=n.sibling;r===null?t||e.tail===null?e.tail=null:e.tail.sibling=null:r.sibling=null}}function Je(e){var t=e.alternate!==null&&e.alternate.child===e.child,n=0,r=0;if(t)for(var a=e.child;a!==null;)n|=a.lanes|a.childLanes,r|=a.subtreeFlags&65011712,r|=a.flags&65011712,a.return=e,a=a.sibling;else for(a=e.child;a!==null;)n|=a.lanes|a.childLanes,r|=a.subtreeFlags,r|=a.flags,a.return=e,a=a.sibling;return e.subtreeFlags|=r,e.childLanes=n,t}function Xz(e,t,n){var r=t.pendingProps;switch(W1(t),t.tag){case 16:case 15:case 0:case 11:case 7:case 8:case 12:case 9:case 14:return Je(t),null;case 1:return Je(t),null;case 3:return n=t.stateNode,r=null,e!==null&&(r=e.memoizedState.cache),t.memoizedState.cache!==r&&(t.flags|=2048),Ra(Et),Tl(),n.pendingContext&&(n.context=n.pendingContext,n.pendingContext=null),(e===null||e.child===null)&&(Ao(t)?pa(t):e===null||e.memoizedState.isDehydrated&&!(t.flags&256)||(t.flags|=1024,Kv())),Je(t),null;case 26:var a=t.type,i=t.memoizedState;return e===null?(pa(t),i!==null?(Je(t),G2(t,i)):(Je(t),ng(t,a,null,r,n))):i?i!==e.memoizedState?(pa(t),Je(t),G2(t,i)):(Je(t),t.flags&=-16777217):(e=e.memoizedProps,e!==r&&pa(t),Je(t),ng(t,a,e,r,n)),null;case 27:if(cp(t),n=Pi.current,a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&pa(t);else{if(!r){if(t.stateNode===null)throw Error(U(166));return Je(t),null}e=Jr.current,Ao(t)?S2(t):(e=PR(a,r,n),t.stateNode=e,pa(t))}return Je(t),null;case 5:if(cp(t),a=t.type,e!==null&&t.stateNode!=null)e.memoizedProps!==r&&pa(t);else{if(!r){if(t.stateNode===null)throw Error(U(166));return Je(t),null}if(i=Jr.current,Ao(t))S2(t);else{var s=Cp(Pi.current);switch(i){case 1:i=s.createElementNS("http://www.w3.org/2000/svg",a);break;case 2:i=s.createElementNS("http://www.w3.org/1998/Math/MathML",a);break;default:switch(a){case"svg":i=s.createElementNS("http://www.w3.org/2000/svg",a);break;case"math":i=s.createElementNS("http://www.w3.org/1998/Math/MathML",a);break;case"script":i=s.createElement("div"),i.innerHTML="<script><\/script>",i=i.removeChild(i.firstChild);break;case"select":i=typeof r.is=="string"?s.createElement("select",{is:r.is}):s.createElement("select"),r.multiple?i.multiple=!0:r.size&&(i.size=r.size);break;default:i=typeof r.is=="string"?s.createElement(a,{is:r.is}):s.createElement(a)}}i[Wt]=t,i[Nn]=r;e:for(s=t.child;s!==null;){if(s.tag===5||s.tag===6)i.appendChild(s.stateNode);else if(s.tag!==4&&s.tag!==27&&s.child!==null){s.child.return=s,s=s.child;continue}if(s===t)break e;for(;s.sibling===null;){if(s.return===null||s.return===t)break e;s=s.return}s.sibling.return=s.return,s=s.sibling}t.stateNode=i;e:switch(en(i,a,r),a){case"button":case"input":case"select":case"textarea":r=!!r.autoFocus;break e;case"img":r=!0;break e;default:r=!1}r&&pa(t)}}return Je(t),ng(t,t.type,e===null?null:e.memoizedProps,t.pendingProps,n),null;case 6:if(e&&t.stateNode!=null)e.memoizedProps!==r&&pa(t);else{if(typeof r!="string"&&t.stateNode===null)throw Error(U(166));if(e=Pi.current,Ao(t)){if(e=t.stateNode,n=t.memoizedProps,r=null,a=Qt,a!==null)switch(a.tag){case 27:case 5:r=a.memoizedProps}e[Wt]=t,e=!!(e.nodeValue===n||r!==null&&r.suppressHydrationWarning===!0||TR(e.nodeValue,n)),e||Fi(t,!0)}else e=Cp(e).createTextNode(r),e[Wt]=t,t.stateNode=e}return Je(t),null;case 31:if(n=t.memoizedState,e===null||e.memoizedState!==null){if(r=Ao(t),n!==null){if(e===null){if(!r)throw Error(U(318));if(e=t.memoizedState,e=e!==null?e.dehydrated:null,!e)throw Error(U(557));e[Wt]=t}else Ks(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Je(t),e=!1}else n=Kv(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=n),e=!0;if(!e)return t.flags&256?(Bn(t),t):(Bn(t),null);if(t.flags&128)throw Error(U(558))}return Je(t),null;case 13:if(r=t.memoizedState,e===null||e.memoizedState!==null&&e.memoizedState.dehydrated!==null){if(a=Ao(t),r!==null&&r.dehydrated!==null){if(e===null){if(!a)throw Error(U(318));if(a=t.memoizedState,a=a!==null?a.dehydrated:null,!a)throw Error(U(317));a[Wt]=t}else Ks(),!(t.flags&128)&&(t.memoizedState=null),t.flags|=4;Je(t),a=!1}else a=Kv(),e!==null&&e.memoizedState!==null&&(e.memoizedState.hydrationErrors=a),a=!0;if(!a)return t.flags&256?(Bn(t),t):(Bn(t),null)}return Bn(t),t.flags&128?(t.lanes=n,t):(n=r!==null,e=e!==null&&e.memoizedState!==null,n&&(r=t.child,a=null,r.alternate!==null&&r.alternate.memoizedState!==null&&r.alternate.memoizedState.cachePool!==null&&(a=r.alternate.memoizedState.cachePool.pool),i=null,r.memoizedState!==null&&r.memoizedState.cachePool!==null&&(i=r.memoizedState.cachePool.pool),i!==a&&(r.flags|=2048)),n!==e&&n&&(t.child.flags|=8192),eh(t,t.updateQueue),Je(t),null);case 4:return Tl(),e===null&&jS(t.stateNode.containerInfo),Je(t),null;case 10:return Ra(t.type),Je(t),null;case 19:if(Ht(bt),r=t.memoizedState,r===null)return Je(t),null;if(a=(t.flags&128)!==0,i=r.rendering,i===null)if(a)Kc(r,!1);else{if(vt!==0||e!==null&&e.flags&128)for(e=t.child;e!==null;){if(i=gp(e),i!==null){for(t.flags|=128,Kc(r,!1),e=i.updateQueue,t.updateQueue=e,eh(t,e),t.subtreeFlags=0,e=n,n=t.child;n!==null;)qP(n,e),n=n.sibling;return Qe(bt,bt.current&1|2),Ne&&Sa(t,r.treeForkCount),t.child}e=e.sibling}r.tail!==null&&Vn()>Ap&&(t.flags|=128,a=!0,Kc(r,!1),t.lanes=4194304)}else{if(!a)if(e=gp(i),e!==null){if(t.flags|=128,a=!0,e=e.updateQueue,t.updateQueue=e,eh(t,e),Kc(r,!0),r.tail===null&&r.tailMode==="hidden"&&!i.alternate&&!Ne)return Je(t),null}else 2*Vn()-r.renderingStartTime>Ap&&n!==536870912&&(t.flags|=128,a=!0,Kc(r,!1),t.lanes=4194304);r.isBackwards?(i.sibling=t.child,t.child=i):(e=r.last,e!==null?e.sibling=i:t.child=i,r.last=i)}return r.tail!==null?(e=r.tail,r.rendering=e,r.tail=e.sibling,r.renderingStartTime=Vn(),e.sibling=null,n=bt.current,Qe(bt,a?n&1|2:n&1),Ne&&Sa(t,r.treeForkCount),e):(Je(t),null);case 22:case 23:return Bn(t),tS(),r=t.memoizedState!==null,e!==null?e.memoizedState!==null!==r&&(t.flags|=8192):r&&(t.flags|=8192),r?n&536870912&&!(t.flags&128)&&(Je(t),t.subtreeFlags&6&&(t.flags|=8192)):Je(t),n=t.updateQueue,n!==null&&eh(t,n.retryQueue),n=null,e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),r=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(r=t.memoizedState.cachePool.pool),r!==n&&(t.flags|=2048),e!==null&&Ht(Bs),null;case 24:return n=null,e!==null&&(n=e.memoizedState.cache),t.memoizedState.cache!==n&&(t.flags|=2048),Ra(Et),Je(t),null;case 25:return null;case 30:return null}throw Error(U(156,t.tag))}function Wz(e,t){switch(W1(t),t.tag){case 1:return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Ra(Et),Tl(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 26:case 27:case 5:return cp(t),null;case 31:if(t.memoizedState!==null){if(Bn(t),t.alternate===null)throw Error(U(340));Ks()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 13:if(Bn(t),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(U(340));Ks()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Ht(bt),null;case 4:return Tl(),null;case 10:return Ra(t.type),null;case 22:case 23:return Bn(t),tS(),e!==null&&Ht(Bs),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 24:return Ra(Et),null;case 25:return null;default:return null}}function qM(e,t){switch(W1(t),t.tag){case 3:Ra(Et),Tl();break;case 26:case 27:case 5:cp(t);break;case 4:Tl();break;case 31:t.memoizedState!==null&&Bn(t);break;case 13:Bn(t);break;case 19:Ht(bt);break;case 10:Ra(t.type);break;case 22:case 23:Bn(t),tS(),e!==null&&Ht(Bs);break;case 24:Ra(Et)}}function md(e,t){try{var n=t.updateQueue,r=n!==null?n.lastEffect:null;if(r!==null){var a=r.next;n=a;do{if((n.tag&e)===e){r=void 0;var i=n.create,s=n.inst;r=i(),s.destroy=r}n=n.next}while(n!==a)}}catch(o){Ie(t,t.return,o)}}function Gi(e,t,n){try{var r=t.updateQueue,a=r!==null?r.lastEffect:null;if(a!==null){var i=a.next;r=i;do{if((r.tag&e)===e){var s=r.inst,o=s.destroy;if(o!==void 0){s.destroy=void 0,a=t;var l=n,c=o;try{c()}catch(f){Ie(a,l,f)}}}r=r.next}while(r!==i)}}catch(f){Ie(t,t.return,f)}}function VM(e){var t=e.updateQueue;if(t!==null){var n=e.stateNode;try{ZP(t,n)}catch(r){Ie(e,e.return,r)}}}function HM(e,t,n){n.props=Qs(e.type,e.memoizedProps),n.state=e.memoizedState;try{n.componentWillUnmount()}catch(r){Ie(e,t,r)}}function Cu(e,t){try{var n=e.ref;if(n!==null){switch(e.tag){case 26:case 27:case 5:var r=e.stateNode;break;case 30:r=e.stateNode;break;default:r=e.stateNode}typeof n=="function"?e.refCleanup=n(r):n.current=r}}catch(a){Ie(e,t,a)}}function Yr(e,t){var n=e.ref,r=e.refCleanup;if(n!==null)if(typeof r=="function")try{r()}catch(a){Ie(e,t,a)}finally{e.refCleanup=null,e=e.alternate,e!=null&&(e.refCleanup=null)}else if(typeof n=="function")try{n(null)}catch(a){Ie(e,t,a)}else n.current=null}function FM(e){var t=e.type,n=e.memoizedProps,r=e.stateNode;try{e:switch(t){case"button":case"input":case"select":case"textarea":n.autoFocus&&r.focus();break e;case"img":n.src?r.src=n.src:n.srcSet&&(r.srcset=n.srcSet)}}catch(a){Ie(e,e.return,a)}}function rg(e,t,n){try{var r=e.stateNode;g8(r,e.type,n,t),r[Nn]=t}catch(a){Ie(e,e.return,a)}}function GM(e){return e.tag===5||e.tag===3||e.tag===26||e.tag===27&&Wi(e.type)||e.tag===4}function ag(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||GM(e.return))return null;e=e.return}for(e.sibling.return=e.return,e=e.sibling;e.tag!==5&&e.tag!==6&&e.tag!==18;){if(e.tag===27&&Wi(e.type)||e.flags&2||e.child===null||e.tag===4)continue e;e.child.return=e,e=e.child}if(!(e.flags&2))return e.stateNode}}function Qb(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?(n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n).insertBefore(e,t):(t=n.nodeType===9?n.body:n.nodeName==="HTML"?n.ownerDocument.body:n,t.appendChild(e),n=n._reactRootContainer,n!=null||t.onclick!==null||(t.onclick=Ea));else if(r!==4&&(r===27&&Wi(e.type)&&(n=e.stateNode,t=null),e=e.child,e!==null))for(Qb(e,t,n),e=e.sibling;e!==null;)Qb(e,t,n),e=e.sibling}function jp(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(r===27&&Wi(e.type)&&(n=e.stateNode),e=e.child,e!==null))for(jp(e,t,n),e=e.sibling;e!==null;)jp(e,t,n),e=e.sibling}function KM(e){var t=e.stateNode,n=e.memoizedProps;try{for(var r=e.type,a=t.attributes;a.length;)t.removeAttributeNode(a[0]);en(t,r,n),t[Wt]=e,t[Nn]=n}catch(i){Ie(e,e.return,i)}}var Aa=!1,Ot=!1,ig=!1,K2=typeof WeakSet=="function"?WeakSet:Set,Ut=null;function Qz(e,t){if(e=e.containerInfo,a0=Dp,e=DP(e),F1(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var a=r.anchorOffset,i=r.focusNode;r=r.focusOffset;try{n.nodeType,i.nodeType}catch{n=null;break e}var s=0,o=-1,l=-1,c=0,f=0,d=e,h=null;t:for(;;){for(var p;d!==n||a!==0&&d.nodeType!==3||(o=s+a),d!==i||r!==0&&d.nodeType!==3||(l=s+r),d.nodeType===3&&(s+=d.nodeValue.length),(p=d.firstChild)!==null;)h=d,d=p;for(;;){if(d===e)break t;if(h===n&&++c===a&&(o=s),h===i&&++f===r&&(l=s),(p=d.nextSibling)!==null)break;d=h,h=d.parentNode}d=p}n=o===-1||l===-1?null:{start:o,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(i0={focusedElem:e,selectionRange:n},Dp=!1,Ut=t;Ut!==null;)if(t=Ut,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,Ut=e;else for(;Ut!==null;){switch(t=Ut,i=t.alternate,e=t.flags,t.tag){case 0:if(e&4&&(e=t.updateQueue,e=e!==null?e.events:null,e!==null))for(n=0;n<e.length;n++)a=e[n],a.ref.impl=a.nextImpl;break;case 11:case 15:break;case 1:if(e&1024&&i!==null){e=void 0,n=t,a=i.memoizedProps,i=i.memoizedState,r=n.stateNode;try{var v=Qs(n.type,a);e=r.getSnapshotBeforeUpdate(v,i),r.__reactInternalSnapshotBeforeUpdate=e}catch(y){Ie(n,n.return,y)}}break;case 3:if(e&1024){if(e=t.stateNode.containerInfo,n=e.nodeType,n===9)o0(e);else if(n===1)switch(e.nodeName){case"HEAD":case"HTML":case"BODY":o0(e);break;default:e.textContent=""}}break;case 5:case 26:case 27:case 6:case 4:case 17:break;default:if(e&1024)throw Error(U(163))}if(e=t.sibling,e!==null){e.return=t.return,Ut=e;break}Ut=t.return}}function YM(e,t,n){var r=n.flags;switch(n.tag){case 0:case 11:case 15:ya(e,n),r&4&&md(5,n);break;case 1:if(ya(e,n),r&4)if(e=n.stateNode,t===null)try{e.componentDidMount()}catch(s){Ie(n,n.return,s)}else{var a=Qs(n.type,t.memoizedProps);t=t.memoizedState;try{e.componentDidUpdate(a,t,e.__reactInternalSnapshotBeforeUpdate)}catch(s){Ie(n,n.return,s)}}r&64&&VM(n),r&512&&Cu(n,n.return);break;case 3:if(ya(e,n),r&64&&(e=n.updateQueue,e!==null)){if(t=null,n.child!==null)switch(n.child.tag){case 27:case 5:t=n.child.stateNode;break;case 1:t=n.child.stateNode}try{ZP(e,t)}catch(s){Ie(n,n.return,s)}}break;case 27:t===null&&r&4&&KM(n);case 26:case 5:ya(e,n),t===null&&r&4&&FM(n),r&512&&Cu(n,n.return);break;case 12:ya(e,n);break;case 31:ya(e,n),r&4&&QM(e,n);break;case 13:ya(e,n),r&4&&ZM(e,n),r&64&&(e=n.memoizedState,e!==null&&(e=e.dehydrated,e!==null&&(n=s8.bind(null,n),E8(e,n))));break;case 22:if(r=n.memoizedState!==null||Aa,!r){t=t!==null&&t.memoizedState!==null||Ot,a=Aa;var i=Ot;Aa=r,(Ot=t)&&!i?ga(e,n,(n.subtreeFlags&8772)!==0):ya(e,n),Aa=a,Ot=i}break;case 30:break;default:ya(e,n)}}function XM(e){var t=e.alternate;t!==null&&(e.alternate=null,XM(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&B1(t)),e.stateNode=null,e.return=null,e.dependencies=null,e.memoizedProps=null,e.memoizedState=null,e.pendingProps=null,e.stateNode=null,e.updateQueue=null}var ot=null,wn=!1;function ma(e,t,n){for(n=n.child;n!==null;)WM(e,t,n),n=n.sibling}function WM(e,t,n){if(Hn&&typeof Hn.onCommitFiberUnmount=="function")try{Hn.onCommitFiberUnmount(ld,n)}catch{}switch(n.tag){case 26:Ot||Yr(n,t),ma(e,t,n),n.memoizedState?n.memoizedState.count--:n.stateNode&&(n=n.stateNode,n.parentNode.removeChild(n));break;case 27:Ot||Yr(n,t);var r=ot,a=wn;Wi(n.type)&&(ot=n.stateNode,wn=!1),ma(e,t,n),Du(n.stateNode),ot=r,wn=a;break;case 5:Ot||Yr(n,t);case 6:if(r=ot,a=wn,ot=null,ma(e,t,n),ot=r,wn=a,ot!==null)if(wn)try{(ot.nodeType===9?ot.body:ot.nodeName==="HTML"?ot.ownerDocument.body:ot).removeChild(n.stateNode)}catch(i){Ie(n,t,i)}else try{ot.removeChild(n.stateNode)}catch(i){Ie(n,t,i)}break;case 18:ot!==null&&(wn?(e=ot,sA(e.nodeType===9?e.body:e.nodeName==="HTML"?e.ownerDocument.body:e,n.stateNode),Ll(e)):sA(ot,n.stateNode));break;case 4:r=ot,a=wn,ot=n.stateNode.containerInfo,wn=!0,ma(e,t,n),ot=r,wn=a;break;case 0:case 11:case 14:case 15:Gi(2,n,t),Ot||Gi(4,n,t),ma(e,t,n);break;case 1:Ot||(Yr(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"&&HM(n,t,r)),ma(e,t,n);break;case 21:ma(e,t,n);break;case 22:Ot=(r=Ot)||n.memoizedState!==null,ma(e,t,n),Ot=r;break;default:ma(e,t,n)}}function QM(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null))){e=e.dehydrated;try{Ll(e)}catch(n){Ie(t,t.return,n)}}}function ZM(e,t){if(t.memoizedState===null&&(e=t.alternate,e!==null&&(e=e.memoizedState,e!==null&&(e=e.dehydrated,e!==null))))try{Ll(e)}catch(n){Ie(t,t.return,n)}}function Zz(e){switch(e.tag){case 31:case 13:case 19:var t=e.stateNode;return t===null&&(t=e.stateNode=new K2),t;case 22:return e=e.stateNode,t=e._retryCache,t===null&&(t=e._retryCache=new K2),t;default:throw Error(U(435,e.tag))}}function th(e,t){var n=Zz(e);t.forEach(function(r){if(!n.has(r)){n.add(r);var a=o8.bind(null,e,r);r.then(a,a)}})}function gn(e,t){var n=t.deletions;if(n!==null)for(var r=0;r<n.length;r++){var a=n[r],i=e,s=t,o=s;e:for(;o!==null;){switch(o.tag){case 27:if(Wi(o.type)){ot=o.stateNode,wn=!1;break e}break;case 5:ot=o.stateNode,wn=!1;break e;case 3:case 4:ot=o.stateNode.containerInfo,wn=!0;break e}o=o.return}if(ot===null)throw Error(U(160));WM(i,s,a),ot=null,wn=!1,i=a.alternate,i!==null&&(i.return=null),a.return=null}if(t.subtreeFlags&13886)for(t=t.child;t!==null;)JM(t,e),t=t.sibling}var _r=null;function JM(e,t){var n=e.alternate,r=e.flags;switch(e.tag){case 0:case 11:case 14:case 15:gn(t,e),bn(e),r&4&&(Gi(3,e,e.return),md(3,e),Gi(5,e,e.return));break;case 1:gn(t,e),bn(e),r&512&&(Ot||n===null||Yr(n,n.return)),r&64&&Aa&&(e=e.updateQueue,e!==null&&(r=e.callbacks,r!==null&&(n=e.shared.hiddenCallbacks,e.shared.hiddenCallbacks=n===null?r:n.concat(r))));break;case 26:var a=_r;if(gn(t,e),bn(e),r&512&&(Ot||n===null||Yr(n,n.return)),r&4){var i=n!==null?n.memoizedState:null;if(r=e.memoizedState,n===null)if(r===null)if(e.stateNode===null){e:{r=e.type,n=e.memoizedProps,a=a.ownerDocument||a;t:switch(r){case"title":i=a.getElementsByTagName("title")[0],(!i||i[fd]||i[Wt]||i.namespaceURI==="http://www.w3.org/2000/svg"||i.hasAttribute("itemprop"))&&(i=a.createElement(r),a.head.insertBefore(i,a.querySelector("head > title"))),en(i,r,n),i[Wt]=e,qt(i),r=i;break e;case"link":var s=hA("link","href",a).get(r+(n.href||""));if(s){for(var o=0;o<s.length;o++)if(i=s[o],i.getAttribute("href")===(n.href==null||n.href===""?null:n.href)&&i.getAttribute("rel")===(n.rel==null?null:n.rel)&&i.getAttribute("title")===(n.title==null?null:n.title)&&i.getAttribute("crossorigin")===(n.crossOrigin==null?null:n.crossOrigin)){s.splice(o,1);break t}}i=a.createElement(r),en(i,r,n),a.head.appendChild(i);break;case"meta":if(s=hA("meta","content",a).get(r+(n.content||""))){for(o=0;o<s.length;o++)if(i=s[o],i.getAttribute("content")===(n.content==null?null:""+n.content)&&i.getAttribute("name")===(n.name==null?null:n.name)&&i.getAttribute("property")===(n.property==null?null:n.property)&&i.getAttribute("http-equiv")===(n.httpEquiv==null?null:n.httpEquiv)&&i.getAttribute("charset")===(n.charSet==null?null:n.charSet)){s.splice(o,1);break t}}i=a.createElement(r),en(i,r,n),a.head.appendChild(i);break;default:throw Error(U(468,r))}i[Wt]=e,qt(i),r=i}e.stateNode=r}else pA(a,e.type,e.stateNode);else e.stateNode=dA(a,r,e.memoizedProps);else i!==r?(i===null?n.stateNode!==null&&(n=n.stateNode,n.parentNode.removeChild(n)):i.count--,r===null?pA(a,e.type,e.stateNode):dA(a,r,e.memoizedProps)):r===null&&e.stateNode!==null&&rg(e,e.memoizedProps,n.memoizedProps)}break;case 27:gn(t,e),bn(e),r&512&&(Ot||n===null||Yr(n,n.return)),n!==null&&r&4&&rg(e,e.memoizedProps,n.memoizedProps);break;case 5:if(gn(t,e),bn(e),r&512&&(Ot||n===null||Yr(n,n.return)),e.flags&32){a=e.stateNode;try{_l(a,"")}catch(v){Ie(e,e.return,v)}}r&4&&e.stateNode!=null&&(a=e.memoizedProps,rg(e,a,n!==null?n.memoizedProps:a)),r&1024&&(ig=!0);break;case 6:if(gn(t,e),bn(e),r&4){if(e.stateNode===null)throw Error(U(162));r=e.memoizedProps,n=e.stateNode;try{n.nodeValue=r}catch(v){Ie(e,e.return,v)}}break;case 3:if(Gh=null,a=_r,_r=Pp(t.containerInfo),gn(t,e),_r=a,bn(e),r&4&&n!==null&&n.memoizedState.isDehydrated)try{Ll(t.containerInfo)}catch(v){Ie(e,e.return,v)}ig&&(ig=!1,eR(e));break;case 4:r=_r,_r=Pp(e.stateNode.containerInfo),gn(t,e),bn(e),_r=r;break;case 12:gn(t,e),bn(e);break;case 31:gn(t,e),bn(e),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,th(e,r)));break;case 13:gn(t,e),bn(e),e.child.flags&8192&&e.memoizedState!==null!=(n!==null&&n.memoizedState!==null)&&(yy=Vn()),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,th(e,r)));break;case 22:a=e.memoizedState!==null;var l=n!==null&&n.memoizedState!==null,c=Aa,f=Ot;if(Aa=c||a,Ot=f||l,gn(t,e),Ot=f,Aa=c,bn(e),r&8192)e:for(t=e.stateNode,t._visibility=a?t._visibility&-2:t._visibility|1,a&&(n===null||l||Aa||Ot||ds(e)),n=null,t=e;;){if(t.tag===5||t.tag===26){if(n===null){l=n=t;try{if(i=l.stateNode,a)s=i.style,typeof s.setProperty=="function"?s.setProperty("display","none","important"):s.display="none";else{o=l.stateNode;var d=l.memoizedProps.style,h=d!=null&&d.hasOwnProperty("display")?d.display:null;o.style.display=h==null||typeof h=="boolean"?"":(""+h).trim()}}catch(v){Ie(l,l.return,v)}}}else if(t.tag===6){if(n===null){l=t;try{l.stateNode.nodeValue=a?"":l.memoizedProps}catch(v){Ie(l,l.return,v)}}}else if(t.tag===18){if(n===null){l=t;try{var p=l.stateNode;a?oA(p,!0):oA(l.stateNode,!1)}catch(v){Ie(l,l.return,v)}}}else if((t.tag!==22&&t.tag!==23||t.memoizedState===null||t===e)&&t.child!==null){t.child.return=t,t=t.child;continue}if(t===e)break e;for(;t.sibling===null;){if(t.return===null||t.return===e)break e;n===t&&(n=null),t=t.return}n===t&&(n=null),t.sibling.return=t.return,t=t.sibling}r&4&&(r=e.updateQueue,r!==null&&(n=r.retryQueue,n!==null&&(r.retryQueue=null,th(e,n))));break;case 19:gn(t,e),bn(e),r&4&&(r=e.updateQueue,r!==null&&(e.updateQueue=null,th(e,r)));break;case 30:break;case 21:break;default:gn(t,e),bn(e)}}function bn(e){var t=e.flags;if(t&2){try{for(var n,r=e.return;r!==null;){if(GM(r)){n=r;break}r=r.return}if(n==null)throw Error(U(160));switch(n.tag){case 27:var a=n.stateNode,i=ag(e);jp(e,i,a);break;case 5:var s=n.stateNode;n.flags&32&&(_l(s,""),n.flags&=-33);var o=ag(e);jp(e,o,s);break;case 3:case 4:var l=n.stateNode.containerInfo,c=ag(e);Qb(e,c,l);break;default:throw Error(U(161))}}catch(f){Ie(e,e.return,f)}e.flags&=-3}t&4096&&(e.flags&=-4097)}function eR(e){if(e.subtreeFlags&1024)for(e=e.child;e!==null;){var t=e;eR(t),t.tag===5&&t.flags&1024&&t.stateNode.reset(),e=e.sibling}}function ya(e,t){if(t.subtreeFlags&8772)for(t=t.child;t!==null;)YM(e,t.alternate,t),t=t.sibling}function ds(e){for(e=e.child;e!==null;){var t=e;switch(t.tag){case 0:case 11:case 14:case 15:Gi(4,t,t.return),ds(t);break;case 1:Yr(t,t.return);var n=t.stateNode;typeof n.componentWillUnmount=="function"&&HM(t,t.return,n),ds(t);break;case 27:Du(t.stateNode);case 26:case 5:Yr(t,t.return),ds(t);break;case 22:t.memoizedState===null&&ds(t);break;case 30:ds(t);break;default:ds(t)}e=e.sibling}}function ga(e,t,n){for(n=n&&(t.subtreeFlags&8772)!==0,t=t.child;t!==null;){var r=t.alternate,a=e,i=t,s=i.flags;switch(i.tag){case 0:case 11:case 15:ga(a,i,n),md(4,i);break;case 1:if(ga(a,i,n),r=i,a=r.stateNode,typeof a.componentDidMount=="function")try{a.componentDidMount()}catch(c){Ie(r,r.return,c)}if(r=i,a=r.updateQueue,a!==null){var o=r.stateNode;try{var l=a.shared.hiddenCallbacks;if(l!==null)for(a.shared.hiddenCallbacks=null,a=0;a<l.length;a++)QP(l[a],o)}catch(c){Ie(r,r.return,c)}}n&&s&64&&VM(i),Cu(i,i.return);break;case 27:KM(i);case 26:case 5:ga(a,i,n),n&&r===null&&s&4&&FM(i),Cu(i,i.return);break;case 12:ga(a,i,n);break;case 31:ga(a,i,n),n&&s&4&&QM(a,i);break;case 13:ga(a,i,n),n&&s&4&&ZM(a,i);break;case 22:i.memoizedState===null&&ga(a,i,n),Cu(i,i.return);break;case 30:break;default:ga(a,i,n)}t=t.sibling}}function vS(e,t){var n=null;e!==null&&e.memoizedState!==null&&e.memoizedState.cachePool!==null&&(n=e.memoizedState.cachePool.pool),e=null,t.memoizedState!==null&&t.memoizedState.cachePool!==null&&(e=t.memoizedState.cachePool.pool),e!==n&&(e!=null&&e.refCount++,n!=null&&hd(n))}function gS(e,t){e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&hd(e))}function Or(e,t,n,r){if(t.subtreeFlags&10256)for(t=t.child;t!==null;)tR(e,t,n,r),t=t.sibling}function tR(e,t,n,r){var a=t.flags;switch(t.tag){case 0:case 11:case 15:Or(e,t,n,r),a&2048&&md(9,t);break;case 1:Or(e,t,n,r);break;case 3:Or(e,t,n,r),a&2048&&(e=null,t.alternate!==null&&(e=t.alternate.memoizedState.cache),t=t.memoizedState.cache,t!==e&&(t.refCount++,e!=null&&hd(e)));break;case 12:if(a&2048){Or(e,t,n,r),e=t.stateNode;try{var i=t.memoizedProps,s=i.id,o=i.onPostCommit;typeof o=="function"&&o(s,t.alternate===null?"mount":"update",e.passiveEffectDuration,-0)}catch(l){Ie(t,t.return,l)}}else Or(e,t,n,r);break;case 31:Or(e,t,n,r);break;case 13:Or(e,t,n,r);break;case 23:break;case 22:i=t.stateNode,s=t.alternate,t.memoizedState!==null?i._visibility&2?Or(e,t,n,r):Pu(e,t):i._visibility&2?Or(e,t,n,r):(i._visibility|=2,Ro(e,t,n,r,(t.subtreeFlags&10256)!==0||!1)),a&2048&&vS(s,t);break;case 24:Or(e,t,n,r),a&2048&&gS(t.alternate,t);break;default:Or(e,t,n,r)}}function Ro(e,t,n,r,a){for(a=a&&((t.subtreeFlags&10256)!==0||!1),t=t.child;t!==null;){var i=e,s=t,o=n,l=r,c=s.flags;switch(s.tag){case 0:case 11:case 15:Ro(i,s,o,l,a),md(8,s);break;case 23:break;case 22:var f=s.stateNode;s.memoizedState!==null?f._visibility&2?Ro(i,s,o,l,a):Pu(i,s):(f._visibility|=2,Ro(i,s,o,l,a)),a&&c&2048&&vS(s.alternate,s);break;case 24:Ro(i,s,o,l,a),a&&c&2048&&gS(s.alternate,s);break;default:Ro(i,s,o,l,a)}t=t.sibling}}function Pu(e,t){if(t.subtreeFlags&10256)for(t=t.child;t!==null;){var n=e,r=t,a=r.flags;switch(r.tag){case 22:Pu(n,r),a&2048&&vS(r.alternate,r);break;case 24:Pu(n,r),a&2048&&gS(r.alternate,r);break;default:Pu(n,r)}t=t.sibling}}var mu=8192;function Oo(e,t,n){if(e.subtreeFlags&mu)for(e=e.child;e!==null;)nR(e,t,n),e=e.sibling}function nR(e,t,n){switch(e.tag){case 26:Oo(e,t,n),e.flags&mu&&e.memoizedState!==null&&z8(n,_r,e.memoizedState,e.memoizedProps);break;case 5:Oo(e,t,n);break;case 3:case 4:var r=_r;_r=Pp(e.stateNode.containerInfo),Oo(e,t,n),_r=r;break;case 22:e.memoizedState===null&&(r=e.alternate,r!==null&&r.memoizedState!==null?(r=mu,mu=16777216,Oo(e,t,n),mu=r):Oo(e,t,n));break;default:Oo(e,t,n)}}function rR(e){var t=e.alternate;if(t!==null&&(e=t.child,e!==null)){t.child=null;do t=e.sibling,e.sibling=null,e=t;while(e!==null)}}function Yc(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n];Ut=r,iR(r,e)}rR(e)}if(e.subtreeFlags&10256)for(e=e.child;e!==null;)aR(e),e=e.sibling}function aR(e){switch(e.tag){case 0:case 11:case 15:Yc(e),e.flags&2048&&Gi(9,e,e.return);break;case 3:Yc(e);break;case 12:Yc(e);break;case 22:var t=e.stateNode;e.memoizedState!==null&&t._visibility&2&&(e.return===null||e.return.tag!==13)?(t._visibility&=-3,Hh(e)):Yc(e);break;default:Yc(e)}}function Hh(e){var t=e.deletions;if(e.flags&16){if(t!==null)for(var n=0;n<t.length;n++){var r=t[n];Ut=r,iR(r,e)}rR(e)}for(e=e.child;e!==null;){switch(t=e,t.tag){case 0:case 11:case 15:Gi(8,t,t.return),Hh(t);break;case 22:n=t.stateNode,n._visibility&2&&(n._visibility&=-3,Hh(t));break;default:Hh(t)}e=e.sibling}}function iR(e,t){for(;Ut!==null;){var n=Ut;switch(n.tag){case 0:case 11:case 15:Gi(8,n,t);break;case 23:case 22:if(n.memoizedState!==null&&n.memoizedState.cachePool!==null){var r=n.memoizedState.cachePool.pool;r!=null&&r.refCount++}break;case 24:hd(n.memoizedState.cache)}if(r=n.child,r!==null)r.return=n,Ut=r;else e:for(n=e;Ut!==null;){r=Ut;var a=r.sibling,i=r.return;if(XM(r),r===n){Ut=null;break e}if(a!==null){a.return=i,Ut=a;break e}Ut=i}}}var Jz={getCacheForType:function(e){var t=Jt(Et),n=t.data.get(e);return n===void 0&&(n=e(),t.data.set(e,n)),n},cacheSignal:function(){return Jt(Et).controller.signal}},e8=typeof WeakMap=="function"?WeakMap:Map,Me=0,Ke=null,we=null,Ee=0,Be=0,Dn=null,Ei=!1,xc=!1,bS=!1,Ha=0,vt=0,Ki=0,Us=0,xS=0,qn=0,Rl=0,Mu=null,jn=null,Zb=!1,yy=0,sR=0,Ap=1/0,Op=null,$i=null,Mt=0,ki=null,Dl=null,Da=0,Jb=0,e0=null,oR=null,Ru=0,t0=null;function Gn(){return Me&2&&Ee!==0?Ee&-Ee:he.T!==null?wS():yP()}function lR(){if(qn===0)if(!(Ee&536870912)||Ne){var e=Kd;Kd<<=1,!(Kd&3932160)&&(Kd=262144),qn=e}else qn=536870912;return e=Wn.current,e!==null&&(e.flags|=32),qn}function En(e,t,n){(e===Ke&&(Be===2||Be===9)||e.cancelPendingCommit!==null)&&($l(e,0),Ti(e,Ee,qn,!1)),ud(e,n),(!(Me&2)||e!==Ke)&&(e===Ke&&(!(Me&2)&&(Us|=n),vt===4&&Ti(e,Ee,qn,!1)),la(e))}function cR(e,t,n){if(Me&6)throw Error(U(327));var r=!n&&(t&127)===0&&(t&e.expiredLanes)===0||cd(e,t),a=r?r8(e,t):sg(e,t,!0),i=r;do{if(a===0){xc&&!r&&Ti(e,t,0,!1);break}else{if(n=e.current.alternate,i&&!t8(n)){a=sg(e,t,!1),i=!1;continue}if(a===2){if(i=t,e.errorRecoveryDisabledLanes&i)var s=0;else s=e.pendingLanes&-536870913,s=s!==0?s:s&536870912?536870912:0;if(s!==0){t=s;e:{var o=e;a=Mu;var l=o.current.memoizedState.isDehydrated;if(l&&($l(o,s).flags|=256),s=sg(o,s,!1),s!==2){if(bS&&!l){o.errorRecoveryDisabledLanes|=i,Us|=i,a=4;break e}i=jn,jn=a,i!==null&&(jn===null?jn=i:jn.push.apply(jn,i))}a=s}if(i=!1,a!==2)continue}}if(a===1){$l(e,0),Ti(e,t,0,!0);break}e:{switch(r=e,i=a,i){case 0:case 1:throw Error(U(345));case 4:if((t&4194048)!==t)break;case 6:Ti(r,t,qn,!Ei);break e;case 2:jn=null;break;case 3:case 5:break;default:throw Error(U(329))}if((t&62914560)===t&&(a=yy+300-Vn(),10<a)){if(Ti(r,t,qn,!Ei),iy(r,0,!0)!==0)break e;Da=t,r.timeoutHandle=_R(Y2.bind(null,r,n,jn,Op,Zb,t,qn,Us,Rl,Ei,i,"Throttled",-0,0),a);break e}Y2(r,n,jn,Op,Zb,t,qn,Us,Rl,Ei,i,null,-0,0)}}break}while(!0);la(e)}function Y2(e,t,n,r,a,i,s,o,l,c,f,d,h,p){if(e.timeoutHandle=-1,d=t.subtreeFlags,d&8192||(d&16785408)===16785408){d={stylesheets:null,count:0,imgCount:0,imgBytes:0,suspenseyImages:[],waitingForImages:!0,waitingForViewTransition:!1,unsuspend:Ea},nR(t,i,d);var v=(i&62914560)===i?yy-Vn():(i&4194048)===i?sR-Vn():0;if(v=B8(d,v),v!==null){Da=i,e.cancelPendingCommit=v(W2.bind(null,e,t,i,n,r,a,s,o,l,f,d,null,h,p)),Ti(e,i,s,!c);return}}W2(e,t,i,n,r,a,s,o,l)}function t8(e){for(var t=e;;){var n=t.tag;if((n===0||n===11||n===15)&&t.flags&16384&&(n=t.updateQueue,n!==null&&(n=n.stores,n!==null)))for(var r=0;r<n.length;r++){var a=n[r],i=a.getSnapshot;a=a.value;try{if(!Xn(i(),a))return!1}catch{return!1}}if(n=t.child,t.subtreeFlags&16384&&n!==null)n.return=t,t=n;else{if(t===e)break;for(;t.sibling===null;){if(t.return===null||t.return===e)return!0;t=t.return}t.sibling.return=t.return,t=t.sibling}}return!0}function Ti(e,t,n,r){t&=~xS,t&=~Us,e.suspendedLanes|=t,e.pingedLanes&=~t,r&&(e.warmLanes|=t),r=e.expirationTimes;for(var a=t;0<a;){var i=31-Fn(a),s=1<<i;r[i]=-1,a&=~s}n!==0&&hP(e,n,t)}function vy(){return Me&6?!0:(yd(0),!1)}function SS(){if(we!==null){if(Be===0)var e=we.return;else e=we,Ta=ho=null,sS(e),ol=null,ef=0,e=we;for(;e!==null;)qM(e.alternate,e),e=e.return;we=null}}function $l(e,t){var n=e.timeoutHandle;n!==-1&&(e.timeoutHandle=-1,S8(n)),n=e.cancelPendingCommit,n!==null&&(e.cancelPendingCommit=null,n()),Da=0,SS(),Ke=e,we=n=Ma(e.current,null),Ee=t,Be=0,Dn=null,Ei=!1,xc=cd(e,t),bS=!1,Rl=qn=xS=Us=Ki=vt=0,jn=Mu=null,Zb=!1,t&8&&(t|=t&32);var r=e.entangledLanes;if(r!==0)for(e=e.entanglements,r&=t;0<r;){var a=31-Fn(r),i=1<<a;t|=e[a],r&=~i}return Ha=t,cy(),n}function uR(e,t){ge=null,he.H=nf,t===bc||t===fy?(t=E2(),Be=3):t===J1?(t=E2(),Be=4):Be=t===mS?8:t!==null&&typeof t=="object"&&typeof t.then=="function"?6:1,Dn=t,we===null&&(vt=1,Sp(e,ur(t,e.current)))}function fR(){var e=Wn.current;return e===null?!0:(Ee&4194048)===Ee?pr===null:(Ee&62914560)===Ee||Ee&536870912?e===pr:!1}function dR(){var e=he.H;return he.H=nf,e===null?nf:e}function hR(){var e=he.A;return he.A=Jz,e}function Ep(){vt=4,Ei||(Ee&4194048)!==Ee&&Wn.current!==null||(xc=!0),!(Ki&134217727)&&!(Us&134217727)||Ke===null||Ti(Ke,Ee,qn,!1)}function sg(e,t,n){var r=Me;Me|=2;var a=dR(),i=hR();(Ke!==e||Ee!==t)&&(Op=null,$l(e,t)),t=!1;var s=vt;e:do try{if(Be!==0&&we!==null){var o=we,l=Dn;switch(Be){case 8:SS(),s=6;break e;case 3:case 2:case 9:case 6:Wn.current===null&&(t=!0);var c=Be;if(Be=0,Dn=null,Go(e,o,l,c),n&&xc){s=0;break e}break;default:c=Be,Be=0,Dn=null,Go(e,o,l,c)}}n8(),s=vt;break}catch(f){uR(e,f)}while(!0);return t&&e.shellSuspendCounter++,Ta=ho=null,Me=r,he.H=a,he.A=i,we===null&&(Ke=null,Ee=0,cy()),s}function n8(){for(;we!==null;)pR(we)}function r8(e,t){var n=Me;Me|=2;var r=dR(),a=hR();Ke!==e||Ee!==t?(Op=null,Ap=Vn()+500,$l(e,t)):xc=cd(e,t);e:do try{if(Be!==0&&we!==null){t=we;var i=Dn;t:switch(Be){case 1:Be=0,Dn=null,Go(e,t,i,1);break;case 2:case 9:if(O2(i)){Be=0,Dn=null,X2(t);break}t=function(){Be!==2&&Be!==9||Ke!==e||(Be=7),la(e)},i.then(t,t);break e;case 3:Be=7;break e;case 4:Be=5;break e;case 7:O2(i)?(Be=0,Dn=null,X2(t)):(Be=0,Dn=null,Go(e,t,i,7));break;case 5:var s=null;switch(we.tag){case 26:s=we.memoizedState;case 5:case 27:var o=we;if(s?DR(s):o.stateNode.complete){Be=0,Dn=null;var l=o.sibling;if(l!==null)we=l;else{var c=o.return;c!==null?(we=c,gy(c)):we=null}break t}}Be=0,Dn=null,Go(e,t,i,5);break;case 6:Be=0,Dn=null,Go(e,t,i,6);break;case 8:SS(),vt=6;break e;default:throw Error(U(462))}}a8();break}catch(f){uR(e,f)}while(!0);return Ta=ho=null,he.H=r,he.A=a,Me=n,we!==null?0:(Ke=null,Ee=0,cy(),vt)}function a8(){for(;we!==null&&!T6();)pR(we)}function pR(e){var t=UM(e.alternate,e,Ha);e.memoizedProps=e.pendingProps,t===null?gy(e):we=t}function X2(e){var t=e,n=t.alternate;switch(t.tag){case 15:case 0:t=q2(n,t,t.pendingProps,t.type,void 0,Ee);break;case 11:t=q2(n,t,t.pendingProps,t.type.render,t.ref,Ee);break;case 5:sS(t);default:qM(n,t),t=we=qP(t,Ha),t=UM(n,t,Ha)}e.memoizedProps=e.pendingProps,t===null?gy(e):we=t}function Go(e,t,n,r){Ta=ho=null,sS(t),ol=null,ef=0;var a=t.return;try{if(Gz(e,a,t,n,Ee)){vt=1,Sp(e,ur(n,e.current)),we=null;return}}catch(i){if(a!==null)throw we=a,i;vt=1,Sp(e,ur(n,e.current)),we=null;return}t.flags&32768?(Ne||r===1?e=!0:xc||Ee&536870912?e=!1:(Ei=e=!0,(r===2||r===9||r===3||r===6)&&(r=Wn.current,r!==null&&r.tag===13&&(r.flags|=16384))),mR(t,e)):gy(t)}function gy(e){var t=e;do{if(t.flags&32768){mR(t,Ei);return}e=t.return;var n=Xz(t.alternate,t,Ha);if(n!==null){we=n;return}if(t=t.sibling,t!==null){we=t;return}we=t=e}while(t!==null);vt===0&&(vt=5)}function mR(e,t){do{var n=Wz(e.alternate,e);if(n!==null){n.flags&=32767,we=n;return}if(n=e.return,n!==null&&(n.flags|=32768,n.subtreeFlags=0,n.deletions=null),!t&&(e=e.sibling,e!==null)){we=e;return}we=e=n}while(e!==null);vt=6,we=null}function W2(e,t,n,r,a,i,s,o,l){e.cancelPendingCommit=null;do by();while(Mt!==0);if(Me&6)throw Error(U(327));if(t!==null){if(t===e.current)throw Error(U(177));if(i=t.lanes|t.childLanes,i|=G1,L6(e,n,i,s,o,l),e===Ke&&(we=Ke=null,Ee=0),Dl=t,ki=e,Da=n,Jb=i,e0=a,oR=r,t.subtreeFlags&10256||t.flags&10256?(e.callbackNode=null,e.callbackPriority=0,l8(up,function(){return xR(),null})):(e.callbackNode=null,e.callbackPriority=0),r=(t.flags&13878)!==0,t.subtreeFlags&13878||r){r=he.T,he.T=null,a=De.p,De.p=2,s=Me,Me|=4;try{Qz(e,t,n)}finally{Me=s,De.p=a,he.T=r}}Mt=1,yR(),vR(),gR()}}function yR(){if(Mt===1){Mt=0;var e=ki,t=Dl,n=(t.flags&13878)!==0;if(t.subtreeFlags&13878||n){n=he.T,he.T=null;var r=De.p;De.p=2;var a=Me;Me|=4;try{JM(t,e);var i=i0,s=DP(e.containerInfo),o=i.focusedElem,l=i.selectionRange;if(s!==o&&o&&o.ownerDocument&&RP(o.ownerDocument.documentElement,o)){if(l!==null&&F1(o)){var c=l.start,f=l.end;if(f===void 0&&(f=c),"selectionStart"in o)o.selectionStart=c,o.selectionEnd=Math.min(f,o.value.length);else{var d=o.ownerDocument||document,h=d&&d.defaultView||window;if(h.getSelection){var p=h.getSelection(),v=o.textContent.length,y=Math.min(l.start,v),b=l.end===void 0?y:Math.min(l.end,v);!p.extend&&y>b&&(s=b,b=y,y=s);var m=g2(o,y),g=g2(o,b);if(m&&g&&(p.rangeCount!==1||p.anchorNode!==m.node||p.anchorOffset!==m.offset||p.focusNode!==g.node||p.focusOffset!==g.offset)){var x=d.createRange();x.setStart(m.node,m.offset),p.removeAllRanges(),y>b?(p.addRange(x),p.extend(g.node,g.offset)):(x.setEnd(g.node,g.offset),p.addRange(x))}}}}for(d=[],p=o;p=p.parentNode;)p.nodeType===1&&d.push({element:p,left:p.scrollLeft,top:p.scrollTop});for(typeof o.focus=="function"&&o.focus(),o=0;o<d.length;o++){var w=d[o];w.element.scrollLeft=w.left,w.element.scrollTop=w.top}}Dp=!!a0,i0=a0=null}finally{Me=a,De.p=r,he.T=n}}e.current=t,Mt=2}}function vR(){if(Mt===2){Mt=0;var e=ki,t=Dl,n=(t.flags&8772)!==0;if(t.subtreeFlags&8772||n){n=he.T,he.T=null;var r=De.p;De.p=2;var a=Me;Me|=4;try{YM(e,t.alternate,t)}finally{Me=a,De.p=r,he.T=n}}Mt=3}}function gR(){if(Mt===4||Mt===3){Mt=0,N6();var e=ki,t=Dl,n=Da,r=oR;t.subtreeFlags&10256||t.flags&10256?Mt=5:(Mt=0,Dl=ki=null,bR(e,e.pendingLanes));var a=e.pendingLanes;if(a===0&&($i=null),z1(n),t=t.stateNode,Hn&&typeof Hn.onCommitFiberRoot=="function")try{Hn.onCommitFiberRoot(ld,t,void 0,(t.current.flags&128)===128)}catch{}if(r!==null){t=he.T,a=De.p,De.p=2,he.T=null;try{for(var i=e.onRecoverableError,s=0;s<r.length;s++){var o=r[s];i(o.value,{componentStack:o.stack})}}finally{he.T=t,De.p=a}}Da&3&&by(),la(e),a=e.pendingLanes,n&261930&&a&42?e===t0?Ru++:(Ru=0,t0=e):Ru=0,yd(0)}}function bR(e,t){(e.pooledCacheLanes&=t)===0&&(t=e.pooledCache,t!=null&&(e.pooledCache=null,hd(t)))}function by(){return yR(),vR(),gR(),xR()}function xR(){if(Mt!==5)return!1;var e=ki,t=Jb;Jb=0;var n=z1(Da),r=he.T,a=De.p;try{De.p=32>n?32:n,he.T=null,n=e0,e0=null;var i=ki,s=Da;if(Mt=0,Dl=ki=null,Da=0,Me&6)throw Error(U(331));var o=Me;if(Me|=4,aR(i.current),tR(i,i.current,s,n),Me=o,yd(0,!1),Hn&&typeof Hn.onPostCommitFiberRoot=="function")try{Hn.onPostCommitFiberRoot(ld,i)}catch{}return!0}finally{De.p=a,he.T=r,bR(e,t)}}function Q2(e,t,n){t=ur(n,t),t=Yb(e.stateNode,t,2),e=Di(e,t,2),e!==null&&(ud(e,2),la(e))}function Ie(e,t,n){if(e.tag===3)Q2(e,e,n);else for(;t!==null;){if(t.tag===3){Q2(t,e,n);break}else if(t.tag===1){var r=t.stateNode;if(typeof t.type.getDerivedStateFromError=="function"||typeof r.componentDidCatch=="function"&&($i===null||!$i.has(r))){e=ur(n,e),n=$M(2),r=Di(t,n,2),r!==null&&(kM(n,r,t,e),ud(r,2),la(r));break}}t=t.return}}function og(e,t,n){var r=e.pingCache;if(r===null){r=e.pingCache=new e8;var a=new Set;r.set(t,a)}else a=r.get(t),a===void 0&&(a=new Set,r.set(t,a));a.has(n)||(bS=!0,a.add(n),e=i8.bind(null,e,t,n),t.then(e,e))}function i8(e,t,n){var r=e.pingCache;r!==null&&r.delete(t),e.pingedLanes|=e.suspendedLanes&n,e.warmLanes&=~n,Ke===e&&(Ee&n)===n&&(vt===4||vt===3&&(Ee&62914560)===Ee&&300>Vn()-yy?!(Me&2)&&$l(e,0):xS|=n,Rl===Ee&&(Rl=0)),la(e)}function SR(e,t){t===0&&(t=dP()),e=fo(e,t),e!==null&&(ud(e,t),la(e))}function s8(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),SR(e,n)}function o8(e,t){var n=0;switch(e.tag){case 31:case 13:var r=e.stateNode,a=e.memoizedState;a!==null&&(n=a.retryLane);break;case 19:r=e.stateNode;break;case 22:r=e.stateNode._retryCache;break;default:throw Error(U(314))}r!==null&&r.delete(t),SR(e,n)}function l8(e,t){return k1(e,t)}var Tp=null,Do=null,n0=!1,Np=!1,lg=!1,Ni=0;function la(e){e!==Do&&e.next===null&&(Do===null?Tp=Do=e:Do=Do.next=e),Np=!0,n0||(n0=!0,u8())}function yd(e,t){if(!lg&&Np){lg=!0;do for(var n=!1,r=Tp;r!==null;){if(e!==0){var a=r.pendingLanes;if(a===0)var i=0;else{var s=r.suspendedLanes,o=r.pingedLanes;i=(1<<31-Fn(42|e)+1)-1,i&=a&~(s&~o),i=i&201326741?i&201326741|1:i?i|2:0}i!==0&&(n=!0,Z2(r,i))}else i=Ee,i=iy(r,r===Ke?i:0,r.cancelPendingCommit!==null||r.timeoutHandle!==-1),!(i&3)||cd(r,i)||(n=!0,Z2(r,i));r=r.next}while(n);lg=!1}}function c8(){wR()}function wR(){Np=n0=!1;var e=0;Ni!==0&&x8()&&(e=Ni);for(var t=Vn(),n=null,r=Tp;r!==null;){var a=r.next,i=jR(r,t);i===0?(r.next=null,n===null?Tp=a:n.next=a,a===null&&(Do=n)):(n=r,(e!==0||i&3)&&(Np=!0)),r=a}Mt!==0&&Mt!==5||yd(e),Ni!==0&&(Ni=0)}function jR(e,t){for(var n=e.suspendedLanes,r=e.pingedLanes,a=e.expirationTimes,i=e.pendingLanes&-62914561;0<i;){var s=31-Fn(i),o=1<<s,l=a[s];l===-1?(!(o&n)||o&r)&&(a[s]=k6(o,t)):l<=t&&(e.expiredLanes|=o),i&=~o}if(t=Ke,n=Ee,n=iy(e,e===t?n:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r=e.callbackNode,n===0||e===t&&(Be===2||Be===9)||e.cancelPendingCommit!==null)return r!==null&&r!==null&&kv(r),e.callbackNode=null,e.callbackPriority=0;if(!(n&3)||cd(e,n)){if(t=n&-n,t===e.callbackPriority)return t;switch(r!==null&&kv(r),z1(n)){case 2:case 8:n=uP;break;case 32:n=up;break;case 268435456:n=fP;break;default:n=up}return r=AR.bind(null,e),n=k1(n,r),e.callbackPriority=t,e.callbackNode=n,t}return r!==null&&r!==null&&kv(r),e.callbackPriority=2,e.callbackNode=null,2}function AR(e,t){if(Mt!==0&&Mt!==5)return e.callbackNode=null,e.callbackPriority=0,null;var n=e.callbackNode;if(by()&&e.callbackNode!==n)return null;var r=Ee;return r=iy(e,e===Ke?r:0,e.cancelPendingCommit!==null||e.timeoutHandle!==-1),r===0?null:(cR(e,r,t),jR(e,Vn()),e.callbackNode!=null&&e.callbackNode===n?AR.bind(null,e):null)}function Z2(e,t){if(by())return null;cR(e,t,!0)}function u8(){w8(function(){Me&6?k1(cP,c8):wR()})}function wS(){if(Ni===0){var e=Cl;e===0&&(e=Gd,Gd<<=1,!(Gd&261888)&&(Gd=256)),Ni=e}return Ni}function J2(e){return e==null||typeof e=="symbol"||typeof e=="boolean"?null:typeof e=="function"?e:$h(""+e)}function eA(e,t){var n=t.ownerDocument.createElement("input");return n.name=t.name,n.value=t.value,e.id&&n.setAttribute("form",e.id),t.parentNode.insertBefore(n,t),e=new FormData(e),n.parentNode.removeChild(n),e}function f8(e,t,n,r,a){if(t==="submit"&&n&&n.stateNode===a){var i=J2((a[Nn]||null).action),s=r.submitter;s&&(t=(t=s[Nn]||null)?J2(t.formAction):s.getAttribute("formAction"),t!==null&&(i=t,s=null));var o=new sy("action","action",null,r,a);e.push({event:o,listeners:[{instance:null,listener:function(){if(r.defaultPrevented){if(Ni!==0){var l=s?eA(a,s):new FormData(a);Gb(n,{pending:!0,data:l,method:a.method,action:i},null,l)}}else typeof i=="function"&&(o.preventDefault(),l=s?eA(a,s):new FormData(a),Gb(n,{pending:!0,data:l,method:a.method,action:i},i,l))},currentTarget:a}]})}}for(var cg=0;cg<Db.length;cg++){var ug=Db[cg],d8=ug.toLowerCase(),h8=ug[0].toUpperCase()+ug.slice(1);Lr(d8,"on"+h8)}Lr(kP,"onAnimationEnd");Lr(LP,"onAnimationIteration");Lr(zP,"onAnimationStart");Lr("dblclick","onDoubleClick");Lr("focusin","onFocus");Lr("focusout","onBlur");Lr(_z,"onTransitionRun");Lr(Cz,"onTransitionStart");Lr(Pz,"onTransitionCancel");Lr(BP,"onTransitionEnd");Nl("onMouseEnter",["mouseout","mouseover"]);Nl("onMouseLeave",["mouseout","mouseover"]);Nl("onPointerEnter",["pointerout","pointerover"]);Nl("onPointerLeave",["pointerout","pointerover"]);lo("onChange","change click focusin focusout input keydown keyup selectionchange".split(" "));lo("onSelect","focusout contextmenu dragend focusin keydown keyup mousedown mouseup selectionchange".split(" "));lo("onBeforeInput",["compositionend","keypress","textInput","paste"]);lo("onCompositionEnd","compositionend focusout keydown keypress keyup mousedown".split(" "));lo("onCompositionStart","compositionstart focusout keydown keypress keyup mousedown".split(" "));lo("onCompositionUpdate","compositionupdate focusout keydown keypress keyup mousedown".split(" "));var rf="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(" "),p8=new Set("beforetoggle cancel close invalid load scroll scrollend toggle".split(" ").concat(rf));function OR(e,t){t=(t&4)!==0;for(var n=0;n<e.length;n++){var r=e[n],a=r.event;r=r.listeners;e:{var i=void 0;if(t)for(var s=r.length-1;0<=s;s--){var o=r[s],l=o.instance,c=o.currentTarget;if(o=o.listener,l!==i&&a.isPropagationStopped())break e;i=o,a.currentTarget=c;try{i(a)}catch(f){dp(f)}a.currentTarget=null,i=l}else for(s=0;s<r.length;s++){if(o=r[s],l=o.instance,c=o.currentTarget,o=o.listener,l!==i&&a.isPropagationStopped())break e;i=o,a.currentTarget=c;try{i(a)}catch(f){dp(f)}a.currentTarget=null,i=l}}}}function Se(e,t){var n=t[Eb];n===void 0&&(n=t[Eb]=new Set);var r=e+"__bubble";n.has(r)||(ER(t,e,2,!1),n.add(r))}function fg(e,t,n){var r=0;t&&(r|=4),ER(n,e,r,t)}var nh="_reactListening"+Math.random().toString(36).slice(2);function jS(e){if(!e[nh]){e[nh]=!0,vP.forEach(function(n){n!=="selectionchange"&&(p8.has(n)||fg(n,!1,e),fg(n,!0,e))});var t=e.nodeType===9?e:e.ownerDocument;t===null||t[nh]||(t[nh]=!0,fg("selectionchange",!1,t))}}function ER(e,t,n,r){switch(BR(t)){case 2:var a=q8;break;case 8:a=V8;break;default:a=TS}n=a.bind(null,t,n,e),a=void 0,!Pb||t!=="touchstart"&&t!=="touchmove"&&t!=="wheel"||(a=!0),r?a!==void 0?e.addEventListener(t,n,{capture:!0,passive:a}):e.addEventListener(t,n,!0):a!==void 0?e.addEventListener(t,n,{passive:a}):e.addEventListener(t,n,!1)}function dg(e,t,n,r,a){var i=r;if(!(t&1)&&!(t&2)&&r!==null)e:for(;;){if(r===null)return;var s=r.tag;if(s===3||s===4){var o=r.stateNode.containerInfo;if(o===a)break;if(s===4)for(s=r.return;s!==null;){var l=s.tag;if((l===3||l===4)&&s.stateNode.containerInfo===a)return;s=s.return}for(;o!==null;){if(s=Lo(o),s===null)return;if(l=s.tag,l===5||l===6||l===26||l===27){r=i=s;continue e}o=o.parentNode}}r=r.return}OP(function(){var c=i,f=U1(n),d=[];e:{var h=IP.get(e);if(h!==void 0){var p=sy,v=e;switch(e){case"keypress":if(Lh(n)===0)break e;case"keydown":case"keyup":p=oz;break;case"focusin":v="focus",p=Uv;break;case"focusout":v="blur",p=Uv;break;case"beforeblur":case"afterblur":p=Uv;break;case"click":if(n.button===2)break e;case"auxclick":case"dblclick":case"mousedown":case"mousemove":case"mouseup":case"mouseout":case"mouseover":case"contextmenu":p=l2;break;case"drag":case"dragend":case"dragenter":case"dragexit":case"dragleave":case"dragover":case"dragstart":case"drop":p=X6;break;case"touchcancel":case"touchend":case"touchmove":case"touchstart":p=uz;break;case kP:case LP:case zP:p=Z6;break;case BP:p=dz;break;case"scroll":case"scrollend":p=K6;break;case"wheel":p=pz;break;case"copy":case"cut":case"paste":p=ez;break;case"gotpointercapture":case"lostpointercapture":case"pointercancel":case"pointerdown":case"pointermove":case"pointerout":case"pointerover":case"pointerup":p=u2;break;case"toggle":case"beforetoggle":p=yz}var y=(t&4)!==0,b=!y&&(e==="scroll"||e==="scrollend"),m=y?h!==null?h+"Capture":null:h;y=[];for(var g=c,x;g!==null;){var w=g;if(x=w.stateNode,w=w.tag,w!==5&&w!==26&&w!==27||x===null||m===null||(w=Xu(g,m),w!=null&&y.push(af(g,w,x))),b)break;g=g.return}0<y.length&&(h=new p(h,v,null,n,f),d.push({event:h,listeners:y}))}}if(!(t&7)){e:{if(h=e==="mouseover"||e==="pointerover",p=e==="mouseout"||e==="pointerout",h&&n!==Cb&&(v=n.relatedTarget||n.fromElement)&&(Lo(v)||v[yc]))break e;if((p||h)&&(h=f.window===f?f:(h=f.ownerDocument)?h.defaultView||h.parentWindow:window,p?(v=n.relatedTarget||n.toElement,p=c,v=v?Lo(v):null,v!==null&&(b=od(v),y=v.tag,v!==b||y!==5&&y!==27&&y!==6)&&(v=null)):(p=null,v=c),p!==v)){if(y=l2,w="onMouseLeave",m="onMouseEnter",g="mouse",(e==="pointerout"||e==="pointerover")&&(y=u2,w="onPointerLeave",m="onPointerEnter",g="pointer"),b=p==null?h:hu(p),x=v==null?h:hu(v),h=new y(w,g+"leave",p,n,f),h.target=b,h.relatedTarget=x,w=null,Lo(f)===c&&(y=new y(m,g+"enter",v,n,f),y.target=x,y.relatedTarget=b,w=y),b=w,p&&v)t:{for(y=m8,m=p,g=v,x=0,w=m;w;w=y(w))x++;w=0;for(var S=g;S;S=y(S))w++;for(;0<x-w;)m=y(m),x--;for(;0<w-x;)g=y(g),w--;for(;x--;){if(m===g||g!==null&&m===g.alternate){y=m;break t}m=y(m),g=y(g)}y=null}else y=null;p!==null&&tA(d,h,p,y,!1),v!==null&&b!==null&&tA(d,b,v,y,!0)}}e:{if(h=c?hu(c):window,p=h.nodeName&&h.nodeName.toLowerCase(),p==="select"||p==="input"&&h.type==="file")var j=p2;else if(h2(h))if(PP)j=Ez;else{j=Az;var O=jz}else p=h.nodeName,!p||p.toLowerCase()!=="input"||h.type!=="checkbox"&&h.type!=="radio"?c&&I1(c.elementType)&&(j=p2):j=Oz;if(j&&(j=j(e,c))){CP(d,j,n,f);break e}O&&O(e,h,c),e==="focusout"&&c&&h.type==="number"&&c.memoizedProps.value!=null&&_b(h,"number",h.value)}switch(O=c?hu(c):window,e){case"focusin":(h2(O)||O.contentEditable==="true")&&(Io=O,Mb=c,Au=null);break;case"focusout":Au=Mb=Io=null;break;case"mousedown":Rb=!0;break;case"contextmenu":case"mouseup":case"dragend":Rb=!1,b2(d,n,f);break;case"selectionchange":if(Nz)break;case"keydown":case"keyup":b2(d,n,f)}var E;if(H1)e:{switch(e){case"compositionstart":var T="onCompositionStart";break e;case"compositionend":T="onCompositionEnd";break e;case"compositionupdate":T="onCompositionUpdate";break e}T=void 0}else Bo?NP(e,n)&&(T="onCompositionEnd"):e==="keydown"&&n.keyCode===229&&(T="onCompositionStart");T&&(TP&&n.locale!=="ko"&&(Bo||T!=="onCompositionStart"?T==="onCompositionEnd"&&Bo&&(E=EP()):(Oi=f,q1="value"in Oi?Oi.value:Oi.textContent,Bo=!0)),O=_p(c,T),0<O.length&&(T=new c2(T,e,null,n,f),d.push({event:T,listeners:O}),E?T.data=E:(E=_P(n),E!==null&&(T.data=E)))),(E=gz?bz(e,n):xz(e,n))&&(T=_p(c,"onBeforeInput"),0<T.length&&(O=new c2("onBeforeInput","beforeinput",null,n,f),d.push({event:O,listeners:T}),O.data=E)),f8(d,e,c,n,f)}OR(d,t)})}function af(e,t,n){return{instance:e,listener:t,currentTarget:n}}function _p(e,t){for(var n=t+"Capture",r=[];e!==null;){var a=e,i=a.stateNode;if(a=a.tag,a!==5&&a!==26&&a!==27||i===null||(a=Xu(e,n),a!=null&&r.unshift(af(e,a,i)),a=Xu(e,t),a!=null&&r.push(af(e,a,i))),e.tag===3)return r;e=e.return}return[]}function m8(e){if(e===null)return null;do e=e.return;while(e&&e.tag!==5&&e.tag!==27);return e||null}function tA(e,t,n,r,a){for(var i=t._reactName,s=[];n!==null&&n!==r;){var o=n,l=o.alternate,c=o.stateNode;if(o=o.tag,l!==null&&l===r)break;o!==5&&o!==26&&o!==27||c===null||(l=c,a?(c=Xu(n,i),c!=null&&s.unshift(af(n,c,l))):a||(c=Xu(n,i),c!=null&&s.push(af(n,c,l)))),n=n.return}s.length!==0&&e.push({event:t,listeners:s})}var y8=/\r\n?/g,v8=/\u0000|\uFFFD/g;function nA(e){return(typeof e=="string"?e:""+e).replace(y8,`
`).replace(v8,"")}function TR(e,t){return t=nA(t),nA(e)===t}function Ve(e,t,n,r,a,i){switch(n){case"children":typeof r=="string"?t==="body"||t==="textarea"&&r===""||_l(e,r):(typeof r=="number"||typeof r=="bigint")&&t!=="body"&&_l(e,""+r);break;case"className":Xd(e,"class",r);break;case"tabIndex":Xd(e,"tabindex",r);break;case"dir":case"role":case"viewBox":case"width":case"height":Xd(e,n,r);break;case"style":AP(e,r,i);break;case"data":if(t!=="object"){Xd(e,"data",r);break}case"src":case"href":if(r===""&&(t!=="a"||n!=="href")){e.removeAttribute(n);break}if(r==null||typeof r=="function"||typeof r=="symbol"||typeof r=="boolean"){e.removeAttribute(n);break}r=$h(""+r),e.setAttribute(n,r);break;case"action":case"formAction":if(typeof r=="function"){e.setAttribute(n,"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 i=="function"&&(n==="formAction"?(t!=="input"&&Ve(e,t,"name",a.name,a,null),Ve(e,t,"formEncType",a.formEncType,a,null),Ve(e,t,"formMethod",a.formMethod,a,null),Ve(e,t,"formTarget",a.formTarget,a,null)):(Ve(e,t,"encType",a.encType,a,null),Ve(e,t,"method",a.method,a,null),Ve(e,t,"target",a.target,a,null)));if(r==null||typeof r=="symbol"||typeof r=="boolean"){e.removeAttribute(n);break}r=$h(""+r),e.setAttribute(n,r);break;case"onClick":r!=null&&(e.onclick=Ea);break;case"onScroll":r!=null&&Se("scroll",e);break;case"onScrollEnd":r!=null&&Se("scrollend",e);break;case"dangerouslySetInnerHTML":if(r!=null){if(typeof r!="object"||!("__html"in r))throw Error(U(61));if(n=r.__html,n!=null){if(a.children!=null)throw Error(U(60));e.innerHTML=n}}break;case"multiple":e.multiple=r&&typeof r!="function"&&typeof r!="symbol";break;case"muted":e.muted=r&&typeof r!="function"&&typeof r!="symbol";break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"defaultValue":case"defaultChecked":case"innerHTML":case"ref":break;case"autoFocus":break;case"xlinkHref":if(r==null||typeof r=="function"||typeof r=="boolean"||typeof r=="symbol"){e.removeAttribute("xlink:href");break}n=$h(""+r),e.setAttributeNS("http://www.w3.org/1999/xlink","xlink:href",n);break;case"contentEditable":case"spellCheck":case"draggable":case"value":case"autoReverse":case"externalResourcesRequired":case"focusable":case"preserveAlpha":r!=null&&typeof r!="function"&&typeof r!="symbol"?e.setAttribute(n,""+r):e.removeAttribute(n);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":r&&typeof r!="function"&&typeof r!="symbol"?e.setAttribute(n,""):e.removeAttribute(n);break;case"capture":case"download":r===!0?e.setAttribute(n,""):r!==!1&&r!=null&&typeof r!="function"&&typeof r!="symbol"?e.setAttribute(n,r):e.removeAttribute(n);break;case"cols":case"rows":case"size":case"span":r!=null&&typeof r!="function"&&typeof r!="symbol"&&!isNaN(r)&&1<=r?e.setAttribute(n,r):e.removeAttribute(n);break;case"rowSpan":case"start":r==null||typeof r=="function"||typeof r=="symbol"||isNaN(r)?e.removeAttribute(n):e.setAttribute(n,r);break;case"popover":Se("beforetoggle",e),Se("toggle",e),Dh(e,"popover",r);break;case"xlinkActuate":ha(e,"http://www.w3.org/1999/xlink","xlink:actuate",r);break;case"xlinkArcrole":ha(e,"http://www.w3.org/1999/xlink","xlink:arcrole",r);break;case"xlinkRole":ha(e,"http://www.w3.org/1999/xlink","xlink:role",r);break;case"xlinkShow":ha(e,"http://www.w3.org/1999/xlink","xlink:show",r);break;case"xlinkTitle":ha(e,"http://www.w3.org/1999/xlink","xlink:title",r);break;case"xlinkType":ha(e,"http://www.w3.org/1999/xlink","xlink:type",r);break;case"xmlBase":ha(e,"http://www.w3.org/XML/1998/namespace","xml:base",r);break;case"xmlLang":ha(e,"http://www.w3.org/XML/1998/namespace","xml:lang",r);break;case"xmlSpace":ha(e,"http://www.w3.org/XML/1998/namespace","xml:space",r);break;case"is":Dh(e,"is",r);break;case"innerText":case"textContent":break;default:(!(2<n.length)||n[0]!=="o"&&n[0]!=="O"||n[1]!=="n"&&n[1]!=="N")&&(n=F6.get(n)||n,Dh(e,n,r))}}function r0(e,t,n,r,a,i){switch(n){case"style":AP(e,r,i);break;case"dangerouslySetInnerHTML":if(r!=null){if(typeof r!="object"||!("__html"in r))throw Error(U(61));if(n=r.__html,n!=null){if(a.children!=null)throw Error(U(60));e.innerHTML=n}}break;case"children":typeof r=="string"?_l(e,r):(typeof r=="number"||typeof r=="bigint")&&_l(e,""+r);break;case"onScroll":r!=null&&Se("scroll",e);break;case"onScrollEnd":r!=null&&Se("scrollend",e);break;case"onClick":r!=null&&(e.onclick=Ea);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":case"innerHTML":case"ref":break;case"innerText":case"textContent":break;default:if(!gP.hasOwnProperty(n))e:{if(n[0]==="o"&&n[1]==="n"&&(a=n.endsWith("Capture"),t=n.slice(2,a?n.length-7:void 0),i=e[Nn]||null,i=i!=null?i[n]:null,typeof i=="function"&&e.removeEventListener(t,i,a),typeof r=="function")){typeof i!="function"&&i!==null&&(n in e?e[n]=null:e.hasAttribute(n)&&e.removeAttribute(n)),e.addEventListener(t,r,a);break e}n in e?e[n]=r:r===!0?e.setAttribute(n,""):Dh(e,n,r)}}}function en(e,t,n){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"img":Se("error",e),Se("load",e);var r=!1,a=!1,i;for(i in n)if(n.hasOwnProperty(i)){var s=n[i];if(s!=null)switch(i){case"src":r=!0;break;case"srcSet":a=!0;break;case"children":case"dangerouslySetInnerHTML":throw Error(U(137,t));default:Ve(e,t,i,s,n,null)}}a&&Ve(e,t,"srcSet",n.srcSet,n,null),r&&Ve(e,t,"src",n.src,n,null);return;case"input":Se("invalid",e);var o=i=s=a=null,l=null,c=null;for(r in n)if(n.hasOwnProperty(r)){var f=n[r];if(f!=null)switch(r){case"name":a=f;break;case"type":s=f;break;case"checked":l=f;break;case"defaultChecked":c=f;break;case"value":i=f;break;case"defaultValue":o=f;break;case"children":case"dangerouslySetInnerHTML":if(f!=null)throw Error(U(137,t));break;default:Ve(e,t,r,f,n,null)}}SP(e,i,o,l,c,s,a,!1);return;case"select":Se("invalid",e),r=s=i=null;for(a in n)if(n.hasOwnProperty(a)&&(o=n[a],o!=null))switch(a){case"value":i=o;break;case"defaultValue":s=o;break;case"multiple":r=o;default:Ve(e,t,a,o,n,null)}t=i,n=s,e.multiple=!!r,t!=null?al(e,!!r,t,!1):n!=null&&al(e,!!r,n,!0);return;case"textarea":Se("invalid",e),i=a=r=null;for(s in n)if(n.hasOwnProperty(s)&&(o=n[s],o!=null))switch(s){case"value":r=o;break;case"defaultValue":a=o;break;case"children":i=o;break;case"dangerouslySetInnerHTML":if(o!=null)throw Error(U(91));break;default:Ve(e,t,s,o,n,null)}jP(e,r,a,i);return;case"option":for(l in n)if(n.hasOwnProperty(l)&&(r=n[l],r!=null))switch(l){case"selected":e.selected=r&&typeof r!="function"&&typeof r!="symbol";break;default:Ve(e,t,l,r,n,null)}return;case"dialog":Se("beforetoggle",e),Se("toggle",e),Se("cancel",e),Se("close",e);break;case"iframe":case"object":Se("load",e);break;case"video":case"audio":for(r=0;r<rf.length;r++)Se(rf[r],e);break;case"image":Se("error",e),Se("load",e);break;case"details":Se("toggle",e);break;case"embed":case"source":case"link":Se("error",e),Se("load",e);case"area":case"base":case"br":case"col":case"hr":case"keygen":case"meta":case"param":case"track":case"wbr":case"menuitem":for(c in n)if(n.hasOwnProperty(c)&&(r=n[c],r!=null))switch(c){case"children":case"dangerouslySetInnerHTML":throw Error(U(137,t));default:Ve(e,t,c,r,n,null)}return;default:if(I1(t)){for(f in n)n.hasOwnProperty(f)&&(r=n[f],r!==void 0&&r0(e,t,f,r,n,void 0));return}}for(o in n)n.hasOwnProperty(o)&&(r=n[o],r!=null&&Ve(e,t,o,r,n,null))}function g8(e,t,n,r){switch(t){case"div":case"span":case"svg":case"path":case"a":case"g":case"p":case"li":break;case"input":var a=null,i=null,s=null,o=null,l=null,c=null,f=null;for(p in n){var d=n[p];if(n.hasOwnProperty(p)&&d!=null)switch(p){case"checked":break;case"value":break;case"defaultValue":l=d;default:r.hasOwnProperty(p)||Ve(e,t,p,null,r,d)}}for(var h in r){var p=r[h];if(d=n[h],r.hasOwnProperty(h)&&(p!=null||d!=null))switch(h){case"type":i=p;break;case"name":a=p;break;case"checked":c=p;break;case"defaultChecked":f=p;break;case"value":s=p;break;case"defaultValue":o=p;break;case"children":case"dangerouslySetInnerHTML":if(p!=null)throw Error(U(137,t));break;default:p!==d&&Ve(e,t,h,p,r,d)}}Nb(e,s,o,l,c,f,i,a);return;case"select":p=s=o=h=null;for(i in n)if(l=n[i],n.hasOwnProperty(i)&&l!=null)switch(i){case"value":break;case"multiple":p=l;default:r.hasOwnProperty(i)||Ve(e,t,i,null,r,l)}for(a in r)if(i=r[a],l=n[a],r.hasOwnProperty(a)&&(i!=null||l!=null))switch(a){case"value":h=i;break;case"defaultValue":o=i;break;case"multiple":s=i;default:i!==l&&Ve(e,t,a,i,r,l)}t=o,n=s,r=p,h!=null?al(e,!!n,h,!1):!!r!=!!n&&(t!=null?al(e,!!n,t,!0):al(e,!!n,n?[]:"",!1));return;case"textarea":p=h=null;for(o in n)if(a=n[o],n.hasOwnProperty(o)&&a!=null&&!r.hasOwnProperty(o))switch(o){case"value":break;case"children":break;default:Ve(e,t,o,null,r,a)}for(s in r)if(a=r[s],i=n[s],r.hasOwnProperty(s)&&(a!=null||i!=null))switch(s){case"value":h=a;break;case"defaultValue":p=a;break;case"children":break;case"dangerouslySetInnerHTML":if(a!=null)throw Error(U(91));break;default:a!==i&&Ve(e,t,s,a,r,i)}wP(e,h,p);return;case"option":for(var v in n)if(h=n[v],n.hasOwnProperty(v)&&h!=null&&!r.hasOwnProperty(v))switch(v){case"selected":e.selected=!1;break;default:Ve(e,t,v,null,r,h)}for(l in r)if(h=r[l],p=n[l],r.hasOwnProperty(l)&&h!==p&&(h!=null||p!=null))switch(l){case"selected":e.selected=h&&typeof h!="function"&&typeof h!="symbol";break;default:Ve(e,t,l,h,r,p)}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 y in n)h=n[y],n.hasOwnProperty(y)&&h!=null&&!r.hasOwnProperty(y)&&Ve(e,t,y,null,r,h);for(c in r)if(h=r[c],p=n[c],r.hasOwnProperty(c)&&h!==p&&(h!=null||p!=null))switch(c){case"children":case"dangerouslySetInnerHTML":if(h!=null)throw Error(U(137,t));break;default:Ve(e,t,c,h,r,p)}return;default:if(I1(t)){for(var b in n)h=n[b],n.hasOwnProperty(b)&&h!==void 0&&!r.hasOwnProperty(b)&&r0(e,t,b,void 0,r,h);for(f in r)h=r[f],p=n[f],!r.hasOwnProperty(f)||h===p||h===void 0&&p===void 0||r0(e,t,f,h,r,p);return}}for(var m in n)h=n[m],n.hasOwnProperty(m)&&h!=null&&!r.hasOwnProperty(m)&&Ve(e,t,m,null,r,h);for(d in r)h=r[d],p=n[d],!r.hasOwnProperty(d)||h===p||h==null&&p==null||Ve(e,t,d,h,r,p)}function rA(e){switch(e){case"css":case"script":case"font":case"img":case"image":case"input":case"link":return!0;default:return!1}}function b8(){if(typeof performance.getEntriesByType=="function"){for(var e=0,t=0,n=performance.getEntriesByType("resource"),r=0;r<n.length;r++){var a=n[r],i=a.transferSize,s=a.initiatorType,o=a.duration;if(i&&o&&rA(s)){for(s=0,o=a.responseEnd,r+=1;r<n.length;r++){var l=n[r],c=l.startTime;if(c>o)break;var f=l.transferSize,d=l.initiatorType;f&&rA(d)&&(l=l.responseEnd,s+=f*(l<o?1:(o-c)/(l-c)))}if(--r,t+=8*(i+s)/(a.duration/1e3),e++,10<e)break}}if(0<e)return t/e/1e6}return navigator.connection&&(e=navigator.connection.downlink,typeof e=="number")?e:5}var a0=null,i0=null;function Cp(e){return e.nodeType===9?e:e.ownerDocument}function aA(e){switch(e){case"http://www.w3.org/2000/svg":return 1;case"http://www.w3.org/1998/Math/MathML":return 2;default:return 0}}function NR(e,t){if(e===0)switch(t){case"svg":return 1;case"math":return 2;default:return 0}return e===1&&t==="foreignObject"?0:e}function s0(e,t){return e==="textarea"||e==="noscript"||typeof t.children=="string"||typeof t.children=="number"||typeof t.children=="bigint"||typeof t.dangerouslySetInnerHTML=="object"&&t.dangerouslySetInnerHTML!==null&&t.dangerouslySetInnerHTML.__html!=null}var hg=null;function x8(){var e=window.event;return e&&e.type==="popstate"?e===hg?!1:(hg=e,!0):(hg=null,!1)}var _R=typeof setTimeout=="function"?setTimeout:void 0,S8=typeof clearTimeout=="function"?clearTimeout:void 0,iA=typeof Promise=="function"?Promise:void 0,w8=typeof queueMicrotask=="function"?queueMicrotask:typeof iA<"u"?function(e){return iA.resolve(null).then(e).catch(j8)}:_R;function j8(e){setTimeout(function(){throw e})}function Wi(e){return e==="head"}function sA(e,t){var n=t,r=0;do{var a=n.nextSibling;if(e.removeChild(n),a&&a.nodeType===8)if(n=a.data,n==="/$"||n==="/&"){if(r===0){e.removeChild(a),Ll(t);return}r--}else if(n==="$"||n==="$?"||n==="$~"||n==="$!"||n==="&")r++;else if(n==="html")Du(e.ownerDocument.documentElement);else if(n==="head"){n=e.ownerDocument.head,Du(n);for(var i=n.firstChild;i;){var s=i.nextSibling,o=i.nodeName;i[fd]||o==="SCRIPT"||o==="STYLE"||o==="LINK"&&i.rel.toLowerCase()==="stylesheet"||n.removeChild(i),i=s}}else n==="body"&&Du(e.ownerDocument.body);n=a}while(n);Ll(t)}function oA(e,t){var n=e;e=0;do{var r=n.nextSibling;if(n.nodeType===1?t?(n._stashedDisplay=n.style.display,n.style.display="none"):(n.style.display=n._stashedDisplay||"",n.getAttribute("style")===""&&n.removeAttribute("style")):n.nodeType===3&&(t?(n._stashedText=n.nodeValue,n.nodeValue=""):n.nodeValue=n._stashedText||""),r&&r.nodeType===8)if(n=r.data,n==="/$"){if(e===0)break;e--}else n!=="$"&&n!=="$?"&&n!=="$~"&&n!=="$!"||e++;n=r}while(n)}function o0(e){var t=e.firstChild;for(t&&t.nodeType===10&&(t=t.nextSibling);t;){var n=t;switch(t=t.nextSibling,n.nodeName){case"HTML":case"HEAD":case"BODY":o0(n),B1(n);continue;case"SCRIPT":case"STYLE":continue;case"LINK":if(n.rel.toLowerCase()==="stylesheet")continue}e.removeChild(n)}}function A8(e,t,n,r){for(;e.nodeType===1;){var a=n;if(e.nodeName.toLowerCase()!==t.toLowerCase()){if(!r&&(e.nodeName!=="INPUT"||e.type!=="hidden"))break}else if(r){if(!e[fd])switch(t){case"meta":if(!e.hasAttribute("itemprop"))break;return e;case"link":if(i=e.getAttribute("rel"),i==="stylesheet"&&e.hasAttribute("data-precedence"))break;if(i!==a.rel||e.getAttribute("href")!==(a.href==null||a.href===""?null:a.href)||e.getAttribute("crossorigin")!==(a.crossOrigin==null?null:a.crossOrigin)||e.getAttribute("title")!==(a.title==null?null:a.title))break;return e;case"style":if(e.hasAttribute("data-precedence"))break;return e;case"script":if(i=e.getAttribute("src"),(i!==(a.src==null?null:a.src)||e.getAttribute("type")!==(a.type==null?null:a.type)||e.getAttribute("crossorigin")!==(a.crossOrigin==null?null:a.crossOrigin))&&i&&e.hasAttribute("async")&&!e.hasAttribute("itemprop"))break;return e;default:return e}}else if(t==="input"&&e.type==="hidden"){var i=a.name==null?null:""+a.name;if(a.type==="hidden"&&e.getAttribute("name")===i)return e}else return e;if(e=mr(e.nextSibling),e===null)break}return null}function O8(e,t,n){if(t==="")return null;for(;e.nodeType!==3;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!n||(e=mr(e.nextSibling),e===null))return null;return e}function CR(e,t){for(;e.nodeType!==8;)if((e.nodeType!==1||e.nodeName!=="INPUT"||e.type!=="hidden")&&!t||(e=mr(e.nextSibling),e===null))return null;return e}function l0(e){return e.data==="$?"||e.data==="$~"}function c0(e){return e.data==="$!"||e.data==="$?"&&e.ownerDocument.readyState!=="loading"}function E8(e,t){var n=e.ownerDocument;if(e.data==="$~")e._reactRetry=t;else if(e.data!=="$?"||n.readyState!=="loading")t();else{var r=function(){t(),n.removeEventListener("DOMContentLoaded",r)};n.addEventListener("DOMContentLoaded",r),e._reactRetry=r}}function mr(e){for(;e!=null;e=e.nextSibling){var t=e.nodeType;if(t===1||t===3)break;if(t===8){if(t=e.data,t==="$"||t==="$!"||t==="$?"||t==="$~"||t==="&"||t==="F!"||t==="F")break;if(t==="/$"||t==="/&")return null}}return e}var u0=null;function lA(e){e=e.nextSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="/$"||n==="/&"){if(t===0)return mr(e.nextSibling);t--}else n!=="$"&&n!=="$!"&&n!=="$?"&&n!=="$~"&&n!=="&"||t++}e=e.nextSibling}return null}function cA(e){e=e.previousSibling;for(var t=0;e;){if(e.nodeType===8){var n=e.data;if(n==="$"||n==="$!"||n==="$?"||n==="$~"||n==="&"){if(t===0)return e;t--}else n!=="/$"&&n!=="/&"||t++}e=e.previousSibling}return null}function PR(e,t,n){switch(t=Cp(n),e){case"html":if(e=t.documentElement,!e)throw Error(U(452));return e;case"head":if(e=t.head,!e)throw Error(U(453));return e;case"body":if(e=t.body,!e)throw Error(U(454));return e;default:throw Error(U(451))}}function Du(e){for(var t=e.attributes;t.length;)e.removeAttributeNode(t[0]);B1(e)}var yr=new Map,uA=new Set;function Pp(e){return typeof e.getRootNode=="function"?e.getRootNode():e.nodeType===9?e:e.ownerDocument}var Wa=De.d;De.d={f:T8,r:N8,D:_8,C:C8,L:P8,m:M8,X:D8,S:R8,M:$8};function T8(){var e=Wa.f(),t=vy();return e||t}function N8(e){var t=vc(e);t!==null&&t.tag===5&&t.type==="form"?AM(t):Wa.r(e)}var Sc=typeof document>"u"?null:document;function MR(e,t,n){var r=Sc;if(r&&typeof t=="string"&&t){var a=cr(t);a='link[rel="'+e+'"][href="'+a+'"]',typeof n=="string"&&(a+='[crossorigin="'+n+'"]'),uA.has(a)||(uA.add(a),e={rel:e,crossOrigin:n,href:t},r.querySelector(a)===null&&(t=r.createElement("link"),en(t,"link",e),qt(t),r.head.appendChild(t)))}}function _8(e){Wa.D(e),MR("dns-prefetch",e,null)}function C8(e,t){Wa.C(e,t),MR("preconnect",e,t)}function P8(e,t,n){Wa.L(e,t,n);var r=Sc;if(r&&e&&t){var a='link[rel="preload"][as="'+cr(t)+'"]';t==="image"&&n&&n.imageSrcSet?(a+='[imagesrcset="'+cr(n.imageSrcSet)+'"]',typeof n.imageSizes=="string"&&(a+='[imagesizes="'+cr(n.imageSizes)+'"]')):a+='[href="'+cr(e)+'"]';var i=a;switch(t){case"style":i=kl(e);break;case"script":i=wc(e)}yr.has(i)||(e=at({rel:"preload",href:t==="image"&&n&&n.imageSrcSet?void 0:e,as:t},n),yr.set(i,e),r.querySelector(a)!==null||t==="style"&&r.querySelector(vd(i))||t==="script"&&r.querySelector(gd(i))||(t=r.createElement("link"),en(t,"link",e),qt(t),r.head.appendChild(t)))}}function M8(e,t){Wa.m(e,t);var n=Sc;if(n&&e){var r=t&&typeof t.as=="string"?t.as:"script",a='link[rel="modulepreload"][as="'+cr(r)+'"][href="'+cr(e)+'"]',i=a;switch(r){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":i=wc(e)}if(!yr.has(i)&&(e=at({rel:"modulepreload",href:e},t),yr.set(i,e),n.querySelector(a)===null)){switch(r){case"audioworklet":case"paintworklet":case"serviceworker":case"sharedworker":case"worker":case"script":if(n.querySelector(gd(i)))return}r=n.createElement("link"),en(r,"link",e),qt(r),n.head.appendChild(r)}}}function R8(e,t,n){Wa.S(e,t,n);var r=Sc;if(r&&e){var a=rl(r).hoistableStyles,i=kl(e);t=t||"default";var s=a.get(i);if(!s){var o={loading:0,preload:null};if(s=r.querySelector(vd(i)))o.loading=5;else{e=at({rel:"stylesheet",href:e,"data-precedence":t},n),(n=yr.get(i))&&AS(e,n);var l=s=r.createElement("link");qt(l),en(l,"link",e),l._p=new Promise(function(c,f){l.onload=c,l.onerror=f}),l.addEventListener("load",function(){o.loading|=1}),l.addEventListener("error",function(){o.loading|=2}),o.loading|=4,Fh(s,t,r)}s={type:"stylesheet",instance:s,count:1,state:o},a.set(i,s)}}}function D8(e,t){Wa.X(e,t);var n=Sc;if(n&&e){var r=rl(n).hoistableScripts,a=wc(e),i=r.get(a);i||(i=n.querySelector(gd(a)),i||(e=at({src:e,async:!0},t),(t=yr.get(a))&&OS(e,t),i=n.createElement("script"),qt(i),en(i,"link",e),n.head.appendChild(i)),i={type:"script",instance:i,count:1,state:null},r.set(a,i))}}function $8(e,t){Wa.M(e,t);var n=Sc;if(n&&e){var r=rl(n).hoistableScripts,a=wc(e),i=r.get(a);i||(i=n.querySelector(gd(a)),i||(e=at({src:e,async:!0,type:"module"},t),(t=yr.get(a))&&OS(e,t),i=n.createElement("script"),qt(i),en(i,"link",e),n.head.appendChild(i)),i={type:"script",instance:i,count:1,state:null},r.set(a,i))}}function fA(e,t,n,r){var a=(a=Pi.current)?Pp(a):null;if(!a)throw Error(U(446));switch(e){case"meta":case"title":return null;case"style":return typeof n.precedence=="string"&&typeof n.href=="string"?(t=kl(n.href),n=rl(a).hoistableStyles,r=n.get(t),r||(r={type:"style",instance:null,count:0,state:null},n.set(t,r)),r):{type:"void",instance:null,count:0,state:null};case"link":if(n.rel==="stylesheet"&&typeof n.href=="string"&&typeof n.precedence=="string"){e=kl(n.href);var i=rl(a).hoistableStyles,s=i.get(e);if(s||(a=a.ownerDocument||a,s={type:"stylesheet",instance:null,count:0,state:{loading:0,preload:null}},i.set(e,s),(i=a.querySelector(vd(e)))&&!i._p&&(s.instance=i,s.state.loading=5),yr.has(e)||(n={rel:"preload",as:"style",href:n.href,crossOrigin:n.crossOrigin,integrity:n.integrity,media:n.media,hrefLang:n.hrefLang,referrerPolicy:n.referrerPolicy},yr.set(e,n),i||k8(a,e,n,s.state))),t&&r===null)throw Error(U(528,""));return s}if(t&&r!==null)throw Error(U(529,""));return null;case"script":return t=n.async,n=n.src,typeof n=="string"&&t&&typeof t!="function"&&typeof t!="symbol"?(t=wc(n),n=rl(a).hoistableScripts,r=n.get(t),r||(r={type:"script",instance:null,count:0,state:null},n.set(t,r)),r):{type:"void",instance:null,count:0,state:null};default:throw Error(U(444,e))}}function kl(e){return'href="'+cr(e)+'"'}function vd(e){return'link[rel="stylesheet"]['+e+"]"}function RR(e){return at({},e,{"data-precedence":e.precedence,precedence:null})}function k8(e,t,n,r){e.querySelector('link[rel="preload"][as="style"]['+t+"]")?r.loading=1:(t=e.createElement("link"),r.preload=t,t.addEventListener("load",function(){return r.loading|=1}),t.addEventListener("error",function(){return r.loading|=2}),en(t,"link",n),qt(t),e.head.appendChild(t))}function wc(e){return'[src="'+cr(e)+'"]'}function gd(e){return"script[async]"+e}function dA(e,t,n){if(t.count++,t.instance===null)switch(t.type){case"style":var r=e.querySelector('style[data-href~="'+cr(n.href)+'"]');if(r)return t.instance=r,qt(r),r;var a=at({},n,{"data-href":n.href,"data-precedence":n.precedence,href:null,precedence:null});return r=(e.ownerDocument||e).createElement("style"),qt(r),en(r,"style",a),Fh(r,n.precedence,e),t.instance=r;case"stylesheet":a=kl(n.href);var i=e.querySelector(vd(a));if(i)return t.state.loading|=4,t.instance=i,qt(i),i;r=RR(n),(a=yr.get(a))&&AS(r,a),i=(e.ownerDocument||e).createElement("link"),qt(i);var s=i;return s._p=new Promise(function(o,l){s.onload=o,s.onerror=l}),en(i,"link",r),t.state.loading|=4,Fh(i,n.precedence,e),t.instance=i;case"script":return i=wc(n.src),(a=e.querySelector(gd(i)))?(t.instance=a,qt(a),a):(r=n,(a=yr.get(i))&&(r=at({},n),OS(r,a)),e=e.ownerDocument||e,a=e.createElement("script"),qt(a),en(a,"link",r),e.head.appendChild(a),t.instance=a);case"void":return null;default:throw Error(U(443,t.type))}else t.type==="stylesheet"&&!(t.state.loading&4)&&(r=t.instance,t.state.loading|=4,Fh(r,n.precedence,e));return t.instance}function Fh(e,t,n){for(var r=n.querySelectorAll('link[rel="stylesheet"][data-precedence],style[data-precedence]'),a=r.length?r[r.length-1]:null,i=a,s=0;s<r.length;s++){var o=r[s];if(o.dataset.precedence===t)i=o;else if(i!==a)break}i?i.parentNode.insertBefore(e,i.nextSibling):(t=n.nodeType===9?n.head:n,t.insertBefore(e,t.firstChild))}function AS(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.title==null&&(e.title=t.title)}function OS(e,t){e.crossOrigin==null&&(e.crossOrigin=t.crossOrigin),e.referrerPolicy==null&&(e.referrerPolicy=t.referrerPolicy),e.integrity==null&&(e.integrity=t.integrity)}var Gh=null;function hA(e,t,n){if(Gh===null){var r=new Map,a=Gh=new Map;a.set(n,r)}else a=Gh,r=a.get(n),r||(r=new Map,a.set(n,r));if(r.has(e))return r;for(r.set(e,null),n=n.getElementsByTagName(e),a=0;a<n.length;a++){var i=n[a];if(!(i[fd]||i[Wt]||e==="link"&&i.getAttribute("rel")==="stylesheet")&&i.namespaceURI!=="http://www.w3.org/2000/svg"){var s=i.getAttribute(t)||"";s=e+s;var o=r.get(s);o?o.push(i):r.set(s,[i])}}return r}function pA(e,t,n){e=e.ownerDocument||e,e.head.insertBefore(n,t==="title"?e.querySelector("head > title"):null)}function L8(e,t,n){if(n===1||t.itemProp!=null)return!1;switch(e){case"meta":case"title":return!0;case"style":if(typeof t.precedence!="string"||typeof t.href!="string"||t.href==="")break;return!0;case"link":if(typeof t.rel!="string"||typeof t.href!="string"||t.href===""||t.onLoad||t.onError)break;switch(t.rel){case"stylesheet":return e=t.disabled,typeof t.precedence=="string"&&e==null;default:return!0}case"script":if(t.async&&typeof t.async!="function"&&typeof t.async!="symbol"&&!t.onLoad&&!t.onError&&t.src&&typeof t.src=="string")return!0}return!1}function DR(e){return!(e.type==="stylesheet"&&!(e.state.loading&3))}function z8(e,t,n,r){if(n.type==="stylesheet"&&(typeof r.media!="string"||matchMedia(r.media).matches!==!1)&&!(n.state.loading&4)){if(n.instance===null){var a=kl(r.href),i=t.querySelector(vd(a));if(i){t=i._p,t!==null&&typeof t=="object"&&typeof t.then=="function"&&(e.count++,e=Mp.bind(e),t.then(e,e)),n.state.loading|=4,n.instance=i,qt(i);return}i=t.ownerDocument||t,r=RR(r),(a=yr.get(a))&&AS(r,a),i=i.createElement("link"),qt(i);var s=i;s._p=new Promise(function(o,l){s.onload=o,s.onerror=l}),en(i,"link",r),n.instance=i}e.stylesheets===null&&(e.stylesheets=new Map),e.stylesheets.set(n,t),(t=n.state.preload)&&!(n.state.loading&3)&&(e.count++,n=Mp.bind(e),t.addEventListener("load",n),t.addEventListener("error",n))}}var pg=0;function B8(e,t){return e.stylesheets&&e.count===0&&Kh(e,e.stylesheets),0<e.count||0<e.imgCount?function(n){var r=setTimeout(function(){if(e.stylesheets&&Kh(e,e.stylesheets),e.unsuspend){var i=e.unsuspend;e.unsuspend=null,i()}},6e4+t);0<e.imgBytes&&pg===0&&(pg=62500*b8());var a=setTimeout(function(){if(e.waitingForImages=!1,e.count===0&&(e.stylesheets&&Kh(e,e.stylesheets),e.unsuspend)){var i=e.unsuspend;e.unsuspend=null,i()}},(e.imgBytes>pg?50:800)+t);return e.unsuspend=n,function(){e.unsuspend=null,clearTimeout(r),clearTimeout(a)}}:null}function Mp(){if(this.count--,this.count===0&&(this.imgCount===0||!this.waitingForImages)){if(this.stylesheets)Kh(this,this.stylesheets);else if(this.unsuspend){var e=this.unsuspend;this.unsuspend=null,e()}}}var Rp=null;function Kh(e,t){e.stylesheets=null,e.unsuspend!==null&&(e.count++,Rp=new Map,t.forEach(I8,e),Rp=null,Mp.call(e))}function I8(e,t){if(!(t.state.loading&4)){var n=Rp.get(e);if(n)var r=n.get(null);else{n=new Map,Rp.set(e,n);for(var a=e.querySelectorAll("link[data-precedence],style[data-precedence]"),i=0;i<a.length;i++){var s=a[i];(s.nodeName==="LINK"||s.getAttribute("media")!=="not all")&&(n.set(s.dataset.precedence,s),r=s)}r&&n.set(null,r)}a=t.instance,s=a.getAttribute("data-precedence"),i=n.get(s)||r,i===r&&n.set(null,a),n.set(s,a),this.count++,r=Mp.bind(this),a.addEventListener("load",r),a.addEventListener("error",r),i?i.parentNode.insertBefore(a,i.nextSibling):(e=e.nodeType===9?e.head:e,e.insertBefore(a,e.firstChild)),t.state.loading|=4}}var sf={$$typeof:Oa,Provider:null,Consumer:null,_currentValue:Ls,_currentValue2:Ls,_threadCount:0};function U8(e,t,n,r,a,i,s,o,l){this.tag=1,this.containerInfo=e,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=Lv(-1),this.entangledLanes=this.shellSuspendCounter=this.errorRecoveryDisabledLanes=this.expiredLanes=this.warmLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=Lv(0),this.hiddenUpdates=Lv(null),this.identifierPrefix=r,this.onUncaughtError=a,this.onCaughtError=i,this.onRecoverableError=s,this.pooledCache=null,this.pooledCacheLanes=0,this.formState=l,this.incompleteTransitions=new Map}function $R(e,t,n,r,a,i,s,o,l,c,f,d){return e=new U8(e,t,n,s,l,c,f,d,o),t=1,i===!0&&(t|=24),i=In(3,null,null,t),e.current=i,i.stateNode=e,t=Q1(),t.refCount++,e.pooledCache=t,t.refCount++,i.memoizedState={element:r,isDehydrated:n,cache:t},eS(i),e}function kR(e){return e?(e=Vo,e):Vo}function LR(e,t,n,r,a,i){a=kR(a),r.context===null?r.context=a:r.pendingContext=a,r=Ri(t),r.payload={element:n},i=i===void 0?null:i,i!==null&&(r.callback=i),n=Di(e,r,t),n!==null&&(En(n,e,t),Eu(n,e,t))}function mA(e,t){if(e=e.memoizedState,e!==null&&e.dehydrated!==null){var n=e.retryLane;e.retryLane=n!==0&&n<t?n:t}}function ES(e,t){mA(e,t),(e=e.alternate)&&mA(e,t)}function zR(e){if(e.tag===13||e.tag===31){var t=fo(e,67108864);t!==null&&En(t,e,67108864),ES(e,67108864)}}function yA(e){if(e.tag===13||e.tag===31){var t=Gn();t=L1(t);var n=fo(e,t);n!==null&&En(n,e,t),ES(e,t)}}var Dp=!0;function q8(e,t,n,r){var a=he.T;he.T=null;var i=De.p;try{De.p=2,TS(e,t,n,r)}finally{De.p=i,he.T=a}}function V8(e,t,n,r){var a=he.T;he.T=null;var i=De.p;try{De.p=8,TS(e,t,n,r)}finally{De.p=i,he.T=a}}function TS(e,t,n,r){if(Dp){var a=f0(r);if(a===null)dg(e,t,r,$p,n),vA(e,r);else if(F8(a,e,t,n,r))r.stopPropagation();else if(vA(e,r),t&4&&-1<H8.indexOf(e)){for(;a!==null;){var i=vc(a);if(i!==null)switch(i.tag){case 3:if(i=i.stateNode,i.current.memoizedState.isDehydrated){var s=us(i.pendingLanes);if(s!==0){var o=i;for(o.pendingLanes|=2,o.entangledLanes|=2;s;){var l=1<<31-Fn(s);o.entanglements[1]|=l,s&=~l}la(i),!(Me&6)&&(Ap=Vn()+500,yd(0))}}break;case 31:case 13:o=fo(i,2),o!==null&&En(o,i,2),vy(),ES(i,2)}if(i=f0(r),i===null&&dg(e,t,r,$p,n),i===a)break;a=i}a!==null&&r.stopPropagation()}else dg(e,t,r,null,n)}}function f0(e){return e=U1(e),NS(e)}var $p=null;function NS(e){if($p=null,e=Lo(e),e!==null){var t=od(e);if(t===null)e=null;else{var n=t.tag;if(n===13){if(e=aP(t),e!==null)return e;e=null}else if(n===31){if(e=iP(t),e!==null)return e;e=null}else if(n===3){if(t.stateNode.current.memoizedState.isDehydrated)return t.tag===3?t.stateNode.containerInfo:null;e=null}else t!==e&&(e=null)}}return $p=e,null}function BR(e){switch(e){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(_6()){case cP:return 2;case uP:return 8;case up:case C6:return 32;case fP:return 268435456;default:return 32}default:return 32}}var d0=!1,Li=null,zi=null,Bi=null,of=new Map,lf=new Map,pi=[],H8="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 vA(e,t){switch(e){case"focusin":case"focusout":Li=null;break;case"dragenter":case"dragleave":zi=null;break;case"mouseover":case"mouseout":Bi=null;break;case"pointerover":case"pointerout":of.delete(t.pointerId);break;case"gotpointercapture":case"lostpointercapture":lf.delete(t.pointerId)}}function Xc(e,t,n,r,a,i){return e===null||e.nativeEvent!==i?(e={blockedOn:t,domEventName:n,eventSystemFlags:r,nativeEvent:i,targetContainers:[a]},t!==null&&(t=vc(t),t!==null&&zR(t)),e):(e.eventSystemFlags|=r,t=e.targetContainers,a!==null&&t.indexOf(a)===-1&&t.push(a),e)}function F8(e,t,n,r,a){switch(t){case"focusin":return Li=Xc(Li,e,t,n,r,a),!0;case"dragenter":return zi=Xc(zi,e,t,n,r,a),!0;case"mouseover":return Bi=Xc(Bi,e,t,n,r,a),!0;case"pointerover":var i=a.pointerId;return of.set(i,Xc(of.get(i)||null,e,t,n,r,a)),!0;case"gotpointercapture":return i=a.pointerId,lf.set(i,Xc(lf.get(i)||null,e,t,n,r,a)),!0}return!1}function IR(e){var t=Lo(e.target);if(t!==null){var n=od(t);if(n!==null){if(t=n.tag,t===13){if(t=aP(n),t!==null){e.blockedOn=t,t2(e.priority,function(){yA(n)});return}}else if(t===31){if(t=iP(n),t!==null){e.blockedOn=t,t2(e.priority,function(){yA(n)});return}}else if(t===3&&n.stateNode.current.memoizedState.isDehydrated){e.blockedOn=n.tag===3?n.stateNode.containerInfo:null;return}}}e.blockedOn=null}function Yh(e){if(e.blockedOn!==null)return!1;for(var t=e.targetContainers;0<t.length;){var n=f0(e.nativeEvent);if(n===null){n=e.nativeEvent;var r=new n.constructor(n.type,n);Cb=r,n.target.dispatchEvent(r),Cb=null}else return t=vc(n),t!==null&&zR(t),e.blockedOn=n,!1;t.shift()}return!0}function gA(e,t,n){Yh(e)&&n.delete(t)}function G8(){d0=!1,Li!==null&&Yh(Li)&&(Li=null),zi!==null&&Yh(zi)&&(zi=null),Bi!==null&&Yh(Bi)&&(Bi=null),of.forEach(gA),lf.forEach(gA)}function rh(e,t){e.blockedOn===t&&(e.blockedOn=null,d0||(d0=!0,$t.unstable_scheduleCallback($t.unstable_NormalPriority,G8)))}var ah=null;function bA(e){ah!==e&&(ah=e,$t.unstable_scheduleCallback($t.unstable_NormalPriority,function(){ah===e&&(ah=null);for(var t=0;t<e.length;t+=3){var n=e[t],r=e[t+1],a=e[t+2];if(typeof r!="function"){if(NS(r||n)===null)continue;break}var i=vc(n);i!==null&&(e.splice(t,3),t-=3,Gb(i,{pending:!0,data:a,method:n.method,action:r},r,a))}}))}function Ll(e){function t(l){return rh(l,e)}Li!==null&&rh(Li,e),zi!==null&&rh(zi,e),Bi!==null&&rh(Bi,e),of.forEach(t),lf.forEach(t);for(var n=0;n<pi.length;n++){var r=pi[n];r.blockedOn===e&&(r.blockedOn=null)}for(;0<pi.length&&(n=pi[0],n.blockedOn===null);)IR(n),n.blockedOn===null&&pi.shift();if(n=(e.ownerDocument||e).$$reactFormReplay,n!=null)for(r=0;r<n.length;r+=3){var a=n[r],i=n[r+1],s=a[Nn]||null;if(typeof i=="function")s||bA(n);else if(s){var o=null;if(i&&i.hasAttribute("formAction")){if(a=i,s=i[Nn]||null)o=s.formAction;else if(NS(a)!==null)continue}else o=s.action;typeof o=="function"?n[r+1]=o:(n.splice(r,3),r-=3),bA(n)}}}function UR(){function e(i){i.canIntercept&&i.info==="react-transition"&&i.intercept({handler:function(){return new Promise(function(s){return a=s})},focusReset:"manual",scroll:"manual"})}function t(){a!==null&&(a(),a=null),r||setTimeout(n,20)}function n(){if(!r&&!navigation.transition){var i=navigation.currentEntry;i&&i.url!=null&&navigation.navigate(i.url,{state:i.getState(),info:"react-transition",history:"replace"})}}if(typeof navigation=="object"){var r=!1,a=null;return navigation.addEventListener("navigate",e),navigation.addEventListener("navigatesuccess",t),navigation.addEventListener("navigateerror",t),setTimeout(n,100),function(){r=!0,navigation.removeEventListener("navigate",e),navigation.removeEventListener("navigatesuccess",t),navigation.removeEventListener("navigateerror",t),a!==null&&(a(),a=null)}}}function _S(e){this._internalRoot=e}xy.prototype.render=_S.prototype.render=function(e){var t=this._internalRoot;if(t===null)throw Error(U(409));var n=t.current,r=Gn();LR(n,r,e,t,null,null)};xy.prototype.unmount=_S.prototype.unmount=function(){var e=this._internalRoot;if(e!==null){this._internalRoot=null;var t=e.containerInfo;LR(e.current,2,null,e,null,null),vy(),t[yc]=null}};function xy(e){this._internalRoot=e}xy.prototype.unstable_scheduleHydration=function(e){if(e){var t=yP();e={blockedOn:null,target:e,priority:t};for(var n=0;n<pi.length&&t!==0&&t<pi[n].priority;n++);pi.splice(n,0,e),n===0&&IR(e)}};var xA=nP.version;if(xA!=="19.2.7")throw Error(U(527,xA,"19.2.7"));De.findDOMNode=function(e){var t=e._reactInternals;if(t===void 0)throw typeof e.render=="function"?Error(U(188)):(e=Object.keys(e).join(","),Error(U(268,e)));return e=w6(t),e=e!==null?sP(e):null,e=e===null?null:e.stateNode,e};var K8={bundleType:0,version:"19.2.7",rendererPackageName:"react-dom",currentDispatcherRef:he,reconcilerVersion:"19.2.7"};if(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__<"u"){var ih=__REACT_DEVTOOLS_GLOBAL_HOOK__;if(!ih.isDisabled&&ih.supportsFiber)try{ld=ih.inject(K8),Hn=ih}catch{}}ry.createRoot=function(e,t){if(!rP(e))throw Error(U(299));var n=!1,r="",a=MM,i=RM,s=DM;return t!=null&&(t.unstable_strictMode===!0&&(n=!0),t.identifierPrefix!==void 0&&(r=t.identifierPrefix),t.onUncaughtError!==void 0&&(a=t.onUncaughtError),t.onCaughtError!==void 0&&(i=t.onCaughtError),t.onRecoverableError!==void 0&&(s=t.onRecoverableError)),t=$R(e,1,!1,null,null,n,r,null,a,i,s,UR),e[yc]=t.current,jS(e),new _S(t)};ry.hydrateRoot=function(e,t,n){if(!rP(e))throw Error(U(299));var r=!1,a="",i=MM,s=RM,o=DM,l=null;return n!=null&&(n.unstable_strictMode===!0&&(r=!0),n.identifierPrefix!==void 0&&(a=n.identifierPrefix),n.onUncaughtError!==void 0&&(i=n.onUncaughtError),n.onCaughtError!==void 0&&(s=n.onCaughtError),n.onRecoverableError!==void 0&&(o=n.onRecoverableError),n.formState!==void 0&&(l=n.formState)),t=$R(e,1,!0,t,n??null,r,a,l,i,s,o,UR),t.context=kR(null),n=t.current,r=Gn(),r=L1(r),a=Ri(r),a.callback=null,Di(n,a,r),n=r,t.current.lanes=n,ud(t,n),la(t),e[yc]=t.current,jS(e),new xy(t)};ry.version="19.2.7";function qR(){if(!(typeof __REACT_DEVTOOLS_GLOBAL_HOOK__>"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(qR)}catch(e){console.error(e)}}qR(),WC.exports=ry;var Y8=WC.exports;const X8=ze(Y8);var bd=class{constructor(){this.listeners=new Set,this.subscribe=this.subscribe.bind(this)}subscribe(e){return this.listeners.add(e),this.onSubscribe(),()=>{this.listeners.delete(e),this.onUnsubscribe()}}hasListeners(){return this.listeners.size>0}onSubscribe(){}onUnsubscribe(){}},Ns,yi,pl,PC,W8=(PC=class extends bd{constructor(){super();ce(this,Ns);ce(this,yi);ce(this,pl);J(this,pl,t=>{if(typeof window<"u"&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){P(this,yi)||this.setEventListener(P(this,pl))}onUnsubscribe(){var t;this.hasListeners()||((t=P(this,yi))==null||t.call(this),J(this,yi,void 0))}setEventListener(t){var n;J(this,pl,t),(n=P(this,yi))==null||n.call(this),J(this,yi,t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(t){P(this,Ns)!==t&&(J(this,Ns,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof P(this,Ns)=="boolean"?P(this,Ns):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},Ns=new WeakMap,yi=new WeakMap,pl=new WeakMap,PC),CS=new W8,Q8={setTimeout:(e,t)=>setTimeout(e,t),clearTimeout:e=>clearTimeout(e),setInterval:(e,t)=>setInterval(e,t),clearInterval:e=>clearInterval(e)},vi,N1,MC,Z8=(MC=class{constructor(){ce(this,vi,Q8);ce(this,N1,!1)}setTimeoutProvider(e){J(this,vi,e)}setTimeout(e,t){return P(this,vi).setTimeout(e,t)}clearTimeout(e){P(this,vi).clearTimeout(e)}setInterval(e,t){return P(this,vi).setInterval(e,t)}clearInterval(e){P(this,vi).clearInterval(e)}},vi=new WeakMap,N1=new WeakMap,MC),xs=new Z8;function J8(e){setTimeout(e,0)}var eB=typeof window>"u"||"Deno"in globalThis;function An(){}function tB(e,t){return typeof e=="function"?e(t):e}function h0(e){return typeof e=="number"&&e>=0&&e!==1/0}function VR(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Ii(e,t){return typeof e=="function"?e(t):e}function Ln(e,t){return typeof e=="function"?e(t):e}function SA(e,t){const{type:n="all",exact:r,fetchStatus:a,predicate:i,queryKey:s,stale:o}=e;if(s){if(r){if(t.queryHash!==PS(s,t.options))return!1}else if(!uf(t.queryKey,s))return!1}if(n!=="all"){const l=t.isActive();if(n==="active"&&!l||n==="inactive"&&l)return!1}return!(typeof o=="boolean"&&t.isStale()!==o||a&&a!==t.state.fetchStatus||i&&!i(t))}function wA(e,t){const{exact:n,status:r,predicate:a,mutationKey:i}=e;if(i){if(!t.options.mutationKey)return!1;if(n){if(cf(t.options.mutationKey)!==cf(i))return!1}else if(!uf(t.options.mutationKey,i))return!1}return!(r&&t.state.status!==r||a&&!a(t))}function PS(e,t){return((t==null?void 0:t.queryKeyHashFn)||cf)(e)}function cf(e){return JSON.stringify(e,(t,n)=>m0(n)?Object.keys(n).sort().reduce((r,a)=>(r[a]=n[a],r),{}):n)}function uf(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?Object.keys(t).every(n=>uf(e[n],t[n])):!1}var nB=Object.prototype.hasOwnProperty;function HR(e,t,n=0){if(e===t)return e;if(n>500)return t;const r=jA(e)&&jA(t);if(!r&&!(m0(e)&&m0(t)))return t;const i=(r?e:Object.keys(e)).length,s=r?t:Object.keys(t),o=s.length,l=r?new Array(o):{};let c=0;for(let f=0;f<o;f++){const d=r?f:s[f],h=e[d],p=t[d];if(h===p){l[d]=h,(r?f<i:nB.call(e,d))&&c++;continue}if(h===null||p===null||typeof h!="object"||typeof p!="object"){l[d]=p;continue}const v=HR(h,p,n+1);l[d]=v,v===h&&c++}return i===o&&c===i?e:l}function p0(e,t){if(!t||Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(e[n]!==t[n])return!1;return!0}function jA(e){return Array.isArray(e)&&e.length===Object.keys(e).length}function m0(e){if(!AA(e))return!1;const t=e.constructor;if(t===void 0)return!0;const n=t.prototype;return!(!AA(n)||!n.hasOwnProperty("isPrototypeOf")||Object.getPrototypeOf(e)!==Object.prototype)}function AA(e){return Object.prototype.toString.call(e)==="[object Object]"}function rB(e){return new Promise(t=>{xs.setTimeout(t,e)})}function y0(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?HR(e,t):t}function aB(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function iB(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var MS=Symbol();function FR(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===MS?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}function GR(e,t){return typeof e=="function"?e(...t):!!e}function sB(e,t,n){let r=!1,a;return Object.defineProperty(e,"signal",{enumerable:!0,get:()=>(a??(a=t()),r||(r=!0,a.aborted?n():a.addEventListener("abort",n,{once:!0})),a)}),e}var ff=(()=>{let e=()=>eB;return{isServer(){return e()},setIsServer(t){e=t}}})();function v0(){let e,t;const n=new Promise((a,i)=>{e=a,t=i});n.status="pending",n.catch(()=>{});function r(a){Object.assign(n,a),delete n.resolve,delete n.reject}return n.resolve=a=>{r({status:"fulfilled",value:a}),e(a)},n.reject=a=>{r({status:"rejected",reason:a}),t(a)},n}var oB=J8;function lB(){let e=[],t=0,n=o=>{o()},r=o=>{o()},a=oB;const i=o=>{t?e.push(o):a(()=>{n(o)})},s=()=>{const o=e;e=[],o.length&&a(()=>{r(()=>{o.forEach(l=>{n(l)})})})};return{batch:o=>{let l;t++;try{l=o()}finally{t--,t||s()}return l},batchCalls:o=>(...l)=>{i(()=>{o(...l)})},schedule:i,setNotifyFunction:o=>{n=o},setBatchNotifyFunction:o=>{r=o},setScheduler:o=>{a=o}}}var Xt=lB(),ml,gi,yl,RC,cB=(RC=class extends bd{constructor(){super();ce(this,ml,!0);ce(this,gi);ce(this,yl);J(this,yl,t=>{if(typeof window<"u"&&window.addEventListener){const n=()=>t(!0),r=()=>t(!1);return window.addEventListener("online",n,!1),window.addEventListener("offline",r,!1),()=>{window.removeEventListener("online",n),window.removeEventListener("offline",r)}}})}onSubscribe(){P(this,gi)||this.setEventListener(P(this,yl))}onUnsubscribe(){var t;this.hasListeners()||((t=P(this,gi))==null||t.call(this),J(this,gi,void 0))}setEventListener(t){var n;J(this,yl,t),(n=P(this,gi))==null||n.call(this),J(this,gi,t(this.setOnline.bind(this)))}setOnline(t){P(this,ml)!==t&&(J(this,ml,t),this.listeners.forEach(r=>{r(t)}))}isOnline(){return P(this,ml)}},ml=new WeakMap,gi=new WeakMap,yl=new WeakMap,RC),kp=new cB;function uB(e){return Math.min(1e3*2**e,3e4)}function KR(e){return(e??"online")==="online"?kp.isOnline():!0}var g0=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function YR(e){let t=!1,n=0,r;const a=v0(),i=()=>a.status!=="pending",s=y=>{var b;if(!i()){const m=new g0(y);h(m),(b=e.onCancel)==null||b.call(e,m)}},o=()=>{t=!0},l=()=>{t=!1},c=()=>CS.isFocused()&&(e.networkMode==="always"||kp.isOnline())&&e.canRun(),f=()=>KR(e.networkMode)&&e.canRun(),d=y=>{i()||(r==null||r(),a.resolve(y))},h=y=>{i()||(r==null||r(),a.reject(y))},p=()=>new Promise(y=>{var b;r=m=>{(i()||c())&&y(m)},(b=e.onPause)==null||b.call(e)}).then(()=>{var y;r=void 0,i()||(y=e.onContinue)==null||y.call(e)}),v=()=>{if(i())return;let y;const b=n===0?e.initialPromise:void 0;try{y=b??e.fn()}catch(m){y=Promise.reject(m)}Promise.resolve(y).then(d).catch(m=>{var j;if(i())return;const g=e.retry??(ff.isServer()?0:3),x=e.retryDelay??uB,w=typeof x=="function"?x(n,m):x,S=g===!0||typeof g=="number"&&n<g||typeof g=="function"&&g(n,m);if(t||!S){h(m);return}n++,(j=e.onFail)==null||j.call(e,n,m),rB(w).then(()=>c()?void 0:p()).then(()=>{t?h(m):v()})})};return{promise:a,status:()=>a.status,cancel:s,continue:()=>(r==null||r(),a),cancelRetry:o,continueRetry:l,canStart:f,start:()=>(f()?v():p().then(v),a)}}var _s,DC,XR=(DC=class{constructor(){ce(this,_s)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),h0(this.gcTime)&&J(this,_s,xs.setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(ff.isServer()?1/0:5*60*1e3))}clearGcTimeout(){P(this,_s)!==void 0&&(xs.clearTimeout(P(this,_s)),J(this,_s,void 0))}},_s=new WeakMap,DC);function fB(e){return{onFetch:(t,n)=>{var f,d,h,p,v;const r=t.options,a=(h=(d=(f=t.fetchOptions)==null?void 0:f.meta)==null?void 0:d.fetchMore)==null?void 0:h.direction,i=((p=t.state.data)==null?void 0:p.pages)||[],s=((v=t.state.data)==null?void 0:v.pageParams)||[];let o={pages:[],pageParams:[]},l=0;const c=async()=>{let y=!1;const b=x=>{sB(x,()=>t.signal,()=>y=!0)},m=FR(t.options,t.fetchOptions),g=async(x,w,S)=>{if(y)return Promise.reject(t.signal.reason);if(w==null&&x.pages.length)return Promise.resolve(x);const O=(()=>{const M={client:t.client,queryKey:t.queryKey,pageParam:w,direction:S?"backward":"forward",meta:t.options.meta};return b(M),M})(),E=await m(O),{maxPages:T}=t.options,_=S?iB:aB;return{pages:_(x.pages,E,T),pageParams:_(x.pageParams,w,T)}};if(a&&i.length){const x=a==="backward",w=x?dB:OA,S={pages:i,pageParams:s},j=w(r,S);o=await g(S,j,x)}else{const x=e??i.length;do{const w=l===0?s[0]??r.initialPageParam:OA(r,o);if(l>0&&w==null)break;o=await g(o,w),l++}while(l<x)}return o};t.options.persister?t.fetchFn=()=>{var y,b;return(b=(y=t.options).persister)==null?void 0:b.call(y,c,{client:t.client,queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=c}}}function OA(e,{pages:t,pageParams:n}){const r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function dB(e,{pages:t,pageParams:n}){var r;return t.length>0?(r=e.getPreviousPageParam)==null?void 0:r.call(e,t[0],t,n[0],n):void 0}var vl,Cs,gl,ar,Ps,zt,nd,Ms,kn,WR,ba,$C,hB=($C=class extends XR{constructor(t){super();ce(this,kn);ce(this,vl);ce(this,Cs);ce(this,gl);ce(this,ar);ce(this,Ps);ce(this,zt);ce(this,nd);ce(this,Ms);J(this,Ms,!1),J(this,nd,t.defaultOptions),this.setOptions(t.options),this.observers=[],J(this,Ps,t.client),J(this,ar,P(this,Ps).getQueryCache()),this.queryKey=t.queryKey,this.queryHash=t.queryHash,J(this,Cs,TA(this.options)),this.state=t.state??P(this,Cs),this.scheduleGc()}get meta(){return this.options.meta}get queryType(){return P(this,vl)}get promise(){var t;return(t=P(this,zt))==null?void 0:t.promise}setOptions(t){if(this.options={...P(this,nd),...t},t!=null&&t._type&&J(this,vl,t._type),this.updateGcTime(this.options.gcTime),this.state&&this.state.data===void 0){const n=TA(this.options);n.data!==void 0&&(this.setState(EA(n.data,n.dataUpdatedAt)),J(this,Cs,n))}}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&P(this,ar).remove(this)}setData(t,n){const r=y0(this.state.data,t,this.options);return Ae(this,kn,ba).call(this,{data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t){Ae(this,kn,ba).call(this,{type:"setState",state:t})}cancel(t){var r,a;const n=(r=P(this,zt))==null?void 0:r.promise;return(a=P(this,zt))==null||a.cancel(t),n?n.then(An).catch(An):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}get resetState(){return P(this,Cs)}reset(){this.destroy(),this.setState(this.resetState)}isActive(){return this.observers.some(t=>Ln(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0?!this.isActive():this.options.queryFn===MS||!this.isFetched()}isFetched(){return this.state.dataUpdateCount+this.state.errorUpdateCount>0}isStatic(){return this.getObserversCount()>0?this.observers.some(t=>Ii(t.options.staleTime,this)==="static"):!1}isStale(){return this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0||this.state.isInvalidated}isStaleByTime(t=0){return this.state.data===void 0?!0:t==="static"?!1:this.state.isInvalidated?!0:!VR(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=this.observers.find(r=>r.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=P(this,zt))==null||n.continue()}onOnline(){var n;const t=this.observers.find(r=>r.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=P(this,zt))==null||n.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),P(this,ar).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(P(this,zt)&&(P(this,Ms)||Ae(this,kn,WR).call(this)?P(this,zt).cancel({revert:!0}):P(this,zt).cancelRetry()),this.scheduleGc()),P(this,ar).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||Ae(this,kn,ba).call(this,{type:"invalidate"})}async fetch(t,n){var c,f,d,h,p,v,y,b,m,g,x;if(this.state.fetchStatus!=="idle"&&((c=P(this,zt))==null?void 0:c.status())!=="rejected"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(P(this,zt))return P(this,zt).continueRetry(),P(this,zt).promise}if(t&&this.setOptions(t),!this.options.queryFn){const w=this.observers.find(S=>S.options.queryFn);w&&this.setOptions(w.options)}const r=new AbortController,a=w=>{Object.defineProperty(w,"signal",{enumerable:!0,get:()=>(J(this,Ms,!0),r.signal)})},i=()=>{const w=FR(this.options,n),j=(()=>{const O={client:P(this,Ps),queryKey:this.queryKey,meta:this.meta};return a(O),O})();return J(this,Ms,!1),this.options.persister?this.options.persister(w,j,this):w(j)},o=(()=>{const w={fetchOptions:n,options:this.options,queryKey:this.queryKey,client:P(this,Ps),state:this.state,fetchFn:i};return a(w),w})(),l=P(this,vl)==="infinite"?fB(this.options.pages):this.options.behavior;l==null||l.onFetch(o,this),J(this,gl,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((f=o.fetchOptions)==null?void 0:f.meta))&&Ae(this,kn,ba).call(this,{type:"fetch",meta:(d=o.fetchOptions)==null?void 0:d.meta}),J(this,zt,YR({initialPromise:n==null?void 0:n.initialPromise,fn:o.fetchFn,onCancel:w=>{w instanceof g0&&w.revert&&this.setState({...P(this,gl),fetchStatus:"idle"}),r.abort()},onFail:(w,S)=>{Ae(this,kn,ba).call(this,{type:"failed",failureCount:w,error:S})},onPause:()=>{Ae(this,kn,ba).call(this,{type:"pause"})},onContinue:()=>{Ae(this,kn,ba).call(this,{type:"continue"})},retry:o.options.retry,retryDelay:o.options.retryDelay,networkMode:o.options.networkMode,canRun:()=>!0}));try{const w=await P(this,zt).start();if(w===void 0)throw new Error(`${this.queryHash} data is undefined`);return this.setData(w),(p=(h=P(this,ar).config).onSuccess)==null||p.call(h,w,this),(y=(v=P(this,ar).config).onSettled)==null||y.call(v,w,this.state.error,this),w}catch(w){if(w instanceof g0){if(w.silent)return P(this,zt).promise;if(w.revert){if(this.state.data===void 0)throw w;return this.state.data}}throw Ae(this,kn,ba).call(this,{type:"error",error:w}),(m=(b=P(this,ar).config).onError)==null||m.call(b,w,this),(x=(g=P(this,ar).config).onSettled)==null||x.call(g,this.state.data,w,this),w}finally{this.scheduleGc()}}},vl=new WeakMap,Cs=new WeakMap,gl=new WeakMap,ar=new WeakMap,Ps=new WeakMap,zt=new WeakMap,nd=new WeakMap,Ms=new WeakMap,kn=new WeakSet,WR=function(){return this.state.fetchStatus==="paused"&&this.state.status==="pending"},ba=function(t){const n=r=>{switch(t.type){case"failed":return{...r,fetchFailureCount:t.failureCount,fetchFailureReason:t.error};case"pause":return{...r,fetchStatus:"paused"};case"continue":return{...r,fetchStatus:"fetching"};case"fetch":return{...r,...QR(r.data,this.options),fetchMeta:t.meta??null};case"success":const a={...r,...EA(t.data,t.dataUpdatedAt),dataUpdateCount:r.dataUpdateCount+1,...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};return J(this,gl,t.manual?a:void 0),a;case"error":const i=t.error;return{...r,error:i,errorUpdateCount:r.errorUpdateCount+1,errorUpdatedAt:Date.now(),fetchFailureCount:r.fetchFailureCount+1,fetchFailureReason:i,fetchStatus:"idle",status:"error",isInvalidated:!0};case"invalidate":return{...r,isInvalidated:!0};case"setState":return{...r,...t.state}}};this.state=n(this.state),Xt.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),P(this,ar).notify({query:this,type:"updated",action:t})})},$C);function QR(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:KR(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function EA(e,t){return{data:e,dataUpdatedAt:t??Date.now(),error:null,isInvalidated:!1,status:"success"}}function TA(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var Sn,Te,rd,ln,Rs,bl,wa,bi,ad,xl,Sl,Ds,$s,xi,wl,Le,yu,b0,x0,S0,w0,j0,A0,O0,ZR,kC,pB=(kC=class extends bd{constructor(t,n){super();ce(this,Le);ce(this,Sn);ce(this,Te);ce(this,rd);ce(this,ln);ce(this,Rs);ce(this,bl);ce(this,wa);ce(this,bi);ce(this,ad);ce(this,xl);ce(this,Sl);ce(this,Ds);ce(this,$s);ce(this,xi);ce(this,wl,new Set);this.options=n,J(this,Sn,t),J(this,bi,null),J(this,wa,v0()),this.bindMethods(),this.setOptions(n)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(P(this,Te).addObserver(this),NA(P(this,Te),this.options)?Ae(this,Le,yu).call(this):this.updateResult(),Ae(this,Le,w0).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return E0(P(this,Te),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return E0(P(this,Te),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,Ae(this,Le,j0).call(this),Ae(this,Le,A0).call(this),P(this,Te).removeObserver(this)}setOptions(t){const n=this.options,r=P(this,Te);if(this.options=P(this,Sn).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof Ln(this.options.enabled,P(this,Te))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");Ae(this,Le,O0).call(this),P(this,Te).setOptions(this.options),n._defaulted&&!p0(this.options,n)&&P(this,Sn).getQueryCache().notify({type:"observerOptionsUpdated",query:P(this,Te),observer:this});const a=this.hasListeners();a&&_A(P(this,Te),r,this.options,n)&&Ae(this,Le,yu).call(this),this.updateResult(),a&&(P(this,Te)!==r||Ln(this.options.enabled,P(this,Te))!==Ln(n.enabled,P(this,Te))||Ii(this.options.staleTime,P(this,Te))!==Ii(n.staleTime,P(this,Te)))&&Ae(this,Le,b0).call(this);const i=Ae(this,Le,x0).call(this);a&&(P(this,Te)!==r||Ln(this.options.enabled,P(this,Te))!==Ln(n.enabled,P(this,Te))||i!==P(this,xi))&&Ae(this,Le,S0).call(this,i)}getOptimisticResult(t){const n=P(this,Sn).getQueryCache().build(P(this,Sn),t),r=this.createResult(n,t);return yB(this,r)&&(J(this,ln,r),J(this,bl,this.options),J(this,Rs,P(this,Te).state)),r}getCurrentResult(){return P(this,ln)}trackResult(t,n){return new Proxy(t,{get:(r,a)=>(this.trackProp(a),n==null||n(a),a==="promise"&&(this.trackProp("data"),!this.options.experimental_prefetchInRender&&P(this,wa).status==="pending"&&P(this,wa).reject(new Error("experimental_prefetchInRender feature flag is not enabled"))),Reflect.get(r,a))})}trackProp(t){P(this,wl).add(t)}getCurrentQuery(){return P(this,Te)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const n=P(this,Sn).defaultQueryOptions(t),r=P(this,Sn).getQueryCache().build(P(this,Sn),n);return r.fetch().then(()=>this.createResult(r,n))}fetch(t){return Ae(this,Le,yu).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),P(this,ln)))}createResult(t,n){var T;const r=P(this,Te),a=this.options,i=P(this,ln),s=P(this,Rs),o=P(this,bl),c=t!==r?t.state:P(this,rd),{state:f}=t;let d={...f},h=!1,p;if(n._optimisticResults){const _=this.hasListeners(),M=!_&&NA(t,n),C=_&&_A(t,r,n,a);(M||C)&&(d={...d,...QR(f.data,t.options)}),n._optimisticResults==="isRestoring"&&(d.fetchStatus="idle")}let{error:v,errorUpdatedAt:y,status:b}=d;p=d.data;let m=!1;if(n.placeholderData!==void 0&&p===void 0&&b==="pending"){let _;i!=null&&i.isPlaceholderData&&n.placeholderData===(o==null?void 0:o.placeholderData)?(_=i.data,m=!0):_=typeof n.placeholderData=="function"?n.placeholderData((T=P(this,Sl))==null?void 0:T.state.data,P(this,Sl)):n.placeholderData,_!==void 0&&(b="success",p=y0(i==null?void 0:i.data,_,n),h=!0)}if(n.select&&p!==void 0&&!m)if(i&&p===(s==null?void 0:s.data)&&n.select===P(this,ad))p=P(this,xl);else try{J(this,ad,n.select),p=n.select(p),p=y0(i==null?void 0:i.data,p,n),J(this,xl,p),J(this,bi,null)}catch(_){J(this,bi,_)}P(this,bi)&&(v=P(this,bi),p=P(this,xl),y=Date.now(),b="error");const g=d.fetchStatus==="fetching",x=b==="pending",w=b==="error",S=x&&g,j=p!==void 0,E={status:b,fetchStatus:d.fetchStatus,isPending:x,isSuccess:b==="success",isError:w,isInitialLoading:S,isLoading:S,data:p,dataUpdatedAt:d.dataUpdatedAt,error:v,errorUpdatedAt:y,failureCount:d.fetchFailureCount,failureReason:d.fetchFailureReason,errorUpdateCount:d.errorUpdateCount,isFetched:t.isFetched(),isFetchedAfterMount:d.dataUpdateCount>c.dataUpdateCount||d.errorUpdateCount>c.errorUpdateCount,isFetching:g,isRefetching:g&&!x,isLoadingError:w&&!j,isPaused:d.fetchStatus==="paused",isPlaceholderData:h,isRefetchError:w&&j,isStale:RS(t,n),refetch:this.refetch,promise:P(this,wa),isEnabled:Ln(n.enabled,t)!==!1};if(this.options.experimental_prefetchInRender){const _=E.data!==void 0,M=E.status==="error"&&!_,C=k=>{M?k.reject(E.error):_&&k.resolve(E.data)},z=()=>{const k=J(this,wa,E.promise=v0());C(k)},L=P(this,wa);switch(L.status){case"pending":t.queryHash===r.queryHash&&C(L);break;case"fulfilled":(M||E.data!==L.value)&&z();break;case"rejected":(!M||E.error!==L.reason)&&z();break}}return E}updateResult(){const t=P(this,ln),n=this.createResult(P(this,Te),this.options);if(J(this,Rs,P(this,Te).state),J(this,bl,this.options),P(this,Rs).data!==void 0&&J(this,Sl,P(this,Te)),p0(n,t))return;J(this,ln,n);const r=()=>{if(!t)return!0;const{notifyOnChangeProps:a}=this.options,i=typeof a=="function"?a():a;if(i==="all"||!i&&!P(this,wl).size)return!0;const s=new Set(i??P(this,wl));return this.options.throwOnError&&s.add("error"),Object.keys(P(this,ln)).some(o=>{const l=o;return P(this,ln)[l]!==t[l]&&s.has(l)})};Ae(this,Le,ZR).call(this,{listeners:r()})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&Ae(this,Le,w0).call(this)}},Sn=new WeakMap,Te=new WeakMap,rd=new WeakMap,ln=new WeakMap,Rs=new WeakMap,bl=new WeakMap,wa=new WeakMap,bi=new WeakMap,ad=new WeakMap,xl=new WeakMap,Sl=new WeakMap,Ds=new WeakMap,$s=new WeakMap,xi=new WeakMap,wl=new WeakMap,Le=new WeakSet,yu=function(t){Ae(this,Le,O0).call(this);let n=P(this,Te).fetch(this.options,t);return t!=null&&t.throwOnError||(n=n.catch(An)),n},b0=function(){Ae(this,Le,j0).call(this);const t=Ii(this.options.staleTime,P(this,Te));if(ff.isServer()||P(this,ln).isStale||!h0(t))return;const r=VR(P(this,ln).dataUpdatedAt,t)+1;J(this,Ds,xs.setTimeout(()=>{P(this,ln).isStale||this.updateResult()},r))},x0=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(P(this,Te)):this.options.refetchInterval)??!1},S0=function(t){Ae(this,Le,A0).call(this),J(this,xi,t),!(ff.isServer()||Ln(this.options.enabled,P(this,Te))===!1||!h0(P(this,xi))||P(this,xi)===0)&&J(this,$s,xs.setInterval(()=>{(this.options.refetchIntervalInBackground||CS.isFocused())&&Ae(this,Le,yu).call(this)},P(this,xi)))},w0=function(){Ae(this,Le,b0).call(this),Ae(this,Le,S0).call(this,Ae(this,Le,x0).call(this))},j0=function(){P(this,Ds)!==void 0&&(xs.clearTimeout(P(this,Ds)),J(this,Ds,void 0))},A0=function(){P(this,$s)!==void 0&&(xs.clearInterval(P(this,$s)),J(this,$s,void 0))},O0=function(){const t=P(this,Sn).getQueryCache().build(P(this,Sn),this.options);if(t===P(this,Te))return;const n=P(this,Te);J(this,Te,t),J(this,rd,t.state),this.hasListeners()&&(n==null||n.removeObserver(this),t.addObserver(this))},ZR=function(t){Xt.batch(()=>{t.listeners&&this.listeners.forEach(n=>{n(P(this,ln))}),P(this,Sn).getQueryCache().notify({query:P(this,Te),type:"observerResultsUpdated"})})},kC);function mB(e,t){return Ln(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&Ln(t.retryOnMount,e)===!1)}function NA(e,t){return mB(e,t)||e.state.data!==void 0&&E0(e,t,t.refetchOnMount)}function E0(e,t,n){if(Ln(t.enabled,e)!==!1&&Ii(t.staleTime,e)!=="static"){const r=typeof n=="function"?n(e):n;return r==="always"||r!==!1&&RS(e,t)}return!1}function _A(e,t,n,r){return(e!==t||Ln(r.enabled,e)===!1)&&(!n.suspense||e.state.status!=="error")&&RS(e,n)}function RS(e,t){return Ln(t.enabled,e)!==!1&&e.isStaleByTime(Ii(t.staleTime,e))}function yB(e,t){return!p0(e.getCurrentResult(),t)}var id,qr,nn,ks,Vr,ai,LC,vB=(LC=class extends XR{constructor(t){super();ce(this,Vr);ce(this,id);ce(this,qr);ce(this,nn);ce(this,ks);J(this,id,t.client),this.mutationId=t.mutationId,J(this,nn,t.mutationCache),J(this,qr,[]),this.state=t.state||gB(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){P(this,qr).includes(t)||(P(this,qr).push(t),this.clearGcTimeout(),P(this,nn).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){J(this,qr,P(this,qr).filter(n=>n!==t)),this.scheduleGc(),P(this,nn).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){P(this,qr).length||(this.state.status==="pending"?this.scheduleGc():P(this,nn).remove(this))}continue(){var t;return((t=P(this,ks))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var s,o,l,c,f,d,h,p,v,y,b,m,g,x,w,S,j,O;const n=()=>{Ae(this,Vr,ai).call(this,{type:"continue"})},r={client:P(this,id),meta:this.options.meta,mutationKey:this.options.mutationKey};J(this,ks,YR({fn:()=>this.options.mutationFn?this.options.mutationFn(t,r):Promise.reject(new Error("No mutationFn found")),onFail:(E,T)=>{Ae(this,Vr,ai).call(this,{type:"failed",failureCount:E,error:T})},onPause:()=>{Ae(this,Vr,ai).call(this,{type:"pause"})},onContinue:n,retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>P(this,nn).canRun(this)}));const a=this.state.status==="pending",i=!P(this,ks).canStart();try{if(a)n();else{Ae(this,Vr,ai).call(this,{type:"pending",variables:t,isPaused:i}),P(this,nn).config.onMutate&&await P(this,nn).config.onMutate(t,this,r);const T=await((o=(s=this.options).onMutate)==null?void 0:o.call(s,t,r));T!==this.state.context&&Ae(this,Vr,ai).call(this,{type:"pending",context:T,variables:t,isPaused:i})}const E=await P(this,ks).start();return await((c=(l=P(this,nn).config).onSuccess)==null?void 0:c.call(l,E,t,this.state.context,this,r)),await((d=(f=this.options).onSuccess)==null?void 0:d.call(f,E,t,this.state.context,r)),await((p=(h=P(this,nn).config).onSettled)==null?void 0:p.call(h,E,null,this.state.variables,this.state.context,this,r)),await((y=(v=this.options).onSettled)==null?void 0:y.call(v,E,null,t,this.state.context,r)),Ae(this,Vr,ai).call(this,{type:"success",data:E}),E}catch(E){try{await((m=(b=P(this,nn).config).onError)==null?void 0:m.call(b,E,t,this.state.context,this,r))}catch(T){Promise.reject(T)}try{await((x=(g=this.options).onError)==null?void 0:x.call(g,E,t,this.state.context,r))}catch(T){Promise.reject(T)}try{await((S=(w=P(this,nn).config).onSettled)==null?void 0:S.call(w,void 0,E,this.state.variables,this.state.context,this,r))}catch(T){Promise.reject(T)}try{await((O=(j=this.options).onSettled)==null?void 0:O.call(j,void 0,E,t,this.state.context,r))}catch(T){Promise.reject(T)}throw Ae(this,Vr,ai).call(this,{type:"error",error:E}),E}finally{P(this,nn).runNext(this)}}},id=new WeakMap,qr=new WeakMap,nn=new WeakMap,ks=new WeakMap,Vr=new WeakSet,ai=function(t){const n=r=>{switch(t.type){case"failed":return{...r,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"pending":return{...r,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...r,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:t.error,failureCount:r.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=n(this.state),Xt.batch(()=>{P(this,qr).forEach(r=>{r.onMutationUpdate(t)}),P(this,nn).notify({mutation:this,type:"updated",action:t})})},LC);function gB(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var ja,Nr,sd,zC,bB=(zC=class extends bd{constructor(t={}){super();ce(this,ja);ce(this,Nr);ce(this,sd);this.config=t,J(this,ja,new Set),J(this,Nr,new Map),J(this,sd,0)}build(t,n,r){const a=new vB({client:t,mutationCache:this,mutationId:++qd(this,sd)._,options:t.defaultMutationOptions(n),state:r});return this.add(a),a}add(t){P(this,ja).add(t);const n=sh(t);if(typeof n=="string"){const r=P(this,Nr).get(n);r?r.push(t):P(this,Nr).set(n,[t])}this.notify({type:"added",mutation:t})}remove(t){if(P(this,ja).delete(t)){const n=sh(t);if(typeof n=="string"){const r=P(this,Nr).get(n);if(r)if(r.length>1){const a=r.indexOf(t);a!==-1&&r.splice(a,1)}else r[0]===t&&P(this,Nr).delete(n)}}this.notify({type:"removed",mutation:t})}canRun(t){const n=sh(t);if(typeof n=="string"){const r=P(this,Nr).get(n),a=r==null?void 0:r.find(i=>i.state.status==="pending");return!a||a===t}else return!0}runNext(t){var r;const n=sh(t);if(typeof n=="string"){const a=(r=P(this,Nr).get(n))==null?void 0:r.find(i=>i!==t&&i.state.isPaused);return(a==null?void 0:a.continue())??Promise.resolve()}else return Promise.resolve()}clear(){Xt.batch(()=>{P(this,ja).forEach(t=>{this.notify({type:"removed",mutation:t})}),P(this,ja).clear(),P(this,Nr).clear()})}getAll(){return Array.from(P(this,ja))}find(t){const n={exact:!0,...t};return this.getAll().find(r=>wA(n,r))}findAll(t={}){return this.getAll().filter(n=>wA(t,n))}notify(t){Xt.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return Xt.batch(()=>Promise.all(t.map(n=>n.continue().catch(An))))}},ja=new WeakMap,Nr=new WeakMap,sd=new WeakMap,zC);function sh(e){var t;return(t=e.options.scope)==null?void 0:t.id}var Hr,BC,xB=(BC=class extends bd{constructor(t={}){super();ce(this,Hr);this.config=t,J(this,Hr,new Map)}build(t,n,r){const a=n.queryKey,i=n.queryHash??PS(a,n);let s=this.get(i);return s||(s=new hB({client:t,queryKey:a,queryHash:i,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(a)}),this.add(s)),s}add(t){P(this,Hr).has(t.queryHash)||(P(this,Hr).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=P(this,Hr).get(t.queryHash);n&&(t.destroy(),n===t&&P(this,Hr).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){Xt.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return P(this,Hr).get(t)}getAll(){return[...P(this,Hr).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(r=>SA(n,r))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(r=>SA(t,r)):n}notify(t){Xt.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){Xt.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){Xt.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},Hr=new WeakMap,BC),pt,Si,wi,jl,Al,ji,Ol,El,IC,SB=(IC=class{constructor(e={}){ce(this,pt);ce(this,Si);ce(this,wi);ce(this,jl);ce(this,Al);ce(this,ji);ce(this,Ol);ce(this,El);J(this,pt,e.queryCache||new xB),J(this,Si,e.mutationCache||new bB),J(this,wi,e.defaultOptions||{}),J(this,jl,new Map),J(this,Al,new Map),J(this,ji,0)}mount(){qd(this,ji)._++,P(this,ji)===1&&(J(this,Ol,CS.subscribe(async e=>{e&&(await this.resumePausedMutations(),P(this,pt).onFocus())})),J(this,El,kp.subscribe(async e=>{e&&(await this.resumePausedMutations(),P(this,pt).onOnline())})))}unmount(){var e,t;qd(this,ji)._--,P(this,ji)===0&&((e=P(this,Ol))==null||e.call(this),J(this,Ol,void 0),(t=P(this,El))==null||t.call(this),J(this,El,void 0))}isFetching(e){return P(this,pt).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return P(this,Si).findAll({...e,status:"pending"}).length}getQueryData(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=P(this,pt).get(t.queryHash))==null?void 0:n.state.data}ensureQueryData(e){const t=this.defaultQueryOptions(e),n=P(this,pt).build(this,t),r=n.state.data;return r===void 0?this.fetchQuery(e):(e.revalidateIfStale&&n.isStaleByTime(Ii(t.staleTime,n))&&this.prefetchQuery(t),Promise.resolve(r))}getQueriesData(e){return P(this,pt).findAll(e).map(({queryKey:t,state:n})=>{const r=n.data;return[t,r]})}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),a=P(this,pt).get(r.queryHash),i=a==null?void 0:a.state.data,s=tB(t,i);if(s!==void 0)return P(this,pt).build(this,r).setData(s,{...n,manual:!0})}setQueriesData(e,t,n){return Xt.batch(()=>P(this,pt).findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=P(this,pt).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=P(this,pt);Xt.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=P(this,pt);return Xt.batch(()=>(n.findAll(e).forEach(r=>{r.reset()}),this.refetchQueries({type:"active",...e},t)))}cancelQueries(e,t={}){const n={revert:!0,...t},r=Xt.batch(()=>P(this,pt).findAll(e).map(a=>a.cancel(n)));return Promise.all(r).then(An).catch(An)}invalidateQueries(e,t={}){return Xt.batch(()=>(P(this,pt).findAll(e).forEach(n=>{n.invalidate()}),(e==null?void 0:e.refetchType)==="none"?Promise.resolve():this.refetchQueries({...e,type:(e==null?void 0:e.refetchType)??(e==null?void 0:e.type)??"active"},t)))}refetchQueries(e,t={}){const n={...t,cancelRefetch:t.cancelRefetch??!0},r=Xt.batch(()=>P(this,pt).findAll(e).filter(a=>!a.isDisabled()&&!a.isStatic()).map(a=>{let i=a.fetch(void 0,n);return n.throwOnError||(i=i.catch(An)),a.state.fetchStatus==="paused"?Promise.resolve():i}));return Promise.all(r).then(An)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=P(this,pt).build(this,t);return n.isStaleByTime(Ii(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(An).catch(An)}fetchInfiniteQuery(e){return e._type="infinite",this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(An).catch(An)}ensureInfiniteQueryData(e){return e._type="infinite",this.ensureQueryData(e)}resumePausedMutations(){return kp.isOnline()?P(this,Si).resumePausedMutations():Promise.resolve()}getQueryCache(){return P(this,pt)}getMutationCache(){return P(this,Si)}getDefaultOptions(){return P(this,wi)}setDefaultOptions(e){J(this,wi,e)}setQueryDefaults(e,t){P(this,jl).set(cf(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...P(this,jl).values()],n={};return t.forEach(r=>{uf(e,r.queryKey)&&Object.assign(n,r.defaultOptions)}),n}setMutationDefaults(e,t){P(this,Al).set(cf(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...P(this,Al).values()],n={};return t.forEach(r=>{uf(e,r.mutationKey)&&Object.assign(n,r.defaultOptions)}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={...P(this,wi).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=PS(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.queryFn===MS&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{...P(this,wi).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){P(this,pt).clear(),P(this,Si).clear()}},pt=new WeakMap,Si=new WeakMap,wi=new WeakMap,jl=new WeakMap,Al=new WeakMap,ji=new WeakMap,Ol=new WeakMap,El=new WeakMap,IC),JR=A.createContext(void 0),tn=e=>{const t=A.useContext(JR);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},wB=({client:e,children:t})=>(A.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),u.jsx(JR.Provider,{value:e,children:t})),eD=A.createContext(!1),jB=()=>A.useContext(eD);eD.Provider;function AB(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var OB=A.createContext(AB()),EB=()=>A.useContext(OB),TB=(e,t,n)=>{const r=n!=null&&n.state.error&&typeof e.throwOnError=="function"?GR(e.throwOnError,[n.state.error,n]):e.throwOnError;(e.suspense||e.experimental_prefetchInRender||r)&&(t.isReset()||(e.retryOnMount=!1))},NB=e=>{A.useEffect(()=>{e.clearReset()},[e])},_B=({result:e,errorResetBoundary:t,throwOnError:n,query:r,suspense:a})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&(a&&e.data===void 0||GR(n,[e.error,r])),CB=e=>{if(e.suspense){const n=a=>a==="static"?a:Math.max(a??1e3,1e3),r=e.staleTime;e.staleTime=typeof r=="function"?(...a)=>n(r(...a)):n(r),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3))}},PB=(e,t)=>e.isLoading&&e.isFetching&&!t,MB=(e,t)=>(e==null?void 0:e.suspense)&&t.isPending,CA=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function RB(e,t,n){var p,v,y,b;const r=jB(),a=EB(),i=tn(),s=i.defaultQueryOptions(e);(v=(p=i.getDefaultOptions().queries)==null?void 0:p._experimental_beforeQuery)==null||v.call(p,s);const o=i.getQueryCache().get(s.queryHash),l=e.subscribed!==!1;s._optimisticResults=r?"isRestoring":l?"optimistic":void 0,CB(s),TB(s,a,o),NB(a);const c=!i.getQueryCache().get(s.queryHash),[f]=A.useState(()=>new t(i,s)),d=f.getOptimisticResult(s),h=!r&&l;if(A.useSyncExternalStore(A.useCallback(m=>{const g=h?f.subscribe(Xt.batchCalls(m)):An;return f.updateResult(),g},[f,h]),()=>f.getCurrentResult(),()=>f.getCurrentResult()),A.useEffect(()=>{f.setOptions(s)},[s,f]),MB(s,d))throw CA(s,f,a);if(_B({result:d,errorResetBoundary:a,throwOnError:s.throwOnError,query:o,suspense:s.suspense}))throw d.error;if((b=(y=i.getDefaultOptions().queries)==null?void 0:y._experimental_afterQuery)==null||b.call(y,s,d),s.experimental_prefetchInRender&&!ff.isServer()&&PB(d,r)){const m=c?CA(s,f,a):o==null?void 0:o.promise;m==null||m.catch(An).finally(()=>{f.updateResult()})}return s.notifyOnChangeProps?d:f.trackResult(d)}function se(e,t){return RB(e,pB)}/**
 * react-router v7.17.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 PA="popstate";function MA(e){return typeof e=="object"&&e!=null&&"pathname"in e&&"search"in e&&"hash"in e&&"state"in e&&"key"in e}function DB(e={}){function t(r,a){var c;let i=(c=a.state)==null?void 0:c.masked,{pathname:s,search:o,hash:l}=i||r.location;return T0("",{pathname:s,search:o,hash:l},a.state&&a.state.usr||null,a.state&&a.state.key||"default",i?{pathname:r.location.pathname,search:r.location.search,hash:r.location.hash}:void 0)}function n(r,a){return typeof a=="string"?a:df(a)}return kB(t,n,null,e)}function ct(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function vr(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function $B(){return Math.random().toString(36).substring(2,10)}function RA(e,t){return{usr:e.state,key:e.key,idx:t,masked:e.mask?{pathname:e.pathname,search:e.search,hash:e.hash}:void 0}}function T0(e,t,n=null,r,a){return{pathname:typeof e=="string"?e:e.pathname,search:"",hash:"",...typeof t=="string"?jc(t):t,state:n,key:t&&t.key||r||$B(),mask:a}}function df({pathname:e="/",search:t="",hash:n=""}){return t&&t!=="?"&&(e+=t.charAt(0)==="?"?t:"?"+t),n&&n!=="#"&&(e+=n.charAt(0)==="#"?n:"#"+n),e}function jc(e){let t={};if(e){let n=e.indexOf("#");n>=0&&(t.hash=e.substring(n),e=e.substring(0,n));let r=e.indexOf("?");r>=0&&(t.search=e.substring(r),e=e.substring(0,r)),e&&(t.pathname=e)}return t}function kB(e,t,n,r={}){let{window:a=document.defaultView,v5Compat:i=!1}=r,s=a.history,o="POP",l=null,c=f();c==null&&(c=0,s.replaceState({...s.state,idx:c},""));function f(){return(s.state||{idx:null}).idx}function d(){o="POP";let b=f(),m=b==null?null:b-c;c=b,l&&l({action:o,location:y.location,delta:m})}function h(b,m){o="PUSH";let g=MA(b)?b:T0(y.location,b,m);c=f()+1;let x=RA(g,c),w=y.createHref(g.mask||g);try{s.pushState(x,"",w)}catch(S){if(S instanceof DOMException&&S.name==="DataCloneError")throw S;a.location.assign(w)}i&&l&&l({action:o,location:y.location,delta:1})}function p(b,m){o="REPLACE";let g=MA(b)?b:T0(y.location,b,m);c=f();let x=RA(g,c),w=y.createHref(g.mask||g);s.replaceState(x,"",w),i&&l&&l({action:o,location:y.location,delta:0})}function v(b){return LB(a,b)}let y={get action(){return o},get location(){return e(a,s)},listen(b){if(l)throw new Error("A history only accepts one active listener");return a.addEventListener(PA,d),l=b,()=>{a.removeEventListener(PA,d),l=null}},createHref(b){return t(a,b)},createURL:v,encodeLocation(b){let m=v(b);return{pathname:m.pathname,search:m.search,hash:m.hash}},push:h,replace:p,go(b){return s.go(b)}};return y}function LB(e,t,n=!1){let r="http://localhost";e&&(r=e.location.origin!=="null"?e.location.origin:e.location.href),ct(r,"No window.location.(origin|href) available to create URL");let a=typeof t=="string"?t:df(t);return a=a.replace(/ $/,"%20"),!n&&a.startsWith("//")&&(a=r+a),new URL(a,r)}function tD(e,t,n="/"){return zB(e,t,n,!1)}function zB(e,t,n,r,a){let i=typeof t=="string"?jc(t):t,s=Fa(i.pathname||"/",n);if(s==null)return null;let o=BB(e),l=null,c=QB(s);for(let f=0;l==null&&f<o.length;++f)l=XB(o[f],c,r);return l}function BB(e){let t=nD(e);return IB(t),t}function nD(e,t=[],n=[],r="",a=!1){let i=(s,o,l=a,c)=>{let f={relativePath:c===void 0?s.path||"":c,caseSensitive:s.caseSensitive===!0,childrenIndex:o,route:s};if(f.relativePath.startsWith("/")){if(!f.relativePath.startsWith(r)&&l)return;ct(f.relativePath.startsWith(r),`Absolute route path "${f.relativePath}" nested under path "${r}" is not valid. An absolute child route path must start with the combined path of all its parent routes.`),f.relativePath=f.relativePath.slice(r.length)}let d=Rr([r,f.relativePath]),h=n.concat(f);s.children&&s.children.length>0&&(ct(s.index!==!0,`Index routes must not have child routes. Please remove all child routes from route path "${d}".`),nD(s.children,t,h,d,l)),!(s.path==null&&!s.index)&&t.push({path:d,score:KB(d,s.index),routesMeta:h})};return e.forEach((s,o)=>{var l;if(s.path===""||!((l=s.path)!=null&&l.includes("?")))i(s,o);else for(let c of rD(s.path))i(s,o,!0,c)}),t}function rD(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,a=n.endsWith("?"),i=n.replace(/\?$/,"");if(r.length===0)return a?[i,""]:[i];let s=rD(r.join("/")),o=[];return o.push(...s.map(l=>l===""?i:[i,l].join("/"))),a&&o.push(...s),o.map(l=>e.startsWith("/")&&l===""?"/":l)}function IB(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:YB(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}var UB=/^:[\w-]+$/,qB=3,VB=2,HB=1,FB=10,GB=-2,DA=e=>e==="*";function KB(e,t){let n=e.split("/"),r=n.length;return n.some(DA)&&(r+=GB),t&&(r+=VB),n.filter(a=>!DA(a)).reduce((a,i)=>a+(UB.test(i)?qB:i===""?HB:FB),r)}function YB(e,t){return e.length===t.length&&e.slice(0,-1).every((r,a)=>r===t[a])?e[e.length-1]-t[t.length-1]:0}function XB(e,t,n=!1){let{routesMeta:r}=e,a={},i="/",s=[];for(let o=0;o<r.length;++o){let l=r[o],c=o===r.length-1,f=i==="/"?t:t.slice(i.length)||"/",d=Lp({path:l.relativePath,caseSensitive:l.caseSensitive,end:c},f),h=l.route;if(!d&&c&&n&&!r[r.length-1].route.index&&(d=Lp({path:l.relativePath,caseSensitive:l.caseSensitive,end:!1},f)),!d)return null;Object.assign(a,d.params),s.push({params:a,pathname:Rr([i,d.pathname]),pathnameBase:tI(Rr([i,d.pathnameBase])),route:h}),d.pathnameBase!=="/"&&(i=Rr([i,d.pathnameBase]))}return s}function Lp(e,t){typeof e=="string"&&(e={path:e,caseSensitive:!1,end:!0});let[n,r]=WB(e.path,e.caseSensitive,e.end),a=t.match(n);if(!a)return null;let i=a[0],s=i.replace(/(.)\/+$/,"$1"),o=a.slice(1);return{params:r.reduce((c,{paramName:f,isOptional:d},h)=>{if(f==="*"){let v=o[h]||"";s=i.slice(0,i.length-v.length).replace(/(.)\/+$/,"$1")}const p=o[h];return d&&!p?c[f]=void 0:c[f]=(p||"").replace(/%2F/g,"/"),c},{}),pathname:i,pathnameBase:s,pattern:e}}function WB(e,t=!1,n=!0){vr(e==="*"||!e.endsWith("*")||e.endsWith("/*"),`Route path "${e}" will be treated as if it were "${e.replace(/\*$/,"/*")}" because the \`*\` character must always follow a \`/\` in the pattern. To get rid of this warning, please change the route path to "${e.replace(/\*$/,"/*")}".`);let r=[],a="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(s,o,l,c,f)=>{if(r.push({paramName:o,isOptional:l!=null}),l){let d=f.charAt(c+s.length);return d&&d!=="/"?"/([^\\/]*)":"(?:/([^\\/]*))?"}return"/([^\\/]+)"}).replace(/\/([\w-]+)\?(\/|$)/g,"(/$1)?$2");return e.endsWith("*")?(r.push({paramName:"*"}),a+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?a+="\\/*$":e!==""&&e!=="/"&&(a+="(?:(?=\\/|$))"),[new RegExp(a,t?void 0:"i"),r]}function QB(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return vr(!1,`The URL path "${e}" could not be decoded because it is a malformed URL segment. This is probably due to a bad percent encoding (${t}).`),e}}function Fa(e,t){if(t==="/")return e;if(!e.toLowerCase().startsWith(t.toLowerCase()))return null;let n=t.endsWith("/")?t.length-1:t.length,r=e.charAt(n);return r&&r!=="/"?null:e.slice(n)||"/"}var ZB=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i;function JB(e,t="/"){let{pathname:n,search:r="",hash:a=""}=typeof e=="string"?jc(e):e,i;return n?(n=aD(n),n.startsWith("/")?i=$A(n.substring(1),"/"):i=$A(n,t)):i=t,{pathname:i,search:nI(r),hash:rI(a)}}function $A(e,t){let n=zp(t).split("/");return e.split("/").forEach(a=>{a===".."?n.length>1&&n.pop():a!=="."&&n.push(a)}),n.length>1?n.join("/"):"/"}function mg(e,t,n,r){return`Cannot include a '${e}' character in a manually specified \`to.${t}\` field [${JSON.stringify(r)}].  Please separate it out to the \`to.${n}\` field. Alternatively you may provide the full path as a string in <Link to="..."> and the router will parse it for you.`}function eI(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function DS(e){let t=eI(e);return t.map((n,r)=>r===t.length-1?n.pathname:n.pathnameBase)}function Sy(e,t,n,r=!1){let a;typeof e=="string"?a=jc(e):(a={...e},ct(!a.pathname||!a.pathname.includes("?"),mg("?","pathname","search",a)),ct(!a.pathname||!a.pathname.includes("#"),mg("#","pathname","hash",a)),ct(!a.search||!a.search.includes("#"),mg("#","search","hash",a)));let i=e===""||a.pathname==="",s=i?"/":a.pathname,o;if(s==null)o=n;else{let d=t.length-1;if(!r&&s.startsWith("..")){let h=s.split("/");for(;h[0]==="..";)h.shift(),d-=1;a.pathname=h.join("/")}o=d>=0?t[d]:"/"}let l=JB(a,o),c=s&&s!=="/"&&s.endsWith("/"),f=(i||s===".")&&n.endsWith("/");return!l.pathname.endsWith("/")&&(c||f)&&(l.pathname+="/"),l}var aD=e=>e.replace(/\/\/+/g,"/"),Rr=e=>aD(e.join("/")),zp=e=>e.replace(/\/+$/,""),tI=e=>zp(e).replace(/^\/*/,"/"),nI=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,rI=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e,aI=class{constructor(e,t,n,r=!1){this.status=e,this.statusText=t||"",this.internal=r,n instanceof Error?(this.data=n.toString(),this.error=n):this.data=n}};function iI(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}function sI(e){let t=e.map(n=>n.route.path).filter(Boolean);return Rr(t)||"/"}var iD=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";function sD(e,t){let n=e;if(typeof n!="string"||!ZB.test(n))return{absoluteURL:void 0,isExternal:!1,to:n};let r=n,a=!1;if(iD)try{let i=new URL(window.location.href),s=n.startsWith("//")?new URL(i.protocol+n):new URL(n),o=Fa(s.pathname,t);s.origin===i.origin&&o!=null?n=o+s.search+s.hash:a=!0}catch{vr(!1,`<Link to="${n}"> contains an invalid URL which will probably break when clicked - please update to a valid URL path.`)}return{absoluteURL:r,isExternal:a,to:n}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");var oD=["POST","PUT","PATCH","DELETE"];new Set(oD);var oI=["GET",...oD];new Set(oI);var Ac=A.createContext(null);Ac.displayName="DataRouter";var wy=A.createContext(null);wy.displayName="DataRouterState";var lD=A.createContext(!1);function lI(){return A.useContext(lD)}var cD=A.createContext({isTransitioning:!1});cD.displayName="ViewTransition";var cI=A.createContext(new Map);cI.displayName="Fetchers";var uI=A.createContext(null);uI.displayName="Await";var Zn=A.createContext(null);Zn.displayName="Navigation";var xd=A.createContext(null);xd.displayName="Location";var xr=A.createContext({outlet:null,matches:[],isDataRoute:!1});xr.displayName="Route";var $S=A.createContext(null);$S.displayName="RouteError";var uD="REACT_ROUTER_ERROR",fI="REDIRECT",dI="ROUTE_ERROR_RESPONSE";function hI(e){if(e.startsWith(`${uD}:${fI}:{`))try{let t=JSON.parse(e.slice(28));if(typeof t=="object"&&t&&typeof t.status=="number"&&typeof t.statusText=="string"&&typeof t.location=="string"&&typeof t.reloadDocument=="boolean"&&typeof t.replace=="boolean")return t}catch{}}function pI(e){if(e.startsWith(`${uD}:${dI}:{`))try{let t=JSON.parse(e.slice(40));if(typeof t=="object"&&t&&typeof t.status=="number"&&typeof t.statusText=="string")return new aI(t.status,t.statusText,t.data)}catch{}}function mI(e,{relative:t}={}){ct(Oc(),"useHref() may be used only in the context of a <Router> component.");let{basename:n,navigator:r}=A.useContext(Zn),{hash:a,pathname:i,search:s}=Sd(e,{relative:t}),o=i;return n!=="/"&&(o=i==="/"?n:Rr([n,i])),r.createHref({pathname:o,search:s,hash:a})}function Oc(){return A.useContext(xd)!=null}function Sr(){return ct(Oc(),"useLocation() may be used only in the context of a <Router> component."),A.useContext(xd).location}var fD="You should call navigate() in a React.useEffect(), not when your component is first rendered.";function dD(e){A.useContext(Zn).static||A.useLayoutEffect(e)}function Ft(){let{isDataRoute:e}=A.useContext(xr);return e?CI():yI()}function yI(){ct(Oc(),"useNavigate() may be used only in the context of a <Router> component.");let e=A.useContext(Ac),{basename:t,navigator:n}=A.useContext(Zn),{matches:r}=A.useContext(xr),{pathname:a}=Sr(),i=JSON.stringify(DS(r)),s=A.useRef(!1);return dD(()=>{s.current=!0}),A.useCallback((l,c={})=>{if(vr(s.current,fD),!s.current)return;if(typeof l=="number"){n.go(l);return}let f=Sy(l,JSON.parse(i),a,c.relative==="path");e==null&&t!=="/"&&(f.pathname=f.pathname==="/"?t:Rr([t,f.pathname])),(c.replace?n.replace:n.push)(f,c.state,c)},[t,n,i,a,e])}var vI=A.createContext(null);function gI(e){let t=A.useContext(xr).outlet;return A.useMemo(()=>t&&A.createElement(vI.Provider,{value:e},t),[t,e])}function hD(){let{matches:e}=A.useContext(xr),t=e[e.length-1];return(t==null?void 0:t.params)??{}}function Sd(e,{relative:t}={}){let{matches:n}=A.useContext(xr),{pathname:r}=Sr(),a=JSON.stringify(DS(n));return A.useMemo(()=>Sy(e,JSON.parse(a),r,t==="path"),[e,a,r,t])}function bI(e,t){return pD(e,t)}function pD(e,t,n){var b;ct(Oc(),"useRoutes() may be used only in the context of a <Router> component.");let{navigator:r}=A.useContext(Zn),{matches:a}=A.useContext(xr),i=a[a.length-1],s=i?i.params:{},o=i?i.pathname:"/",l=i?i.pathnameBase:"/",c=i&&i.route;{let m=c&&c.path||"";yD(o,!c||m.endsWith("*")||m.endsWith("*?"),`You rendered descendant <Routes> (or called \`useRoutes()\`) at "${o}" (under <Route path="${m}">) 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="${m}"> to <Route path="${m==="/"?"*":`${m}/*`}">.`)}let f=Sr(),d;if(t){let m=typeof t=="string"?jc(t):t;ct(l==="/"||((b=m.pathname)==null?void 0:b.startsWith(l)),`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 "${l}" but pathname "${m.pathname}" was given in the \`location\` prop.`),d=m}else d=f;let h=d.pathname||"/",p=h;if(l!=="/"){let m=l.replace(/^\//,"").split("/");p="/"+h.replace(/^\//,"").split("/").slice(m.length).join("/")}let v=n&&n.state.matches.length?n.state.matches.map(m=>Object.assign(m,{route:n.manifest[m.route.id]||m.route})):tD(e,{pathname:p});vr(c||v!=null,`No routes matched location "${d.pathname}${d.search}${d.hash}" `),vr(v==null||v[v.length-1].route.element!==void 0||v[v.length-1].route.Component!==void 0||v[v.length-1].route.lazy!==void 0,`Matched leaf route at location "${d.pathname}${d.search}${d.hash}" does not have an element or Component. This means it will render an <Outlet /> with a null value by default resulting in an "empty" page.`);let y=AI(v&&v.map(m=>Object.assign({},m,{params:Object.assign({},s,m.params),pathname:Rr([l,r.encodeLocation?r.encodeLocation(m.pathname.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:m.pathname]),pathnameBase:m.pathnameBase==="/"?l:Rr([l,r.encodeLocation?r.encodeLocation(m.pathnameBase.replace(/%/g,"%25").replace(/\?/g,"%3F").replace(/#/g,"%23")).pathname:m.pathnameBase])})),a,n);return t&&y?A.createElement(xd.Provider,{value:{location:{pathname:"/",search:"",hash:"",state:null,key:"default",mask:void 0,...d},navigationType:"POP"}},y):y}function xI(){let e=_I(),t=iI(e)?`${e.status} ${e.statusText}`:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,r="rgba(200,200,200, 0.5)",a={padding:"0.5rem",backgroundColor:r},i={padding:"2px 4px",backgroundColor:r},s=null;return console.error("Error handled by React Router default ErrorBoundary:",e),s=A.createElement(A.Fragment,null,A.createElement("p",null,"💿 Hey developer 👋"),A.createElement("p",null,"You can provide a way better UX than this when your app throws errors by providing your own ",A.createElement("code",{style:i},"ErrorBoundary")," or"," ",A.createElement("code",{style:i},"errorElement")," prop on your route.")),A.createElement(A.Fragment,null,A.createElement("h2",null,"Unexpected Application Error!"),A.createElement("h3",{style:{fontStyle:"italic"}},t),n?A.createElement("pre",{style:a},n):null,s)}var SI=A.createElement(xI,null),mD=class extends A.Component{constructor(e){super(e),this.state={location:e.location,revalidation:e.revalidation,error:e.error}}static getDerivedStateFromError(e){return{error:e}}static getDerivedStateFromProps(e,t){return t.location!==e.location||t.revalidation!=="idle"&&e.revalidation==="idle"?{error:e.error,location:e.location,revalidation:e.revalidation}:{error:e.error!==void 0?e.error:t.error,location:t.location,revalidation:e.revalidation||t.revalidation}}componentDidCatch(e,t){this.props.onError?this.props.onError(e,t):console.error("React Router caught the following error during render",e)}render(){let e=this.state.error;if(this.context&&typeof e=="object"&&e&&"digest"in e&&typeof e.digest=="string"){const n=pI(e.digest);n&&(e=n)}let t=e!==void 0?A.createElement(xr.Provider,{value:this.props.routeContext},A.createElement($S.Provider,{value:e,children:this.props.component})):this.props.children;return this.context?A.createElement(wI,{error:e},t):t}};mD.contextType=lD;var yg=new WeakMap;function wI({children:e,error:t}){let{basename:n}=A.useContext(Zn);if(typeof t=="object"&&t&&"digest"in t&&typeof t.digest=="string"){let r=hI(t.digest);if(r){let a=yg.get(t);if(a)throw a;let i=sD(r.location,n);if(iD&&!yg.get(t))if(i.isExternal||r.reloadDocument)window.location.href=i.absoluteURL||i.to;else{const s=Promise.resolve().then(()=>window.__reactRouterDataRouter.navigate(i.to,{replace:r.replace}));throw yg.set(t,s),s}return A.createElement("meta",{httpEquiv:"refresh",content:`0;url=${i.absoluteURL||i.to}`})}}return e}function jI({routeContext:e,match:t,children:n}){let r=A.useContext(Ac);return r&&r.static&&r.staticContext&&(t.route.errorElement||t.route.ErrorBoundary)&&(r.staticContext._deepestRenderedBoundaryId=t.route.id),A.createElement(xr.Provider,{value:e},n)}function AI(e,t=[],n){let r=n==null?void 0:n.state;if(e==null){if(!r)return null;if(r.errors)e=r.matches;else if(t.length===0&&!r.initialized&&r.matches.length>0)e=r.matches;else return null}let a=e,i=r==null?void 0:r.errors;if(i!=null){let f=a.findIndex(d=>d.route.id&&(i==null?void 0:i[d.route.id])!==void 0);ct(f>=0,`Could not find a matching route for errors on route IDs: ${Object.keys(i).join(",")}`),a=a.slice(0,Math.min(a.length,f+1))}let s=!1,o=-1;if(n&&r){s=r.renderFallback;for(let f=0;f<a.length;f++){let d=a[f];if((d.route.HydrateFallback||d.route.hydrateFallbackElement)&&(o=f),d.route.id){let{loaderData:h,errors:p}=r,v=d.route.loader&&!h.hasOwnProperty(d.route.id)&&(!p||p[d.route.id]===void 0);if(d.route.lazy||v){n.isStatic&&(s=!0),o>=0?a=a.slice(0,o+1):a=[a[0]];break}}}}let l=n==null?void 0:n.onError,c=r&&l?(f,d)=>{var h,p;l(f,{location:r.location,params:((p=(h=r.matches)==null?void 0:h[0])==null?void 0:p.params)??{},pattern:sI(r.matches),errorInfo:d})}:void 0;return a.reduceRight((f,d,h)=>{let p,v=!1,y=null,b=null;r&&(p=i&&d.route.id?i[d.route.id]:void 0,y=d.route.errorElement||SI,s&&(o<0&&h===0?(yD("route-fallback",!1,"No `HydrateFallback` element provided to render during initial hydration"),v=!0,b=null):o===h&&(v=!0,b=d.route.hydrateFallbackElement||null)));let m=t.concat(a.slice(0,h+1)),g=()=>{let x;return p?x=y:v?x=b:d.route.Component?x=A.createElement(d.route.Component,null):d.route.element?x=d.route.element:x=f,A.createElement(jI,{match:d,routeContext:{outlet:f,matches:m,isDataRoute:r!=null},children:x})};return r&&(d.route.ErrorBoundary||d.route.errorElement||h===0)?A.createElement(mD,{location:r.location,revalidation:r.revalidation,component:y,error:p,children:g(),routeContext:{outlet:null,matches:m,isDataRoute:!0},onError:c}):g()},null)}function kS(e){return`${e} must be used within a data router.  See https://reactrouter.com/en/main/routers/picking-a-router.`}function OI(e){let t=A.useContext(Ac);return ct(t,kS(e)),t}function EI(e){let t=A.useContext(wy);return ct(t,kS(e)),t}function TI(e){let t=A.useContext(xr);return ct(t,kS(e)),t}function LS(e){let t=TI(e),n=t.matches[t.matches.length-1];return ct(n.route.id,`${e} can only be used on routes that contain a unique "id"`),n.route.id}function NI(){return LS("useRouteId")}function _I(){var r;let e=A.useContext($S),t=EI("useRouteError"),n=LS("useRouteError");return e!==void 0?e:(r=t.errors)==null?void 0:r[n]}function CI(){let{router:e}=OI("useNavigate"),t=LS("useNavigate"),n=A.useRef(!1);return dD(()=>{n.current=!0}),A.useCallback(async(a,i={})=>{vr(n.current,fD),n.current&&(typeof a=="number"?await e.navigate(a):await e.navigate(a,{fromRouteId:t,...i}))},[e,t])}var kA={};function yD(e,t,n){!t&&!kA[e]&&(kA[e]=!0,vr(!1,n))}A.memo(PI);function PI({routes:e,manifest:t,future:n,state:r,isStatic:a,onError:i}){return pD(e,void 0,{manifest:t,state:r,isStatic:a,onError:i})}function Bp({to:e,replace:t,state:n,relative:r}){ct(Oc(),"<Navigate> may be used only in the context of a <Router> component.");let{static:a}=A.useContext(Zn);vr(!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}=A.useContext(xr),{pathname:s}=Sr(),o=Ft(),l=Sy(e,DS(i),s,r==="path"),c=JSON.stringify(l);return A.useEffect(()=>{o(JSON.parse(c),{replace:t,state:n,relative:r})},[o,c,r,t,n]),null}function vD(e){return gI(e.context)}function xe(e){ct(!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 MI({basename:e="/",children:t=null,location:n,navigationType:r="POP",navigator:a,static:i=!1,useTransitions:s}){ct(!Oc(),"You cannot render a <Router> inside another <Router>. You should never have more than one in your app.");let o=e.replace(/^\/*/,"/"),l=A.useMemo(()=>({basename:o,navigator:a,static:i,useTransitions:s,future:{}}),[o,a,i,s]);typeof n=="string"&&(n=jc(n));let{pathname:c="/",search:f="",hash:d="",state:h=null,key:p="default",mask:v}=n,y=A.useMemo(()=>{let b=Fa(c,o);return b==null?null:{location:{pathname:b,search:f,hash:d,state:h,key:p,mask:v},navigationType:r}},[o,c,f,d,h,p,r,v]);return vr(y!=null,`<Router basename="${o}"> is not able to match the URL "${c}${f}${d}" because it does not start with the basename, so the <Router> won't render anything.`),y==null?null:A.createElement(Zn.Provider,{value:l},A.createElement(xd.Provider,{children:t,value:y}))}function RI({children:e,location:t}){return bI(N0(e),t)}function N0(e,t=[]){let n=[];return A.Children.forEach(e,(r,a)=>{if(!A.isValidElement(r))return;let i=[...t,a];if(r.type===A.Fragment){n.push.apply(n,N0(r.props.children,i));return}ct(r.type===xe,`[${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>`),ct(!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,middleware:r.props.middleware,loader:r.props.loader,action:r.props.action,hydrateFallbackElement:r.props.hydrateFallbackElement,HydrateFallback:r.props.HydrateFallback,errorElement:r.props.errorElement,ErrorBoundary:r.props.ErrorBoundary,hasErrorBoundary:r.props.hasErrorBoundary===!0||r.props.ErrorBoundary!=null||r.props.errorElement!=null,shouldRevalidate:r.props.shouldRevalidate,handle:r.props.handle,lazy:r.props.lazy};r.props.children&&(s.children=N0(r.props.children,i)),n.push(s)}),n}var Xh="get",Wh="application/x-www-form-urlencoded";function jy(e){return typeof HTMLElement<"u"&&e instanceof HTMLElement}function DI(e){return jy(e)&&e.tagName.toLowerCase()==="button"}function $I(e){return jy(e)&&e.tagName.toLowerCase()==="form"}function kI(e){return jy(e)&&e.tagName.toLowerCase()==="input"}function LI(e){return!!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)}function zI(e,t){return e.button===0&&(!t||t==="_self")&&!LI(e)}function _0(e=""){return new URLSearchParams(typeof e=="string"||Array.isArray(e)||e instanceof URLSearchParams?e:Object.keys(e).reduce((t,n)=>{let r=e[n];return t.concat(Array.isArray(r)?r.map(a=>[n,a]):[[n,r]])},[]))}function BI(e,t){let n=_0(e);return t&&t.forEach((r,a)=>{n.has(a)||t.getAll(a).forEach(i=>{n.append(a,i)})}),n}var oh=null;function II(){if(oh===null)try{new FormData(document.createElement("form"),0),oh=!1}catch{oh=!0}return oh}var UI=new Set(["application/x-www-form-urlencoded","multipart/form-data","text/plain"]);function vg(e){return e!=null&&!UI.has(e)?(vr(!1,`"${e}" is not a valid \`encType\` for \`<Form>\`/\`<fetcher.Form>\` and will default to "${Wh}"`),null):e}function qI(e,t){let n,r,a,i,s;if($I(e)){let o=e.getAttribute("action");r=o?Fa(o,t):null,n=e.getAttribute("method")||Xh,a=vg(e.getAttribute("enctype"))||Wh,i=new FormData(e)}else if(DI(e)||kI(e)&&(e.type==="submit"||e.type==="image")){let o=e.form;if(o==null)throw new Error('Cannot submit a <button> or <input type="submit"> without a <form>');let l=e.getAttribute("formaction")||o.getAttribute("action");if(r=l?Fa(l,t):null,n=e.getAttribute("formmethod")||o.getAttribute("method")||Xh,a=vg(e.getAttribute("formenctype"))||vg(o.getAttribute("enctype"))||Wh,i=new FormData(o,e),!II()){let{name:c,type:f,value:d}=e;if(f==="image"){let h=c?`${c}.`:"";i.append(`${h}x`,"0"),i.append(`${h}y`,"0")}else c&&i.append(c,d)}}else{if(jy(e))throw new Error('Cannot submit element that is not <form>, <button>, or <input type="submit|image">');n=Xh,r=null,a=Wh,s=e}return i&&a==="text/plain"&&(s=i,i=void 0),{action:r,method:n.toLowerCase(),encType:a,formData:i,body:s}}Object.getOwnPropertyNames(Object.prototype).sort().join("\0");function zS(e,t){if(e===!1||e===null||typeof e>"u")throw new Error(t)}function gD(e,t,n,r){let a=typeof e=="string"?new URL(e,typeof window>"u"?"server://singlefetch/":window.location.origin):e;return n?a.pathname.endsWith("/")?a.pathname=`${a.pathname}_.${r}`:a.pathname=`${a.pathname}.${r}`:a.pathname==="/"?a.pathname=`_root.${r}`:t&&Fa(a.pathname,t)==="/"?a.pathname=`${zp(t)}/_root.${r}`:a.pathname=`${zp(a.pathname)}.${r}`,a}async function VI(e,t){if(e.id in t)return t[e.id];try{let n=await import(e.module);return t[e.id]=n,n}catch(n){return console.error(`Error loading route module \`${e.module}\`, reloading page...`),console.error(n),window.__reactRouterContext&&window.__reactRouterContext.isSpaMode,window.location.reload(),new Promise(()=>{})}}function HI(e){return e==null?!1:e.href==null?e.rel==="preload"&&typeof e.imageSrcSet=="string"&&typeof e.imageSizes=="string":typeof e.rel=="string"&&typeof e.href=="string"}async function FI(e,t,n){let r=await Promise.all(e.map(async a=>{let i=t.routes[a.route.id];if(i){let s=await VI(i,n);return s.links?s.links():[]}return[]}));return XI(r.flat(1).filter(HI).filter(a=>a.rel==="stylesheet"||a.rel==="preload").map(a=>a.rel==="stylesheet"?{...a,rel:"prefetch",as:"style"}:{...a,rel:"prefetch"}))}function LA(e,t,n,r,a,i){let s=(l,c)=>n[c]?l.route.id!==n[c].route.id:!0,o=(l,c)=>{var f;return n[c].pathname!==l.pathname||((f=n[c].route.path)==null?void 0:f.endsWith("*"))&&n[c].params["*"]!==l.params["*"]};return i==="assets"?t.filter((l,c)=>s(l,c)||o(l,c)):i==="data"?t.filter((l,c)=>{var d;let f=r.routes[l.route.id];if(!f||!f.hasLoader)return!1;if(s(l,c)||o(l,c))return!0;if(l.route.shouldRevalidate){let h=l.route.shouldRevalidate({currentUrl:new URL(a.pathname+a.search+a.hash,window.origin),currentParams:((d=n[0])==null?void 0:d.params)||{},nextUrl:new URL(e,window.origin),nextParams:l.params,defaultShouldRevalidate:!0});if(typeof h=="boolean")return h}return!0}):[]}function GI(e,t,{includeHydrateFallback:n}={}){return KI(e.map(r=>{let a=t.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)),n&&a.hydrateFallbackModule&&(i=i.concat(a.hydrateFallbackModule)),a.imports&&(i=i.concat(a.imports)),i}).flat(1))}function KI(e){return[...new Set(e)]}function YI(e){let t={},n=Object.keys(e).sort();for(let r of n)t[r]=e[r];return t}function XI(e,t){let n=new Set;return new Set(t),e.reduce((r,a)=>{let i=JSON.stringify(YI(a));return n.has(i)||(n.add(i),r.push({key:i,link:a})),r},[])}function BS(){let e=A.useContext(Ac);return zS(e,"You must render this element inside a <DataRouterContext.Provider> element"),e}function WI(){let e=A.useContext(wy);return zS(e,"You must render this element inside a <DataRouterStateContext.Provider> element"),e}var IS=A.createContext(void 0);IS.displayName="FrameworkContext";function US(){let e=A.useContext(IS);return zS(e,"You must render this element inside a <HydratedRouter> element"),e}function QI(e,t){let n=A.useContext(IS),[r,a]=A.useState(!1),[i,s]=A.useState(!1),{onFocus:o,onBlur:l,onMouseEnter:c,onMouseLeave:f,onTouchStart:d}=t,h=A.useRef(null);A.useEffect(()=>{if(e==="render"&&s(!0),e==="viewport"){let y=m=>{m.forEach(g=>{s(g.isIntersecting)})},b=new IntersectionObserver(y,{threshold:.5});return h.current&&b.observe(h.current),()=>{b.disconnect()}}},[e]),A.useEffect(()=>{if(r){let y=setTimeout(()=>{s(!0)},100);return()=>{clearTimeout(y)}}},[r]);let p=()=>{a(!0)},v=()=>{a(!1),s(!1)};return n?e!=="intent"?[i,h,{}]:[i,h,{onFocus:Wc(o,p),onBlur:Wc(l,v),onMouseEnter:Wc(c,p),onMouseLeave:Wc(f,v),onTouchStart:Wc(d,p)}]:[!1,h,{}]}function Wc(e,t){return n=>{e&&e(n),n.defaultPrevented||t(n)}}function ZI({page:e,...t}){let n=lI(),{router:r}=BS(),a=A.useMemo(()=>tD(r.routes,e,r.basename),[r.routes,e,r.basename]);return a?n?A.createElement(eU,{page:e,matches:a,...t}):A.createElement(tU,{page:e,matches:a,...t}):null}function JI(e){let{manifest:t,routeModules:n}=US(),[r,a]=A.useState([]);return A.useEffect(()=>{let i=!1;return FI(e,t,n).then(s=>{i||a(s)}),()=>{i=!0}},[e,t,n]),r}function eU({page:e,matches:t,...n}){let r=Sr(),{future:a}=US(),{basename:i}=BS(),s=A.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let o=gD(e,i,a.v8_trailingSlashAwareDataRequests,"rsc"),l=!1,c=[];for(let f of t)typeof f.route.shouldRevalidate=="function"?l=!0:c.push(f.route.id);return l&&c.length>0&&o.searchParams.set("_routes",c.join(",")),[o.pathname+o.search]},[i,a.v8_trailingSlashAwareDataRequests,e,r,t]);return A.createElement(A.Fragment,null,s.map(o=>A.createElement("link",{key:o,rel:"prefetch",as:"fetch",href:o,...n})))}function tU({page:e,matches:t,...n}){let r=Sr(),{future:a,manifest:i,routeModules:s}=US(),{basename:o}=BS(),{loaderData:l,matches:c}=WI(),f=A.useMemo(()=>LA(e,t,c,i,r,"data"),[e,t,c,i,r]),d=A.useMemo(()=>LA(e,t,c,i,r,"assets"),[e,t,c,i,r]),h=A.useMemo(()=>{if(e===r.pathname+r.search+r.hash)return[];let y=new Set,b=!1;if(t.forEach(g=>{var w;let x=i.routes[g.route.id];!x||!x.hasLoader||(!f.some(S=>S.route.id===g.route.id)&&g.route.id in l&&((w=s[g.route.id])!=null&&w.shouldRevalidate)||x.hasClientLoader?b=!0:y.add(g.route.id))}),y.size===0)return[];let m=gD(e,o,a.v8_trailingSlashAwareDataRequests,"data");return b&&y.size>0&&m.searchParams.set("_routes",t.filter(g=>y.has(g.route.id)).map(g=>g.route.id).join(",")),[m.pathname+m.search]},[o,a.v8_trailingSlashAwareDataRequests,l,r,i,f,t,e,s]),p=A.useMemo(()=>GI(d,i),[d,i]),v=JI(d);return A.createElement(A.Fragment,null,h.map(y=>A.createElement("link",{key:y,rel:"prefetch",as:"fetch",href:y,...n})),p.map(y=>A.createElement("link",{key:y,rel:"modulepreload",href:y,...n})),v.map(({key:y,link:b})=>A.createElement("link",{key:y,nonce:n.nonce,...b,crossOrigin:b.crossOrigin??n.crossOrigin})))}function nU(...e){return t=>{e.forEach(n=>{typeof n=="function"?n(t):n!=null&&(n.current=t)})}}var rU=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u";try{rU&&(window.__reactRouterVersion="7.17.0")}catch{}function aU({basename:e,children:t,useTransitions:n,window:r}){let a=A.useRef();a.current==null&&(a.current=DB({window:r,v5Compat:!0}));let i=a.current,[s,o]=A.useState({action:i.action,location:i.location}),l=A.useCallback(c=>{n===!1?o(c):A.startTransition(()=>o(c))},[n]);return A.useLayoutEffect(()=>i.listen(l),[i,l]),A.createElement(MI,{basename:e,children:t,location:s.location,navigationType:s.action,navigator:i,useTransitions:n})}var bD=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,ke=A.forwardRef(function({onClick:t,discover:n="render",prefetch:r="none",relative:a,reloadDocument:i,replace:s,mask:o,state:l,target:c,to:f,preventScrollReset:d,viewTransition:h,defaultShouldRevalidate:p,...v},y){let{basename:b,navigator:m,useTransitions:g}=A.useContext(Zn),x=typeof f=="string"&&bD.test(f),w=sD(f,b);f=w.to;let S=mI(f,{relative:a}),j=Sr(),O=null;if(o){let k=Sy(o,[],j.mask?j.mask.pathname:"/",!0);b!=="/"&&(k.pathname=k.pathname==="/"?b:Rr([b,k.pathname])),O=m.createHref(k)}let[E,T,_]=QI(r,v),M=oU(f,{replace:s,mask:o,state:l,target:c,preventScrollReset:d,relative:a,viewTransition:h,defaultShouldRevalidate:p,useTransitions:g});function C(k){t&&t(k),k.defaultPrevented||M(k)}let z=!(w.isExternal||i),L=A.createElement("a",{...v,..._,href:(z?O:void 0)||w.absoluteURL||S,onClick:z?C:t,ref:nU(y,T),target:c,"data-discover":!x&&n==="render"?"true":void 0});return E&&!x?A.createElement(A.Fragment,null,L,A.createElement(ZI,{page:S})):L});ke.displayName="Link";var C0=A.forwardRef(function({"aria-current":t="page",caseSensitive:n=!1,className:r="",end:a=!1,style:i,to:s,viewTransition:o,children:l,...c},f){let d=Sd(s,{relative:c.relative}),h=Sr(),p=A.useContext(wy),{navigator:v,basename:y}=A.useContext(Zn),b=p!=null&&dU(d)&&o===!0,m=v.encodeLocation?v.encodeLocation(d).pathname:d.pathname,g=h.pathname,x=p&&p.navigation&&p.navigation.location?p.navigation.location.pathname:null;n||(g=g.toLowerCase(),x=x?x.toLowerCase():null,m=m.toLowerCase()),x&&y&&(x=Fa(x,y)||x);const w=m!=="/"&&m.endsWith("/")?m.length-1:m.length;let S=g===m||!a&&g.startsWith(m)&&g.charAt(w)==="/",j=x!=null&&(x===m||!a&&x.startsWith(m)&&x.charAt(m.length)==="/"),O={isActive:S,isPending:j,isTransitioning:b},E=S?t:void 0,T;typeof r=="function"?T=r(O):T=[r,S?"active":null,j?"pending":null,b?"transitioning":null].filter(Boolean).join(" ");let _=typeof i=="function"?i(O):i;return A.createElement(ke,{...c,"aria-current":E,className:T,ref:f,style:_,to:s,viewTransition:o},typeof l=="function"?l(O):l)});C0.displayName="NavLink";var iU=A.forwardRef(({discover:e="render",fetcherKey:t,navigate:n,reloadDocument:r,replace:a,state:i,method:s=Xh,action:o,onSubmit:l,relative:c,preventScrollReset:f,viewTransition:d,defaultShouldRevalidate:h,...p},v)=>{let{useTransitions:y}=A.useContext(Zn),b=uU(),m=fU(o,{relative:c}),g=s.toLowerCase()==="get"?"get":"post",x=typeof o=="string"&&bD.test(o),w=S=>{if(l&&l(S),S.defaultPrevented)return;S.preventDefault();let j=S.nativeEvent.submitter,O=(j==null?void 0:j.getAttribute("formmethod"))||s,E=()=>b(j||S.currentTarget,{fetcherKey:t,method:O,navigate:n,replace:a,state:i,relative:c,preventScrollReset:f,viewTransition:d,defaultShouldRevalidate:h});y&&n!==!1?A.startTransition(()=>E()):E()};return A.createElement("form",{ref:v,method:g,action:m,onSubmit:r?l:w,...p,"data-discover":!x&&e==="render"?"true":void 0})});iU.displayName="Form";function sU(e){return`${e} must be used within a data router.  See https://reactrouter.com/en/main/routers/picking-a-router.`}function xD(e){let t=A.useContext(Ac);return ct(t,sU(e)),t}function oU(e,{target:t,replace:n,mask:r,state:a,preventScrollReset:i,relative:s,viewTransition:o,defaultShouldRevalidate:l,useTransitions:c}={}){let f=Ft(),d=Sr(),h=Sd(e,{relative:s});return A.useCallback(p=>{if(zI(p,t)){p.preventDefault();let v=n!==void 0?n:df(d)===df(h),y=()=>f(e,{replace:v,mask:r,state:a,preventScrollReset:i,relative:s,viewTransition:o,defaultShouldRevalidate:l});c?A.startTransition(()=>y()):y()}},[d,f,h,n,r,a,t,e,i,s,o,l,c])}function SD(e){vr(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 t=A.useRef(_0(e)),n=A.useRef(!1),r=Sr(),a=A.useMemo(()=>BI(r.search,n.current?null:t.current),[r.search]),i=Ft(),s=A.useCallback((o,l)=>{const c=_0(typeof o=="function"?o(new URLSearchParams(a)):o);n.current=!0,i("?"+c,l)},[i,a]);return[a,s]}var lU=0,cU=()=>`__${String(++lU)}__`;function uU(){let{router:e}=xD("useSubmit"),{basename:t}=A.useContext(Zn),n=NI(),r=e.fetch,a=e.navigate;return A.useCallback(async(i,s={})=>{let{action:o,method:l,encType:c,formData:f,body:d}=qI(i,t);if(s.navigate===!1){let h=s.fetcherKey||cU();await r(h,n,s.action||o,{defaultShouldRevalidate:s.defaultShouldRevalidate,preventScrollReset:s.preventScrollReset,formData:f,body:d,formMethod:s.method||l,formEncType:s.encType||c,flushSync:s.flushSync})}else await a(s.action||o,{defaultShouldRevalidate:s.defaultShouldRevalidate,preventScrollReset:s.preventScrollReset,formData:f,body:d,formMethod:s.method||l,formEncType:s.encType||c,replace:s.replace,state:s.state,fromRouteId:n,flushSync:s.flushSync,viewTransition:s.viewTransition})},[r,a,t,n])}function fU(e,{relative:t}={}){let{basename:n}=A.useContext(Zn),r=A.useContext(xr);ct(r,"useFormAction must be used inside a RouteContext");let[a]=r.matches.slice(-1),i={...Sd(e||".",{relative:t})},s=Sr();if(e==null){i.search=s.search;let o=new URLSearchParams(i.search),l=o.getAll("index");if(l.some(f=>f==="")){o.delete("index"),l.filter(d=>d).forEach(d=>o.append("index",d));let f=o.toString();i.search=f?`?${f}`:""}}return(!e||e===".")&&a.route.index&&(i.search=i.search?i.search.replace(/^\?/,"?index&"):"?index"),n!=="/"&&(i.pathname=i.pathname==="/"?n:Rr([n,i.pathname])),df(i)}function dU(e,{relative:t}={}){let n=A.useContext(cD);ct(n!=null,"`useViewTransitionState` must be used within `react-router-dom`'s `RouterProvider`.  Did you accidentally import `RouterProvider` from `react-router`?");let{basename:r}=xD("useViewTransitionState"),a=Sd(e,{relative:t});if(!n.isTransitioning)return!1;let i=Fa(n.currentLocation.pathname,r)||n.currentLocation.pathname,s=Fa(n.nextLocation.pathname,r)||n.nextLocation.pathname;return Lp(a.pathname,s)!=null||Lp(a.pathname,i)!=null}const wD=A.createContext(null);function hU({children:e}){const[t,n]=A.useState(()=>localStorage.getItem("mall_zip")||""),[r,a]=A.useState(()=>{const v=localStorage.getItem("mall_store_id");return v?Number(v):null}),[i,s]=A.useState(()=>localStorage.getItem("mall_store_name")||""),[o,l]=A.useState(()=>localStorage.getItem("mall_token")),[c,f]=A.useState(0),d=(v,y,b)=>{n(v),a(y),s(b),localStorage.setItem("mall_zip",v),localStorage.setItem("mall_store_id",String(y)),localStorage.setItem("mall_store_name",b)},h=()=>{n(""),a(null),s(""),localStorage.removeItem("mall_zip"),localStorage.removeItem("mall_store_id"),localStorage.removeItem("mall_store_name")},p=v=>{l(v),v?localStorage.setItem("mall_token",v):localStorage.removeItem("mall_token")};return A.useEffect(()=>{const v=()=>l(localStorage.getItem("mall_token"));return window.addEventListener("storage",v),()=>window.removeEventListener("storage",v)},[]),u.jsx(wD.Provider,{value:{zip:t,storeId:r,storeName:i,setZone:d,clearZone:h,custToken:o,setCustToken:p,cartCount:c,setCartCount:f},children:e})}const vn=()=>A.useContext(wD),Oe=e=>`$${(Number(e)||0).toFixed(2)}`,qS=A.createContext({});function Ec(e){const t=A.useRef(null);return t.current===null&&(t.current=e()),t.current}const Ay=A.createContext(null),Oy=A.createContext({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});class pU extends A.Component{getSnapshotBeforeUpdate(t){const n=this.props.childRef.current;if(n&&t.isPresent&&!this.props.isPresent){const r=this.props.sizeRef.current;r.height=n.offsetHeight||0,r.width=n.offsetWidth||0,r.top=n.offsetTop,r.left=n.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function mU({children:e,isPresent:t}){const n=A.useId(),r=A.useRef(null),a=A.useRef({width:0,height:0,top:0,left:0}),{nonce:i}=A.useContext(Oy);return A.useInsertionEffect(()=>{const{width:s,height:o,top:l,left:c}=a.current;if(t||!r.current||!s||!o)return;r.current.dataset.motionPopId=n;const f=document.createElement("style");return i&&(f.nonce=i),document.head.appendChild(f),f.sheet&&f.sheet.insertRule(`
          [data-motion-pop-id="${n}"] {
            position: absolute !important;
            width: ${s}px !important;
            height: ${o}px !important;
            top: ${l}px !important;
            left: ${c}px !important;
          }
        `),()=>{document.head.removeChild(f)}},[t]),u.jsx(pU,{isPresent:t,childRef:r,sizeRef:a,children:A.cloneElement(e,{ref:r})})}const yU=({children:e,initial:t,isPresent:n,onExitComplete:r,custom:a,presenceAffectsLayout:i,mode:s})=>{const o=Ec(vU),l=A.useId(),c=A.useCallback(d=>{o.set(d,!0);for(const h of o.values())if(!h)return;r&&r()},[o,r]),f=A.useMemo(()=>({id:l,initial:t,isPresent:n,custom:a,onExitComplete:c,register:d=>(o.set(d,!1),()=>o.delete(d))}),i?[Math.random(),c]:[n,c]);return A.useMemo(()=>{o.forEach((d,h)=>o.set(h,!1))},[n]),A.useEffect(()=>{!n&&!o.size&&r&&r()},[n]),s==="popLayout"&&(e=u.jsx(mU,{isPresent:n,children:e})),u.jsx(Ay.Provider,{value:f,children:e})};function vU(){return new Map}function jD(e=!0){const t=A.useContext(Ay);if(t===null)return[!0,null];const{isPresent:n,onExitComplete:r,register:a}=t,i=A.useId();A.useEffect(()=>{e&&a(i)},[e]);const s=A.useCallback(()=>e&&r&&r(i),[i,r,e]);return!n&&r?[!1,s]:[!0]}const lh=e=>e.key||"";function zA(e){const t=[];return A.Children.forEach(e,n=>{A.isValidElement(n)&&t.push(n)}),t}const VS=typeof window<"u",Ey=VS?A.useLayoutEffect:A.useEffect,gU=({children:e,custom:t,initial:n=!0,onExitComplete:r,presenceAffectsLayout:a=!0,mode:i="sync",propagate:s=!1})=>{const[o,l]=jD(s),c=A.useMemo(()=>zA(e),[e]),f=s&&!o?[]:c.map(lh),d=A.useRef(!0),h=A.useRef(c),p=Ec(()=>new Map),[v,y]=A.useState(c),[b,m]=A.useState(c);Ey(()=>{d.current=!1,h.current=c;for(let w=0;w<b.length;w++){const S=lh(b[w]);f.includes(S)?p.delete(S):p.get(S)!==!0&&p.set(S,!1)}},[b,f.length,f.join("-")]);const g=[];if(c!==v){let w=[...c];for(let S=0;S<b.length;S++){const j=b[S],O=lh(j);f.includes(O)||(w.splice(S,0,j),g.push(j))}i==="wait"&&g.length&&(w=g),m(zA(w)),y(c);return}const{forceRender:x}=A.useContext(qS);return u.jsx(u.Fragment,{children:b.map(w=>{const S=lh(w),j=s&&!o?!1:c===b||f.includes(S),O=()=>{if(p.has(S))p.set(S,!0);else return;let E=!0;p.forEach(T=>{T||(E=!1)}),E&&(x==null||x(),m(h.current),s&&(l==null||l()),r&&r())};return u.jsx(yU,{isPresent:j,initial:!d.current||n?void 0:!1,custom:j?void 0:t,presenceAffectsLayout:a,mode:i,onExitComplete:j?void 0:O,children:w},S)})})},pn=e=>e;let bU=pn,AD=pn;function HS(e){let t;return()=>(t===void 0&&(t=e()),t)}const Zs=(e,t,n)=>{const r=t-e;return r===0?1:(n-e)/r},$a=e=>e*1e3,ka=e=>e/1e3,xU={useManualTiming:!1};function SU(e){let t=new Set,n=new Set,r=!1,a=!1;const i=new WeakSet;let s={delta:0,timestamp:0,isProcessing:!1};function o(c){i.has(c)&&(l.schedule(c),e()),c(s)}const l={schedule:(c,f=!1,d=!1)=>{const p=d&&r?t:n;return f&&i.add(c),p.has(c)||p.add(c),c},cancel:c=>{n.delete(c),i.delete(c)},process:c=>{if(s=c,r){a=!0;return}r=!0,[t,n]=[n,t],t.forEach(o),t.clear(),r=!1,a&&(a=!1,l.process(c))}};return l}const ch=["read","resolveKeyframes","update","preRender","render","postRender"],wU=40;function OD(e,t){let n=!1,r=!0;const a={delta:0,timestamp:0,isProcessing:!1},i=()=>n=!0,s=ch.reduce((m,g)=>(m[g]=SU(i),m),{}),{read:o,resolveKeyframes:l,update:c,preRender:f,render:d,postRender:h}=s,p=()=>{const m=performance.now();n=!1,a.delta=r?1e3/60:Math.max(Math.min(m-a.timestamp,wU),1),a.timestamp=m,a.isProcessing=!0,o.process(a),l.process(a),c.process(a),f.process(a),d.process(a),h.process(a),a.isProcessing=!1,n&&t&&(r=!1,e(p))},v=()=>{n=!0,r=!0,a.isProcessing||e(p)};return{schedule:ch.reduce((m,g)=>{const x=s[g];return m[g]=(w,S=!1,j=!1)=>(n||v(),x.schedule(w,S,j)),m},{}),cancel:m=>{for(let g=0;g<ch.length;g++)s[ch[g]].cancel(m)},state:a,steps:s}}const{schedule:Re,cancel:$r,state:Bt,steps:gg}=OD(typeof requestAnimationFrame<"u"?requestAnimationFrame:pn,!0),ED=A.createContext({strict:!1}),BA={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},zl={};for(const e in BA)zl[e]={isEnabled:t=>BA[e].some(n=>!!t[n])};function jU(e){for(const t in e)zl[t]={...zl[t],...e[t]}}const AU=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function Ip(e){return e.startsWith("while")||e.startsWith("drag")&&e!=="draggable"||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||AU.has(e)}let TD=e=>!Ip(e);function OU(e){e&&(TD=t=>t.startsWith("on")?!Ip(t):e(t))}try{OU(require("@emotion/is-prop-valid").default)}catch{}function EU(e,t,n){const r={};for(const a in e)a==="values"&&typeof e.values=="object"||(TD(a)||n===!0&&Ip(a)||!t&&!Ip(a)||e.draggable&&a.startsWith("onDrag"))&&(r[a]=e[a]);return r}function TU(e){if(typeof Proxy>"u")return e;const t=new Map,n=(...r)=>e(...r);return new Proxy(n,{get:(r,a)=>a==="create"?e:(t.has(a)||t.set(a,e(a)),t.get(a))})}const Ty=A.createContext({});function hf(e){return typeof e=="string"||Array.isArray(e)}function Ny(e){return e!==null&&typeof e=="object"&&typeof e.start=="function"}const FS=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],GS=["initial",...FS];function _y(e){return Ny(e.animate)||GS.some(t=>hf(e[t]))}function ND(e){return!!(_y(e)||e.variants)}function NU(e,t){if(_y(e)){const{initial:n,animate:r}=e;return{initial:n===!1||hf(n)?n:void 0,animate:hf(r)?r:void 0}}return e.inherit!==!1?t:{}}function _U(e){const{initial:t,animate:n}=NU(e,A.useContext(Ty));return A.useMemo(()=>({initial:t,animate:n}),[IA(t),IA(n)])}function IA(e){return Array.isArray(e)?e.join(" "):e}const CU=Symbol.for("motionComponentSymbol");function Ko(e){return e&&typeof e=="object"&&Object.prototype.hasOwnProperty.call(e,"current")}function PU(e,t,n){return A.useCallback(r=>{r&&e.onMount&&e.onMount(r),t&&(r?t.mount(r):t.unmount()),n&&(typeof n=="function"?n(r):Ko(n)&&(n.current=r))},[t])}const KS=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),MU="framerAppearId",_D="data-"+KS(MU),{schedule:YS}=OD(queueMicrotask,!1),CD=A.createContext({});function RU(e,t,n,r,a){var i,s;const{visualElement:o}=A.useContext(Ty),l=A.useContext(ED),c=A.useContext(Ay),f=A.useContext(Oy).reducedMotion,d=A.useRef(null);r=r||l.renderer,!d.current&&r&&(d.current=r(e,{visualState:t,parent:o,props:n,presenceContext:c,blockInitialAnimation:c?c.initial===!1:!1,reducedMotionConfig:f}));const h=d.current,p=A.useContext(CD);h&&!h.projection&&a&&(h.type==="html"||h.type==="svg")&&DU(d.current,n,a,p);const v=A.useRef(!1);A.useInsertionEffect(()=>{h&&v.current&&h.update(n,c)});const y=n[_D],b=A.useRef(!!y&&!(!((i=window.MotionHandoffIsComplete)===null||i===void 0)&&i.call(window,y))&&((s=window.MotionHasOptimisedAnimation)===null||s===void 0?void 0:s.call(window,y)));return Ey(()=>{h&&(v.current=!0,window.MotionIsMounted=!0,h.updateFeatures(),YS.render(h.render),b.current&&h.animationState&&h.animationState.animateChanges())}),A.useEffect(()=>{h&&(!b.current&&h.animationState&&h.animationState.animateChanges(),b.current&&(queueMicrotask(()=>{var m;(m=window.MotionHandoffMarkAsComplete)===null||m===void 0||m.call(window,y)}),b.current=!1))}),h}function DU(e,t,n,r){const{layoutId:a,layout:i,drag:s,dragConstraints:o,layoutScroll:l,layoutRoot:c}=t;e.projection=new n(e.latestValues,t["data-framer-portal-id"]?void 0:PD(e.parent)),e.projection.setOptions({layoutId:a,layout:i,alwaysMeasureLayout:!!s||o&&Ko(o),visualElement:e,animationType:typeof i=="string"?i:"both",initialPromotionConfig:r,layoutScroll:l,layoutRoot:c})}function PD(e){if(e)return e.options.allowProjection!==!1?e.projection:PD(e.parent)}function $U({preloadedFeatures:e,createVisualElement:t,useRender:n,useVisualState:r,Component:a}){var i,s;e&&jU(e);function o(c,f){let d;const h={...A.useContext(Oy),...c,layoutId:kU(c)},{isStatic:p}=h,v=_U(c),y=r(c,p);if(!p&&VS){LU();const b=zU(h);d=b.MeasureLayout,v.visualElement=RU(a,y,h,t,b.ProjectionNode)}return u.jsxs(Ty.Provider,{value:v,children:[d&&v.visualElement?u.jsx(d,{visualElement:v.visualElement,...h}):null,n(a,c,PU(y,v.visualElement,f),y,p,v.visualElement)]})}o.displayName=`motion.${typeof a=="string"?a:`create(${(s=(i=a.displayName)!==null&&i!==void 0?i:a.name)!==null&&s!==void 0?s:""})`}`;const l=A.forwardRef(o);return l[CU]=a,l}function kU({layoutId:e}){const t=A.useContext(qS).id;return t&&e!==void 0?t+"-"+e:e}function LU(e,t){A.useContext(ED).strict}function zU(e){const{drag:t,layout:n}=zl;if(!t&&!n)return{};const r={...t,...n};return{MeasureLayout:t!=null&&t.isEnabled(e)||n!=null&&n.isEnabled(e)?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}const BU=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function XS(e){return typeof e!="string"||e.includes("-")?!1:!!(BU.indexOf(e)>-1||/[A-Z]/u.test(e))}function UA(e){const t=[{},{}];return e==null||e.values.forEach((n,r)=>{t[0][r]=n.get(),t[1][r]=n.getVelocity()}),t}function WS(e,t,n,r){if(typeof t=="function"){const[a,i]=UA(r);t=t(n!==void 0?n:e.custom,a,i)}if(typeof t=="string"&&(t=e.variants&&e.variants[t]),typeof t=="function"){const[a,i]=UA(r);t=t(n!==void 0?n:e.custom,a,i)}return t}const P0=e=>Array.isArray(e),IU=e=>!!(e&&typeof e=="object"&&e.mix&&e.toValue),UU=e=>P0(e)?e[e.length-1]||0:e,on=e=>!!(e&&e.getVelocity);function Qh(e){const t=on(e)?e.get():e;return IU(t)?t.toValue():t}function qU({scrapeMotionValuesFromProps:e,createRenderState:t,onUpdate:n},r,a,i){const s={latestValues:VU(r,a,i,e),renderState:t()};return n&&(s.onMount=o=>n({props:r,current:o,...s}),s.onUpdate=o=>n(o)),s}const MD=e=>(t,n)=>{const r=A.useContext(Ty),a=A.useContext(Ay),i=()=>qU(e,t,r,a);return n?i():Ec(i)};function VU(e,t,n,r){const a={},i=r(e,{});for(const h in i)a[h]=Qh(i[h]);let{initial:s,animate:o}=e;const l=_y(e),c=ND(e);t&&c&&!l&&e.inherit!==!1&&(s===void 0&&(s=t.initial),o===void 0&&(o=t.animate));let f=n?n.initial===!1:!1;f=f||s===!1;const d=f?o:s;if(d&&typeof d!="boolean"&&!Ny(d)){const h=Array.isArray(d)?d:[d];for(let p=0;p<h.length;p++){const v=WS(e,h[p]);if(v){const{transitionEnd:y,transition:b,...m}=v;for(const g in m){let x=m[g];if(Array.isArray(x)){const w=f?x.length-1:0;x=x[w]}x!==null&&(a[g]=x)}for(const g in y)a[g]=y[g]}}}return a}const Tc=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],po=new Set(Tc),RD=e=>t=>typeof t=="string"&&t.startsWith(e),DD=RD("--"),HU=RD("var(--"),QS=e=>HU(e)?FU.test(e.split("/*")[0].trim()):!1,FU=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,$D=(e,t)=>t&&typeof e=="number"?t.transform(e):e,ia=(e,t,n)=>n>t?t:n<e?e:n,Nc={test:e=>typeof e=="number",parse:parseFloat,transform:e=>e},pf={...Nc,transform:e=>ia(0,1,e)},uh={...Nc,default:1},wd=e=>({test:t=>typeof t=="string"&&t.endsWith(e)&&t.split(" ").length===1,parse:parseFloat,transform:t=>`${t}${e}`}),ii=wd("deg"),ea=wd("%"),fe=wd("px"),GU=wd("vh"),KU=wd("vw"),qA={...ea,parse:e=>ea.parse(e)/100,transform:e=>ea.transform(e*100)},YU={borderWidth:fe,borderTopWidth:fe,borderRightWidth:fe,borderBottomWidth:fe,borderLeftWidth:fe,borderRadius:fe,radius:fe,borderTopLeftRadius:fe,borderTopRightRadius:fe,borderBottomRightRadius:fe,borderBottomLeftRadius:fe,width:fe,maxWidth:fe,height:fe,maxHeight:fe,top:fe,right:fe,bottom:fe,left:fe,padding:fe,paddingTop:fe,paddingRight:fe,paddingBottom:fe,paddingLeft:fe,margin:fe,marginTop:fe,marginRight:fe,marginBottom:fe,marginLeft:fe,backgroundPositionX:fe,backgroundPositionY:fe},XU={rotate:ii,rotateX:ii,rotateY:ii,rotateZ:ii,scale:uh,scaleX:uh,scaleY:uh,scaleZ:uh,skew:ii,skewX:ii,skewY:ii,distance:fe,translateX:fe,translateY:fe,translateZ:fe,x:fe,y:fe,z:fe,perspective:fe,transformPerspective:fe,opacity:pf,originX:qA,originY:qA,originZ:fe},VA={...Nc,transform:Math.round},ZS={...YU,...XU,zIndex:VA,size:fe,fillOpacity:pf,strokeOpacity:pf,numOctaves:VA},WU={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},QU=Tc.length;function ZU(e,t,n){let r="",a=!0;for(let i=0;i<QU;i++){const s=Tc[i],o=e[s];if(o===void 0)continue;let l=!0;if(typeof o=="number"?l=o===(s.startsWith("scale")?1:0):l=parseFloat(o)===0,!l||n){const c=$D(o,ZS[s]);if(!l){a=!1;const f=WU[s]||s;r+=`${f}(${c}) `}n&&(t[s]=c)}}return r=r.trim(),n?r=n(t,a?"":r):a&&(r="none"),r}function JS(e,t,n){const{style:r,vars:a,transformOrigin:i}=e;let s=!1,o=!1;for(const l in t){const c=t[l];if(po.has(l)){s=!0;continue}else if(DD(l)){a[l]=c;continue}else{const f=$D(c,ZS[l]);l.startsWith("origin")?(o=!0,i[l]=f):r[l]=f}}if(t.transform||(s||n?r.transform=ZU(t,e.transform,n):r.transform&&(r.transform="none")),o){const{originX:l="50%",originY:c="50%",originZ:f=0}=i;r.transformOrigin=`${l} ${c} ${f}`}}const JU={offset:"stroke-dashoffset",array:"stroke-dasharray"},e7={offset:"strokeDashoffset",array:"strokeDasharray"};function t7(e,t,n=1,r=0,a=!0){e.pathLength=1;const i=a?JU:e7;e[i.offset]=fe.transform(-r);const s=fe.transform(t),o=fe.transform(n);e[i.array]=`${s} ${o}`}function HA(e,t,n){return typeof e=="string"?e:fe.transform(t+n*e)}function n7(e,t,n){const r=HA(t,e.x,e.width),a=HA(n,e.y,e.height);return`${r} ${a}`}function ew(e,{attrX:t,attrY:n,attrScale:r,originX:a,originY:i,pathLength:s,pathSpacing:o=1,pathOffset:l=0,...c},f,d){if(JS(e,c,d),f){e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox);return}e.attrs=e.style,e.style={};const{attrs:h,style:p,dimensions:v}=e;h.transform&&(v&&(p.transform=h.transform),delete h.transform),v&&(a!==void 0||i!==void 0||p.transform)&&(p.transformOrigin=n7(v,a!==void 0?a:.5,i!==void 0?i:.5)),t!==void 0&&(h.x=t),n!==void 0&&(h.y=n),r!==void 0&&(h.scale=r),s!==void 0&&t7(h,s,o,l,!1)}const tw=()=>({style:{},transform:{},transformOrigin:{},vars:{}}),kD=()=>({...tw(),attrs:{}}),nw=e=>typeof e=="string"&&e.toLowerCase()==="svg";function LD(e,{style:t,vars:n},r,a){Object.assign(e.style,t,a&&a.getProjectionStyles(r));for(const i in n)e.style.setProperty(i,n[i])}const zD=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function BD(e,t,n,r){LD(e,t,void 0,r);for(const a in t.attrs)e.setAttribute(zD.has(a)?a:KS(a),t.attrs[a])}const Up={};function r7(e){Object.assign(Up,e)}function ID(e,{layout:t,layoutId:n}){return po.has(e)||e.startsWith("origin")||(t||n!==void 0)&&(!!Up[e]||e==="opacity")}function rw(e,t,n){var r;const{style:a}=e,i={};for(const s in a)(on(a[s])||t.style&&on(t.style[s])||ID(s,e)||((r=n==null?void 0:n.getValue(s))===null||r===void 0?void 0:r.liveStyle)!==void 0)&&(i[s]=a[s]);return i}function UD(e,t,n){const r=rw(e,t,n);for(const a in e)if(on(e[a])||on(t[a])){const i=Tc.indexOf(a)!==-1?"attr"+a.charAt(0).toUpperCase()+a.substring(1):a;r[i]=e[a]}return r}function a7(e,t){try{t.dimensions=typeof e.getBBox=="function"?e.getBBox():e.getBoundingClientRect()}catch{t.dimensions={x:0,y:0,width:0,height:0}}}const FA=["x","y","width","height","cx","cy","r"],i7={useVisualState:MD({scrapeMotionValuesFromProps:UD,createRenderState:kD,onUpdate:({props:e,prevProps:t,current:n,renderState:r,latestValues:a})=>{if(!n)return;let i=!!e.drag;if(!i){for(const o in a)if(po.has(o)){i=!0;break}}if(!i)return;let s=!t;if(t)for(let o=0;o<FA.length;o++){const l=FA[o];e[l]!==t[l]&&(s=!0)}s&&Re.read(()=>{a7(n,r),Re.render(()=>{ew(r,a,nw(n.tagName),e.transformTemplate),BD(n,r)})})}})},s7={useVisualState:MD({scrapeMotionValuesFromProps:rw,createRenderState:tw})};function qD(e,t,n){for(const r in t)!on(t[r])&&!ID(r,n)&&(e[r]=t[r])}function o7({transformTemplate:e},t){return A.useMemo(()=>{const n=tw();return JS(n,t,e),Object.assign({},n.vars,n.style)},[t])}function l7(e,t){const n=e.style||{},r={};return qD(r,n,e),Object.assign(r,o7(e,t)),r}function c7(e,t){const n={},r=l7(e,t);return e.drag&&e.dragListener!==!1&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=e.drag===!0?"none":`pan-${e.drag==="x"?"y":"x"}`),e.tabIndex===void 0&&(e.onTap||e.onTapStart||e.whileTap)&&(n.tabIndex=0),n.style=r,n}function u7(e,t,n,r){const a=A.useMemo(()=>{const i=kD();return ew(i,t,nw(r),e.transformTemplate),{...i.attrs,style:{...i.style}}},[t]);if(e.style){const i={};qD(i,e.style,e),a.style={...i,...a.style}}return a}function f7(e=!1){return(n,r,a,{latestValues:i},s)=>{const l=(XS(n)?u7:c7)(r,i,s,n),c=EU(r,typeof n=="string",e),f=n!==A.Fragment?{...c,...l,ref:a}:{},{children:d}=r,h=A.useMemo(()=>on(d)?d.get():d,[d]);return A.createElement(n,{...f,children:h})}}function d7(e,t){return function(r,{forwardMotionProps:a}={forwardMotionProps:!1}){const s={...XS(r)?i7:s7,preloadedFeatures:e,useRender:f7(a),createVisualElement:t,Component:r};return $U(s)}}function VD(e,t){if(!Array.isArray(t))return!1;const n=t.length;if(n!==e.length)return!1;for(let r=0;r<n;r++)if(t[r]!==e[r])return!1;return!0}function Cy(e,t,n){const r=e.getProps();return WS(r,t,n!==void 0?n:r.custom,e)}const HD=HS(()=>window.ScrollTimeline!==void 0);class h7{constructor(t){this.stop=()=>this.runAll("stop"),this.animations=t.filter(Boolean)}get finished(){return Promise.all(this.animations.map(t=>"finished"in t?t.finished:t))}getAll(t){return this.animations[0][t]}setAll(t,n){for(let r=0;r<this.animations.length;r++)this.animations[r][t]=n}attachTimeline(t,n){const r=this.animations.map(a=>{if(HD()&&a.attachTimeline)return a.attachTimeline(t);if(typeof n=="function")return n(a)});return()=>{r.forEach((a,i)=>{a&&a(),this.animations[i].stop()})}}get time(){return this.getAll("time")}set time(t){this.setAll("time",t)}get speed(){return this.getAll("speed")}set speed(t){this.setAll("speed",t)}get startTime(){return this.getAll("startTime")}get duration(){let t=0;for(let n=0;n<this.animations.length;n++)t=Math.max(t,this.animations[n].duration);return t}runAll(t){this.animations.forEach(n=>n[t]())}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}class p7 extends h7{then(t,n){return Promise.all(this.animations).then(t).catch(n)}}function aw(e,t){return e?e[t]||e.default||e:void 0}const M0=2e4;function FD(e){let t=0;const n=50;let r=e.next(t);for(;!r.done&&t<M0;)t+=n,r=e.next(t);return t>=M0?1/0:t}function iw(e){return typeof e=="function"}function GA(e,t){e.timeline=t,e.onfinish=null}const sw=e=>Array.isArray(e)&&typeof e[0]=="number",m7={linearEasing:void 0};function y7(e,t){const n=HS(e);return()=>{var r;return(r=m7[t])!==null&&r!==void 0?r:n()}}const qp=y7(()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch{return!1}return!0},"linearEasing"),GD=(e,t,n=10)=>{let r="";const a=Math.max(Math.round(t/n),2);for(let i=0;i<a;i++)r+=e(Zs(0,a-1,i))+", ";return`linear(${r.substring(0,r.length-2)})`};function KD(e){return!!(typeof e=="function"&&qp()||!e||typeof e=="string"&&(e in R0||qp())||sw(e)||Array.isArray(e)&&e.every(KD))}const vu=([e,t,n,r])=>`cubic-bezier(${e}, ${t}, ${n}, ${r})`,R0={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:vu([0,.65,.55,1]),circOut:vu([.55,0,1,.45]),backIn:vu([.31,.01,.66,-.59]),backOut:vu([.33,1.53,.69,.99])};function YD(e,t){if(e)return typeof e=="function"&&qp()?GD(e,t):sw(e)?vu(e):Array.isArray(e)?e.map(n=>YD(n,t)||R0.easeOut):R0[e]}const Tr={x:!1,y:!1};function XD(){return Tr.x||Tr.y}function WD(e,t,n){var r;if(e instanceof Element)return[e];if(typeof e=="string"){let a=document;const i=(r=void 0)!==null&&r!==void 0?r:a.querySelectorAll(e);return i?Array.from(i):[]}return Array.from(e)}function QD(e,t){const n=WD(e),r=new AbortController,a={passive:!0,...t,signal:r.signal};return[n,a,()=>r.abort()]}function KA(e){return t=>{t.pointerType==="touch"||XD()||e(t)}}function v7(e,t,n={}){const[r,a,i]=QD(e,n),s=KA(o=>{const{target:l}=o,c=t(o);if(typeof c!="function"||!l)return;const f=KA(d=>{c(d),l.removeEventListener("pointerleave",f)});l.addEventListener("pointerleave",f,a)});return r.forEach(o=>{o.addEventListener("pointerenter",s,a)}),i}const ZD=(e,t)=>t?e===t?!0:ZD(e,t.parentElement):!1,ow=e=>e.pointerType==="mouse"?typeof e.button!="number"||e.button<=0:e.isPrimary!==!1,g7=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);function b7(e){return g7.has(e.tagName)||e.tabIndex!==-1}const gu=new WeakSet;function YA(e){return t=>{t.key==="Enter"&&e(t)}}function bg(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}const x7=(e,t)=>{const n=e.currentTarget;if(!n)return;const r=YA(()=>{if(gu.has(n))return;bg(n,"down");const a=YA(()=>{bg(n,"up")}),i=()=>bg(n,"cancel");n.addEventListener("keyup",a,t),n.addEventListener("blur",i,t)});n.addEventListener("keydown",r,t),n.addEventListener("blur",()=>n.removeEventListener("keydown",r),t)};function XA(e){return ow(e)&&!XD()}function S7(e,t,n={}){const[r,a,i]=QD(e,n),s=o=>{const l=o.currentTarget;if(!XA(o)||gu.has(l))return;gu.add(l);const c=t(o),f=(p,v)=>{window.removeEventListener("pointerup",d),window.removeEventListener("pointercancel",h),!(!XA(p)||!gu.has(l))&&(gu.delete(l),typeof c=="function"&&c(p,{success:v}))},d=p=>{f(p,n.useGlobalTarget||ZD(l,p.target))},h=p=>{f(p,!1)};window.addEventListener("pointerup",d,a),window.addEventListener("pointercancel",h,a)};return r.forEach(o=>{!b7(o)&&o.getAttribute("tabindex")===null&&(o.tabIndex=0),(n.useGlobalTarget?window:o).addEventListener("pointerdown",s,a),o.addEventListener("focus",c=>x7(c,a),a)}),i}function w7(e){return e==="x"||e==="y"?Tr[e]?null:(Tr[e]=!0,()=>{Tr[e]=!1}):Tr.x||Tr.y?null:(Tr.x=Tr.y=!0,()=>{Tr.x=Tr.y=!1})}const JD=new Set(["width","height","top","left","right","bottom",...Tc]);let Zh;function j7(){Zh=void 0}const ta={now:()=>(Zh===void 0&&ta.set(Bt.isProcessing||xU.useManualTiming?Bt.timestamp:performance.now()),Zh),set:e=>{Zh=e,queueMicrotask(j7)}};function lw(e,t){e.indexOf(t)===-1&&e.push(t)}function cw(e,t){const n=e.indexOf(t);n>-1&&e.splice(n,1)}class uw{constructor(){this.subscriptions=[]}add(t){return lw(this.subscriptions,t),()=>cw(this.subscriptions,t)}notify(t,n,r){const a=this.subscriptions.length;if(a)if(a===1)this.subscriptions[0](t,n,r);else for(let i=0;i<a;i++){const s=this.subscriptions[i];s&&s(t,n,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}function fw(e,t){return t?e*(1e3/t):0}const WA=30,A7=e=>!isNaN(parseFloat(e)),$u={current:void 0};class O7{constructor(t,n={}){this.version="11.18.2",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(r,a=!0)=>{const i=ta.now();this.updatedAt!==i&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(r),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),a&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){this.current=t,this.updatedAt=ta.now(),this.canTrackVelocity===null&&t!==void 0&&(this.canTrackVelocity=A7(this.current))}setPrevFrameValue(t=this.current){this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,n){this.events[t]||(this.events[t]=new uw);const r=this.events[t].add(n);return t==="change"?()=>{r(),Re.read(()=>{this.events.change.getSize()||this.stop()})}:r}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,n){this.passiveEffect=t,this.stopPassiveEffect=n}set(t,n=!0){!n||!this.passiveEffect?this.updateAndNotify(t,n):this.passiveEffect(t,this.updateAndNotify)}setWithVelocity(t,n,r){this.set(n),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-r}jump(t,n=!0){this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,n&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return $u.current&&$u.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){const t=ta.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||t-this.updatedAt>WA)return 0;const n=Math.min(this.updatedAt-this.prevUpdatedAt,WA);return fw(parseFloat(this.current)-parseFloat(this.prevFrameValue),n)}start(t){return this.stop(),new Promise(n=>{this.hasAnimated=!0,this.animation=t(n),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function Xr(e,t){return new O7(e,t)}function E7(e,t,n){e.hasValue(t)?e.getValue(t).set(n):e.addValue(t,Xr(n))}function T7(e,t){const n=Cy(e,t);let{transitionEnd:r={},transition:a={},...i}=n||{};i={...i,...r};for(const s in i){const o=UU(i[s]);E7(e,s,o)}}function N7(e){return!!(on(e)&&e.add)}function D0(e,t){const n=e.getValue("willChange");if(N7(n))return n.add(t)}function e3(e){return e.props[_D]}const t3=(e,t,n)=>(((1-3*n+3*t)*e+(3*n-6*t))*e+3*t)*e,_7=1e-7,C7=12;function P7(e,t,n,r,a){let i,s,o=0;do s=t+(n-t)/2,i=t3(s,r,a)-e,i>0?n=s:t=s;while(Math.abs(i)>_7&&++o<C7);return s}function jd(e,t,n,r){if(e===t&&n===r)return pn;const a=i=>P7(i,0,1,e,n);return i=>i===0||i===1?i:t3(a(i),t,r)}const n3=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,r3=e=>t=>1-e(1-t),a3=jd(.33,1.53,.69,.99),dw=r3(a3),i3=n3(dw),s3=e=>(e*=2)<1?.5*dw(e):.5*(2-Math.pow(2,-10*(e-1))),hw=e=>1-Math.sin(Math.acos(e)),o3=r3(hw),l3=n3(hw),c3=e=>/^0[^.\s]+$/u.test(e);function M7(e){return typeof e=="number"?e===0:e!==null?e==="none"||e==="0"||c3(e):!0}const ku=e=>Math.round(e*1e5)/1e5,pw=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;function R7(e){return e==null}const D7=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,mw=(e,t)=>n=>!!(typeof n=="string"&&D7.test(n)&&n.startsWith(e)||t&&!R7(n)&&Object.prototype.hasOwnProperty.call(n,t)),u3=(e,t,n)=>r=>{if(typeof r!="string")return r;const[a,i,s,o]=r.match(pw);return{[e]:parseFloat(a),[t]:parseFloat(i),[n]:parseFloat(s),alpha:o!==void 0?parseFloat(o):1}},$7=e=>ia(0,255,e),xg={...Nc,transform:e=>Math.round($7(e))},Ss={test:mw("rgb","red"),parse:u3("red","green","blue"),transform:({red:e,green:t,blue:n,alpha:r=1})=>"rgba("+xg.transform(e)+", "+xg.transform(t)+", "+xg.transform(n)+", "+ku(pf.transform(r))+")"};function k7(e){let t="",n="",r="",a="";return e.length>5?(t=e.substring(1,3),n=e.substring(3,5),r=e.substring(5,7),a=e.substring(7,9)):(t=e.substring(1,2),n=e.substring(2,3),r=e.substring(3,4),a=e.substring(4,5),t+=t,n+=n,r+=r,a+=a),{red:parseInt(t,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:a?parseInt(a,16)/255:1}}const $0={test:mw("#"),parse:k7,transform:Ss.transform},Yo={test:mw("hsl","hue"),parse:u3("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:n,alpha:r=1})=>"hsla("+Math.round(e)+", "+ea.transform(ku(t))+", "+ea.transform(ku(n))+", "+ku(pf.transform(r))+")"},rn={test:e=>Ss.test(e)||$0.test(e)||Yo.test(e),parse:e=>Ss.test(e)?Ss.parse(e):Yo.test(e)?Yo.parse(e):$0.parse(e),transform:e=>typeof e=="string"?e:e.hasOwnProperty("red")?Ss.transform(e):Yo.transform(e)},L7=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;function z7(e){var t,n;return isNaN(e)&&typeof e=="string"&&(((t=e.match(pw))===null||t===void 0?void 0:t.length)||0)+(((n=e.match(L7))===null||n===void 0?void 0:n.length)||0)>0}const f3="number",d3="color",B7="var",I7="var(",QA="${}",U7=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function mf(e){const t=e.toString(),n=[],r={color:[],number:[],var:[]},a=[];let i=0;const o=t.replace(U7,l=>(rn.test(l)?(r.color.push(i),a.push(d3),n.push(rn.parse(l))):l.startsWith(I7)?(r.var.push(i),a.push(B7),n.push(l)):(r.number.push(i),a.push(f3),n.push(parseFloat(l))),++i,QA)).split(QA);return{values:n,split:o,indexes:r,types:a}}function h3(e){return mf(e).values}function p3(e){const{split:t,types:n}=mf(e),r=t.length;return a=>{let i="";for(let s=0;s<r;s++)if(i+=t[s],a[s]!==void 0){const o=n[s];o===f3?i+=ku(a[s]):o===d3?i+=rn.transform(a[s]):i+=a[s]}return i}}const q7=e=>typeof e=="number"?0:e;function V7(e){const t=h3(e);return p3(e)(t.map(q7))}const Yi={test:z7,parse:h3,createTransformer:p3,getAnimatableNone:V7},H7=new Set(["brightness","contrast","saturate","opacity"]);function F7(e){const[t,n]=e.slice(0,-1).split("(");if(t==="drop-shadow")return e;const[r]=n.match(pw)||[];if(!r)return e;const a=n.replace(r,"");let i=H7.has(t)?1:0;return r!==n&&(i*=100),t+"("+i+a+")"}const G7=/\b([a-z-]*)\(.*?\)/gu,k0={...Yi,getAnimatableNone:e=>{const t=e.match(G7);return t?t.map(F7).join(" "):e}},K7={...ZS,color:rn,backgroundColor:rn,outlineColor:rn,fill:rn,stroke:rn,borderColor:rn,borderTopColor:rn,borderRightColor:rn,borderBottomColor:rn,borderLeftColor:rn,filter:k0,WebkitFilter:k0},yw=e=>K7[e];function m3(e,t){let n=yw(e);return n!==k0&&(n=Yi),n.getAnimatableNone?n.getAnimatableNone(t):void 0}const Y7=new Set(["auto","none","0"]);function X7(e,t,n){let r=0,a;for(;r<e.length&&!a;){const i=e[r];typeof i=="string"&&!Y7.has(i)&&mf(i).values.length&&(a=e[r]),r++}if(a&&n)for(const i of t)e[i]=m3(n,a)}const ZA=e=>e===Nc||e===fe,JA=(e,t)=>parseFloat(e.split(", ")[t]),eO=(e,t)=>(n,{transform:r})=>{if(r==="none"||!r)return 0;const a=r.match(/^matrix3d\((.+)\)$/u);if(a)return JA(a[1],t);{const i=r.match(/^matrix\((.+)\)$/u);return i?JA(i[1],e):0}},W7=new Set(["x","y","z"]),Q7=Tc.filter(e=>!W7.has(e));function Z7(e){const t=[];return Q7.forEach(n=>{const r=e.getValue(n);r!==void 0&&(t.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))}),t}const Bl={width:({x:e},{paddingLeft:t="0",paddingRight:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),height:({y:e},{paddingTop:t="0",paddingBottom:n="0"})=>e.max-e.min-parseFloat(t)-parseFloat(n),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:eO(4,13),y:eO(5,14)};Bl.translateX=Bl.x;Bl.translateY=Bl.y;const qs=new Set;let L0=!1,z0=!1;function y3(){if(z0){const e=Array.from(qs).filter(r=>r.needsMeasurement),t=new Set(e.map(r=>r.element)),n=new Map;t.forEach(r=>{const a=Z7(r);a.length&&(n.set(r,a),r.render())}),e.forEach(r=>r.measureInitialState()),t.forEach(r=>{r.render();const a=n.get(r);a&&a.forEach(([i,s])=>{var o;(o=r.getValue(i))===null||o===void 0||o.set(s)})}),e.forEach(r=>r.measureEndState()),e.forEach(r=>{r.suspendedScrollY!==void 0&&window.scrollTo(0,r.suspendedScrollY)})}z0=!1,L0=!1,qs.forEach(e=>e.complete()),qs.clear()}function v3(){qs.forEach(e=>{e.readKeyframes(),e.needsMeasurement&&(z0=!0)})}function J7(){v3(),y3()}class vw{constructor(t,n,r,a,i,s=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...t],this.onComplete=n,this.name=r,this.motionValue=a,this.element=i,this.isAsync=s}scheduleResolve(){this.isScheduled=!0,this.isAsync?(qs.add(this),L0||(L0=!0,Re.read(v3),Re.resolveKeyframes(y3))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:n,element:r,motionValue:a}=this;for(let i=0;i<t.length;i++)if(t[i]===null)if(i===0){const s=a==null?void 0:a.get(),o=t[t.length-1];if(s!==void 0)t[0]=s;else if(r&&n){const l=r.readValue(n,o);l!=null&&(t[0]=l)}t[0]===void 0&&(t[0]=o),a&&s===void 0&&a.set(t[0])}else t[i]=t[i-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),qs.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,qs.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}const g3=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),e9=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function t9(e){const t=e9.exec(e);if(!t)return[,];const[,n,r,a]=t;return[`--${n??r}`,a]}function b3(e,t,n=1){const[r,a]=t9(e);if(!r)return;const i=window.getComputedStyle(t).getPropertyValue(r);if(i){const s=i.trim();return g3(s)?parseFloat(s):s}return QS(a)?b3(a,t,n+1):a}const x3=e=>t=>t.test(e),n9={test:e=>e==="auto",parse:e=>e},S3=[Nc,fe,ea,ii,KU,GU,n9],tO=e=>S3.find(x3(e));class w3 extends vw{constructor(t,n,r,a,i){super(t,n,r,a,i,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:n,name:r}=this;if(!n||!n.current)return;super.readKeyframes();for(let l=0;l<t.length;l++){let c=t[l];if(typeof c=="string"&&(c=c.trim(),QS(c))){const f=b3(c,n.current);f!==void 0&&(t[l]=f),l===t.length-1&&(this.finalKeyframe=c)}}if(this.resolveNoneKeyframes(),!JD.has(r)||t.length!==2)return;const[a,i]=t,s=tO(a),o=tO(i);if(s!==o)if(ZA(s)&&ZA(o))for(let l=0;l<t.length;l++){const c=t[l];typeof c=="string"&&(t[l]=parseFloat(c))}else this.needsMeasurement=!0}resolveNoneKeyframes(){const{unresolvedKeyframes:t,name:n}=this,r=[];for(let a=0;a<t.length;a++)M7(t[a])&&r.push(a);r.length&&X7(t,r,n)}measureInitialState(){const{element:t,unresolvedKeyframes:n,name:r}=this;if(!t||!t.current)return;r==="height"&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=Bl[r](t.measureViewportBox(),window.getComputedStyle(t.current)),n[0]=this.measuredOrigin;const a=n[n.length-1];a!==void 0&&t.getValue(r,a).jump(a,!1)}measureEndState(){var t;const{element:n,name:r,unresolvedKeyframes:a}=this;if(!n||!n.current)return;const i=n.getValue(r);i&&i.jump(this.measuredOrigin,!1);const s=a.length-1,o=a[s];a[s]=Bl[r](n.measureViewportBox(),window.getComputedStyle(n.current)),o!==null&&this.finalKeyframe===void 0&&(this.finalKeyframe=o),!((t=this.removedTransforms)===null||t===void 0)&&t.length&&this.removedTransforms.forEach(([l,c])=>{n.getValue(l).set(c)}),this.resolveNoneKeyframes()}}const nO=(e,t)=>t==="zIndex"?!1:!!(typeof e=="number"||Array.isArray(e)||typeof e=="string"&&(Yi.test(e)||e==="0")&&!e.startsWith("url("));function r9(e){const t=e[0];if(e.length===1)return!0;for(let n=0;n<e.length;n++)if(e[n]!==t)return!0}function a9(e,t,n,r){const a=e[0];if(a===null)return!1;if(t==="display"||t==="visibility")return!0;const i=e[e.length-1],s=nO(a,t),o=nO(i,t);return!s||!o?!1:r9(e)||(n==="spring"||iw(n))&&r}const i9=e=>e!==null;function Py(e,{repeat:t,repeatType:n="loop"},r){const a=e.filter(i9),i=t&&n!=="loop"&&t%2===1?0:a.length-1;return!i||r===void 0?a[i]:r}const s9=40;class j3{constructor({autoplay:t=!0,delay:n=0,type:r="keyframes",repeat:a=0,repeatDelay:i=0,repeatType:s="loop",...o}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=ta.now(),this.options={autoplay:t,delay:n,type:r,repeat:a,repeatDelay:i,repeatType:s,...o},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt?this.resolvedAt-this.createdAt>s9?this.resolvedAt:this.createdAt:this.createdAt}get resolved(){return!this._resolved&&!this.hasAttemptedResolve&&J7(),this._resolved}onKeyframesResolved(t,n){this.resolvedAt=ta.now(),this.hasAttemptedResolve=!0;const{name:r,type:a,velocity:i,delay:s,onComplete:o,onUpdate:l,isGenerator:c}=this.options;if(!c&&!a9(t,r,a,i))if(s)this.options.duration=0;else{l&&l(Py(t,this.options,n)),o&&o(),this.resolveFinishedPromise();return}const f=this.initPlayback(t,n);f!==!1&&(this._resolved={keyframes:t,finalKeyframe:n,...f},this.onPostResolved())}onPostResolved(){}then(t,n){return this.currentFinishedPromise.then(t,n)}flatten(){this.options.type="keyframes",this.options.ease="linear"}updateFinishedPromise(){this.currentFinishedPromise=new Promise(t=>{this.resolveFinishedPromise=t})}}const dt=(e,t,n)=>e+(t-e)*n;function Sg(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+(t-e)*6*n:n<1/2?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function o9({hue:e,saturation:t,lightness:n,alpha:r}){e/=360,t/=100,n/=100;let a=0,i=0,s=0;if(!t)a=i=s=n;else{const o=n<.5?n*(1+t):n+t-n*t,l=2*n-o;a=Sg(l,o,e+1/3),i=Sg(l,o,e),s=Sg(l,o,e-1/3)}return{red:Math.round(a*255),green:Math.round(i*255),blue:Math.round(s*255),alpha:r}}function Vp(e,t){return n=>n>0?t:e}const wg=(e,t,n)=>{const r=e*e,a=n*(t*t-r)+r;return a<0?0:Math.sqrt(a)},l9=[$0,Ss,Yo],c9=e=>l9.find(t=>t.test(e));function rO(e){const t=c9(e);if(!t)return!1;let n=t.parse(e);return t===Yo&&(n=o9(n)),n}const aO=(e,t)=>{const n=rO(e),r=rO(t);if(!n||!r)return Vp(e,t);const a={...n};return i=>(a.red=wg(n.red,r.red,i),a.green=wg(n.green,r.green,i),a.blue=wg(n.blue,r.blue,i),a.alpha=dt(n.alpha,r.alpha,i),Ss.transform(a))},u9=(e,t)=>n=>t(e(n)),Ad=(...e)=>e.reduce(u9),B0=new Set(["none","hidden"]);function f9(e,t){return B0.has(e)?n=>n<=0?e:t:n=>n>=1?t:e}function d9(e,t){return n=>dt(e,t,n)}function gw(e){return typeof e=="number"?d9:typeof e=="string"?QS(e)?Vp:rn.test(e)?aO:m9:Array.isArray(e)?A3:typeof e=="object"?rn.test(e)?aO:h9:Vp}function A3(e,t){const n=[...e],r=n.length,a=e.map((i,s)=>gw(i)(i,t[s]));return i=>{for(let s=0;s<r;s++)n[s]=a[s](i);return n}}function h9(e,t){const n={...e,...t},r={};for(const a in n)e[a]!==void 0&&t[a]!==void 0&&(r[a]=gw(e[a])(e[a],t[a]));return a=>{for(const i in r)n[i]=r[i](a);return n}}function p9(e,t){var n;const r=[],a={color:0,var:0,number:0};for(let i=0;i<t.values.length;i++){const s=t.types[i],o=e.indexes[s][a[s]],l=(n=e.values[o])!==null&&n!==void 0?n:0;r[i]=l,a[s]++}return r}const m9=(e,t)=>{const n=Yi.createTransformer(t),r=mf(e),a=mf(t);return r.indexes.var.length===a.indexes.var.length&&r.indexes.color.length===a.indexes.color.length&&r.indexes.number.length>=a.indexes.number.length?B0.has(e)&&!a.values.length||B0.has(t)&&!r.values.length?f9(e,t):Ad(A3(p9(r,a),a.values),n):Vp(e,t)};function O3(e,t,n){return typeof e=="number"&&typeof t=="number"&&typeof n=="number"?dt(e,t,n):gw(e)(e,t)}const y9=5;function E3(e,t,n){const r=Math.max(t-y9,0);return fw(n-e(r),t-r)}const mt={stiffness:100,damping:10,mass:1,velocity:0,duration:800,bounce:.3,visualDuration:.3,restSpeed:{granular:.01,default:2},restDelta:{granular:.005,default:.5},minDuration:.01,maxDuration:10,minDamping:.05,maxDamping:1},jg=.001;function v9({duration:e=mt.duration,bounce:t=mt.bounce,velocity:n=mt.velocity,mass:r=mt.mass}){let a,i,s=1-t;s=ia(mt.minDamping,mt.maxDamping,s),e=ia(mt.minDuration,mt.maxDuration,ka(e)),s<1?(a=c=>{const f=c*s,d=f*e,h=f-n,p=I0(c,s),v=Math.exp(-d);return jg-h/p*v},i=c=>{const d=c*s*e,h=d*n+n,p=Math.pow(s,2)*Math.pow(c,2)*e,v=Math.exp(-d),y=I0(Math.pow(c,2),s);return(-a(c)+jg>0?-1:1)*((h-p)*v)/y}):(a=c=>{const f=Math.exp(-c*e),d=(c-n)*e+1;return-jg+f*d},i=c=>{const f=Math.exp(-c*e),d=(n-c)*(e*e);return f*d});const o=5/e,l=b9(a,i,o);if(e=$a(e),isNaN(l))return{stiffness:mt.stiffness,damping:mt.damping,duration:e};{const c=Math.pow(l,2)*r;return{stiffness:c,damping:s*2*Math.sqrt(r*c),duration:e}}}const g9=12;function b9(e,t,n){let r=n;for(let a=1;a<g9;a++)r=r-e(r)/t(r);return r}function I0(e,t){return e*Math.sqrt(1-t*t)}const x9=["duration","bounce"],S9=["stiffness","damping","mass"];function iO(e,t){return t.some(n=>e[n]!==void 0)}function w9(e){let t={velocity:mt.velocity,stiffness:mt.stiffness,damping:mt.damping,mass:mt.mass,isResolvedFromDuration:!1,...e};if(!iO(e,S9)&&iO(e,x9))if(e.visualDuration){const n=e.visualDuration,r=2*Math.PI/(n*1.2),a=r*r,i=2*ia(.05,1,1-(e.bounce||0))*Math.sqrt(a);t={...t,mass:mt.mass,stiffness:a,damping:i}}else{const n=v9(e);t={...t,...n,mass:mt.mass},t.isResolvedFromDuration=!0}return t}function T3(e=mt.visualDuration,t=mt.bounce){const n=typeof e!="object"?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:r,restDelta:a}=n;const i=n.keyframes[0],s=n.keyframes[n.keyframes.length-1],o={done:!1,value:i},{stiffness:l,damping:c,mass:f,duration:d,velocity:h,isResolvedFromDuration:p}=w9({...n,velocity:-ka(n.velocity||0)}),v=h||0,y=c/(2*Math.sqrt(l*f)),b=s-i,m=ka(Math.sqrt(l/f)),g=Math.abs(b)<5;r||(r=g?mt.restSpeed.granular:mt.restSpeed.default),a||(a=g?mt.restDelta.granular:mt.restDelta.default);let x;if(y<1){const S=I0(m,y);x=j=>{const O=Math.exp(-y*m*j);return s-O*((v+y*m*b)/S*Math.sin(S*j)+b*Math.cos(S*j))}}else if(y===1)x=S=>s-Math.exp(-m*S)*(b+(v+m*b)*S);else{const S=m*Math.sqrt(y*y-1);x=j=>{const O=Math.exp(-y*m*j),E=Math.min(S*j,300);return s-O*((v+y*m*b)*Math.sinh(E)+S*b*Math.cosh(E))/S}}const w={calculatedDuration:p&&d||null,next:S=>{const j=x(S);if(p)o.done=S>=d;else{let O=0;y<1&&(O=S===0?$a(v):E3(x,S,j));const E=Math.abs(O)<=r,T=Math.abs(s-j)<=a;o.done=E&&T}return o.value=o.done?s:j,o},toString:()=>{const S=Math.min(FD(w),M0),j=GD(O=>w.next(S*O).value,S,30);return S+"ms "+j}};return w}function sO({keyframes:e,velocity:t=0,power:n=.8,timeConstant:r=325,bounceDamping:a=10,bounceStiffness:i=500,modifyTarget:s,min:o,max:l,restDelta:c=.5,restSpeed:f}){const d=e[0],h={done:!1,value:d},p=E=>o!==void 0&&E<o||l!==void 0&&E>l,v=E=>o===void 0?l:l===void 0||Math.abs(o-E)<Math.abs(l-E)?o:l;let y=n*t;const b=d+y,m=s===void 0?b:s(b);m!==b&&(y=m-d);const g=E=>-y*Math.exp(-E/r),x=E=>m+g(E),w=E=>{const T=g(E),_=x(E);h.done=Math.abs(T)<=c,h.value=h.done?m:_};let S,j;const O=E=>{p(h.value)&&(S=E,j=T3({keyframes:[h.value,v(h.value)],velocity:E3(x,E,h.value),damping:a,stiffness:i,restDelta:c,restSpeed:f}))};return O(0),{calculatedDuration:null,next:E=>{let T=!1;return!j&&S===void 0&&(T=!0,w(E),O(E)),S!==void 0&&E>=S?j.next(E-S):(!T&&w(E),h)}}}const j9=jd(.42,0,1,1),A9=jd(0,0,.58,1),N3=jd(.42,0,.58,1),O9=e=>Array.isArray(e)&&typeof e[0]!="number",E9={linear:pn,easeIn:j9,easeInOut:N3,easeOut:A9,circIn:hw,circInOut:l3,circOut:o3,backIn:dw,backInOut:i3,backOut:a3,anticipate:s3},oO=e=>{if(sw(e)){AD(e.length===4);const[t,n,r,a]=e;return jd(t,n,r,a)}else if(typeof e=="string")return E9[e];return e};function T9(e,t,n){const r=[],a=n||O3,i=e.length-1;for(let s=0;s<i;s++){let o=a(e[s],e[s+1]);if(t){const l=Array.isArray(t)?t[s]||pn:t;o=Ad(l,o)}r.push(o)}return r}function bw(e,t,{clamp:n=!0,ease:r,mixer:a}={}){const i=e.length;if(AD(i===t.length),i===1)return()=>t[0];if(i===2&&t[0]===t[1])return()=>t[1];const s=e[0]===e[1];e[0]>e[i-1]&&(e=[...e].reverse(),t=[...t].reverse());const o=T9(t,r,a),l=o.length,c=f=>{if(s&&f<e[0])return t[0];let d=0;if(l>1)for(;d<e.length-2&&!(f<e[d+1]);d++);const h=Zs(e[d],e[d+1],f);return o[d](h)};return n?f=>c(ia(e[0],e[i-1],f)):c}function N9(e,t){const n=e[e.length-1];for(let r=1;r<=t;r++){const a=Zs(0,t,r);e.push(dt(n,1,a))}}function _3(e){const t=[0];return N9(t,e.length-1),t}function _9(e,t){return e.map(n=>n*t)}function C9(e,t){return e.map(()=>t||N3).splice(0,e.length-1)}function Hp({duration:e=300,keyframes:t,times:n,ease:r="easeInOut"}){const a=O9(r)?r.map(oO):oO(r),i={done:!1,value:t[0]},s=_9(n&&n.length===t.length?n:_3(t),e),o=bw(s,t,{ease:Array.isArray(a)?a:C9(t,a)});return{calculatedDuration:e,next:l=>(i.value=o(l),i.done=l>=e,i)}}const P9=e=>{const t=({timestamp:n})=>e(n);return{start:()=>Re.update(t,!0),stop:()=>$r(t),now:()=>Bt.isProcessing?Bt.timestamp:ta.now()}},M9={decay:sO,inertia:sO,tween:Hp,keyframes:Hp,spring:T3},R9=e=>e/100;class xw extends j3{constructor(t){super(t),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.teardown();const{onStop:l}=this.options;l&&l()};const{name:n,motionValue:r,element:a,keyframes:i}=this.options,s=(a==null?void 0:a.KeyframeResolver)||vw,o=(l,c)=>this.onKeyframesResolved(l,c);this.resolver=new s(i,o,n,r,a),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(t){const{type:n="keyframes",repeat:r=0,repeatDelay:a=0,repeatType:i,velocity:s=0}=this.options,o=iw(n)?n:M9[n]||Hp;let l,c;o!==Hp&&typeof t[0]!="number"&&(l=Ad(R9,O3(t[0],t[1])),t=[0,100]);const f=o({...this.options,keyframes:t});i==="mirror"&&(c=o({...this.options,keyframes:[...t].reverse(),velocity:-s})),f.calculatedDuration===null&&(f.calculatedDuration=FD(f));const{calculatedDuration:d}=f,h=d+a,p=h*(r+1)-a;return{generator:f,mirroredGenerator:c,mapPercentToKeyframes:l,calculatedDuration:d,resolvedDuration:h,totalDuration:p}}onPostResolved(){const{autoplay:t=!0}=this.options;this.play(),this.pendingPlayState==="paused"||!t?this.pause():this.state=this.pendingPlayState}tick(t,n=!1){const{resolved:r}=this;if(!r){const{keyframes:E}=this.options;return{done:!0,value:E[E.length-1]}}const{finalKeyframe:a,generator:i,mirroredGenerator:s,mapPercentToKeyframes:o,keyframes:l,calculatedDuration:c,totalDuration:f,resolvedDuration:d}=r;if(this.startTime===null)return i.next(0);const{delay:h,repeat:p,repeatType:v,repeatDelay:y,onUpdate:b}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-f/this.speed,this.startTime)),n?this.currentTime=t:this.holdTime!==null?this.currentTime=this.holdTime:this.currentTime=Math.round(t-this.startTime)*this.speed;const m=this.currentTime-h*(this.speed>=0?1:-1),g=this.speed>=0?m<0:m>f;this.currentTime=Math.max(m,0),this.state==="finished"&&this.holdTime===null&&(this.currentTime=f);let x=this.currentTime,w=i;if(p){const E=Math.min(this.currentTime,f)/d;let T=Math.floor(E),_=E%1;!_&&E>=1&&(_=1),_===1&&T--,T=Math.min(T,p+1),!!(T%2)&&(v==="reverse"?(_=1-_,y&&(_-=y/d)):v==="mirror"&&(w=s)),x=ia(0,1,_)*d}const S=g?{done:!1,value:l[0]}:w.next(x);o&&(S.value=o(S.value));let{done:j}=S;!g&&c!==null&&(j=this.speed>=0?this.currentTime>=f:this.currentTime<=0);const O=this.holdTime===null&&(this.state==="finished"||this.state==="running"&&j);return O&&a!==void 0&&(S.value=Py(l,this.options,a)),b&&b(S.value),O&&this.finish(),S}get duration(){const{resolved:t}=this;return t?ka(t.calculatedDuration):0}get time(){return ka(this.currentTime)}set time(t){t=$a(t),this.currentTime=t,this.holdTime!==null||this.speed===0?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.speed)}get speed(){return this.playbackSpeed}set speed(t){const n=this.playbackSpeed!==t;this.playbackSpeed=t,n&&(this.time=ka(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved){this.pendingPlayState="running";return}if(this.isStopped)return;const{driver:t=P9,onPlay:n,startTime:r}=this.options;this.driver||(this.driver=t(i=>this.tick(i))),n&&n();const a=this.driver.now();this.holdTime!==null?this.startTime=a-this.holdTime:this.startTime?this.state==="finished"&&(this.startTime=a):this.startTime=r??this.calcStartTime(),this.state==="finished"&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var t;if(!this._resolved){this.pendingPlayState="paused";return}this.state="paused",this.holdTime=(t=this.currentTime)!==null&&t!==void 0?t:0}complete(){this.state!=="running"&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:t}=this.options;t&&t()}cancel(){this.cancelTime!==null&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(t){return this.startTime=0,this.tick(t,!0)}}const D9=new Set(["opacity","clipPath","filter","transform"]);function $9(e,t,n,{delay:r=0,duration:a=300,repeat:i=0,repeatType:s="loop",ease:o="easeInOut",times:l}={}){const c={[t]:n};l&&(c.offset=l);const f=YD(o,a);return Array.isArray(f)&&(c.easing=f),e.animate(c,{delay:r,duration:a,easing:Array.isArray(f)?"linear":f,fill:"both",iterations:i+1,direction:s==="reverse"?"alternate":"normal"})}const k9=HS(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),Fp=10,L9=2e4;function z9(e){return iw(e.type)||e.type==="spring"||!KD(e.ease)}function B9(e,t){const n=new xw({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0});let r={done:!1,value:e[0]};const a=[];let i=0;for(;!r.done&&i<L9;)r=n.sample(i),a.push(r.value),i+=Fp;return{times:void 0,keyframes:a,duration:i-Fp,ease:"linear"}}const C3={anticipate:s3,backInOut:i3,circInOut:l3};function I9(e){return e in C3}class lO extends j3{constructor(t){super(t);const{name:n,motionValue:r,element:a,keyframes:i}=this.options;this.resolver=new w3(i,(s,o)=>this.onKeyframesResolved(s,o),n,r,a),this.resolver.scheduleResolve()}initPlayback(t,n){let{duration:r=300,times:a,ease:i,type:s,motionValue:o,name:l,startTime:c}=this.options;if(!o.owner||!o.owner.current)return!1;if(typeof i=="string"&&qp()&&I9(i)&&(i=C3[i]),z9(this.options)){const{onComplete:d,onUpdate:h,motionValue:p,element:v,...y}=this.options,b=B9(t,y);t=b.keyframes,t.length===1&&(t[1]=t[0]),r=b.duration,a=b.times,i=b.ease,s="keyframes"}const f=$9(o.owner.current,l,t,{...this.options,duration:r,times:a,ease:i});return f.startTime=c??this.calcStartTime(),this.pendingTimeline?(GA(f,this.pendingTimeline),this.pendingTimeline=void 0):f.onfinish=()=>{const{onComplete:d}=this.options;o.set(Py(t,this.options,n)),d&&d(),this.cancel(),this.resolveFinishedPromise()},{animation:f,duration:r,times:a,type:s,ease:i,keyframes:t}}get duration(){const{resolved:t}=this;if(!t)return 0;const{duration:n}=t;return ka(n)}get time(){const{resolved:t}=this;if(!t)return 0;const{animation:n}=t;return ka(n.currentTime||0)}set time(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.currentTime=$a(t)}get speed(){const{resolved:t}=this;if(!t)return 1;const{animation:n}=t;return n.playbackRate}set speed(t){const{resolved:n}=this;if(!n)return;const{animation:r}=n;r.playbackRate=t}get state(){const{resolved:t}=this;if(!t)return"idle";const{animation:n}=t;return n.playState}get startTime(){const{resolved:t}=this;if(!t)return null;const{animation:n}=t;return n.startTime}attachTimeline(t){if(!this._resolved)this.pendingTimeline=t;else{const{resolved:n}=this;if(!n)return pn;const{animation:r}=n;GA(r,t)}return pn}play(){if(this.isStopped)return;const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.playState==="finished"&&this.updateFinishedPromise(),n.play()}pause(){const{resolved:t}=this;if(!t)return;const{animation:n}=t;n.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,this.state==="idle")return;this.resolveFinishedPromise(),this.updateFinishedPromise();const{resolved:t}=this;if(!t)return;const{animation:n,keyframes:r,duration:a,type:i,ease:s,times:o}=t;if(n.playState==="idle"||n.playState==="finished")return;if(this.time){const{motionValue:c,onUpdate:f,onComplete:d,element:h,...p}=this.options,v=new xw({...p,keyframes:r,duration:a,type:i,ease:s,times:o,isGenerator:!0}),y=$a(this.time);c.setWithVelocity(v.sample(y-Fp).value,v.sample(y).value,Fp)}const{onStop:l}=this.options;l&&l(),this.cancel()}complete(){const{resolved:t}=this;t&&t.animation.finish()}cancel(){const{resolved:t}=this;t&&t.animation.cancel()}static supports(t){const{motionValue:n,name:r,repeatDelay:a,repeatType:i,damping:s,type:o}=t;if(!n||!n.owner||!(n.owner.current instanceof HTMLElement))return!1;const{onUpdate:l,transformTemplate:c}=n.owner.getProps();return k9()&&r&&D9.has(r)&&!l&&!c&&!a&&i!=="mirror"&&s!==0&&o!=="inertia"}}const U9={type:"spring",stiffness:500,damping:25,restSpeed:10},q9=e=>({type:"spring",stiffness:550,damping:e===0?2*Math.sqrt(550):30,restSpeed:10}),V9={type:"keyframes",duration:.8},H9={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},F9=(e,{keyframes:t})=>t.length>2?V9:po.has(e)?e.startsWith("scale")?q9(t[1]):U9:H9;function G9({when:e,delay:t,delayChildren:n,staggerChildren:r,staggerDirection:a,repeat:i,repeatType:s,repeatDelay:o,from:l,elapsed:c,...f}){return!!Object.keys(f).length}const Sw=(e,t,n,r={},a,i)=>s=>{const o=aw(r,e)||{},l=o.delay||r.delay||0;let{elapsed:c=0}=r;c=c-$a(l);let f={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:t.getVelocity(),...o,delay:-c,onUpdate:h=>{t.set(h),o.onUpdate&&o.onUpdate(h)},onComplete:()=>{s(),o.onComplete&&o.onComplete()},name:e,motionValue:t,element:i?void 0:a};G9(o)||(f={...f,...F9(e,f)}),f.duration&&(f.duration=$a(f.duration)),f.repeatDelay&&(f.repeatDelay=$a(f.repeatDelay)),f.from!==void 0&&(f.keyframes[0]=f.from);let d=!1;if((f.type===!1||f.duration===0&&!f.repeatDelay)&&(f.duration=0,f.delay===0&&(d=!0)),d&&!i&&t.get()!==void 0){const h=Py(f.keyframes,o);if(h!==void 0)return Re.update(()=>{f.onUpdate(h),f.onComplete()}),new p7([])}return!i&&lO.supports(f)?new lO(f):new xw(f)};function K9({protectedKeys:e,needsAnimating:t},n){const r=e.hasOwnProperty(n)&&t[n]!==!0;return t[n]=!1,r}function P3(e,t,{delay:n=0,transitionOverride:r,type:a}={}){var i;let{transition:s=e.getDefaultTransition(),transitionEnd:o,...l}=t;r&&(s=r);const c=[],f=a&&e.animationState&&e.animationState.getState()[a];for(const d in l){const h=e.getValue(d,(i=e.latestValues[d])!==null&&i!==void 0?i:null),p=l[d];if(p===void 0||f&&K9(f,d))continue;const v={delay:n,...aw(s||{},d)};let y=!1;if(window.MotionHandoffAnimation){const m=e3(e);if(m){const g=window.MotionHandoffAnimation(m,d,Re);g!==null&&(v.startTime=g,y=!0)}}D0(e,d),h.start(Sw(d,h,p,e.shouldReduceMotion&&JD.has(d)?{type:!1}:v,e,y));const b=h.animation;b&&c.push(b)}return o&&Promise.all(c).then(()=>{Re.update(()=>{o&&T7(e,o)})}),c}function U0(e,t,n={}){var r;const a=Cy(e,t,n.type==="exit"?(r=e.presenceContext)===null||r===void 0?void 0:r.custom:void 0);let{transition:i=e.getDefaultTransition()||{}}=a||{};n.transitionOverride&&(i=n.transitionOverride);const s=a?()=>Promise.all(P3(e,a,n)):()=>Promise.resolve(),o=e.variantChildren&&e.variantChildren.size?(c=0)=>{const{delayChildren:f=0,staggerChildren:d,staggerDirection:h}=i;return Y9(e,t,f+c,d,h,n)}:()=>Promise.resolve(),{when:l}=i;if(l){const[c,f]=l==="beforeChildren"?[s,o]:[o,s];return c().then(()=>f())}else return Promise.all([s(),o(n.delay)])}function Y9(e,t,n=0,r=0,a=1,i){const s=[],o=(e.variantChildren.size-1)*r,l=a===1?(c=0)=>c*r:(c=0)=>o-c*r;return Array.from(e.variantChildren).sort(X9).forEach((c,f)=>{c.notify("AnimationStart",t),s.push(U0(c,t,{...i,delay:n+l(f)}).then(()=>c.notify("AnimationComplete",t)))}),Promise.all(s)}function X9(e,t){return e.sortNodePosition(t)}function W9(e,t,n={}){e.notify("AnimationStart",t);let r;if(Array.isArray(t)){const a=t.map(i=>U0(e,i,n));r=Promise.all(a)}else if(typeof t=="string")r=U0(e,t,n);else{const a=typeof t=="function"?Cy(e,t,n.custom):t;r=Promise.all(P3(e,a,n))}return r.then(()=>{e.notify("AnimationComplete",t)})}const Q9=GS.length;function M3(e){if(!e)return;if(!e.isControllingVariants){const n=e.parent?M3(e.parent)||{}:{};return e.props.initial!==void 0&&(n.initial=e.props.initial),n}const t={};for(let n=0;n<Q9;n++){const r=GS[n],a=e.props[r];(hf(a)||a===!1)&&(t[r]=a)}return t}const Z9=[...FS].reverse(),J9=FS.length;function eq(e){return t=>Promise.all(t.map(({animation:n,options:r})=>W9(e,n,r)))}function tq(e){let t=eq(e),n=cO(),r=!0;const a=l=>(c,f)=>{var d;const h=Cy(e,f,l==="exit"?(d=e.presenceContext)===null||d===void 0?void 0:d.custom:void 0);if(h){const{transition:p,transitionEnd:v,...y}=h;c={...c,...y,...v}}return c};function i(l){t=l(e)}function s(l){const{props:c}=e,f=M3(e.parent)||{},d=[],h=new Set;let p={},v=1/0;for(let b=0;b<J9;b++){const m=Z9[b],g=n[m],x=c[m]!==void 0?c[m]:f[m],w=hf(x),S=m===l?g.isActive:null;S===!1&&(v=b);let j=x===f[m]&&x!==c[m]&&w;if(j&&r&&e.manuallyAnimateOnMount&&(j=!1),g.protectedKeys={...p},!g.isActive&&S===null||!x&&!g.prevProp||Ny(x)||typeof x=="boolean")continue;const O=nq(g.prevProp,x);let E=O||m===l&&g.isActive&&!j&&w||b>v&&w,T=!1;const _=Array.isArray(x)?x:[x];let M=_.reduce(a(m),{});S===!1&&(M={});const{prevResolvedValues:C={}}=g,z={...C,...M},L=$=>{E=!0,h.has($)&&(T=!0,h.delete($)),g.needsAnimating[$]=!0;const B=e.getValue($);B&&(B.liveStyle=!1)};for(const $ in z){const B=M[$],V=C[$];if(p.hasOwnProperty($))continue;let H=!1;P0(B)&&P0(V)?H=!VD(B,V):H=B!==V,H?B!=null?L($):h.add($):B!==void 0&&h.has($)?L($):g.protectedKeys[$]=!0}g.prevProp=x,g.prevResolvedValues=M,g.isActive&&(p={...p,...M}),r&&e.blockInitialAnimation&&(E=!1),E&&(!(j&&O)||T)&&d.push(..._.map($=>({animation:$,options:{type:m}})))}if(h.size){const b={};h.forEach(m=>{const g=e.getBaseTarget(m),x=e.getValue(m);x&&(x.liveStyle=!0),b[m]=g??null}),d.push({animation:b})}let y=!!d.length;return r&&(c.initial===!1||c.initial===c.animate)&&!e.manuallyAnimateOnMount&&(y=!1),r=!1,y?t(d):Promise.resolve()}function o(l,c){var f;if(n[l].isActive===c)return Promise.resolve();(f=e.variantChildren)===null||f===void 0||f.forEach(h=>{var p;return(p=h.animationState)===null||p===void 0?void 0:p.setActive(l,c)}),n[l].isActive=c;const d=s(l);for(const h in n)n[h].protectedKeys={};return d}return{animateChanges:s,setActive:o,setAnimateFunction:i,getState:()=>n,reset:()=>{n=cO(),r=!0}}}function nq(e,t){return typeof t=="string"?t!==e:Array.isArray(t)?!VD(t,e):!1}function is(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function cO(){return{animate:is(!0),whileInView:is(),whileHover:is(),whileTap:is(),whileDrag:is(),whileFocus:is(),exit:is()}}class Qi{constructor(t){this.isMounted=!1,this.node=t}update(){}}class rq extends Qi{constructor(t){super(t),t.animationState||(t.animationState=tq(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();Ny(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:n}=this.node.prevProps||{};t!==n&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),(t=this.unmountControls)===null||t===void 0||t.call(this)}}let aq=0;class iq extends Qi{constructor(){super(...arguments),this.id=aq++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:n}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===r)return;const a=this.node.animationState.setActive("exit",!t);n&&!t&&a.then(()=>n(this.id))}mount(){const{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}const sq={animation:{Feature:rq},exit:{Feature:iq}};function yf(e,t,n,r={passive:!0}){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n)}function Od(e){return{point:{x:e.pageX,y:e.pageY}}}const oq=e=>t=>ow(t)&&e(t,Od(t));function Lu(e,t,n,r){return yf(e,t,oq(n),r)}const uO=(e,t)=>Math.abs(e-t);function lq(e,t){const n=uO(e.x,t.x),r=uO(e.y,t.y);return Math.sqrt(n**2+r**2)}class R3{constructor(t,n,{transformPagePoint:r,contextWindow:a,dragSnapToOrigin:i=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const d=Og(this.lastMoveEventInfo,this.history),h=this.startEvent!==null,p=lq(d.offset,{x:0,y:0})>=3;if(!h&&!p)return;const{point:v}=d,{timestamp:y}=Bt;this.history.push({...v,timestamp:y});const{onStart:b,onMove:m}=this.handlers;h||(b&&b(this.lastMoveEvent,d),this.startEvent=this.lastMoveEvent),m&&m(this.lastMoveEvent,d)},this.handlePointerMove=(d,h)=>{this.lastMoveEvent=d,this.lastMoveEventInfo=Ag(h,this.transformPagePoint),Re.update(this.updatePoint,!0)},this.handlePointerUp=(d,h)=>{this.end();const{onEnd:p,onSessionEnd:v,resumeAnimation:y}=this.handlers;if(this.dragSnapToOrigin&&y&&y(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const b=Og(d.type==="pointercancel"?this.lastMoveEventInfo:Ag(h,this.transformPagePoint),this.history);this.startEvent&&p&&p(d,b),v&&v(d,b)},!ow(t))return;this.dragSnapToOrigin=i,this.handlers=n,this.transformPagePoint=r,this.contextWindow=a||window;const s=Od(t),o=Ag(s,this.transformPagePoint),{point:l}=o,{timestamp:c}=Bt;this.history=[{...l,timestamp:c}];const{onSessionStart:f}=n;f&&f(t,Og(o,this.history)),this.removeListeners=Ad(Lu(this.contextWindow,"pointermove",this.handlePointerMove),Lu(this.contextWindow,"pointerup",this.handlePointerUp),Lu(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),$r(this.updatePoint)}}function Ag(e,t){return t?{point:t(e.point)}:e}function fO(e,t){return{x:e.x-t.x,y:e.y-t.y}}function Og({point:e},t){return{point:e,delta:fO(e,D3(t)),offset:fO(e,cq(t)),velocity:uq(t,.1)}}function cq(e){return e[0]}function D3(e){return e[e.length-1]}function uq(e,t){if(e.length<2)return{x:0,y:0};let n=e.length-1,r=null;const a=D3(e);for(;n>=0&&(r=e[n],!(a.timestamp-r.timestamp>$a(t)));)n--;if(!r)return{x:0,y:0};const i=ka(a.timestamp-r.timestamp);if(i===0)return{x:0,y:0};const s={x:(a.x-r.x)/i,y:(a.y-r.y)/i};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}const $3=1e-4,fq=1-$3,dq=1+$3,k3=.01,hq=0-k3,pq=0+k3;function Qn(e){return e.max-e.min}function mq(e,t,n){return Math.abs(e-t)<=n}function dO(e,t,n,r=.5){e.origin=r,e.originPoint=dt(t.min,t.max,e.origin),e.scale=Qn(n)/Qn(t),e.translate=dt(n.min,n.max,e.origin)-e.originPoint,(e.scale>=fq&&e.scale<=dq||isNaN(e.scale))&&(e.scale=1),(e.translate>=hq&&e.translate<=pq||isNaN(e.translate))&&(e.translate=0)}function zu(e,t,n,r){dO(e.x,t.x,n.x,r?r.originX:void 0),dO(e.y,t.y,n.y,r?r.originY:void 0)}function hO(e,t,n){e.min=n.min+t.min,e.max=e.min+Qn(t)}function yq(e,t,n){hO(e.x,t.x,n.x),hO(e.y,t.y,n.y)}function pO(e,t,n){e.min=t.min-n.min,e.max=e.min+Qn(t)}function Bu(e,t,n){pO(e.x,t.x,n.x),pO(e.y,t.y,n.y)}function vq(e,{min:t,max:n},r){return t!==void 0&&e<t?e=r?dt(t,e,r.min):Math.max(e,t):n!==void 0&&e>n&&(e=r?dt(n,e,r.max):Math.min(e,n)),e}function mO(e,t,n){return{min:t!==void 0?e.min+t:void 0,max:n!==void 0?e.max+n-(e.max-e.min):void 0}}function gq(e,{top:t,left:n,bottom:r,right:a}){return{x:mO(e.x,n,a),y:mO(e.y,t,r)}}function yO(e,t){let n=t.min-e.min,r=t.max-e.max;return t.max-t.min<e.max-e.min&&([n,r]=[r,n]),{min:n,max:r}}function bq(e,t){return{x:yO(e.x,t.x),y:yO(e.y,t.y)}}function xq(e,t){let n=.5;const r=Qn(e),a=Qn(t);return a>r?n=Zs(t.min,t.max-r,e.min):r>a&&(n=Zs(e.min,e.max-a,t.min)),ia(0,1,n)}function Sq(e,t){const n={};return t.min!==void 0&&(n.min=t.min-e.min),t.max!==void 0&&(n.max=t.max-e.min),n}const q0=.35;function wq(e=q0){return e===!1?e=0:e===!0&&(e=q0),{x:vO(e,"left","right"),y:vO(e,"top","bottom")}}function vO(e,t,n){return{min:gO(e,t),max:gO(e,n)}}function gO(e,t){return typeof e=="number"?e:e[t]||0}const bO=()=>({translate:0,scale:1,origin:0,originPoint:0}),Xo=()=>({x:bO(),y:bO()}),xO=()=>({min:0,max:0}),gt=()=>({x:xO(),y:xO()});function rr(e){return[e("x"),e("y")]}function L3({top:e,left:t,right:n,bottom:r}){return{x:{min:t,max:n},y:{min:e,max:r}}}function jq({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}function Aq(e,t){if(!t)return e;const n=t({x:e.left,y:e.top}),r=t({x:e.right,y:e.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}function Eg(e){return e===void 0||e===1}function V0({scale:e,scaleX:t,scaleY:n}){return!Eg(e)||!Eg(t)||!Eg(n)}function hs(e){return V0(e)||z3(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function z3(e){return SO(e.x)||SO(e.y)}function SO(e){return e&&e!=="0%"}function Gp(e,t,n){const r=e-n,a=t*r;return n+a}function wO(e,t,n,r,a){return a!==void 0&&(e=Gp(e,a,r)),Gp(e,n,r)+t}function H0(e,t=0,n=1,r,a){e.min=wO(e.min,t,n,r,a),e.max=wO(e.max,t,n,r,a)}function B3(e,{x:t,y:n}){H0(e.x,t.translate,t.scale,t.originPoint),H0(e.y,n.translate,n.scale,n.originPoint)}const jO=.999999999999,AO=1.0000000000001;function Oq(e,t,n,r=!1){const a=n.length;if(!a)return;t.x=t.y=1;let i,s;for(let o=0;o<a;o++){i=n[o],s=i.projectionDelta;const{visualElement:l}=i.options;l&&l.props.style&&l.props.style.display==="contents"||(r&&i.options.layoutScroll&&i.scroll&&i!==i.root&&Qo(e,{x:-i.scroll.offset.x,y:-i.scroll.offset.y}),s&&(t.x*=s.x.scale,t.y*=s.y.scale,B3(e,s)),r&&hs(i.latestValues)&&Qo(e,i.latestValues))}t.x<AO&&t.x>jO&&(t.x=1),t.y<AO&&t.y>jO&&(t.y=1)}function Wo(e,t){e.min=e.min+t,e.max=e.max+t}function OO(e,t,n,r,a=.5){const i=dt(e.min,e.max,a);H0(e,t,n,i,r)}function Qo(e,t){OO(e.x,t.x,t.scaleX,t.scale,t.originX),OO(e.y,t.y,t.scaleY,t.scale,t.originY)}function I3(e,t){return L3(Aq(e.getBoundingClientRect(),t))}function Eq(e,t,n){const r=I3(e,n),{scroll:a}=t;return a&&(Wo(r.x,a.offset.x),Wo(r.y,a.offset.y)),r}const U3=({current:e})=>e?e.ownerDocument.defaultView:null,Tq=new WeakMap;class Nq{constructor(t){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=gt(),this.visualElement=t}start(t,{snapToCursor:n=!1}={}){const{presenceContext:r}=this.visualElement;if(r&&r.isPresent===!1)return;const a=f=>{const{dragSnapToOrigin:d}=this.getProps();d?this.pauseAnimation():this.stopAnimation(),n&&this.snapToCursor(Od(f).point)},i=(f,d)=>{const{drag:h,dragPropagation:p,onDragStart:v}=this.getProps();if(h&&!p&&(this.openDragLock&&this.openDragLock(),this.openDragLock=w7(h),!this.openDragLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),rr(b=>{let m=this.getAxisMotionValue(b).get()||0;if(ea.test(m)){const{projection:g}=this.visualElement;if(g&&g.layout){const x=g.layout.layoutBox[b];x&&(m=Qn(x)*(parseFloat(m)/100))}}this.originPoint[b]=m}),v&&Re.postRender(()=>v(f,d)),D0(this.visualElement,"transform");const{animationState:y}=this.visualElement;y&&y.setActive("whileDrag",!0)},s=(f,d)=>{const{dragPropagation:h,dragDirectionLock:p,onDirectionLock:v,onDrag:y}=this.getProps();if(!h&&!this.openDragLock)return;const{offset:b}=d;if(p&&this.currentDirection===null){this.currentDirection=_q(b),this.currentDirection!==null&&v&&v(this.currentDirection);return}this.updateAxis("x",d.point,b),this.updateAxis("y",d.point,b),this.visualElement.render(),y&&y(f,d)},o=(f,d)=>this.stop(f,d),l=()=>rr(f=>{var d;return this.getAnimationState(f)==="paused"&&((d=this.getAxisMotionValue(f).animation)===null||d===void 0?void 0:d.play())}),{dragSnapToOrigin:c}=this.getProps();this.panSession=new R3(t,{onSessionStart:a,onStart:i,onMove:s,onSessionEnd:o,resumeAnimation:l},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:c,contextWindow:U3(this.visualElement)})}stop(t,n){const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:a}=n;this.startAnimation(a);const{onDragEnd:i}=this.getProps();i&&Re.postRender(()=>i(t,n))}cancel(){this.isDragging=!1;const{projection:t,animationState:n}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),n&&n.setActive("whileDrag",!1)}updateAxis(t,n,r){const{drag:a}=this.getProps();if(!r||!fh(t,a,this.currentDirection))return;const i=this.getAxisMotionValue(t);let s=this.originPoint[t]+r[t];this.constraints&&this.constraints[t]&&(s=vq(s,this.constraints[t],this.elastic[t])),i.set(s)}resolveConstraints(){var t;const{dragConstraints:n,dragElastic:r}=this.getProps(),a=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(t=this.visualElement.projection)===null||t===void 0?void 0:t.layout,i=this.constraints;n&&Ko(n)?this.constraints||(this.constraints=this.resolveRefConstraints()):n&&a?this.constraints=gq(a.layoutBox,n):this.constraints=!1,this.elastic=wq(r),i!==this.constraints&&a&&this.constraints&&!this.hasMutatedConstraints&&rr(s=>{this.constraints!==!1&&this.getAxisMotionValue(s)&&(this.constraints[s]=Sq(a.layoutBox[s],this.constraints[s]))})}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:n}=this.getProps();if(!t||!Ko(t))return!1;const r=t.current,{projection:a}=this.visualElement;if(!a||!a.layout)return!1;const i=Eq(r,a.root,this.visualElement.getTransformPagePoint());let s=bq(a.layout.layoutBox,i);if(n){const o=n(jq(s));this.hasMutatedConstraints=!!o,o&&(s=L3(o))}return s}startAnimation(t){const{drag:n,dragMomentum:r,dragElastic:a,dragTransition:i,dragSnapToOrigin:s,onDragTransitionEnd:o}=this.getProps(),l=this.constraints||{},c=rr(f=>{if(!fh(f,n,this.currentDirection))return;let d=l&&l[f]||{};s&&(d={min:0,max:0});const h=a?200:1e6,p=a?40:1e7,v={type:"inertia",velocity:r?t[f]:0,bounceStiffness:h,bounceDamping:p,timeConstant:750,restDelta:1,restSpeed:10,...i,...d};return this.startAxisValueAnimation(f,v)});return Promise.all(c).then(o)}startAxisValueAnimation(t,n){const r=this.getAxisMotionValue(t);return D0(this.visualElement,t),r.start(Sw(t,r,0,n,this.visualElement,!1))}stopAnimation(){rr(t=>this.getAxisMotionValue(t).stop())}pauseAnimation(){rr(t=>{var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.pause()})}getAnimationState(t){var n;return(n=this.getAxisMotionValue(t).animation)===null||n===void 0?void 0:n.state}getAxisMotionValue(t){const n=`_drag${t.toUpperCase()}`,r=this.visualElement.getProps(),a=r[n];return a||this.visualElement.getValue(t,(r.initial?r.initial[t]:void 0)||0)}snapToCursor(t){rr(n=>{const{drag:r}=this.getProps();if(!fh(n,r,this.currentDirection))return;const{projection:a}=this.visualElement,i=this.getAxisMotionValue(n);if(a&&a.layout){const{min:s,max:o}=a.layout.layoutBox[n];i.set(t[n]-dt(s,o,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:n}=this.getProps(),{projection:r}=this.visualElement;if(!Ko(n)||!r||!this.constraints)return;this.stopAnimation();const a={x:0,y:0};rr(s=>{const o=this.getAxisMotionValue(s);if(o&&this.constraints!==!1){const l=o.get();a[s]=xq({min:l,max:l},this.constraints[s])}});const{transformTemplate:i}=this.visualElement.getProps();this.visualElement.current.style.transform=i?i({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),rr(s=>{if(!fh(s,t,null))return;const o=this.getAxisMotionValue(s),{min:l,max:c}=this.constraints[s];o.set(dt(l,c,a[s]))})}addListeners(){if(!this.visualElement.current)return;Tq.set(this.visualElement,this);const t=this.visualElement.current,n=Lu(t,"pointerdown",l=>{const{drag:c,dragListener:f=!0}=this.getProps();c&&f&&this.start(l)}),r=()=>{const{dragConstraints:l}=this.getProps();Ko(l)&&l.current&&(this.constraints=this.resolveRefConstraints())},{projection:a}=this.visualElement,i=a.addEventListener("measure",r);a&&!a.layout&&(a.root&&a.root.updateScroll(),a.updateLayout()),Re.read(r);const s=yf(window,"resize",()=>this.scalePositionWithinConstraints()),o=a.addEventListener("didUpdate",({delta:l,hasLayoutChanged:c})=>{this.isDragging&&c&&(rr(f=>{const d=this.getAxisMotionValue(f);d&&(this.originPoint[f]+=l[f].translate,d.set(d.get()+l[f].translate))}),this.visualElement.render())});return()=>{s(),n(),i(),o&&o()}}getProps(){const t=this.visualElement.getProps(),{drag:n=!1,dragDirectionLock:r=!1,dragPropagation:a=!1,dragConstraints:i=!1,dragElastic:s=q0,dragMomentum:o=!0}=t;return{...t,drag:n,dragDirectionLock:r,dragPropagation:a,dragConstraints:i,dragElastic:s,dragMomentum:o}}}function fh(e,t,n){return(t===!0||t===e)&&(n===null||n===e)}function _q(e,t=10){let n=null;return Math.abs(e.y)>t?n="y":Math.abs(e.x)>t&&(n="x"),n}class Cq extends Qi{constructor(t){super(t),this.removeGroupControls=pn,this.removeListeners=pn,this.controls=new Nq(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||pn}unmount(){this.removeGroupControls(),this.removeListeners()}}const EO=e=>(t,n)=>{e&&Re.postRender(()=>e(t,n))};class Pq extends Qi{constructor(){super(...arguments),this.removePointerDownListener=pn}onPointerDown(t){this.session=new R3(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:U3(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:n,onPan:r,onPanEnd:a}=this.node.getProps();return{onSessionStart:EO(t),onStart:EO(n),onMove:r,onEnd:(i,s)=>{delete this.session,a&&Re.postRender(()=>a(i,s))}}}mount(){this.removePointerDownListener=Lu(this.node.current,"pointerdown",t=>this.onPointerDown(t))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}const Jh={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function TO(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const Qc={correct:(e,t)=>{if(!t.target)return e;if(typeof e=="string")if(fe.test(e))e=parseFloat(e);else return e;const n=TO(e,t.target.x),r=TO(e,t.target.y);return`${n}% ${r}%`}},Mq={correct:(e,{treeScale:t,projectionDelta:n})=>{const r=e,a=Yi.parse(e);if(a.length>5)return r;const i=Yi.createTransformer(e),s=typeof a[0]!="number"?1:0,o=n.x.scale*t.x,l=n.y.scale*t.y;a[0+s]/=o,a[1+s]/=l;const c=dt(o,l,.5);return typeof a[2+s]=="number"&&(a[2+s]/=c),typeof a[3+s]=="number"&&(a[3+s]/=c),i(a)}};class Rq extends A.Component{componentDidMount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r,layoutId:a}=this.props,{projection:i}=t;r7(Dq),i&&(n.group&&n.group.add(i),r&&r.register&&a&&r.register(i),i.root.didUpdate(),i.addEventListener("animationComplete",()=>{this.safeToRemove()}),i.setOptions({...i.options,onExitComplete:()=>this.safeToRemove()})),Jh.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:n,visualElement:r,drag:a,isPresent:i}=this.props,s=r.projection;return s&&(s.isPresent=i,a||t.layoutDependency!==n||n===void 0?s.willUpdate():this.safeToRemove(),t.isPresent!==i&&(i?s.promote():s.relegate()||Re.postRender(()=>{const o=s.getStack();(!o||!o.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),YS.postRender(()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:t,layoutGroup:n,switchLayoutGroup:r}=this.props,{projection:a}=t;a&&(a.scheduleCheckAfterUnmount(),n&&n.group&&n.group.remove(a),r&&r.deregister&&r.deregister(a))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function q3(e){const[t,n]=jD(),r=A.useContext(qS);return u.jsx(Rq,{...e,layoutGroup:r,switchLayoutGroup:A.useContext(CD),isPresent:t,safeToRemove:n})}const Dq={borderRadius:{...Qc,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Qc,borderTopRightRadius:Qc,borderBottomLeftRadius:Qc,borderBottomRightRadius:Qc,boxShadow:Mq};function $q(e,t,n){const r=on(e)?e:Xr(e);return r.start(Sw("",r,t,n)),r.animation}function kq(e){return e instanceof SVGElement&&e.tagName!=="svg"}const Lq=(e,t)=>e.depth-t.depth;class zq{constructor(){this.children=[],this.isDirty=!1}add(t){lw(this.children,t),this.isDirty=!0}remove(t){cw(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(Lq),this.isDirty=!1,this.children.forEach(t)}}function Bq(e,t){const n=ta.now(),r=({timestamp:a})=>{const i=a-n;i>=t&&($r(r),e(i-t))};return Re.read(r,!0),()=>$r(r)}const V3=["TopLeft","TopRight","BottomLeft","BottomRight"],Iq=V3.length,NO=e=>typeof e=="string"?parseFloat(e):e,_O=e=>typeof e=="number"||fe.test(e);function Uq(e,t,n,r,a,i){a?(e.opacity=dt(0,n.opacity!==void 0?n.opacity:1,qq(r)),e.opacityExit=dt(t.opacity!==void 0?t.opacity:1,0,Vq(r))):i&&(e.opacity=dt(t.opacity!==void 0?t.opacity:1,n.opacity!==void 0?n.opacity:1,r));for(let s=0;s<Iq;s++){const o=`border${V3[s]}Radius`;let l=CO(t,o),c=CO(n,o);if(l===void 0&&c===void 0)continue;l||(l=0),c||(c=0),l===0||c===0||_O(l)===_O(c)?(e[o]=Math.max(dt(NO(l),NO(c),r),0),(ea.test(c)||ea.test(l))&&(e[o]+="%")):e[o]=c}(t.rotate||n.rotate)&&(e.rotate=dt(t.rotate||0,n.rotate||0,r))}function CO(e,t){return e[t]!==void 0?e[t]:e.borderRadius}const qq=H3(0,.5,o3),Vq=H3(.5,.95,pn);function H3(e,t,n){return r=>r<e?0:r>t?1:n(Zs(e,t,r))}function PO(e,t){e.min=t.min,e.max=t.max}function Jn(e,t){PO(e.x,t.x),PO(e.y,t.y)}function MO(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function RO(e,t,n,r,a){return e-=t,e=Gp(e,1/n,r),a!==void 0&&(e=Gp(e,1/a,r)),e}function Hq(e,t=0,n=1,r=.5,a,i=e,s=e){if(ea.test(t)&&(t=parseFloat(t),t=dt(s.min,s.max,t/100)-s.min),typeof t!="number")return;let o=dt(i.min,i.max,r);e===i&&(o-=t),e.min=RO(e.min,t,n,o,a),e.max=RO(e.max,t,n,o,a)}function DO(e,t,[n,r,a],i,s){Hq(e,t[n],t[r],t[a],t.scale,i,s)}const Fq=["x","scaleX","originX"],Gq=["y","scaleY","originY"];function $O(e,t,n,r){DO(e.x,t,Fq,n?n.x:void 0,r?r.x:void 0),DO(e.y,t,Gq,n?n.y:void 0,r?r.y:void 0)}function kO(e){return e.translate===0&&e.scale===1}function F3(e){return kO(e.x)&&kO(e.y)}function LO(e,t){return e.min===t.min&&e.max===t.max}function Kq(e,t){return LO(e.x,t.x)&&LO(e.y,t.y)}function zO(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function G3(e,t){return zO(e.x,t.x)&&zO(e.y,t.y)}function BO(e){return Qn(e.x)/Qn(e.y)}function IO(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class Yq{constructor(){this.members=[]}add(t){lw(this.members,t),t.scheduleRender()}remove(t){if(cw(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const n=this.members[this.members.length-1];n&&this.promote(n)}}relegate(t){const n=this.members.findIndex(a=>t===a);if(n===0)return!1;let r;for(let a=n;a>=0;a--){const i=this.members[a];if(i.isPresent!==!1){r=i;break}}return r?(this.promote(r),!0):!1}promote(t,n){const r=this.lead;if(t!==r&&(this.prevLead=r,this.lead=t,t.show(),r)){r.instance&&r.scheduleRender(),t.scheduleRender(),t.resumeFrom=r,n&&(t.resumeFrom.preserveOpacity=!0),r.snapshot&&(t.snapshot=r.snapshot,t.snapshot.latestValues=r.animationValues||r.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:a}=t.options;a===!1&&r.hide()}}exitAnimationComplete(){this.members.forEach(t=>{const{options:n,resumingFrom:r}=t;n.onExitComplete&&n.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()})}scheduleRender(){this.members.forEach(t=>{t.instance&&t.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function Xq(e,t,n){let r="";const a=e.x.translate/t.x,i=e.y.translate/t.y,s=(n==null?void 0:n.z)||0;if((a||i||s)&&(r=`translate3d(${a}px, ${i}px, ${s}px) `),(t.x!==1||t.y!==1)&&(r+=`scale(${1/t.x}, ${1/t.y}) `),n){const{transformPerspective:c,rotate:f,rotateX:d,rotateY:h,skewX:p,skewY:v}=n;c&&(r=`perspective(${c}px) ${r}`),f&&(r+=`rotate(${f}deg) `),d&&(r+=`rotateX(${d}deg) `),h&&(r+=`rotateY(${h}deg) `),p&&(r+=`skewX(${p}deg) `),v&&(r+=`skewY(${v}deg) `)}const o=e.x.scale*t.x,l=e.y.scale*t.y;return(o!==1||l!==1)&&(r+=`scale(${o}, ${l})`),r||"none"}const ps={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},bu=typeof window<"u"&&window.MotionDebug!==void 0,Tg=["","X","Y","Z"],Wq={visibility:"hidden"},UO=1e3;let Qq=0;function Ng(e,t,n,r){const{latestValues:a}=t;a[e]&&(n[e]=a[e],t.setStaticValue(e,0),r&&(r[e]=0))}function K3(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const n=e3(t);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:a,layoutId:i}=e.options;window.MotionCancelOptimisedAnimation(n,"transform",Re,!(a||i))}const{parent:r}=e;r&&!r.hasCheckedOptimisedAppear&&K3(r)}function Y3({attachResizeListener:e,defaultParent:t,measureScroll:n,checkIsScrollRoot:r,resetTransform:a}){return class{constructor(s={},o=t==null?void 0:t()){this.id=Qq++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,bu&&(ps.totalNodes=ps.resolvedTargetDeltas=ps.recalculatedProjection=0),this.nodes.forEach(eV),this.nodes.forEach(iV),this.nodes.forEach(sV),this.nodes.forEach(tV),bu&&window.MotionDebug.record(ps)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=s,this.root=o?o.root||o:this,this.path=o?[...o.path,o]:[],this.parent=o,this.depth=o?o.depth+1:0;for(let l=0;l<this.path.length;l++)this.path[l].shouldResetTransform=!0;this.root===this&&(this.nodes=new zq)}addEventListener(s,o){return this.eventHandlers.has(s)||this.eventHandlers.set(s,new uw),this.eventHandlers.get(s).add(o)}notifyListeners(s,...o){const l=this.eventHandlers.get(s);l&&l.notify(...o)}hasListeners(s){return this.eventHandlers.has(s)}mount(s,o=this.root.hasTreeAnimated){if(this.instance)return;this.isSVG=kq(s),this.instance=s;const{layoutId:l,layout:c,visualElement:f}=this.options;if(f&&!f.current&&f.mount(s),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),o&&(c||l)&&(this.isLayoutDirty=!0),e){let d;const h=()=>this.root.updateBlockedByResize=!1;e(s,()=>{this.root.updateBlockedByResize=!0,d&&d(),d=Bq(h,250),Jh.hasAnimatedSinceResize&&(Jh.hasAnimatedSinceResize=!1,this.nodes.forEach(VO))})}l&&this.root.registerSharedNode(l,this),this.options.animate!==!1&&f&&(l||c)&&this.addEventListener("didUpdate",({delta:d,hasLayoutChanged:h,hasRelativeTargetChanged:p,layout:v})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const y=this.options.transition||f.getDefaultTransition()||fV,{onLayoutAnimationStart:b,onLayoutAnimationComplete:m}=f.getProps(),g=!this.targetLayout||!G3(this.targetLayout,v)||p,x=!h&&p;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||x||h&&(g||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(d,x);const w={...aw(y,"layout"),onPlay:b,onComplete:m};(f.shouldReduceMotion||this.options.layoutRoot)&&(w.delay=0,w.type=!1),this.startAnimation(w)}else h||VO(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=v})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const s=this.getStack();s&&s.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,$r(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(oV),this.animationId++)}getTransformTemplate(){const{visualElement:s}=this.options;return s&&s.getProps().transformTemplate}willUpdate(s=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&K3(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let f=0;f<this.path.length;f++){const d=this.path[f];d.shouldResetTransform=!0,d.updateScroll("snapshot"),d.options.layoutRoot&&d.willUpdate(!1)}const{layoutId:o,layout:l}=this.options;if(o===void 0&&!l)return;const c=this.getTransformTemplate();this.prevTransformTemplateValue=c?c(this.latestValues,""):void 0,this.updateSnapshot(),s&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked()){this.unblockUpdate(),this.clearAllSnapshots(),this.nodes.forEach(qO);return}this.isUpdating||this.nodes.forEach(rV),this.isUpdating=!1,this.nodes.forEach(aV),this.nodes.forEach(Zq),this.nodes.forEach(Jq),this.clearAllSnapshots();const o=ta.now();Bt.delta=ia(0,1e3/60,o-Bt.timestamp),Bt.timestamp=o,Bt.isProcessing=!0,gg.update.process(Bt),gg.preRender.process(Bt),gg.render.process(Bt),Bt.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,YS.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(nV),this.sharedNodes.forEach(lV)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Re.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Re.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let l=0;l<this.path.length;l++)this.path[l].updateScroll();const s=this.layout;this.layout=this.measure(!1),this.layoutCorrected=gt(),this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:o}=this.options;o&&o.notify("LayoutMeasure",this.layout.layoutBox,s?s.layoutBox:void 0)}updateScroll(s="measure"){let o=!!(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===s&&(o=!1),o){const l=r(this.instance);this.scroll={animationId:this.root.animationId,phase:s,isRoot:l,offset:n(this.instance),wasRoot:this.scroll?this.scroll.isRoot:l}}}resetTransform(){if(!a)return;const s=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,o=this.projectionDelta&&!F3(this.projectionDelta),l=this.getTransformTemplate(),c=l?l(this.latestValues,""):void 0,f=c!==this.prevTransformTemplateValue;s&&(o||hs(this.latestValues)||f)&&(a(this.instance,c),this.shouldResetTransform=!1,this.scheduleRender())}measure(s=!0){const o=this.measurePageBox();let l=this.removeElementScroll(o);return s&&(l=this.removeTransform(l)),dV(l),{animationId:this.root.animationId,measuredBox:o,layoutBox:l,latestValues:{},source:this.id}}measurePageBox(){var s;const{visualElement:o}=this.options;if(!o)return gt();const l=o.measureViewportBox();if(!(((s=this.scroll)===null||s===void 0?void 0:s.wasRoot)||this.path.some(hV))){const{scroll:f}=this.root;f&&(Wo(l.x,f.offset.x),Wo(l.y,f.offset.y))}return l}removeElementScroll(s){var o;const l=gt();if(Jn(l,s),!((o=this.scroll)===null||o===void 0)&&o.wasRoot)return l;for(let c=0;c<this.path.length;c++){const f=this.path[c],{scroll:d,options:h}=f;f!==this.root&&d&&h.layoutScroll&&(d.wasRoot&&Jn(l,s),Wo(l.x,d.offset.x),Wo(l.y,d.offset.y))}return l}applyTransform(s,o=!1){const l=gt();Jn(l,s);for(let c=0;c<this.path.length;c++){const f=this.path[c];!o&&f.options.layoutScroll&&f.scroll&&f!==f.root&&Qo(l,{x:-f.scroll.offset.x,y:-f.scroll.offset.y}),hs(f.latestValues)&&Qo(l,f.latestValues)}return hs(this.latestValues)&&Qo(l,this.latestValues),l}removeTransform(s){const o=gt();Jn(o,s);for(let l=0;l<this.path.length;l++){const c=this.path[l];if(!c.instance||!hs(c.latestValues))continue;V0(c.latestValues)&&c.updateSnapshot();const f=gt(),d=c.measurePageBox();Jn(f,d),$O(o,c.latestValues,c.snapshot?c.snapshot.layoutBox:void 0,f)}return hs(this.latestValues)&&$O(o,this.latestValues),o}setTargetDelta(s){this.targetDelta=s,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(s){this.options={...this.options,...s,crossfade:s.crossfade!==void 0?s.crossfade:!0}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==Bt.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(s=!1){var o;const l=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=l.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=l.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=l.isSharedProjectionDirty);const c=!!this.resumingFrom||this!==l;if(!(s||c&&this.isSharedProjectionDirty||this.isProjectionDirty||!((o=this.parent)===null||o===void 0)&&o.isProjectionDirty||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:d,layoutId:h}=this.options;if(!(!this.layout||!(d||h))){if(this.resolvedRelativeTargetAt=Bt.timestamp,!this.targetDelta&&!this.relativeTarget){const p=this.getClosestProjectingParent();p&&p.layout&&this.animationProgress!==1?(this.relativeParent=p,this.forceRelativeParentToResolveTarget(),this.relativeTarget=gt(),this.relativeTargetOrigin=gt(),Bu(this.relativeTargetOrigin,this.layout.layoutBox,p.layout.layoutBox),Jn(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(!(!this.relativeTarget&&!this.targetDelta)){if(this.target||(this.target=gt(),this.targetWithTransforms=gt()),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),yq(this.target,this.relativeTarget,this.relativeParent.target)):this.targetDelta?(this.resumingFrom?this.target=this.applyTransform(this.layout.layoutBox):Jn(this.target,this.layout.layoutBox),B3(this.target,this.targetDelta)):Jn(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const p=this.getClosestProjectingParent();p&&!!p.resumingFrom==!!this.resumingFrom&&!p.options.layoutScroll&&p.target&&this.animationProgress!==1?(this.relativeParent=p,this.forceRelativeParentToResolveTarget(),this.relativeTarget=gt(),this.relativeTargetOrigin=gt(),Bu(this.relativeTargetOrigin,this.target,p.target),Jn(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}bu&&ps.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(!(!this.parent||V0(this.parent.latestValues)||z3(this.parent.latestValues)))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return!!((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var s;const o=this.getLead(),l=!!this.resumingFrom||this!==o;let c=!0;if((this.isProjectionDirty||!((s=this.parent)===null||s===void 0)&&s.isProjectionDirty)&&(c=!1),l&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(c=!1),this.resolvedRelativeTargetAt===Bt.timestamp&&(c=!1),c)return;const{layout:f,layoutId:d}=this.options;if(this.isTreeAnimating=!!(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!(f||d))return;Jn(this.layoutCorrected,this.layout.layoutBox);const h=this.treeScale.x,p=this.treeScale.y;Oq(this.layoutCorrected,this.treeScale,this.path,l),o.layout&&!o.target&&(this.treeScale.x!==1||this.treeScale.y!==1)&&(o.target=o.layout.layoutBox,o.targetWithTransforms=gt());const{target:v}=o;if(!v){this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender());return}!this.projectionDelta||!this.prevProjectionDelta?this.createProjectionDeltas():(MO(this.prevProjectionDelta.x,this.projectionDelta.x),MO(this.prevProjectionDelta.y,this.projectionDelta.y)),zu(this.projectionDelta,this.layoutCorrected,v,this.latestValues),(this.treeScale.x!==h||this.treeScale.y!==p||!IO(this.projectionDelta.x,this.prevProjectionDelta.x)||!IO(this.projectionDelta.y,this.prevProjectionDelta.y))&&(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",v)),bu&&ps.recalculatedProjection++}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(s=!0){var o;if((o=this.options.visualElement)===null||o===void 0||o.scheduleRender(),s){const l=this.getStack();l&&l.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta=Xo(),this.projectionDelta=Xo(),this.projectionDeltaWithTransform=Xo()}setAnimationOrigin(s,o=!1){const l=this.snapshot,c=l?l.latestValues:{},f={...this.latestValues},d=Xo();(!this.relativeParent||!this.relativeParent.options.layoutRoot)&&(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!o;const h=gt(),p=l?l.source:void 0,v=this.layout?this.layout.source:void 0,y=p!==v,b=this.getStack(),m=!b||b.members.length<=1,g=!!(y&&!m&&this.options.crossfade===!0&&!this.path.some(uV));this.animationProgress=0;let x;this.mixTargetDelta=w=>{const S=w/1e3;HO(d.x,s.x,S),HO(d.y,s.y,S),this.setTargetDelta(d),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Bu(h,this.layout.layoutBox,this.relativeParent.layout.layoutBox),cV(this.relativeTarget,this.relativeTargetOrigin,h,S),x&&Kq(this.relativeTarget,x)&&(this.isProjectionDirty=!1),x||(x=gt()),Jn(x,this.relativeTarget)),y&&(this.animationValues=f,Uq(f,c,this.latestValues,S,g,m)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=S},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(s){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&($r(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Re.update(()=>{Jh.hasAnimatedSinceResize=!0,this.currentAnimation=$q(0,UO,{...s,onUpdate:o=>{this.mixTargetDelta(o),s.onUpdate&&s.onUpdate(o)},onComplete:()=>{s.onComplete&&s.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const s=this.getStack();s&&s.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(UO),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const s=this.getLead();let{targetWithTransforms:o,target:l,layout:c,latestValues:f}=s;if(!(!o||!l||!c)){if(this!==s&&this.layout&&c&&X3(this.options.animationType,this.layout.layoutBox,c.layoutBox)){l=this.target||gt();const d=Qn(this.layout.layoutBox.x);l.x.min=s.target.x.min,l.x.max=l.x.min+d;const h=Qn(this.layout.layoutBox.y);l.y.min=s.target.y.min,l.y.max=l.y.min+h}Jn(o,l),Qo(o,f),zu(this.projectionDeltaWithTransform,this.layoutCorrected,o,f)}}registerSharedNode(s,o){this.sharedNodes.has(s)||this.sharedNodes.set(s,new Yq),this.sharedNodes.get(s).add(o);const c=o.options.initialPromotionConfig;o.promote({transition:c?c.transition:void 0,preserveFollowOpacity:c&&c.shouldPreserveFollowOpacity?c.shouldPreserveFollowOpacity(o):void 0})}isLead(){const s=this.getStack();return s?s.lead===this:!0}getLead(){var s;const{layoutId:o}=this.options;return o?((s=this.getStack())===null||s===void 0?void 0:s.lead)||this:this}getPrevLead(){var s;const{layoutId:o}=this.options;return o?(s=this.getStack())===null||s===void 0?void 0:s.prevLead:void 0}getStack(){const{layoutId:s}=this.options;if(s)return this.root.sharedNodes.get(s)}promote({needsReset:s,transition:o,preserveFollowOpacity:l}={}){const c=this.getStack();c&&c.promote(this,l),s&&(this.projectionDelta=void 0,this.needsReset=!0),o&&this.setOptions({transition:o})}relegate(){const s=this.getStack();return s?s.relegate(this):!1}resetSkewAndRotation(){const{visualElement:s}=this.options;if(!s)return;let o=!1;const{latestValues:l}=s;if((l.z||l.rotate||l.rotateX||l.rotateY||l.rotateZ||l.skewX||l.skewY)&&(o=!0),!o)return;const c={};l.z&&Ng("z",s,c,this.animationValues);for(let f=0;f<Tg.length;f++)Ng(`rotate${Tg[f]}`,s,c,this.animationValues),Ng(`skew${Tg[f]}`,s,c,this.animationValues);s.render();for(const f in c)s.setStaticValue(f,c[f]),this.animationValues&&(this.animationValues[f]=c[f]);s.scheduleRender()}getProjectionStyles(s){var o,l;if(!this.instance||this.isSVG)return;if(!this.isVisible)return Wq;const c={visibility:""},f=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,c.opacity="",c.pointerEvents=Qh(s==null?void 0:s.pointerEvents)||"",c.transform=f?f(this.latestValues,""):"none",c;const d=this.getLead();if(!this.projectionDelta||!this.layout||!d.target){const y={};return this.options.layoutId&&(y.opacity=this.latestValues.opacity!==void 0?this.latestValues.opacity:1,y.pointerEvents=Qh(s==null?void 0:s.pointerEvents)||""),this.hasProjected&&!hs(this.latestValues)&&(y.transform=f?f({},""):"none",this.hasProjected=!1),y}const h=d.animationValues||d.latestValues;this.applyTransformsToTarget(),c.transform=Xq(this.projectionDeltaWithTransform,this.treeScale,h),f&&(c.transform=f(h,c.transform));const{x:p,y:v}=this.projectionDelta;c.transformOrigin=`${p.origin*100}% ${v.origin*100}% 0`,d.animationValues?c.opacity=d===this?(l=(o=h.opacity)!==null&&o!==void 0?o:this.latestValues.opacity)!==null&&l!==void 0?l:1:this.preserveOpacity?this.latestValues.opacity:h.opacityExit:c.opacity=d===this?h.opacity!==void 0?h.opacity:"":h.opacityExit!==void 0?h.opacityExit:0;for(const y in Up){if(h[y]===void 0)continue;const{correct:b,applyTo:m}=Up[y],g=c.transform==="none"?h[y]:b(h[y],d);if(m){const x=m.length;for(let w=0;w<x;w++)c[m[w]]=g}else c[y]=g}return this.options.layoutId&&(c.pointerEvents=d===this?Qh(s==null?void 0:s.pointerEvents)||"":"none"),c}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach(s=>{var o;return(o=s.currentAnimation)===null||o===void 0?void 0:o.stop()}),this.root.nodes.forEach(qO),this.root.sharedNodes.clear()}}}function Zq(e){e.updateLayout()}function Jq(e){var t;const n=((t=e.resumeFrom)===null||t===void 0?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&n&&e.hasListeners("didUpdate")){const{layoutBox:r,measuredBox:a}=e.layout,{animationType:i}=e.options,s=n.source!==e.layout.source;i==="size"?rr(d=>{const h=s?n.measuredBox[d]:n.layoutBox[d],p=Qn(h);h.min=r[d].min,h.max=h.min+p}):X3(i,n.layoutBox,r)&&rr(d=>{const h=s?n.measuredBox[d]:n.layoutBox[d],p=Qn(r[d]);h.max=h.min+p,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[d].max=e.relativeTarget[d].min+p)});const o=Xo();zu(o,r,n.layoutBox);const l=Xo();s?zu(l,e.applyTransform(a,!0),n.measuredBox):zu(l,r,n.layoutBox);const c=!F3(o);let f=!1;if(!e.resumeFrom){const d=e.getClosestProjectingParent();if(d&&!d.resumeFrom){const{snapshot:h,layout:p}=d;if(h&&p){const v=gt();Bu(v,n.layoutBox,h.layoutBox);const y=gt();Bu(y,r,p.layoutBox),G3(v,y)||(f=!0),d.options.layoutRoot&&(e.relativeTarget=y,e.relativeTargetOrigin=v,e.relativeParent=d)}}}e.notifyListeners("didUpdate",{layout:r,snapshot:n,delta:l,layoutDelta:o,hasLayoutChanged:c,hasRelativeTargetChanged:f})}else if(e.isLead()){const{onExitComplete:r}=e.options;r&&r()}e.options.transition=void 0}function eV(e){bu&&ps.totalNodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=!!(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function tV(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function nV(e){e.clearSnapshot()}function qO(e){e.clearMeasurements()}function rV(e){e.isLayoutDirty=!1}function aV(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function VO(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function iV(e){e.resolveTargetDelta()}function sV(e){e.calcProjection()}function oV(e){e.resetSkewAndRotation()}function lV(e){e.removeLeadSnapshot()}function HO(e,t,n){e.translate=dt(t.translate,0,n),e.scale=dt(t.scale,1,n),e.origin=t.origin,e.originPoint=t.originPoint}function FO(e,t,n,r){e.min=dt(t.min,n.min,r),e.max=dt(t.max,n.max,r)}function cV(e,t,n,r){FO(e.x,t.x,n.x,r),FO(e.y,t.y,n.y,r)}function uV(e){return e.animationValues&&e.animationValues.opacityExit!==void 0}const fV={duration:.45,ease:[.4,0,.1,1]},GO=e=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),KO=GO("applewebkit/")&&!GO("chrome/")?Math.round:pn;function YO(e){e.min=KO(e.min),e.max=KO(e.max)}function dV(e){YO(e.x),YO(e.y)}function X3(e,t,n){return e==="position"||e==="preserve-aspect"&&!mq(BO(t),BO(n),.2)}function hV(e){var t;return e!==e.root&&((t=e.scroll)===null||t===void 0?void 0:t.wasRoot)}const pV=Y3({attachResizeListener:(e,t)=>yf(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),_g={current:void 0},W3=Y3({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!_g.current){const e=new pV({});e.mount(window),e.setOptions({layoutScroll:!0}),_g.current=e}return _g.current},resetTransform:(e,t)=>{e.style.transform=t!==void 0?t:"none"},checkIsScrollRoot:e=>window.getComputedStyle(e).position==="fixed"}),mV={pan:{Feature:Pq},drag:{Feature:Cq,ProjectionNode:W3,MeasureLayout:q3}};function XO(e,t,n){const{props:r}=e;e.animationState&&r.whileHover&&e.animationState.setActive("whileHover",n==="Start");const a="onHover"+n,i=r[a];i&&Re.postRender(()=>i(t,Od(t)))}class yV extends Qi{mount(){const{current:t}=this.node;t&&(this.unmount=v7(t,n=>(XO(this.node,n,"Start"),r=>XO(this.node,r,"End"))))}unmount(){}}class vV extends Qi{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch{t=!0}!t||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=Ad(yf(this.node.current,"focus",()=>this.onFocus()),yf(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}function WO(e,t,n){const{props:r}=e;e.animationState&&r.whileTap&&e.animationState.setActive("whileTap",n==="Start");const a="onTap"+(n==="End"?"":n),i=r[a];i&&Re.postRender(()=>i(t,Od(t)))}class gV extends Qi{mount(){const{current:t}=this.node;t&&(this.unmount=S7(t,n=>(WO(this.node,n,"Start"),(r,{success:a})=>WO(this.node,r,a?"End":"Cancel")),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}const F0=new WeakMap,Cg=new WeakMap,bV=e=>{const t=F0.get(e.target);t&&t(e)},xV=e=>{e.forEach(bV)};function SV({root:e,...t}){const n=e||document;Cg.has(n)||Cg.set(n,{});const r=Cg.get(n),a=JSON.stringify(t);return r[a]||(r[a]=new IntersectionObserver(xV,{root:e,...t})),r[a]}function wV(e,t,n){const r=SV(t);return F0.set(e,n),r.observe(e),()=>{F0.delete(e),r.unobserve(e)}}const jV={some:0,all:1};class AV extends Qi{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:n,margin:r,amount:a="some",once:i}=t,s={root:n?n.current:void 0,rootMargin:r,threshold:typeof a=="number"?a:jV[a]},o=l=>{const{isIntersecting:c}=l;if(this.isInView===c||(this.isInView=c,i&&!c&&this.hasEnteredView))return;c&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",c);const{onViewportEnter:f,onViewportLeave:d}=this.node.getProps(),h=c?f:d;h&&h(l)};return wV(this.node.current,s,o)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:t,prevProps:n}=this.node;["amount","margin","root"].some(OV(t,n))&&this.startObserver()}unmount(){}}function OV({viewport:e={}},{viewport:t={}}={}){return n=>e[n]!==t[n]}const EV={inView:{Feature:AV},tap:{Feature:gV},focus:{Feature:vV},hover:{Feature:yV}},TV={layout:{ProjectionNode:W3,MeasureLayout:q3}},Kp={current:null},ww={current:!1};function Q3(){if(ww.current=!0,!!VS)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>Kp.current=e.matches;e.addListener(t),t()}else Kp.current=!1}const NV=[...S3,rn,Yi],_V=e=>NV.find(x3(e)),QO=new WeakMap;function CV(e,t,n){for(const r in t){const a=t[r],i=n[r];if(on(a))e.addValue(r,a);else if(on(i))e.addValue(r,Xr(a,{owner:e}));else if(i!==a)if(e.hasValue(r)){const s=e.getValue(r);s.liveStyle===!0?s.jump(a):s.hasAnimated||s.set(a)}else{const s=e.getStaticValue(r);e.addValue(r,Xr(s!==void 0?s:a,{owner:e}))}}for(const r in n)t[r]===void 0&&e.removeValue(r);return t}const ZO=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class PV{scrapeMotionValuesFromProps(t,n,r){return{}}constructor({parent:t,props:n,presenceContext:r,reducedMotionConfig:a,blockInitialAnimation:i,visualState:s},o={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=vw,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const p=ta.now();this.renderScheduledAt<p&&(this.renderScheduledAt=p,Re.render(this.render,!1,!0))};const{latestValues:l,renderState:c,onUpdate:f}=s;this.onUpdate=f,this.latestValues=l,this.baseTarget={...l},this.initialValues=n.initial?{...l}:{},this.renderState=c,this.parent=t,this.props=n,this.presenceContext=r,this.depth=t?t.depth+1:0,this.reducedMotionConfig=a,this.options=o,this.blockInitialAnimation=!!i,this.isControllingVariants=_y(n),this.isVariantNode=ND(n),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(t&&t.current);const{willChange:d,...h}=this.scrapeMotionValuesFromProps(n,{},this);for(const p in h){const v=h[p];l[p]!==void 0&&on(v)&&v.set(l[p],!1)}}mount(t){this.current=t,QO.set(t,this),this.projection&&!this.projection.instance&&this.projection.mount(t),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((n,r)=>this.bindToMotionValue(r,n)),ww.current||Q3(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:Kp.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){QO.delete(this.current),this.projection&&this.projection.unmount(),$r(this.notifyUpdate),$r(this.render),this.valueSubscriptions.forEach(t=>t()),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features){const n=this.features[t];n&&(n.unmount(),n.isMounted=!1)}this.current=null}bindToMotionValue(t,n){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const r=po.has(t),a=n.on("change",o=>{this.latestValues[t]=o,this.props.onUpdate&&Re.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0)}),i=n.on("renderRequest",this.scheduleRender);let s;window.MotionCheckAppearSync&&(s=window.MotionCheckAppearSync(this,t,n)),this.valueSubscriptions.set(t,()=>{a(),i(),s&&s(),n.owner&&n.stop()})}sortNodePosition(t){return!this.current||!this.sortInstanceNodePosition||this.type!==t.type?0:this.sortInstanceNodePosition(this.current,t.current)}updateFeatures(){let t="animation";for(t in zl){const n=zl[t];if(!n)continue;const{isEnabled:r,Feature:a}=n;if(!this.features[t]&&a&&r(this.props)&&(this.features[t]=new a(this)),this.features[t]){const i=this.features[t];i.isMounted?i.update():(i.mount(),i.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):gt()}getStaticValue(t){return this.latestValues[t]}setStaticValue(t,n){this.latestValues[t]=n}update(t,n){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=n;for(let r=0;r<ZO.length;r++){const a=ZO[r];this.propEventSubscriptions[a]&&(this.propEventSubscriptions[a](),delete this.propEventSubscriptions[a]);const i="on"+a,s=t[i];s&&(this.propEventSubscriptions[a]=this.on(a,s))}this.prevMotionValues=CV(this,this.scrapeMotionValuesFromProps(t,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue(),this.onUpdate&&this.onUpdate(this)}getProps(){return this.props}getVariant(t){return this.props.variants?this.props.variants[t]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(t){const n=this.getClosestVariantNode();if(n)return n.variantChildren&&n.variantChildren.add(t),()=>n.variantChildren.delete(t)}addValue(t,n){const r=this.values.get(t);n!==r&&(r&&this.removeValue(t),this.bindToMotionValue(t,n),this.values.set(t,n),this.latestValues[t]=n.get())}removeValue(t){this.values.delete(t);const n=this.valueSubscriptions.get(t);n&&(n(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,n){if(this.props.values&&this.props.values[t])return this.props.values[t];let r=this.values.get(t);return r===void 0&&n!==void 0&&(r=Xr(n===null?void 0:n,{owner:this}),this.addValue(t,r)),r}readValue(t,n){var r;let a=this.latestValues[t]!==void 0||!this.current?this.latestValues[t]:(r=this.getBaseTargetFromProps(this.props,t))!==null&&r!==void 0?r:this.readValueFromInstance(this.current,t,this.options);return a!=null&&(typeof a=="string"&&(g3(a)||c3(a))?a=parseFloat(a):!_V(a)&&Yi.test(n)&&(a=m3(t,n)),this.setBaseTarget(t,on(a)?a.get():a)),on(a)?a.get():a}setBaseTarget(t,n){this.baseTarget[t]=n}getBaseTarget(t){var n;const{initial:r}=this.props;let a;if(typeof r=="string"||typeof r=="object"){const s=WS(this.props,r,(n=this.presenceContext)===null||n===void 0?void 0:n.custom);s&&(a=s[t])}if(r&&a!==void 0)return a;const i=this.getBaseTargetFromProps(this.props,t);return i!==void 0&&!on(i)?i:this.initialValues[t]!==void 0&&a===void 0?void 0:this.baseTarget[t]}on(t,n){return this.events[t]||(this.events[t]=new uw),this.events[t].add(n)}notify(t,...n){this.events[t]&&this.events[t].notify(...n)}}class Z3 extends PV{constructor(){super(...arguments),this.KeyframeResolver=w3}sortInstanceNodePosition(t,n){return t.compareDocumentPosition(n)&2?1:-1}getBaseTargetFromProps(t,n){return t.style?t.style[n]:void 0}removeValueFromRenderState(t,{vars:n,style:r}){delete n[t],delete r[t]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:t}=this.props;on(t)&&(this.childSubscription=t.on("change",n=>{this.current&&(this.current.textContent=`${n}`)}))}}function MV(e){return window.getComputedStyle(e)}class RV extends Z3{constructor(){super(...arguments),this.type="html",this.renderInstance=LD}readValueFromInstance(t,n){if(po.has(n)){const r=yw(n);return r&&r.default||0}else{const r=MV(t),a=(DD(n)?r.getPropertyValue(n):r[n])||0;return typeof a=="string"?a.trim():a}}measureInstanceViewportBox(t,{transformPagePoint:n}){return I3(t,n)}build(t,n,r){JS(t,n,r.transformTemplate)}scrapeMotionValuesFromProps(t,n,r){return rw(t,n,r)}}class DV extends Z3{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=gt}getBaseTargetFromProps(t,n){return t[n]}readValueFromInstance(t,n){if(po.has(n)){const r=yw(n);return r&&r.default||0}return n=zD.has(n)?n:KS(n),t.getAttribute(n)}scrapeMotionValuesFromProps(t,n,r){return UD(t,n,r)}build(t,n,r){ew(t,n,this.isSVGTag,r.transformTemplate)}renderInstance(t,n,r,a){BD(t,n,r,a)}mount(t){this.isSVGTag=nw(t.tagName),super.mount(t)}}const $V=(e,t)=>XS(e)?new DV(t):new RV(t,{allowProjection:e!==A.Fragment}),kV=d7({...sq,...EV,...mV,...TV},$V),Rt=TU(kV);function J3(e,t){let n;const r=()=>{const{currentTime:a}=t,s=(a===null?0:a.value)/100;n!==s&&e(s),n=s};return Re.update(r,!0),()=>$r(r)}const ep=new WeakMap;let si;function LV(e,t){if(t){const{inlineSize:n,blockSize:r}=t[0];return{width:n,height:r}}else return e instanceof SVGElement&&"getBBox"in e?e.getBBox():{width:e.offsetWidth,height:e.offsetHeight}}function zV({target:e,contentRect:t,borderBoxSize:n}){var r;(r=ep.get(e))===null||r===void 0||r.forEach(a=>{a({target:e,contentSize:t,get size(){return LV(e,n)}})})}function BV(e){e.forEach(zV)}function IV(){typeof ResizeObserver>"u"||(si=new ResizeObserver(BV))}function UV(e,t){si||IV();const n=WD(e);return n.forEach(r=>{let a=ep.get(r);a||(a=new Set,ep.set(r,a)),a.add(t),si==null||si.observe(r)}),()=>{n.forEach(r=>{const a=ep.get(r);a==null||a.delete(t),a!=null&&a.size||si==null||si.unobserve(r)})}}const tp=new Set;let Iu;function qV(){Iu=()=>{const e={width:window.innerWidth,height:window.innerHeight},t={target:window,size:e,contentSize:e};tp.forEach(n=>n(t))},window.addEventListener("resize",Iu)}function VV(e){return tp.add(e),Iu||qV(),()=>{tp.delete(e),!tp.size&&Iu&&(Iu=void 0)}}function HV(e,t){return typeof e=="function"?VV(e):UV(e,t)}const FV=50,JO=()=>({current:0,offset:[],progress:0,scrollLength:0,targetOffset:0,targetLength:0,containerLength:0,velocity:0}),GV=()=>({time:0,x:JO(),y:JO()}),KV={x:{length:"Width",position:"Left"},y:{length:"Height",position:"Top"}};function eE(e,t,n,r){const a=n[t],{length:i,position:s}=KV[t],o=a.current,l=n.time;a.current=e[`scroll${s}`],a.scrollLength=e[`scroll${i}`]-e[`client${i}`],a.offset.length=0,a.offset[0]=0,a.offset[1]=a.scrollLength,a.progress=Zs(0,a.scrollLength,a.current);const c=r-l;a.velocity=c>FV?0:fw(a.current-o,c)}function YV(e,t,n){eE(e,"x",t,n),eE(e,"y",t,n),t.time=n}function XV(e,t){const n={x:0,y:0};let r=e;for(;r&&r!==t;)if(r instanceof HTMLElement)n.x+=r.offsetLeft,n.y+=r.offsetTop,r=r.offsetParent;else if(r.tagName==="svg"){const a=r.getBoundingClientRect();r=r.parentElement;const i=r.getBoundingClientRect();n.x+=a.left-i.left,n.y+=a.top-i.top}else if(r instanceof SVGGraphicsElement){const{x:a,y:i}=r.getBBox();n.x+=a,n.y+=i;let s=null,o=r.parentNode;for(;!s;)o.tagName==="svg"&&(s=o),o=r.parentNode;r=s}else break;return n}const G0={start:0,center:.5,end:1};function tE(e,t,n=0){let r=0;if(e in G0&&(e=G0[e]),typeof e=="string"){const a=parseFloat(e);e.endsWith("px")?r=a:e.endsWith("%")?e=a/100:e.endsWith("vw")?r=a/100*document.documentElement.clientWidth:e.endsWith("vh")?r=a/100*document.documentElement.clientHeight:e=a}return typeof e=="number"&&(r=t*e),n+r}const WV=[0,0];function QV(e,t,n,r){let a=Array.isArray(e)?e:WV,i=0,s=0;return typeof e=="number"?a=[e,e]:typeof e=="string"&&(e=e.trim(),e.includes(" ")?a=e.split(" "):a=[e,G0[e]?e:"0"]),i=tE(a[0],n,r),s=tE(a[1],t),i-s}const ZV={All:[[0,0],[1,1]]},JV={x:0,y:0};function eH(e){return"getBBox"in e&&e.tagName!=="svg"?e.getBBox():{width:e.clientWidth,height:e.clientHeight}}function tH(e,t,n){const{offset:r=ZV.All}=n,{target:a=e,axis:i="y"}=n,s=i==="y"?"height":"width",o=a!==e?XV(a,e):JV,l=a===e?{width:e.scrollWidth,height:e.scrollHeight}:eH(a),c={width:e.clientWidth,height:e.clientHeight};t[i].offset.length=0;let f=!t[i].interpolate;const d=r.length;for(let h=0;h<d;h++){const p=QV(r[h],c[s],l[s],o[i]);!f&&p!==t[i].interpolatorOffsets[h]&&(f=!0),t[i].offset[h]=p}f&&(t[i].interpolate=bw(t[i].offset,_3(r),{clamp:!1}),t[i].interpolatorOffsets=[...t[i].offset]),t[i].progress=ia(0,1,t[i].interpolate(t[i].current))}function nH(e,t=e,n){if(n.x.targetOffset=0,n.y.targetOffset=0,t!==e){let r=t;for(;r&&r!==e;)n.x.targetOffset+=r.offsetLeft,n.y.targetOffset+=r.offsetTop,r=r.offsetParent}n.x.targetLength=t===e?t.scrollWidth:t.clientWidth,n.y.targetLength=t===e?t.scrollHeight:t.clientHeight,n.x.containerLength=e.clientWidth,n.y.containerLength=e.clientHeight}function rH(e,t,n,r={}){return{measure:()=>nH(e,r.target,n),update:a=>{YV(e,n,a),(r.offset||r.target)&&tH(e,n,r)},notify:()=>t(n)}}const Zc=new WeakMap,nE=new WeakMap,Pg=new WeakMap,rE=e=>e===document.documentElement?window:e;function jw(e,{container:t=document.documentElement,...n}={}){let r=Pg.get(t);r||(r=new Set,Pg.set(t,r));const a=GV(),i=rH(t,e,a,n);if(r.add(i),!Zc.has(t)){const o=()=>{for(const h of r)h.measure()},l=()=>{for(const h of r)h.update(Bt.timestamp)},c=()=>{for(const h of r)h.notify()},f=()=>{Re.read(o,!1,!0),Re.read(l,!1,!0),Re.update(c,!1,!0)};Zc.set(t,f);const d=rE(t);window.addEventListener("resize",f,{passive:!0}),t!==document.documentElement&&nE.set(t,HV(t,f)),d.addEventListener("scroll",f,{passive:!0})}const s=Zc.get(t);return Re.read(s,!1,!0),()=>{var o;$r(s);const l=Pg.get(t);if(!l||(l.delete(i),l.size))return;const c=Zc.get(t);Zc.delete(t),c&&(rE(t).removeEventListener("scroll",c),(o=nE.get(t))===null||o===void 0||o(),window.removeEventListener("resize",c))}}function aH({source:e,container:t,axis:n="y"}){e&&(t=e);const r={value:0},a=jw(i=>{r.value=i[n].progress*100},{container:t,axis:n});return{currentTime:r,cancel:a}}const Mg=new Map;function e$({source:e,container:t=document.documentElement,axis:n="y"}={}){e&&(t=e),Mg.has(t)||Mg.set(t,{});const r=Mg.get(t);return r[n]||(r[n]=HD()?new ScrollTimeline({source:t,axis:n}):aH({source:t,axis:n})),r[n]}function iH(e){return e.length===2}function t$(e){return e&&(e.target||e.offset)}function sH(e,t){return iH(e)||t$(t)?jw(n=>{e(n[t.axis].progress,n)},t):J3(e,e$(t))}function oH(e,t){if(e.flatten(),t$(t))return e.pause(),jw(n=>{e.time=e.duration*n[t.axis].progress},t);{const n=e$(t);return e.attachTimeline?e.attachTimeline(n,r=>(r.pause(),J3(a=>{r.time=r.duration*a},n))):pn}}function lH(e,{axis:t="y",...n}={}){const r={axis:t,...n};return typeof e=="function"?sH(e,r):oH(e,r)}function aE(e,t){bU(!!(!t||t.current))}const cH=()=>({scrollX:Xr(0),scrollY:Xr(0),scrollXProgress:Xr(0),scrollYProgress:Xr(0)});function uH({container:e,target:t,layoutEffect:n=!0,...r}={}){const a=Ec(cH);return(n?Ey:A.useEffect)(()=>(aE("target",t),aE("container",e),lH((s,{x:o,y:l})=>{a.scrollX.set(o.current),a.scrollXProgress.set(o.progress),a.scrollY.set(l.current),a.scrollYProgress.set(l.progress)},{...r,container:(e==null?void 0:e.current)||void 0,target:(t==null?void 0:t.current)||void 0})),[e,t,JSON.stringify(r.offset)]),a}function fH(e){const t=Ec(()=>Xr(e)),{isStatic:n}=A.useContext(Oy);if(n){const[,r]=A.useState(e);A.useEffect(()=>t.on("change",r),[])}return t}function n$(e,t){const n=fH(t()),r=()=>n.set(t());return r(),Ey(()=>{const a=()=>Re.preRender(r,!1,!0),i=e.map(s=>s.on("change",a));return()=>{i.forEach(s=>s()),$r(r)}}),n}const dH=e=>e&&typeof e=="object"&&e.mix,hH=e=>dH(e)?e.mix:void 0;function pH(...e){const t=!Array.isArray(e[0]),n=t?0:-1,r=e[0+n],a=e[1+n],i=e[2+n],s=e[3+n],o=bw(a,i,{mixer:hH(i[0]),...s});return t?o(r):o}function mH(e){$u.current=[],e();const t=n$($u.current,e);return $u.current=void 0,t}function Rg(e,t,n,r){if(typeof e=="function")return mH(e);const a=typeof t=="function"?t:pH(t,n,r);return Array.isArray(e)?iE(e,a):iE([e],([i])=>a(i))}function iE(e,t){const n=Ec(()=>[]);return n$(e,()=>{n.length=0;const r=e.length;for(let a=0;a<r;a++)n[a]=e[a].get();return t(n)})}function Qa(){!ww.current&&Q3();const[e]=A.useState(Kp.current);return e}/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const yH=e=>e.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase(),r$=(...e)=>e.filter((t,n,r)=>!!t&&r.indexOf(t)===n).join(" ");/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */var vH={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const gH=A.forwardRef(({color:e="currentColor",size:t=24,strokeWidth:n=2,absoluteStrokeWidth:r,className:a="",children:i,iconNode:s,...o},l)=>A.createElement("svg",{ref:l,...vH,width:t,height:t,stroke:e,strokeWidth:r?Number(n)*24/Number(t):n,className:r$("lucide",a),...o},[...s.map(([c,f])=>A.createElement(c,f)),...Array.isArray(i)?i:[i]]));/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const ae=(e,t)=>{const n=A.forwardRef(({className:r,...a},i)=>A.createElement(gH,{ref:i,iconNode:t,className:r$(`lucide-${yH(e)}`,r),...a}));return n.displayName=`${e}`,n};/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const a$=ae("ArrowLeftRight",[["path",{d:"M8 3 4 7l4 4",key:"9rb6wj"}],["path",{d:"M4 7h16",key:"6tx8e3"}],["path",{d:"m16 21 4-4-4-4",key:"siv7j2"}],["path",{d:"M20 17H4",key:"h6l3hr"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const gs=ae("ArrowRight",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"m12 5 7 7-7 7",key:"xquz4c"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Aw=ae("BarChart3",[["path",{d:"M3 3v18h18",key:"1s2lah"}],["path",{d:"M18 17V9",key:"2bz60n"}],["path",{d:"M13 17V5",key:"1frdt8"}],["path",{d:"M8 17v-3",key:"17ska0"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const i$=ae("Boxes",[["path",{d:"M2.97 12.92A2 2 0 0 0 2 14.63v3.24a2 2 0 0 0 .97 1.71l3 1.8a2 2 0 0 0 2.06 0L12 19v-5.5l-5-3-4.03 2.42Z",key:"lc1i9w"}],["path",{d:"m7 16.5-4.74-2.85",key:"1o9zyk"}],["path",{d:"m7 16.5 5-3",key:"va8pkn"}],["path",{d:"M7 16.5v5.17",key:"jnp8gn"}],["path",{d:"M12 13.5V19l3.97 2.38a2 2 0 0 0 2.06 0l3-1.8a2 2 0 0 0 .97-1.71v-3.24a2 2 0 0 0-.97-1.71L17 10.5l-5 3Z",key:"8zsnat"}],["path",{d:"m17 16.5-5-3",key:"8arw3v"}],["path",{d:"m17 16.5 4.74-2.85",key:"8rfmw"}],["path",{d:"M17 16.5v5.17",key:"k6z78m"}],["path",{d:"M7.97 4.42A2 2 0 0 0 7 6.13v4.37l5 3 5-3V6.13a2 2 0 0 0-.97-1.71l-3-1.8a2 2 0 0 0-2.06 0l-3 1.8Z",key:"1xygjf"}],["path",{d:"M12 8 7.26 5.15",key:"1vbdud"}],["path",{d:"m12 8 4.74-2.85",key:"3rx089"}],["path",{d:"M12 13.5V8",key:"1io7kd"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const s$=ae("CalendarClock",[["path",{d:"M21 7.5V6a2 2 0 0 0-2-2H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h3.5",key:"1osxxc"}],["path",{d:"M16 2v4",key:"4m81vk"}],["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M3 10h5",key:"r794hk"}],["path",{d:"M17.5 17.5 16 16.3V14",key:"akvzfd"}],["circle",{cx:"16",cy:"16",r:"6",key:"qoo3c4"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const bH=ae("CalendarDays",[["path",{d:"M8 2v4",key:"1cmpym"}],["path",{d:"M16 2v4",key:"4m81vk"}],["rect",{width:"18",height:"18",x:"3",y:"4",rx:"2",key:"1hopcy"}],["path",{d:"M3 10h18",key:"8toen8"}],["path",{d:"M8 14h.01",key:"6423bh"}],["path",{d:"M12 14h.01",key:"1etili"}],["path",{d:"M16 14h.01",key:"1gbofw"}],["path",{d:"M8 18h.01",key:"lrp35t"}],["path",{d:"M12 18h.01",key:"mhygvu"}],["path",{d:"M16 18h.01",key:"kzsmim"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const o$=ae("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const dh=ae("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const xH=ae("CircleCheck",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const SH=ae("CircleUser",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}],["path",{d:"M7 20.662V19a2 2 0 0 1 2-2h6a2 2 0 0 1 2 2v1.662",key:"154egf"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const l$=ae("Clock",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["polyline",{points:"12 6 12 12 16 14",key:"68esgv"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const c$=ae("Coins",[["circle",{cx:"8",cy:"8",r:"6",key:"3yglwk"}],["path",{d:"M18.09 10.37A6 6 0 1 1 10.34 18",key:"t5s6rm"}],["path",{d:"M7 6h1v4",key:"1obek4"}],["path",{d:"m16.71 13.88.7.71-2.82 2.82",key:"1rbuyh"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const u$=ae("Copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const sE=ae("CreditCard",[["rect",{width:"20",height:"14",x:"2",y:"5",rx:"2",key:"ynyp8z"}],["line",{x1:"2",x2:"22",y1:"10",y2:"10",key:"1b3vmo"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const vf=ae("Crown",[["path",{d:"M11.562 3.266a.5.5 0 0 1 .876 0L15.39 8.87a1 1 0 0 0 1.516.294L21.183 5.5a.5.5 0 0 1 .798.519l-2.834 10.246a1 1 0 0 1-.956.734H5.81a1 1 0 0 1-.957-.734L2.02 6.02a.5.5 0 0 1 .798-.519l4.276 3.664a1 1 0 0 0 1.516-.294z",key:"1vdc57"}],["path",{d:"M5 21h14",key:"11awu3"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const wH=ae("DollarSign",[["line",{x1:"12",x2:"12",y1:"2",y2:"22",key:"7eqyqh"}],["path",{d:"M17 5H9.5a3.5 3.5 0 0 0 0 7h5a3.5 3.5 0 0 1 0 7H6",key:"1b0p4s"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const f$=ae("Download",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"7 10 12 15 17 10",key:"2ggqvy"}],["line",{x1:"12",x2:"12",y1:"15",y2:"3",key:"1vk2je"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const d$=ae("ExternalLink",[["path",{d:"M15 3h6v6",key:"1q9fwt"}],["path",{d:"M10 14 21 3",key:"gplh6r"}],["path",{d:"M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6",key:"a6xqqp"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const h$=ae("Facebook",[["path",{d:"M18 2h-3a5 5 0 0 0-5 5v3H7v4h3v8h4v-8h3l1-4h-4V7a1 1 0 0 1 1-1h3z",key:"1jg4f8"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const ut=ae("Flower2",[["path",{d:"M12 5a3 3 0 1 1 3 3m-3-3a3 3 0 1 0-3 3m3-3v1M9 8a3 3 0 1 0 3 3M9 8h1m5 0a3 3 0 1 1-3 3m3-3h-1m-2 3v-1",key:"3pnvol"}],["circle",{cx:"12",cy:"8",r:"2",key:"1822b1"}],["path",{d:"M12 10v12",key:"6ubwww"}],["path",{d:"M12 22c4.2 0 7-1.667 7-5-4.2 0-7 1.667-7 5Z",key:"9hd38g"}],["path",{d:"M12 22c-4.2 0-7-1.667-7-5 4.2 0 7 1.667 7 5Z",key:"ufn41s"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const p$=ae("Gift",[["rect",{x:"3",y:"8",width:"18",height:"4",rx:"1",key:"bkv52"}],["path",{d:"M12 8v13",key:"1c76mn"}],["path",{d:"M19 12v7a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2v-7",key:"6wjy6b"}],["path",{d:"M7.5 8a2.5 2.5 0 0 1 0-5A4.8 8 0 0 1 12 8a4.8 8 0 0 1 4.5-5 2.5 2.5 0 0 1 0 5",key:"1ihvrl"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const jH=ae("HandHeart",[["path",{d:"M11 14h2a2 2 0 1 0 0-4h-3c-.6 0-1.1.2-1.4.6L3 16",key:"1ifwr1"}],["path",{d:"m7 20 1.6-1.4c.3-.4.8-.6 1.4-.6h4c1.1 0 2.1-.4 2.8-1.2l4.6-4.4a2 2 0 0 0-2.75-2.91l-4.2 3.9",key:"17abbs"}],["path",{d:"m2 15 6 6",key:"10dquu"}],["path",{d:"M19.5 8.5c.7-.7 1.5-1.6 1.5-2.7A2.73 2.73 0 0 0 16 4a2.78 2.78 0 0 0-5 1.8c0 1.2.8 2 1.5 2.8L16 12Z",key:"1h3036"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const AH=ae("Headset",[["path",{d:"M3 11h3a2 2 0 0 1 2 2v3a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-5Zm0 0a9 9 0 1 1 18 0m0 0v5a2 2 0 0 1-2 2h-1a2 2 0 0 1-2-2v-3a2 2 0 0 1 2-2h3Z",key:"12oyoe"}],["path",{d:"M21 16v2a4 4 0 0 1-4 4h-5",key:"1x7m43"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const gf=ae("Heart",[["path",{d:"M19 14c1.49-1.46 3-3.21 3-5.5A5.5 5.5 0 0 0 16.5 3c-1.76 0-3 .5-4.5 2-1.5-1.5-2.74-2-4.5-2A5.5 5.5 0 0 0 2 8.5c0 2.3 1.5 4.05 3 5.5l7 7Z",key:"c3ymky"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const m$=ae("Instagram",[["rect",{width:"20",height:"20",x:"2",y:"2",rx:"5",ry:"5",key:"2e1cvw"}],["path",{d:"M16 11.37A4 4 0 1 1 12.63 8 4 4 0 0 1 16 11.37z",key:"9exkf1"}],["line",{x1:"17.5",x2:"17.51",y1:"6.5",y2:"6.5",key:"r4j83e"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const OH=ae("LayoutDashboard",[["rect",{width:"7",height:"9",x:"3",y:"3",rx:"1",key:"10lvy0"}],["rect",{width:"7",height:"5",x:"14",y:"3",rx:"1",key:"16une8"}],["rect",{width:"7",height:"9",x:"14",y:"12",rx:"1",key:"1hutg5"}],["rect",{width:"7",height:"5",x:"3",y:"16",rx:"1",key:"ldoo1y"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const K0=ae("Leaf",[["path",{d:"M11 20A7 7 0 0 1 9.8 6.1C15.5 5 17 4.48 19 2c1 2 2 4.18 2 8 0 5.5-4.78 10-10 10Z",key:"nnexq3"}],["path",{d:"M2 21c0-3 1.85-5.36 5.08-6C9.5 14.52 12 13 13 12",key:"mt58a7"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const oE=ae("Lock",[["rect",{width:"18",height:"11",x:"3",y:"11",rx:"2",ry:"2",key:"1w4ew1"}],["path",{d:"M7 11V7a5 5 0 0 1 10 0v4",key:"fwvmzm"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const y$=ae("LogOut",[["path",{d:"M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4",key:"1uf3rs"}],["polyline",{points:"16 17 21 12 16 7",key:"1gabdz"}],["line",{x1:"21",x2:"9",y1:"12",y2:"12",key:"1uyos4"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Yp=ae("MapPin",[["path",{d:"M20 10c0 6-8 12-8 12s-8-6-8-12a8 8 0 0 1 16 0Z",key:"2oe9fu"}],["circle",{cx:"12",cy:"10",r:"3",key:"ilqhr7"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const bf=ae("Megaphone",[["path",{d:"m3 11 18-5v12L3 14v-3z",key:"n962bs"}],["path",{d:"M11.6 16.8a3 3 0 1 1-5.8-1.6",key:"1yl0tm"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const v$=ae("Package",[["path",{d:"m7.5 4.27 9 5.15",key:"1c824w"}],["path",{d:"M21 8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73l7 4a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16Z",key:"hh9hay"}],["path",{d:"m3.3 7 8.7 5 8.7-5",key:"g66t2b"}],["path",{d:"M12 22V12",key:"d0xqtd"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const EH=ae("PenLine",[["path",{d:"M12 20h9",key:"t2du7b"}],["path",{d:"M16.376 3.622a1 1 0 0 1 3.002 3.002L7.368 18.635a2 2 0 0 1-.855.506l-2.872.838a.5.5 0 0 1-.62-.62l.838-2.872a2 2 0 0 1 .506-.854z",key:"1ykcvy"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const lE=ae("Phone",[["path",{d:"M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z",key:"foiqr5"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const TH=ae("Plug",[["path",{d:"M12 22v-5",key:"1ega77"}],["path",{d:"M9 8V2",key:"14iosj"}],["path",{d:"M15 8V2",key:"18g5xt"}],["path",{d:"M18 8v5a4 4 0 0 1-4 4h-4a4 4 0 0 1-4-4V8Z",key:"osxo6l"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Ow=ae("Plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const NH=ae("Power",[["path",{d:"M12 2v10",key:"mnfbl"}],["path",{d:"M18.4 6.6a9 9 0 1 1-12.77.04",key:"obofu9"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const cE=ae("Radio",[["path",{d:"M4.9 19.1C1 15.2 1 8.8 4.9 4.9",key:"1vaf9d"}],["path",{d:"M7.8 16.2c-2.3-2.3-2.3-6.1 0-8.5",key:"u1ii0m"}],["circle",{cx:"12",cy:"12",r:"2",key:"1c9p78"}],["path",{d:"M16.2 7.8c2.3 2.3 2.3 6.1 0 8.5",key:"1j5fej"}],["path",{d:"M19.1 4.9C23 8.8 23 15.1 19.1 19",key:"10b0cb"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Ew=ae("RefreshCw",[["path",{d:"M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8",key:"v9h5vc"}],["path",{d:"M21 3v5h-5",key:"1q7to0"}],["path",{d:"M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16",key:"3uifl3"}],["path",{d:"M8 16H3v5",key:"1cv678"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const My=ae("Repeat",[["path",{d:"m17 2 4 4-4 4",key:"nntrym"}],["path",{d:"M3 11v-1a4 4 0 0 1 4-4h14",key:"84bu3i"}],["path",{d:"m7 22-4-4 4-4",key:"1wqhfi"}],["path",{d:"M21 13v1a4 4 0 0 1-4 4H3",key:"1rx37r"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const g$=ae("ScrollText",[["path",{d:"M15 12h-5",key:"r7krc0"}],["path",{d:"M15 8h-5",key:"1khuty"}],["path",{d:"M19 17V5a2 2 0 0 0-2-2H4",key:"zz82l3"}],["path",{d:"M8 21h12a2 2 0 0 0 2-2v-1a1 1 0 0 0-1-1H11a1 1 0 0 0-1 1v1a2 2 0 1 1-4 0V5a2 2 0 1 0-4 0v2a1 1 0 0 0 1 1h3",key:"1ph1d7"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Tw=ae("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const _H=ae("Send",[["path",{d:"m22 2-7 20-4-9-9-4Z",key:"1q3vgg"}],["path",{d:"M22 2 11 13",key:"nzbqef"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const b$=ae("Settings",[["path",{d:"M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z",key:"1qme2f"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Nw=ae("ShieldCheck",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const _w=ae("ShoppingBag",[["path",{d:"M6 2 3 6v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2V6l-3-4Z",key:"hou9p0"}],["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M16 10a4 4 0 0 1-8 0",key:"1ltviw"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Cw=ae("ShoppingCart",[["circle",{cx:"8",cy:"21",r:"1",key:"jimo8o"}],["circle",{cx:"19",cy:"21",r:"1",key:"13723u"}],["path",{d:"M2.05 2.05h2l2.66 12.42a2 2 0 0 0 2 1.58h9.78a2 2 0 0 0 1.95-1.57l1.65-7.43H5.12",key:"9zh506"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const CH=ae("SlidersHorizontal",[["line",{x1:"21",x2:"14",y1:"4",y2:"4",key:"obuewd"}],["line",{x1:"10",x2:"3",y1:"4",y2:"4",key:"1q6298"}],["line",{x1:"21",x2:"12",y1:"12",y2:"12",key:"1iu8h1"}],["line",{x1:"8",x2:"3",y1:"12",y2:"12",key:"ntss68"}],["line",{x1:"21",x2:"16",y1:"20",y2:"20",key:"14d8ph"}],["line",{x1:"12",x2:"3",y1:"20",y2:"20",key:"m0wm8r"}],["line",{x1:"14",x2:"14",y1:"2",y2:"6",key:"14e1ph"}],["line",{x1:"8",x2:"8",y1:"10",y2:"14",key:"1i6ji0"}],["line",{x1:"16",x2:"16",y1:"18",y2:"22",key:"1lctlv"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const ul=ae("Smartphone",[["rect",{width:"14",height:"20",x:"5",y:"2",rx:"2",ry:"2",key:"1yt0o3"}],["path",{d:"M12 18h.01",key:"mhygvu"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const gr=ae("Sparkles",[["path",{d:"M9.937 15.5A2 2 0 0 0 8.5 14.063l-6.135-1.582a.5.5 0 0 1 0-.962L8.5 9.936A2 2 0 0 0 9.937 8.5l1.582-6.135a.5.5 0 0 1 .963 0L14.063 8.5A2 2 0 0 0 15.5 9.937l6.135 1.581a.5.5 0 0 1 0 .964L15.5 14.063a2 2 0 0 0-1.437 1.437l-1.582 6.135a.5.5 0 0 1-.963 0z",key:"4pj2yx"}],["path",{d:"M20 3v4",key:"1olli1"}],["path",{d:"M22 5h-4",key:"1gvqau"}],["path",{d:"M4 17v2",key:"vumght"}],["path",{d:"M5 18H3",key:"zchphs"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Ga=ae("Star",[["polygon",{points:"12 2 15.09 8.26 22 9.27 17 14.14 18.18 21.02 12 17.77 5.82 21.02 7 14.14 2 9.27 8.91 8.26 12 2",key:"8f66p6"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Ed=ae("Store",[["path",{d:"m2 7 4.41-4.41A2 2 0 0 1 7.83 2h8.34a2 2 0 0 1 1.42.59L22 7",key:"ztvudi"}],["path",{d:"M4 12v8a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2v-8",key:"1b2hhj"}],["path",{d:"M15 22v-4a2 2 0 0 0-2-2h-2a2 2 0 0 0-2 2v4",key:"2ebpfo"}],["path",{d:"M2 7h20",key:"1fcdvo"}],["path",{d:"M22 7v3a2 2 0 0 1-2 2a2.7 2.7 0 0 1-1.59-.63.7.7 0 0 0-.82 0A2.7 2.7 0 0 1 16 12a2.7 2.7 0 0 1-1.59-.63.7.7 0 0 0-.82 0A2.7 2.7 0 0 1 12 12a2.7 2.7 0 0 1-1.59-.63.7.7 0 0 0-.82 0A2.7 2.7 0 0 1 8 12a2.7 2.7 0 0 1-1.59-.63.7.7 0 0 0-.82 0A2.7 2.7 0 0 1 4 12a2 2 0 0 1-2-2V7",key:"6c3vgh"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const PH=ae("Tag",[["path",{d:"M12.586 2.586A2 2 0 0 0 11.172 2H4a2 2 0 0 0-2 2v7.172a2 2 0 0 0 .586 1.414l8.704 8.704a2.426 2.426 0 0 0 3.42 0l6.58-6.58a2.426 2.426 0 0 0 0-3.42z",key:"vktsd0"}],["circle",{cx:"7.5",cy:"7.5",r:".5",fill:"currentColor",key:"kqv944"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const MH=ae("Trash2",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const RH=ae("TrendingUp",[["polyline",{points:"22 7 13.5 15.5 8.5 10.5 2 17",key:"126l90"}],["polyline",{points:"16 7 22 7 22 13",key:"kwv8wd"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const DH=ae("TriangleAlert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const Td=ae("Truck",[["path",{d:"M14 18V6a2 2 0 0 0-2-2H4a2 2 0 0 0-2 2v11a1 1 0 0 0 1 1h2",key:"wrbu53"}],["path",{d:"M15 18H9",key:"1lyqi6"}],["path",{d:"M19 18h2a1 1 0 0 0 1-1v-3.65a1 1 0 0 0-.22-.624l-3.48-4.35A1 1 0 0 0 17.52 8H14",key:"lysw3i"}],["circle",{cx:"17",cy:"18",r:"2",key:"332jqn"}],["circle",{cx:"7",cy:"18",r:"2",key:"19iecd"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const x$=ae("UserCog",[["circle",{cx:"18",cy:"15",r:"3",key:"gjjjvw"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["path",{d:"M10 15H6a4 4 0 0 0-4 4v2",key:"1nfge6"}],["path",{d:"m21.7 16.4-.9-.3",key:"12j9ji"}],["path",{d:"m15.2 13.9-.9-.3",key:"1fdjdi"}],["path",{d:"m16.6 18.7.3-.9",key:"heedtr"}],["path",{d:"m19.1 12.2.3-.9",key:"1af3ki"}],["path",{d:"m19.6 18.7-.4-1",key:"1x9vze"}],["path",{d:"m16.8 12.3-.4-1",key:"vqeiwj"}],["path",{d:"m14.3 16.6 1-.4",key:"1qlj63"}],["path",{d:"m20.7 13.8 1-.4",key:"1v5t8k"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const S$=ae("User",[["path",{d:"M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2",key:"975kel"}],["circle",{cx:"12",cy:"7",r:"4",key:"17ys0d"}]]);/**
 * @license lucide-react v0.400.0 - ISC
 *
 * This source code is licensed under the ISC license.
 * See the LICENSE file in the root directory of this source tree.
 */const w$=ae("Users",[["path",{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2",key:"1yyitq"}],["circle",{cx:"9",cy:"7",r:"4",key:"nufk8"}],["path",{d:"M22 21v-2a4 4 0 0 0-3-3.87",key:"kshegd"}],["path",{d:"M16 3.13a4 4 0 0 1 0 7.75",key:"1da9ce"}]]);function j$(e,t){return function(){return e.apply(t,arguments)}}const{toString:$H}=Object.prototype,{getPrototypeOf:Ry}=Object,{iterator:Dy,toStringTag:A$}=Symbol,$y=(e=>t=>{const n=$H.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),zr=e=>(e=e.toLowerCase(),t=>$y(t)===e),ky=e=>t=>typeof t===e,{isArray:Js}=Array,Il=ky("undefined");function _c(e){return e!==null&&!Il(e)&&e.constructor!==null&&!Il(e.constructor)&&Tn(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const O$=zr("ArrayBuffer");function kH(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&O$(e.buffer),t}const LH=ky("string"),Tn=ky("function"),E$=ky("number"),Nd=e=>e!==null&&typeof e=="object",zH=e=>e===!0||e===!1,np=e=>{if($y(e)!=="object")return!1;const t=Ry(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(A$ in e)&&!(Dy in e)},BH=e=>{if(!Nd(e)||_c(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},IH=zr("Date"),UH=zr("File"),qH=e=>!!(e&&typeof e.uri<"u"),VH=e=>e&&typeof e.getParts<"u",HH=zr("Blob"),FH=zr("FileList"),GH=e=>Nd(e)&&Tn(e.pipe);function KH(){return typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{}}const uE=KH(),fE=typeof uE.FormData<"u"?uE.FormData:void 0,YH=e=>{if(!e)return!1;if(fE&&e instanceof fE)return!0;const t=Ry(e);if(!t||t===Object.prototype||!Tn(e.append))return!1;const n=$y(e);return n==="formdata"||n==="object"&&Tn(e.toString)&&e.toString()==="[object FormData]"},XH=zr("URLSearchParams"),[WH,QH,ZH,JH]=["ReadableStream","Request","Response","Headers"].map(zr),eF=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function _d(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,a;if(typeof e!="object"&&(e=[e]),Js(e))for(r=0,a=e.length;r<a;r++)t.call(null,e[r],r,e);else{if(_c(e))return;const i=n?Object.getOwnPropertyNames(e):Object.keys(e),s=i.length;let o;for(r=0;r<s;r++)o=i[r],t.call(null,e[o],o,e)}}function T$(e,t){if(_c(e))return null;t=t.toLowerCase();const n=Object.keys(e);let r=n.length,a;for(;r-- >0;)if(a=n[r],t===a.toLowerCase())return a;return null}const ws=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,N$=e=>!Il(e)&&e!==ws;function Y0(...e){const{caseless:t,skipUndefined:n}=N$(this)&&this||{},r={},a=(i,s)=>{if(s==="__proto__"||s==="constructor"||s==="prototype")return;const o=t&&typeof s=="string"&&T$(r,s)||s,l=X0(r,o)?r[o]:void 0;np(l)&&np(i)?r[o]=Y0(l,i):np(i)?r[o]=Y0({},i):Js(i)?r[o]=i.slice():(!n||!Il(i))&&(r[o]=i)};for(let i=0,s=e.length;i<s;i++){const o=e[i];if(!o||_c(o)||(_d(o,a),typeof o!="object"||Js(o)))continue;const l=Object.getOwnPropertySymbols(o);for(let c=0;c<l.length;c++){const f=l[c];dF.call(o,f)&&a(o[f],f)}}return r}const tF=(e,t,n,{allOwnKeys:r}={})=>(_d(t,(a,i)=>{n&&Tn(a)?Object.defineProperty(e,i,{__proto__:null,value:j$(a,n),writable:!0,enumerable:!0,configurable:!0}):Object.defineProperty(e,i,{__proto__:null,value:a,writable:!0,enumerable:!0,configurable:!0})},{allOwnKeys:r}),e),nF=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),rF=(e,t,n,r)=>{e.prototype=Object.create(t.prototype,r),Object.defineProperty(e.prototype,"constructor",{__proto__:null,value:e,writable:!0,enumerable:!1,configurable:!0}),Object.defineProperty(e,"super",{__proto__:null,value:t.prototype}),n&&Object.assign(e.prototype,n)},aF=(e,t,n,r)=>{let a,i,s;const o={};if(t=t||{},e==null)return t;do{for(a=Object.getOwnPropertyNames(e),i=a.length;i-- >0;)s=a[i],(!r||r(s,e,t))&&!o[s]&&(t[s]=e[s],o[s]=!0);e=n!==!1&&Ry(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},iF=(e,t,n)=>{e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;const r=e.indexOf(t,n);return r!==-1&&r===n},sF=e=>{if(!e)return null;if(Js(e))return e;let t=e.length;if(!E$(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},oF=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&Ry(Uint8Array)),lF=(e,t)=>{const r=(e&&e[Dy]).call(e);let a;for(;(a=r.next())&&!a.done;){const i=a.value;t.call(e,i[0],i[1])}},cF=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},uF=zr("HTMLFormElement"),fF=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,a){return r.toUpperCase()+a}),X0=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),{propertyIsEnumerable:dF}=Object.prototype,hF=zr("RegExp"),_$=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};_d(n,(a,i)=>{let s;(s=t(a,i,e))!==!1&&(r[i]=s||a)}),Object.defineProperties(e,r)},pF=e=>{_$(e,(t,n)=>{if(Tn(e)&&["arguments","caller","callee"].includes(n))return!1;const r=e[n];if(Tn(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},mF=(e,t)=>{const n={},r=a=>{a.forEach(i=>{n[i]=!0})};return Js(e)?r(e):r(String(e).split(t)),n},yF=()=>{},vF=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function gF(e){return!!(e&&Tn(e.append)&&e[A$]==="FormData"&&e[Dy])}const bF=e=>{const t=new WeakSet,n=r=>{if(Nd(r)){if(t.has(r))return;if(_c(r))return r;if(!("toJSON"in r)){t.add(r);const a=Js(r)?[]:{};return _d(r,(i,s)=>{const o=n(i);!Il(o)&&(a[s]=o)}),t.delete(r),a}}return r};return n(e)},xF=zr("AsyncFunction"),SF=e=>e&&(Nd(e)||Tn(e))&&Tn(e.then)&&Tn(e.catch),C$=((e,t)=>e?setImmediate:t?((n,r)=>(ws.addEventListener("message",({source:a,data:i})=>{a===ws&&i===n&&r.length&&r.shift()()},!1),a=>{r.push(a),ws.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",Tn(ws.postMessage)),wF=typeof queueMicrotask<"u"?queueMicrotask.bind(ws):typeof process<"u"&&process.nextTick||C$,jF=e=>e!=null&&Tn(e[Dy]),D={isArray:Js,isArrayBuffer:O$,isBuffer:_c,isFormData:YH,isArrayBufferView:kH,isString:LH,isNumber:E$,isBoolean:zH,isObject:Nd,isPlainObject:np,isEmptyObject:BH,isReadableStream:WH,isRequest:QH,isResponse:ZH,isHeaders:JH,isUndefined:Il,isDate:IH,isFile:UH,isReactNativeBlob:qH,isReactNative:VH,isBlob:HH,isRegExp:hF,isFunction:Tn,isStream:GH,isURLSearchParams:XH,isTypedArray:oF,isFileList:FH,forEach:_d,merge:Y0,extend:tF,trim:eF,stripBOM:nF,inherits:rF,toFlatObject:aF,kindOf:$y,kindOfTest:zr,endsWith:iF,toArray:sF,forEachEntry:lF,matchAll:cF,isHTMLForm:uF,hasOwnProperty:X0,hasOwnProp:X0,reduceDescriptors:_$,freezeMethods:pF,toObjectSet:mF,toCamelCase:fF,noop:yF,toFiniteNumber:vF,findKey:T$,global:ws,isContextDefined:N$,isSpecCompliantForm:gF,toJSONObject:bF,isAsyncFn:xF,isThenable:SF,setImmediate:C$,asap:wF,isIterable:jF},AF=D.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),OF=e=>{const t={};let n,r,a;return e&&e.split(`
`).forEach(function(s){a=s.indexOf(":"),n=s.substring(0,a).trim().toLowerCase(),r=s.substring(a+1).trim(),!(!n||t[n]&&AF[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t};function EF(e){let t=0,n=e.length;for(;t<n;){const r=e.charCodeAt(t);if(r!==9&&r!==32)break;t+=1}for(;n>t;){const r=e.charCodeAt(n-1);if(r!==9&&r!==32)break;n-=1}return t===0&&n===e.length?e:e.slice(t,n)}const TF=new RegExp("[\\u0000-\\u0008\\u000a-\\u001f\\u007f]+","g"),NF=new RegExp("[^\\u0009\\u0020-\\u007e\\u0080-\\u00ff]+","g");function Pw(e,t){return D.isArray(e)?e.map(n=>Pw(n,t)):EF(String(e).replace(t,""))}const _F=e=>Pw(e,TF),CF=e=>Pw(e,NF);function P$(e){const t=Object.create(null);return D.forEach(e.toJSON(),(n,r)=>{t[r]=CF(n)}),t}const dE=Symbol("internals");function Jc(e){return e&&String(e).trim().toLowerCase()}function rp(e){return e===!1||e==null?e:D.isArray(e)?e.map(rp):_F(String(e))}function PF(e){const t=Object.create(null),n=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g;let r;for(;r=n.exec(e);)t[r[1]]=r[2];return t}const MF=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function Dg(e,t,n,r,a){if(D.isFunction(r))return r.call(this,t,n);if(a&&(t=n),!!D.isString(t)){if(D.isString(r))return t.indexOf(r)!==-1;if(D.isRegExp(r))return r.test(t)}}function RF(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function DF(e,t){const n=D.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{__proto__:null,value:function(a,i,s){return this[r].call(this,t,a,i,s)},configurable:!0})})}let mn=class{constructor(t){t&&this.set(t)}set(t,n,r){const a=this;function i(o,l,c){const f=Jc(l);if(!f)return;const d=D.findKey(a,f);(!d||a[d]===void 0||c===!0||c===void 0&&a[d]!==!1)&&(a[d||l]=rp(o))}const s=(o,l)=>D.forEach(o,(c,f)=>i(c,f,l));if(D.isPlainObject(t)||t instanceof this.constructor)s(t,n);else if(D.isString(t)&&(t=t.trim())&&!MF(t))s(OF(t),n);else if(D.isObject(t)&&D.isIterable(t)){let o={},l,c;for(const f of t){if(!D.isArray(f))throw new TypeError("Object iterator must return a key-value pair");o[c=f[0]]=(l=o[c])?D.isArray(l)?[...l,f[1]]:[l,f[1]]:f[1]}s(o,n)}else t!=null&&i(n,t,r);return this}get(t,n){if(t=Jc(t),t){const r=D.findKey(this,t);if(r){const a=this[r];if(!n)return a;if(n===!0)return PF(a);if(D.isFunction(n))return n.call(this,a,r);if(D.isRegExp(n))return n.exec(a);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=Jc(t),t){const r=D.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||Dg(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let a=!1;function i(s){if(s=Jc(s),s){const o=D.findKey(r,s);o&&(!n||Dg(r,r[o],o,n))&&(delete r[o],a=!0)}}return D.isArray(t)?t.forEach(i):i(t),a}clear(t){const n=Object.keys(this);let r=n.length,a=!1;for(;r--;){const i=n[r];(!t||Dg(this,this[i],i,t,!0))&&(delete this[i],a=!0)}return a}normalize(t){const n=this,r={};return D.forEach(this,(a,i)=>{const s=D.findKey(r,i);if(s){n[s]=rp(a),delete n[i];return}const o=t?RF(i):String(i).trim();o!==i&&delete n[i],n[o]=rp(a),r[o]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return D.forEach(this,(r,a)=>{r!=null&&r!==!1&&(n[a]=t&&D.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(`
`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(a=>r.set(a)),r}static accessor(t){const r=(this[dE]=this[dE]={accessors:{}}).accessors,a=this.prototype;function i(s){const o=Jc(s);r[o]||(DF(a,s),r[o]=!0)}return D.isArray(t)?t.forEach(i):i(t),this}};mn.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);D.reduceDescriptors(mn.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});D.freezeMethods(mn);const $F="[REDACTED ****]";function kF(e){if(D.hasOwnProp(e,"toJSON"))return!0;let t=Object.getPrototypeOf(e);for(;t&&t!==Object.prototype;){if(D.hasOwnProp(t,"toJSON"))return!0;t=Object.getPrototypeOf(t)}return!1}function LF(e,t){const n=new Set(t.map(i=>String(i).toLowerCase())),r=[],a=i=>{if(i===null||typeof i!="object"||D.isBuffer(i))return i;if(r.indexOf(i)!==-1)return;i instanceof mn&&(i=i.toJSON()),r.push(i);let s;if(D.isArray(i))s=[],i.forEach((o,l)=>{const c=a(o);D.isUndefined(c)||(s[l]=c)});else{if(!D.isPlainObject(i)&&kF(i))return r.pop(),i;s=Object.create(null);for(const[o,l]of Object.entries(i)){const c=n.has(o.toLowerCase())?$F:a(l);D.isUndefined(c)||(s[o]=c)}}return r.pop(),s};return a(e)}let ne=class M$ extends Error{static from(t,n,r,a,i,s){const o=new M$(t.message,n||t.code,r,a,i);return o.cause=t,o.name=t.name,t.status!=null&&o.status==null&&(o.status=t.status),s&&Object.assign(o,s),o}constructor(t,n,r,a,i){super(t),Object.defineProperty(this,"message",{__proto__:null,value:t,enumerable:!0,writable:!0,configurable:!0}),this.name="AxiosError",this.isAxiosError=!0,n&&(this.code=n),r&&(this.config=r),a&&(this.request=a),i&&(this.response=i,this.status=i.status)}toJSON(){const t=this.config,n=t&&D.hasOwnProp(t,"redact")?t.redact:void 0,r=D.isArray(n)&&n.length>0?LF(t,n):D.toJSONObject(t);return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:r,code:this.code,status:this.status}}};ne.ERR_BAD_OPTION_VALUE="ERR_BAD_OPTION_VALUE";ne.ERR_BAD_OPTION="ERR_BAD_OPTION";ne.ECONNABORTED="ECONNABORTED";ne.ETIMEDOUT="ETIMEDOUT";ne.ECONNREFUSED="ECONNREFUSED";ne.ERR_NETWORK="ERR_NETWORK";ne.ERR_FR_TOO_MANY_REDIRECTS="ERR_FR_TOO_MANY_REDIRECTS";ne.ERR_DEPRECATED="ERR_DEPRECATED";ne.ERR_BAD_RESPONSE="ERR_BAD_RESPONSE";ne.ERR_BAD_REQUEST="ERR_BAD_REQUEST";ne.ERR_CANCELED="ERR_CANCELED";ne.ERR_NOT_SUPPORT="ERR_NOT_SUPPORT";ne.ERR_INVALID_URL="ERR_INVALID_URL";ne.ERR_FORM_DATA_DEPTH_EXCEEDED="ERR_FORM_DATA_DEPTH_EXCEEDED";const zF=null;function W0(e){return D.isPlainObject(e)||D.isArray(e)}function R$(e){return D.endsWith(e,"[]")?e.slice(0,-2):e}function $g(e,t,n){return e?e.concat(t).map(function(a,i){return a=R$(a),!n&&i?"["+a+"]":a}).join(n?".":""):t}function BF(e){return D.isArray(e)&&!e.some(W0)}const IF=D.toFlatObject(D,{},null,function(t){return/^is[A-Z]/.test(t)});function Ly(e,t,n){if(!D.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=D.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(b,m){return!D.isUndefined(m[b])});const r=n.metaTokens,a=n.visitor||d,i=n.dots,s=n.indexes,o=n.Blob||typeof Blob<"u"&&Blob,l=n.maxDepth===void 0?100:n.maxDepth,c=o&&D.isSpecCompliantForm(t);if(!D.isFunction(a))throw new TypeError("visitor must be a function");function f(y){if(y===null)return"";if(D.isDate(y))return y.toISOString();if(D.isBoolean(y))return y.toString();if(!c&&D.isBlob(y))throw new ne("Blob is not supported. Use a Buffer instead.");return D.isArrayBuffer(y)||D.isTypedArray(y)?c&&typeof Blob=="function"?new Blob([y]):Buffer.from(y):y}function d(y,b,m){let g=y;if(D.isReactNative(t)&&D.isReactNativeBlob(y))return t.append($g(m,b,i),f(y)),!1;if(y&&!m&&typeof y=="object"){if(D.endsWith(b,"{}"))b=r?b:b.slice(0,-2),y=JSON.stringify(y);else if(D.isArray(y)&&BF(y)||(D.isFileList(y)||D.endsWith(b,"[]"))&&(g=D.toArray(y)))return b=R$(b),g.forEach(function(w,S){!(D.isUndefined(w)||w===null)&&t.append(s===!0?$g([b],S,i):s===null?b:b+"[]",f(w))}),!1}return W0(y)?!0:(t.append($g(m,b,i),f(y)),!1)}const h=[],p=Object.assign(IF,{defaultVisitor:d,convertValue:f,isVisitable:W0});function v(y,b,m=0){if(!D.isUndefined(y)){if(m>l)throw new ne("Object is too deeply nested ("+m+" levels). Max depth: "+l,ne.ERR_FORM_DATA_DEPTH_EXCEEDED);if(h.indexOf(y)!==-1)throw new Error("Circular reference detected in "+b.join("."));h.push(y),D.forEach(y,function(x,w){(!(D.isUndefined(x)||x===null)&&a.call(t,x,D.isString(w)?w.trim():w,b,p))===!0&&v(x,b?b.concat(w):[w],m+1)}),h.pop()}}if(!D.isObject(e))throw new TypeError("data must be an object");return v(e),t}function hE(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+"};return encodeURIComponent(e).replace(/[!'()~]|%20/g,function(r){return t[r]})}function Mw(e,t){this._pairs=[],e&&Ly(e,this,t)}const D$=Mw.prototype;D$.append=function(t,n){this._pairs.push([t,n])};D$.toString=function(t){const n=t?function(r){return t.call(this,r,hE)}:hE;return this._pairs.map(function(a){return n(a[0])+"="+n(a[1])},"").join("&")};function UF(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+")}function $$(e,t,n){if(!t)return e;const r=n&&n.encode||UF,a=D.isFunction(n)?{serialize:n}:n,i=a&&a.serialize;let s;if(i?s=i(t,a):s=D.isURLSearchParams(t)?t.toString():new Mw(t,a).toString(r),s){const o=e.indexOf("#");o!==-1&&(e=e.slice(0,o)),e+=(e.indexOf("?")===-1?"?":"&")+s}return e}class pE{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){D.forEach(this.handlers,function(r){r!==null&&t(r)})}}const Rw={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1,legacyInterceptorReqResOrdering:!0,advertiseZstdAcceptEncoding:!1},qF=typeof URLSearchParams<"u"?URLSearchParams:Mw,VF=typeof FormData<"u"?FormData:null,HF=typeof Blob<"u"?Blob:null,FF={isBrowser:!0,classes:{URLSearchParams:qF,FormData:VF,Blob:HF},protocols:["http","https","file","blob","url","data"]},Dw=typeof window<"u"&&typeof document<"u",Q0=typeof navigator=="object"&&navigator||void 0,GF=Dw&&(!Q0||["ReactNative","NativeScript","NS"].indexOf(Q0.product)<0),KF=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",YF=Dw&&window.location.href||"http://localhost",XF=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Dw,hasStandardBrowserEnv:GF,hasStandardBrowserWebWorkerEnv:KF,navigator:Q0,origin:YF},Symbol.toStringTag,{value:"Module"})),Zt={...XF,...FF};function WF(e,t){return Ly(e,new Zt.classes.URLSearchParams,{visitor:function(n,r,a,i){return Zt.isNode&&D.isBuffer(n)?(this.append(r,n.toString("base64")),!1):i.defaultVisitor.apply(this,arguments)},...t})}function QF(e){return D.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function ZF(e){const t={},n=Object.keys(e);let r;const a=n.length;let i;for(r=0;r<a;r++)i=n[r],t[i]=e[i];return t}function k$(e){function t(n,r,a,i){let s=n[i++];if(s==="__proto__")return!0;const o=Number.isFinite(+s),l=i>=n.length;return s=!s&&D.isArray(a)?a.length:s,l?(D.hasOwnProp(a,s)?a[s]=D.isArray(a[s])?a[s].concat(r):[a[s],r]:a[s]=r,!o):((!D.hasOwnProp(a,s)||!D.isObject(a[s]))&&(a[s]=[]),t(n,r,a[s],i)&&D.isArray(a[s])&&(a[s]=ZF(a[s])),!o)}if(D.isFormData(e)&&D.isFunction(e.entries)){const n={};return D.forEachEntry(e,(r,a)=>{t(QF(r),a,n,0)}),n}return null}const Eo=(e,t)=>e!=null&&D.hasOwnProp(e,t)?e[t]:void 0;function JF(e,t,n){if(D.isString(e))try{return(t||JSON.parse)(e),D.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const Cd={transitional:Rw,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",a=r.indexOf("application/json")>-1,i=D.isObject(t);if(i&&D.isHTMLForm(t)&&(t=new FormData(t)),D.isFormData(t))return a?JSON.stringify(k$(t)):t;if(D.isArrayBuffer(t)||D.isBuffer(t)||D.isStream(t)||D.isFile(t)||D.isBlob(t)||D.isReadableStream(t))return t;if(D.isArrayBufferView(t))return t.buffer;if(D.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let o;if(i){const l=Eo(this,"formSerializer");if(r.indexOf("application/x-www-form-urlencoded")>-1)return WF(t,l).toString();if((o=D.isFileList(t))||r.indexOf("multipart/form-data")>-1){const c=Eo(this,"env"),f=c&&c.FormData;return Ly(o?{"files[]":t}:t,f&&new f,l)}}return i||a?(n.setContentType("application/json",!1),JF(t)):t}],transformResponse:[function(t){const n=Eo(this,"transitional")||Cd.transitional,r=n&&n.forcedJSONParsing,a=Eo(this,"responseType"),i=a==="json";if(D.isResponse(t)||D.isReadableStream(t))return t;if(t&&D.isString(t)&&(r&&!a||i)){const o=!(n&&n.silentJSONParsing)&&i;try{return JSON.parse(t,Eo(this,"parseReviver"))}catch(l){if(o)throw l.name==="SyntaxError"?ne.from(l,ne.ERR_BAD_RESPONSE,this,null,Eo(this,"response")):l}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Zt.classes.FormData,Blob:Zt.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};D.forEach(["delete","get","head","post","put","patch","query"],e=>{Cd.headers[e]={}});function kg(e,t){const n=this||Cd,r=t||n,a=mn.from(r.headers);let i=r.data;return D.forEach(e,function(o){i=o.call(n,i,a.normalize(),t?t.status:void 0)}),a.normalize(),i}function L$(e){return!!(e&&e.__CANCEL__)}let Pd=class extends ne{constructor(t,n,r){super(t??"canceled",ne.ERR_CANCELED,n,r),this.name="CanceledError",this.__CANCEL__=!0}};function z$(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new ne("Request failed with status code "+n.status,n.status>=400&&n.status<500?ne.ERR_BAD_REQUEST:ne.ERR_BAD_RESPONSE,n.config,n.request,n))}function eG(e){const t=/^([-+\w]{1,25}):(?:\/\/)?/.exec(e);return t&&t[1]||""}function tG(e,t){e=e||10;const n=new Array(e),r=new Array(e);let a=0,i=0,s;return t=t!==void 0?t:1e3,function(l){const c=Date.now(),f=r[i];s||(s=c),n[a]=l,r[a]=c;let d=i,h=0;for(;d!==a;)h+=n[d++],d=d%e;if(a=(a+1)%e,a===i&&(i=(i+1)%e),c-s<t)return;const p=f&&c-f;return p?Math.round(h*1e3/p):void 0}}function nG(e,t){let n=0,r=1e3/t,a,i;const s=(c,f=Date.now())=>{n=f,a=null,i&&(clearTimeout(i),i=null),e(...c)};return[(...c)=>{const f=Date.now(),d=f-n;d>=r?s(c,f):(a=c,i||(i=setTimeout(()=>{i=null,s(a)},r-d)))},()=>a&&s(a)]}const Xp=(e,t,n=3)=>{let r=0;const a=tG(50,250);return nG(i=>{if(!i||typeof i.loaded!="number")return;const s=i.loaded,o=i.lengthComputable?i.total:void 0,l=o!=null?Math.min(s,o):s,c=Math.max(0,l-r),f=a(c);r=Math.max(r,l);const d={loaded:l,total:o,progress:o?l/o:void 0,bytes:c,rate:f||void 0,estimated:f&&o?(o-l)/f:void 0,event:i,lengthComputable:o!=null,[t?"download":"upload"]:!0};e(d)},n)},mE=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},yE=e=>(...t)=>D.asap(()=>e(...t)),rG=Zt.hasStandardBrowserEnv?((e,t)=>n=>(n=new URL(n,Zt.origin),e.protocol===n.protocol&&e.host===n.host&&(t||e.port===n.port)))(new URL(Zt.origin),Zt.navigator&&/(msie|trident)/i.test(Zt.navigator.userAgent)):()=>!0,aG=Zt.hasStandardBrowserEnv?{write(e,t,n,r,a,i,s){if(typeof document>"u")return;const o=[`${e}=${encodeURIComponent(t)}`];D.isNumber(n)&&o.push(`expires=${new Date(n).toUTCString()}`),D.isString(r)&&o.push(`path=${r}`),D.isString(a)&&o.push(`domain=${a}`),i===!0&&o.push("secure"),D.isString(s)&&o.push(`SameSite=${s}`),document.cookie=o.join("; ")},read(e){if(typeof document>"u")return null;const t=document.cookie.split(";");for(let n=0;n<t.length;n++){const r=t[n].replace(/^\s+/,""),a=r.indexOf("=");if(a!==-1&&r.slice(0,a)===e)return decodeURIComponent(r.slice(a+1))}return null},remove(e){this.write(e,"",Date.now()-864e5,"/")}}:{write(){},read(){return null},remove(){}};function iG(e){return typeof e!="string"?!1:/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function sG(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function B$(e,t,n){let r=!iG(t);return e&&(r||n===!1)?sG(e,t):t}const vE=e=>e instanceof mn?{...e}:e;function eo(e,t){t=t||{};const n=Object.create(null);Object.defineProperty(n,"hasOwnProperty",{__proto__:null,value:Object.prototype.hasOwnProperty,enumerable:!1,writable:!0,configurable:!0});function r(c,f,d,h){return D.isPlainObject(c)&&D.isPlainObject(f)?D.merge.call({caseless:h},c,f):D.isPlainObject(f)?D.merge({},f):D.isArray(f)?f.slice():f}function a(c,f,d,h){if(D.isUndefined(f)){if(!D.isUndefined(c))return r(void 0,c,d,h)}else return r(c,f,d,h)}function i(c,f){if(!D.isUndefined(f))return r(void 0,f)}function s(c,f){if(D.isUndefined(f)){if(!D.isUndefined(c))return r(void 0,c)}else return r(void 0,f)}function o(c,f,d){if(D.hasOwnProp(t,d))return r(c,f);if(D.hasOwnProp(e,d))return r(void 0,c)}const l={url:i,method:i,data:i,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,allowedSocketPaths:s,responseEncoding:s,validateStatus:o,headers:(c,f,d)=>a(vE(c),vE(f),d,!0)};return D.forEach(Object.keys({...e,...t}),function(f){if(f==="__proto__"||f==="constructor"||f==="prototype")return;const d=D.hasOwnProp(l,f)?l[f]:a,h=D.hasOwnProp(e,f)?e[f]:void 0,p=D.hasOwnProp(t,f)?t[f]:void 0,v=d(h,p,f);D.isUndefined(v)&&d!==o||(n[f]=v)}),n}const oG=["content-type","content-length"];function lG(e,t,n){if(n!=="content-only"){e.set(t);return}Object.entries(t).forEach(([r,a])=>{oG.includes(r.toLowerCase())&&e.set(r,a)})}const cG=e=>encodeURIComponent(e).replace(/%([0-9A-F]{2})/gi,(t,n)=>String.fromCharCode(parseInt(n,16)));function I$(e){const t=eo({},e),n=h=>D.hasOwnProp(t,h)?t[h]:void 0,r=n("data");let a=n("withXSRFToken");const i=n("xsrfHeaderName"),s=n("xsrfCookieName");let o=n("headers");const l=n("auth"),c=n("baseURL"),f=n("allowAbsoluteUrls"),d=n("url");if(t.headers=o=mn.from(o),t.url=$$(B$(c,d,f),n("params"),n("paramsSerializer")),l&&o.set("Authorization","Basic "+btoa((l.username||"")+":"+(l.password?cG(l.password):""))),D.isFormData(r)&&(Zt.hasStandardBrowserEnv||Zt.hasStandardBrowserWebWorkerEnv||D.isReactNative(r)?o.setContentType(void 0):D.isFunction(r.getHeaders)&&lG(o,r.getHeaders(),n("formDataHeaderPolicy"))),Zt.hasStandardBrowserEnv&&(D.isFunction(a)&&(a=a(t)),a===!0||a==null&&rG(t.url))){const p=i&&s&&aG.read(s);p&&o.set(i,p)}return t}const uG=typeof XMLHttpRequest<"u",fG=uG&&function(e){return new Promise(function(n,r){const a=I$(e);let i=a.data;const s=mn.from(a.headers).normalize();let{responseType:o,onUploadProgress:l,onDownloadProgress:c}=a,f,d,h,p,v;function y(){p&&p(),v&&v(),a.cancelToken&&a.cancelToken.unsubscribe(f),a.signal&&a.signal.removeEventListener("abort",f)}let b=new XMLHttpRequest;b.open(a.method.toUpperCase(),a.url,!0),b.timeout=a.timeout;function m(){if(!b)return;const x=mn.from("getAllResponseHeaders"in b&&b.getAllResponseHeaders()),S={data:!o||o==="text"||o==="json"?b.responseText:b.response,status:b.status,statusText:b.statusText,headers:x,config:e,request:b};z$(function(O){n(O),y()},function(O){r(O),y()},S),b=null}"onloadend"in b?b.onloadend=m:b.onreadystatechange=function(){!b||b.readyState!==4||b.status===0&&!(b.responseURL&&b.responseURL.startsWith("file:"))||setTimeout(m)},b.onabort=function(){b&&(r(new ne("Request aborted",ne.ECONNABORTED,e,b)),y(),b=null)},b.onerror=function(w){const S=w&&w.message?w.message:"Network Error",j=new ne(S,ne.ERR_NETWORK,e,b);j.event=w||null,r(j),y(),b=null},b.ontimeout=function(){let w=a.timeout?"timeout of "+a.timeout+"ms exceeded":"timeout exceeded";const S=a.transitional||Rw;a.timeoutErrorMessage&&(w=a.timeoutErrorMessage),r(new ne(w,S.clarifyTimeoutError?ne.ETIMEDOUT:ne.ECONNABORTED,e,b)),y(),b=null},i===void 0&&s.setContentType(null),"setRequestHeader"in b&&D.forEach(P$(s),function(w,S){b.setRequestHeader(S,w)}),D.isUndefined(a.withCredentials)||(b.withCredentials=!!a.withCredentials),o&&o!=="json"&&(b.responseType=a.responseType),c&&([h,v]=Xp(c,!0),b.addEventListener("progress",h)),l&&b.upload&&([d,p]=Xp(l),b.upload.addEventListener("progress",d),b.upload.addEventListener("loadend",p)),(a.cancelToken||a.signal)&&(f=x=>{b&&(r(!x||x.type?new Pd(null,e,b):x),b.abort(),y(),b=null)},a.cancelToken&&a.cancelToken.subscribe(f),a.signal&&(a.signal.aborted?f():a.signal.addEventListener("abort",f)));const g=eG(a.url);if(g&&!Zt.protocols.includes(g)){r(new ne("Unsupported protocol "+g+":",ne.ERR_BAD_REQUEST,e));return}b.send(i||null)})},dG=(e,t)=>{if(e=e?e.filter(Boolean):[],!t&&!e.length)return;const n=new AbortController;let r=!1;const a=function(l){if(!r){r=!0,s();const c=l instanceof Error?l:this.reason;n.abort(c instanceof ne?c:new Pd(c instanceof Error?c.message:c))}};let i=t&&setTimeout(()=>{i=null,a(new ne(`timeout of ${t}ms exceeded`,ne.ETIMEDOUT))},t);const s=()=>{e&&(i&&clearTimeout(i),i=null,e.forEach(l=>{l.unsubscribe?l.unsubscribe(a):l.removeEventListener("abort",a)}),e=null)};e.forEach(l=>l.addEventListener("abort",a));const{signal:o}=n;return o.unsubscribe=()=>D.asap(s),o},hG=function*(e,t){let n=e.byteLength;if(n<t){yield e;return}let r=0,a;for(;r<n;)a=r+t,yield e.slice(r,a),r=a},pG=async function*(e,t){for await(const n of mG(e))yield*hG(n,t)},mG=async function*(e){if(e[Symbol.asyncIterator]){yield*e;return}const t=e.getReader();try{for(;;){const{done:n,value:r}=await t.read();if(n)break;yield r}}finally{await t.cancel()}},gE=(e,t,n,r)=>{const a=pG(e,t);let i=0,s,o=l=>{s||(s=!0,r&&r(l))};return new ReadableStream({async pull(l){try{const{done:c,value:f}=await a.next();if(c){o(),l.close();return}let d=f.byteLength;if(n){let h=i+=d;n(h)}l.enqueue(new Uint8Array(f))}catch(c){throw o(c),c}},cancel(l){return o(l),a.return()}},{highWaterMark:2})};function yG(e){if(!e||typeof e!="string"||!e.startsWith("data:"))return 0;const t=e.indexOf(",");if(t<0)return 0;const n=e.slice(5,t),r=e.slice(t+1);if(/;base64/i.test(n)){let s=r.length;const o=r.length;for(let p=0;p<o;p++)if(r.charCodeAt(p)===37&&p+2<o){const v=r.charCodeAt(p+1),y=r.charCodeAt(p+2);(v>=48&&v<=57||v>=65&&v<=70||v>=97&&v<=102)&&(y>=48&&y<=57||y>=65&&y<=70||y>=97&&y<=102)&&(s-=2,p+=2)}let l=0,c=o-1;const f=p=>p>=2&&r.charCodeAt(p-2)===37&&r.charCodeAt(p-1)===51&&(r.charCodeAt(p)===68||r.charCodeAt(p)===100);c>=0&&(r.charCodeAt(c)===61?(l++,c--):f(c)&&(l++,c-=3)),l===1&&c>=0&&(r.charCodeAt(c)===61||f(c))&&l++;const h=Math.floor(s/4)*3-(l||0);return h>0?h:0}if(typeof Buffer<"u"&&typeof Buffer.byteLength=="function")return Buffer.byteLength(r,"utf8");let i=0;for(let s=0,o=r.length;s<o;s++){const l=r.charCodeAt(s);if(l<128)i+=1;else if(l<2048)i+=2;else if(l>=55296&&l<=56319&&s+1<o){const c=r.charCodeAt(s+1);c>=56320&&c<=57343?(i+=4,s++):i+=3}else i+=3}return i}const $w="1.17.0",bE=64*1024,{isFunction:hh}=D,vG=e=>encodeURIComponent(e).replace(/%([0-9A-F]{2})/gi,(t,n)=>String.fromCharCode(parseInt(n,16))),xE=e=>{if(!D.isString(e))return e;try{return decodeURIComponent(e)}catch{return e}},SE=(e,...t)=>{try{return!!e(...t)}catch{return!1}},gG=e=>{const t=e.indexOf("://");let n=e;return t!==-1&&(n=n.slice(t+3)),n.includes("@")||n.includes(":")},bG=e=>{const t=D.global!==void 0&&D.global!==null?D.global:globalThis,{ReadableStream:n,TextEncoder:r}=t;e=D.merge.call({skipUndefined:!0},{Request:t.Request,Response:t.Response},e);const{fetch:a,Request:i,Response:s}=e,o=a?hh(a):typeof fetch=="function",l=hh(i),c=hh(s);if(!o)return!1;const f=o&&hh(n),d=o&&(typeof r=="function"?(m=>g=>m.encode(g))(new r):async m=>new Uint8Array(await new i(m).arrayBuffer())),h=l&&f&&SE(()=>{let m=!1;const g=new i(Zt.origin,{body:new n,method:"POST",get duplex(){return m=!0,"half"}}),x=g.headers.has("Content-Type");return g.body!=null&&g.body.cancel(),m&&!x}),p=c&&f&&SE(()=>D.isReadableStream(new s("").body)),v={stream:p&&(m=>m.body)};o&&["text","arrayBuffer","blob","formData","stream"].forEach(m=>{!v[m]&&(v[m]=(g,x)=>{let w=g&&g[m];if(w)return w.call(g);throw new ne(`Response type '${m}' is not supported`,ne.ERR_NOT_SUPPORT,x)})});const y=async m=>{if(m==null)return 0;if(D.isBlob(m))return m.size;if(D.isSpecCompliantForm(m))return(await new i(Zt.origin,{method:"POST",body:m}).arrayBuffer()).byteLength;if(D.isArrayBufferView(m)||D.isArrayBuffer(m))return m.byteLength;if(D.isURLSearchParams(m)&&(m=m+""),D.isString(m))return(await d(m)).byteLength},b=async(m,g)=>{const x=D.toFiniteNumber(m.getContentLength());return x??y(g)};return async m=>{let{url:g,method:x,data:w,signal:S,cancelToken:j,timeout:O,onDownloadProgress:E,onUploadProgress:T,responseType:_,headers:M,withCredentials:C="same-origin",fetchOptions:z,maxContentLength:L,maxBodyLength:k}=I$(m);const R=D.isNumber(L)&&L>-1,$=D.isNumber(k)&&k>-1,B=ee=>D.hasOwnProp(m,ee)?m[ee]:void 0;let V=a||fetch;_=_?(_+"").toLowerCase():"text";let H=dG([S,j&&j.toAbortSignal()],O),Q=null;const Y=H&&H.unsubscribe&&(()=>{H.unsubscribe()});let re;try{let ee;const be=B("auth");if(be){const K=be.username||"",q=be.password||"";ee={username:K,password:q}}if(gG(g)){const K=new URL(g,Zt.origin);if(!ee&&(K.username||K.password)){const q=xE(K.username),Ce=xE(K.password);ee={username:q,password:Ce}}(K.username||K.password)&&(K.username="",K.password="",g=K.href)}if(ee&&(M.delete("authorization"),M.set("Authorization","Basic "+btoa(vG((ee.username||"")+":"+(ee.password||""))))),R&&typeof g=="string"&&g.startsWith("data:")&&yG(g)>L)throw new ne("maxContentLength size of "+L+" exceeded",ne.ERR_BAD_RESPONSE,m,Q);if($&&x!=="get"&&x!=="head"){const K=await b(M,w);if(typeof K=="number"&&isFinite(K)&&K>k)throw new ne("Request body larger than maxBodyLength limit",ne.ERR_BAD_REQUEST,m,Q)}if(T&&h&&x!=="get"&&x!=="head"&&(re=await b(M,w))!==0){let K=new i(g,{method:"POST",body:w,duplex:"half"}),q;if(D.isFormData(w)&&(q=K.headers.get("content-type"))&&M.setContentType(q),K.body){const[Ce,me]=mE(re,Xp(yE(T)));w=gE(K.body,bE,Ce,me)}}D.isString(C)||(C=C?"include":"omit");const Z=l&&"credentials"in i.prototype;if(D.isFormData(w)){const K=M.getContentType();K&&/^multipart\/form-data/i.test(K)&&!/boundary=/i.test(K)&&M.delete("content-type")}M.set("User-Agent","axios/"+$w,!1);const it={...z,signal:H,method:x.toUpperCase(),headers:P$(M.normalize()),body:w,duplex:"half",credentials:Z?C:void 0};Q=l&&new i(g,it);let qe=await(l?V(Q,z):V(g,it));if(R){const K=D.toFiniteNumber(qe.headers.get("content-length"));if(K!=null&&K>L)throw new ne("maxContentLength size of "+L+" exceeded",ne.ERR_BAD_RESPONSE,m,Q)}const G=p&&(_==="stream"||_==="response");if(p&&qe.body&&(E||R||G&&Y)){const K={};["status","statusText","headers"].forEach(ft=>{K[ft]=qe[ft]});const q=D.toFiniteNumber(qe.headers.get("content-length")),[Ce,me]=E&&mE(q,Xp(yE(E),!0))||[];let Ye=0;const st=ft=>{if(R&&(Ye=ft,Ye>L))throw new ne("maxContentLength size of "+L+" exceeded",ne.ERR_BAD_RESPONSE,m,Q);Ce&&Ce(ft)};qe=new s(gE(qe.body,bE,st,()=>{me&&me(),Y&&Y()}),K)}_=_||"text";let oe=await v[D.findKey(v,_)||"text"](qe,m);if(R&&!p&&!G){let K;if(oe!=null&&(typeof oe.byteLength=="number"?K=oe.byteLength:typeof oe.size=="number"?K=oe.size:typeof oe=="string"&&(K=typeof r=="function"?new r().encode(oe).byteLength:oe.length)),typeof K=="number"&&K>L)throw new ne("maxContentLength size of "+L+" exceeded",ne.ERR_BAD_RESPONSE,m,Q)}return!G&&Y&&Y(),await new Promise((K,q)=>{z$(K,q,{data:oe,headers:mn.from(qe.headers),status:qe.status,statusText:qe.statusText,config:m,request:Q})})}catch(ee){if(Y&&Y(),H&&H.aborted&&H.reason instanceof ne){const be=H.reason;throw be.config=m,Q&&(be.request=Q),ee!==be&&(be.cause=ee),be}throw ee&&ee.name==="TypeError"&&/Load failed|fetch/i.test(ee.message)?Object.assign(new ne("Network Error",ne.ERR_NETWORK,m,Q,ee&&ee.response),{cause:ee.cause||ee}):ne.from(ee,ee&&ee.code,m,Q,ee&&ee.response)}}},xG=new Map,U$=e=>{let t=e&&e.env||{};const{fetch:n,Request:r,Response:a}=t,i=[r,a,n];let s=i.length,o=s,l,c,f=xG;for(;o--;)l=i[o],c=f.get(l),c===void 0&&f.set(l,c=o?new Map:bG(t)),f=c;return c};U$();const kw={http:zF,xhr:fG,fetch:{get:U$}};D.forEach(kw,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{__proto__:null,value:t})}catch{}Object.defineProperty(e,"adapterName",{__proto__:null,value:t})}});const wE=e=>`- ${e}`,SG=e=>D.isFunction(e)||e===null||e===!1;function wG(e,t){e=D.isArray(e)?e:[e];const{length:n}=e;let r,a;const i={};for(let s=0;s<n;s++){r=e[s];let o;if(a=r,!SG(r)&&(a=kw[(o=String(r)).toLowerCase()],a===void 0))throw new ne(`Unknown adapter '${o}'`);if(a&&(D.isFunction(a)||(a=a.get(t))))break;i[o||"#"+s]=a}if(!a){const s=Object.entries(i).map(([l,c])=>`adapter ${l} `+(c===!1?"is not supported by the environment":"is not available in the build"));let o=n?s.length>1?`since :
`+s.map(wE).join(`
`):" "+wE(s[0]):"as no adapter specified";throw new ne("There is no suitable adapter to dispatch the request "+o,"ERR_NOT_SUPPORT")}return a}const q$={getAdapter:wG,adapters:kw};function Lg(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Pd(null,e)}function jE(e){return Lg(e),e.headers=mn.from(e.headers),e.data=kg.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),q$.getAdapter(e.adapter||Cd.adapter,e)(e).then(function(r){Lg(e),e.response=r;try{r.data=kg.call(e,e.transformResponse,r)}finally{delete e.response}return r.headers=mn.from(r.headers),r},function(r){if(!L$(r)&&(Lg(e),r&&r.response)){e.response=r.response;try{r.response.data=kg.call(e,e.transformResponse,r.response)}finally{delete e.response}r.response.headers=mn.from(r.response.headers)}return Promise.reject(r)})}const zy={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{zy[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const AE={};zy.transitional=function(t,n,r){function a(i,s){return"[Axios v"+$w+"] Transitional option '"+i+"'"+s+(r?". "+r:"")}return(i,s,o)=>{if(t===!1)throw new ne(a(s," has been removed"+(n?" in "+n:"")),ne.ERR_DEPRECATED);return n&&!AE[s]&&(AE[s]=!0,console.warn(a(s," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(i,s,o):!0}};zy.spelling=function(t){return(n,r)=>(console.warn(`${r} is likely a misspelling of ${t}`),!0)};function jG(e,t,n){if(typeof e!="object")throw new ne("options must be an object",ne.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let a=r.length;for(;a-- >0;){const i=r[a],s=Object.prototype.hasOwnProperty.call(t,i)?t[i]:void 0;if(s){const o=e[i],l=o===void 0||s(o,i,e);if(l!==!0)throw new ne("option "+i+" must be "+l,ne.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new ne("Unknown option "+i,ne.ERR_BAD_OPTION)}}const ap={assertOptions:jG,validators:zy},xn=ap.validators;let Vs=class{constructor(t){this.defaults=t||{},this.interceptors={request:new pE,response:new pE}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let a={};Error.captureStackTrace?Error.captureStackTrace(a):a=new Error;const i=(()=>{if(!a.stack)return"";const s=a.stack.indexOf(`
`);return s===-1?"":a.stack.slice(s+1)})();try{if(!r.stack)r.stack=i;else if(i){const s=i.indexOf(`
`),o=s===-1?-1:i.indexOf(`
`,s+1),l=o===-1?"":i.slice(o+1);String(r.stack).endsWith(l)||(r.stack+=`
`+i)}}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=eo(this.defaults,n);const{transitional:r,paramsSerializer:a,headers:i}=n;r!==void 0&&ap.assertOptions(r,{silentJSONParsing:xn.transitional(xn.boolean),forcedJSONParsing:xn.transitional(xn.boolean),clarifyTimeoutError:xn.transitional(xn.boolean),legacyInterceptorReqResOrdering:xn.transitional(xn.boolean),advertiseZstdAcceptEncoding:xn.transitional(xn.boolean)},!1),a!=null&&(D.isFunction(a)?n.paramsSerializer={serialize:a}:ap.assertOptions(a,{encode:xn.function,serialize:xn.function},!0)),n.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?n.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:n.allowAbsoluteUrls=!0),ap.assertOptions(n,{baseUrl:xn.spelling("baseURL"),withXsrfToken:xn.spelling("withXSRFToken")},!0),n.method=(n.method||this.defaults.method||"get").toLowerCase();let s=i&&D.merge(i.common,i[n.method]);i&&D.forEach(["delete","get","head","post","put","patch","query","common"],v=>{delete i[v]}),n.headers=mn.concat(s,i);const o=[];let l=!0;this.interceptors.request.forEach(function(y){if(typeof y.runWhen=="function"&&y.runWhen(n)===!1)return;l=l&&y.synchronous;const b=n.transitional||Rw;b&&b.legacyInterceptorReqResOrdering?o.unshift(y.fulfilled,y.rejected):o.push(y.fulfilled,y.rejected)});const c=[];this.interceptors.response.forEach(function(y){c.push(y.fulfilled,y.rejected)});let f,d=0,h;if(!l){const v=[jE.bind(this),void 0];for(v.unshift(...o),v.push(...c),h=v.length,f=Promise.resolve(n);d<h;)f=f.then(v[d++],v[d++]);return f}h=o.length;let p=n;for(;d<h;){const v=o[d++],y=o[d++];try{p=v(p)}catch(b){y.call(this,b);break}}try{f=jE.call(this,p)}catch(v){return Promise.reject(v)}for(d=0,h=c.length;d<h;)f=f.then(c[d++],c[d++]);return f}getUri(t){t=eo(this.defaults,t);const n=B$(t.baseURL,t.url,t.allowAbsoluteUrls);return $$(n,t.params,t.paramsSerializer)}};D.forEach(["delete","get","head","options"],function(t){Vs.prototype[t]=function(n,r){return this.request(eo(r||{},{method:t,url:n,data:(r||{}).data}))}});D.forEach(["post","put","patch","query"],function(t){function n(r){return function(i,s,o){return this.request(eo(o||{},{method:t,headers:r?{"Content-Type":"multipart/form-data"}:{},url:i,data:s}))}}Vs.prototype[t]=n(),t!=="query"&&(Vs.prototype[t+"Form"]=n(!0))});let AG=class V${constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let n;this.promise=new Promise(function(i){n=i});const r=this;this.promise.then(a=>{if(!r._listeners)return;let i=r._listeners.length;for(;i-- >0;)r._listeners[i](a);r._listeners=null}),this.promise.then=a=>{let i;const s=new Promise(o=>{r.subscribe(o),i=o}).then(a);return s.cancel=function(){r.unsubscribe(i)},s},t(function(i,s,o){r.reason||(r.reason=new Pd(i,s,o),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}toAbortSignal(){const t=new AbortController,n=r=>{t.abort(r)};return this.subscribe(n),t.signal.unsubscribe=()=>this.unsubscribe(n),t.signal}static source(){let t;return{token:new V$(function(a){t=a}),cancel:t}}};function OG(e){return function(n){return e.apply(null,n)}}function EG(e){return D.isObject(e)&&e.isAxiosError===!0}const Z0={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,PartialContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511,WebServerIsDown:521,ConnectionTimedOut:522,OriginIsUnreachable:523,TimeoutOccurred:524,SslHandshakeFailed:525,InvalidSslCertificate:526};Object.entries(Z0).forEach(([e,t])=>{Z0[t]=e});function H$(e){const t=new Vs(e),n=j$(Vs.prototype.request,t);return D.extend(n,Vs.prototype,t,{allOwnKeys:!0}),D.extend(n,t,null,{allOwnKeys:!0}),n.create=function(a){return H$(eo(e,a))},n}const wt=H$(Cd);wt.Axios=Vs;wt.CanceledError=Pd;wt.CancelToken=AG;wt.isCancel=L$;wt.VERSION=$w;wt.toFormData=Ly;wt.AxiosError=ne;wt.Cancel=wt.CanceledError;wt.all=function(t){return Promise.all(t)};wt.spread=OG;wt.isAxiosError=EG;wt.mergeConfig=eo;wt.AxiosHeaders=mn;wt.formToJSON=e=>k$(D.isHTMLForm(e)?new FormData(e):e);wt.getAdapter=q$.getAdapter;wt.HttpStatusCode=Z0;wt.default=wt;const{Axios:WSe,AxiosError:QSe,CanceledError:ZSe,isCancel:JSe,CancelToken:ewe,VERSION:twe,all:nwe,Cancel:rwe,isAxiosError:awe,spread:iwe,toFormData:swe,AxiosHeaders:owe,HttpStatusCode:lwe,formToJSON:cwe,getAdapter:uwe,mergeConfig:fwe,create:dwe}=wt,X=wt.create({baseURL:""}),F$=()=>location.pathname.startsWith("/admin"),G$=()=>F$()?"mall_admin_token":"mall_token";X.interceptors.request.use(e=>{const t=localStorage.getItem(G$());return t&&(e.headers.Authorization=`Bearer ${t}`),e});X.interceptors.response.use(e=>e,e=>{var t;return((t=e.response)==null?void 0:t.status)===401&&(localStorage.removeItem(G$()),F$()&&location.pathname!=="/admin/login"&&(location.href="/admin/login")),Promise.reject(e)});const W=e=>e.then(t=>{var n;return(n=t.data)==null?void 0:n.data}),K$=(e,t)=>X.post("/api/mall/auth/login",{username:e,password:t}),TG=(e,t,n)=>X.post("/api/mall/auth/register",{username:e,password:t,displayName:n}),Y$=()=>W(X.get("/api/mall/auth/me")),mo=(e=!0)=>W(X.get(`/api/mall/store?activeOnly=${e}`)),NG=(e,t)=>W(X.put(`/api/mall/store/${e}/active`,{active:t})),_G=e=>W(X.get(`/api/mall/zone/lookup?zip=${encodeURIComponent(e)}`)),Ul=(e={})=>{const t=new URLSearchParams;return Object.entries(e).forEach(([n,r])=>{r!==void 0&&r!==""&&r!==null&&t.set(n,String(r))}),W(X.get(`/api/mall/product?${t}`))},CG=e=>W(X.get(`/api/mall/product/${e}`)),PG=(e,t)=>W(X.put(`/api/mall/product/${e}/status`,{status:t})),MG=()=>W(X.get("/api/mall/category")),RG=e=>W(X.get(`/api/mall/store-inventory/store/${e}`)),DG=(e,t,n)=>W(X.put(`/api/mall/store-inventory/store/${e}/product/${t}/toggle`,{available:n})),$G=(e,t,n)=>W(X.put(`/api/mall/store-inventory/store/${e}/product/${t}/adjust`,{delta:n})),kG=(e,t)=>W(X.get(`/api/mall/schedule/availability?storeId=${e}&date=${t}`)),X$=()=>W(X.get("/api/mall/schedule/holidays")),LG=e=>W(X.post("/api/mall/schedule/holiday",e)),Lw=()=>W(X.get("/api/mall/cart")),zG=e=>W(X.post("/api/mall/cart",e)),BG=(e,t)=>W(X.put(`/api/mall/cart/${e}`,{quantity:t})),IG=e=>X.delete(`/api/mall/cart/${e}`),UG=(e="")=>W(X.get(`/api/mall/order?status=${e}`)),qG=e=>W(X.post("/api/mall/order/checkout",e)),W$=(e,t)=>W(X.put(`/api/mall/order/${e}/status`,{status:t})),VG=(e="",t=100)=>W(X.get(`/api/mall/order/admin?status=${e}&limit=${t}`)),HG=e=>W(X.post("/api/mall/payment",e)),FG=()=>W(X.get("/api/mall/subscription")),GG=e=>W(X.post("/api/mall/subscription",e)),OE=(e,t)=>W(X.put(`/api/mall/subscription/${e}/status`,{status:t})),KG=()=>W(X.get("/api/mall/subscription/admin")),YG=(e="",t="")=>{const n=new URLSearchParams;return e&&n.set("status",e),t&&n.set("storeId",t),W(X.get(`/api/mall/transfer?${n}`))},XG=e=>W(X.put(`/api/mall/transfer/${e}/approve`,{})),WG=e=>W(X.put(`/api/mall/transfer/${e}/reject`,{})),QG=e=>W(X.get(`/api/mall/review/product/${e}`)),ZG=e=>W(X.get(`/api/mall/review/product/${e}/stats`)),JG=e=>W(X.post("/api/mall/review",e)),eK=()=>W(X.get("/api/mall/member/me")),tK=()=>W(X.get("/api/mall/cs")),nK=e=>W(X.post("/api/mall/cs",e)),rK=()=>W(X.get("/api/mall/wishlist")),aK=e=>W(X.post(`/api/mall/wishlist/${e}`,{})),iK=e=>X.delete(`/api/mall/wishlist/${e}`),sK=(e=1,t=500)=>W(X.get(`/api/mall/analytics/dashboard?days=${e}&bigOrderThreshold=${t}`)),Q$=(e=7)=>W(X.get(`/api/mall/analytics/store-sales?days=${e}`)),Z$=(e=14)=>W(X.get(`/api/mall/analytics/trend?days=${e}`)),J$=(e=10)=>W(X.get(`/api/mall/analytics/top-products?limit=${e}`)),oK=(e,t,n)=>W(X.post("/api/mall/gateway/tax/quote",{amount:e,zip:t,state:n})),lK=(e,t)=>W(X.post("/api/mall/gateway/address/verify",{address:e,zip:t})),cK=()=>W(X.get("/api/mall/gateway/providers")),e5=(e="",t="",n=6)=>{const r=new URLSearchParams;return e&&r.set("occasion",e),t&&r.set("keyword",t),r.set("limit",String(n)),W(X.get(`/api/mall/ai/recommend?${r}`))},uK=e=>W(X.get(`/api/mall/ai/review-summary/${e}`)),t5=e=>W(X.post("/api/mall/ai/nl-search",{query:e})),fK=(e,t,n)=>W(X.post("/api/mall/ai/card-message",{occasion:e,tone:t,recipient:n})),dK=(e="valentine",t=14)=>W(X.get(`/api/mall/ai/demand-forecast?season=${e}&days=${t}`)),hK=e=>W(X.post("/api/mall/ai/transfer-recommend",{storeIds:e})),pK=()=>W(X.get("/api/admin/users")),mK=e=>W(X.post("/api/admin/users",e)),yK=(e,t)=>W(X.put(`/api/admin/users/${e}/role`,{role:t})),vK=(e,t)=>W(X.put(`/api/admin/users/${e}/active`,{active:t})),gK=(e,t)=>W(X.put(`/api/admin/users/${e}/password`,{password:t})),bK=e=>X.delete(`/api/admin/users/${e}`),xK=(e="",t="",n=100)=>{const r=new URLSearchParams;return e&&r.set("action",e),t&&r.set("actor",t),r.set("limit",String(n)),W(X.get(`/api/admin/audit?${r}`))},SK=()=>W(X.get("/api/admin/settings")),wK=(e,t)=>W(X.put(`/api/admin/settings/${encodeURIComponent(e)}`,{value:t})),jK=(e=!0)=>W(X.get(`/api/mall/loyalty/tiers?activeOnly=${e}`)),AK=(e,t)=>W(X.put(`/api/mall/loyalty/tiers/${e}`,t)),zw=()=>W(X.get("/api/mall/loyalty/me")),OK=(e=100)=>W(X.get(`/api/mall/loyalty/points/history?limit=${e}`)),EK=(e,t,n)=>W(X.post("/api/mall/loyalty/points/adjust",{owner:e,points:t,reason:n})),TK=()=>W(X.post("/api/mall/loyalty/recalc-all",{})),n5=(e=30)=>W(X.get(`/api/mall/loyalty/analytics/by-tier?days=${e}`)),NK=(e="")=>W(X.get(`/api/mall/event/ongoing${e?`?tier=${e}`:""}`)),_K=()=>W(X.get("/api/mall/event/banners")),CK=e=>W(X.post(`/api/mall/event/${e}/join`,{})),PK=(e="",t="",n=!1)=>{const r=new URLSearchParams;return e&&r.set("status",e),t&&r.set("type",t),r.set("activeOnly",String(n)),W(X.get(`/api/mall/event?${r}`))},MK=e=>W(X.post("/api/mall/event",e)),RK=e=>W(X.post(`/api/mall/event/${e}/publish`,{})),DK=e=>W(X.post(`/api/mall/event/${e}/end`,{})),$K=e=>X.delete(`/api/mall/event/${e}`),kK=e=>W(X.get(`/api/mall/event/${e}/performance`)),LK=(e,t,n)=>W(X.post("/api/mall/event/ai/copy",{eventType:e,theme:t,tone:n}));function Fr({children:e,delay:t=0,y:n=24,className:r="",as:a="div"}){const i=Qa(),s=Rt[a];return u.jsx(s,{className:r,initial:i?!1:{opacity:0,y:n},whileInView:{opacity:1,y:0},viewport:{once:!0,margin:"-60px"},transition:{duration:.7,delay:t,ease:[.22,1,.36,1]},children:e})}const zK={hidden:{},show:{transition:{staggerChildren:.07,delayChildren:.05}}},BK={hidden:{opacity:0,y:22},show:{opacity:1,y:0,transition:{duration:.6,ease:[.22,1,.36,1]}}};function Wp({children:e,className:t=""}){const n=Qa();return u.jsx(Rt.div,{className:t,variants:n?void 0:zK,initial:n?!1:"hidden",whileInView:"show",viewport:{once:!0,margin:"-40px"},children:e})}function Qp({children:e,className:t=""}){const n=Qa();return u.jsx(Rt.div,{className:t,variants:n?void 0:BK,children:e})}const EE=["","sage","cream"];function xf({count:e=14,className:t=""}){const n=Qa(),r=A.useMemo(()=>Array.from({length:e}).map((a,i)=>{const s=8+Math.round(Math.random()*14);return{left:Math.round(Math.random()*100),size:s,delay:+(Math.random()*12).toFixed(2),duration:+(10+Math.random()*10).toFixed(2),kind:EE[i%EE.length]}}),[e]);return n?null:u.jsx("div",{className:`petal-layer ${t}`,"aria-hidden":"true",children:r.map((a,i)=>u.jsx("span",{className:`petal ${a.kind}`,style:{left:`${a.left}%`,width:`${a.size}px`,height:`${a.size}px`,animationDelay:`${a.delay}s`,animationDuration:`${a.duration}s`}},i))})}function La({children:e,className:t="",onClick:n,type:r="button",disabled:a}){const i=Qa();return u.jsx(Rt.button,{type:r,onClick:n,disabled:a,className:t,whileHover:i||a?void 0:{scale:1.03,y:-1},whileTap:i||a?void 0:{scale:.97},transition:{type:"spring",stiffness:380,damping:22},children:e})}const _e={name:"Montvale Florist",tagline:"100% Florist-Designed and Hand-Delivered!",founded:2010,address:"6 Railroad Ave, Montvale, NJ 07645",phone:"(201) 690-6721",phoneTel:"+12016906721",email:"wecare@montvalefloristnj.com",rating:4.9,reviewCount:44893,hero:{eyebrow:"Montvale, New Jersey · Since 2010",title:`Florist-Designed,
Hand-Delivered with Love`,subtitle:"Your local independent florist — delivering not just flowers, but joy, comfort, and memories."},promise:[{title:"100% Florist-Designed",desc:"Every arrangement is crafted by hand in our shop — never mass-produced."},{title:"Locally Independent",desc:"A real, community-focused florist in Montvale since 2010 — not an online middleman."},{title:"100% Satisfaction",desc:"We stand behind every bouquet with our satisfaction guarantee."}],hours:[{day:"Mon – Fri",open:"9:00 AM – 5:30 PM",cutoff:"Same-day by 1:00 PM"},{day:"Saturday",open:"9:00 AM – 4:00 PM",cutoff:"Same-day by 12:00 PM"},{day:"Sunday",open:"9:00 AM – 12:00 PM",cutoff:"Same-day by 10:00 AM"}],social:{instagram:"https://instagram.com/themontvaleflorist",instagramHandle:"@themontvaleflorist",facebook:"https://facebook.com/montvaleflorist1",pinterest:"https://pinterest.com/montvaleflorist",google:"https://www.google.com/search?q=Montvale+Florist",yelp:"https://yelp.com/biz/montvale-florist-montvale-3"},payments:["Visa","Mastercard","Amex","Discover","Apple Pay","Google Pay"],wallets:["Apple Pay","Google Pay"],cards:["Visa","Mastercard","Amex","Discover"],policies:["Terms of Service","Privacy Policy","Accessibility Statement","Delivery Policy"],about:"Montvale Florist is your go-to local florist, delivering not just flowers, but joy, comfort, and memories. An independent, community-focused florist dedicated to craftsmanship and personal service since 2010."};function IK(){const[e,t]=A.useState(""),[n,r]=A.useState(null),[a,i]=A.useState(!1),[s,o]=A.useState(""),{setZone:l}=vn(),c=Ft(),f=async h=>{if(h.preventDefault(),o(""),r(null),!/^\d{5}$/.test(e)){o("Please enter a 5-digit ZIP code.");return}i(!0);try{const p=await _G(e);r(p),p!=null&&p.deliverable||o("Sorry, we don't deliver to that area yet. Try store pickup or another ZIP.")}catch{o("Lookup failed. Please try again in a moment.")}finally{i(!1)}},d=h=>{l(e,h.storeId,h.storeName),c("/home")};return u.jsxs("div",{className:"relative min-h-screen bg-gradient-to-br from-blush-100 via-cream to-sage-100 flex items-center justify-center px-4 overflow-hidden",children:[u.jsx(xf,{count:18}),u.jsx(Rt.div,{"aria-hidden":!0,className:"absolute -top-20 -left-20 text-blush-200/40",animate:{rotate:[0,360]},transition:{duration:80,repeat:1/0,ease:"linear"},children:u.jsx(ut,{size:320,strokeWidth:.5})}),u.jsx(Rt.div,{"aria-hidden":!0,className:"absolute -bottom-24 -right-16 text-sage-300/40",animate:{rotate:[360,0]},transition:{duration:90,repeat:1/0,ease:"linear"},children:u.jsx(ut,{size:260,strokeWidth:.5})}),u.jsxs(Rt.div,{initial:{opacity:0,y:24},animate:{opacity:1,y:0},transition:{duration:.8,ease:[.22,1,.36,1]},className:"relative z-10 w-full max-w-lg text-center",children:[u.jsxs("div",{className:"flex flex-col items-center mb-5",children:[u.jsx(Rt.span,{animate:{rotate:[0,8,-6,0]},transition:{duration:7,repeat:1/0,ease:"easeInOut"},children:u.jsx(ut,{className:"text-blush-500",size:44})}),u.jsx("h1",{className:"font-serif text-4xl font-bold text-blush-900 mt-3",children:"Montvale Florist"}),u.jsxs("p",{className:"font-display text-[13px] tracking-[0.35em] uppercase text-sage-600 mt-1",children:["Since ",_e.founded]})]}),u.jsx("p",{className:"font-display text-2xl text-[#6b5258] mb-1",children:_e.tagline}),u.jsx("p",{className:"text-[#8a7077] text-sm mb-8",children:"Tell us where you're sending flowers — we'll show what's available nearby."}),u.jsxs("form",{onSubmit:f,className:"bg-white/90 backdrop-blur rounded-4xl shadow-bloom p-7 border border-blush-100",children:[u.jsxs("label",{className:"flex items-center gap-2 text-sm text-blush-700 font-medium mb-3 justify-center",children:[u.jsx(Yp,{size:16})," Enter Delivery ZIP Code"]}),u.jsxs("div",{className:"flex gap-2",children:[u.jsx("input",{value:e,onChange:h=>t(h.target.value.replace(/\D/g,"").slice(0,5)),placeholder:"e.g. 07645",inputMode:"numeric",autoFocus:!0,className:"flex-1 px-4 py-3.5 rounded-2xl bg-blush-50 border border-blush-100 text-center text-lg tracking-[0.3em] outline-none focus:border-blush-400 transition-colors"}),u.jsx(La,{type:"submit",disabled:a,className:"px-7 rounded-2xl bg-blush-500 text-white font-semibold hover:bg-blush-600 disabled:opacity-60 flex items-center gap-1",children:a?"…":u.jsxs(u.Fragment,{children:["Go ",u.jsx(gs,{size:16})]})})]}),s&&u.jsx("p",{className:"text-blush-500 text-xs mt-3",children:s}),(n==null?void 0:n.deliverable)&&u.jsxs(Rt.div,{initial:{opacity:0,height:0},animate:{opacity:1,height:"auto"},className:"mt-6 text-left overflow-hidden",children:[u.jsxs("div",{className:"flex items-center gap-1.5 text-sm text-sage-700 font-medium mb-3",children:[u.jsx(Td,{size:15})," Available stores"]}),u.jsx("div",{className:"space-y-2",children:(n.stores||[]).map(h=>u.jsxs(La,{onClick:()=>d(h),className:"w-full flex items-center justify-between bg-blush-50 hover:bg-blush-100 border border-blush-100 rounded-2xl px-4 py-3.5 text-left",children:[u.jsxs("span",{children:[u.jsxs("span",{className:"font-medium text-sm flex items-center gap-1.5 text-blush-900",children:[u.jsx(Ed,{size:14,className:"text-blush-500"}),h.storeName]}),u.jsxs("span",{className:"block text-xs text-[#8a7077] mt-0.5",children:[h.radiusMi,"mi radius · same-day by ",h.sameDayCutoff," (",h.timezone,")"]})]}),u.jsx(gs,{size:16,className:"text-blush-500"})]},h.storeId))})]})]}),u.jsxs("div",{className:"flex items-center justify-center gap-2 mt-6 text-[12px] text-[#8a7077]",children:[u.jsx("span",{className:"flex text-gold",children:[1,2,3,4,5].map(h=>u.jsx(Ga,{size:13,fill:"currentColor"},h))}),_e.rating,"★ · ",_e.reviewCount.toLocaleString()," reviews"]}),u.jsx("button",{onClick:()=>c("/home"),className:"text-xs text-[#a08a90] hover:text-blush-600 mt-4 underline-offset-2 hover:underline",children:"Browse with store pickup →"})]})]})}function r5({size:e=18}){return u.jsx("svg",{viewBox:"0 0 24 24",width:e,height:e,fill:"currentColor","aria-hidden":"true",children:u.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12c0 4.24 2.64 7.85 6.36 9.31-.09-.79-.17-2 .03-2.86.18-.78 1.17-4.97 1.17-4.97s-.3-.6-.3-1.48c0-1.39.81-2.43 1.81-2.43.85 0 1.27.64 1.27 1.41 0 .86-.55 2.14-.83 3.33-.24 1 .5 1.81 1.48 1.81 1.78 0 3.14-1.88 3.14-4.58 0-2.4-1.72-4.07-4.19-4.07-2.85 0-4.52 2.14-4.52 4.35 0 .86.33 1.78.74 2.28.08.1.09.19.07.29l-.27 1.13c-.04.18-.14.22-.33.13-1.25-.58-2.03-2.4-2.03-3.87 0-3.15 2.29-6.04 6.6-6.04 3.46 0 6.16 2.47 6.16 5.77 0 3.44-2.17 6.21-5.18 6.21-1.01 0-1.97-.53-2.29-1.15l-.62 2.37c-.23.86-.83 1.94-1.24 2.6.94.29 1.92.44 2.95.44 5.52 0 10-4.48 10-10S17.52 2 12 2z"})})}function UK({size:e=18}){return u.jsxs("svg",{viewBox:"0 0 24 24",width:e,height:e,"aria-hidden":"true",children:[u.jsx("path",{fill:"#4285F4",d:"M22.56 12.25c0-.78-.07-1.53-.2-2.25H12v4.26h5.92a5.06 5.06 0 0 1-2.2 3.32v2.77h3.57c2.08-1.92 3.28-4.74 3.28-8.1z"}),u.jsx("path",{fill:"#34A853",d:"M12 23c2.97 0 5.46-.98 7.28-2.66l-3.57-2.77c-.98.66-2.23 1.06-3.71 1.06-2.86 0-5.29-1.93-6.16-4.53H2.18v2.84A11 11 0 0 0 12 23z"}),u.jsx("path",{fill:"#FBBC05",d:"M5.84 14.1a6.6 6.6 0 0 1 0-4.2V7.06H2.18a11 11 0 0 0 0 9.88l3.66-2.84z"}),u.jsx("path",{fill:"#EA4335",d:"M12 5.38c1.62 0 3.06.56 4.21 1.64l3.15-3.15C17.45 2.09 14.97 1 12 1A11 11 0 0 0 2.18 7.06l3.66 2.84C6.71 7.3 9.14 5.38 12 5.38z"})]})}function qK({size:e=18}){return u.jsx("svg",{viewBox:"0 0 24 24",width:e,height:e,fill:"currentColor","aria-hidden":"true",children:u.jsx("path",{d:"M12.27 13.3l4.45-2.16c.51-.25.66-.92.31-1.36-1.13-1.44-2.7-2.49-4.49-2.99-.55-.15-1.08.27-1.08.84l-.02 5.04c0 .65.72 1.06 1.32.77zM12.6 15.34l4.46 2.13c.51.25 1.13-.07 1.21-.63.25-1.8-.06-3.66-.92-5.31-.27-.51-.96-.6-1.36-.18l-3.5 3.42c-.45.45-.31 1.18.11 1.4v-.84zm-2.59.4l-3.45-3.4c-.41-.4-1.09-.32-1.37.18-.86 1.64-1.18 3.49-.95 5.29.07.56.69.89 1.21.64l4.45-2.12c.6-.29.74-1.02.06-1.43zm.08 2.36l-.02 4.95c0 .57.53.99 1.08.84 1.78-.49 3.34-1.53 4.48-2.96.35-.44.2-1.11-.31-1.36l-4.45-2.15c-.6-.29-1.31.13-1.31.78l.84.01zm-.45-7.1L5.66 7.06c-.43-.7-1.46-.56-1.69.23-.13.45-.22.92-.27 1.4-.16 1.55.05 3.12.61 4.56.21.53.91.62 1.27.13l3.95-5.32c.32-.43.06-1.05-.5-1.16l.39.56z"})})}const VK={instagram:({size:e})=>u.jsx(m$,{size:e}),facebook:({size:e})=>u.jsx(h$,{size:e}),pinterest:r5,google:UK,yelp:qK},HK={instagram:"Instagram",facebook:"Facebook",pinterest:"Pinterest",google:"Google Business",yelp:"Yelp"},FK=["instagram","facebook","pinterest","google","yelp"];function GK({size:e=18,className:t="",iconClass:n=""}){return u.jsx("div",{className:`flex items-center gap-3 ${t}`,children:FK.map(r=>{const a=_e.social[r];if(!a)return null;const i=VK[r];return u.jsx("a",{href:a,target:"_blank",rel:"noreferrer","aria-label":HK[r],className:`transition-colors ${n}`,children:u.jsx(i,{size:e})},r)})})}function KK({url:e,title:t,image:n,className:r=""}){const a=encodeURIComponent(e),i=encodeURIComponent(t||_e.name),s=encodeURIComponent(n||""),o=`https://www.facebook.com/sharer/sharer.php?u=${a}`,l=`https://pinterest.com/pin/create/button/?url=${a}&media=${s}&description=${i}`,c=_e.social.instagram,f=d=>window.open(d,"_blank","noopener,width=640,height=600");return u.jsxs("div",{className:`flex items-center gap-2 ${r}`,children:[u.jsx("span",{className:"text-xs text-[#a08a90]",children:"Share:"}),u.jsx("button",{type:"button",onClick:()=>f(c),"aria-label":"Share on Instagram",className:"p-2 rounded-full border border-blush-100 text-blush-500 hover:bg-blush-50 transition-colors",children:u.jsx(m$,{size:16})}),u.jsx("button",{type:"button",onClick:()=>f(o),"aria-label":"Share on Facebook",className:"p-2 rounded-full border border-blush-100 text-blush-500 hover:bg-blush-50 transition-colors",children:u.jsx(h$,{size:16})}),u.jsx("button",{type:"button",onClick:()=>f(l),"aria-label":"Share on Pinterest",className:"p-2 rounded-full border border-blush-100 text-blush-500 hover:bg-blush-50 transition-colors",children:u.jsx(r5,{size:16})})]})}function YK(){return u.jsxs("svg",{viewBox:"0 0 48 32",className:"h-7 w-auto",role:"img","aria-label":"Visa",children:[u.jsx("rect",{width:"48",height:"32",rx:"4",fill:"#fff",stroke:"#e7e2dc"}),u.jsx("text",{x:"24",y:"21",textAnchor:"middle",fontFamily:"Georgia, serif",fontWeight:"700",fontStyle:"italic",fontSize:"13",fill:"#1a1f71",children:"VISA"})]})}function XK(){return u.jsxs("svg",{viewBox:"0 0 48 32",className:"h-7 w-auto",role:"img","aria-label":"Mastercard",children:[u.jsx("rect",{width:"48",height:"32",rx:"4",fill:"#fff",stroke:"#e7e2dc"}),u.jsx("circle",{cx:"20",cy:"16",r:"8",fill:"#eb001b"}),u.jsx("circle",{cx:"28",cy:"16",r:"8",fill:"#f79e1b",fillOpacity:"0.85"})]})}function WK(){return u.jsxs("svg",{viewBox:"0 0 48 32",className:"h-7 w-auto",role:"img","aria-label":"American Express",children:[u.jsx("rect",{width:"48",height:"32",rx:"4",fill:"#2e77bb"}),u.jsx("text",{x:"24",y:"20",textAnchor:"middle",fontFamily:"Arial, sans-serif",fontWeight:"700",fontSize:"9",fill:"#fff",children:"AMEX"})]})}function QK(){return u.jsxs("svg",{viewBox:"0 0 48 32",className:"h-7 w-auto",role:"img","aria-label":"Discover",children:[u.jsx("rect",{width:"48",height:"32",rx:"4",fill:"#fff",stroke:"#e7e2dc"}),u.jsx("circle",{cx:"36",cy:"22",r:"9",fill:"#f68121"}),u.jsx("text",{x:"22",y:"19",textAnchor:"middle",fontFamily:"Arial, sans-serif",fontWeight:"700",fontSize:"7",fill:"#231f20",children:"DISCOVER"})]})}function ZK(){return u.jsxs("svg",{viewBox:"0 0 48 32",className:"h-7 w-auto",role:"img","aria-label":"Apple Pay",children:[u.jsx("rect",{width:"48",height:"32",rx:"4",fill:"#000"}),u.jsx("text",{x:"24",y:"20",textAnchor:"middle",fontFamily:"-apple-system, Helvetica, sans-serif",fontWeight:"600",fontSize:"9",fill:"#fff",children:" Pay"})]})}function JK(){return u.jsxs("svg",{viewBox:"0 0 48 32",className:"h-7 w-auto",role:"img","aria-label":"Google Pay",children:[u.jsx("rect",{width:"48",height:"32",rx:"4",fill:"#fff",stroke:"#e7e2dc"}),u.jsxs("text",{x:"24",y:"20",textAnchor:"middle",fontFamily:"Arial, sans-serif",fontWeight:"700",fontSize:"9",children:[u.jsx("tspan",{fill:"#4285f4",children:"G"}),u.jsx("tspan",{fill:"#ea4335",children:"o"}),u.jsx("tspan",{fill:"#fbbc05",children:"o"}),u.jsx("tspan",{fill:"#4285f4",children:"g"}),u.jsx("tspan",{fill:"#34a853",children:"l"}),u.jsx("tspan",{fill:"#ea4335",children:"e"}),u.jsx("tspan",{fill:"#5f6368",children:" Pay"})]})]})}const a5={Visa:YK,Mastercard:XK,Amex:WK,Discover:QK,"Apple Pay":ZK,"Google Pay":JK};function i5({items:e,className:t=""}){return u.jsx("div",{className:`flex flex-wrap items-center gap-1.5 ${t}`,children:e.map(n=>{const r=a5[n];return r?u.jsx(r,{},n):u.jsx("span",{className:"text-[10px] bg-cream/10 rounded px-2 py-1",children:n},n)})})}function eY(e){const t=e.replace(/\D/g,"");return t.length<4?"•••• •••• •••• ••••":`•••• •••• •••• ${t.slice(-4)}`}function tY(e){return e.replace(/\D/g,"").slice(0,16).replace(/(.{4})/g,"$1 ").trim()}function nY({method:e,onMethod:t,onCardChange:n,cards:r=["Visa","Mastercard","Amex","Discover"],wallets:a=["Apple Pay","Google Pay"]}){const[i,s]=A.useState(""),[o,l]=A.useState(""),[c,f]=A.useState(""),[d,h]=A.useState(""),[p,v]=A.useState(!1),y=i.replace(/\D/g,""),b=(g=i,x=o,w=c)=>{const S=g.replace(/\D/g,""),j=S.length>=15&&/^\d{2}\/\d{2}$/.test(x)&&w.replace(/\D/g,"").length>=3;n==null||n({last4:S.slice(-4),expiry:x,complete:j})},m=g=>g==="Apple Pay"?"APPLE_PAY":"GOOGLE_PAY";return u.jsxs("div",{className:"space-y-4",children:[u.jsxs("div",{className:"grid grid-cols-3 gap-2",children:[u.jsxs("button",{type:"button",onClick:()=>t("CARD"),className:`flex items-center justify-center gap-1.5 py-2.5 rounded-xl border text-sm ${e==="CARD"?"border-bloom bg-petal text-bloom2 font-semibold":"border-blush-100 text-[#6b5258]"}`,children:[u.jsx(sE,{size:16})," Card"]}),a.map(g=>{const x=m(g),w=a5[g];return u.jsx("button",{type:"button",onClick:()=>t(x),className:`flex items-center justify-center py-2 rounded-xl border ${e===x?"border-bloom bg-petal":"border-blush-100"}`,"aria-label":g,children:w?u.jsx(w,{}):u.jsx("span",{className:"text-sm",children:g})},g)})]}),u.jsxs("div",{className:"flex items-center gap-2",children:[u.jsx("span",{className:"text-[11px] text-gray-400",children:"Accepted:"}),u.jsx(i5,{items:r})]}),e==="CARD"?u.jsxs("div",{className:"rounded-2xl border border-blush-100 p-4 space-y-3 bg-white",children:[u.jsxs("div",{children:[u.jsx("label",{className:"block text-xs text-gray-500 mb-1",children:"Card number"}),u.jsxs("div",{className:"flex items-center gap-2 px-3 py-2.5 rounded-xl border border-blush-100 focus-within:border-bloom",children:[u.jsx(sE,{size:16,className:"text-blush-400 shrink-0"}),u.jsx("input",{inputMode:"numeric",autoComplete:"cc-number",value:p?tY(i):y?eY(i):"",onFocus:()=>v(!0),onBlur:()=>v(!1),onChange:g=>{const x=g.target.value;s(x),b(x)},placeholder:"1234 1234 1234 1234",className:"flex-1 bg-transparent text-sm outline-none tracking-wider"})]})]}),u.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[u.jsxs("div",{children:[u.jsx("label",{className:"block text-xs text-gray-500 mb-1",children:"Expiry (MM/YY)"}),u.jsx("input",{inputMode:"numeric",autoComplete:"cc-exp",value:o,onChange:g=>{let x=g.target.value.replace(/\D/g,"").slice(0,4);x.length>=3&&(x=x.slice(0,2)+"/"+x.slice(2)),l(x),b(i,x)},placeholder:"MM/YY",className:"w-full px-3 py-2.5 rounded-xl border border-blush-100 text-sm outline-none focus:border-bloom"})]}),u.jsxs("div",{children:[u.jsx("label",{className:"block text-xs text-gray-500 mb-1",children:"CVC"}),u.jsx("input",{inputMode:"numeric",autoComplete:"cc-csc",value:c,onChange:g=>{const x=g.target.value.replace(/\D/g,"").slice(0,4);f(x),b(i,o,x)},placeholder:"•••",type:"password",className:"w-full px-3 py-2.5 rounded-xl border border-blush-100 text-sm outline-none focus:border-bloom"})]})]}),u.jsxs("div",{children:[u.jsx("label",{className:"block text-xs text-gray-500 mb-1",children:"Name on card"}),u.jsx("input",{autoComplete:"cc-name",value:d,onChange:g=>h(g.target.value),placeholder:"Full name",className:"w-full px-3 py-2.5 rounded-xl border border-blush-100 text-sm outline-none focus:border-bloom"})]}),u.jsxs("p",{className:"flex items-center gap-1 text-[11px] text-gray-400",children:[u.jsx(oE,{size:11})," Card number is masked and never stored on this device. Processed via GUARDiA PaymentGateway."]})]}):u.jsxs("div",{className:"rounded-2xl border border-blush-100 p-4 bg-white",children:[u.jsx("button",{type:"button",className:`w-full py-3 rounded-xl font-semibold flex items-center justify-center gap-2 ${e==="APPLE_PAY"?"bg-black text-white":"bg-white border border-edge text-[#3c4043]"}`,children:e==="APPLE_PAY"?" Pay":"G Pay"}),u.jsxs("p",{className:"flex items-center gap-1 text-[11px] text-gray-400 mt-2",children:[u.jsx(oE,{size:11})," ",e==="APPLE_PAY"?"Apple Pay":"Google Pay"," via secure wallet. If unconfigured, processed as mock at checkout."]})]})]})}const rY=[{to:"/home",label:"Home"},{to:"/category",label:"Shop All"},{to:"/category?occasion=ROMANCE",label:"Love & Romance"},{to:"/category?occasion=BIRTHDAY",label:"Birthday"},{to:"/category?occasion=SYMPATHY",label:"Sympathy"},{to:"/daily-standard",label:"Today's Bouquet",accent:!0},{to:"/subscription",label:"Subscriptions"},{to:"/events",label:"Offers"}];function aY(){const{zip:e,storeName:t,custToken:n,cartCount:r,setCartCount:a}=vn(),i=Ft(),s=Sr(),o=Qa(),[l,c]=A.useState("");A.useEffect(()=>{if(!n){a(0);return}Lw().then(d=>a((d||[]).reduce((h,p)=>h+(p.quantity||1),0))).catch(()=>{})},[n]);const f=d=>{d.preventDefault(),l.trim()&&i(`/search?q=${encodeURIComponent(l.trim())}`)};return u.jsxs("div",{className:"min-h-screen bg-cream text-[#43343a] flex flex-col",children:[u.jsx("div",{className:"bg-sage-700 text-cream/95 text-[12px] tracking-wide",children:u.jsxs("div",{className:"max-w-6xl mx-auto px-4 h-9 flex items-center justify-center sm:justify-between gap-3",children:[u.jsxs("span",{className:"hidden sm:flex items-center gap-1.5",children:[u.jsx(ut,{size:13})," ",_e.tagline]}),u.jsxs("span",{className:"flex items-center gap-3",children:[u.jsxs("span",{className:"flex items-center gap-1",children:[u.jsx(Ga,{size:12,className:"text-gold",fill:"currentColor"})," ",_e.rating,"★ · ",_e.reviewCount.toLocaleString()," reviews"]}),u.jsxs("a",{href:`tel:${_e.phoneTel}`,className:"hidden sm:flex items-center gap-1 hover:text-white",children:[u.jsx(lE,{size:12})," ",_e.phone]})]})]})}),u.jsxs("header",{className:"sticky top-0 z-30 bg-cream/90 backdrop-blur-md border-b border-blush-100",children:[u.jsxs("div",{className:"max-w-6xl mx-auto px-4 h-[72px] flex items-center gap-4",children:[u.jsxs(ke,{to:"/home",className:"flex items-center gap-2.5 shrink-0",children:[u.jsx(Rt.span,{animate:o?void 0:{rotate:[0,8,-6,0]},transition:{duration:7,repeat:1/0,ease:"easeInOut"},children:u.jsx(ut,{className:"text-blush-500",size:28})}),u.jsxs("span",{className:"leading-none",children:[u.jsx("span",{className:"block font-serif text-[20px] font-bold text-blush-900 tracking-tight",children:"Montvale"}),u.jsx("span",{className:"block font-display text-[12px] tracking-[0.35em] text-sage-600 uppercase -mt-0.5",children:"Florist"})]})]}),u.jsxs("form",{onSubmit:f,className:"flex-1 max-w-md hidden md:flex items-center bg-white border border-blush-100 rounded-full px-4 py-2.5 shadow-soft",children:[u.jsx(Tw,{size:16,className:"text-blush-400"}),u.jsx("input",{value:l,onChange:d=>c(d.target.value),placeholder:"Search bouquets, roses, occasions…",className:"flex-1 bg-transparent ml-2 text-sm outline-none placeholder:text-blush-300"})]}),u.jsxs("div",{className:"flex items-center gap-1.5 sm:gap-3 ml-auto",children:[u.jsxs(ke,{to:"/",className:"hidden sm:flex items-center gap-1 text-sm text-sage-700 hover:text-blush-500 transition-colors",children:[u.jsx(Yp,{size:15})," ",e?`${e}`:"ZIP"]}),u.jsx(ke,{to:"/wishlist",className:"p-1.5 text-blush-700 hover:text-blush-500 transition-colors",children:u.jsx(gf,{size:20})}),u.jsxs(ke,{to:"/cart",className:"relative p-1.5 text-blush-700 hover:text-blush-500 transition-colors",children:[u.jsx(Cw,{size:20}),u.jsx(gU,{children:r>0&&u.jsx(Rt.span,{initial:o?!1:{scale:0},animate:{scale:1},exit:{scale:0},className:"absolute -top-1 -right-1 bg-blush-500 text-white text-[10px] rounded-full min-w-[18px] h-[18px] px-1 flex items-center justify-center",children:r},r)})]}),u.jsx(ke,{to:n?"/mypage":"/account",className:"p-1.5 text-blush-700 hover:text-blush-500 transition-colors",children:u.jsx(S$,{size:20})})]})]}),u.jsx("nav",{className:"border-t border-blush-50 bg-white/60",children:u.jsx("div",{className:"max-w-6xl mx-auto px-4 h-11 flex items-center gap-7 text-[13px] overflow-x-auto thin-scroll",children:rY.map(d=>{const h=s.pathname+s.search===d.to||d.to==="/home"&&s.pathname==="/home";return u.jsxs(ke,{to:d.to,className:`relative whitespace-nowrap py-1 transition-colors ${d.accent?"text-sage-700 font-medium":"text-[#6b5258] hover:text-blush-500"} ${h?"text-blush-600":""}`,children:[d.label,h&&u.jsx(Rt.span,{layoutId:"nav-underline",className:"absolute -bottom-[1px] left-0 right-0 h-[2px] bg-blush-500 rounded-full"})]},d.to)})})})]}),u.jsx("main",{className:"flex-1",children:u.jsx(vD,{})}),u.jsxs("footer",{className:"mt-16 bg-sage-800 text-cream/85",children:[u.jsx("div",{className:"botanical-divider py-6 opacity-50",children:u.jsx(ut,{size:16})}),u.jsxs("div",{className:"max-w-6xl mx-auto px-4 pb-10 grid md:grid-cols-4 gap-8",children:[u.jsxs("div",{className:"md:col-span-1",children:[u.jsx("div",{className:"font-serif text-xl font-bold text-white mb-1",children:"Montvale Florist"}),u.jsxs("p",{className:"font-display text-[13px] tracking-[0.3em] uppercase text-sage-300 mb-3",children:["Since ",_e.founded]}),u.jsx("p",{className:"text-[13px] leading-relaxed text-cream/70",children:_e.tagline}),u.jsx(GK,{size:18,className:"mt-4 text-cream/80",iconClass:"hover:text-white"})]}),u.jsxs("div",{children:[u.jsx("div",{className:"font-semibold text-white mb-3 text-sm",children:"Visit Us"}),u.jsxs("p",{className:"text-[13px] flex items-start gap-1.5 text-cream/75 mb-1.5",children:[u.jsx(Yp,{size:14,className:"mt-0.5 shrink-0"})," ",_e.address]}),u.jsxs("a",{href:`tel:${_e.phoneTel}`,className:"text-[13px] flex items-center gap-1.5 text-cream/75 hover:text-white mb-1.5",children:[u.jsx(lE,{size:14})," ",_e.phone]}),u.jsx("p",{className:"text-[13px] text-cream/60",children:_e.email})]}),u.jsxs("div",{children:[u.jsxs("div",{className:"font-semibold text-white mb-3 text-sm flex items-center gap-1.5",children:[u.jsx(l$,{size:14})," Hours"]}),_e.hours.map(d=>u.jsxs("div",{className:"text-[13px] text-cream/75 mb-1",children:[u.jsx("span",{className:"inline-block w-20",children:d.day})," ",d.open]},d.day))]}),u.jsxs("div",{children:[u.jsx("div",{className:"font-semibold text-white mb-3 text-sm",children:"Customer Care"}),u.jsxs(ke,{to:"/cs",className:"flex items-center gap-1 text-[13px] text-cream/75 hover:text-white mb-1.5",children:[u.jsx(dh,{size:13})," Contact / AI Help"]}),u.jsxs(ke,{to:"/orders",className:"flex items-center gap-1 text-[13px] text-cream/75 hover:text-white mb-1.5",children:[u.jsx(dh,{size:13})," Order Status"]}),u.jsxs(ke,{to:"/subscription",className:"flex items-center gap-1 text-[13px] text-cream/75 hover:text-white mb-1.5",children:[u.jsx(dh,{size:13})," Subscriptions"]}),u.jsxs(ke,{to:"/app",className:"flex items-center gap-1 text-[13px] text-gold hover:text-white mb-3 font-medium",children:[u.jsx(dh,{size:13})," Get the App (QR)"]}),u.jsx("div",{className:"text-[11px] text-cream/50 mb-1.5",children:"We accept"}),u.jsx(i5,{items:_e.payments})]})]}),u.jsx("div",{className:"border-t border-cream/10",children:u.jsxs("div",{className:"max-w-6xl mx-auto px-4 py-4 flex flex-col sm:flex-row items-center justify-between gap-2 text-[11px] text-cream/50",children:[u.jsxs("span",{children:["© 2026 Montvale Florist · ",_e.address]}),u.jsx("span",{className:"flex flex-wrap gap-3",children:_e.policies.map(d=>u.jsx("span",{className:"hover:text-cream/80",children:d},d))})]})})]})]})}function ql({p:e}){var a;const t=Qa(),n=e.salePrice!=null&&e.salePrice>0&&e.salePrice<(e.price||0),r=n?Math.round((1-e.salePrice/e.price)*100):0;return u.jsx(Rt.div,{whileHover:t?void 0:{y:-8},transition:{type:"spring",stiffness:300,damping:24},className:"group h-full",children:u.jsxs(ke,{to:`/product/${e.id}`,className:"block h-full bg-white rounded-3xl overflow-hidden border border-blush-100/70 shadow-soft hover:shadow-bloom transition-shadow duration-500",children:[u.jsxs("div",{className:"relative aspect-[4/5] zoom-frame bg-gradient-to-br from-blush-50 to-ivory flex items-center justify-center",children:[e.thumbnail?u.jsx("img",{src:e.thumbnail,alt:e.name,loading:"lazy",className:"w-full h-full object-cover group-hover:scale-110"}):u.jsx(ut,{className:"text-blush-200",size:56}),n&&u.jsxs("span",{className:"absolute top-3 left-3 bg-blush-500 text-white text-[11px] font-semibold px-2.5 py-1 rounded-full shadow-petal",children:["-",r,"%"]}),e.occasion&&u.jsx("span",{className:"absolute top-3 right-3 bg-white/85 backdrop-blur text-sage-700 text-[10px] uppercase tracking-wide px-2.5 py-1 rounded-full",children:e.occasion}),u.jsx("div",{className:"pointer-events-none absolute inset-0 opacity-0 group-hover:opacity-100 transition-opacity duration-500 bg-gradient-to-t from-blush-900/10 to-transparent"})]}),u.jsxs("div",{className:"p-4",children:[e.brand&&u.jsx("div",{className:"text-[10px] uppercase tracking-[0.12em] text-sage-600 mb-0.5",children:e.brand}),u.jsx("div",{className:"font-serif text-[15px] leading-snug text-blush-900 truncate",children:e.name}),u.jsxs("div",{className:"flex items-center justify-between mt-2",children:[u.jsx("div",{className:"flex items-baseline gap-1.5",children:n?u.jsxs(u.Fragment,{children:[u.jsx("span",{className:"text-blush-600 font-bold",children:Oe(e.salePrice)}),u.jsx("span",{className:"text-gray-400 line-through text-xs",children:Oe(e.price)})]}):u.jsx("span",{className:"font-bold text-blush-900",children:Oe(e.price)})}),e.ratingAvg!=null&&e.reviewCount?u.jsxs("span",{className:"flex items-center gap-0.5 text-xs text-gold",children:[u.jsx(Ga,{size:12,fill:"currentColor"}),(a=e.ratingAvg)==null?void 0:a.toFixed(1)]}):null]})]})]})})}const iY=[jH,ut,Nw];function sY(){var y,b,m,g;const{storeName:e}=vn(),t=Qa(),n=A.useRef(null),{scrollYProgress:r}=uH({target:n,offset:["start start","end start"]}),a=Rg(r,[0,1],["0%",t?"0%":"30%"]),i=Rg(r,[0,1],[1,t?1:1.12]),s=Rg(r,[0,.8],[1,t?1:.2]),{data:o}=se({queryKey:["banners"],queryFn:_K}),{data:l}=se({queryKey:["ai-rec"],queryFn:()=>e5("","",8)}),{data:c}=se({queryKey:["best"],queryFn:()=>Ul({sort:"sales",size:8})}),{data:f}=se({queryKey:["feat"],queryFn:()=>Ul({sort:"rating",size:12})}),d=(c==null?void 0:c.items)||[],h=(f==null?void 0:f.items)||[],p=(o||[])[0],v=(y=h[0])==null?void 0:y.thumbnail;return u.jsxs("div",{children:[u.jsxs("section",{ref:n,className:"relative overflow-hidden min-h-[78vh] flex items-center",children:[u.jsxs(Rt.div,{style:{y:a,scale:i},className:"absolute inset-0 z-0",children:[v?u.jsx("img",{src:v,alt:"",className:"w-full h-full object-cover"}):u.jsx("div",{className:"w-full h-full bg-gradient-to-br from-blush-200 via-blush-100 to-sage-100"}),u.jsx("div",{className:"absolute inset-0 bg-gradient-to-r from-blush-900/70 via-blush-900/40 to-transparent"}),u.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-sage-900/40 to-transparent"})]}),u.jsx(xf,{count:16,className:"z-[1]"}),u.jsx(Rt.div,{style:{opacity:s},className:"relative z-10 max-w-6xl mx-auto px-4 w-full py-20",children:u.jsxs(Rt.div,{initial:t?!1:{opacity:0,y:30},animate:{opacity:1,y:0},transition:{duration:.9,ease:[.22,1,.36,1]},className:"max-w-xl",children:[u.jsxs("div",{className:"inline-flex items-center gap-2 text-cream/90 text-[12px] tracking-[0.25em] uppercase mb-5",children:[u.jsx("span",{className:"h-px w-8 bg-gold"})," ",(p==null?void 0:p.eyebrow)||_e.hero.eyebrow]}),u.jsx("h1",{className:"font-serif text-5xl md:text-6xl font-bold text-white leading-[1.05] mb-5 whitespace-pre-line drop-shadow-sm",children:(p==null?void 0:p.headline)||_e.hero.title}),u.jsxs("p",{className:"text-cream/90 text-lg leading-relaxed mb-8 max-w-md font-light",children:[(p==null?void 0:p.subtext)||_e.hero.subtitle,e?` Same-day from ${e}.`:""]}),u.jsxs("div",{className:"flex flex-wrap gap-3",children:[u.jsx(ke,{to:(p==null?void 0:p.linkUrl)||"/category",children:u.jsxs(La,{className:"inline-flex items-center gap-2 bg-white text-blush-700 font-semibold px-7 py-3.5 rounded-full shadow-bloom hover:bg-cream",children:["Shop the Collection ",u.jsx(gs,{size:17})]})}),u.jsx(ke,{to:"/daily-standard",children:u.jsxs(La,{className:"inline-flex items-center gap-2 border border-white/70 text-white px-7 py-3.5 rounded-full hover:bg-white/10",children:[u.jsx(K0,{size:16})," Today's Bouquet"]})})]}),u.jsxs("div",{className:"flex items-center gap-2 mt-7 text-cream/85 text-sm",children:[u.jsx("span",{className:"flex text-gold",children:[1,2,3,4,5].map(x=>u.jsx(Ga,{size:15,fill:"currentColor"},x))}),u.jsx("span",{className:"font-medium",children:_e.rating}),u.jsxs("span",{className:"text-cream/60",children:["· ",_e.reviewCount.toLocaleString()," happy customers"]})]})]})}),u.jsx(Rt.div,{"aria-hidden":!0,className:"absolute -bottom-6 right-6 z-[2] text-white/20 hidden md:block",animate:t?void 0:{rotate:[0,5,-4,0],y:[0,-8,0]},transition:{duration:9,repeat:1/0,ease:"easeInOut"},children:u.jsx(ut,{size:130,strokeWidth:1})})]}),u.jsx("section",{className:"bg-ivory border-b border-blush-100",children:u.jsx("div",{className:"max-w-6xl mx-auto px-4 py-10 grid md:grid-cols-3 gap-6",children:_e.promise.map((x,w)=>{const S=iY[w];return u.jsxs(Fr,{delay:w*.1,className:"flex items-start gap-3",children:[u.jsx("span",{className:"shrink-0 w-11 h-11 rounded-full bg-blush-50 text-blush-500 flex items-center justify-center",children:u.jsx(S,{size:20})}),u.jsxs("div",{children:[u.jsx("div",{className:"font-serif text-lg text-blush-900",children:x.title}),u.jsx("p",{className:"text-sm text-[#6b5258] leading-relaxed mt-0.5",children:x.desc})]})]},x.title)})})}),u.jsxs("div",{className:"max-w-6xl mx-auto px-4 py-14 space-y-20",children:[u.jsxs("section",{children:[u.jsxs(Fr,{className:"flex items-end justify-between mb-7",children:[u.jsxs("div",{children:[u.jsxs("div",{className:"flex items-center gap-2 text-sage-600 text-[12px] tracking-[0.2em] uppercase mb-2",children:[u.jsx(gr,{size:15})," Curated by GUARDiA AI · On-premise"]}),u.jsx("h2",{className:"font-serif text-3xl text-blush-900",children:"Picked Just for You"})]}),u.jsxs(ke,{to:"/category",className:"hidden sm:flex items-center gap-1 text-sm text-blush-500 hover:text-blush-700",children:["View all ",u.jsx(gs,{size:15})]})]}),u.jsxs(Wp,{className:"grid grid-cols-2 md:grid-cols-4 gap-5",children:[(l||[]).slice(0,8).map(x=>u.jsx(Qp,{children:u.jsx(ql,{p:x})},x.id)),!(l||[]).length&&u.jsx("div",{className:"col-span-4 text-blush-300 text-sm py-12 text-center",children:"Curating fresh picks…"})]})]}),u.jsx("div",{className:"botanical-divider",children:u.jsx(ut,{size:18})}),u.jsx(Fr,{children:u.jsxs("section",{className:"relative overflow-hidden rounded-4xl bg-gradient-to-br from-sage-700 to-sage-800 text-white",children:[u.jsx(xf,{count:8}),u.jsxs("div",{className:"relative z-10 p-8 md:p-12 flex flex-col md:flex-row items-center justify-between gap-6",children:[u.jsxs("div",{className:"max-w-lg",children:[u.jsxs("div",{className:"flex items-center gap-2 text-sage-200 text-[12px] tracking-[0.2em] uppercase mb-3",children:[u.jsx(K0,{size:15})," Farmgirl-style daily"]}),u.jsx("h3",{className:"font-serif text-3xl md:text-4xl font-bold mb-3",children:"Today's Designer Bouquet"}),u.jsx("p",{className:"text-cream/85 leading-relaxed",children:"Made fresh each morning with whatever's most beautiful in the cooler — hand-designed by our florists and curated by GUARDiA AI. Limited daily stock."})]}),u.jsx(ke,{to:"/daily-standard",children:u.jsxs(La,{className:"inline-flex items-center gap-2 bg-white text-sage-800 font-semibold px-7 py-3.5 rounded-full shadow-bloom",children:["See today's bouquet ",u.jsx(gs,{size:16})]})})]})]})}),u.jsxs("section",{children:[u.jsxs(Fr,{className:"flex items-end justify-between mb-7",children:[u.jsxs("div",{children:[u.jsxs("div",{className:"flex items-center gap-2 text-sage-600 text-[12px] tracking-[0.2em] uppercase mb-2",children:[u.jsx(Ga,{size:14})," Most loved"]}),u.jsx("h2",{className:"font-serif text-3xl text-blush-900",children:"Bestsellers"})]}),u.jsxs(ke,{to:"/category?sort=sales",className:"hidden sm:flex items-center gap-1 text-sm text-blush-500 hover:text-blush-700",children:["View all ",u.jsx(gs,{size:15})]})]}),u.jsx(Wp,{className:"grid grid-cols-2 md:grid-cols-4 gap-5",children:d.map(x=>u.jsx(Qp,{children:u.jsx(ql,{p:x})},x.id))})]}),u.jsx(Fr,{children:u.jsx("section",{className:"grid md:grid-cols-3 gap-5",children:[{to:"/category?occasion=ROMANCE",label:"Love & Romance",sub:"Roses that speak from the heart",img:(b=h[1])==null?void 0:b.thumbnail},{to:"/category?occasion=SYMPATHY",label:"Sympathy & Comfort",sub:"Thoughtful tributes, gently delivered",img:(m=h[2])==null?void 0:m.thumbnail},{to:"/subscription",label:"Flower Subscriptions",sub:"Fresh blooms, week after week",img:(g=h[3])==null?void 0:g.thumbnail}].map((x,w)=>u.jsxs(ke,{to:x.to,className:"group relative rounded-3xl overflow-hidden zoom-frame aspect-[5/4] block shadow-soft",children:[x.img?u.jsx("img",{src:x.img,alt:"",loading:"lazy",className:"w-full h-full object-cover group-hover:scale-110"}):u.jsx("div",{className:"w-full h-full bg-gradient-to-br from-blush-100 to-sage-100"}),u.jsx("div",{className:"absolute inset-0 bg-gradient-to-t from-blush-900/75 via-blush-900/20 to-transparent"}),u.jsxs("div",{className:"absolute bottom-0 left-0 p-6 text-white",children:[u.jsx("div",{className:"font-serif text-xl font-semibold mb-0.5",children:x.label}),u.jsx("p",{className:"text-cream/85 text-sm",children:x.sub}),u.jsxs("span",{className:"inline-flex items-center gap-1 text-[13px] text-gold mt-2 group-hover:gap-2 transition-all",children:["Explore ",u.jsx(gs,{size:14})]})]})]},x.to))})}),u.jsx(Fr,{children:u.jsxs("section",{className:"rounded-4xl bg-blush-50 border border-blush-100 p-8 md:p-10 text-center",children:[u.jsx("div",{className:"flex justify-center mb-4",children:u.jsx("span",{className:"w-12 h-12 rounded-full bg-white text-blush-500 flex items-center justify-center shadow-soft",children:u.jsx(Td,{size:22})})}),u.jsxs("h3",{className:"font-serif text-2xl text-blush-900 mb-2",children:["Your Local Florist Since ",_e.founded]}),u.jsx("p",{className:"text-[#6b5258] max-w-xl mx-auto leading-relaxed text-[15px]",children:_e.about}),u.jsxs("div",{className:"flex flex-wrap items-center justify-center gap-2 mt-5 text-[12px] text-sage-700",children:[u.jsx("span",{className:"bg-white rounded-full px-3 py-1.5 shadow-soft",children:"Same-Day Delivery"}),u.jsx("span",{className:"bg-white rounded-full px-3 py-1.5 shadow-soft",children:"Hand-Delivered"}),u.jsx("span",{className:"bg-white rounded-full px-3 py-1.5 shadow-soft",children:"100% Satisfaction"}),u.jsx("span",{className:"bg-white rounded-full px-3 py-1.5 shadow-soft",children:"No-Contact Available"})]})]})})]})]})}const TE=[["","All"],["BIRTHDAY","Birthday"],["ANNIVERSARY","Anniversary"],["SYMPATHY","Sympathy"],["CONGRATS","Congrats"],["ROMANCE","Romance"]],oY=[["","Recommended"],["price_asc","Price ↑"],["price_desc","Price ↓"],["sales","Bestselling"],["rating","Top rated"]];function lY(){var b;const[e,t]=SD(),n=e.get("occasion")||"",[r,a]=A.useState(e.get("sort")||""),[i,s]=A.useState(""),[o,l]=A.useState(""),[c,f]=A.useState(null);se({queryKey:["cats"],queryFn:MG});const{data:d}=se({queryKey:["products",n,r,i],queryFn:()=>Ul({occasion:n,sort:r,maxPrice:i?Number(i):void 0,size:24})}),h=c?c.items:(d==null?void 0:d.items)||[],p=m=>{const g=new URLSearchParams(e);m?g.set("occasion",m):g.delete("occasion"),t(g),f(null)},v=async m=>{if(m.preventDefault(),!o.trim()){f(null);return}const g=await t5(o.trim()).catch(()=>null);f(g)},y=((b=TE.find(m=>m[0]===n))==null?void 0:b[1])||"All";return u.jsxs("div",{children:[u.jsx("section",{className:"bg-gradient-to-br from-blush-50 to-ivory border-b border-blush-100",children:u.jsxs("div",{className:"max-w-6xl mx-auto px-4 py-10",children:[u.jsx("div",{className:"text-[12px] tracking-[0.2em] uppercase text-sage-600 mb-2",children:"Shop the collection"}),u.jsx("h1",{className:"font-serif text-4xl text-blush-900",children:y==="All"?"All Flowers":y})]})}),u.jsxs("div",{className:"max-w-6xl mx-auto px-4 py-8",children:[u.jsxs("form",{onSubmit:v,className:"flex items-center gap-2 bg-white border border-blush-100 rounded-full px-5 py-3 mb-6 max-w-xl shadow-soft",children:[u.jsx(gr,{size:16,className:"text-blush-500"}),u.jsx("input",{value:o,onChange:m=>l(m.target.value),placeholder:'Try "anniversary roses under $80"',className:"flex-1 text-sm outline-none bg-transparent placeholder:text-blush-300"}),u.jsx("button",{className:"text-blush-500 text-sm font-semibold",children:"AI Search"})]}),c&&u.jsxs("div",{className:"text-xs text-sage-700 mb-4",children:["AI understood: ",u.jsx("span",{className:"font-medium",children:JSON.stringify(c.parsed)})," · ",c.source]}),u.jsxs("div",{className:"flex flex-wrap items-center gap-2 mb-7",children:[TE.map(([m,g])=>u.jsx("button",{onClick:()=>p(m),className:`px-4 py-1.5 rounded-full text-sm border transition-colors ${n===m?"bg-blush-500 text-white border-blush-500":"bg-white text-[#6b5258] border-blush-100 hover:border-blush-300"}`,children:g},m)),u.jsxs("div",{className:"ml-auto flex items-center gap-2",children:[u.jsx(CH,{size:15,className:"text-blush-300"}),u.jsx("input",{value:i,onChange:m=>{s(m.target.value.replace(/\D/g,"")),f(null)},placeholder:"Max $",className:"w-24 px-3 py-1.5 rounded-full border border-blush-100 text-sm outline-none focus:border-blush-300"}),u.jsx("select",{value:r,onChange:m=>{a(m.target.value),f(null)},className:"px-3 py-1.5 rounded-full border border-blush-100 text-sm outline-none bg-white",children:oY.map(([m,g])=>u.jsx("option",{value:m,children:g},m))})]})]}),u.jsx(Wp,{className:"grid grid-cols-2 md:grid-cols-4 gap-5",children:h.map(m=>u.jsx(Qp,{children:u.jsx(ql,{p:m})},m.id))}),!h.length&&u.jsxs(Fr,{className:"text-center text-blush-300 py-20",children:[u.jsx(ut,{size:40,className:"mx-auto mb-3 text-blush-200"}),"No flowers match those filters."]})]})]})}function cY(){const[e]=SD(),t=e.get("q")||"",{data:n,isLoading:r}=se({queryKey:["nl-search",t],queryFn:()=>t5(t),enabled:!!t}),a=(n==null?void 0:n.items)||[];return u.jsxs("div",{className:"max-w-6xl mx-auto px-4 py-8",children:[u.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[u.jsx(gr,{className:"text-bloom",size:20}),u.jsxs("h1",{className:"font-serif text-2xl font-bold",children:['"',t,'" 검색 결과']})]}),(n==null?void 0:n.parsed)&&u.jsxs("div",{className:"text-xs text-bloom2 mb-5",children:["AI 해석: ",u.jsx("span",{className:"font-medium",children:JSON.stringify(n.parsed)})," · ",n.source]}),r&&u.jsx("div",{className:"text-gray-400 py-10 text-center",children:"AI가 검색 중…"}),u.jsx("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-4",children:a.map(i=>u.jsx(ql,{p:i},i.id))}),!r&&!a.length&&u.jsx("div",{className:"text-center text-gray-400 py-16",children:"검색 결과가 없습니다."})]})}function uY(){var re,ee,be;const{id:e}=hD(),t=Number(e),n=Ft(),r=Qa(),{custToken:a,setCartCount:i}=vn(),[s,o]=A.useState(""),[l,c]=A.useState(null),[f,d]=A.useState(null),[h,p]=A.useState(""),[v,y]=A.useState(1),[b,m]=A.useState(""),[g,x]=A.useState(!1),[w,S]=A.useState(null),{data:j}=se({queryKey:["product",t],queryFn:()=>CG(t)}),{data:O}=se({queryKey:["reviews",t],queryFn:()=>QG(t)}),{data:E}=se({queryKey:["rstats",t],queryFn:()=>ZG(t)}),{data:T}=se({queryKey:["aisum",t],queryFn:()=>uK(t)});if(!j)return u.jsx("div",{className:"max-w-6xl mx-auto px-4 py-24 text-center text-blush-300",children:"Loading…"});const _=j.sizes||[],M=_.find(Z=>Z.sizeCode===s)||_[0],C=j.options||[],z=C.filter(Z=>Z.optionType==="VASE"),L=C.filter(Z=>Z.optionType==="WRAP"),k=Z=>C.find(it=>it.id===Z),R=M?M.price:j.salePrice&&j.salePrice>0?j.salePrice:j.price,$=(((re=k(l))==null?void 0:re.extraPrice)||0)+(((ee=k(f))==null?void 0:ee.extraPrice)||0),B=(R+$)*v,V=w||j.thumbnail,H=async()=>{if(!a){n("/account");return}try{await zG({productId:j.id,optionId:l||f||null,sizeCode:(M==null?void 0:M.sizeCode)||"",cardMessage:h,quantity:v}),i(Z=>Z+v),m("Added to your cart.")}catch{m("Could not add to cart.")}},Q=async()=>{await H(),n("/cart")},Y=async()=>{if(!a){n("/account");return}x(!0),setTimeout(()=>x(!1),700),await aK(j.id).catch(()=>{}),m("Saved to your wishlist.")};return u.jsxs("div",{className:"max-w-6xl mx-auto px-4 py-10",children:[u.jsxs("div",{className:"grid md:grid-cols-2 gap-10",children:[u.jsxs(Fr,{children:[u.jsx("div",{className:"relative aspect-[4/5] rounded-4xl overflow-hidden bg-gradient-to-br from-blush-50 to-ivory flex items-center justify-center shadow-soft",children:V?u.jsx(Rt.img,{src:V,alt:j.name,initial:r?!1:{opacity:0,scale:1.04},animate:{opacity:1,scale:1},transition:{duration:.6},className:"w-full h-full object-cover"},V):u.jsx(ut,{className:"text-blush-200",size:96})}),!!(j.images||[]).length&&u.jsxs("div",{className:"flex gap-2 mt-3",children:[u.jsx("button",{onClick:()=>S(null),className:`w-16 h-16 rounded-2xl overflow-hidden border-2 ${w?"border-blush-100":"border-blush-400"}`,children:j.thumbnail?u.jsx("img",{src:j.thumbnail,className:"w-full h-full object-cover"}):u.jsx(ut,{className:"text-blush-200 m-auto",size:20})}),j.images.map((Z,it)=>u.jsx("button",{onClick:()=>S(Z),className:`w-16 h-16 rounded-2xl overflow-hidden border-2 ${w===Z?"border-blush-400":"border-blush-100"}`,children:u.jsx("img",{src:Z,className:"w-full h-full object-cover"})},it))]})]}),u.jsxs(Fr,{delay:.1,children:[j.brand&&u.jsx("div",{className:"text-[11px] uppercase tracking-[0.2em] text-sage-600 mb-1",children:j.brand}),u.jsx("h1",{className:"font-serif text-3xl font-bold text-blush-900 mb-2 leading-tight",children:j.name}),u.jsxs("div",{className:"flex items-center gap-2 text-sm text-gold mb-4",children:[u.jsx(Ga,{size:15,fill:"currentColor"})," ",((be=j.ratingAvg)==null?void 0:be.toFixed(1))||"–",u.jsxs("span",{className:"text-[#a08a90]",children:["(",j.reviewCount||0," reviews)"]}),j.occasion&&u.jsx("span",{className:"text-xs bg-blush-50 text-blush-700 px-2.5 py-0.5 rounded-full ml-1",children:j.occasion})]}),u.jsx("p",{className:"text-[#6b5258] text-[15px] mb-6 leading-relaxed",children:j.description}),!!_.length&&u.jsxs("div",{className:"mb-6",children:[u.jsx("div",{className:"text-sm font-medium text-blush-900 mb-2",children:"Choose your size"}),u.jsx("div",{className:"grid grid-cols-3 gap-2.5",children:_.map(Z=>u.jsxs(La,{onClick:()=>o(Z.sizeCode),className:`rounded-2xl border p-3 text-center transition-colors ${(M==null?void 0:M.sizeCode)===Z.sizeCode?"border-blush-400 bg-blush-50":"border-blush-100 hover:border-blush-300"}`,children:[u.jsx("div",{className:"font-semibold text-sm text-blush-900",children:Z.label}),u.jsxs("div",{className:"text-xs text-[#8a7077]",children:[Z.stemCount," stems"]}),u.jsx("div",{className:"text-blush-600 font-bold text-sm mt-1",children:Oe(Z.price)})]},Z.sizeCode))})]}),!!z.length&&u.jsxs("div",{className:"mb-4",children:[u.jsx("div",{className:"text-sm font-medium text-blush-900 mb-2",children:"Add a vase"}),u.jsxs("div",{className:"flex flex-wrap gap-2",children:[u.jsx(ph,{active:l===null,onClick:()=>c(null),children:"No vase"}),z.map(Z=>u.jsxs(ph,{active:l===Z.id,onClick:()=>c(Z.id),children:[Z.optionValue," +",Oe(Z.extraPrice)]},Z.id))]})]}),!!L.length&&u.jsxs("div",{className:"mb-4",children:[u.jsx("div",{className:"text-sm font-medium text-blush-900 mb-2",children:"Wrapping"}),u.jsxs("div",{className:"flex flex-wrap gap-2",children:[u.jsx(ph,{active:f===null,onClick:()=>d(null),children:"Standard"}),L.map(Z=>u.jsxs(ph,{active:f===Z.id,onClick:()=>d(Z.id),children:[Z.optionValue," +",Oe(Z.extraPrice)]},Z.id))]})]}),u.jsxs("div",{className:"mb-5",children:[u.jsxs("div",{className:"flex items-center justify-between mb-2",children:[u.jsx("span",{className:"text-sm font-medium text-blush-900",children:"Card message"}),u.jsxs(ke,{to:"/cs",className:"text-xs text-blush-500 flex items-center gap-1",children:[u.jsx(gr,{size:12})," AI message helper"]})]}),u.jsx("textarea",{value:h,onChange:Z=>p(Z.target.value),rows:2,maxLength:200,placeholder:"Write a heartfelt note for the recipient…",className:"w-full px-3.5 py-2.5 rounded-2xl border border-blush-100 text-sm outline-none focus:border-blush-400"})]}),u.jsxs("div",{className:"flex items-center gap-3 mb-5",children:[u.jsxs("div",{className:"flex items-center border border-blush-100 rounded-full",children:[u.jsx("button",{onClick:()=>y(Z=>Math.max(1,Z-1)),className:"px-3.5 py-1.5 text-blush-600",children:"−"}),u.jsx("span",{className:"px-2 text-sm w-8 text-center",children:v}),u.jsx("button",{onClick:()=>y(Z=>Z+1),className:"px-3.5 py-1.5 text-blush-600",children:"+"})]}),u.jsx("div",{className:"font-serif text-2xl font-bold text-blush-900",children:Oe(B)})]}),b&&u.jsx("div",{className:"text-sm text-sage-700 mb-3",children:b}),u.jsxs("div",{className:"flex gap-3",children:[u.jsxs(La,{onClick:H,className:"flex-1 flex items-center justify-center gap-2 border border-blush-400 text-blush-600 font-semibold py-3.5 rounded-full hover:bg-blush-50",children:[u.jsx(Cw,{size:18})," Add to Cart"]}),u.jsx(La,{onClick:Q,className:"flex-1 bg-blush-500 text-white font-semibold py-3.5 rounded-full hover:bg-blush-600 shadow-petal",children:"Buy Now"}),u.jsx("button",{onClick:Y,className:`px-4 border border-blush-100 rounded-full text-blush-500 hover:bg-blush-50 ${g?"animate-heartbeat":""}`,children:u.jsx(gf,{size:18,fill:g?"currentColor":"none"})})]}),u.jsxs("div",{className:"flex items-center gap-5 mt-5 text-xs text-sage-700",children:[u.jsxs("span",{className:"flex items-center gap-1.5",children:[u.jsx(Td,{size:14})," Same-day local delivery"]}),u.jsxs("span",{className:"flex items-center gap-1.5",children:[u.jsx(Nw,{size:14})," 100% satisfaction"]})]}),u.jsx("div",{className:"mt-4 pt-4 border-t border-blush-100/60",children:u.jsx(KK,{url:typeof window<"u"?window.location.href:"",title:j.name,image:j.thumbnail||""})})]})]}),u.jsxs("div",{className:"mt-16",children:[u.jsx("div",{className:"botanical-divider mb-8",children:u.jsx(ut,{size:16})}),u.jsxs("h2",{className:"font-serif text-2xl font-bold text-blush-900 mb-5",children:["Reviews (",(E==null?void 0:E.count)??j.reviewCount??0,")"]}),(T==null?void 0:T.summary)&&u.jsxs(Fr,{className:"bg-gradient-to-br from-blush-50 to-sage-50 border border-blush-100 rounded-3xl p-5 mb-6",children:[u.jsxs("div",{className:"flex items-center gap-2 text-blush-700 font-medium text-sm mb-1.5",children:[u.jsx(gr,{size:15})," AI Review Summary ",u.jsx("span",{className:"text-xs text-[#a08a90]",children:T.source})]}),u.jsx("p",{className:"text-sm text-[#5a474d] leading-relaxed",children:T.summary})]}),u.jsxs("div",{className:"space-y-3",children:[(O||[]).map(Z=>u.jsxs("div",{className:"bg-white rounded-3xl border border-blush-100/70 p-5 shadow-soft",children:[u.jsxs("div",{className:"flex items-center justify-between",children:[u.jsx("span",{className:"font-medium text-sm text-blush-900",children:Z.title||"Review"}),u.jsxs("span",{className:"flex items-center gap-0.5 text-gold text-sm",children:[u.jsx(Ga,{size:13,fill:"currentColor"}),Z.rating]})]}),u.jsx("p",{className:"text-sm text-[#6b5258] mt-1.5 leading-relaxed",children:Z.content})]},Z.id)),!(O||[]).length&&u.jsx("div",{className:"text-blush-300 text-sm py-8 text-center",children:"No reviews yet — be the first."})]}),u.jsx(ke,{to:`/review/${j.id}`,className:"inline-flex items-center gap-1 mt-5 text-sm text-blush-500 font-semibold hover:text-blush-700",children:"Write a review →"})]})]})}function ph({active:e,onClick:t,children:n}){return u.jsx("button",{onClick:t,className:`px-3.5 py-1.5 rounded-full text-sm border transition-colors ${e?"bg-blush-500 text-white border-blush-500":"border-blush-100 text-[#6b5258] hover:border-blush-300"}`,children:n})}function fY(){const e=tn(),t=Ft(),{custToken:n,setCartCount:r}=vn(),{data:a}=se({queryKey:["cart"],queryFn:Lw,enabled:!!n}),i=()=>e.invalidateQueries({queryKey:["cart"]}),s=async(f,d)=>{d<1||(await BG(f,d),i())},o=async f=>{await IG(f),i(),r(d=>Math.max(0,d-1))};if(!n)return u.jsxs("div",{className:"max-w-3xl mx-auto px-4 py-20 text-center",children:[u.jsx(Cw,{className:"mx-auto text-bloom/40 mb-3",size:48}),u.jsx("p",{className:"text-gray-500 mb-4",children:"로그인 후 장바구니를 이용하세요."}),u.jsx(ke,{to:"/account",className:"bg-bloom text-white px-6 py-2.5 rounded-full font-semibold",children:"로그인 / 가입"})]});const l=a||[],c=l.reduce((f,d)=>f+(d.price||(d.unitPrice||0)*(d.quantity||1)),0);return u.jsxs("div",{className:"max-w-4xl mx-auto px-4 py-8",children:[u.jsx("h1",{className:"font-serif text-2xl font-bold mb-6",children:"장바구니"}),l.length?u.jsxs("div",{className:"grid md:grid-cols-3 gap-6",children:[u.jsx("div",{className:"md:col-span-2 space-y-3",children:l.map(f=>u.jsxs("div",{className:"bg-white rounded-2xl border border-blush-100/60 p-4 flex gap-4",children:[u.jsx("div",{className:"w-20 h-20 bg-petal rounded-xl flex items-center justify-center overflow-hidden shrink-0",children:f.thumbnail?u.jsx("img",{src:f.thumbnail,className:"w-full h-full object-cover"}):u.jsx(ut,{className:"text-bloom/30",size:32})}),u.jsxs("div",{className:"flex-1",children:[u.jsx("div",{className:"font-medium text-sm",children:f.productName||`상품 #${f.productId}`}),u.jsxs("div",{className:"text-xs text-gray-500",children:[f.sizeCode,f.cardMessage?` · 카드: ${f.cardMessage.slice(0,20)}`:""]}),u.jsxs("div",{className:"flex items-center gap-3 mt-2",children:[u.jsxs("div",{className:"flex items-center border border-blush-100 rounded-full text-sm",children:[u.jsx("button",{onClick:()=>s(f.id,(f.quantity||1)-1),className:"px-2.5 py-1 text-bloom2",children:"−"}),u.jsx("span",{className:"px-1 w-6 text-center",children:f.quantity||1}),u.jsx("button",{onClick:()=>s(f.id,(f.quantity||1)+1),className:"px-2.5 py-1 text-bloom2",children:"+"})]}),u.jsx("button",{onClick:()=>o(f.id),className:"text-blush-400 hover:text-blush-600",children:u.jsx(MH,{size:16})})]})]}),u.jsx("div",{className:"font-bold text-bloom2 text-sm",children:Oe(f.price||(f.unitPrice||0)*(f.quantity||1))})]},f.id))}),u.jsxs("div",{className:"bg-white rounded-2xl border border-blush-100/60 p-5 h-fit",children:[u.jsxs("div",{className:"flex justify-between text-sm mb-2",children:[u.jsx("span",{className:"text-gray-500",children:"소계"}),u.jsx("span",{className:"font-medium",children:Oe(c)})]}),u.jsxs("div",{className:"flex justify-between text-sm mb-3",children:[u.jsx("span",{className:"text-gray-500",children:"배송/세금"}),u.jsx("span",{className:"text-gray-400",children:"결제 단계에서 계산"})]}),u.jsxs("div",{className:"border-t border-blush-100/60 pt-3 flex justify-between font-bold",children:[u.jsx("span",{children:"합계"}),u.jsx("span",{className:"text-bloom2",children:Oe(c)})]}),u.jsx("button",{onClick:()=>t("/checkout"),className:"w-full mt-4 bg-bloom text-white font-semibold py-3 rounded-full hover:bg-bloom2",children:"주문하기"})]})]}):u.jsxs("div",{className:"text-center text-gray-400 py-16",children:["장바구니가 비어 있습니다. ",u.jsx(ke,{to:"/category",className:"text-bloom",children:"쇼핑하기 →"})]})]})}function dY(e){const t=[],n=new Date;for(let r=0;r<e;r++){const a=new Date(n);a.setDate(n.getDate()+r),t.push(a.toISOString().slice(0,10))}return t}function hY(){var jo;const e=Ft(),{custToken:t,storeId:n,zip:r,setCartCount:a}=vn(),[i,s]=A.useState("DELIVERY"),[o,l]=A.useState(n||0),[c,f]=A.useState(""),[d,h]=A.useState(null),[p,v]=A.useState(""),[y,b]=A.useState(""),[m,g]=A.useState(""),[x,w]=A.useState(r||""),[S,j]=A.useState(""),[O,E]=A.useState(""),[T,_]=A.useState(0),[M,C]=A.useState("CARD"),[z,L]=A.useState({last4:"",expiry:"",complete:!1}),[k,R]=A.useState(null),[$,B]=A.useState(null),[V,H]=A.useState(!1),[Q,Y]=A.useState(null),[re,ee]=A.useState(""),{data:be}=se({queryKey:["cart"],queryFn:Lw,enabled:!!t}),{data:Z}=se({queryKey:["stores"],queryFn:()=>mo(!0)}),{data:it}=se({queryKey:["loyalty-me"],queryFn:zw,enabled:!!t}),{data:qe}=se({queryKey:["holidays"],queryFn:X$}),{data:G}=se({queryKey:["avail",o,c],queryFn:()=>kG(o,c),enabled:!!o&&!!c});A.useEffect(()=>{!o&&(Z!=null&&Z.length)&&l(Z[0].id)},[Z]);const oe=be||[],K=oe.reduce((le,Lt)=>le+(Lt.price||(Lt.unitPrice||0)*(Lt.quantity||1)),0),q=G!=null&&G.surgeMultiplier&&G.surgeMultiplier>1?K*(G.surgeMultiplier-1):0,Ce=((jo=it==null?void 0:it.benefit)==null?void 0:jo.discountRate)||0,me=K*(Ce/100),Ye=($==null?void 0:$.taxAmount)||0,st=(it==null?void 0:it.pointBalance)||0,ft=Math.min(st,Math.floor(K)),Pn=Math.max(0,K+q+Ye-me-T),ni=A.useMemo(()=>new Set((qe||[]).filter(le=>le.blocked).map(le=>le.holidayDate)),[qe]),wo=async()=>{if(!m||!x)return;const le=await lK(m,x).catch(()=>null);R(le)},fa=async()=>{var Ar;const le=((Ar=Z==null?void 0:Z.find(Ud=>Ud.id===o))==null?void 0:Ar.state)||"",Lt=await oK(K,x||"",le).catch(()=>null);B(Lt)};A.useEffect(()=>{K>0&&o&&fa()},[K,o,x]);const da=async()=>{var le,Lt;if(ee(""),!t){e("/account");return}if(!oe.length){ee("장바구니가 비어 있습니다.");return}if(!c||!d){ee("배송/픽업 날짜와 시간대를 선택하세요.");return}if(i==="DELIVERY"&&(!m||!p)){ee("받는 분과 주소를 입력하세요.");return}if(M==="CARD"&&!z.complete){ee("카드 정보를 입력하세요.");return}H(!0);try{const Ar=await qG({storeId:o,fulfillmentType:i,receiverName:p,receiverPhone:y,address:i==="DELIVERY"?m:"",deliveryZip:x,scheduledDate:c,slotId:d.id,slotLabel:d.label,cardMessage:S,memo:O,couponId:null,discountAmount:Math.round((me+T)*100)/100,taxAmount:Ye,surgeAmount:Math.round(q*100)/100});await HG({orderId:Ar.id,amount:Pn,method:M,usePoints:T,cardLast4:M==="CARD"?z.last4:""}).catch(()=>{}),a(0),Y(Ar)}catch(Ar){ee(((Lt=(le=Ar==null?void 0:Ar.response)==null?void 0:le.data)==null?void 0:Lt.message)||"주문에 실패했습니다. 잠시 후 다시 시도하세요.")}finally{H(!1)}};return t?Q?u.jsxs("div",{className:"max-w-lg mx-auto px-4 py-20 text-center",children:[u.jsx(xH,{className:"mx-auto text-leaf mb-4",size:56}),u.jsx("h1",{className:"font-serif text-2xl font-bold mb-2",children:"주문이 접수되었습니다"}),u.jsxs("p",{className:"text-gray-500 mb-1",children:["주문번호 ",u.jsx("span",{className:"font-semibold text-bloom2",children:Q.orderNo||`#${Q.id}`})]}),u.jsxs("p",{className:"text-sm text-gray-500 mb-6",children:[c," · ",d==null?void 0:d.label," · ",Oe(Pn)]}),u.jsxs("div",{className:"flex gap-3 justify-center",children:[u.jsx("button",{onClick:()=>e("/orders"),className:"bg-bloom text-white px-6 py-2.5 rounded-full font-semibold",children:"주문 내역"}),u.jsx("button",{onClick:()=>e("/home"),className:"border border-blush-100 px-6 py-2.5 rounded-full text-bloom2",children:"계속 쇼핑"})]})]}):u.jsxs("div",{className:"max-w-5xl mx-auto px-4 py-8",children:[u.jsx("h1",{className:"font-serif text-2xl font-bold mb-6",children:"주문 / 결제"}),u.jsxs("div",{className:"grid md:grid-cols-3 gap-6",children:[u.jsxs("div",{className:"md:col-span-2 space-y-5",children:[u.jsxs("section",{className:"bg-white rounded-2xl border border-blush-100/60 p-5",children:[u.jsx("div",{className:"text-sm font-semibold mb-3",children:"수령 방식"}),u.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[u.jsxs("button",{onClick:()=>s("DELIVERY"),className:`flex items-center gap-2 justify-center py-3 rounded-xl border ${i==="DELIVERY"?"border-bloom bg-petal text-bloom2":"border-blush-100"}`,children:[u.jsx(Td,{size:18})," 로컬 배송"]}),u.jsxs("button",{onClick:()=>s("PICKUP"),className:`flex items-center gap-2 justify-center py-3 rounded-xl border ${i==="PICKUP"?"border-bloom bg-petal text-bloom2":"border-blush-100"}`,children:[u.jsx(Ed,{size:18})," 매장 픽업"]})]}),u.jsxs("div",{className:"mt-3",children:[u.jsx("label",{className:"block text-xs text-gray-500 mb-1",children:"매장"}),u.jsx("select",{value:o,onChange:le=>l(Number(le.target.value)),className:"w-full px-3 py-2 rounded-xl border border-blush-100 text-sm bg-white",children:(Z||[]).map(le=>u.jsxs("option",{value:le.id,children:[le.name," (",le.city,", ",le.state,")"]},le.id))})]})]}),u.jsxs("section",{className:"bg-white rounded-2xl border border-blush-100/60 p-5",children:[u.jsxs("div",{className:"flex items-center gap-2 text-sm font-semibold mb-3",children:[u.jsx(bH,{size:16,className:"text-bloom"})," 배송/픽업 날짜"]}),u.jsx("div",{className:"flex gap-2 overflow-x-auto pb-2",children:dY(14).map(le=>{const Lt=ni.has(le),Ar=c===le,Ud=new Date(le);return u.jsxs("button",{disabled:Lt,onClick:()=>{f(le),h(null)},className:`shrink-0 w-16 py-2 rounded-xl border text-center text-xs ${Lt?"opacity-30 cursor-not-allowed border-blush-100":Ar?"border-bloom bg-bloom text-white":"border-blush-100 hover:border-bloom"}`,children:[u.jsx("div",{className:"font-semibold",children:Ud.toLocaleDateString("en-US",{weekday:"short"})}),u.jsx("div",{className:"text-base",children:Ud.getDate()}),Lt&&u.jsx("div",{className:"text-[9px]",children:"휴무"})]},le)})}),c&&G&&u.jsxs("div",{className:"mt-3",children:[G.blocked&&u.jsxs("div",{className:"flex items-center gap-1.5 text-blush-500 text-xs mb-2",children:[u.jsx(DH,{size:13})," 해당일은 배송이 차단되었습니다(피크시즌/휴무)."]}),G.surgeMultiplier>1&&u.jsxs("div",{className:"text-xs text-amber-600 mb-2",children:["⚡ 성수기 서지 프라이싱 ×",G.surgeMultiplier," 적용"]}),G.sameDayAvailable&&u.jsxs("div",{className:"text-xs text-leaf mb-2",children:["당일배송 가능 (마감 ",G.sameDayCutoff,")"]}),u.jsxs("div",{className:"flex items-center gap-2 text-sm font-medium mb-2",children:[u.jsx(l$,{size:14,className:"text-bloom"})," 시간대"]}),u.jsxs("div",{className:"grid grid-cols-3 gap-2",children:[(G.slots||[]).map(le=>{const Lt=le.available===!1||le.capacity!=null&&le.booked>=le.capacity;return u.jsx("button",{disabled:Lt,onClick:()=>h({id:le.id,label:le.slotLabel}),className:`py-2 rounded-lg border text-xs ${Lt?"opacity-30 cursor-not-allowed":(d==null?void 0:d.id)===le.id?"border-bloom bg-petal text-bloom2 font-semibold":"border-blush-100 hover:border-bloom"}`,children:le.slotLabel},le.id)}),!(G.slots||[]).length&&u.jsx("div",{className:"col-span-3 text-gray-400 text-xs py-2",children:"예약 가능한 시간대가 없습니다."})]})]})]}),i==="DELIVERY"&&u.jsxs("section",{className:"bg-white rounded-2xl border border-blush-100/60 p-5 space-y-3",children:[u.jsx("div",{className:"text-sm font-semibold",children:"받는 분 정보"}),u.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[u.jsx("input",{value:p,onChange:le=>v(le.target.value),placeholder:"받는 분 이름",className:"px-3 py-2 rounded-xl border border-blush-100 text-sm outline-none focus:border-bloom"}),u.jsx("input",{value:y,onChange:le=>b(le.target.value),placeholder:"연락처",className:"px-3 py-2 rounded-xl border border-blush-100 text-sm outline-none focus:border-bloom"})]}),u.jsxs("div",{className:"flex gap-2",children:[u.jsx("input",{value:m,onChange:le=>g(le.target.value),placeholder:"배송 주소",className:"flex-1 px-3 py-2 rounded-xl border border-blush-100 text-sm outline-none focus:border-bloom"}),u.jsx("input",{value:x,onChange:le=>w(le.target.value.replace(/\D/g,"").slice(0,5)),placeholder:"ZIP",className:"w-24 px-3 py-2 rounded-xl border border-blush-100 text-sm text-center outline-none focus:border-bloom"}),u.jsxs("button",{onClick:wo,className:"px-3 rounded-xl border border-bloom text-bloom text-sm font-semibold flex items-center gap-1",children:[u.jsx(Yp,{size:14})," 검증"]})]}),k&&u.jsx("div",{className:`text-xs ${k.valid?"text-leaf":"text-blush-500"}`,children:k.valid?`검증됨: ${k.normalized||m} (${k.provider})`:`주소 검증 실패 (${k.provider})`})]}),u.jsxs("section",{className:"bg-white rounded-2xl border border-blush-100/60 p-5 space-y-3",children:[u.jsxs("div",{className:"flex items-center justify-between",children:[u.jsx("div",{className:"text-sm font-semibold",children:"카드 메시지"}),u.jsxs("span",{className:"text-xs text-bloom flex items-center gap-1",children:[u.jsx(gr,{size:12})," AI 작성은 상품 페이지에서"]})]}),u.jsx("textarea",{value:S,onChange:le=>j(le.target.value),rows:2,maxLength:200,placeholder:"받는 분께 전할 메시지",className:"w-full px-3 py-2 rounded-xl border border-blush-100 text-sm outline-none focus:border-bloom"}),u.jsx("input",{value:O,onChange:le=>E(le.target.value),placeholder:"배송 요청사항 (선택)",className:"w-full px-3 py-2 rounded-xl border border-blush-100 text-sm outline-none focus:border-bloom"})]}),u.jsxs("section",{className:"bg-white rounded-2xl border border-blush-100/60 p-5",children:[u.jsx("div",{className:"text-sm font-semibold mb-3",children:"결제수단 (Payment)"}),u.jsx(nY,{method:M,onMethod:C,onCardChange:L,cards:_e.cards,wallets:_e.wallets})]})]}),u.jsxs("aside",{className:"bg-white rounded-2xl border border-blush-100/60 p-5 h-fit sticky top-20",children:[u.jsx("div",{className:"text-sm font-semibold mb-3",children:"주문 요약"}),u.jsxs("div",{className:"space-y-1.5 text-sm",children:[u.jsx(eu,{k:"소계",v:Oe(K)}),q>0&&u.jsx(eu,{k:"서지 프라이싱",v:`+${Oe(q)}`,amber:!0}),u.jsx(eu,{k:"세금",v:Oe(Ye),sub:$?`${$.provider} ${($.rate*100).toFixed(1)}%`:""}),me>0&&u.jsx(eu,{k:`등급 할인(${(it==null?void 0:it.tierName)||""} ${Ce}%)`,v:`-${Oe(me)}`,green:!0}),T>0&&u.jsx(eu,{k:"포인트 사용",v:`-${Oe(T)}`,green:!0})]}),!!t&&u.jsxs("div",{className:"mt-4 bg-petal rounded-xl p-3",children:[u.jsxs("div",{className:"flex items-center justify-between text-xs text-bloom2 mb-1",children:[u.jsxs("span",{children:["포인트 보유 ",st.toLocaleString(),"P"]}),u.jsx("button",{onClick:()=>_(ft),className:"text-bloom font-semibold",children:"전액 사용"})]}),u.jsx("input",{type:"range",min:0,max:ft,value:T,onChange:le=>_(Number(le.target.value)),className:"w-full accent-bloom"}),u.jsxs("div",{className:"text-xs text-gray-500 text-right",children:[T.toLocaleString(),"P 사용"]})]}),u.jsxs("div",{className:"border-t border-blush-100/60 mt-4 pt-3 flex justify-between font-bold text-base",children:[u.jsx("span",{children:"결제 금액"}),u.jsx("span",{className:"text-bloom2",children:Oe(Pn)})]}),re&&u.jsx("div",{className:"text-blush-500 text-xs mt-3",children:re}),u.jsx("button",{onClick:da,disabled:V,className:"w-full mt-4 bg-bloom text-white font-semibold py-3 rounded-full hover:bg-bloom2 disabled:opacity-60",children:V?"결제 중…":`${Oe(Pn)} 결제하기`}),u.jsx("p",{className:"text-[11px] text-gray-400 text-center mt-2",children:"결제는 GUARDiA PaymentGateway(보안 어댑터) 경유 · 카드정보 비저장"})]})]})]}):(e("/account"),null)}function eu({k:e,v:t,sub:n,amber:r,green:a}){return u.jsxs("div",{className:"flex justify-between",children:[u.jsxs("span",{className:"text-gray-500",children:[e,n&&u.jsx("span",{className:"text-[10px] text-gray-400 ml-1",children:n})]}),u.jsx("span",{className:r?"text-amber-600":a?"text-leaf":"font-medium",children:t})]})}const pY={PAID:"bg-emerald-500/15 text-emerald-400 border-emerald-500/30",CONFIRMED:"bg-emerald-500/15 text-emerald-400 border-emerald-500/30",DELIVERED:"bg-emerald-500/15 text-emerald-400 border-emerald-500/30",COMPLETED:"bg-emerald-500/15 text-emerald-400 border-emerald-500/30",APPROVED:"bg-emerald-500/15 text-emerald-400 border-emerald-500/30",PUBLISHED:"bg-emerald-500/15 text-emerald-400 border-emerald-500/30",ACTIVE:"bg-emerald-500/15 text-emerald-400 border-emerald-500/30",RESOLVED:"bg-emerald-500/15 text-emerald-400 border-emerald-500/30",SHIPPED:"bg-sky-500/15 text-sky-400 border-sky-500/30",PREPARING:"bg-sky-500/15 text-sky-400 border-sky-500/30",REQUESTED:"bg-sky-500/15 text-sky-400 border-sky-500/30",IN_PROGRESS:"bg-sky-500/15 text-sky-400 border-sky-500/30",PENDING:"bg-amber-500/15 text-amber-400 border-amber-500/30",PAUSED:"bg-amber-500/15 text-amber-400 border-amber-500/30",OPEN:"bg-amber-500/15 text-amber-400 border-amber-500/30",DRAFT:"bg-slate-500/15 text-slate-400 border-slate-500/30",ENDED:"bg-slate-600/20 text-slate-400 border-slate-600/30",CANCELLED:"bg-slate-600/20 text-slate-400 border-slate-600/30",REJECTED:"bg-rose-500/15 text-rose-400 border-rose-500/30",REFUNDED:"bg-rose-500/15 text-rose-400 border-rose-500/30",FAILED:"bg-rose-500/15 text-rose-400 border-rose-500/30",BASIC:"bg-slate-500/15 text-slate-300 border-slate-500/30",SILVER:"bg-slate-300/20 text-slate-200 border-slate-300/30",GOLD:"bg-amber-400/15 text-amber-300 border-amber-400/30",VIP:"bg-violet-500/15 text-violet-300 border-violet-500/30"},mY={PENDING:"대기",PAID:"결제완료",PREPARING:"준비중",SHIPPED:"배송중",DELIVERED:"배송완료",CONFIRMED:"구매확정",CANCELLED:"취소",REFUNDED:"환불",ACTIVE:"활성",PAUSED:"일시정지",REQUESTED:"요청",APPROVED:"승인",REJECTED:"반려",COMPLETED:"완료",PUBLISHED:"게시",DRAFT:"초안",ENDED:"종료",OPEN:"접수",IN_PROGRESS:"처리중",RESOLVED:"해결"};function Br({status:e}){if(!e)return null;const t=pY[e]||"bg-slate-500/15 text-slate-400 border-slate-500/30";return u.jsx("span",{className:`inline-block px-2 py-0.5 rounded text-xs font-medium border ${t}`,children:mY[e]||e})}const NE=[["WEEKLY","주간"],["BIWEEKLY","격주"],["MONTHLY","월간"]];function yY(){const e=tn(),t=Ft(),{custToken:n,storeId:r}=vn(),[a,i]=A.useState("WEEKLY"),[s,o]=A.useState(0),[l,c]=A.useState(!1),{data:f}=se({queryKey:["subs"],queryFn:FG,enabled:!!n}),{data:d}=se({queryKey:["stores"],queryFn:()=>mo(!0)}),{data:h}=se({queryKey:["sub-prods"],queryFn:()=>Ul({size:12,sort:"sales"})}),p=(h==null?void 0:h.items)||[],v=async()=>{var x;if(!n){t("/account");return}const m=r||((x=d==null?void 0:d[0])==null?void 0:x.id),g=p.find(w=>w.id===s)||p[0];g&&(await GG({storeId:m,productId:g.id,sizeCode:"ORIGINAL",frequency:a,receiverName:"",receiverPhone:"",address:"",deliveryZip:"",price:g.price}).catch(()=>{}),c(!1),e.invalidateQueries({queryKey:["subs"]}))},y=async(m,g)=>{await OE(m,g==="ACTIVE"?"PAUSED":"ACTIVE").catch(()=>{}),e.invalidateQueries({queryKey:["subs"]})},b=async m=>{await OE(m,"CANCELLED").catch(()=>{}),e.invalidateQueries({queryKey:["subs"]})};return u.jsxs("div",{className:"max-w-4xl mx-auto px-4 py-8",children:[u.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[u.jsx(My,{className:"text-bloom",size:22}),u.jsx("h1",{className:"font-serif text-2xl font-bold text-blush-900",children:"꽃 구독"})]}),u.jsx("p",{className:"text-sm text-gray-500 mb-6",children:"주간·격주·월간으로 신선한 꽃을 정기 배송받으세요 (BloomsyBox 스타일)."}),!n&&u.jsxs("div",{className:"bg-petal rounded-2xl p-6 text-center text-sm text-gray-600 mb-6",children:["로그인 후 구독을 시작할 수 있습니다. ",u.jsx(ke,{to:"/account",className:"text-bloom font-semibold",children:"로그인 →"})]}),u.jsx("div",{className:"bg-white rounded-2xl border border-blush-100/60 p-5 mb-6",children:l?u.jsxs("div",{className:"space-y-4",children:[u.jsxs("div",{children:[u.jsx("div",{className:"text-sm font-medium mb-2",children:"배송 주기"}),u.jsx("div",{className:"flex gap-2",children:NE.map(([m,g])=>u.jsx("button",{onClick:()=>i(m),className:`px-4 py-2 rounded-full text-sm border ${a===m?"bg-bloom text-white border-bloom":"border-blush-100"}`,children:g},m))})]}),u.jsxs("div",{children:[u.jsx("div",{className:"text-sm font-medium mb-2",children:"상품 선택"}),u.jsxs("select",{value:s,onChange:m=>o(Number(m.target.value)),className:"w-full px-3 py-2 rounded-xl border border-blush-100 text-sm bg-white",children:[u.jsx("option",{value:0,children:"베스트셀러 추천"}),p.map(m=>u.jsxs("option",{value:m.id,children:[m.name," — ",Oe(m.price)]},m.id))]})]}),u.jsxs("div",{className:"flex gap-2",children:[u.jsx("button",{onClick:v,className:"bg-bloom text-white px-6 py-2.5 rounded-full font-semibold",children:"구독 시작"}),u.jsx("button",{onClick:()=>c(!1),className:"border border-blush-100 px-6 py-2.5 rounded-full text-gray-600",children:"취소"})]})]}):u.jsx("button",{onClick:()=>n?c(!0):t("/account"),className:"bg-bloom text-white px-6 py-2.5 rounded-full font-semibold",children:"새 구독 시작"})}),u.jsx("h2",{className:"font-serif text-lg font-bold mb-3",children:"내 구독"}),u.jsxs("div",{className:"space-y-3",children:[(f||[]).map(m=>{var g;return u.jsxs("div",{className:"bg-white rounded-2xl border border-blush-100/60 p-4 flex items-center gap-4",children:[u.jsx("div",{className:"w-14 h-14 bg-petal rounded-xl flex items-center justify-center",children:u.jsx(ut,{className:"text-bloom/40",size:26})}),u.jsxs("div",{className:"flex-1",children:[u.jsxs("div",{className:"font-medium text-sm",children:[m.productName||`상품 #${m.productId}`," · ",((g=NE.find(x=>x[0]===m.frequency))==null?void 0:g[1])||m.frequency]}),u.jsxs("div",{className:"text-xs text-gray-500",children:["다음 배송 ",m.nextDeliveryDate||"-"," · ",Oe(m.price)]})]}),u.jsx(Br,{status:m.status}),m.status!=="CANCELLED"&&u.jsxs(u.Fragment,{children:[u.jsx("button",{onClick:()=>y(m.id,m.status),className:"text-xs text-bloom2 border border-blush-100 rounded-full px-3 py-1.5",children:m.status==="ACTIVE"?"일시정지":"재개"}),u.jsx("button",{onClick:()=>b(m.id),className:"text-xs text-blush-400 border border-blush-100 rounded-full px-3 py-1.5",children:"해지"})]})]},m.id)}),!(f||[]).length&&u.jsx("div",{className:"text-gray-400 text-sm py-8 text-center",children:"아직 구독이 없습니다."})]})]})}function vY(){const{storeName:e}=vn(),{data:t}=se({queryKey:["daily-rec"],queryFn:()=>e5("daily","",8)}),{data:n}=se({queryKey:["daily-fresh"],queryFn:()=>Ul({sort:"rating",size:8})}),r=(t&&t.length?t:n==null?void 0:n.items)||[];return u.jsxs("div",{children:[u.jsxs("section",{className:"relative overflow-hidden bg-gradient-to-br from-sage-700 to-sage-800 text-white",children:[u.jsx(xf,{count:12}),u.jsxs("div",{className:"relative z-10 max-w-6xl mx-auto px-4 py-16",children:[u.jsxs("div",{className:"flex items-center gap-2 text-sage-200 text-[12px] tracking-[0.2em] uppercase mb-3",children:[u.jsx(K0,{size:15})," Fresh today, gone tomorrow"]}),u.jsx("h1",{className:"font-serif text-5xl font-bold mb-4",children:"Today's Designer Bouquet"}),u.jsxs("p",{className:"text-cream/85 max-w-xl leading-relaxed text-lg font-light",children:["Hand-designed each morning with the freshest stems in our cooler, then curated by ",u.jsx("b",{className:"font-medium",children:"GUARDiA AI"}),". Limited daily stock · ",e||"your nearest store"," same-day delivery."]})]})]}),u.jsxs("div",{className:"max-w-6xl mx-auto px-4 py-12",children:[u.jsxs("div",{className:"flex items-center gap-2 mb-6",children:[u.jsx(gr,{className:"text-blush-500",size:18}),u.jsx("h2",{className:"font-serif text-2xl font-bold text-blush-900",children:"Today's Picks"}),u.jsx("span",{className:"text-xs text-sage-600",children:"AI-curated"})]}),u.jsx(Wp,{className:"grid grid-cols-2 md:grid-cols-4 gap-5",children:r.map(a=>u.jsx(Qp,{children:u.jsx(ql,{p:a})},a.id))}),!r.length&&u.jsxs("div",{className:"text-center text-blush-300 py-20",children:[u.jsx(ut,{className:"mx-auto text-blush-200 mb-3",size:40}),"Today's bouquet is being designed. ",u.jsx(ke,{to:"/category",className:"text-blush-500",children:"Browse all flowers →"})]})]})]})}const gY={DISCOUNT:PH,POINT_BONUS:vf,GIFT:p$,TIER_ONLY:vf,SEASON:bf};function bY(){const{custToken:e}=vn(),t=Ft(),[n,r]=A.useState(""),{data:a}=se({queryKey:["loyalty-me"],queryFn:zw,enabled:!!e}),i=(a==null?void 0:a.tier)||"",{data:s}=se({queryKey:["ongoing-events",i],queryFn:()=>NK(i)}),o=async l=>{var c,f;if(!e){t("/account");return}r("");try{const d=await CK(l);r(d!=null&&d.coupon?`참여 완료! 쿠폰 발급: ${d.coupon.name} (${d.coupon.code})`:"이벤트에 참여했습니다.")}catch(d){r(((f=(c=d==null?void 0:d.response)==null?void 0:c.data)==null?void 0:f.message)||"참여 자격이 없거나 이미 참여했습니다.")}};return u.jsxs("div",{className:"max-w-5xl mx-auto px-4 py-8",children:[u.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[u.jsx(bf,{className:"text-bloom",size:22}),u.jsx("h1",{className:"font-serif text-2xl font-bold text-blush-900",children:"이벤트 / 캠페인"})]}),i&&u.jsxs("p",{className:"text-sm text-gray-500 mb-2",children:["현재 등급 ",u.jsx("span",{className:"font-semibold text-bloom2",children:(a==null?void 0:a.tierName)||i})," · 등급 전용 이벤트가 함께 표시됩니다."]}),n&&u.jsx("div",{className:"bg-petal text-bloom2 text-sm rounded-xl px-4 py-2 mb-4",children:n}),u.jsxs("div",{className:"grid md:grid-cols-2 gap-4 mt-4",children:[(s||[]).map(l=>{const c=gY[l.eventType]||bf,f=(l.banners||[])[0];return u.jsxs("div",{className:"bg-white rounded-2xl border border-blush-100/60 overflow-hidden",children:[u.jsx("div",{className:"bg-gradient-to-r from-bloom2 to-bloom text-white p-5",children:f?u.jsxs(u.Fragment,{children:[u.jsx("div",{className:"font-serif text-lg font-bold",children:f.headline||l.title}),u.jsx("p",{className:"text-white/85 text-sm mt-1",children:f.subtext||l.description})]}):u.jsxs(u.Fragment,{children:[u.jsx("div",{className:"font-serif text-lg font-bold",children:l.title}),u.jsx("p",{className:"text-white/85 text-sm mt-1",children:l.description})]})}),u.jsxs("div",{className:"p-4 flex items-center justify-between",children:[u.jsxs("div",{className:"flex items-center gap-2 text-sm text-gray-600",children:[u.jsx(c,{size:16,className:"text-bloom"}),u.jsx("span",{children:l.eventType}),l.bonusPointRate>0&&u.jsxs("span",{className:"text-xs text-leaf",children:["+",l.bonusPointRate,"% 포인트"]}),l.targetTiers&&u.jsxs("span",{className:"text-xs bg-petal text-bloom2 px-2 py-0.5 rounded-full",children:[l.targetTiers," 전용"]})]}),u.jsxs("div",{className:"flex items-center gap-2",children:[u.jsx(Br,{status:l.status}),u.jsx("button",{onClick:()=>o(l.id),className:"bg-bloom text-white text-sm font-semibold px-4 py-2 rounded-full hover:bg-bloom2",children:"참여"})]})]}),u.jsxs("div",{className:"px-4 pb-3 text-[11px] text-gray-400",children:[l.startDate," ~ ",l.endDate]})]},l.id)}),!(s||[]).length&&u.jsx("div",{className:"col-span-2 text-center text-gray-400 py-16",children:"진행 중인 이벤트가 없습니다."})]})]})}function xY(){const e=tn(),t=Ft(),{custToken:n}=vn(),{data:r}=se({queryKey:["wishlist"],queryFn:rK,enabled:!!n});if(!n)return t("/account"),null;const a=r||[],i=async s=>{await iK(s).catch(()=>{}),e.invalidateQueries({queryKey:["wishlist"]})};return u.jsxs("div",{className:"max-w-6xl mx-auto px-4 py-8",children:[u.jsxs("div",{className:"flex items-center gap-2 mb-6",children:[u.jsx(gf,{className:"text-bloom",size:22}),u.jsx("h1",{className:"font-serif text-2xl font-bold text-blush-900",children:"찜 목록"})]}),a.length?u.jsx("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-4",children:a.map(s=>u.jsxs("div",{className:"relative",children:[u.jsx(ql,{p:{...s,id:s.productId||s.id}}),u.jsx("button",{onClick:()=>i(s.productId||s.id),className:"absolute top-2 right-2 bg-white/90 rounded-full p-1.5 text-bloom shadow",children:u.jsx(gf,{size:16,fill:"currentColor"})})]},s.id||s.productId))}):u.jsxs("div",{className:"text-center text-gray-400 py-16",children:["찜한 상품이 없습니다. ",u.jsx(ke,{to:"/category",className:"text-bloom",children:"쇼핑하기 →"})]})]})}const _E={BASIC:"from-slate-400 to-slate-500",SILVER:"from-slate-300 to-slate-400",GOLD:"from-amber-400 to-amber-500",VIP:"from-violet-500 to-fuchsia-500"};function SY(){const{custToken:e,setCustToken:t}=vn(),n=Ft(),{data:r}=se({queryKey:["member"],queryFn:eK,enabled:!!e}),{data:a}=se({queryKey:["loyalty-me"],queryFn:zw,enabled:!!e}),{data:i}=se({queryKey:["point-history"],queryFn:()=>OK(20),enabled:!!e});if(!e)return n("/account"),null;const s=(a==null?void 0:a.tier)||"BASIC",o=a==null?void 0:a.nextTier,l=()=>{t(null),n("/home")};return u.jsxs("div",{className:"max-w-4xl mx-auto px-4 py-8",children:[u.jsxs("div",{className:"flex items-center justify-between mb-6",children:[u.jsxs("div",{className:"flex items-center gap-2",children:[u.jsx(S$,{className:"text-bloom",size:22}),u.jsx("h1",{className:"font-serif text-2xl font-bold text-blush-900",children:"마이페이지"})]}),u.jsxs("button",{onClick:l,className:"flex items-center gap-1.5 text-sm text-gray-500 hover:text-bloom",children:[u.jsx(y$,{size:16})," 로그아웃"]})]}),u.jsxs("div",{className:`rounded-2xl bg-gradient-to-r ${_E[s]||_E.BASIC} text-white p-6 mb-5`,children:[u.jsxs("div",{className:"flex items-center justify-between",children:[u.jsxs("div",{children:[u.jsx("div",{className:"text-xs uppercase tracking-widest text-white/70",children:"멤버십 등급"}),u.jsxs("div",{className:"font-serif text-2xl font-bold flex items-center gap-2",children:[u.jsx(vf,{size:24})," ",(a==null?void 0:a.tierName)||s]}),u.jsxs("div",{className:"text-sm text-white/85 mt-1",children:["최근 12개월 구매 ",Oe(a==null?void 0:a.spend12m)," · ",(a==null?void 0:a.orderCount12m)||0,"건"]})]}),u.jsxs("div",{className:"text-right",children:[u.jsx("div",{className:"text-xs text-white/70",children:"보유 포인트"}),u.jsxs("div",{className:"text-3xl font-bold",children:[((a==null?void 0:a.pointBalance)||0).toLocaleString(),u.jsx("span",{className:"text-base",children:"P"})]})]})]}),o&&!o.isTop&&u.jsxs("div",{className:"mt-4 text-xs text-white/85 bg-white/15 rounded-lg px-3 py-2",children:["다음 등급 ",u.jsx("b",{children:o.nextTierName}),"까지 ",Oe(o.spendNeeded)," 또는 ",o.ordersNeeded,"건 더 구매하세요."]})]}),(a==null?void 0:a.benefit)&&u.jsxs("div",{className:"bg-white rounded-2xl border border-blush-100/60 p-5 mb-5",children:[u.jsxs("div",{className:"text-sm font-semibold mb-3 flex items-center gap-2",children:[u.jsx(p$,{size:16,className:"text-bloom"})," 내 등급 혜택"]}),u.jsxs("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-3 text-sm",children:[u.jsx(mh,{label:"할인율",value:`${a.benefit.discountRate}%`}),u.jsx(mh,{label:"적립률",value:`${a.benefit.pointEarnRate}%`}),u.jsx(mh,{label:"무료배송",value:a.benefit.freeShipThreshold===0?"항상":a.benefit.freeShipThreshold?Oe(a.benefit.freeShipThreshold)+" 이상":"없음"}),u.jsx(mh,{label:"우선 슬롯",value:a.benefit.prioritySlot?"제공":"–"})]})]}),u.jsxs("div",{className:"grid grid-cols-3 gap-3 mb-6",children:[u.jsx(zg,{to:"/orders",icon:v$,label:"주문 내역"}),u.jsx(zg,{to:"/wishlist",icon:gf,label:"찜 목록"}),u.jsx(zg,{to:"/subscription",icon:My,label:"구독 관리"})]}),u.jsxs("div",{className:"bg-white rounded-2xl border border-blush-100/60 p-5",children:[u.jsxs("div",{className:"text-sm font-semibold mb-3 flex items-center gap-2",children:[u.jsx(c$,{size:16,className:"text-bloom"})," 포인트 적립/사용 이력"]}),u.jsxs("div",{className:"divide-y divide-blush-100/60",children:[(i||[]).map(c=>u.jsxs("div",{className:"flex items-center justify-between py-2 text-sm",children:[u.jsxs("div",{children:[u.jsx("span",{className:"text-gray-700",children:c.reason||c.entryType}),c.orderNo&&u.jsx("span",{className:"text-xs text-gray-400 ml-2",children:c.orderNo}),u.jsx("div",{className:"text-[11px] text-gray-400",children:(c.createdAt||"").slice(0,10)})]}),u.jsxs("span",{className:c.points>=0?"text-leaf font-semibold":"text-blush-500 font-semibold",children:[c.points>=0?"+":"",c.points,"P"]})]},c.id)),!(i||[]).length&&u.jsx("div",{className:"text-gray-400 text-sm py-6 text-center",children:"포인트 이력이 없습니다."})]})]}),(r==null?void 0:r.username)&&u.jsxs("div",{className:"text-center text-xs text-gray-400 mt-6",children:[r.displayName||r.username," 님"]})]})}function mh({label:e,value:t}){return u.jsxs("div",{className:"bg-petal rounded-xl p-3 text-center",children:[u.jsx("div",{className:"text-[11px] text-gray-500",children:e}),u.jsx("div",{className:"font-bold text-bloom2",children:t})]})}function zg({to:e,icon:t,label:n}){return u.jsxs(ke,{to:e,className:"bg-white rounded-2xl border border-blush-100/60 p-4 flex flex-col items-center gap-1.5 hover:border-bloom",children:[u.jsx(t,{size:22,className:"text-bloom"}),u.jsx("span",{className:"text-sm",children:n})]})}function wY(){const e=tn(),t=Ft(),{custToken:n}=vn(),{data:r}=se({queryKey:["my-orders"],queryFn:()=>UG(""),enabled:!!n});if(!n)return t("/account"),null;const a=r||[],i=async(s,o)=>{await W$(s,o).catch(()=>{}),e.invalidateQueries({queryKey:["my-orders"]})};return u.jsxs("div",{className:"max-w-4xl mx-auto px-4 py-8",children:[u.jsxs("div",{className:"flex items-center gap-2 mb-6",children:[u.jsx(v$,{className:"text-bloom",size:22}),u.jsx("h1",{className:"font-serif text-2xl font-bold text-blush-900",children:"주문 내역"})]}),a.length?u.jsx("div",{className:"space-y-3",children:a.map(s=>u.jsxs("div",{className:"bg-white rounded-2xl border border-blush-100/60 p-5",children:[u.jsxs("div",{className:"flex items-center justify-between mb-2",children:[u.jsx("div",{className:"font-semibold text-sm",children:s.orderNo||`주문 #${s.id}`}),u.jsx(Br,{status:s.status})]}),u.jsxs("div",{className:"text-xs text-gray-500 mb-3",children:[(s.createdAt||"").slice(0,16).replace("T"," ")," · ",s.fulfillmentType==="PICKUP"?"매장 픽업":"배송"," · ",s.scheduledDate," ",s.slotLabel]}),u.jsx("div",{className:"space-y-1.5",children:(s.items||[]).map(o=>u.jsxs("div",{className:"flex items-center gap-3 text-sm",children:[u.jsx("div",{className:"w-9 h-9 bg-petal rounded-lg flex items-center justify-center",children:u.jsx(ut,{className:"text-bloom/40",size:16})}),u.jsxs("span",{className:"flex-1",children:[o.productName||`상품 #${o.productId}`," ",o.sizeCode&&`· ${o.sizeCode}`," ×",o.quantity]}),u.jsx("span",{className:"text-gray-600",children:Oe(o.price||o.unitPrice)})]},o.id))}),u.jsxs("div",{className:"flex items-center justify-between mt-3 pt-3 border-t border-blush-100/60",children:[u.jsx("span",{className:"font-bold text-bloom2",children:Oe(s.payAmount??s.totalAmount)}),u.jsxs("div",{className:"flex gap-2",children:[s.status==="DELIVERED"&&u.jsx("button",{onClick:()=>i(s.id,"CONFIRMED"),className:"text-xs bg-bloom text-white px-3 py-1.5 rounded-full",children:"구매확정"}),["PENDING","PAID"].includes(s.status)&&u.jsx("button",{onClick:()=>i(s.id,"CANCELLED"),className:"text-xs border border-blush-100 text-blush-400 px-3 py-1.5 rounded-full",children:"주문취소"})]})]})]},s.id))}):u.jsxs("div",{className:"text-center text-gray-400 py-16",children:["주문 내역이 없습니다. ",u.jsx(ke,{to:"/category",className:"text-bloom",children:"쇼핑하기 →"})]})]})}function jY(){const{productId:e}=hD(),t=Number(e),n=Ft(),{custToken:r}=vn(),[a,i]=A.useState(5),[s,o]=A.useState(""),[l,c]=A.useState(""),[f,d]=A.useState(""),[h,p]=A.useState("");if(!r)return n("/account"),null;const v=async y=>{y.preventDefault(),p("");try{await JG({productId:t,rating:a,title:s,content:l,imageUrl:f}),p("리뷰가 등록되었습니다."),setTimeout(()=>n(`/product/${t}`),800)}catch{p("등록에 실패했습니다. (구매 이력이 필요할 수 있습니다)")}};return u.jsxs("div",{className:"max-w-lg mx-auto px-4 py-8",children:[u.jsxs("div",{className:"flex items-center gap-2 mb-6",children:[u.jsx(EH,{className:"text-bloom",size:22}),u.jsx("h1",{className:"font-serif text-2xl font-bold text-blush-900",children:"리뷰 작성"})]}),u.jsxs("form",{onSubmit:v,className:"bg-white rounded-2xl border border-blush-100/60 p-5 space-y-4",children:[u.jsxs("div",{children:[u.jsx("div",{className:"text-sm font-medium mb-2",children:"별점"}),u.jsx("div",{className:"flex gap-1",children:[1,2,3,4,5].map(y=>u.jsx("button",{type:"button",onClick:()=>i(y),className:"text-amber-400",children:u.jsx(Ga,{size:28,fill:y<=a?"currentColor":"none"})},y))})]}),u.jsx("input",{value:s,onChange:y=>o(y.target.value),placeholder:"제목",className:"w-full px-3 py-2.5 rounded-xl border border-blush-100 text-sm outline-none focus:border-bloom"}),u.jsx("textarea",{value:l,onChange:y=>c(y.target.value),rows:5,required:!0,placeholder:"상품은 어떠셨나요? 신선도, 배송, 디자인 등을 적어주세요.",className:"w-full px-3 py-2.5 rounded-xl border border-blush-100 text-sm outline-none focus:border-bloom"}),u.jsx("input",{value:f,onChange:y=>d(y.target.value),placeholder:"사진 URL (선택)",className:"w-full px-3 py-2.5 rounded-xl border border-blush-100 text-sm outline-none focus:border-bloom"}),h&&u.jsx("div",{className:"text-sm text-leaf",children:h}),u.jsxs("div",{className:"flex gap-2",children:[u.jsx("button",{className:"flex-1 bg-bloom text-white font-semibold py-3 rounded-full hover:bg-bloom2",children:"등록"}),u.jsx("button",{type:"button",onClick:()=>n(-1),className:"px-6 border border-blush-100 rounded-full text-gray-600",children:"취소"})]})]})]})}function AY(){const[e,t]=A.useState("login"),[n,r]=A.useState(""),[a,i]=A.useState(""),[s,o]=A.useState(""),[l,c]=A.useState(""),[f,d]=A.useState(!1),{setCustToken:h}=vn(),p=Ft(),v=async y=>{var b,m;y.preventDefault(),c(""),d(!0);try{const x=(m=(b=(e==="login"?await K$(n,a):await TG(n,a,s||n)).data)==null?void 0:b.data)==null?void 0:m.token;if(!x)throw new Error("no token");h(x),p("/home")}catch{c(e==="login"?"Login failed — check your username and password.":"Sign-up failed — that username may already be taken.")}finally{d(!1)}};return u.jsxs("div",{className:"relative min-h-screen bg-gradient-to-br from-blush-100 via-cream to-sage-100 flex items-center justify-center px-4 overflow-hidden",children:[u.jsx(xf,{count:12}),u.jsxs(Rt.form,{onSubmit:v,initial:{opacity:0,y:22},animate:{opacity:1,y:0},transition:{duration:.7,ease:[.22,1,.36,1]},className:"relative z-10 w-full max-w-sm bg-white/90 backdrop-blur rounded-4xl shadow-bloom p-8 border border-blush-100",children:[u.jsxs(ke,{to:"/home",className:"flex flex-col items-center gap-1 mb-6",children:[u.jsx(ut,{className:"text-blush-500",size:32}),u.jsx("span",{className:"font-serif text-xl font-bold text-blush-900",children:"Montvale Florist"})]}),u.jsx("div",{className:"flex gap-2 mb-6 bg-blush-50 rounded-full p-1 text-sm",children:["login","register"].map(y=>u.jsx("button",{type:"button",onClick:()=>{t(y),c("")},className:`flex-1 py-2 rounded-full font-medium transition-colors ${e===y?"bg-blush-500 text-white shadow-petal":"text-blush-700"}`,children:y==="login"?"Sign In":"Create Account"},y))}),u.jsx("label",{className:"block text-xs text-blush-700 mb-1",children:"Username"}),u.jsx("input",{value:n,onChange:y=>r(y.target.value),required:!0,className:"w-full mb-3 px-3 py-2.5 rounded-2xl bg-blush-50 border border-blush-100 text-sm outline-none focus:border-blush-400"}),e==="register"&&u.jsxs(u.Fragment,{children:[u.jsx("label",{className:"block text-xs text-blush-700 mb-1",children:"Name"}),u.jsx("input",{value:s,onChange:y=>o(y.target.value),className:"w-full mb-3 px-3 py-2.5 rounded-2xl bg-blush-50 border border-blush-100 text-sm outline-none focus:border-blush-400"})]}),u.jsx("label",{className:"block text-xs text-blush-700 mb-1",children:"Password"}),u.jsx("input",{type:"password",value:a,onChange:y=>i(y.target.value),required:!0,className:"w-full mb-4 px-3 py-2.5 rounded-2xl bg-blush-50 border border-blush-100 text-sm outline-none focus:border-blush-400"}),l&&u.jsx("p",{className:"text-blush-500 text-xs mb-3",children:l}),u.jsx(La,{type:"submit",disabled:f,className:"w-full py-2.5 rounded-full bg-blush-500 text-white font-semibold hover:bg-blush-600 disabled:opacity-60",children:f?"Please wait…":e==="login"?"Sign In":"Create Account"}),u.jsxs("p",{className:"text-center text-[11px] text-[#a08a90] mt-4",children:["Store & owner staff → ",u.jsx("a",{href:"/admin/login",className:"text-blush-600",children:"Admin Console"})]}),u.jsx("p",{className:"text-center text-[11px] text-sage-600 mt-2",children:_e.tagline})]})]})}const OY=["DELIVERY","PRODUCT","PAYMENT","REFUND","OTHER"];function EY(){const e=tn(),t=Ft(),{custToken:n}=vn(),[r,a]=A.useState("DELIVERY"),[i,s]=A.useState(""),[o,l]=A.useState(""),[c,f]=A.useState(""),[d,h]=A.useState(""),[p,v]=A.useState("생일"),[y,b]=A.useState("따뜻하게"),[m,g]=A.useState(""),[x,w]=A.useState([]),{data:S}=se({queryKey:["cs"],queryFn:tK,enabled:!!n}),j=async E=>{if(E.preventDefault(),h(""),!n){t("/account");return}try{const T=await nK({orderNo:i,category:r,subject:o,content:c});h(T!=null&&T.aiReply?`AI 자동응답: ${T.aiReply}`:"문의가 접수되었습니다. (ITSM SR 연계)"),l(""),f(""),e.invalidateQueries({queryKey:["cs"]})}catch{h("접수에 실패했습니다.")}},O=async()=>{const E=await fK(p,y,m).catch(()=>null);w((E==null?void 0:E.messages)||[])};return u.jsxs("div",{className:"max-w-3xl mx-auto px-4 py-8",children:[u.jsxs("div",{className:"flex items-center gap-2 mb-6",children:[u.jsx(AH,{className:"text-bloom",size:22}),u.jsx("h1",{className:"font-serif text-2xl font-bold text-blush-900",children:"고객 문의 (1:1)"})]}),u.jsxs("div",{className:"bg-petal rounded-2xl p-5 mb-6",children:[u.jsxs("div",{className:"flex items-center gap-2 text-bloom2 font-medium text-sm mb-3",children:[u.jsx(gr,{size:16})," AI 카드 메시지 작성 도우미"]}),u.jsxs("div",{className:"grid grid-cols-3 gap-2 mb-3",children:[u.jsx("input",{value:p,onChange:E=>v(E.target.value),placeholder:"상황(생일 등)",className:"px-3 py-2 rounded-lg border border-blush-100 text-sm bg-white outline-none"}),u.jsx("input",{value:y,onChange:E=>b(E.target.value),placeholder:"톤",className:"px-3 py-2 rounded-lg border border-blush-100 text-sm bg-white outline-none"}),u.jsx("input",{value:m,onChange:E=>g(E.target.value),placeholder:"받는 분",className:"px-3 py-2 rounded-lg border border-blush-100 text-sm bg-white outline-none"})]}),u.jsx("button",{onClick:O,className:"bg-bloom text-white text-sm font-semibold px-4 py-2 rounded-full",children:"메시지 추천받기"}),!!x.length&&u.jsx("ul",{className:"mt-3 space-y-2",children:x.map((E,T)=>u.jsx("li",{className:"bg-white rounded-lg px-3 py-2 text-sm text-gray-700",children:E},T))})]}),u.jsxs("form",{onSubmit:j,className:"bg-white rounded-2xl border border-blush-100/60 p-5 space-y-3 mb-8",children:[u.jsxs("div",{className:"grid grid-cols-2 gap-3",children:[u.jsx("select",{value:r,onChange:E=>a(E.target.value),className:"px-3 py-2 rounded-xl border border-blush-100 text-sm bg-white",children:OY.map(E=>u.jsx("option",{value:E,children:E},E))}),u.jsx("input",{value:i,onChange:E=>s(E.target.value),placeholder:"주문번호 (선택)",className:"px-3 py-2 rounded-xl border border-blush-100 text-sm outline-none focus:border-bloom"})]}),u.jsx("input",{value:o,onChange:E=>l(E.target.value),required:!0,placeholder:"제목",className:"w-full px-3 py-2.5 rounded-xl border border-blush-100 text-sm outline-none focus:border-bloom"}),u.jsx("textarea",{value:c,onChange:E=>f(E.target.value),rows:4,required:!0,placeholder:"문의 내용을 적어주세요. AI가 먼저 답변을 시도합니다.",className:"w-full px-3 py-2.5 rounded-xl border border-blush-100 text-sm outline-none focus:border-bloom"}),d&&u.jsx("div",{className:"text-sm text-leaf bg-leaf/10 rounded-lg px-3 py-2",children:d}),u.jsxs("button",{className:"flex items-center gap-1.5 bg-bloom text-white font-semibold px-6 py-2.5 rounded-full hover:bg-bloom2",children:[u.jsx(_H,{size:16})," 문의 접수"]}),!n&&u.jsxs("p",{className:"text-xs text-gray-400",children:["로그인 후 문의를 접수할 수 있습니다. ",u.jsx(ke,{to:"/account",className:"text-bloom",children:"로그인"})]})]}),u.jsx("h2",{className:"font-serif text-lg font-bold mb-3",children:"내 문의"}),u.jsxs("div",{className:"space-y-2",children:[(S||[]).map(E=>u.jsxs("div",{className:"bg-white rounded-2xl border border-blush-100/60 p-4",children:[u.jsxs("div",{className:"flex items-center justify-between",children:[u.jsx("span",{className:"font-medium text-sm",children:E.subject}),u.jsx(Br,{status:E.status})]}),u.jsx("p",{className:"text-sm text-gray-600 mt-1",children:E.content}),E.aiReply&&u.jsxs("div",{className:"mt-2 text-xs text-bloom2 bg-petal rounded-lg px-3 py-2",children:[u.jsx("b",{children:"AI 응답:"})," ",E.aiReply]}),E.itsmSrId&&u.jsxs("div",{className:"text-[11px] text-gray-400 mt-1",children:["ITSM SR: ",E.itsmSrId]})]},E.id)),!(S||[]).length&&u.jsx("div",{className:"text-gray-400 text-sm py-6 text-center",children:"접수된 문의가 없습니다."})]})]})}const s5="https://itsm.zioinfo.co.kr",Bg=e=>e==null?void 0:e.replace(/https?:\/\/zioinfo\.co\.kr:8443/g,s5);function TY(){const[e,t]=A.useState(null),[n,r]=A.useState(!0),[a,i]=A.useState(""),[s,o]=A.useState(!1),l=()=>{r(!0),i(""),fetch(`${s5}/api/app/public-latest`).then(f=>f.json()).then(f=>t({...f,qr_url:Bg(f.qr_url),landing_url:Bg(f.landing_url),download_url:Bg(f.download_url)})).catch(()=>i("앱 저장소에 연결할 수 없습니다. 잠시 후 다시 시도하세요.")).finally(()=>r(!1))};A.useEffect(()=>{l()},[]);const c=async()=>{if(e!=null&&e.landing_url)try{await navigator.clipboard.writeText(e.landing_url),o(!0),setTimeout(()=>o(!1),2e3)}catch{}};return u.jsxs("div",{className:"max-w-3xl mx-auto px-4 py-10",children:[u.jsxs("div",{className:"text-center mb-8",children:[u.jsxs("div",{className:"flex items-center gap-2 justify-center mb-2",children:[u.jsx(ul,{className:"text-bloom",size:26}),u.jsx("h1",{className:"font-serif text-2xl font-bold text-bloom2",children:"앱으로 주문하기"})]}),u.jsxs("p",{className:"text-sm text-gray-500",children:["QR 코드를 스캔하면 ",u.jsx("span",{className:"text-bloom font-semibold",children:"GUARDiA Mall"})," 고객 앱 설치 페이지로 이동합니다.",u.jsx("br",{}),"당일 배송 알림·간편 재주문·구독 관리를 앱에서 더 편리하게."]})]}),n&&u.jsx("div",{className:"text-center text-gray-400 py-10",children:"불러오는 중…"}),a&&u.jsx("div",{className:"bg-petal border border-blush-100 rounded-2xl p-6 text-center text-blush-500 text-sm",children:a}),!n&&!a&&e&&!e.has_version&&u.jsxs("div",{className:"bg-white border border-blush-100/60 rounded-2xl p-10 text-center text-gray-400",children:[u.jsx(ut,{size:40,className:"mx-auto mb-3 text-bloom/30"}),"아직 등록된 앱 버전이 없습니다.",u.jsx("br",{}),u.jsx("span",{className:"text-xs",children:"앱 업로드·버전 관리는 GUARDiA Manager에서 일원화됩니다."})]}),!n&&!a&&(e==null?void 0:e.has_version)&&u.jsxs("div",{className:"bg-white border border-blush-100/60 rounded-2xl p-6 grid md:grid-cols-[200px_1fr] gap-6 items-start shadow-sm",children:[u.jsx("div",{className:"bg-petal rounded-2xl p-3 flex items-center justify-center",children:e.qr_url?u.jsx("img",{src:e.qr_url,alt:"앱 설치 QR",className:"w-44 h-44"}):u.jsx(ul,{size:64,className:"text-bloom/40"})}),u.jsxs("div",{children:[u.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[u.jsx("span",{className:"text-lg font-bold",children:e.app_name||"GUARDiA Mall"}),u.jsxs("span",{className:"px-2 py-0.5 rounded-md bg-bloom text-white text-xs font-semibold",children:["v",e.version]})]}),u.jsxs("div",{className:"text-xs text-gray-500 mb-4",children:[e.platform," ",e.file_size_mb?`· ${e.file_size_mb}MB`:"",e.download_count!=null&&` · 다운로드 ${e.download_count}회`]}),e.release_notes&&u.jsxs("div",{className:"mb-4",children:[u.jsx("div",{className:"text-[11px] font-semibold text-gray-400 uppercase tracking-wider mb-1",children:"변경점"}),u.jsx("div",{className:"text-sm text-gray-600 whitespace-pre-line bg-petal rounded-lg p-3 max-h-32 overflow-auto",children:e.release_notes})]}),u.jsxs("div",{className:"flex flex-wrap gap-2",children:[e.landing_url&&u.jsxs("a",{href:e.landing_url,target:"_blank",rel:"noreferrer",className:"flex items-center gap-1.5 px-4 py-2 rounded-full bg-bloom text-white text-sm font-semibold hover:bg-bloom2",children:[u.jsx(d$,{size:15})," 설치 페이지"]}),e.download_url&&u.jsxs("a",{href:e.download_url,target:"_blank",rel:"noreferrer",className:"flex items-center gap-1.5 px-4 py-2 rounded-full border border-blush-100 text-bloom2 text-sm hover:bg-petal",children:[u.jsx(f$,{size:15})," APK 다운로드"]}),u.jsxs("button",{onClick:c,className:"flex items-center gap-1.5 px-4 py-2 rounded-full border border-blush-100 text-bloom2 text-sm hover:bg-petal",children:[s?u.jsx(o$,{size:15,className:"text-leaf"}):u.jsx(u$,{size:15}),s?"복사됨":"링크 복사"]}),u.jsx("button",{onClick:l,className:"flex items-center gap-1.5 px-3 py-2 rounded-full border border-blush-100 text-gray-500 text-sm hover:bg-petal",children:u.jsx(Ew,{size:15})})]})]})]})]})}function NY(){const[e,t]=A.useState("admin"),[n,r]=A.useState(""),[a,i]=A.useState(""),s=Ft();A.useEffect(()=>(document.documentElement.classList.add("admin-shell"),()=>document.documentElement.classList.remove("admin-shell")),[]);const o=async l=>{var c,f;l.preventDefault(),i("");try{const h=(f=(c=(await K$(e,n)).data)==null?void 0:c.data)==null?void 0:f.token;if(!h)throw new Error("no token");localStorage.setItem("mall_admin_token",h);const p=await Y$().catch(()=>null);if(p!=null&&p.role&&localStorage.setItem("mall_role",p.role),p!=null&&p.username&&localStorage.setItem("mall_admin_user",p.username),(p==null?void 0:p.role)==="USER"){i("관리자 권한이 없습니다."),localStorage.removeItem("mall_admin_token");return}s("/admin/dashboard")}catch{i("로그인 실패 — 아이디/비밀번호를 확인하세요.")}};return u.jsx("div",{className:"admin-shell min-h-screen flex items-center justify-center bg-ink text-[#e6edf6]",children:u.jsxs("form",{onSubmit:o,className:"w-[360px] bg-panel border border-edge rounded-2xl p-8",children:[u.jsxs("div",{className:"flex items-center gap-2 justify-center mb-6",children:[u.jsx(ut,{className:"text-brand",size:28}),u.jsx("span",{className:"text-xl font-bold",children:"GUARDiA Mall 콘솔"})]}),u.jsx("p",{className:"text-center text-sm text-slate-400 mb-6",children:"매장·대표 관리자 로그인"}),u.jsx("label",{className:"block text-xs text-slate-400 mb-1",children:"아이디"}),u.jsx("input",{value:e,onChange:l=>t(l.target.value),className:"w-full mb-4 px-3 py-2 rounded-lg bg-card border border-edge text-sm focus:border-brand outline-none"}),u.jsx("label",{className:"block text-xs text-slate-400 mb-1",children:"비밀번호"}),u.jsx("input",{type:"password",value:n,onChange:l=>r(l.target.value),className:"w-full mb-4 px-3 py-2 rounded-lg bg-card border border-edge text-sm focus:border-brand outline-none"}),a&&u.jsx("p",{className:"text-rose-400 text-xs mb-3",children:a}),u.jsx("button",{className:"w-full py-2.5 rounded-lg bg-brand text-ink font-semibold hover:bg-brand/90",children:"로그인"}),u.jsxs("p",{className:"text-center text-[11px] text-slate-500 mt-4",children:["고객 쇼핑몰은 ",u.jsx("a",{href:"/",className:"text-brand",children:"여기"})]})]})})}const _Y=[{to:"/admin/dashboard",label:"대시보드",icon:OH,roles:["ADMIN","MANAGER"]},{to:"/admin/stores",label:"매장 관리",icon:Ed,roles:["ADMIN","MANAGER"]},{to:"/admin/products",label:"상품 관리",icon:ut,roles:["ADMIN","MANAGER"]},{to:"/admin/inventory",label:"매장별 재고",icon:i$,roles:["ADMIN","MANAGER"]},{to:"/admin/orders",label:"주문 (라이브)",icon:_w,roles:["ADMIN","MANAGER"]},{to:"/admin/transfers",label:"재고 이양",icon:a$,roles:["ADMIN","MANAGER"]},{to:"/admin/members",label:"회원 (CRM)",icon:w$,roles:["ADMIN","MANAGER"]},{to:"/admin/loyalty",label:"등급·포인트",icon:vf,roles:["ADMIN","MANAGER"]},{to:"/admin/events",label:"이벤트·캠페인",icon:bf,roles:["ADMIN","MANAGER"]},{to:"/admin/subscriptions",label:"구독",icon:My,roles:["ADMIN","MANAGER"]},{to:"/admin/schedule",label:"스케줄·서지",icon:s$,roles:["ADMIN","MANAGER"]},{to:"/admin/analytics",label:"매출 분석 (BI)",icon:Aw,roles:["ADMIN","MANAGER"]}],CY=[{to:"/admin/users",label:"사용자/권한",icon:x$,roles:["ADMIN"]},{to:"/admin/audit",label:"감사 로그",icon:g$,roles:["ADMIN","MANAGER"]},{to:"/admin/settings",label:"게이트웨이 설정",icon:b$,roles:["ADMIN"]},{to:"/admin/app",label:"관리자앱 설치",icon:ul,roles:["ADMIN","MANAGER"]}],CE=({isActive:e})=>`flex items-center gap-3 px-5 py-2.5 text-sm transition-colors ${e?"bg-card text-brand border-r-2 border-brand":"text-slate-300 hover:bg-card/60"}`;function PY(){const e=localStorage.getItem("mall_admin_token"),[t,n]=A.useState(()=>localStorage.getItem("mall_role")||""),[r,a]=A.useState(()=>localStorage.getItem("mall_admin_user")||""),i=Ft();if(A.useEffect(()=>(document.documentElement.classList.add("admin-shell"),()=>document.documentElement.classList.remove("admin-shell")),[]),A.useEffect(()=>{e&&Y$().then(c=>{c!=null&&c.role&&(localStorage.setItem("mall_role",c.role),n(c.role)),c!=null&&c.username&&(localStorage.setItem("mall_admin_user",c.username),a(c.username))}).catch(()=>{})},[e]),!e)return u.jsx(Bp,{to:"/admin/login",replace:!0});if(t&&t==="USER")return u.jsx(Bp,{to:"/admin/login",replace:!0});const s=_Y.filter(c=>!t||c.roles.includes(t)),o=CY.filter(c=>c.roles.includes(t)),l=()=>{localStorage.removeItem("mall_admin_token"),localStorage.removeItem("mall_role"),localStorage.removeItem("mall_admin_user"),i("/admin/login")};return u.jsxs("div",{className:"admin-shell flex h-screen bg-ink text-[#e6edf6]",children:[u.jsxs("aside",{className:"w-60 bg-panel border-r border-edge flex flex-col",children:[u.jsxs("div",{className:"h-16 flex items-center gap-2 px-5 border-b border-edge",children:[u.jsx(ut,{className:"text-brand",size:22}),u.jsxs("div",{children:[u.jsx("div",{className:"font-bold text-base leading-tight",children:"GUARDiA Mall"}),u.jsx("div",{className:"text-[11px] text-slate-400",children:"관리자 콘솔"})]})]}),u.jsxs("nav",{className:"flex-1 py-2 overflow-auto",children:[s.map(({to:c,label:f,icon:d})=>u.jsxs(C0,{to:c,className:CE,children:[u.jsx(d,{size:18}),f]},c)),o.length>0&&u.jsxs(u.Fragment,{children:[u.jsx("div",{className:"px-5 pt-4 pb-1.5 text-[10px] font-semibold tracking-wider text-slate-500 uppercase border-t border-edge mt-3",children:"시스템"}),o.map(({to:c,label:f,icon:d})=>u.jsxs(C0,{to:c,className:CE,children:[u.jsx(d,{size:18}),f]},c))]})]}),u.jsx("div",{className:"p-4 text-[11px] text-slate-500 border-t border-edge",children:"Ollama 온프레미스 · 옴니채널"})]}),u.jsxs("div",{className:"flex-1 flex flex-col overflow-hidden",children:[u.jsxs("header",{className:"h-16 bg-panel border-b border-edge flex items-center justify-between px-6",children:[u.jsx("div",{className:"text-sm text-slate-400",children:"미국 다지점 꽃집 옴니채널 e-커머스 · AI 수요예측 · BI"}),u.jsxs("div",{className:"flex items-center gap-4",children:[u.jsxs("span",{className:"flex items-center gap-1.5 text-sm text-slate-300",children:[u.jsx(SH,{size:18})," ",r||"admin"," ",u.jsx("span",{className:"text-[10px] text-brand",children:t})]}),u.jsxs("button",{onClick:l,className:"flex items-center gap-1.5 text-sm text-slate-400 hover:text-brand",children:[u.jsx(y$,{size:16})," 로그아웃"]})]})]}),u.jsx("main",{className:"flex-1 overflow-auto p-6",children:u.jsx(vD,{})})]})]})}function o5(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var a=e.length;for(t=0;t<a;t++)e[t]&&(n=o5(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function ye(){for(var e,t,n=0,r="",a=arguments.length;n<a;n++)(e=arguments[n])&&(t=o5(e))&&(r&&(r+=" "),r+=t);return r}var MY=Array.isArray,Cn=MY,RY=typeof Vd=="object"&&Vd&&Vd.Object===Object&&Vd,l5=RY,DY=l5,$Y=typeof self=="object"&&self&&self.Object===Object&&self,kY=DY||$Y||Function("return this")(),ca=kY,LY=ca,zY=LY.Symbol,Md=zY,PE=Md,c5=Object.prototype,BY=c5.hasOwnProperty,IY=c5.toString,tu=PE?PE.toStringTag:void 0;function UY(e){var t=BY.call(e,tu),n=e[tu];try{e[tu]=void 0;var r=!0}catch{}var a=IY.call(e);return r&&(t?e[tu]=n:delete e[tu]),a}var qY=UY,VY=Object.prototype,HY=VY.toString;function FY(e){return HY.call(e)}var GY=FY,ME=Md,KY=qY,YY=GY,XY="[object Null]",WY="[object Undefined]",RE=ME?ME.toStringTag:void 0;function QY(e){return e==null?e===void 0?WY:XY:RE&&RE in Object(e)?KY(e):YY(e)}var Za=QY;function ZY(e){return e!=null&&typeof e=="object"}var Ja=ZY,JY=Za,eX=Ja,tX="[object Symbol]";function nX(e){return typeof e=="symbol"||eX(e)&&JY(e)==tX}var Cc=nX,rX=Cn,aX=Cc,iX=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,sX=/^\w*$/;function oX(e,t){if(rX(e))return!1;var n=typeof e;return n=="number"||n=="symbol"||n=="boolean"||e==null||aX(e)?!0:sX.test(e)||!iX.test(e)||t!=null&&e in Object(t)}var Bw=oX;function lX(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var Zi=lX;const Pc=ze(Zi);var cX=Za,uX=Zi,fX="[object AsyncFunction]",dX="[object Function]",hX="[object GeneratorFunction]",pX="[object Proxy]";function mX(e){if(!uX(e))return!1;var t=cX(e);return t==dX||t==hX||t==fX||t==pX}var Iw=mX;const de=ze(Iw);var yX=ca,vX=yX["__core-js_shared__"],gX=vX,Ig=gX,DE=function(){var e=/[^.]+$/.exec(Ig&&Ig.keys&&Ig.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function bX(e){return!!DE&&DE in e}var xX=bX,SX=Function.prototype,wX=SX.toString;function jX(e){if(e!=null){try{return wX.call(e)}catch{}try{return e+""}catch{}}return""}var u5=jX,AX=Iw,OX=xX,EX=Zi,TX=u5,NX=/[\\^$.*+?()[\]{}|]/g,_X=/^\[object .+?Constructor\]$/,CX=Function.prototype,PX=Object.prototype,MX=CX.toString,RX=PX.hasOwnProperty,DX=RegExp("^"+MX.call(RX).replace(NX,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function $X(e){if(!EX(e)||OX(e))return!1;var t=AX(e)?DX:_X;return t.test(TX(e))}var kX=$X;function LX(e,t){return e==null?void 0:e[t]}var zX=LX,BX=kX,IX=zX;function UX(e,t){var n=IX(e,t);return BX(n)?n:void 0}var yo=UX,qX=yo,VX=qX(Object,"create"),By=VX,$E=By;function HX(){this.__data__=$E?$E(null):{},this.size=0}var FX=HX;function GX(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var KX=GX,YX=By,XX="__lodash_hash_undefined__",WX=Object.prototype,QX=WX.hasOwnProperty;function ZX(e){var t=this.__data__;if(YX){var n=t[e];return n===XX?void 0:n}return QX.call(t,e)?t[e]:void 0}var JX=ZX,eW=By,tW=Object.prototype,nW=tW.hasOwnProperty;function rW(e){var t=this.__data__;return eW?t[e]!==void 0:nW.call(t,e)}var aW=rW,iW=By,sW="__lodash_hash_undefined__";function oW(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=iW&&t===void 0?sW:t,this}var lW=oW,cW=FX,uW=KX,fW=JX,dW=aW,hW=lW;function Mc(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Mc.prototype.clear=cW;Mc.prototype.delete=uW;Mc.prototype.get=fW;Mc.prototype.has=dW;Mc.prototype.set=hW;var pW=Mc;function mW(){this.__data__=[],this.size=0}var yW=mW;function vW(e,t){return e===t||e!==e&&t!==t}var Uw=vW,gW=Uw;function bW(e,t){for(var n=e.length;n--;)if(gW(e[n][0],t))return n;return-1}var Iy=bW,xW=Iy,SW=Array.prototype,wW=SW.splice;function jW(e){var t=this.__data__,n=xW(t,e);if(n<0)return!1;var r=t.length-1;return n==r?t.pop():wW.call(t,n,1),--this.size,!0}var AW=jW,OW=Iy;function EW(e){var t=this.__data__,n=OW(t,e);return n<0?void 0:t[n][1]}var TW=EW,NW=Iy;function _W(e){return NW(this.__data__,e)>-1}var CW=_W,PW=Iy;function MW(e,t){var n=this.__data__,r=PW(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}var RW=MW,DW=yW,$W=AW,kW=TW,LW=CW,zW=RW;function Rc(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Rc.prototype.clear=DW;Rc.prototype.delete=$W;Rc.prototype.get=kW;Rc.prototype.has=LW;Rc.prototype.set=zW;var Uy=Rc,BW=yo,IW=ca,UW=BW(IW,"Map"),qw=UW,kE=pW,qW=Uy,VW=qw;function HW(){this.size=0,this.__data__={hash:new kE,map:new(VW||qW),string:new kE}}var FW=HW;function GW(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var KW=GW,YW=KW;function XW(e,t){var n=e.__data__;return YW(t)?n[typeof t=="string"?"string":"hash"]:n.map}var qy=XW,WW=qy;function QW(e){var t=WW(this,e).delete(e);return this.size-=t?1:0,t}var ZW=QW,JW=qy;function eQ(e){return JW(this,e).get(e)}var tQ=eQ,nQ=qy;function rQ(e){return nQ(this,e).has(e)}var aQ=rQ,iQ=qy;function sQ(e,t){var n=iQ(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}var oQ=sQ,lQ=FW,cQ=ZW,uQ=tQ,fQ=aQ,dQ=oQ;function Dc(e){var t=-1,n=e==null?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}Dc.prototype.clear=lQ;Dc.prototype.delete=cQ;Dc.prototype.get=uQ;Dc.prototype.has=fQ;Dc.prototype.set=dQ;var Vw=Dc,f5=Vw,hQ="Expected a function";function Hw(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(hQ);var n=function(){var r=arguments,a=t?t.apply(this,r):r[0],i=n.cache;if(i.has(a))return i.get(a);var s=e.apply(this,r);return n.cache=i.set(a,s)||i,s};return n.cache=new(Hw.Cache||f5),n}Hw.Cache=f5;var d5=Hw;const pQ=ze(d5);var mQ=d5,yQ=500;function vQ(e){var t=mQ(e,function(r){return n.size===yQ&&n.clear(),r}),n=t.cache;return t}var gQ=vQ,bQ=gQ,xQ=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,SQ=/\\(\\)?/g,wQ=bQ(function(e){var t=[];return e.charCodeAt(0)===46&&t.push(""),e.replace(xQ,function(n,r,a,i){t.push(a?i.replace(SQ,"$1"):r||n)}),t}),jQ=wQ;function AQ(e,t){for(var n=-1,r=e==null?0:e.length,a=Array(r);++n<r;)a[n]=t(e[n],n,e);return a}var Fw=AQ,LE=Md,OQ=Fw,EQ=Cn,TQ=Cc,zE=LE?LE.prototype:void 0,BE=zE?zE.toString:void 0;function h5(e){if(typeof e=="string")return e;if(EQ(e))return OQ(e,h5)+"";if(TQ(e))return BE?BE.call(e):"";var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}var NQ=h5,_Q=NQ;function CQ(e){return e==null?"":_Q(e)}var p5=CQ,PQ=Cn,MQ=Bw,RQ=jQ,DQ=p5;function $Q(e,t){return PQ(e)?e:MQ(e,t)?[e]:RQ(DQ(e))}var m5=$Q,kQ=Cc;function LQ(e){if(typeof e=="string"||kQ(e))return e;var t=e+"";return t=="0"&&1/e==-1/0?"-0":t}var Vy=LQ,zQ=m5,BQ=Vy;function IQ(e,t){t=zQ(t,e);for(var n=0,r=t.length;e!=null&&n<r;)e=e[BQ(t[n++])];return n&&n==r?e:void 0}var Gw=IQ,UQ=Gw;function qQ(e,t,n){var r=e==null?void 0:UQ(e,t);return r===void 0?n:r}var y5=qQ;const Kn=ze(y5);function VQ(e){return e==null}var HQ=VQ;const pe=ze(HQ);var FQ=Za,GQ=Cn,KQ=Ja,YQ="[object String]";function XQ(e){return typeof e=="string"||!GQ(e)&&KQ(e)&&FQ(e)==YQ}var WQ=XQ;const to=ze(WQ);var v5={exports:{}},Ue={};/**
 * @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 Kw=Symbol.for("react.element"),Yw=Symbol.for("react.portal"),Hy=Symbol.for("react.fragment"),Fy=Symbol.for("react.strict_mode"),Gy=Symbol.for("react.profiler"),Ky=Symbol.for("react.provider"),Yy=Symbol.for("react.context"),QQ=Symbol.for("react.server_context"),Xy=Symbol.for("react.forward_ref"),Wy=Symbol.for("react.suspense"),Qy=Symbol.for("react.suspense_list"),Zy=Symbol.for("react.memo"),Jy=Symbol.for("react.lazy"),ZQ=Symbol.for("react.offscreen"),g5;g5=Symbol.for("react.module.reference");function wr(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case Kw:switch(e=e.type,e){case Hy:case Gy:case Fy:case Wy:case Qy:return e;default:switch(e=e&&e.$$typeof,e){case QQ:case Yy:case Xy:case Jy:case Zy:case Ky:return e;default:return t}}case Yw:return t}}}Ue.ContextConsumer=Yy;Ue.ContextProvider=Ky;Ue.Element=Kw;Ue.ForwardRef=Xy;Ue.Fragment=Hy;Ue.Lazy=Jy;Ue.Memo=Zy;Ue.Portal=Yw;Ue.Profiler=Gy;Ue.StrictMode=Fy;Ue.Suspense=Wy;Ue.SuspenseList=Qy;Ue.isAsyncMode=function(){return!1};Ue.isConcurrentMode=function(){return!1};Ue.isContextConsumer=function(e){return wr(e)===Yy};Ue.isContextProvider=function(e){return wr(e)===Ky};Ue.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===Kw};Ue.isForwardRef=function(e){return wr(e)===Xy};Ue.isFragment=function(e){return wr(e)===Hy};Ue.isLazy=function(e){return wr(e)===Jy};Ue.isMemo=function(e){return wr(e)===Zy};Ue.isPortal=function(e){return wr(e)===Yw};Ue.isProfiler=function(e){return wr(e)===Gy};Ue.isStrictMode=function(e){return wr(e)===Fy};Ue.isSuspense=function(e){return wr(e)===Wy};Ue.isSuspenseList=function(e){return wr(e)===Qy};Ue.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===Hy||e===Gy||e===Fy||e===Wy||e===Qy||e===ZQ||typeof e=="object"&&e!==null&&(e.$$typeof===Jy||e.$$typeof===Zy||e.$$typeof===Ky||e.$$typeof===Yy||e.$$typeof===Xy||e.$$typeof===g5||e.getModuleId!==void 0)};Ue.typeOf=wr;v5.exports=Ue;var JQ=v5.exports,eZ=Za,tZ=Ja,nZ="[object Number]";function rZ(e){return typeof e=="number"||tZ(e)&&eZ(e)==nZ}var b5=rZ;const aZ=ze(b5);var iZ=b5;function sZ(e){return iZ(e)&&e!=+e}var oZ=sZ;const $c=ze(oZ);var fn=function(t){return t===0?0:t>0?1:-1},js=function(t){return to(t)&&t.indexOf("%")===t.length-1},F=function(t){return aZ(t)&&!$c(t)},lZ=function(t){return pe(t)},Dt=function(t){return F(t)||to(t)},cZ=0,vo=function(t){var n=++cZ;return"".concat(t||"").concat(n)},dn=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0,a=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(!F(t)&&!to(t))return r;var i;if(js(t)){var s=t.indexOf("%");i=n*parseFloat(t.slice(0,s))/100}else i=+t;return $c(i)&&(i=r),a&&i>n&&(i=n),i},mi=function(t){if(!t)return null;var n=Object.keys(t);return n&&n.length?t[n[0]]:null},uZ=function(t){if(!Array.isArray(t))return!1;for(var n=t.length,r={},a=0;a<n;a++)if(!r[t[a]])r[t[a]]=!0;else return!0;return!1},Pt=function(t,n){return F(t)&&F(n)?function(r){return t+r*(n-t)}:function(){return n}};function Zp(e,t,n){return!e||!e.length?null:e.find(function(r){return r&&(typeof t=="function"?t(r):Kn(r,t))===n})}var fZ=function(t,n){return F(t)&&F(n)?t-n:to(t)&&to(n)?t.localeCompare(n):t instanceof Date&&n instanceof Date?t.getTime()-n.getTime():String(t).localeCompare(String(n))};function fl(e,t){for(var n in e)if({}.hasOwnProperty.call(e,n)&&(!{}.hasOwnProperty.call(t,n)||e[n]!==t[n]))return!1;for(var r in t)if({}.hasOwnProperty.call(t,r)&&!{}.hasOwnProperty.call(e,r))return!1;return!0}function J0(e){"@babel/helpers - typeof";return J0=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},J0(e)}var dZ=["viewBox","children"],hZ=["aria-activedescendant","aria-atomic","aria-autocomplete","aria-busy","aria-checked","aria-colcount","aria-colindex","aria-colspan","aria-controls","aria-current","aria-describedby","aria-details","aria-disabled","aria-errormessage","aria-expanded","aria-flowto","aria-haspopup","aria-hidden","aria-invalid","aria-keyshortcuts","aria-label","aria-labelledby","aria-level","aria-live","aria-modal","aria-multiline","aria-multiselectable","aria-orientation","aria-owns","aria-placeholder","aria-posinset","aria-pressed","aria-readonly","aria-relevant","aria-required","aria-roledescription","aria-rowcount","aria-rowindex","aria-rowspan","aria-selected","aria-setsize","aria-sort","aria-valuemax","aria-valuemin","aria-valuenow","aria-valuetext","className","color","height","id","lang","max","media","method","min","name","style","target","width","role","tabIndex","accentHeight","accumulate","additive","alignmentBaseline","allowReorder","alphabetic","amplitude","arabicForm","ascent","attributeName","attributeType","autoReverse","azimuth","baseFrequency","baselineShift","baseProfile","bbox","begin","bias","by","calcMode","capHeight","clip","clipPath","clipPathUnits","clipRule","colorInterpolation","colorInterpolationFilters","colorProfile","colorRendering","contentScriptType","contentStyleType","cursor","cx","cy","d","decelerate","descent","diffuseConstant","direction","display","divisor","dominantBaseline","dur","dx","dy","edgeMode","elevation","enableBackground","end","exponent","externalResourcesRequired","fill","fillOpacity","fillRule","filter","filterRes","filterUnits","floodColor","floodOpacity","focusable","fontFamily","fontSize","fontSizeAdjust","fontStretch","fontStyle","fontVariant","fontWeight","format","from","fx","fy","g1","g2","glyphName","glyphOrientationHorizontal","glyphOrientationVertical","glyphRef","gradientTransform","gradientUnits","hanging","horizAdvX","horizOriginX","href","ideographic","imageRendering","in2","in","intercept","k1","k2","k3","k4","k","kernelMatrix","kernelUnitLength","kerning","keyPoints","keySplines","keyTimes","lengthAdjust","letterSpacing","lightingColor","limitingConeAngle","local","markerEnd","markerHeight","markerMid","markerStart","markerUnits","markerWidth","mask","maskContentUnits","maskUnits","mathematical","mode","numOctaves","offset","opacity","operator","order","orient","orientation","origin","overflow","overlinePosition","overlineThickness","paintOrder","panose1","pathLength","patternContentUnits","patternTransform","patternUnits","pointerEvents","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","r","radius","refX","refY","renderingIntent","repeatCount","repeatDur","requiredExtensions","requiredFeatures","restart","result","rotate","rx","ry","seed","shapeRendering","slope","spacing","specularConstant","specularExponent","speed","spreadMethod","startOffset","stdDeviation","stemh","stemv","stitchTiles","stopColor","stopOpacity","strikethroughPosition","strikethroughThickness","string","stroke","strokeDasharray","strokeDashoffset","strokeLinecap","strokeLinejoin","strokeMiterlimit","strokeOpacity","strokeWidth","surfaceScale","systemLanguage","tableValues","targetX","targetY","textAnchor","textDecoration","textLength","textRendering","to","transform","u1","u2","underlinePosition","underlineThickness","unicode","unicodeBidi","unicodeRange","unitsPerEm","vAlphabetic","values","vectorEffect","version","vertAdvY","vertOriginX","vertOriginY","vHanging","vIdeographic","viewTarget","visibility","vMathematical","widths","wordSpacing","writingMode","x1","x2","x","xChannelSelector","xHeight","xlinkActuate","xlinkArcrole","xlinkHref","xlinkRole","xlinkShow","xlinkTitle","xlinkType","xmlBase","xmlLang","xmlns","xmlnsXlink","xmlSpace","y1","y2","y","yChannelSelector","z","zoomAndPan","ref","key","angle"],IE=["points","pathLength"],Ug={svg:dZ,polygon:IE,polyline:IE},Xw=["dangerouslySetInnerHTML","onCopy","onCopyCapture","onCut","onCutCapture","onPaste","onPasteCapture","onCompositionEnd","onCompositionEndCapture","onCompositionStart","onCompositionStartCapture","onCompositionUpdate","onCompositionUpdateCapture","onFocus","onFocusCapture","onBlur","onBlurCapture","onChange","onChangeCapture","onBeforeInput","onBeforeInputCapture","onInput","onInputCapture","onReset","onResetCapture","onSubmit","onSubmitCapture","onInvalid","onInvalidCapture","onLoad","onLoadCapture","onError","onErrorCapture","onKeyDown","onKeyDownCapture","onKeyPress","onKeyPressCapture","onKeyUp","onKeyUpCapture","onAbort","onAbortCapture","onCanPlay","onCanPlayCapture","onCanPlayThrough","onCanPlayThroughCapture","onDurationChange","onDurationChangeCapture","onEmptied","onEmptiedCapture","onEncrypted","onEncryptedCapture","onEnded","onEndedCapture","onLoadedData","onLoadedDataCapture","onLoadedMetadata","onLoadedMetadataCapture","onLoadStart","onLoadStartCapture","onPause","onPauseCapture","onPlay","onPlayCapture","onPlaying","onPlayingCapture","onProgress","onProgressCapture","onRateChange","onRateChangeCapture","onSeeked","onSeekedCapture","onSeeking","onSeekingCapture","onStalled","onStalledCapture","onSuspend","onSuspendCapture","onTimeUpdate","onTimeUpdateCapture","onVolumeChange","onVolumeChangeCapture","onWaiting","onWaitingCapture","onAuxClick","onAuxClickCapture","onClick","onClickCapture","onContextMenu","onContextMenuCapture","onDoubleClick","onDoubleClickCapture","onDrag","onDragCapture","onDragEnd","onDragEndCapture","onDragEnter","onDragEnterCapture","onDragExit","onDragExitCapture","onDragLeave","onDragLeaveCapture","onDragOver","onDragOverCapture","onDragStart","onDragStartCapture","onDrop","onDropCapture","onMouseDown","onMouseDownCapture","onMouseEnter","onMouseLeave","onMouseMove","onMouseMoveCapture","onMouseOut","onMouseOutCapture","onMouseOver","onMouseOverCapture","onMouseUp","onMouseUpCapture","onSelect","onSelectCapture","onTouchCancel","onTouchCancelCapture","onTouchEnd","onTouchEndCapture","onTouchMove","onTouchMoveCapture","onTouchStart","onTouchStartCapture","onPointerDown","onPointerDownCapture","onPointerMove","onPointerMoveCapture","onPointerUp","onPointerUpCapture","onPointerCancel","onPointerCancelCapture","onPointerEnter","onPointerEnterCapture","onPointerLeave","onPointerLeaveCapture","onPointerOver","onPointerOverCapture","onPointerOut","onPointerOutCapture","onGotPointerCapture","onGotPointerCaptureCapture","onLostPointerCapture","onLostPointerCaptureCapture","onScroll","onScrollCapture","onWheel","onWheelCapture","onAnimationStart","onAnimationStartCapture","onAnimationEnd","onAnimationEndCapture","onAnimationIteration","onAnimationIterationCapture","onTransitionEnd","onTransitionEndCapture"],Jp=function(t,n){if(!t||typeof t=="function"||typeof t=="boolean")return null;var r=t;if(A.isValidElement(t)&&(r=t.props),!Pc(r))return null;var a={};return Object.keys(r).forEach(function(i){Xw.includes(i)&&(a[i]=n||function(s){return r[i](r,s)})}),a},pZ=function(t,n,r){return function(a){return t(n,r,a),null}},no=function(t,n,r){if(!Pc(t)||J0(t)!=="object")return null;var a=null;return Object.keys(t).forEach(function(i){var s=t[i];Xw.includes(i)&&typeof s=="function"&&(a||(a={}),a[i]=pZ(s,n,r))}),a},mZ=["children"],yZ=["children"];function UE(e,t){if(e==null)return{};var n=vZ(e,t),r,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)r=i[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function vZ(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function ex(e){"@babel/helpers - typeof";return ex=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ex(e)}var qE={click:"onClick",mousedown:"onMouseDown",mouseup:"onMouseUp",mouseover:"onMouseOver",mousemove:"onMouseMove",mouseout:"onMouseOut",mouseenter:"onMouseEnter",mouseleave:"onMouseLeave",touchcancel:"onTouchCancel",touchend:"onTouchEnd",touchmove:"onTouchMove",touchstart:"onTouchStart",contextmenu:"onContextMenu",dblclick:"onDoubleClick"},za=function(t){return typeof t=="string"?t:t?t.displayName||t.name||"Component":""},VE=null,qg=null,Ww=function e(t){if(t===VE&&Array.isArray(qg))return qg;var n=[];return A.Children.forEach(t,function(r){pe(r)||(JQ.isFragment(r)?n=n.concat(e(r.props.children)):n.push(r))}),qg=n,VE=t,n};function Yn(e,t){var n=[],r=[];return Array.isArray(t)?r=t.map(function(a){return za(a)}):r=[za(t)],Ww(e).forEach(function(a){var i=Kn(a,"type.displayName")||Kn(a,"type.name");r.indexOf(i)!==-1&&n.push(a)}),n}function $n(e,t){var n=Yn(e,t);return n&&n[0]}var HE=function(t){if(!t||!t.props)return!1;var n=t.props,r=n.width,a=n.height;return!(!F(r)||r<=0||!F(a)||a<=0)},gZ=["a","altGlyph","altGlyphDef","altGlyphItem","animate","animateColor","animateMotion","animateTransform","circle","clipPath","color-profile","cursor","defs","desc","ellipse","feBlend","feColormatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","font","font-face","font-face-format","font-face-name","font-face-url","foreignObject","g","glyph","glyphRef","hkern","image","line","lineGradient","marker","mask","metadata","missing-glyph","mpath","path","pattern","polygon","polyline","radialGradient","rect","script","set","stop","style","svg","switch","symbol","text","textPath","title","tref","tspan","use","view","vkern"],bZ=function(t){return t&&t.type&&to(t.type)&&gZ.indexOf(t.type)>=0},x5=function(t){return t&&ex(t)==="object"&&"clipDot"in t},xZ=function(t,n,r,a){var i,s=(i=Ug==null?void 0:Ug[a])!==null&&i!==void 0?i:[];return n.startsWith("data-")||!de(t)&&(a&&s.includes(n)||hZ.includes(n))||r&&Xw.includes(n)},ie=function(t,n,r){if(!t||typeof t=="function"||typeof t=="boolean")return null;var a=t;if(A.isValidElement(t)&&(a=t.props),!Pc(a))return null;var i={};return Object.keys(a).forEach(function(s){var o;xZ((o=a)===null||o===void 0?void 0:o[s],s,n,r)&&(i[s]=a[s])}),i},tx=function e(t,n){if(t===n)return!0;var r=A.Children.count(t);if(r!==A.Children.count(n))return!1;if(r===0)return!0;if(r===1)return FE(Array.isArray(t)?t[0]:t,Array.isArray(n)?n[0]:n);for(var a=0;a<r;a++){var i=t[a],s=n[a];if(Array.isArray(i)||Array.isArray(s)){if(!e(i,s))return!1}else if(!FE(i,s))return!1}return!0},FE=function(t,n){if(pe(t)&&pe(n))return!0;if(!pe(t)&&!pe(n)){var r=t.props||{},a=r.children,i=UE(r,mZ),s=n.props||{},o=s.children,l=UE(s,yZ);return a&&o?fl(i,l)&&tx(a,o):!a&&!o?fl(i,l):!1}return!1},GE=function(t,n){var r=[],a={};return Ww(t).forEach(function(i,s){if(bZ(i))r.push(i);else if(i){var o=za(i.type),l=n[o]||{},c=l.handler,f=l.once;if(c&&(!f||!a[o])){var d=c(i,o,s);r.push(d),a[o]=!0}}}),r},SZ=function(t){var n=t&&t.type;return n&&qE[n]?qE[n]:null},wZ=function(t,n){return Ww(n).indexOf(t)},jZ=["children","width","height","viewBox","className","style","title","desc"];function nx(){return nx=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},nx.apply(this,arguments)}function AZ(e,t){if(e==null)return{};var n=OZ(e,t),r,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)r=i[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function OZ(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function rx(e){var t=e.children,n=e.width,r=e.height,a=e.viewBox,i=e.className,s=e.style,o=e.title,l=e.desc,c=AZ(e,jZ),f=a||{width:n,height:r,x:0,y:0},d=ye("recharts-surface",i);return N.createElement("svg",nx({},ie(c,!0,"svg"),{className:d,width:n,height:r,style:s,viewBox:"".concat(f.x," ").concat(f.y," ").concat(f.width," ").concat(f.height)}),N.createElement("title",null,o),N.createElement("desc",null,l),t)}var EZ=["children","className"];function ax(){return ax=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},ax.apply(this,arguments)}function TZ(e,t){if(e==null)return{};var n=NZ(e,t),r,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)r=i[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function NZ(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}var je=N.forwardRef(function(e,t){var n=e.children,r=e.className,a=TZ(e,EZ),i=ye("recharts-layer",r);return N.createElement("g",ax({className:i},ie(a,!0),{ref:t}),n)}),Dr=function(t,n){for(var r=arguments.length,a=new Array(r>2?r-2:0),i=2;i<r;i++)a[i-2]=arguments[i]};function _Z(e,t,n){var r=-1,a=e.length;t<0&&(t=-t>a?0:a+t),n=n>a?a:n,n<0&&(n+=a),a=t>n?0:n-t>>>0,t>>>=0;for(var i=Array(a);++r<a;)i[r]=e[r+t];return i}var CZ=_Z,PZ=CZ;function MZ(e,t,n){var r=e.length;return n=n===void 0?r:n,!t&&n>=r?e:PZ(e,t,n)}var RZ=MZ,DZ="\\ud800-\\udfff",$Z="\\u0300-\\u036f",kZ="\\ufe20-\\ufe2f",LZ="\\u20d0-\\u20ff",zZ=$Z+kZ+LZ,BZ="\\ufe0e\\ufe0f",IZ="\\u200d",UZ=RegExp("["+IZ+DZ+zZ+BZ+"]");function qZ(e){return UZ.test(e)}var S5=qZ;function VZ(e){return e.split("")}var HZ=VZ,w5="\\ud800-\\udfff",FZ="\\u0300-\\u036f",GZ="\\ufe20-\\ufe2f",KZ="\\u20d0-\\u20ff",YZ=FZ+GZ+KZ,XZ="\\ufe0e\\ufe0f",WZ="["+w5+"]",ix="["+YZ+"]",sx="\\ud83c[\\udffb-\\udfff]",QZ="(?:"+ix+"|"+sx+")",j5="[^"+w5+"]",A5="(?:\\ud83c[\\udde6-\\uddff]){2}",O5="[\\ud800-\\udbff][\\udc00-\\udfff]",ZZ="\\u200d",E5=QZ+"?",T5="["+XZ+"]?",JZ="(?:"+ZZ+"(?:"+[j5,A5,O5].join("|")+")"+T5+E5+")*",eJ=T5+E5+JZ,tJ="(?:"+[j5+ix+"?",ix,A5,O5,WZ].join("|")+")",nJ=RegExp(sx+"(?="+sx+")|"+tJ+eJ,"g");function rJ(e){return e.match(nJ)||[]}var aJ=rJ,iJ=HZ,sJ=S5,oJ=aJ;function lJ(e){return sJ(e)?oJ(e):iJ(e)}var cJ=lJ,uJ=RZ,fJ=S5,dJ=cJ,hJ=p5;function pJ(e){return function(t){t=hJ(t);var n=fJ(t)?dJ(t):void 0,r=n?n[0]:t.charAt(0),a=n?uJ(n,1).join(""):t.slice(1);return r[e]()+a}}var mJ=pJ,yJ=mJ,vJ=yJ("toUpperCase"),gJ=vJ;const ev=ze(gJ);function We(e){return function(){return e}}const N5=Math.cos,em=Math.sin,Ir=Math.sqrt,tm=Math.PI,tv=2*tm,ox=Math.PI,lx=2*ox,ms=1e-6,bJ=lx-ms;function _5(e){this._+=e[0];for(let t=1,n=e.length;t<n;++t)this._+=arguments[t]+e[t]}function xJ(e){let t=Math.floor(e);if(!(t>=0))throw new Error(`invalid digits: ${e}`);if(t>15)return _5;const n=10**t;return function(r){this._+=r[0];for(let a=1,i=r.length;a<i;++a)this._+=Math.round(arguments[a]*n)/n+r[a]}}class SJ{constructor(t){this._x0=this._y0=this._x1=this._y1=null,this._="",this._append=t==null?_5:xJ(t)}moveTo(t,n){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}`}closePath(){this._x1!==null&&(this._x1=this._x0,this._y1=this._y0,this._append`Z`)}lineTo(t,n){this._append`L${this._x1=+t},${this._y1=+n}`}quadraticCurveTo(t,n,r,a){this._append`Q${+t},${+n},${this._x1=+r},${this._y1=+a}`}bezierCurveTo(t,n,r,a,i,s){this._append`C${+t},${+n},${+r},${+a},${this._x1=+i},${this._y1=+s}`}arcTo(t,n,r,a,i){if(t=+t,n=+n,r=+r,a=+a,i=+i,i<0)throw new Error(`negative radius: ${i}`);let s=this._x1,o=this._y1,l=r-t,c=a-n,f=s-t,d=o-n,h=f*f+d*d;if(this._x1===null)this._append`M${this._x1=t},${this._y1=n}`;else if(h>ms)if(!(Math.abs(d*l-c*f)>ms)||!i)this._append`L${this._x1=t},${this._y1=n}`;else{let p=r-s,v=a-o,y=l*l+c*c,b=p*p+v*v,m=Math.sqrt(y),g=Math.sqrt(h),x=i*Math.tan((ox-Math.acos((y+h-b)/(2*m*g)))/2),w=x/g,S=x/m;Math.abs(w-1)>ms&&this._append`L${t+w*f},${n+w*d}`,this._append`A${i},${i},0,0,${+(d*p>f*v)},${this._x1=t+S*l},${this._y1=n+S*c}`}}arc(t,n,r,a,i,s){if(t=+t,n=+n,r=+r,s=!!s,r<0)throw new Error(`negative radius: ${r}`);let o=r*Math.cos(a),l=r*Math.sin(a),c=t+o,f=n+l,d=1^s,h=s?a-i:i-a;this._x1===null?this._append`M${c},${f}`:(Math.abs(this._x1-c)>ms||Math.abs(this._y1-f)>ms)&&this._append`L${c},${f}`,r&&(h<0&&(h=h%lx+lx),h>bJ?this._append`A${r},${r},0,1,${d},${t-o},${n-l}A${r},${r},0,1,${d},${this._x1=c},${this._y1=f}`:h>ms&&this._append`A${r},${r},0,${+(h>=ox)},${d},${this._x1=t+r*Math.cos(i)},${this._y1=n+r*Math.sin(i)}`)}rect(t,n,r,a){this._append`M${this._x0=this._x1=+t},${this._y0=this._y1=+n}h${r=+r}v${+a}h${-r}Z`}toString(){return this._}}function Qw(e){let t=3;return e.digits=function(n){if(!arguments.length)return t;if(n==null)t=null;else{const r=Math.floor(n);if(!(r>=0))throw new RangeError(`invalid digits: ${n}`);t=r}return e},()=>new SJ(t)}function Zw(e){return typeof e=="object"&&"length"in e?e:Array.from(e)}function C5(e){this._context=e}C5.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:this._context.lineTo(e,t);break}}};function nv(e){return new C5(e)}function P5(e){return e[0]}function M5(e){return e[1]}function R5(e,t){var n=We(!0),r=null,a=nv,i=null,s=Qw(o);e=typeof e=="function"?e:e===void 0?P5:We(e),t=typeof t=="function"?t:t===void 0?M5:We(t);function o(l){var c,f=(l=Zw(l)).length,d,h=!1,p;for(r==null&&(i=a(p=s())),c=0;c<=f;++c)!(c<f&&n(d=l[c],c,l))===h&&((h=!h)?i.lineStart():i.lineEnd()),h&&i.point(+e(d,c,l),+t(d,c,l));if(p)return i=null,p+""||null}return o.x=function(l){return arguments.length?(e=typeof l=="function"?l:We(+l),o):e},o.y=function(l){return arguments.length?(t=typeof l=="function"?l:We(+l),o):t},o.defined=function(l){return arguments.length?(n=typeof l=="function"?l:We(!!l),o):n},o.curve=function(l){return arguments.length?(a=l,r!=null&&(i=a(r)),o):a},o.context=function(l){return arguments.length?(l==null?r=i=null:i=a(r=l),o):r},o}function yh(e,t,n){var r=null,a=We(!0),i=null,s=nv,o=null,l=Qw(c);e=typeof e=="function"?e:e===void 0?P5:We(+e),t=typeof t=="function"?t:We(t===void 0?0:+t),n=typeof n=="function"?n:n===void 0?M5:We(+n);function c(d){var h,p,v,y=(d=Zw(d)).length,b,m=!1,g,x=new Array(y),w=new Array(y);for(i==null&&(o=s(g=l())),h=0;h<=y;++h){if(!(h<y&&a(b=d[h],h,d))===m)if(m=!m)p=h,o.areaStart(),o.lineStart();else{for(o.lineEnd(),o.lineStart(),v=h-1;v>=p;--v)o.point(x[v],w[v]);o.lineEnd(),o.areaEnd()}m&&(x[h]=+e(b,h,d),w[h]=+t(b,h,d),o.point(r?+r(b,h,d):x[h],n?+n(b,h,d):w[h]))}if(g)return o=null,g+""||null}function f(){return R5().defined(a).curve(s).context(i)}return c.x=function(d){return arguments.length?(e=typeof d=="function"?d:We(+d),r=null,c):e},c.x0=function(d){return arguments.length?(e=typeof d=="function"?d:We(+d),c):e},c.x1=function(d){return arguments.length?(r=d==null?null:typeof d=="function"?d:We(+d),c):r},c.y=function(d){return arguments.length?(t=typeof d=="function"?d:We(+d),n=null,c):t},c.y0=function(d){return arguments.length?(t=typeof d=="function"?d:We(+d),c):t},c.y1=function(d){return arguments.length?(n=d==null?null:typeof d=="function"?d:We(+d),c):n},c.lineX0=c.lineY0=function(){return f().x(e).y(t)},c.lineY1=function(){return f().x(e).y(n)},c.lineX1=function(){return f().x(r).y(t)},c.defined=function(d){return arguments.length?(a=typeof d=="function"?d:We(!!d),c):a},c.curve=function(d){return arguments.length?(s=d,i!=null&&(o=s(i)),c):s},c.context=function(d){return arguments.length?(d==null?i=o=null:o=s(i=d),c):i},c}class D5{constructor(t,n){this._context=t,this._x=n}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line}point(t,n){switch(t=+t,n=+n,this._point){case 0:{this._point=1,this._line?this._context.lineTo(t,n):this._context.moveTo(t,n);break}case 1:this._point=2;default:{this._x?this._context.bezierCurveTo(this._x0=(this._x0+t)/2,this._y0,this._x0,n,t,n):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+n)/2,t,this._y0,t,n);break}}this._x0=t,this._y0=n}}function wJ(e){return new D5(e,!0)}function jJ(e){return new D5(e,!1)}const Jw={draw(e,t){const n=Ir(t/tm);e.moveTo(n,0),e.arc(0,0,n,0,tv)}},AJ={draw(e,t){const n=Ir(t/5)/2;e.moveTo(-3*n,-n),e.lineTo(-n,-n),e.lineTo(-n,-3*n),e.lineTo(n,-3*n),e.lineTo(n,-n),e.lineTo(3*n,-n),e.lineTo(3*n,n),e.lineTo(n,n),e.lineTo(n,3*n),e.lineTo(-n,3*n),e.lineTo(-n,n),e.lineTo(-3*n,n),e.closePath()}},$5=Ir(1/3),OJ=$5*2,EJ={draw(e,t){const n=Ir(t/OJ),r=n*$5;e.moveTo(0,-n),e.lineTo(r,0),e.lineTo(0,n),e.lineTo(-r,0),e.closePath()}},TJ={draw(e,t){const n=Ir(t),r=-n/2;e.rect(r,r,n,n)}},NJ=.8908130915292852,k5=em(tm/10)/em(7*tm/10),_J=em(tv/10)*k5,CJ=-N5(tv/10)*k5,PJ={draw(e,t){const n=Ir(t*NJ),r=_J*n,a=CJ*n;e.moveTo(0,-n),e.lineTo(r,a);for(let i=1;i<5;++i){const s=tv*i/5,o=N5(s),l=em(s);e.lineTo(l*n,-o*n),e.lineTo(o*r-l*a,l*r+o*a)}e.closePath()}},Vg=Ir(3),MJ={draw(e,t){const n=-Ir(t/(Vg*3));e.moveTo(0,n*2),e.lineTo(-Vg*n,-n),e.lineTo(Vg*n,-n),e.closePath()}},er=-.5,tr=Ir(3)/2,cx=1/Ir(12),RJ=(cx/2+1)*3,DJ={draw(e,t){const n=Ir(t/RJ),r=n/2,a=n*cx,i=r,s=n*cx+n,o=-i,l=s;e.moveTo(r,a),e.lineTo(i,s),e.lineTo(o,l),e.lineTo(er*r-tr*a,tr*r+er*a),e.lineTo(er*i-tr*s,tr*i+er*s),e.lineTo(er*o-tr*l,tr*o+er*l),e.lineTo(er*r+tr*a,er*a-tr*r),e.lineTo(er*i+tr*s,er*s-tr*i),e.lineTo(er*o+tr*l,er*l-tr*o),e.closePath()}};function $J(e,t){let n=null,r=Qw(a);e=typeof e=="function"?e:We(e||Jw),t=typeof t=="function"?t:We(t===void 0?64:+t);function a(){let i;if(n||(n=i=r()),e.apply(this,arguments).draw(n,+t.apply(this,arguments)),i)return n=null,i+""||null}return a.type=function(i){return arguments.length?(e=typeof i=="function"?i:We(i),a):e},a.size=function(i){return arguments.length?(t=typeof i=="function"?i:We(+i),a):t},a.context=function(i){return arguments.length?(n=i??null,a):n},a}function nm(){}function rm(e,t,n){e._context.bezierCurveTo((2*e._x0+e._x1)/3,(2*e._y0+e._y1)/3,(e._x0+2*e._x1)/3,(e._y0+2*e._y1)/3,(e._x0+4*e._x1+t)/6,(e._y0+4*e._y1+n)/6)}function L5(e){this._context=e}L5.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){switch(this._point){case 3:rm(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:rm(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function kJ(e){return new L5(e)}function z5(e){this._context=e}z5.prototype={areaStart:nm,areaEnd:nm,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x2,this._y2),this._context.closePath();break}case 2:{this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break}case 3:{this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}}},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._x2=e,this._y2=t;break;case 1:this._point=2,this._x3=e,this._y3=t;break;case 2:this._point=3,this._x4=e,this._y4=t,this._context.moveTo((this._x0+4*this._x1+e)/6,(this._y0+4*this._y1+t)/6);break;default:rm(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function LJ(e){return new z5(e)}function B5(e){this._context=e}B5.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var n=(this._x0+4*this._x1+e)/6,r=(this._y0+4*this._y1+t)/6;this._line?this._context.lineTo(n,r):this._context.moveTo(n,r);break;case 3:this._point=4;default:rm(this,e,t);break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t}};function zJ(e){return new B5(e)}function I5(e){this._context=e}I5.prototype={areaStart:nm,areaEnd:nm,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(e,t){e=+e,t=+t,this._point?this._context.lineTo(e,t):(this._point=1,this._context.moveTo(e,t))}};function BJ(e){return new I5(e)}function KE(e){return e<0?-1:1}function YE(e,t,n){var r=e._x1-e._x0,a=t-e._x1,i=(e._y1-e._y0)/(r||a<0&&-0),s=(n-e._y1)/(a||r<0&&-0),o=(i*a+s*r)/(r+a);return(KE(i)+KE(s))*Math.min(Math.abs(i),Math.abs(s),.5*Math.abs(o))||0}function XE(e,t){var n=e._x1-e._x0;return n?(3*(e._y1-e._y0)/n-t)/2:t}function Hg(e,t,n){var r=e._x0,a=e._y0,i=e._x1,s=e._y1,o=(i-r)/3;e._context.bezierCurveTo(r+o,a+o*t,i-o,s-o*n,i,s)}function am(e){this._context=e}am.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:Hg(this,this._t0,XE(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(e,t){var n=NaN;if(e=+e,t=+t,!(e===this._x1&&t===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;break;case 2:this._point=3,Hg(this,XE(this,n=YE(this,e,t)),n);break;default:Hg(this,this._t0,n=YE(this,e,t));break}this._x0=this._x1,this._x1=e,this._y0=this._y1,this._y1=t,this._t0=n}}};function U5(e){this._context=new q5(e)}(U5.prototype=Object.create(am.prototype)).point=function(e,t){am.prototype.point.call(this,t,e)};function q5(e){this._context=e}q5.prototype={moveTo:function(e,t){this._context.moveTo(t,e)},closePath:function(){this._context.closePath()},lineTo:function(e,t){this._context.lineTo(t,e)},bezierCurveTo:function(e,t,n,r,a,i){this._context.bezierCurveTo(t,e,r,n,i,a)}};function IJ(e){return new am(e)}function UJ(e){return new U5(e)}function V5(e){this._context=e}V5.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,n=e.length;if(n)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),n===2)this._context.lineTo(e[1],t[1]);else for(var r=WE(e),a=WE(t),i=0,s=1;s<n;++i,++s)this._context.bezierCurveTo(r[0][i],a[0][i],r[1][i],a[1][i],e[s],t[s]);(this._line||this._line!==0&&n===1)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(e,t){this._x.push(+e),this._y.push(+t)}};function WE(e){var t,n=e.length-1,r,a=new Array(n),i=new Array(n),s=new Array(n);for(a[0]=0,i[0]=2,s[0]=e[0]+2*e[1],t=1;t<n-1;++t)a[t]=1,i[t]=4,s[t]=4*e[t]+2*e[t+1];for(a[n-1]=2,i[n-1]=7,s[n-1]=8*e[n-1]+e[n],t=1;t<n;++t)r=a[t]/i[t-1],i[t]-=r,s[t]-=r*s[t-1];for(a[n-1]=s[n-1]/i[n-1],t=n-2;t>=0;--t)a[t]=(s[t]-a[t+1])/i[t];for(i[n-1]=(e[n]+a[n-1])/2,t=0;t<n-1;++t)i[t]=2*e[t+1]-a[t+1];return[a,i]}function qJ(e){return new V5(e)}function rv(e,t){this._context=e,this._t=t}rv.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=this._y=NaN,this._point=0},lineEnd:function(){0<this._t&&this._t<1&&this._point===2&&this._context.lineTo(this._x,this._y),(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line>=0&&(this._t=1-this._t,this._line=1-this._line)},point:function(e,t){switch(e=+e,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(e,t):this._context.moveTo(e,t);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,t),this._context.lineTo(e,t);else{var n=this._x*(1-this._t)+e*this._t;this._context.lineTo(n,this._y),this._context.lineTo(n,t)}break}}this._x=e,this._y=t}};function VJ(e){return new rv(e,.5)}function HJ(e){return new rv(e,0)}function FJ(e){return new rv(e,1)}function Vl(e,t){if((s=e.length)>1)for(var n=1,r,a,i=e[t[0]],s,o=i.length;n<s;++n)for(a=i,i=e[t[n]],r=0;r<o;++r)i[r][1]+=i[r][0]=isNaN(a[r][1])?a[r][0]:a[r][1]}function ux(e){for(var t=e.length,n=new Array(t);--t>=0;)n[t]=t;return n}function GJ(e,t){return e[t]}function KJ(e){const t=[];return t.key=e,t}function YJ(){var e=We([]),t=ux,n=Vl,r=GJ;function a(i){var s=Array.from(e.apply(this,arguments),KJ),o,l=s.length,c=-1,f;for(const d of i)for(o=0,++c;o<l;++o)(s[o][c]=[0,+r(d,s[o].key,c,i)]).data=d;for(o=0,f=Zw(t(s));o<l;++o)s[f[o]].index=o;return n(s,f),s}return a.keys=function(i){return arguments.length?(e=typeof i=="function"?i:We(Array.from(i)),a):e},a.value=function(i){return arguments.length?(r=typeof i=="function"?i:We(+i),a):r},a.order=function(i){return arguments.length?(t=i==null?ux:typeof i=="function"?i:We(Array.from(i)),a):t},a.offset=function(i){return arguments.length?(n=i??Vl,a):n},a}function XJ(e,t){if((r=e.length)>0){for(var n,r,a=0,i=e[0].length,s;a<i;++a){for(s=n=0;n<r;++n)s+=e[n][a][1]||0;if(s)for(n=0;n<r;++n)e[n][a][1]/=s}Vl(e,t)}}function WJ(e,t){if((a=e.length)>0){for(var n=0,r=e[t[0]],a,i=r.length;n<i;++n){for(var s=0,o=0;s<a;++s)o+=e[s][n][1]||0;r[n][1]+=r[n][0]=-o/2}Vl(e,t)}}function QJ(e,t){if(!(!((s=e.length)>0)||!((i=(a=e[t[0]]).length)>0))){for(var n=0,r=1,a,i,s;r<i;++r){for(var o=0,l=0,c=0;o<s;++o){for(var f=e[t[o]],d=f[r][1]||0,h=f[r-1][1]||0,p=(d-h)/2,v=0;v<o;++v){var y=e[t[v]],b=y[r][1]||0,m=y[r-1][1]||0;p+=b-m}l+=d,c+=p*d}a[r-1][1]+=a[r-1][0]=n,l&&(n-=c/l)}a[r-1][1]+=a[r-1][0]=n,Vl(e,t)}}function Sf(e){"@babel/helpers - typeof";return Sf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Sf(e)}var ZJ=["type","size","sizeType"];function fx(){return fx=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},fx.apply(this,arguments)}function QE(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function ZE(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?QE(Object(n),!0).forEach(function(r){JJ(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):QE(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function JJ(e,t,n){return t=eee(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function eee(e){var t=tee(e,"string");return Sf(t)=="symbol"?t:t+""}function tee(e,t){if(Sf(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Sf(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function nee(e,t){if(e==null)return{};var n=ree(e,t),r,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)r=i[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function ree(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}var H5={symbolCircle:Jw,symbolCross:AJ,symbolDiamond:EJ,symbolSquare:TJ,symbolStar:PJ,symbolTriangle:MJ,symbolWye:DJ},aee=Math.PI/180,iee=function(t){var n="symbol".concat(ev(t));return H5[n]||Jw},see=function(t,n,r){if(n==="area")return t;switch(r){case"cross":return 5*t*t/9;case"diamond":return .5*t*t/Math.sqrt(3);case"square":return t*t;case"star":{var a=18*aee;return 1.25*t*t*(Math.tan(a)-Math.tan(a*2)*Math.pow(Math.tan(a),2))}case"triangle":return Math.sqrt(3)*t*t/4;case"wye":return(21-10*Math.sqrt(3))*t*t/8;default:return Math.PI*t*t/4}},oee=function(t,n){H5["symbol".concat(ev(t))]=n},ej=function(t){var n=t.type,r=n===void 0?"circle":n,a=t.size,i=a===void 0?64:a,s=t.sizeType,o=s===void 0?"area":s,l=nee(t,ZJ),c=ZE(ZE({},l),{},{type:r,size:i,sizeType:o}),f=function(){var b=iee(r),m=$J().type(b).size(see(i,o,r));return m()},d=c.className,h=c.cx,p=c.cy,v=ie(c,!0);return h===+h&&p===+p&&i===+i?N.createElement("path",fx({},v,{className:ye("recharts-symbols",d),transform:"translate(".concat(h,", ").concat(p,")"),d:f()})):null};ej.registerSymbol=oee;function Hl(e){"@babel/helpers - typeof";return Hl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Hl(e)}function dx(){return dx=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},dx.apply(this,arguments)}function JE(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function lee(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?JE(Object(n),!0).forEach(function(r){wf(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):JE(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function cee(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function uee(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,G5(r.key),r)}}function fee(e,t,n){return t&&uee(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function dee(e,t,n){return t=im(t),hee(e,F5()?Reflect.construct(t,n||[],im(e).constructor):t.apply(e,n))}function hee(e,t){if(t&&(Hl(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return pee(e)}function pee(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function F5(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(F5=function(){return!!e})()}function im(e){return im=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},im(e)}function mee(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&hx(e,t)}function hx(e,t){return hx=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},hx(e,t)}function wf(e,t,n){return t=G5(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function G5(e){var t=yee(e,"string");return Hl(t)=="symbol"?t:t+""}function yee(e,t){if(Hl(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Hl(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var nr=32,tj=function(e){function t(){return cee(this,t),dee(this,t,arguments)}return mee(t,e),fee(t,[{key:"renderIcon",value:function(r){var a=this.props.inactiveColor,i=nr/2,s=nr/6,o=nr/3,l=r.inactive?a:r.color;if(r.type==="plainline")return N.createElement("line",{strokeWidth:4,fill:"none",stroke:l,strokeDasharray:r.payload.strokeDasharray,x1:0,y1:i,x2:nr,y2:i,className:"recharts-legend-icon"});if(r.type==="line")return N.createElement("path",{strokeWidth:4,fill:"none",stroke:l,d:"M0,".concat(i,"h").concat(o,`
            A`).concat(s,",").concat(s,",0,1,1,").concat(2*o,",").concat(i,`
            H`).concat(nr,"M").concat(2*o,",").concat(i,`
            A`).concat(s,",").concat(s,",0,1,1,").concat(o,",").concat(i),className:"recharts-legend-icon"});if(r.type==="rect")return N.createElement("path",{stroke:"none",fill:l,d:"M0,".concat(nr/8,"h").concat(nr,"v").concat(nr*3/4,"h").concat(-nr,"z"),className:"recharts-legend-icon"});if(N.isValidElement(r.legendIcon)){var c=lee({},r);return delete c.legendIcon,N.cloneElement(r.legendIcon,c)}return N.createElement(ej,{fill:l,cx:i,cy:i,size:nr,sizeType:"diameter",type:r.type})}},{key:"renderItems",value:function(){var r=this,a=this.props,i=a.payload,s=a.iconSize,o=a.layout,l=a.formatter,c=a.inactiveColor,f={x:0,y:0,width:nr,height:nr},d={display:o==="horizontal"?"inline-block":"block",marginRight:10},h={display:"inline-block",verticalAlign:"middle",marginRight:4};return i.map(function(p,v){var y=p.formatter||l,b=ye(wf(wf({"recharts-legend-item":!0},"legend-item-".concat(v),!0),"inactive",p.inactive));if(p.type==="none")return null;var m=de(p.value)?null:p.value;Dr(!de(p.value),`The name property is also required when using a function for the dataKey of a chart's cartesian components. Ex: <Bar name="Name of my Data"/>`);var g=p.inactive?c:p.color;return N.createElement("li",dx({className:b,style:d,key:"legend-item-".concat(v)},no(r.props,p,v)),N.createElement(rx,{width:s,height:s,viewBox:f,style:h},r.renderIcon(p)),N.createElement("span",{className:"recharts-legend-item-text",style:{color:g}},y?y(m,p,v):m))})}},{key:"render",value:function(){var r=this.props,a=r.payload,i=r.layout,s=r.align;if(!a||!a.length)return null;var o={padding:0,margin:0,textAlign:i==="horizontal"?s:"left"};return N.createElement("ul",{className:"recharts-default-legend",style:o},this.renderItems())}}])}(A.PureComponent);wf(tj,"displayName","Legend");wf(tj,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"middle",inactiveColor:"#ccc"});var vee=Uy;function gee(){this.__data__=new vee,this.size=0}var bee=gee;function xee(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}var See=xee;function wee(e){return this.__data__.get(e)}var jee=wee;function Aee(e){return this.__data__.has(e)}var Oee=Aee,Eee=Uy,Tee=qw,Nee=Vw,_ee=200;function Cee(e,t){var n=this.__data__;if(n instanceof Eee){var r=n.__data__;if(!Tee||r.length<_ee-1)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Nee(r)}return n.set(e,t),this.size=n.size,this}var Pee=Cee,Mee=Uy,Ree=bee,Dee=See,$ee=jee,kee=Oee,Lee=Pee;function kc(e){var t=this.__data__=new Mee(e);this.size=t.size}kc.prototype.clear=Ree;kc.prototype.delete=Dee;kc.prototype.get=$ee;kc.prototype.has=kee;kc.prototype.set=Lee;var K5=kc,zee="__lodash_hash_undefined__";function Bee(e){return this.__data__.set(e,zee),this}var Iee=Bee;function Uee(e){return this.__data__.has(e)}var qee=Uee,Vee=Vw,Hee=Iee,Fee=qee;function sm(e){var t=-1,n=e==null?0:e.length;for(this.__data__=new Vee;++t<n;)this.add(e[t])}sm.prototype.add=sm.prototype.push=Hee;sm.prototype.has=Fee;var Y5=sm;function Gee(e,t){for(var n=-1,r=e==null?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}var X5=Gee;function Kee(e,t){return e.has(t)}var W5=Kee,Yee=Y5,Xee=X5,Wee=W5,Qee=1,Zee=2;function Jee(e,t,n,r,a,i){var s=n&Qee,o=e.length,l=t.length;if(o!=l&&!(s&&l>o))return!1;var c=i.get(e),f=i.get(t);if(c&&f)return c==t&&f==e;var d=-1,h=!0,p=n&Zee?new Yee:void 0;for(i.set(e,t),i.set(t,e);++d<o;){var v=e[d],y=t[d];if(r)var b=s?r(y,v,d,t,e,i):r(v,y,d,e,t,i);if(b!==void 0){if(b)continue;h=!1;break}if(p){if(!Xee(t,function(m,g){if(!Wee(p,g)&&(v===m||a(v,m,n,r,i)))return p.push(g)})){h=!1;break}}else if(!(v===y||a(v,y,n,r,i))){h=!1;break}}return i.delete(e),i.delete(t),h}var Q5=Jee,ete=ca,tte=ete.Uint8Array,nte=tte;function rte(e){var t=-1,n=Array(e.size);return e.forEach(function(r,a){n[++t]=[a,r]}),n}var ate=rte;function ite(e){var t=-1,n=Array(e.size);return e.forEach(function(r){n[++t]=r}),n}var nj=ite,eT=Md,tT=nte,ste=Uw,ote=Q5,lte=ate,cte=nj,ute=1,fte=2,dte="[object Boolean]",hte="[object Date]",pte="[object Error]",mte="[object Map]",yte="[object Number]",vte="[object RegExp]",gte="[object Set]",bte="[object String]",xte="[object Symbol]",Ste="[object ArrayBuffer]",wte="[object DataView]",nT=eT?eT.prototype:void 0,Fg=nT?nT.valueOf:void 0;function jte(e,t,n,r,a,i,s){switch(n){case wte:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case Ste:return!(e.byteLength!=t.byteLength||!i(new tT(e),new tT(t)));case dte:case hte:case yte:return ste(+e,+t);case pte:return e.name==t.name&&e.message==t.message;case vte:case bte:return e==t+"";case mte:var o=lte;case gte:var l=r&ute;if(o||(o=cte),e.size!=t.size&&!l)return!1;var c=s.get(e);if(c)return c==t;r|=fte,s.set(e,t);var f=ote(o(e),o(t),r,a,i,s);return s.delete(e),f;case xte:if(Fg)return Fg.call(e)==Fg.call(t)}return!1}var Ate=jte;function Ote(e,t){for(var n=-1,r=t.length,a=e.length;++n<r;)e[a+n]=t[n];return e}var Z5=Ote,Ete=Z5,Tte=Cn;function Nte(e,t,n){var r=t(e);return Tte(e)?r:Ete(r,n(e))}var _te=Nte;function Cte(e,t){for(var n=-1,r=e==null?0:e.length,a=0,i=[];++n<r;){var s=e[n];t(s,n,e)&&(i[a++]=s)}return i}var Pte=Cte;function Mte(){return[]}var Rte=Mte,Dte=Pte,$te=Rte,kte=Object.prototype,Lte=kte.propertyIsEnumerable,rT=Object.getOwnPropertySymbols,zte=rT?function(e){return e==null?[]:(e=Object(e),Dte(rT(e),function(t){return Lte.call(e,t)}))}:$te,Bte=zte;function Ite(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}var Ute=Ite,qte=Za,Vte=Ja,Hte="[object Arguments]";function Fte(e){return Vte(e)&&qte(e)==Hte}var Gte=Fte,aT=Gte,Kte=Ja,J5=Object.prototype,Yte=J5.hasOwnProperty,Xte=J5.propertyIsEnumerable,Wte=aT(function(){return arguments}())?aT:function(e){return Kte(e)&&Yte.call(e,"callee")&&!Xte.call(e,"callee")},rj=Wte,om={exports:{}};function Qte(){return!1}var Zte=Qte;om.exports;(function(e,t){var n=ca,r=Zte,a=t&&!t.nodeType&&t,i=a&&!0&&e&&!e.nodeType&&e,s=i&&i.exports===a,o=s?n.Buffer:void 0,l=o?o.isBuffer:void 0,c=l||r;e.exports=c})(om,om.exports);var e4=om.exports,Jte=9007199254740991,ene=/^(?:0|[1-9]\d*)$/;function tne(e,t){var n=typeof e;return t=t??Jte,!!t&&(n=="number"||n!="symbol"&&ene.test(e))&&e>-1&&e%1==0&&e<t}var aj=tne,nne=9007199254740991;function rne(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=nne}var ij=rne,ane=Za,ine=ij,sne=Ja,one="[object Arguments]",lne="[object Array]",cne="[object Boolean]",une="[object Date]",fne="[object Error]",dne="[object Function]",hne="[object Map]",pne="[object Number]",mne="[object Object]",yne="[object RegExp]",vne="[object Set]",gne="[object String]",bne="[object WeakMap]",xne="[object ArrayBuffer]",Sne="[object DataView]",wne="[object Float32Array]",jne="[object Float64Array]",Ane="[object Int8Array]",One="[object Int16Array]",Ene="[object Int32Array]",Tne="[object Uint8Array]",Nne="[object Uint8ClampedArray]",_ne="[object Uint16Array]",Cne="[object Uint32Array]",et={};et[wne]=et[jne]=et[Ane]=et[One]=et[Ene]=et[Tne]=et[Nne]=et[_ne]=et[Cne]=!0;et[one]=et[lne]=et[xne]=et[cne]=et[Sne]=et[une]=et[fne]=et[dne]=et[hne]=et[pne]=et[mne]=et[yne]=et[vne]=et[gne]=et[bne]=!1;function Pne(e){return sne(e)&&ine(e.length)&&!!et[ane(e)]}var Mne=Pne;function Rne(e){return function(t){return e(t)}}var t4=Rne,lm={exports:{}};lm.exports;(function(e,t){var n=l5,r=t&&!t.nodeType&&t,a=r&&!0&&e&&!e.nodeType&&e,i=a&&a.exports===r,s=i&&n.process,o=function(){try{var l=a&&a.require&&a.require("util").types;return l||s&&s.binding&&s.binding("util")}catch{}}();e.exports=o})(lm,lm.exports);var Dne=lm.exports,$ne=Mne,kne=t4,iT=Dne,sT=iT&&iT.isTypedArray,Lne=sT?kne(sT):$ne,n4=Lne,zne=Ute,Bne=rj,Ine=Cn,Une=e4,qne=aj,Vne=n4,Hne=Object.prototype,Fne=Hne.hasOwnProperty;function Gne(e,t){var n=Ine(e),r=!n&&Bne(e),a=!n&&!r&&Une(e),i=!n&&!r&&!a&&Vne(e),s=n||r||a||i,o=s?zne(e.length,String):[],l=o.length;for(var c in e)(t||Fne.call(e,c))&&!(s&&(c=="length"||a&&(c=="offset"||c=="parent")||i&&(c=="buffer"||c=="byteLength"||c=="byteOffset")||qne(c,l)))&&o.push(c);return o}var Kne=Gne,Yne=Object.prototype;function Xne(e){var t=e&&e.constructor,n=typeof t=="function"&&t.prototype||Yne;return e===n}var Wne=Xne;function Qne(e,t){return function(n){return e(t(n))}}var r4=Qne,Zne=r4,Jne=Zne(Object.keys,Object),ere=Jne,tre=Wne,nre=ere,rre=Object.prototype,are=rre.hasOwnProperty;function ire(e){if(!tre(e))return nre(e);var t=[];for(var n in Object(e))are.call(e,n)&&n!="constructor"&&t.push(n);return t}var sre=ire,ore=Iw,lre=ij;function cre(e){return e!=null&&lre(e.length)&&!ore(e)}var Rd=cre,ure=Kne,fre=sre,dre=Rd;function hre(e){return dre(e)?ure(e):fre(e)}var av=hre,pre=_te,mre=Bte,yre=av;function vre(e){return pre(e,yre,mre)}var gre=vre,oT=gre,bre=1,xre=Object.prototype,Sre=xre.hasOwnProperty;function wre(e,t,n,r,a,i){var s=n&bre,o=oT(e),l=o.length,c=oT(t),f=c.length;if(l!=f&&!s)return!1;for(var d=l;d--;){var h=o[d];if(!(s?h in t:Sre.call(t,h)))return!1}var p=i.get(e),v=i.get(t);if(p&&v)return p==t&&v==e;var y=!0;i.set(e,t),i.set(t,e);for(var b=s;++d<l;){h=o[d];var m=e[h],g=t[h];if(r)var x=s?r(g,m,h,t,e,i):r(m,g,h,e,t,i);if(!(x===void 0?m===g||a(m,g,n,r,i):x)){y=!1;break}b||(b=h=="constructor")}if(y&&!b){var w=e.constructor,S=t.constructor;w!=S&&"constructor"in e&&"constructor"in t&&!(typeof w=="function"&&w instanceof w&&typeof S=="function"&&S instanceof S)&&(y=!1)}return i.delete(e),i.delete(t),y}var jre=wre,Are=yo,Ore=ca,Ere=Are(Ore,"DataView"),Tre=Ere,Nre=yo,_re=ca,Cre=Nre(_re,"Promise"),Pre=Cre,Mre=yo,Rre=ca,Dre=Mre(Rre,"Set"),a4=Dre,$re=yo,kre=ca,Lre=$re(kre,"WeakMap"),zre=Lre,px=Tre,mx=qw,yx=Pre,vx=a4,gx=zre,i4=Za,Lc=u5,lT="[object Map]",Bre="[object Object]",cT="[object Promise]",uT="[object Set]",fT="[object WeakMap]",dT="[object DataView]",Ire=Lc(px),Ure=Lc(mx),qre=Lc(yx),Vre=Lc(vx),Hre=Lc(gx),ys=i4;(px&&ys(new px(new ArrayBuffer(1)))!=dT||mx&&ys(new mx)!=lT||yx&&ys(yx.resolve())!=cT||vx&&ys(new vx)!=uT||gx&&ys(new gx)!=fT)&&(ys=function(e){var t=i4(e),n=t==Bre?e.constructor:void 0,r=n?Lc(n):"";if(r)switch(r){case Ire:return dT;case Ure:return lT;case qre:return cT;case Vre:return uT;case Hre:return fT}return t});var Fre=ys,Gg=K5,Gre=Q5,Kre=Ate,Yre=jre,hT=Fre,pT=Cn,mT=e4,Xre=n4,Wre=1,yT="[object Arguments]",vT="[object Array]",vh="[object Object]",Qre=Object.prototype,gT=Qre.hasOwnProperty;function Zre(e,t,n,r,a,i){var s=pT(e),o=pT(t),l=s?vT:hT(e),c=o?vT:hT(t);l=l==yT?vh:l,c=c==yT?vh:c;var f=l==vh,d=c==vh,h=l==c;if(h&&mT(e)){if(!mT(t))return!1;s=!0,f=!1}if(h&&!f)return i||(i=new Gg),s||Xre(e)?Gre(e,t,n,r,a,i):Kre(e,t,l,n,r,a,i);if(!(n&Wre)){var p=f&&gT.call(e,"__wrapped__"),v=d&&gT.call(t,"__wrapped__");if(p||v){var y=p?e.value():e,b=v?t.value():t;return i||(i=new Gg),a(y,b,n,r,i)}}return h?(i||(i=new Gg),Yre(e,t,n,r,a,i)):!1}var Jre=Zre,eae=Jre,bT=Ja;function s4(e,t,n,r,a){return e===t?!0:e==null||t==null||!bT(e)&&!bT(t)?e!==e&&t!==t:eae(e,t,n,r,s4,a)}var sj=s4,tae=K5,nae=sj,rae=1,aae=2;function iae(e,t,n,r){var a=n.length,i=a,s=!r;if(e==null)return!i;for(e=Object(e);a--;){var o=n[a];if(s&&o[2]?o[1]!==e[o[0]]:!(o[0]in e))return!1}for(;++a<i;){o=n[a];var l=o[0],c=e[l],f=o[1];if(s&&o[2]){if(c===void 0&&!(l in e))return!1}else{var d=new tae;if(r)var h=r(c,f,l,e,t,d);if(!(h===void 0?nae(f,c,rae|aae,r,d):h))return!1}}return!0}var sae=iae,oae=Zi;function lae(e){return e===e&&!oae(e)}var o4=lae,cae=o4,uae=av;function fae(e){for(var t=uae(e),n=t.length;n--;){var r=t[n],a=e[r];t[n]=[r,a,cae(a)]}return t}var dae=fae;function hae(e,t){return function(n){return n==null?!1:n[e]===t&&(t!==void 0||e in Object(n))}}var l4=hae,pae=sae,mae=dae,yae=l4;function vae(e){var t=mae(e);return t.length==1&&t[0][2]?yae(t[0][0],t[0][1]):function(n){return n===e||pae(n,e,t)}}var gae=vae;function bae(e,t){return e!=null&&t in Object(e)}var xae=bae,Sae=m5,wae=rj,jae=Cn,Aae=aj,Oae=ij,Eae=Vy;function Tae(e,t,n){t=Sae(t,e);for(var r=-1,a=t.length,i=!1;++r<a;){var s=Eae(t[r]);if(!(i=e!=null&&n(e,s)))break;e=e[s]}return i||++r!=a?i:(a=e==null?0:e.length,!!a&&Oae(a)&&Aae(s,a)&&(jae(e)||wae(e)))}var Nae=Tae,_ae=xae,Cae=Nae;function Pae(e,t){return e!=null&&Cae(e,t,_ae)}var Mae=Pae,Rae=sj,Dae=y5,$ae=Mae,kae=Bw,Lae=o4,zae=l4,Bae=Vy,Iae=1,Uae=2;function qae(e,t){return kae(e)&&Lae(t)?zae(Bae(e),t):function(n){var r=Dae(n,e);return r===void 0&&r===t?$ae(n,e):Rae(t,r,Iae|Uae)}}var Vae=qae;function Hae(e){return e}var zc=Hae;function Fae(e){return function(t){return t==null?void 0:t[e]}}var Gae=Fae,Kae=Gw;function Yae(e){return function(t){return Kae(t,e)}}var Xae=Yae,Wae=Gae,Qae=Xae,Zae=Bw,Jae=Vy;function eie(e){return Zae(e)?Wae(Jae(e)):Qae(e)}var tie=eie,nie=gae,rie=Vae,aie=zc,iie=Cn,sie=tie;function oie(e){return typeof e=="function"?e:e==null?aie:typeof e=="object"?iie(e)?rie(e[0],e[1]):nie(e):sie(e)}var ua=oie;function lie(e,t,n,r){for(var a=e.length,i=n+(r?1:-1);r?i--:++i<a;)if(t(e[i],i,e))return i;return-1}var c4=lie;function cie(e){return e!==e}var uie=cie;function fie(e,t,n){for(var r=n-1,a=e.length;++r<a;)if(e[r]===t)return r;return-1}var die=fie,hie=c4,pie=uie,mie=die;function yie(e,t,n){return t===t?mie(e,t,n):hie(e,pie,n)}var vie=yie,gie=vie;function bie(e,t){var n=e==null?0:e.length;return!!n&&gie(e,t,0)>-1}var xie=bie;function Sie(e,t,n){for(var r=-1,a=e==null?0:e.length;++r<a;)if(n(t,e[r]))return!0;return!1}var wie=Sie;function jie(){}var Aie=jie,Kg=a4,Oie=Aie,Eie=nj,Tie=1/0,Nie=Kg&&1/Eie(new Kg([,-0]))[1]==Tie?function(e){return new Kg(e)}:Oie,_ie=Nie,Cie=Y5,Pie=xie,Mie=wie,Rie=W5,Die=_ie,$ie=nj,kie=200;function Lie(e,t,n){var r=-1,a=Pie,i=e.length,s=!0,o=[],l=o;if(n)s=!1,a=Mie;else if(i>=kie){var c=t?null:Die(e);if(c)return $ie(c);s=!1,a=Rie,l=new Cie}else l=t?[]:o;e:for(;++r<i;){var f=e[r],d=t?t(f):f;if(f=n||f!==0?f:0,s&&d===d){for(var h=l.length;h--;)if(l[h]===d)continue e;t&&l.push(d),o.push(f)}else a(l,d,n)||(l!==o&&l.push(d),o.push(f))}return o}var zie=Lie,Bie=ua,Iie=zie;function Uie(e,t){return e&&e.length?Iie(e,Bie(t)):[]}var qie=Uie;const xT=ze(qie);function u4(e,t,n){return t===!0?xT(e,n):de(t)?xT(e,t):e}function Fl(e){"@babel/helpers - typeof";return Fl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Fl(e)}var Vie=["ref"];function ST(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function va(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?ST(Object(n),!0).forEach(function(r){iv(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ST(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Hie(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function wT(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,d4(r.key),r)}}function Fie(e,t,n){return t&&wT(e.prototype,t),n&&wT(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Gie(e,t,n){return t=cm(t),Kie(e,f4()?Reflect.construct(t,n||[],cm(e).constructor):t.apply(e,n))}function Kie(e,t){if(t&&(Fl(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Yie(e)}function Yie(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function f4(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(f4=function(){return!!e})()}function cm(e){return cm=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},cm(e)}function Xie(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&bx(e,t)}function bx(e,t){return bx=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},bx(e,t)}function iv(e,t,n){return t=d4(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function d4(e){var t=Wie(e,"string");return Fl(t)=="symbol"?t:t+""}function Wie(e,t){if(Fl(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Fl(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function Qie(e,t){if(e==null)return{};var n=Zie(e,t),r,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)r=i[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Zie(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function Jie(e){return e.value}function ese(e,t){if(N.isValidElement(e))return N.cloneElement(e,t);if(typeof e=="function")return N.createElement(e,t);t.ref;var n=Qie(t,Vie);return N.createElement(tj,n)}var jT=1,Wr=function(e){function t(){var n;Hie(this,t);for(var r=arguments.length,a=new Array(r),i=0;i<r;i++)a[i]=arguments[i];return n=Gie(this,t,[].concat(a)),iv(n,"lastBoundingBox",{width:-1,height:-1}),n}return Xie(t,e),Fie(t,[{key:"componentDidMount",value:function(){this.updateBBox()}},{key:"componentDidUpdate",value:function(){this.updateBBox()}},{key:"getBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var r=this.wrapperNode.getBoundingClientRect();return r.height=this.wrapperNode.offsetHeight,r.width=this.wrapperNode.offsetWidth,r}return null}},{key:"updateBBox",value:function(){var r=this.props.onBBoxUpdate,a=this.getBBox();a?(Math.abs(a.width-this.lastBoundingBox.width)>jT||Math.abs(a.height-this.lastBoundingBox.height)>jT)&&(this.lastBoundingBox.width=a.width,this.lastBoundingBox.height=a.height,r&&r(a)):(this.lastBoundingBox.width!==-1||this.lastBoundingBox.height!==-1)&&(this.lastBoundingBox.width=-1,this.lastBoundingBox.height=-1,r&&r(null))}},{key:"getBBoxSnapshot",value:function(){return this.lastBoundingBox.width>=0&&this.lastBoundingBox.height>=0?va({},this.lastBoundingBox):{width:0,height:0}}},{key:"getDefaultPosition",value:function(r){var a=this.props,i=a.layout,s=a.align,o=a.verticalAlign,l=a.margin,c=a.chartWidth,f=a.chartHeight,d,h;if(!r||(r.left===void 0||r.left===null)&&(r.right===void 0||r.right===null))if(s==="center"&&i==="vertical"){var p=this.getBBoxSnapshot();d={left:((c||0)-p.width)/2}}else d=s==="right"?{right:l&&l.right||0}:{left:l&&l.left||0};if(!r||(r.top===void 0||r.top===null)&&(r.bottom===void 0||r.bottom===null))if(o==="middle"){var v=this.getBBoxSnapshot();h={top:((f||0)-v.height)/2}}else h=o==="bottom"?{bottom:l&&l.bottom||0}:{top:l&&l.top||0};return va(va({},d),h)}},{key:"render",value:function(){var r=this,a=this.props,i=a.content,s=a.width,o=a.height,l=a.wrapperStyle,c=a.payloadUniqBy,f=a.payload,d=va(va({position:"absolute",width:s||"auto",height:o||"auto"},this.getDefaultPosition(l)),l);return N.createElement("div",{className:"recharts-legend-wrapper",style:d,ref:function(p){r.wrapperNode=p}},ese(i,va(va({},this.props),{},{payload:u4(f,c,Jie)})))}}],[{key:"getWithHeight",value:function(r,a){var i=va(va({},this.defaultProps),r.props),s=i.layout;return s==="vertical"&&F(r.props.height)?{height:r.props.height}:s==="horizontal"?{width:r.props.width||a}:null}}])}(A.PureComponent);iv(Wr,"displayName","Legend");iv(Wr,"defaultProps",{iconSize:14,layout:"horizontal",align:"center",verticalAlign:"bottom"});var AT=Md,tse=rj,nse=Cn,OT=AT?AT.isConcatSpreadable:void 0;function rse(e){return nse(e)||tse(e)||!!(OT&&e&&e[OT])}var ase=rse,ise=Z5,sse=ase;function h4(e,t,n,r,a){var i=-1,s=e.length;for(n||(n=sse),a||(a=[]);++i<s;){var o=e[i];t>0&&n(o)?t>1?h4(o,t-1,n,r,a):ise(a,o):r||(a[a.length]=o)}return a}var p4=h4;function ose(e){return function(t,n,r){for(var a=-1,i=Object(t),s=r(t),o=s.length;o--;){var l=s[e?o:++a];if(n(i[l],l,i)===!1)break}return t}}var lse=ose,cse=lse,use=cse(),fse=use,dse=fse,hse=av;function pse(e,t){return e&&dse(e,t,hse)}var m4=pse,mse=Rd;function yse(e,t){return function(n,r){if(n==null)return n;if(!mse(n))return e(n,r);for(var a=n.length,i=t?a:-1,s=Object(n);(t?i--:++i<a)&&r(s[i],i,s)!==!1;);return n}}var vse=yse,gse=m4,bse=vse,xse=bse(gse),oj=xse,Sse=oj,wse=Rd;function jse(e,t){var n=-1,r=wse(e)?Array(e.length):[];return Sse(e,function(a,i,s){r[++n]=t(a,i,s)}),r}var y4=jse;function Ase(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}var Ose=Ase,ET=Cc;function Ese(e,t){if(e!==t){var n=e!==void 0,r=e===null,a=e===e,i=ET(e),s=t!==void 0,o=t===null,l=t===t,c=ET(t);if(!o&&!c&&!i&&e>t||i&&s&&l&&!o&&!c||r&&s&&l||!n&&l||!a)return 1;if(!r&&!i&&!c&&e<t||c&&n&&a&&!r&&!i||o&&n&&a||!s&&a||!l)return-1}return 0}var Tse=Ese,Nse=Tse;function _se(e,t,n){for(var r=-1,a=e.criteria,i=t.criteria,s=a.length,o=n.length;++r<s;){var l=Nse(a[r],i[r]);if(l){if(r>=o)return l;var c=n[r];return l*(c=="desc"?-1:1)}}return e.index-t.index}var Cse=_se,Yg=Fw,Pse=Gw,Mse=ua,Rse=y4,Dse=Ose,$se=t4,kse=Cse,Lse=zc,zse=Cn;function Bse(e,t,n){t.length?t=Yg(t,function(i){return zse(i)?function(s){return Pse(s,i.length===1?i[0]:i)}:i}):t=[Lse];var r=-1;t=Yg(t,$se(Mse));var a=Rse(e,function(i,s,o){var l=Yg(t,function(c){return c(i)});return{criteria:l,index:++r,value:i}});return Dse(a,function(i,s){return kse(i,s,n)})}var Ise=Bse;function Use(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}var qse=Use,Vse=qse,TT=Math.max;function Hse(e,t,n){return t=TT(t===void 0?e.length-1:t,0),function(){for(var r=arguments,a=-1,i=TT(r.length-t,0),s=Array(i);++a<i;)s[a]=r[t+a];a=-1;for(var o=Array(t+1);++a<t;)o[a]=r[a];return o[t]=n(s),Vse(e,this,o)}}var Fse=Hse;function Gse(e){return function(){return e}}var Kse=Gse,Yse=yo,Xse=function(){try{var e=Yse(Object,"defineProperty");return e({},"",{}),e}catch{}}(),v4=Xse,Wse=Kse,NT=v4,Qse=zc,Zse=NT?function(e,t){return NT(e,"toString",{configurable:!0,enumerable:!1,value:Wse(t),writable:!0})}:Qse,Jse=Zse,eoe=800,toe=16,noe=Date.now;function roe(e){var t=0,n=0;return function(){var r=noe(),a=toe-(r-n);if(n=r,a>0){if(++t>=eoe)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var aoe=roe,ioe=Jse,soe=aoe,ooe=soe(ioe),loe=ooe,coe=zc,uoe=Fse,foe=loe;function doe(e,t){return foe(uoe(e,t,coe),e+"")}var hoe=doe,poe=Uw,moe=Rd,yoe=aj,voe=Zi;function goe(e,t,n){if(!voe(n))return!1;var r=typeof t;return(r=="number"?moe(n)&&yoe(t,n.length):r=="string"&&t in n)?poe(n[t],e):!1}var sv=goe,boe=p4,xoe=Ise,Soe=hoe,_T=sv,woe=Soe(function(e,t){if(e==null)return[];var n=t.length;return n>1&&_T(e,t[0],t[1])?t=[]:n>2&&_T(t[0],t[1],t[2])&&(t=[t[0]]),xoe(e,boe(t,1),[])}),joe=woe;const lj=ze(joe);function jf(e){"@babel/helpers - typeof";return jf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},jf(e)}function xx(){return xx=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},xx.apply(this,arguments)}function Aoe(e,t){return Noe(e)||Toe(e,t)||Eoe(e,t)||Ooe()}function Ooe(){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 Eoe(e,t){if(e){if(typeof e=="string")return CT(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return CT(e,t)}}function CT(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Toe(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,i,s,o=[],l=!0,c=!1;try{if(i=(n=n.call(e)).next,t!==0)for(;!(l=(r=i.call(n)).done)&&(o.push(r.value),o.length!==t);l=!0);}catch(f){c=!0,a=f}finally{try{if(!l&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(c)throw a}}return o}}function Noe(e){if(Array.isArray(e))return e}function PT(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function Xg(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?PT(Object(n),!0).forEach(function(r){_oe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):PT(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function _oe(e,t,n){return t=Coe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Coe(e){var t=Poe(e,"string");return jf(t)=="symbol"?t:t+""}function Poe(e,t){if(jf(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(jf(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Moe(e){return Array.isArray(e)&&Dt(e[0])&&Dt(e[1])?e.join(" ~ "):e}var Roe=function(t){var n=t.separator,r=n===void 0?" : ":n,a=t.contentStyle,i=a===void 0?{}:a,s=t.itemStyle,o=s===void 0?{}:s,l=t.labelStyle,c=l===void 0?{}:l,f=t.payload,d=t.formatter,h=t.itemSorter,p=t.wrapperClassName,v=t.labelClassName,y=t.label,b=t.labelFormatter,m=t.accessibilityLayer,g=m===void 0?!1:m,x=function(){if(f&&f.length){var C={padding:0,margin:0},z=(h?lj(f,h):f).map(function(L,k){if(L.type==="none")return null;var R=Xg({display:"block",paddingTop:4,paddingBottom:4,color:L.color||"#000"},o),$=L.formatter||d||Moe,B=L.value,V=L.name,H=B,Q=V;if($&&H!=null&&Q!=null){var Y=$(B,V,L,k,f);if(Array.isArray(Y)){var re=Aoe(Y,2);H=re[0],Q=re[1]}else H=Y}return N.createElement("li",{className:"recharts-tooltip-item",key:"tooltip-item-".concat(k),style:R},Dt(Q)?N.createElement("span",{className:"recharts-tooltip-item-name"},Q):null,Dt(Q)?N.createElement("span",{className:"recharts-tooltip-item-separator"},r):null,N.createElement("span",{className:"recharts-tooltip-item-value"},H),N.createElement("span",{className:"recharts-tooltip-item-unit"},L.unit||""))});return N.createElement("ul",{className:"recharts-tooltip-item-list",style:C},z)}return null},w=Xg({margin:0,padding:10,backgroundColor:"#fff",border:"1px solid #ccc",whiteSpace:"nowrap"},i),S=Xg({margin:0},c),j=!pe(y),O=j?y:"",E=ye("recharts-default-tooltip",p),T=ye("recharts-tooltip-label",v);j&&b&&f!==void 0&&f!==null&&(O=b(y,f));var _=g?{role:"status","aria-live":"assertive"}:{};return N.createElement("div",xx({className:E,style:w},_),N.createElement("p",{className:T,style:S},N.isValidElement(O)?O:"".concat(O)),x())};function Af(e){"@babel/helpers - typeof";return Af=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Af(e)}function gh(e,t,n){return t=Doe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Doe(e){var t=$oe(e,"string");return Af(t)=="symbol"?t:t+""}function $oe(e,t){if(Af(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Af(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var nu="recharts-tooltip-wrapper",koe={visibility:"hidden"};function Loe(e){var t=e.coordinate,n=e.translateX,r=e.translateY;return ye(nu,gh(gh(gh(gh({},"".concat(nu,"-right"),F(n)&&t&&F(t.x)&&n>=t.x),"".concat(nu,"-left"),F(n)&&t&&F(t.x)&&n<t.x),"".concat(nu,"-bottom"),F(r)&&t&&F(t.y)&&r>=t.y),"".concat(nu,"-top"),F(r)&&t&&F(t.y)&&r<t.y))}function MT(e){var t=e.allowEscapeViewBox,n=e.coordinate,r=e.key,a=e.offsetTopLeft,i=e.position,s=e.reverseDirection,o=e.tooltipDimension,l=e.viewBox,c=e.viewBoxDimension;if(i&&F(i[r]))return i[r];var f=n[r]-o-a,d=n[r]+a;if(t[r])return s[r]?f:d;if(s[r]){var h=f,p=l[r];return h<p?Math.max(d,l[r]):Math.max(f,l[r])}var v=d+o,y=l[r]+c;return v>y?Math.max(f,l[r]):Math.max(d,l[r])}function zoe(e){var t=e.translateX,n=e.translateY,r=e.useTranslate3d;return{transform:r?"translate3d(".concat(t,"px, ").concat(n,"px, 0)"):"translate(".concat(t,"px, ").concat(n,"px)")}}function Boe(e){var t=e.allowEscapeViewBox,n=e.coordinate,r=e.offsetTopLeft,a=e.position,i=e.reverseDirection,s=e.tooltipBox,o=e.useTranslate3d,l=e.viewBox,c,f,d;return s.height>0&&s.width>0&&n?(f=MT({allowEscapeViewBox:t,coordinate:n,key:"x",offsetTopLeft:r,position:a,reverseDirection:i,tooltipDimension:s.width,viewBox:l,viewBoxDimension:l.width}),d=MT({allowEscapeViewBox:t,coordinate:n,key:"y",offsetTopLeft:r,position:a,reverseDirection:i,tooltipDimension:s.height,viewBox:l,viewBoxDimension:l.height}),c=zoe({translateX:f,translateY:d,useTranslate3d:o})):c=koe,{cssProperties:c,cssClasses:Loe({translateX:f,translateY:d,coordinate:n})}}function Gl(e){"@babel/helpers - typeof";return Gl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Gl(e)}function RT(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function DT(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?RT(Object(n),!0).forEach(function(r){wx(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):RT(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Ioe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Uoe(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,b4(r.key),r)}}function qoe(e,t,n){return t&&Uoe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Voe(e,t,n){return t=um(t),Hoe(e,g4()?Reflect.construct(t,n||[],um(e).constructor):t.apply(e,n))}function Hoe(e,t){if(t&&(Gl(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Foe(e)}function Foe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function g4(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(g4=function(){return!!e})()}function um(e){return um=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},um(e)}function Goe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Sx(e,t)}function Sx(e,t){return Sx=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},Sx(e,t)}function wx(e,t,n){return t=b4(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function b4(e){var t=Koe(e,"string");return Gl(t)=="symbol"?t:t+""}function Koe(e,t){if(Gl(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Gl(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var $T=1,Yoe=function(e){function t(){var n;Ioe(this,t);for(var r=arguments.length,a=new Array(r),i=0;i<r;i++)a[i]=arguments[i];return n=Voe(this,t,[].concat(a)),wx(n,"state",{dismissed:!1,dismissedAtCoordinate:{x:0,y:0},lastBoundingBox:{width:-1,height:-1}}),wx(n,"handleKeyDown",function(s){if(s.key==="Escape"){var o,l,c,f;n.setState({dismissed:!0,dismissedAtCoordinate:{x:(o=(l=n.props.coordinate)===null||l===void 0?void 0:l.x)!==null&&o!==void 0?o:0,y:(c=(f=n.props.coordinate)===null||f===void 0?void 0:f.y)!==null&&c!==void 0?c:0}})}}),n}return Goe(t,e),qoe(t,[{key:"updateBBox",value:function(){if(this.wrapperNode&&this.wrapperNode.getBoundingClientRect){var r=this.wrapperNode.getBoundingClientRect();(Math.abs(r.width-this.state.lastBoundingBox.width)>$T||Math.abs(r.height-this.state.lastBoundingBox.height)>$T)&&this.setState({lastBoundingBox:{width:r.width,height:r.height}})}else(this.state.lastBoundingBox.width!==-1||this.state.lastBoundingBox.height!==-1)&&this.setState({lastBoundingBox:{width:-1,height:-1}})}},{key:"componentDidMount",value:function(){document.addEventListener("keydown",this.handleKeyDown),this.updateBBox()}},{key:"componentWillUnmount",value:function(){document.removeEventListener("keydown",this.handleKeyDown)}},{key:"componentDidUpdate",value:function(){var r,a;this.props.active&&this.updateBBox(),this.state.dismissed&&(((r=this.props.coordinate)===null||r===void 0?void 0:r.x)!==this.state.dismissedAtCoordinate.x||((a=this.props.coordinate)===null||a===void 0?void 0:a.y)!==this.state.dismissedAtCoordinate.y)&&(this.state.dismissed=!1)}},{key:"render",value:function(){var r=this,a=this.props,i=a.active,s=a.allowEscapeViewBox,o=a.animationDuration,l=a.animationEasing,c=a.children,f=a.coordinate,d=a.hasPayload,h=a.isAnimationActive,p=a.offset,v=a.position,y=a.reverseDirection,b=a.useTranslate3d,m=a.viewBox,g=a.wrapperStyle,x=Boe({allowEscapeViewBox:s,coordinate:f,offsetTopLeft:p,position:v,reverseDirection:y,tooltipBox:this.state.lastBoundingBox,useTranslate3d:b,viewBox:m}),w=x.cssClasses,S=x.cssProperties,j=DT(DT({transition:h&&i?"transform ".concat(o,"ms ").concat(l):void 0},S),{},{pointerEvents:"none",visibility:!this.state.dismissed&&i&&d?"visible":"hidden",position:"absolute",top:0,left:0},g);return N.createElement("div",{tabIndex:-1,className:w,style:j,ref:function(E){r.wrapperNode=E}},c)}}])}(A.PureComponent),Xoe=function(){return!(typeof window<"u"&&window.document&&window.document.createElement&&window.setTimeout)},Ji={isSsr:Xoe()};function Kl(e){"@babel/helpers - typeof";return Kl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Kl(e)}function kT(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function LT(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?kT(Object(n),!0).forEach(function(r){cj(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):kT(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Woe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Qoe(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,S4(r.key),r)}}function Zoe(e,t,n){return t&&Qoe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Joe(e,t,n){return t=fm(t),ele(e,x4()?Reflect.construct(t,n||[],fm(e).constructor):t.apply(e,n))}function ele(e,t){if(t&&(Kl(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return tle(e)}function tle(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function x4(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(x4=function(){return!!e})()}function fm(e){return fm=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},fm(e)}function nle(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&jx(e,t)}function jx(e,t){return jx=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},jx(e,t)}function cj(e,t,n){return t=S4(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function S4(e){var t=rle(e,"string");return Kl(t)=="symbol"?t:t+""}function rle(e,t){if(Kl(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Kl(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function ale(e){return e.dataKey}function ile(e,t){return N.isValidElement(e)?N.cloneElement(e,t):typeof e=="function"?N.createElement(e,t):N.createElement(Roe,t)}var zn=function(e){function t(){return Woe(this,t),Joe(this,t,arguments)}return nle(t,e),Zoe(t,[{key:"render",value:function(){var r=this,a=this.props,i=a.active,s=a.allowEscapeViewBox,o=a.animationDuration,l=a.animationEasing,c=a.content,f=a.coordinate,d=a.filterNull,h=a.isAnimationActive,p=a.offset,v=a.payload,y=a.payloadUniqBy,b=a.position,m=a.reverseDirection,g=a.useTranslate3d,x=a.viewBox,w=a.wrapperStyle,S=v??[];d&&S.length&&(S=u4(v.filter(function(O){return O.value!=null&&(O.hide!==!0||r.props.includeHidden)}),y,ale));var j=S.length>0;return N.createElement(Yoe,{allowEscapeViewBox:s,animationDuration:o,animationEasing:l,isAnimationActive:h,active:i,coordinate:f,hasPayload:j,offset:p,position:b,reverseDirection:m,useTranslate3d:g,viewBox:x,wrapperStyle:w},ile(c,LT(LT({},this.props),{},{payload:S})))}}])}(A.PureComponent);cj(zn,"displayName","Tooltip");cj(zn,"defaultProps",{accessibilityLayer:!1,allowEscapeViewBox:{x:!1,y:!1},animationDuration:400,animationEasing:"ease",contentStyle:{},coordinate:{x:0,y:0},cursor:!0,cursorStyle:{},filterNull:!0,isAnimationActive:!Ji.isSsr,itemStyle:{},labelStyle:{},offset:10,reverseDirection:{x:!1,y:!1},separator:" : ",trigger:"hover",useTranslate3d:!1,viewBox:{x:0,y:0,height:0,width:0},wrapperStyle:{}});var sle=ca,ole=function(){return sle.Date.now()},lle=ole,cle=/\s/;function ule(e){for(var t=e.length;t--&&cle.test(e.charAt(t)););return t}var fle=ule,dle=fle,hle=/^\s+/;function ple(e){return e&&e.slice(0,dle(e)+1).replace(hle,"")}var mle=ple,yle=mle,zT=Zi,vle=Cc,BT=NaN,gle=/^[-+]0x[0-9a-f]+$/i,ble=/^0b[01]+$/i,xle=/^0o[0-7]+$/i,Sle=parseInt;function wle(e){if(typeof e=="number")return e;if(vle(e))return BT;if(zT(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=zT(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=yle(e);var n=ble.test(e);return n||xle.test(e)?Sle(e.slice(2),n?2:8):gle.test(e)?BT:+e}var w4=wle,jle=Zi,Wg=lle,IT=w4,Ale="Expected a function",Ole=Math.max,Ele=Math.min;function Tle(e,t,n){var r,a,i,s,o,l,c=0,f=!1,d=!1,h=!0;if(typeof e!="function")throw new TypeError(Ale);t=IT(t)||0,jle(n)&&(f=!!n.leading,d="maxWait"in n,i=d?Ole(IT(n.maxWait)||0,t):i,h="trailing"in n?!!n.trailing:h);function p(j){var O=r,E=a;return r=a=void 0,c=j,s=e.apply(E,O),s}function v(j){return c=j,o=setTimeout(m,t),f?p(j):s}function y(j){var O=j-l,E=j-c,T=t-O;return d?Ele(T,i-E):T}function b(j){var O=j-l,E=j-c;return l===void 0||O>=t||O<0||d&&E>=i}function m(){var j=Wg();if(b(j))return g(j);o=setTimeout(m,y(j))}function g(j){return o=void 0,h&&r?p(j):(r=a=void 0,s)}function x(){o!==void 0&&clearTimeout(o),c=0,r=l=a=o=void 0}function w(){return o===void 0?s:g(Wg())}function S(){var j=Wg(),O=b(j);if(r=arguments,a=this,l=j,O){if(o===void 0)return v(l);if(d)return clearTimeout(o),o=setTimeout(m,t),p(l)}return o===void 0&&(o=setTimeout(m,t)),s}return S.cancel=x,S.flush=w,S}var Nle=Tle,_le=Nle,Cle=Zi,Ple="Expected a function";function Mle(e,t,n){var r=!0,a=!0;if(typeof e!="function")throw new TypeError(Ple);return Cle(n)&&(r="leading"in n?!!n.leading:r,a="trailing"in n?!!n.trailing:a),_le(e,t,{leading:r,maxWait:t,trailing:a})}var Rle=Mle;const j4=ze(Rle);function Of(e){"@babel/helpers - typeof";return Of=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Of(e)}function UT(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function bh(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?UT(Object(n),!0).forEach(function(r){Dle(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):UT(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Dle(e,t,n){return t=$le(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function $le(e){var t=kle(e,"string");return Of(t)=="symbol"?t:t+""}function kle(e,t){if(Of(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Of(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Lle(e,t){return Ule(e)||Ile(e,t)||Ble(e,t)||zle()}function zle(){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 Ble(e,t){if(e){if(typeof e=="string")return qT(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return qT(e,t)}}function qT(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Ile(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,i,s,o=[],l=!0,c=!1;try{if(i=(n=n.call(e)).next,t!==0)for(;!(l=(r=i.call(n)).done)&&(o.push(r.value),o.length!==t);l=!0);}catch(f){c=!0,a=f}finally{try{if(!l&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(c)throw a}}return o}}function Ule(e){if(Array.isArray(e))return e}var xh=A.forwardRef(function(e,t){var n=e.aspect,r=e.initialDimension,a=r===void 0?{width:-1,height:-1}:r,i=e.width,s=i===void 0?"100%":i,o=e.height,l=o===void 0?"100%":o,c=e.minWidth,f=c===void 0?0:c,d=e.minHeight,h=e.maxHeight,p=e.children,v=e.debounce,y=v===void 0?0:v,b=e.id,m=e.className,g=e.onResize,x=e.style,w=x===void 0?{}:x,S=A.useRef(null),j=A.useRef();j.current=g,A.useImperativeHandle(t,function(){return Object.defineProperty(S.current,"current",{get:function(){return console.warn("The usage of ref.current.current is deprecated and will no longer be supported."),S.current},configurable:!0})});var O=A.useState({containerWidth:a.width,containerHeight:a.height}),E=Lle(O,2),T=E[0],_=E[1],M=A.useCallback(function(z,L){_(function(k){var R=Math.round(z),$=Math.round(L);return k.containerWidth===R&&k.containerHeight===$?k:{containerWidth:R,containerHeight:$}})},[]);A.useEffect(function(){var z=function(V){var H,Q=V[0].contentRect,Y=Q.width,re=Q.height;M(Y,re),(H=j.current)===null||H===void 0||H.call(j,Y,re)};y>0&&(z=j4(z,y,{trailing:!0,leading:!1}));var L=new ResizeObserver(z),k=S.current.getBoundingClientRect(),R=k.width,$=k.height;return M(R,$),L.observe(S.current),function(){L.disconnect()}},[M,y]);var C=A.useMemo(function(){var z=T.containerWidth,L=T.containerHeight;if(z<0||L<0)return null;Dr(js(s)||js(l),`The width(%s) and height(%s) are both fixed numbers,
       maybe you don't need to use a ResponsiveContainer.`,s,l),Dr(!n||n>0,"The aspect(%s) must be greater than zero.",n);var k=js(s)?z:s,R=js(l)?L:l;n&&n>0&&(k?R=k/n:R&&(k=R*n),h&&R>h&&(R=h)),Dr(k>0||R>0,`The width(%s) and height(%s) of chart should be greater than 0,
       please check the style of container, or the props width(%s) and height(%s),
       or add a minWidth(%s) or minHeight(%s) or use aspect(%s) to control the
       height and width.`,k,R,s,l,f,d,n);var $=!Array.isArray(p)&&za(p.type).endsWith("Chart");return N.Children.map(p,function(B){return N.isValidElement(B)?A.cloneElement(B,bh({width:k,height:R},$?{style:bh({height:"100%",width:"100%",maxHeight:R,maxWidth:k},B.props.style)}:{})):B})},[n,p,l,h,d,f,T,s]);return N.createElement("div",{id:b?"".concat(b):void 0,className:ye("recharts-responsive-container",m),style:bh(bh({},w),{},{width:s,height:l,minWidth:f,minHeight:d,maxHeight:h}),ref:S},C)}),ov=function(t){return null};ov.displayName="Cell";function Ef(e){"@babel/helpers - typeof";return Ef=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ef(e)}function VT(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function Ax(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?VT(Object(n),!0).forEach(function(r){qle(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):VT(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function qle(e,t,n){return t=Vle(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Vle(e){var t=Hle(e,"string");return Ef(t)=="symbol"?t:t+""}function Hle(e,t){if(Ef(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Ef(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var To={widthCache:{},cacheCount:0},Fle=2e3,Gle={position:"absolute",top:"-20000px",left:0,padding:0,margin:0,border:"none",whiteSpace:"pre"},HT="recharts_measurement_span";function Kle(e){var t=Ax({},e);return Object.keys(t).forEach(function(n){t[n]||delete t[n]}),t}var Uu=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(t==null||Ji.isSsr)return{width:0,height:0};var r=Kle(n),a=JSON.stringify({text:t,copyStyle:r});if(To.widthCache[a])return To.widthCache[a];try{var i=document.getElementById(HT);i||(i=document.createElement("span"),i.setAttribute("id",HT),i.setAttribute("aria-hidden","true"),document.body.appendChild(i));var s=Ax(Ax({},Gle),r);Object.assign(i.style,s),i.textContent="".concat(t);var o=i.getBoundingClientRect(),l={width:o.width,height:o.height};return To.widthCache[a]=l,++To.cacheCount>Fle&&(To.cacheCount=0,To.widthCache={}),l}catch{return{width:0,height:0}}},Yle=function(t){return{top:t.top+window.scrollY-document.documentElement.clientTop,left:t.left+window.scrollX-document.documentElement.clientLeft}};function Tf(e){"@babel/helpers - typeof";return Tf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Tf(e)}function dm(e,t){return Zle(e)||Qle(e,t)||Wle(e,t)||Xle()}function Xle(){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 Wle(e,t){if(e){if(typeof e=="string")return FT(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return FT(e,t)}}function FT(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Qle(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,i,s,o=[],l=!0,c=!1;try{if(i=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(o.push(r.value),o.length!==t);l=!0);}catch(f){c=!0,a=f}finally{try{if(!l&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(c)throw a}}return o}}function Zle(e){if(Array.isArray(e))return e}function Jle(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function GT(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,tce(r.key),r)}}function ece(e,t,n){return t&&GT(e.prototype,t),n&&GT(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function tce(e){var t=nce(e,"string");return Tf(t)=="symbol"?t:t+""}function nce(e,t){if(Tf(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Tf(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var KT=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([*/])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,YT=/(-?\d+(?:\.\d+)?[a-zA-Z%]*)([+-])(-?\d+(?:\.\d+)?[a-zA-Z%]*)/,rce=/^px|cm|vh|vw|em|rem|%|mm|in|pt|pc|ex|ch|vmin|vmax|Q$/,ace=/(-?\d+(?:\.\d+)?)([a-zA-Z%]+)?/,A4={cm:96/2.54,mm:96/25.4,pt:96/72,pc:96/6,in:96,Q:96/(2.54*40),px:1},ice=Object.keys(A4),Zo="NaN";function sce(e,t){return e*A4[t]}var Sh=function(){function e(t,n){Jle(this,e),this.num=t,this.unit=n,this.num=t,this.unit=n,Number.isNaN(t)&&(this.unit=""),n!==""&&!rce.test(n)&&(this.num=NaN,this.unit=""),ice.includes(n)&&(this.num=sce(t,n),this.unit="px")}return ece(e,[{key:"add",value:function(n){return this.unit!==n.unit?new e(NaN,""):new e(this.num+n.num,this.unit)}},{key:"subtract",value:function(n){return this.unit!==n.unit?new e(NaN,""):new e(this.num-n.num,this.unit)}},{key:"multiply",value:function(n){return this.unit!==""&&n.unit!==""&&this.unit!==n.unit?new e(NaN,""):new e(this.num*n.num,this.unit||n.unit)}},{key:"divide",value:function(n){return this.unit!==""&&n.unit!==""&&this.unit!==n.unit?new e(NaN,""):new e(this.num/n.num,this.unit||n.unit)}},{key:"toString",value:function(){return"".concat(this.num).concat(this.unit)}},{key:"isNaN",value:function(){return Number.isNaN(this.num)}}],[{key:"parse",value:function(n){var r,a=(r=ace.exec(n))!==null&&r!==void 0?r:[],i=dm(a,3),s=i[1],o=i[2];return new e(parseFloat(s),o??"")}}])}();function O4(e){if(e.includes(Zo))return Zo;for(var t=e;t.includes("*")||t.includes("/");){var n,r=(n=KT.exec(t))!==null&&n!==void 0?n:[],a=dm(r,4),i=a[1],s=a[2],o=a[3],l=Sh.parse(i??""),c=Sh.parse(o??""),f=s==="*"?l.multiply(c):l.divide(c);if(f.isNaN())return Zo;t=t.replace(KT,f.toString())}for(;t.includes("+")||/.-\d+(?:\.\d+)?/.test(t);){var d,h=(d=YT.exec(t))!==null&&d!==void 0?d:[],p=dm(h,4),v=p[1],y=p[2],b=p[3],m=Sh.parse(v??""),g=Sh.parse(b??""),x=y==="+"?m.add(g):m.subtract(g);if(x.isNaN())return Zo;t=t.replace(YT,x.toString())}return t}var XT=/\(([^()]*)\)/;function oce(e){for(var t=e;t.includes("(");){var n=XT.exec(t),r=dm(n,2),a=r[1];t=t.replace(XT,O4(a))}return t}function lce(e){var t=e.replace(/\s+/g,"");return t=oce(t),t=O4(t),t}function cce(e){try{return lce(e)}catch{return Zo}}function Qg(e){var t=cce(e.slice(5,-1));return t===Zo?"":t}var uce=["x","y","lineHeight","capHeight","scaleToFit","textAnchor","verticalAnchor","fill"],fce=["dx","dy","angle","className","breakAll"];function Ox(){return Ox=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ox.apply(this,arguments)}function WT(e,t){if(e==null)return{};var n=dce(e,t),r,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)r=i[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function dce(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function QT(e,t){return yce(e)||mce(e,t)||pce(e,t)||hce()}function hce(){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 pce(e,t){if(e){if(typeof e=="string")return ZT(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ZT(e,t)}}function ZT(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function mce(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,i,s,o=[],l=!0,c=!1;try{if(i=(n=n.call(e)).next,t===0){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=i.call(n)).done)&&(o.push(r.value),o.length!==t);l=!0);}catch(f){c=!0,a=f}finally{try{if(!l&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(c)throw a}}return o}}function yce(e){if(Array.isArray(e))return e}var E4=/[ \f\n\r\t\v\u2028\u2029]+/,T4=function(t){var n=t.children,r=t.breakAll,a=t.style;try{var i=[];pe(n)||(r?i=n.toString().split(""):i=n.toString().split(E4));var s=i.map(function(l){return{word:l,width:Uu(l,a).width}}),o=r?0:Uu(" ",a).width;return{wordsWithComputedWidth:s,spaceWidth:o}}catch{return null}},vce=function(t,n,r,a,i){var s=t.maxLines,o=t.children,l=t.style,c=t.breakAll,f=F(s),d=o,h=function(){var k=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];return k.reduce(function(R,$){var B=$.word,V=$.width,H=R[R.length-1];if(H&&(a==null||i||H.width+V+r<Number(a)))H.words.push(B),H.width+=V+r;else{var Q={words:[B],width:V};R.push(Q)}return R},[])},p=h(n),v=function(k){return k.reduce(function(R,$){return R.width>$.width?R:$})};if(!f)return p;for(var y="…",b=function(k){var R=d.slice(0,k),$=T4({breakAll:c,style:l,children:R+y}).wordsWithComputedWidth,B=h($),V=B.length>s||v(B).width>Number(a);return[V,B]},m=0,g=d.length-1,x=0,w;m<=g&&x<=d.length-1;){var S=Math.floor((m+g)/2),j=S-1,O=b(j),E=QT(O,2),T=E[0],_=E[1],M=b(S),C=QT(M,1),z=C[0];if(!T&&!z&&(m=S+1),T&&z&&(g=S-1),!T&&z){w=_;break}x++}return w||p},JT=function(t){var n=pe(t)?[]:t.toString().split(E4);return[{words:n}]},gce=function(t){var n=t.width,r=t.scaleToFit,a=t.children,i=t.style,s=t.breakAll,o=t.maxLines;if((n||r)&&!Ji.isSsr){var l,c,f=T4({breakAll:s,children:a,style:i});if(f){var d=f.wordsWithComputedWidth,h=f.spaceWidth;l=d,c=h}else return JT(a);return vce({breakAll:s,children:a,maxLines:o,style:i},l,c,n,r)}return JT(a)},eN="#808080",ro=function(t){var n=t.x,r=n===void 0?0:n,a=t.y,i=a===void 0?0:a,s=t.lineHeight,o=s===void 0?"1em":s,l=t.capHeight,c=l===void 0?"0.71em":l,f=t.scaleToFit,d=f===void 0?!1:f,h=t.textAnchor,p=h===void 0?"start":h,v=t.verticalAnchor,y=v===void 0?"end":v,b=t.fill,m=b===void 0?eN:b,g=WT(t,uce),x=A.useMemo(function(){return gce({breakAll:g.breakAll,children:g.children,maxLines:g.maxLines,scaleToFit:d,style:g.style,width:g.width})},[g.breakAll,g.children,g.maxLines,d,g.style,g.width]),w=g.dx,S=g.dy,j=g.angle,O=g.className,E=g.breakAll,T=WT(g,fce);if(!Dt(r)||!Dt(i))return null;var _=r+(F(w)?w:0),M=i+(F(S)?S:0),C;switch(y){case"start":C=Qg("calc(".concat(c,")"));break;case"middle":C=Qg("calc(".concat((x.length-1)/2," * -").concat(o," + (").concat(c," / 2))"));break;default:C=Qg("calc(".concat(x.length-1," * -").concat(o,")"));break}var z=[];if(d){var L=x[0].width,k=g.width;z.push("scale(".concat((F(k)?k/L:1)/L,")"))}return j&&z.push("rotate(".concat(j,", ").concat(_,", ").concat(M,")")),z.length&&(T.transform=z.join(" ")),N.createElement("text",Ox({},ie(T,!0),{x:_,y:M,className:ye("recharts-text",O),textAnchor:p,fill:m.includes("url")?eN:m}),x.map(function(R,$){var B=R.words.join(E?"":" ");return N.createElement("tspan",{x:_,dy:$===0?C:o,key:"".concat(B,"-").concat($)},B)}))};function Ui(e,t){return e==null||t==null?NaN:e<t?-1:e>t?1:e>=t?0:NaN}function bce(e,t){return e==null||t==null?NaN:t<e?-1:t>e?1:t>=e?0:NaN}function uj(e){let t,n,r;e.length!==2?(t=Ui,n=(o,l)=>Ui(e(o),l),r=(o,l)=>e(o)-l):(t=e===Ui||e===bce?e:xce,n=e,r=e);function a(o,l,c=0,f=o.length){if(c<f){if(t(l,l)!==0)return f;do{const d=c+f>>>1;n(o[d],l)<0?c=d+1:f=d}while(c<f)}return c}function i(o,l,c=0,f=o.length){if(c<f){if(t(l,l)!==0)return f;do{const d=c+f>>>1;n(o[d],l)<=0?c=d+1:f=d}while(c<f)}return c}function s(o,l,c=0,f=o.length){const d=a(o,l,c,f-1);return d>c&&r(o[d-1],l)>-r(o[d],l)?d-1:d}return{left:a,center:s,right:i}}function xce(){return 0}function N4(e){return e===null?NaN:+e}function*Sce(e,t){for(let n of e)n!=null&&(n=+n)>=n&&(yield n)}const wce=uj(Ui),Dd=wce.right;uj(N4).center;class tN extends Map{constructor(t,n=Oce){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:n}}),t!=null)for(const[r,a]of t)this.set(r,a)}get(t){return super.get(nN(this,t))}has(t){return super.has(nN(this,t))}set(t,n){return super.set(jce(this,t),n)}delete(t){return super.delete(Ace(this,t))}}function nN({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):n}function jce({_intern:e,_key:t},n){const r=t(n);return e.has(r)?e.get(r):(e.set(r,n),n)}function Ace({_intern:e,_key:t},n){const r=t(n);return e.has(r)&&(n=e.get(r),e.delete(r)),n}function Oce(e){return e!==null&&typeof e=="object"?e.valueOf():e}function Ece(e=Ui){if(e===Ui)return _4;if(typeof e!="function")throw new TypeError("compare is not a function");return(t,n)=>{const r=e(t,n);return r||r===0?r:(e(n,n)===0)-(e(t,t)===0)}}function _4(e,t){return(e==null||!(e>=e))-(t==null||!(t>=t))||(e<t?-1:e>t?1:0)}const Tce=Math.sqrt(50),Nce=Math.sqrt(10),_ce=Math.sqrt(2);function hm(e,t,n){const r=(t-e)/Math.max(0,n),a=Math.floor(Math.log10(r)),i=r/Math.pow(10,a),s=i>=Tce?10:i>=Nce?5:i>=_ce?2:1;let o,l,c;return a<0?(c=Math.pow(10,-a)/s,o=Math.round(e*c),l=Math.round(t*c),o/c<e&&++o,l/c>t&&--l,c=-c):(c=Math.pow(10,a)*s,o=Math.round(e/c),l=Math.round(t/c),o*c<e&&++o,l*c>t&&--l),l<o&&.5<=n&&n<2?hm(e,t,n*2):[o,l,c]}function Ex(e,t,n){if(t=+t,e=+e,n=+n,!(n>0))return[];if(e===t)return[e];const r=t<e,[a,i,s]=r?hm(t,e,n):hm(e,t,n);if(!(i>=a))return[];const o=i-a+1,l=new Array(o);if(r)if(s<0)for(let c=0;c<o;++c)l[c]=(i-c)/-s;else for(let c=0;c<o;++c)l[c]=(i-c)*s;else if(s<0)for(let c=0;c<o;++c)l[c]=(a+c)/-s;else for(let c=0;c<o;++c)l[c]=(a+c)*s;return l}function Tx(e,t,n){return t=+t,e=+e,n=+n,hm(e,t,n)[2]}function Nx(e,t,n){t=+t,e=+e,n=+n;const r=t<e,a=r?Tx(t,e,n):Tx(e,t,n);return(r?-1:1)*(a<0?1/-a:a)}function rN(e,t){let n;for(const r of e)r!=null&&(n<r||n===void 0&&r>=r)&&(n=r);return n}function aN(e,t){let n;for(const r of e)r!=null&&(n>r||n===void 0&&r>=r)&&(n=r);return n}function C4(e,t,n=0,r=1/0,a){if(t=Math.floor(t),n=Math.floor(Math.max(0,n)),r=Math.floor(Math.min(e.length-1,r)),!(n<=t&&t<=r))return e;for(a=a===void 0?_4:Ece(a);r>n;){if(r-n>600){const l=r-n+1,c=t-n+1,f=Math.log(l),d=.5*Math.exp(2*f/3),h=.5*Math.sqrt(f*d*(l-d)/l)*(c-l/2<0?-1:1),p=Math.max(n,Math.floor(t-c*d/l+h)),v=Math.min(r,Math.floor(t+(l-c)*d/l+h));C4(e,t,p,v,a)}const i=e[t];let s=n,o=r;for(ru(e,n,t),a(e[r],i)>0&&ru(e,n,r);s<o;){for(ru(e,s,o),++s,--o;a(e[s],i)<0;)++s;for(;a(e[o],i)>0;)--o}a(e[n],i)===0?ru(e,n,o):(++o,ru(e,o,r)),o<=t&&(n=o+1),t<=o&&(r=o-1)}return e}function ru(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function Cce(e,t,n){if(e=Float64Array.from(Sce(e)),!(!(r=e.length)||isNaN(t=+t))){if(t<=0||r<2)return aN(e);if(t>=1)return rN(e);var r,a=(r-1)*t,i=Math.floor(a),s=rN(C4(e,i).subarray(0,i+1)),o=aN(e.subarray(i+1));return s+(o-s)*(a-i)}}function Pce(e,t,n=N4){if(!(!(r=e.length)||isNaN(t=+t))){if(t<=0||r<2)return+n(e[0],0,e);if(t>=1)return+n(e[r-1],r-1,e);var r,a=(r-1)*t,i=Math.floor(a),s=+n(e[i],i,e),o=+n(e[i+1],i+1,e);return s+(o-s)*(a-i)}}function Mce(e,t,n){e=+e,t=+t,n=(a=arguments.length)<2?(t=e,e=0,1):a<3?1:+n;for(var r=-1,a=Math.max(0,Math.ceil((t-e)/n))|0,i=new Array(a);++r<a;)i[r]=e+r*n;return i}function jr(e,t){switch(arguments.length){case 0:break;case 1:this.range(e);break;default:this.range(t).domain(e);break}return this}function ei(e,t){switch(arguments.length){case 0:break;case 1:{typeof e=="function"?this.interpolator(e):this.range(e);break}default:{this.domain(e),typeof t=="function"?this.interpolator(t):this.range(t);break}}return this}const _x=Symbol("implicit");function fj(){var e=new tN,t=[],n=[],r=_x;function a(i){let s=e.get(i);if(s===void 0){if(r!==_x)return r;e.set(i,s=t.push(i)-1)}return n[s%n.length]}return a.domain=function(i){if(!arguments.length)return t.slice();t=[],e=new tN;for(const s of i)e.has(s)||e.set(s,t.push(s)-1);return a},a.range=function(i){return arguments.length?(n=Array.from(i),a):n.slice()},a.unknown=function(i){return arguments.length?(r=i,a):r},a.copy=function(){return fj(t,n).unknown(r)},jr.apply(a,arguments),a}function Nf(){var e=fj().unknown(void 0),t=e.domain,n=e.range,r=0,a=1,i,s,o=!1,l=0,c=0,f=.5;delete e.unknown;function d(){var h=t().length,p=a<r,v=p?a:r,y=p?r:a;i=(y-v)/Math.max(1,h-l+c*2),o&&(i=Math.floor(i)),v+=(y-v-i*(h-l))*f,s=i*(1-l),o&&(v=Math.round(v),s=Math.round(s));var b=Mce(h).map(function(m){return v+i*m});return n(p?b.reverse():b)}return e.domain=function(h){return arguments.length?(t(h),d()):t()},e.range=function(h){return arguments.length?([r,a]=h,r=+r,a=+a,d()):[r,a]},e.rangeRound=function(h){return[r,a]=h,r=+r,a=+a,o=!0,d()},e.bandwidth=function(){return s},e.step=function(){return i},e.round=function(h){return arguments.length?(o=!!h,d()):o},e.padding=function(h){return arguments.length?(l=Math.min(1,c=+h),d()):l},e.paddingInner=function(h){return arguments.length?(l=Math.min(1,h),d()):l},e.paddingOuter=function(h){return arguments.length?(c=+h,d()):c},e.align=function(h){return arguments.length?(f=Math.max(0,Math.min(1,h)),d()):f},e.copy=function(){return Nf(t(),[r,a]).round(o).paddingInner(l).paddingOuter(c).align(f)},jr.apply(d(),arguments)}function P4(e){var t=e.copy;return e.padding=e.paddingOuter,delete e.paddingInner,delete e.paddingOuter,e.copy=function(){return P4(t())},e}function qu(){return P4(Nf.apply(null,arguments).paddingInner(1))}function dj(e,t,n){e.prototype=t.prototype=n,n.constructor=e}function M4(e,t){var n=Object.create(e.prototype);for(var r in t)n[r]=t[r];return n}function $d(){}var _f=.7,pm=1/_f,dl="\\s*([+-]?\\d+)\\s*",Cf="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)\\s*",na="\\s*([+-]?(?:\\d*\\.)?\\d+(?:[eE][+-]?\\d+)?)%\\s*",Rce=/^#([0-9a-f]{3,8})$/,Dce=new RegExp(`^rgb\\(${dl},${dl},${dl}\\)$`),$ce=new RegExp(`^rgb\\(${na},${na},${na}\\)$`),kce=new RegExp(`^rgba\\(${dl},${dl},${dl},${Cf}\\)$`),Lce=new RegExp(`^rgba\\(${na},${na},${na},${Cf}\\)$`),zce=new RegExp(`^hsl\\(${Cf},${na},${na}\\)$`),Bce=new RegExp(`^hsla\\(${Cf},${na},${na},${Cf}\\)$`),iN={aliceblue:15792383,antiquewhite:16444375,aqua:65535,aquamarine:8388564,azure:15794175,beige:16119260,bisque:16770244,black:0,blanchedalmond:16772045,blue:255,blueviolet:9055202,brown:10824234,burlywood:14596231,cadetblue:6266528,chartreuse:8388352,chocolate:13789470,coral:16744272,cornflowerblue:6591981,cornsilk:16775388,crimson:14423100,cyan:65535,darkblue:139,darkcyan:35723,darkgoldenrod:12092939,darkgray:11119017,darkgreen:25600,darkgrey:11119017,darkkhaki:12433259,darkmagenta:9109643,darkolivegreen:5597999,darkorange:16747520,darkorchid:10040012,darkred:9109504,darksalmon:15308410,darkseagreen:9419919,darkslateblue:4734347,darkslategray:3100495,darkslategrey:3100495,darkturquoise:52945,darkviolet:9699539,deeppink:16716947,deepskyblue:49151,dimgray:6908265,dimgrey:6908265,dodgerblue:2003199,firebrick:11674146,floralwhite:16775920,forestgreen:2263842,fuchsia:16711935,gainsboro:14474460,ghostwhite:16316671,gold:16766720,goldenrod:14329120,gray:8421504,green:32768,greenyellow:11403055,grey:8421504,honeydew:15794160,hotpink:16738740,indianred:13458524,indigo:4915330,ivory:16777200,khaki:15787660,lavender:15132410,lavenderblush:16773365,lawngreen:8190976,lemonchiffon:16775885,lightblue:11393254,lightcoral:15761536,lightcyan:14745599,lightgoldenrodyellow:16448210,lightgray:13882323,lightgreen:9498256,lightgrey:13882323,lightpink:16758465,lightsalmon:16752762,lightseagreen:2142890,lightskyblue:8900346,lightslategray:7833753,lightslategrey:7833753,lightsteelblue:11584734,lightyellow:16777184,lime:65280,limegreen:3329330,linen:16445670,magenta:16711935,maroon:8388608,mediumaquamarine:6737322,mediumblue:205,mediumorchid:12211667,mediumpurple:9662683,mediumseagreen:3978097,mediumslateblue:8087790,mediumspringgreen:64154,mediumturquoise:4772300,mediumvioletred:13047173,midnightblue:1644912,mintcream:16121850,mistyrose:16770273,moccasin:16770229,navajowhite:16768685,navy:128,oldlace:16643558,olive:8421376,olivedrab:7048739,orange:16753920,orangered:16729344,orchid:14315734,palegoldenrod:15657130,palegreen:10025880,paleturquoise:11529966,palevioletred:14381203,papayawhip:16773077,peachpuff:16767673,peru:13468991,pink:16761035,plum:14524637,powderblue:11591910,purple:8388736,rebeccapurple:6697881,red:16711680,rosybrown:12357519,royalblue:4286945,saddlebrown:9127187,salmon:16416882,sandybrown:16032864,seagreen:3050327,seashell:16774638,sienna:10506797,silver:12632256,skyblue:8900331,slateblue:6970061,slategray:7372944,slategrey:7372944,snow:16775930,springgreen:65407,steelblue:4620980,tan:13808780,teal:32896,thistle:14204888,tomato:16737095,turquoise:4251856,violet:15631086,wheat:16113331,white:16777215,whitesmoke:16119285,yellow:16776960,yellowgreen:10145074};dj($d,Pf,{copy(e){return Object.assign(new this.constructor,this,e)},displayable(){return this.rgb().displayable()},hex:sN,formatHex:sN,formatHex8:Ice,formatHsl:Uce,formatRgb:oN,toString:oN});function sN(){return this.rgb().formatHex()}function Ice(){return this.rgb().formatHex8()}function Uce(){return R4(this).formatHsl()}function oN(){return this.rgb().formatRgb()}function Pf(e){var t,n;return e=(e+"").trim().toLowerCase(),(t=Rce.exec(e))?(n=t[1].length,t=parseInt(t[1],16),n===6?lN(t):n===3?new On(t>>8&15|t>>4&240,t>>4&15|t&240,(t&15)<<4|t&15,1):n===8?wh(t>>24&255,t>>16&255,t>>8&255,(t&255)/255):n===4?wh(t>>12&15|t>>8&240,t>>8&15|t>>4&240,t>>4&15|t&240,((t&15)<<4|t&15)/255):null):(t=Dce.exec(e))?new On(t[1],t[2],t[3],1):(t=$ce.exec(e))?new On(t[1]*255/100,t[2]*255/100,t[3]*255/100,1):(t=kce.exec(e))?wh(t[1],t[2],t[3],t[4]):(t=Lce.exec(e))?wh(t[1]*255/100,t[2]*255/100,t[3]*255/100,t[4]):(t=zce.exec(e))?fN(t[1],t[2]/100,t[3]/100,1):(t=Bce.exec(e))?fN(t[1],t[2]/100,t[3]/100,t[4]):iN.hasOwnProperty(e)?lN(iN[e]):e==="transparent"?new On(NaN,NaN,NaN,0):null}function lN(e){return new On(e>>16&255,e>>8&255,e&255,1)}function wh(e,t,n,r){return r<=0&&(e=t=n=NaN),new On(e,t,n,r)}function qce(e){return e instanceof $d||(e=Pf(e)),e?(e=e.rgb(),new On(e.r,e.g,e.b,e.opacity)):new On}function Cx(e,t,n,r){return arguments.length===1?qce(e):new On(e,t,n,r??1)}function On(e,t,n,r){this.r=+e,this.g=+t,this.b=+n,this.opacity=+r}dj(On,Cx,M4($d,{brighter(e){return e=e==null?pm:Math.pow(pm,e),new On(this.r*e,this.g*e,this.b*e,this.opacity)},darker(e){return e=e==null?_f:Math.pow(_f,e),new On(this.r*e,this.g*e,this.b*e,this.opacity)},rgb(){return this},clamp(){return new On(Hs(this.r),Hs(this.g),Hs(this.b),mm(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:cN,formatHex:cN,formatHex8:Vce,formatRgb:uN,toString:uN}));function cN(){return`#${As(this.r)}${As(this.g)}${As(this.b)}`}function Vce(){return`#${As(this.r)}${As(this.g)}${As(this.b)}${As((isNaN(this.opacity)?1:this.opacity)*255)}`}function uN(){const e=mm(this.opacity);return`${e===1?"rgb(":"rgba("}${Hs(this.r)}, ${Hs(this.g)}, ${Hs(this.b)}${e===1?")":`, ${e})`}`}function mm(e){return isNaN(e)?1:Math.max(0,Math.min(1,e))}function Hs(e){return Math.max(0,Math.min(255,Math.round(e)||0))}function As(e){return e=Hs(e),(e<16?"0":"")+e.toString(16)}function fN(e,t,n,r){return r<=0?e=t=n=NaN:n<=0||n>=1?e=t=NaN:t<=0&&(e=NaN),new Mr(e,t,n,r)}function R4(e){if(e instanceof Mr)return new Mr(e.h,e.s,e.l,e.opacity);if(e instanceof $d||(e=Pf(e)),!e)return new Mr;if(e instanceof Mr)return e;e=e.rgb();var t=e.r/255,n=e.g/255,r=e.b/255,a=Math.min(t,n,r),i=Math.max(t,n,r),s=NaN,o=i-a,l=(i+a)/2;return o?(t===i?s=(n-r)/o+(n<r)*6:n===i?s=(r-t)/o+2:s=(t-n)/o+4,o/=l<.5?i+a:2-i-a,s*=60):o=l>0&&l<1?0:s,new Mr(s,o,l,e.opacity)}function Hce(e,t,n,r){return arguments.length===1?R4(e):new Mr(e,t,n,r??1)}function Mr(e,t,n,r){this.h=+e,this.s=+t,this.l=+n,this.opacity=+r}dj(Mr,Hce,M4($d,{brighter(e){return e=e==null?pm:Math.pow(pm,e),new Mr(this.h,this.s,this.l*e,this.opacity)},darker(e){return e=e==null?_f:Math.pow(_f,e),new Mr(this.h,this.s,this.l*e,this.opacity)},rgb(){var e=this.h%360+(this.h<0)*360,t=isNaN(e)||isNaN(this.s)?0:this.s,n=this.l,r=n+(n<.5?n:1-n)*t,a=2*n-r;return new On(Zg(e>=240?e-240:e+120,a,r),Zg(e,a,r),Zg(e<120?e+240:e-120,a,r),this.opacity)},clamp(){return new Mr(dN(this.h),jh(this.s),jh(this.l),mm(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){const e=mm(this.opacity);return`${e===1?"hsl(":"hsla("}${dN(this.h)}, ${jh(this.s)*100}%, ${jh(this.l)*100}%${e===1?")":`, ${e})`}`}}));function dN(e){return e=(e||0)%360,e<0?e+360:e}function jh(e){return Math.max(0,Math.min(1,e||0))}function Zg(e,t,n){return(e<60?t+(n-t)*e/60:e<180?n:e<240?t+(n-t)*(240-e)/60:t)*255}const hj=e=>()=>e;function Fce(e,t){return function(n){return e+n*t}}function Gce(e,t,n){return e=Math.pow(e,n),t=Math.pow(t,n)-e,n=1/n,function(r){return Math.pow(e+r*t,n)}}function Kce(e){return(e=+e)==1?D4:function(t,n){return n-t?Gce(t,n,e):hj(isNaN(t)?n:t)}}function D4(e,t){var n=t-e;return n?Fce(e,n):hj(isNaN(e)?t:e)}const hN=function e(t){var n=Kce(t);function r(a,i){var s=n((a=Cx(a)).r,(i=Cx(i)).r),o=n(a.g,i.g),l=n(a.b,i.b),c=D4(a.opacity,i.opacity);return function(f){return a.r=s(f),a.g=o(f),a.b=l(f),a.opacity=c(f),a+""}}return r.gamma=e,r}(1);function Yce(e,t){t||(t=[]);var n=e?Math.min(t.length,e.length):0,r=t.slice(),a;return function(i){for(a=0;a<n;++a)r[a]=e[a]*(1-i)+t[a]*i;return r}}function Xce(e){return ArrayBuffer.isView(e)&&!(e instanceof DataView)}function Wce(e,t){var n=t?t.length:0,r=e?Math.min(n,e.length):0,a=new Array(r),i=new Array(n),s;for(s=0;s<r;++s)a[s]=Bc(e[s],t[s]);for(;s<n;++s)i[s]=t[s];return function(o){for(s=0;s<r;++s)i[s]=a[s](o);return i}}function Qce(e,t){var n=new Date;return e=+e,t=+t,function(r){return n.setTime(e*(1-r)+t*r),n}}function ym(e,t){return e=+e,t=+t,function(n){return e*(1-n)+t*n}}function Zce(e,t){var n={},r={},a;(e===null||typeof e!="object")&&(e={}),(t===null||typeof t!="object")&&(t={});for(a in t)a in e?n[a]=Bc(e[a],t[a]):r[a]=t[a];return function(i){for(a in n)r[a]=n[a](i);return r}}var Px=/[-+]?(?:\d+\.?\d*|\.?\d+)(?:[eE][-+]?\d+)?/g,Jg=new RegExp(Px.source,"g");function Jce(e){return function(){return e}}function eue(e){return function(t){return e(t)+""}}function tue(e,t){var n=Px.lastIndex=Jg.lastIndex=0,r,a,i,s=-1,o=[],l=[];for(e=e+"",t=t+"";(r=Px.exec(e))&&(a=Jg.exec(t));)(i=a.index)>n&&(i=t.slice(n,i),o[s]?o[s]+=i:o[++s]=i),(r=r[0])===(a=a[0])?o[s]?o[s]+=a:o[++s]=a:(o[++s]=null,l.push({i:s,x:ym(r,a)})),n=Jg.lastIndex;return n<t.length&&(i=t.slice(n),o[s]?o[s]+=i:o[++s]=i),o.length<2?l[0]?eue(l[0].x):Jce(t):(t=l.length,function(c){for(var f=0,d;f<t;++f)o[(d=l[f]).i]=d.x(c);return o.join("")})}function Bc(e,t){var n=typeof t,r;return t==null||n==="boolean"?hj(t):(n==="number"?ym:n==="string"?(r=Pf(t))?(t=r,hN):tue:t instanceof Pf?hN:t instanceof Date?Qce:Xce(t)?Yce:Array.isArray(t)?Wce:typeof t.valueOf!="function"&&typeof t.toString!="function"||isNaN(t)?Zce:ym)(e,t)}function pj(e,t){return e=+e,t=+t,function(n){return Math.round(e*(1-n)+t*n)}}function nue(e,t){t===void 0&&(t=e,e=Bc);for(var n=0,r=t.length-1,a=t[0],i=new Array(r<0?0:r);n<r;)i[n]=e(a,a=t[++n]);return function(s){var o=Math.max(0,Math.min(r-1,Math.floor(s*=r)));return i[o](s-o)}}function rue(e){return function(){return e}}function vm(e){return+e}var pN=[0,1];function hn(e){return e}function Mx(e,t){return(t-=e=+e)?function(n){return(n-e)/t}:rue(isNaN(t)?NaN:.5)}function aue(e,t){var n;return e>t&&(n=e,e=t,t=n),function(r){return Math.max(e,Math.min(t,r))}}function iue(e,t,n){var r=e[0],a=e[1],i=t[0],s=t[1];return a<r?(r=Mx(a,r),i=n(s,i)):(r=Mx(r,a),i=n(i,s)),function(o){return i(r(o))}}function sue(e,t,n){var r=Math.min(e.length,t.length)-1,a=new Array(r),i=new Array(r),s=-1;for(e[r]<e[0]&&(e=e.slice().reverse(),t=t.slice().reverse());++s<r;)a[s]=Mx(e[s],e[s+1]),i[s]=n(t[s],t[s+1]);return function(o){var l=Dd(e,o,1,r)-1;return i[l](a[l](o))}}function kd(e,t){return t.domain(e.domain()).range(e.range()).interpolate(e.interpolate()).clamp(e.clamp()).unknown(e.unknown())}function lv(){var e=pN,t=pN,n=Bc,r,a,i,s=hn,o,l,c;function f(){var h=Math.min(e.length,t.length);return s!==hn&&(s=aue(e[0],e[h-1])),o=h>2?sue:iue,l=c=null,d}function d(h){return h==null||isNaN(h=+h)?i:(l||(l=o(e.map(r),t,n)))(r(s(h)))}return d.invert=function(h){return s(a((c||(c=o(t,e.map(r),ym)))(h)))},d.domain=function(h){return arguments.length?(e=Array.from(h,vm),f()):e.slice()},d.range=function(h){return arguments.length?(t=Array.from(h),f()):t.slice()},d.rangeRound=function(h){return t=Array.from(h),n=pj,f()},d.clamp=function(h){return arguments.length?(s=h?!0:hn,f()):s!==hn},d.interpolate=function(h){return arguments.length?(n=h,f()):n},d.unknown=function(h){return arguments.length?(i=h,d):i},function(h,p){return r=h,a=p,f()}}function mj(){return lv()(hn,hn)}function oue(e){return Math.abs(e=Math.round(e))>=1e21?e.toLocaleString("en").replace(/,/g,""):e.toString(10)}function gm(e,t){if(!isFinite(e)||e===0)return null;var n=(e=t?e.toExponential(t-1):e.toExponential()).indexOf("e"),r=e.slice(0,n);return[r.length>1?r[0]+r.slice(2):r,+e.slice(n+1)]}function Yl(e){return e=gm(Math.abs(e)),e?e[1]:NaN}function lue(e,t){return function(n,r){for(var a=n.length,i=[],s=0,o=e[0],l=0;a>0&&o>0&&(l+o+1>r&&(o=Math.max(1,r-l)),i.push(n.substring(a-=o,a+o)),!((l+=o+1)>r));)o=e[s=(s+1)%e.length];return i.reverse().join(t)}}function cue(e){return function(t){return t.replace(/[0-9]/g,function(n){return e[+n]})}}var uue=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Mf(e){if(!(t=uue.exec(e)))throw new Error("invalid format: "+e);var t;return new yj({fill:t[1],align:t[2],sign:t[3],symbol:t[4],zero:t[5],width:t[6],comma:t[7],precision:t[8]&&t[8].slice(1),trim:t[9],type:t[10]})}Mf.prototype=yj.prototype;function yj(e){this.fill=e.fill===void 0?" ":e.fill+"",this.align=e.align===void 0?">":e.align+"",this.sign=e.sign===void 0?"-":e.sign+"",this.symbol=e.symbol===void 0?"":e.symbol+"",this.zero=!!e.zero,this.width=e.width===void 0?void 0:+e.width,this.comma=!!e.comma,this.precision=e.precision===void 0?void 0:+e.precision,this.trim=!!e.trim,this.type=e.type===void 0?"":e.type+""}yj.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function fue(e){e:for(var t=e.length,n=1,r=-1,a;n<t;++n)switch(e[n]){case".":r=a=n;break;case"0":r===0&&(r=n),a=n;break;default:if(!+e[n])break e;r>0&&(r=0);break}return r>0?e.slice(0,r)+e.slice(a+1):e}var bm;function due(e,t){var n=gm(e,t);if(!n)return bm=void 0,e.toPrecision(t);var r=n[0],a=n[1],i=a-(bm=Math.max(-8,Math.min(8,Math.floor(a/3)))*3)+1,s=r.length;return i===s?r:i>s?r+new Array(i-s+1).join("0"):i>0?r.slice(0,i)+"."+r.slice(i):"0."+new Array(1-i).join("0")+gm(e,Math.max(0,t+i-1))[0]}function mN(e,t){var n=gm(e,t);if(!n)return e+"";var r=n[0],a=n[1];return a<0?"0."+new Array(-a).join("0")+r:r.length>a+1?r.slice(0,a+1)+"."+r.slice(a+1):r+new Array(a-r.length+2).join("0")}const yN={"%":(e,t)=>(e*100).toFixed(t),b:e=>Math.round(e).toString(2),c:e=>e+"",d:oue,e:(e,t)=>e.toExponential(t),f:(e,t)=>e.toFixed(t),g:(e,t)=>e.toPrecision(t),o:e=>Math.round(e).toString(8),p:(e,t)=>mN(e*100,t),r:mN,s:due,X:e=>Math.round(e).toString(16).toUpperCase(),x:e=>Math.round(e).toString(16)};function vN(e){return e}var gN=Array.prototype.map,bN=["y","z","a","f","p","n","µ","m","","k","M","G","T","P","E","Z","Y"];function hue(e){var t=e.grouping===void 0||e.thousands===void 0?vN:lue(gN.call(e.grouping,Number),e.thousands+""),n=e.currency===void 0?"":e.currency[0]+"",r=e.currency===void 0?"":e.currency[1]+"",a=e.decimal===void 0?".":e.decimal+"",i=e.numerals===void 0?vN:cue(gN.call(e.numerals,String)),s=e.percent===void 0?"%":e.percent+"",o=e.minus===void 0?"−":e.minus+"",l=e.nan===void 0?"NaN":e.nan+"";function c(d,h){d=Mf(d);var p=d.fill,v=d.align,y=d.sign,b=d.symbol,m=d.zero,g=d.width,x=d.comma,w=d.precision,S=d.trim,j=d.type;j==="n"?(x=!0,j="g"):yN[j]||(w===void 0&&(w=12),S=!0,j="g"),(m||p==="0"&&v==="=")&&(m=!0,p="0",v="=");var O=(h&&h.prefix!==void 0?h.prefix:"")+(b==="$"?n:b==="#"&&/[boxX]/.test(j)?"0"+j.toLowerCase():""),E=(b==="$"?r:/[%p]/.test(j)?s:"")+(h&&h.suffix!==void 0?h.suffix:""),T=yN[j],_=/[defgprs%]/.test(j);w=w===void 0?6:/[gprs]/.test(j)?Math.max(1,Math.min(21,w)):Math.max(0,Math.min(20,w));function M(C){var z=O,L=E,k,R,$;if(j==="c")L=T(C)+L,C="";else{C=+C;var B=C<0||1/C<0;if(C=isNaN(C)?l:T(Math.abs(C),w),S&&(C=fue(C)),B&&+C==0&&y!=="+"&&(B=!1),z=(B?y==="("?y:o:y==="-"||y==="("?"":y)+z,L=(j==="s"&&!isNaN(C)&&bm!==void 0?bN[8+bm/3]:"")+L+(B&&y==="("?")":""),_){for(k=-1,R=C.length;++k<R;)if($=C.charCodeAt(k),48>$||$>57){L=($===46?a+C.slice(k+1):C.slice(k))+L,C=C.slice(0,k);break}}}x&&!m&&(C=t(C,1/0));var V=z.length+C.length+L.length,H=V<g?new Array(g-V+1).join(p):"";switch(x&&m&&(C=t(H+C,H.length?g-L.length:1/0),H=""),v){case"<":C=z+C+L+H;break;case"=":C=z+H+C+L;break;case"^":C=H.slice(0,V=H.length>>1)+z+C+L+H.slice(V);break;default:C=H+z+C+L;break}return i(C)}return M.toString=function(){return d+""},M}function f(d,h){var p=Math.max(-8,Math.min(8,Math.floor(Yl(h)/3)))*3,v=Math.pow(10,-p),y=c((d=Mf(d),d.type="f",d),{suffix:bN[8+p/3]});return function(b){return y(v*b)}}return{format:c,formatPrefix:f}}var Ah,vj,$4;pue({thousands:",",grouping:[3],currency:["$",""]});function pue(e){return Ah=hue(e),vj=Ah.format,$4=Ah.formatPrefix,Ah}function mue(e){return Math.max(0,-Yl(Math.abs(e)))}function yue(e,t){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(Yl(t)/3)))*3-Yl(Math.abs(e)))}function vue(e,t){return e=Math.abs(e),t=Math.abs(t)-e,Math.max(0,Yl(t)-Yl(e))+1}function k4(e,t,n,r){var a=Nx(e,t,n),i;switch(r=Mf(r??",f"),r.type){case"s":{var s=Math.max(Math.abs(e),Math.abs(t));return r.precision==null&&!isNaN(i=yue(a,s))&&(r.precision=i),$4(r,s)}case"":case"e":case"g":case"p":case"r":{r.precision==null&&!isNaN(i=vue(a,Math.max(Math.abs(e),Math.abs(t))))&&(r.precision=i-(r.type==="e"));break}case"f":case"%":{r.precision==null&&!isNaN(i=mue(a))&&(r.precision=i-(r.type==="%")*2);break}}return vj(r)}function es(e){var t=e.domain;return e.ticks=function(n){var r=t();return Ex(r[0],r[r.length-1],n??10)},e.tickFormat=function(n,r){var a=t();return k4(a[0],a[a.length-1],n??10,r)},e.nice=function(n){n==null&&(n=10);var r=t(),a=0,i=r.length-1,s=r[a],o=r[i],l,c,f=10;for(o<s&&(c=s,s=o,o=c,c=a,a=i,i=c);f-- >0;){if(c=Tx(s,o,n),c===l)return r[a]=s,r[i]=o,t(r);if(c>0)s=Math.floor(s/c)*c,o=Math.ceil(o/c)*c;else if(c<0)s=Math.ceil(s*c)/c,o=Math.floor(o*c)/c;else break;l=c}return e},e}function xm(){var e=mj();return e.copy=function(){return kd(e,xm())},jr.apply(e,arguments),es(e)}function L4(e){var t;function n(r){return r==null||isNaN(r=+r)?t:r}return n.invert=n,n.domain=n.range=function(r){return arguments.length?(e=Array.from(r,vm),n):e.slice()},n.unknown=function(r){return arguments.length?(t=r,n):t},n.copy=function(){return L4(e).unknown(t)},e=arguments.length?Array.from(e,vm):[0,1],es(n)}function z4(e,t){e=e.slice();var n=0,r=e.length-1,a=e[n],i=e[r],s;return i<a&&(s=n,n=r,r=s,s=a,a=i,i=s),e[n]=t.floor(a),e[r]=t.ceil(i),e}function xN(e){return Math.log(e)}function SN(e){return Math.exp(e)}function gue(e){return-Math.log(-e)}function bue(e){return-Math.exp(-e)}function xue(e){return isFinite(e)?+("1e"+e):e<0?0:e}function Sue(e){return e===10?xue:e===Math.E?Math.exp:t=>Math.pow(e,t)}function wue(e){return e===Math.E?Math.log:e===10&&Math.log10||e===2&&Math.log2||(e=Math.log(e),t=>Math.log(t)/e)}function wN(e){return(t,n)=>-e(-t,n)}function gj(e){const t=e(xN,SN),n=t.domain;let r=10,a,i;function s(){return a=wue(r),i=Sue(r),n()[0]<0?(a=wN(a),i=wN(i),e(gue,bue)):e(xN,SN),t}return t.base=function(o){return arguments.length?(r=+o,s()):r},t.domain=function(o){return arguments.length?(n(o),s()):n()},t.ticks=o=>{const l=n();let c=l[0],f=l[l.length-1];const d=f<c;d&&([c,f]=[f,c]);let h=a(c),p=a(f),v,y;const b=o==null?10:+o;let m=[];if(!(r%1)&&p-h<b){if(h=Math.floor(h),p=Math.ceil(p),c>0){for(;h<=p;++h)for(v=1;v<r;++v)if(y=h<0?v/i(-h):v*i(h),!(y<c)){if(y>f)break;m.push(y)}}else for(;h<=p;++h)for(v=r-1;v>=1;--v)if(y=h>0?v/i(-h):v*i(h),!(y<c)){if(y>f)break;m.push(y)}m.length*2<b&&(m=Ex(c,f,b))}else m=Ex(h,p,Math.min(p-h,b)).map(i);return d?m.reverse():m},t.tickFormat=(o,l)=>{if(o==null&&(o=10),l==null&&(l=r===10?"s":","),typeof l!="function"&&(!(r%1)&&(l=Mf(l)).precision==null&&(l.trim=!0),l=vj(l)),o===1/0)return l;const c=Math.max(1,r*o/t.ticks().length);return f=>{let d=f/i(Math.round(a(f)));return d*r<r-.5&&(d*=r),d<=c?l(f):""}},t.nice=()=>n(z4(n(),{floor:o=>i(Math.floor(a(o))),ceil:o=>i(Math.ceil(a(o)))})),t}function B4(){const e=gj(lv()).domain([1,10]);return e.copy=()=>kd(e,B4()).base(e.base()),jr.apply(e,arguments),e}function jN(e){return function(t){return Math.sign(t)*Math.log1p(Math.abs(t/e))}}function AN(e){return function(t){return Math.sign(t)*Math.expm1(Math.abs(t))*e}}function bj(e){var t=1,n=e(jN(t),AN(t));return n.constant=function(r){return arguments.length?e(jN(t=+r),AN(t)):t},es(n)}function I4(){var e=bj(lv());return e.copy=function(){return kd(e,I4()).constant(e.constant())},jr.apply(e,arguments)}function ON(e){return function(t){return t<0?-Math.pow(-t,e):Math.pow(t,e)}}function jue(e){return e<0?-Math.sqrt(-e):Math.sqrt(e)}function Aue(e){return e<0?-e*e:e*e}function xj(e){var t=e(hn,hn),n=1;function r(){return n===1?e(hn,hn):n===.5?e(jue,Aue):e(ON(n),ON(1/n))}return t.exponent=function(a){return arguments.length?(n=+a,r()):n},es(t)}function Sj(){var e=xj(lv());return e.copy=function(){return kd(e,Sj()).exponent(e.exponent())},jr.apply(e,arguments),e}function Oue(){return Sj.apply(null,arguments).exponent(.5)}function EN(e){return Math.sign(e)*e*e}function Eue(e){return Math.sign(e)*Math.sqrt(Math.abs(e))}function U4(){var e=mj(),t=[0,1],n=!1,r;function a(i){var s=Eue(e(i));return isNaN(s)?r:n?Math.round(s):s}return a.invert=function(i){return e.invert(EN(i))},a.domain=function(i){return arguments.length?(e.domain(i),a):e.domain()},a.range=function(i){return arguments.length?(e.range((t=Array.from(i,vm)).map(EN)),a):t.slice()},a.rangeRound=function(i){return a.range(i).round(!0)},a.round=function(i){return arguments.length?(n=!!i,a):n},a.clamp=function(i){return arguments.length?(e.clamp(i),a):e.clamp()},a.unknown=function(i){return arguments.length?(r=i,a):r},a.copy=function(){return U4(e.domain(),t).round(n).clamp(e.clamp()).unknown(r)},jr.apply(a,arguments),es(a)}function q4(){var e=[],t=[],n=[],r;function a(){var s=0,o=Math.max(1,t.length);for(n=new Array(o-1);++s<o;)n[s-1]=Pce(e,s/o);return i}function i(s){return s==null||isNaN(s=+s)?r:t[Dd(n,s)]}return i.invertExtent=function(s){var o=t.indexOf(s);return o<0?[NaN,NaN]:[o>0?n[o-1]:e[0],o<n.length?n[o]:e[e.length-1]]},i.domain=function(s){if(!arguments.length)return e.slice();e=[];for(let o of s)o!=null&&!isNaN(o=+o)&&e.push(o);return e.sort(Ui),a()},i.range=function(s){return arguments.length?(t=Array.from(s),a()):t.slice()},i.unknown=function(s){return arguments.length?(r=s,i):r},i.quantiles=function(){return n.slice()},i.copy=function(){return q4().domain(e).range(t).unknown(r)},jr.apply(i,arguments)}function V4(){var e=0,t=1,n=1,r=[.5],a=[0,1],i;function s(l){return l!=null&&l<=l?a[Dd(r,l,0,n)]:i}function o(){var l=-1;for(r=new Array(n);++l<n;)r[l]=((l+1)*t-(l-n)*e)/(n+1);return s}return s.domain=function(l){return arguments.length?([e,t]=l,e=+e,t=+t,o()):[e,t]},s.range=function(l){return arguments.length?(n=(a=Array.from(l)).length-1,o()):a.slice()},s.invertExtent=function(l){var c=a.indexOf(l);return c<0?[NaN,NaN]:c<1?[e,r[0]]:c>=n?[r[n-1],t]:[r[c-1],r[c]]},s.unknown=function(l){return arguments.length&&(i=l),s},s.thresholds=function(){return r.slice()},s.copy=function(){return V4().domain([e,t]).range(a).unknown(i)},jr.apply(es(s),arguments)}function H4(){var e=[.5],t=[0,1],n,r=1;function a(i){return i!=null&&i<=i?t[Dd(e,i,0,r)]:n}return a.domain=function(i){return arguments.length?(e=Array.from(i),r=Math.min(e.length,t.length-1),a):e.slice()},a.range=function(i){return arguments.length?(t=Array.from(i),r=Math.min(e.length,t.length-1),a):t.slice()},a.invertExtent=function(i){var s=t.indexOf(i);return[e[s-1],e[s]]},a.unknown=function(i){return arguments.length?(n=i,a):n},a.copy=function(){return H4().domain(e).range(t).unknown(n)},jr.apply(a,arguments)}const eb=new Date,tb=new Date;function kt(e,t,n,r){function a(i){return e(i=arguments.length===0?new Date:new Date(+i)),i}return a.floor=i=>(e(i=new Date(+i)),i),a.ceil=i=>(e(i=new Date(i-1)),t(i,1),e(i),i),a.round=i=>{const s=a(i),o=a.ceil(i);return i-s<o-i?s:o},a.offset=(i,s)=>(t(i=new Date(+i),s==null?1:Math.floor(s)),i),a.range=(i,s,o)=>{const l=[];if(i=a.ceil(i),o=o==null?1:Math.floor(o),!(i<s)||!(o>0))return l;let c;do l.push(c=new Date(+i)),t(i,o),e(i);while(c<i&&i<s);return l},a.filter=i=>kt(s=>{if(s>=s)for(;e(s),!i(s);)s.setTime(s-1)},(s,o)=>{if(s>=s)if(o<0)for(;++o<=0;)for(;t(s,-1),!i(s););else for(;--o>=0;)for(;t(s,1),!i(s););}),n&&(a.count=(i,s)=>(eb.setTime(+i),tb.setTime(+s),e(eb),e(tb),Math.floor(n(eb,tb))),a.every=i=>(i=Math.floor(i),!isFinite(i)||!(i>0)?null:i>1?a.filter(r?s=>r(s)%i===0:s=>a.count(0,s)%i===0):a)),a}const Sm=kt(()=>{},(e,t)=>{e.setTime(+e+t)},(e,t)=>t-e);Sm.every=e=>(e=Math.floor(e),!isFinite(e)||!(e>0)?null:e>1?kt(t=>{t.setTime(Math.floor(t/e)*e)},(t,n)=>{t.setTime(+t+n*e)},(t,n)=>(n-t)/e):Sm);Sm.range;const Na=1e3,hr=Na*60,_a=hr*60,Ka=_a*24,wj=Ka*7,TN=Ka*30,nb=Ka*365,Os=kt(e=>{e.setTime(e-e.getMilliseconds())},(e,t)=>{e.setTime(+e+t*Na)},(e,t)=>(t-e)/Na,e=>e.getUTCSeconds());Os.range;const jj=kt(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Na)},(e,t)=>{e.setTime(+e+t*hr)},(e,t)=>(t-e)/hr,e=>e.getMinutes());jj.range;const Aj=kt(e=>{e.setUTCSeconds(0,0)},(e,t)=>{e.setTime(+e+t*hr)},(e,t)=>(t-e)/hr,e=>e.getUTCMinutes());Aj.range;const Oj=kt(e=>{e.setTime(e-e.getMilliseconds()-e.getSeconds()*Na-e.getMinutes()*hr)},(e,t)=>{e.setTime(+e+t*_a)},(e,t)=>(t-e)/_a,e=>e.getHours());Oj.range;const Ej=kt(e=>{e.setUTCMinutes(0,0,0)},(e,t)=>{e.setTime(+e+t*_a)},(e,t)=>(t-e)/_a,e=>e.getUTCHours());Ej.range;const Ld=kt(e=>e.setHours(0,0,0,0),(e,t)=>e.setDate(e.getDate()+t),(e,t)=>(t-e-(t.getTimezoneOffset()-e.getTimezoneOffset())*hr)/Ka,e=>e.getDate()-1);Ld.range;const cv=kt(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Ka,e=>e.getUTCDate()-1);cv.range;const F4=kt(e=>{e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCDate(e.getUTCDate()+t)},(e,t)=>(t-e)/Ka,e=>Math.floor(e/Ka));F4.range;function go(e){return kt(t=>{t.setDate(t.getDate()-(t.getDay()+7-e)%7),t.setHours(0,0,0,0)},(t,n)=>{t.setDate(t.getDate()+n*7)},(t,n)=>(n-t-(n.getTimezoneOffset()-t.getTimezoneOffset())*hr)/wj)}const uv=go(0),wm=go(1),Tue=go(2),Nue=go(3),Xl=go(4),_ue=go(5),Cue=go(6);uv.range;wm.range;Tue.range;Nue.range;Xl.range;_ue.range;Cue.range;function bo(e){return kt(t=>{t.setUTCDate(t.getUTCDate()-(t.getUTCDay()+7-e)%7),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCDate(t.getUTCDate()+n*7)},(t,n)=>(n-t)/wj)}const fv=bo(0),jm=bo(1),Pue=bo(2),Mue=bo(3),Wl=bo(4),Rue=bo(5),Due=bo(6);fv.range;jm.range;Pue.range;Mue.range;Wl.range;Rue.range;Due.range;const Tj=kt(e=>{e.setDate(1),e.setHours(0,0,0,0)},(e,t)=>{e.setMonth(e.getMonth()+t)},(e,t)=>t.getMonth()-e.getMonth()+(t.getFullYear()-e.getFullYear())*12,e=>e.getMonth());Tj.range;const Nj=kt(e=>{e.setUTCDate(1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCMonth(e.getUTCMonth()+t)},(e,t)=>t.getUTCMonth()-e.getUTCMonth()+(t.getUTCFullYear()-e.getUTCFullYear())*12,e=>e.getUTCMonth());Nj.range;const Ya=kt(e=>{e.setMonth(0,1),e.setHours(0,0,0,0)},(e,t)=>{e.setFullYear(e.getFullYear()+t)},(e,t)=>t.getFullYear()-e.getFullYear(),e=>e.getFullYear());Ya.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:kt(t=>{t.setFullYear(Math.floor(t.getFullYear()/e)*e),t.setMonth(0,1),t.setHours(0,0,0,0)},(t,n)=>{t.setFullYear(t.getFullYear()+n*e)});Ya.range;const Xa=kt(e=>{e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,t)=>{e.setUTCFullYear(e.getUTCFullYear()+t)},(e,t)=>t.getUTCFullYear()-e.getUTCFullYear(),e=>e.getUTCFullYear());Xa.every=e=>!isFinite(e=Math.floor(e))||!(e>0)?null:kt(t=>{t.setUTCFullYear(Math.floor(t.getUTCFullYear()/e)*e),t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,n)=>{t.setUTCFullYear(t.getUTCFullYear()+n*e)});Xa.range;function G4(e,t,n,r,a,i){const s=[[Os,1,Na],[Os,5,5*Na],[Os,15,15*Na],[Os,30,30*Na],[i,1,hr],[i,5,5*hr],[i,15,15*hr],[i,30,30*hr],[a,1,_a],[a,3,3*_a],[a,6,6*_a],[a,12,12*_a],[r,1,Ka],[r,2,2*Ka],[n,1,wj],[t,1,TN],[t,3,3*TN],[e,1,nb]];function o(c,f,d){const h=f<c;h&&([c,f]=[f,c]);const p=d&&typeof d.range=="function"?d:l(c,f,d),v=p?p.range(c,+f+1):[];return h?v.reverse():v}function l(c,f,d){const h=Math.abs(f-c)/d,p=uj(([,,b])=>b).right(s,h);if(p===s.length)return e.every(Nx(c/nb,f/nb,d));if(p===0)return Sm.every(Math.max(Nx(c,f,d),1));const[v,y]=s[h/s[p-1][2]<s[p][2]/h?p-1:p];return v.every(y)}return[o,l]}const[$ue,kue]=G4(Xa,Nj,fv,F4,Ej,Aj),[Lue,zue]=G4(Ya,Tj,uv,Ld,Oj,jj);function rb(e){if(0<=e.y&&e.y<100){var t=new Date(-1,e.m,e.d,e.H,e.M,e.S,e.L);return t.setFullYear(e.y),t}return new Date(e.y,e.m,e.d,e.H,e.M,e.S,e.L)}function ab(e){if(0<=e.y&&e.y<100){var t=new Date(Date.UTC(-1,e.m,e.d,e.H,e.M,e.S,e.L));return t.setUTCFullYear(e.y),t}return new Date(Date.UTC(e.y,e.m,e.d,e.H,e.M,e.S,e.L))}function au(e,t,n){return{y:e,m:t,d:n,H:0,M:0,S:0,L:0}}function Bue(e){var t=e.dateTime,n=e.date,r=e.time,a=e.periods,i=e.days,s=e.shortDays,o=e.months,l=e.shortMonths,c=iu(a),f=su(a),d=iu(i),h=su(i),p=iu(s),v=su(s),y=iu(o),b=su(o),m=iu(l),g=su(l),x={a:$,A:B,b:V,B:H,c:null,d:RN,e:RN,f:lfe,g:gfe,G:xfe,H:ife,I:sfe,j:ofe,L:K4,m:cfe,M:ufe,p:Q,q:Y,Q:kN,s:LN,S:ffe,u:dfe,U:hfe,V:pfe,w:mfe,W:yfe,x:null,X:null,y:vfe,Y:bfe,Z:Sfe,"%":$N},w={a:re,A:ee,b:be,B:Z,c:null,d:DN,e:DN,f:Ofe,g:$fe,G:Lfe,H:wfe,I:jfe,j:Afe,L:X4,m:Efe,M:Tfe,p:it,q:qe,Q:kN,s:LN,S:Nfe,u:_fe,U:Cfe,V:Pfe,w:Mfe,W:Rfe,x:null,X:null,y:Dfe,Y:kfe,Z:zfe,"%":$N},S={a:_,A:M,b:C,B:z,c:L,d:PN,e:PN,f:tfe,g:CN,G:_N,H:MN,I:MN,j:Que,L:efe,m:Wue,M:Zue,p:T,q:Xue,Q:rfe,s:afe,S:Jue,u:Hue,U:Fue,V:Gue,w:Vue,W:Kue,x:k,X:R,y:CN,Y:_N,Z:Yue,"%":nfe};x.x=j(n,x),x.X=j(r,x),x.c=j(t,x),w.x=j(n,w),w.X=j(r,w),w.c=j(t,w);function j(G,oe){return function(K){var q=[],Ce=-1,me=0,Ye=G.length,st,ft,Pn;for(K instanceof Date||(K=new Date(+K));++Ce<Ye;)G.charCodeAt(Ce)===37&&(q.push(G.slice(me,Ce)),(ft=NN[st=G.charAt(++Ce)])!=null?st=G.charAt(++Ce):ft=st==="e"?" ":"0",(Pn=oe[st])&&(st=Pn(K,ft)),q.push(st),me=Ce+1);return q.push(G.slice(me,Ce)),q.join("")}}function O(G,oe){return function(K){var q=au(1900,void 0,1),Ce=E(q,G,K+="",0),me,Ye;if(Ce!=K.length)return null;if("Q"in q)return new Date(q.Q);if("s"in q)return new Date(q.s*1e3+("L"in q?q.L:0));if(oe&&!("Z"in q)&&(q.Z=0),"p"in q&&(q.H=q.H%12+q.p*12),q.m===void 0&&(q.m="q"in q?q.q:0),"V"in q){if(q.V<1||q.V>53)return null;"w"in q||(q.w=1),"Z"in q?(me=ab(au(q.y,0,1)),Ye=me.getUTCDay(),me=Ye>4||Ye===0?jm.ceil(me):jm(me),me=cv.offset(me,(q.V-1)*7),q.y=me.getUTCFullYear(),q.m=me.getUTCMonth(),q.d=me.getUTCDate()+(q.w+6)%7):(me=rb(au(q.y,0,1)),Ye=me.getDay(),me=Ye>4||Ye===0?wm.ceil(me):wm(me),me=Ld.offset(me,(q.V-1)*7),q.y=me.getFullYear(),q.m=me.getMonth(),q.d=me.getDate()+(q.w+6)%7)}else("W"in q||"U"in q)&&("w"in q||(q.w="u"in q?q.u%7:"W"in q?1:0),Ye="Z"in q?ab(au(q.y,0,1)).getUTCDay():rb(au(q.y,0,1)).getDay(),q.m=0,q.d="W"in q?(q.w+6)%7+q.W*7-(Ye+5)%7:q.w+q.U*7-(Ye+6)%7);return"Z"in q?(q.H+=q.Z/100|0,q.M+=q.Z%100,ab(q)):rb(q)}}function E(G,oe,K,q){for(var Ce=0,me=oe.length,Ye=K.length,st,ft;Ce<me;){if(q>=Ye)return-1;if(st=oe.charCodeAt(Ce++),st===37){if(st=oe.charAt(Ce++),ft=S[st in NN?oe.charAt(Ce++):st],!ft||(q=ft(G,K,q))<0)return-1}else if(st!=K.charCodeAt(q++))return-1}return q}function T(G,oe,K){var q=c.exec(oe.slice(K));return q?(G.p=f.get(q[0].toLowerCase()),K+q[0].length):-1}function _(G,oe,K){var q=p.exec(oe.slice(K));return q?(G.w=v.get(q[0].toLowerCase()),K+q[0].length):-1}function M(G,oe,K){var q=d.exec(oe.slice(K));return q?(G.w=h.get(q[0].toLowerCase()),K+q[0].length):-1}function C(G,oe,K){var q=m.exec(oe.slice(K));return q?(G.m=g.get(q[0].toLowerCase()),K+q[0].length):-1}function z(G,oe,K){var q=y.exec(oe.slice(K));return q?(G.m=b.get(q[0].toLowerCase()),K+q[0].length):-1}function L(G,oe,K){return E(G,t,oe,K)}function k(G,oe,K){return E(G,n,oe,K)}function R(G,oe,K){return E(G,r,oe,K)}function $(G){return s[G.getDay()]}function B(G){return i[G.getDay()]}function V(G){return l[G.getMonth()]}function H(G){return o[G.getMonth()]}function Q(G){return a[+(G.getHours()>=12)]}function Y(G){return 1+~~(G.getMonth()/3)}function re(G){return s[G.getUTCDay()]}function ee(G){return i[G.getUTCDay()]}function be(G){return l[G.getUTCMonth()]}function Z(G){return o[G.getUTCMonth()]}function it(G){return a[+(G.getUTCHours()>=12)]}function qe(G){return 1+~~(G.getUTCMonth()/3)}return{format:function(G){var oe=j(G+="",x);return oe.toString=function(){return G},oe},parse:function(G){var oe=O(G+="",!1);return oe.toString=function(){return G},oe},utcFormat:function(G){var oe=j(G+="",w);return oe.toString=function(){return G},oe},utcParse:function(G){var oe=O(G+="",!0);return oe.toString=function(){return G},oe}}}var NN={"-":"",_:" ",0:"0"},Gt=/^\s*\d+/,Iue=/^%/,Uue=/[\\^$*+?|[\]().{}]/g;function Pe(e,t,n){var r=e<0?"-":"",a=(r?-e:e)+"",i=a.length;return r+(i<n?new Array(n-i+1).join(t)+a:a)}function que(e){return e.replace(Uue,"\\$&")}function iu(e){return new RegExp("^(?:"+e.map(que).join("|")+")","i")}function su(e){return new Map(e.map((t,n)=>[t.toLowerCase(),n]))}function Vue(e,t,n){var r=Gt.exec(t.slice(n,n+1));return r?(e.w=+r[0],n+r[0].length):-1}function Hue(e,t,n){var r=Gt.exec(t.slice(n,n+1));return r?(e.u=+r[0],n+r[0].length):-1}function Fue(e,t,n){var r=Gt.exec(t.slice(n,n+2));return r?(e.U=+r[0],n+r[0].length):-1}function Gue(e,t,n){var r=Gt.exec(t.slice(n,n+2));return r?(e.V=+r[0],n+r[0].length):-1}function Kue(e,t,n){var r=Gt.exec(t.slice(n,n+2));return r?(e.W=+r[0],n+r[0].length):-1}function _N(e,t,n){var r=Gt.exec(t.slice(n,n+4));return r?(e.y=+r[0],n+r[0].length):-1}function CN(e,t,n){var r=Gt.exec(t.slice(n,n+2));return r?(e.y=+r[0]+(+r[0]>68?1900:2e3),n+r[0].length):-1}function Yue(e,t,n){var r=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(t.slice(n,n+6));return r?(e.Z=r[1]?0:-(r[2]+(r[3]||"00")),n+r[0].length):-1}function Xue(e,t,n){var r=Gt.exec(t.slice(n,n+1));return r?(e.q=r[0]*3-3,n+r[0].length):-1}function Wue(e,t,n){var r=Gt.exec(t.slice(n,n+2));return r?(e.m=r[0]-1,n+r[0].length):-1}function PN(e,t,n){var r=Gt.exec(t.slice(n,n+2));return r?(e.d=+r[0],n+r[0].length):-1}function Que(e,t,n){var r=Gt.exec(t.slice(n,n+3));return r?(e.m=0,e.d=+r[0],n+r[0].length):-1}function MN(e,t,n){var r=Gt.exec(t.slice(n,n+2));return r?(e.H=+r[0],n+r[0].length):-1}function Zue(e,t,n){var r=Gt.exec(t.slice(n,n+2));return r?(e.M=+r[0],n+r[0].length):-1}function Jue(e,t,n){var r=Gt.exec(t.slice(n,n+2));return r?(e.S=+r[0],n+r[0].length):-1}function efe(e,t,n){var r=Gt.exec(t.slice(n,n+3));return r?(e.L=+r[0],n+r[0].length):-1}function tfe(e,t,n){var r=Gt.exec(t.slice(n,n+6));return r?(e.L=Math.floor(r[0]/1e3),n+r[0].length):-1}function nfe(e,t,n){var r=Iue.exec(t.slice(n,n+1));return r?n+r[0].length:-1}function rfe(e,t,n){var r=Gt.exec(t.slice(n));return r?(e.Q=+r[0],n+r[0].length):-1}function afe(e,t,n){var r=Gt.exec(t.slice(n));return r?(e.s=+r[0],n+r[0].length):-1}function RN(e,t){return Pe(e.getDate(),t,2)}function ife(e,t){return Pe(e.getHours(),t,2)}function sfe(e,t){return Pe(e.getHours()%12||12,t,2)}function ofe(e,t){return Pe(1+Ld.count(Ya(e),e),t,3)}function K4(e,t){return Pe(e.getMilliseconds(),t,3)}function lfe(e,t){return K4(e,t)+"000"}function cfe(e,t){return Pe(e.getMonth()+1,t,2)}function ufe(e,t){return Pe(e.getMinutes(),t,2)}function ffe(e,t){return Pe(e.getSeconds(),t,2)}function dfe(e){var t=e.getDay();return t===0?7:t}function hfe(e,t){return Pe(uv.count(Ya(e)-1,e),t,2)}function Y4(e){var t=e.getDay();return t>=4||t===0?Xl(e):Xl.ceil(e)}function pfe(e,t){return e=Y4(e),Pe(Xl.count(Ya(e),e)+(Ya(e).getDay()===4),t,2)}function mfe(e){return e.getDay()}function yfe(e,t){return Pe(wm.count(Ya(e)-1,e),t,2)}function vfe(e,t){return Pe(e.getFullYear()%100,t,2)}function gfe(e,t){return e=Y4(e),Pe(e.getFullYear()%100,t,2)}function bfe(e,t){return Pe(e.getFullYear()%1e4,t,4)}function xfe(e,t){var n=e.getDay();return e=n>=4||n===0?Xl(e):Xl.ceil(e),Pe(e.getFullYear()%1e4,t,4)}function Sfe(e){var t=e.getTimezoneOffset();return(t>0?"-":(t*=-1,"+"))+Pe(t/60|0,"0",2)+Pe(t%60,"0",2)}function DN(e,t){return Pe(e.getUTCDate(),t,2)}function wfe(e,t){return Pe(e.getUTCHours(),t,2)}function jfe(e,t){return Pe(e.getUTCHours()%12||12,t,2)}function Afe(e,t){return Pe(1+cv.count(Xa(e),e),t,3)}function X4(e,t){return Pe(e.getUTCMilliseconds(),t,3)}function Ofe(e,t){return X4(e,t)+"000"}function Efe(e,t){return Pe(e.getUTCMonth()+1,t,2)}function Tfe(e,t){return Pe(e.getUTCMinutes(),t,2)}function Nfe(e,t){return Pe(e.getUTCSeconds(),t,2)}function _fe(e){var t=e.getUTCDay();return t===0?7:t}function Cfe(e,t){return Pe(fv.count(Xa(e)-1,e),t,2)}function W4(e){var t=e.getUTCDay();return t>=4||t===0?Wl(e):Wl.ceil(e)}function Pfe(e,t){return e=W4(e),Pe(Wl.count(Xa(e),e)+(Xa(e).getUTCDay()===4),t,2)}function Mfe(e){return e.getUTCDay()}function Rfe(e,t){return Pe(jm.count(Xa(e)-1,e),t,2)}function Dfe(e,t){return Pe(e.getUTCFullYear()%100,t,2)}function $fe(e,t){return e=W4(e),Pe(e.getUTCFullYear()%100,t,2)}function kfe(e,t){return Pe(e.getUTCFullYear()%1e4,t,4)}function Lfe(e,t){var n=e.getUTCDay();return e=n>=4||n===0?Wl(e):Wl.ceil(e),Pe(e.getUTCFullYear()%1e4,t,4)}function zfe(){return"+0000"}function $N(){return"%"}function kN(e){return+e}function LN(e){return Math.floor(+e/1e3)}var No,Q4,Z4;Bfe({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function Bfe(e){return No=Bue(e),Q4=No.format,No.parse,Z4=No.utcFormat,No.utcParse,No}function Ife(e){return new Date(e)}function Ufe(e){return e instanceof Date?+e:+new Date(+e)}function _j(e,t,n,r,a,i,s,o,l,c){var f=mj(),d=f.invert,h=f.domain,p=c(".%L"),v=c(":%S"),y=c("%I:%M"),b=c("%I %p"),m=c("%a %d"),g=c("%b %d"),x=c("%B"),w=c("%Y");function S(j){return(l(j)<j?p:o(j)<j?v:s(j)<j?y:i(j)<j?b:r(j)<j?a(j)<j?m:g:n(j)<j?x:w)(j)}return f.invert=function(j){return new Date(d(j))},f.domain=function(j){return arguments.length?h(Array.from(j,Ufe)):h().map(Ife)},f.ticks=function(j){var O=h();return e(O[0],O[O.length-1],j??10)},f.tickFormat=function(j,O){return O==null?S:c(O)},f.nice=function(j){var O=h();return(!j||typeof j.range!="function")&&(j=t(O[0],O[O.length-1],j??10)),j?h(z4(O,j)):f},f.copy=function(){return kd(f,_j(e,t,n,r,a,i,s,o,l,c))},f}function qfe(){return jr.apply(_j(Lue,zue,Ya,Tj,uv,Ld,Oj,jj,Os,Q4).domain([new Date(2e3,0,1),new Date(2e3,0,2)]),arguments)}function Vfe(){return jr.apply(_j($ue,kue,Xa,Nj,fv,cv,Ej,Aj,Os,Z4).domain([Date.UTC(2e3,0,1),Date.UTC(2e3,0,2)]),arguments)}function dv(){var e=0,t=1,n,r,a,i,s=hn,o=!1,l;function c(d){return d==null||isNaN(d=+d)?l:s(a===0?.5:(d=(i(d)-n)*a,o?Math.max(0,Math.min(1,d)):d))}c.domain=function(d){return arguments.length?([e,t]=d,n=i(e=+e),r=i(t=+t),a=n===r?0:1/(r-n),c):[e,t]},c.clamp=function(d){return arguments.length?(o=!!d,c):o},c.interpolator=function(d){return arguments.length?(s=d,c):s};function f(d){return function(h){var p,v;return arguments.length?([p,v]=h,s=d(p,v),c):[s(0),s(1)]}}return c.range=f(Bc),c.rangeRound=f(pj),c.unknown=function(d){return arguments.length?(l=d,c):l},function(d){return i=d,n=d(e),r=d(t),a=n===r?0:1/(r-n),c}}function ts(e,t){return t.domain(e.domain()).interpolator(e.interpolator()).clamp(e.clamp()).unknown(e.unknown())}function J4(){var e=es(dv()(hn));return e.copy=function(){return ts(e,J4())},ei.apply(e,arguments)}function ek(){var e=gj(dv()).domain([1,10]);return e.copy=function(){return ts(e,ek()).base(e.base())},ei.apply(e,arguments)}function tk(){var e=bj(dv());return e.copy=function(){return ts(e,tk()).constant(e.constant())},ei.apply(e,arguments)}function Cj(){var e=xj(dv());return e.copy=function(){return ts(e,Cj()).exponent(e.exponent())},ei.apply(e,arguments)}function Hfe(){return Cj.apply(null,arguments).exponent(.5)}function nk(){var e=[],t=hn;function n(r){if(r!=null&&!isNaN(r=+r))return t((Dd(e,r,1)-1)/(e.length-1))}return n.domain=function(r){if(!arguments.length)return e.slice();e=[];for(let a of r)a!=null&&!isNaN(a=+a)&&e.push(a);return e.sort(Ui),n},n.interpolator=function(r){return arguments.length?(t=r,n):t},n.range=function(){return e.map((r,a)=>t(a/(e.length-1)))},n.quantiles=function(r){return Array.from({length:r+1},(a,i)=>Cce(e,i/r))},n.copy=function(){return nk(t).domain(e)},ei.apply(n,arguments)}function hv(){var e=0,t=.5,n=1,r=1,a,i,s,o,l,c=hn,f,d=!1,h;function p(y){return isNaN(y=+y)?h:(y=.5+((y=+f(y))-i)*(r*y<r*i?o:l),c(d?Math.max(0,Math.min(1,y)):y))}p.domain=function(y){return arguments.length?([e,t,n]=y,a=f(e=+e),i=f(t=+t),s=f(n=+n),o=a===i?0:.5/(i-a),l=i===s?0:.5/(s-i),r=i<a?-1:1,p):[e,t,n]},p.clamp=function(y){return arguments.length?(d=!!y,p):d},p.interpolator=function(y){return arguments.length?(c=y,p):c};function v(y){return function(b){var m,g,x;return arguments.length?([m,g,x]=b,c=nue(y,[m,g,x]),p):[c(0),c(.5),c(1)]}}return p.range=v(Bc),p.rangeRound=v(pj),p.unknown=function(y){return arguments.length?(h=y,p):h},function(y){return f=y,a=y(e),i=y(t),s=y(n),o=a===i?0:.5/(i-a),l=i===s?0:.5/(s-i),r=i<a?-1:1,p}}function rk(){var e=es(hv()(hn));return e.copy=function(){return ts(e,rk())},ei.apply(e,arguments)}function ak(){var e=gj(hv()).domain([.1,1,10]);return e.copy=function(){return ts(e,ak()).base(e.base())},ei.apply(e,arguments)}function ik(){var e=bj(hv());return e.copy=function(){return ts(e,ik()).constant(e.constant())},ei.apply(e,arguments)}function Pj(){var e=xj(hv());return e.copy=function(){return ts(e,Pj()).exponent(e.exponent())},ei.apply(e,arguments)}function Ffe(){return Pj.apply(null,arguments).exponent(.5)}const zN=Object.freeze(Object.defineProperty({__proto__:null,scaleBand:Nf,scaleDiverging:rk,scaleDivergingLog:ak,scaleDivergingPow:Pj,scaleDivergingSqrt:Ffe,scaleDivergingSymlog:ik,scaleIdentity:L4,scaleImplicit:_x,scaleLinear:xm,scaleLog:B4,scaleOrdinal:fj,scalePoint:qu,scalePow:Sj,scaleQuantile:q4,scaleQuantize:V4,scaleRadial:U4,scaleSequential:J4,scaleSequentialLog:ek,scaleSequentialPow:Cj,scaleSequentialQuantile:nk,scaleSequentialSqrt:Hfe,scaleSequentialSymlog:tk,scaleSqrt:Oue,scaleSymlog:I4,scaleThreshold:H4,scaleTime:qfe,scaleUtc:Vfe,tickFormat:k4},Symbol.toStringTag,{value:"Module"}));var Gfe=Cc;function Kfe(e,t,n){for(var r=-1,a=e.length;++r<a;){var i=e[r],s=t(i);if(s!=null&&(o===void 0?s===s&&!Gfe(s):n(s,o)))var o=s,l=i}return l}var pv=Kfe;function Yfe(e,t){return e>t}var sk=Yfe,Xfe=pv,Wfe=sk,Qfe=zc;function Zfe(e){return e&&e.length?Xfe(e,Qfe,Wfe):void 0}var Jfe=Zfe;const _i=ze(Jfe);function ede(e,t){return e<t}var ok=ede,tde=pv,nde=ok,rde=zc;function ade(e){return e&&e.length?tde(e,rde,nde):void 0}var ide=ade;const mv=ze(ide);var sde=Fw,ode=ua,lde=y4,cde=Cn;function ude(e,t){var n=cde(e)?sde:lde;return n(e,ode(t))}var fde=ude,dde=p4,hde=fde;function pde(e,t){return dde(hde(e,t),1)}var mde=pde;const yde=ze(mde);var vde=sj;function gde(e,t){return vde(e,t)}var bde=gde;const ao=ze(bde);var Ic=1e9,xde={precision:20,rounding:4,toExpNeg:-7,toExpPos:21,LN10:"2.302585092994045684017991454684364207601101488628772976033327900967572609677352480235997205089598298341967784042286"},Rj,lt=!0,br="[DecimalError] ",Fs=br+"Invalid argument: ",Mj=br+"Exponent out of range: ",Uc=Math.floor,vs=Math.pow,Sde=/^(\d+(\.\d*)?|\.\d+)(e[+-]?\d+)?$/i,Un,It=1e7,tt=7,lk=9007199254740991,Am=Uc(lk/tt),te={};te.absoluteValue=te.abs=function(){var e=new this.constructor(this);return e.s&&(e.s=1),e};te.comparedTo=te.cmp=function(e){var t,n,r,a,i=this;if(e=new i.constructor(e),i.s!==e.s)return i.s||-e.s;if(i.e!==e.e)return i.e>e.e^i.s<0?1:-1;for(r=i.d.length,a=e.d.length,t=0,n=r<a?r:a;t<n;++t)if(i.d[t]!==e.d[t])return i.d[t]>e.d[t]^i.s<0?1:-1;return r===a?0:r>a^i.s<0?1:-1};te.decimalPlaces=te.dp=function(){var e=this,t=e.d.length-1,n=(t-e.e)*tt;if(t=e.d[t],t)for(;t%10==0;t/=10)n--;return n<0?0:n};te.dividedBy=te.div=function(e){return Ba(this,new this.constructor(e))};te.dividedToIntegerBy=te.idiv=function(e){var t=this,n=t.constructor;return Ge(Ba(t,new n(e),0,1),n.precision)};te.equals=te.eq=function(e){return!this.cmp(e)};te.exponent=function(){return Nt(this)};te.greaterThan=te.gt=function(e){return this.cmp(e)>0};te.greaterThanOrEqualTo=te.gte=function(e){return this.cmp(e)>=0};te.isInteger=te.isint=function(){return this.e>this.d.length-2};te.isNegative=te.isneg=function(){return this.s<0};te.isPositive=te.ispos=function(){return this.s>0};te.isZero=function(){return this.s===0};te.lessThan=te.lt=function(e){return this.cmp(e)<0};te.lessThanOrEqualTo=te.lte=function(e){return this.cmp(e)<1};te.logarithm=te.log=function(e){var t,n=this,r=n.constructor,a=r.precision,i=a+5;if(e===void 0)e=new r(10);else if(e=new r(e),e.s<1||e.eq(Un))throw Error(br+"NaN");if(n.s<1)throw Error(br+(n.s?"NaN":"-Infinity"));return n.eq(Un)?new r(0):(lt=!1,t=Ba(Rf(n,i),Rf(e,i),i),lt=!0,Ge(t,a))};te.minus=te.sub=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?fk(t,e):ck(t,(e.s=-e.s,e))};te.modulo=te.mod=function(e){var t,n=this,r=n.constructor,a=r.precision;if(e=new r(e),!e.s)throw Error(br+"NaN");return n.s?(lt=!1,t=Ba(n,e,0,1).times(e),lt=!0,n.minus(t)):Ge(new r(n),a)};te.naturalExponential=te.exp=function(){return uk(this)};te.naturalLogarithm=te.ln=function(){return Rf(this)};te.negated=te.neg=function(){var e=new this.constructor(this);return e.s=-e.s||0,e};te.plus=te.add=function(e){var t=this;return e=new t.constructor(e),t.s==e.s?ck(t,e):fk(t,(e.s=-e.s,e))};te.precision=te.sd=function(e){var t,n,r,a=this;if(e!==void 0&&e!==!!e&&e!==1&&e!==0)throw Error(Fs+e);if(t=Nt(a)+1,r=a.d.length-1,n=r*tt+1,r=a.d[r],r){for(;r%10==0;r/=10)n--;for(r=a.d[0];r>=10;r/=10)n++}return e&&t>n?t:n};te.squareRoot=te.sqrt=function(){var e,t,n,r,a,i,s,o=this,l=o.constructor;if(o.s<1){if(!o.s)return new l(0);throw Error(br+"NaN")}for(e=Nt(o),lt=!1,a=Math.sqrt(+o),a==0||a==1/0?(t=Qr(o.d),(t.length+e)%2==0&&(t+="0"),a=Math.sqrt(t),e=Uc((e+1)/2)-(e<0||e%2),a==1/0?t="5e"+e:(t=a.toExponential(),t=t.slice(0,t.indexOf("e")+1)+e),r=new l(t)):r=new l(a.toString()),n=l.precision,a=s=n+3;;)if(i=r,r=i.plus(Ba(o,i,s+2)).times(.5),Qr(i.d).slice(0,s)===(t=Qr(r.d)).slice(0,s)){if(t=t.slice(s-3,s+1),a==s&&t=="4999"){if(Ge(i,n+1,0),i.times(i).eq(o)){r=i;break}}else if(t!="9999")break;s+=4}return lt=!0,Ge(r,n)};te.times=te.mul=function(e){var t,n,r,a,i,s,o,l,c,f=this,d=f.constructor,h=f.d,p=(e=new d(e)).d;if(!f.s||!e.s)return new d(0);for(e.s*=f.s,n=f.e+e.e,l=h.length,c=p.length,l<c&&(i=h,h=p,p=i,s=l,l=c,c=s),i=[],s=l+c,r=s;r--;)i.push(0);for(r=c;--r>=0;){for(t=0,a=l+r;a>r;)o=i[a]+p[r]*h[a-r-1]+t,i[a--]=o%It|0,t=o/It|0;i[a]=(i[a]+t)%It|0}for(;!i[--s];)i.pop();return t?++n:i.shift(),e.d=i,e.e=n,lt?Ge(e,d.precision):e};te.toDecimalPlaces=te.todp=function(e,t){var n=this,r=n.constructor;return n=new r(n),e===void 0?n:(sa(e,0,Ic),t===void 0?t=r.rounding:sa(t,0,8),Ge(n,e+Nt(n)+1,t))};te.toExponential=function(e,t){var n,r=this,a=r.constructor;return e===void 0?n=io(r,!0):(sa(e,0,Ic),t===void 0?t=a.rounding:sa(t,0,8),r=Ge(new a(r),e+1,t),n=io(r,!0,e+1)),n};te.toFixed=function(e,t){var n,r,a=this,i=a.constructor;return e===void 0?io(a):(sa(e,0,Ic),t===void 0?t=i.rounding:sa(t,0,8),r=Ge(new i(a),e+Nt(a)+1,t),n=io(r.abs(),!1,e+Nt(r)+1),a.isneg()&&!a.isZero()?"-"+n:n)};te.toInteger=te.toint=function(){var e=this,t=e.constructor;return Ge(new t(e),Nt(e)+1,t.rounding)};te.toNumber=function(){return+this};te.toPower=te.pow=function(e){var t,n,r,a,i,s,o=this,l=o.constructor,c=12,f=+(e=new l(e));if(!e.s)return new l(Un);if(o=new l(o),!o.s){if(e.s<1)throw Error(br+"Infinity");return o}if(o.eq(Un))return o;if(r=l.precision,e.eq(Un))return Ge(o,r);if(t=e.e,n=e.d.length-1,s=t>=n,i=o.s,s){if((n=f<0?-f:f)<=lk){for(a=new l(Un),t=Math.ceil(r/tt+4),lt=!1;n%2&&(a=a.times(o),IN(a.d,t)),n=Uc(n/2),n!==0;)o=o.times(o),IN(o.d,t);return lt=!0,e.s<0?new l(Un).div(a):Ge(a,r)}}else if(i<0)throw Error(br+"NaN");return i=i<0&&e.d[Math.max(t,n)]&1?-1:1,o.s=1,lt=!1,a=e.times(Rf(o,r+c)),lt=!0,a=uk(a),a.s=i,a};te.toPrecision=function(e,t){var n,r,a=this,i=a.constructor;return e===void 0?(n=Nt(a),r=io(a,n<=i.toExpNeg||n>=i.toExpPos)):(sa(e,1,Ic),t===void 0?t=i.rounding:sa(t,0,8),a=Ge(new i(a),e,t),n=Nt(a),r=io(a,e<=n||n<=i.toExpNeg,e)),r};te.toSignificantDigits=te.tosd=function(e,t){var n=this,r=n.constructor;return e===void 0?(e=r.precision,t=r.rounding):(sa(e,1,Ic),t===void 0?t=r.rounding:sa(t,0,8)),Ge(new r(n),e,t)};te.toString=te.valueOf=te.val=te.toJSON=te[Symbol.for("nodejs.util.inspect.custom")]=function(){var e=this,t=Nt(e),n=e.constructor;return io(e,t<=n.toExpNeg||t>=n.toExpPos)};function ck(e,t){var n,r,a,i,s,o,l,c,f=e.constructor,d=f.precision;if(!e.s||!t.s)return t.s||(t=new f(e)),lt?Ge(t,d):t;if(l=e.d,c=t.d,s=e.e,a=t.e,l=l.slice(),i=s-a,i){for(i<0?(r=l,i=-i,o=c.length):(r=c,a=s,o=l.length),s=Math.ceil(d/tt),o=s>o?s+1:o+1,i>o&&(i=o,r.length=1),r.reverse();i--;)r.push(0);r.reverse()}for(o=l.length,i=c.length,o-i<0&&(i=o,r=c,c=l,l=r),n=0;i;)n=(l[--i]=l[i]+c[i]+n)/It|0,l[i]%=It;for(n&&(l.unshift(n),++a),o=l.length;l[--o]==0;)l.pop();return t.d=l,t.e=a,lt?Ge(t,d):t}function sa(e,t,n){if(e!==~~e||e<t||e>n)throw Error(Fs+e)}function Qr(e){var t,n,r,a=e.length-1,i="",s=e[0];if(a>0){for(i+=s,t=1;t<a;t++)r=e[t]+"",n=tt-r.length,n&&(i+=ui(n)),i+=r;s=e[t],r=s+"",n=tt-r.length,n&&(i+=ui(n))}else if(s===0)return"0";for(;s%10===0;)s/=10;return i+s}var Ba=function(){function e(r,a){var i,s=0,o=r.length;for(r=r.slice();o--;)i=r[o]*a+s,r[o]=i%It|0,s=i/It|0;return s&&r.unshift(s),r}function t(r,a,i,s){var o,l;if(i!=s)l=i>s?1:-1;else for(o=l=0;o<i;o++)if(r[o]!=a[o]){l=r[o]>a[o]?1:-1;break}return l}function n(r,a,i){for(var s=0;i--;)r[i]-=s,s=r[i]<a[i]?1:0,r[i]=s*It+r[i]-a[i];for(;!r[0]&&r.length>1;)r.shift()}return function(r,a,i,s){var o,l,c,f,d,h,p,v,y,b,m,g,x,w,S,j,O,E,T=r.constructor,_=r.s==a.s?1:-1,M=r.d,C=a.d;if(!r.s)return new T(r);if(!a.s)throw Error(br+"Division by zero");for(l=r.e-a.e,O=C.length,S=M.length,p=new T(_),v=p.d=[],c=0;C[c]==(M[c]||0);)++c;if(C[c]>(M[c]||0)&&--l,i==null?g=i=T.precision:s?g=i+(Nt(r)-Nt(a))+1:g=i,g<0)return new T(0);if(g=g/tt+2|0,c=0,O==1)for(f=0,C=C[0],g++;(c<S||f)&&g--;c++)x=f*It+(M[c]||0),v[c]=x/C|0,f=x%C|0;else{for(f=It/(C[0]+1)|0,f>1&&(C=e(C,f),M=e(M,f),O=C.length,S=M.length),w=O,y=M.slice(0,O),b=y.length;b<O;)y[b++]=0;E=C.slice(),E.unshift(0),j=C[0],C[1]>=It/2&&++j;do f=0,o=t(C,y,O,b),o<0?(m=y[0],O!=b&&(m=m*It+(y[1]||0)),f=m/j|0,f>1?(f>=It&&(f=It-1),d=e(C,f),h=d.length,b=y.length,o=t(d,y,h,b),o==1&&(f--,n(d,O<h?E:C,h))):(f==0&&(o=f=1),d=C.slice()),h=d.length,h<b&&d.unshift(0),n(y,d,b),o==-1&&(b=y.length,o=t(C,y,O,b),o<1&&(f++,n(y,O<b?E:C,b))),b=y.length):o===0&&(f++,y=[0]),v[c++]=f,o&&y[0]?y[b++]=M[w]||0:(y=[M[w]],b=1);while((w++<S||y[0]!==void 0)&&g--)}return v[0]||v.shift(),p.e=l,Ge(p,s?i+Nt(p)+1:i)}}();function uk(e,t){var n,r,a,i,s,o,l=0,c=0,f=e.constructor,d=f.precision;if(Nt(e)>16)throw Error(Mj+Nt(e));if(!e.s)return new f(Un);for(lt=!1,o=d,s=new f(.03125);e.abs().gte(.1);)e=e.times(s),c+=5;for(r=Math.log(vs(2,c))/Math.LN10*2+5|0,o+=r,n=a=i=new f(Un),f.precision=o;;){if(a=Ge(a.times(e),o),n=n.times(++l),s=i.plus(Ba(a,n,o)),Qr(s.d).slice(0,o)===Qr(i.d).slice(0,o)){for(;c--;)i=Ge(i.times(i),o);return f.precision=d,t==null?(lt=!0,Ge(i,d)):i}i=s}}function Nt(e){for(var t=e.e*tt,n=e.d[0];n>=10;n/=10)t++;return t}function ib(e,t,n){if(t>e.LN10.sd())throw lt=!0,n&&(e.precision=n),Error(br+"LN10 precision limit exceeded");return Ge(new e(e.LN10),t)}function ui(e){for(var t="";e--;)t+="0";return t}function Rf(e,t){var n,r,a,i,s,o,l,c,f,d=1,h=10,p=e,v=p.d,y=p.constructor,b=y.precision;if(p.s<1)throw Error(br+(p.s?"NaN":"-Infinity"));if(p.eq(Un))return new y(0);if(t==null?(lt=!1,c=b):c=t,p.eq(10))return t==null&&(lt=!0),ib(y,c);if(c+=h,y.precision=c,n=Qr(v),r=n.charAt(0),i=Nt(p),Math.abs(i)<15e14){for(;r<7&&r!=1||r==1&&n.charAt(1)>3;)p=p.times(e),n=Qr(p.d),r=n.charAt(0),d++;i=Nt(p),r>1?(p=new y("0."+n),i++):p=new y(r+"."+n.slice(1))}else return l=ib(y,c+2,b).times(i+""),p=Rf(new y(r+"."+n.slice(1)),c-h).plus(l),y.precision=b,t==null?(lt=!0,Ge(p,b)):p;for(o=s=p=Ba(p.minus(Un),p.plus(Un),c),f=Ge(p.times(p),c),a=3;;){if(s=Ge(s.times(f),c),l=o.plus(Ba(s,new y(a),c)),Qr(l.d).slice(0,c)===Qr(o.d).slice(0,c))return o=o.times(2),i!==0&&(o=o.plus(ib(y,c+2,b).times(i+""))),o=Ba(o,new y(d),c),y.precision=b,t==null?(lt=!0,Ge(o,b)):o;o=l,a+=2}}function BN(e,t){var n,r,a;for((n=t.indexOf("."))>-1&&(t=t.replace(".","")),(r=t.search(/e/i))>0?(n<0&&(n=r),n+=+t.slice(r+1),t=t.substring(0,r)):n<0&&(n=t.length),r=0;t.charCodeAt(r)===48;)++r;for(a=t.length;t.charCodeAt(a-1)===48;)--a;if(t=t.slice(r,a),t){if(a-=r,n=n-r-1,e.e=Uc(n/tt),e.d=[],r=(n+1)%tt,n<0&&(r+=tt),r<a){for(r&&e.d.push(+t.slice(0,r)),a-=tt;r<a;)e.d.push(+t.slice(r,r+=tt));t=t.slice(r),r=tt-t.length}else r-=a;for(;r--;)t+="0";if(e.d.push(+t),lt&&(e.e>Am||e.e<-Am))throw Error(Mj+n)}else e.s=0,e.e=0,e.d=[0];return e}function Ge(e,t,n){var r,a,i,s,o,l,c,f,d=e.d;for(s=1,i=d[0];i>=10;i/=10)s++;if(r=t-s,r<0)r+=tt,a=t,c=d[f=0];else{if(f=Math.ceil((r+1)/tt),i=d.length,f>=i)return e;for(c=i=d[f],s=1;i>=10;i/=10)s++;r%=tt,a=r-tt+s}if(n!==void 0&&(i=vs(10,s-a-1),o=c/i%10|0,l=t<0||d[f+1]!==void 0||c%i,l=n<4?(o||l)&&(n==0||n==(e.s<0?3:2)):o>5||o==5&&(n==4||l||n==6&&(r>0?a>0?c/vs(10,s-a):0:d[f-1])%10&1||n==(e.s<0?8:7))),t<1||!d[0])return l?(i=Nt(e),d.length=1,t=t-i-1,d[0]=vs(10,(tt-t%tt)%tt),e.e=Uc(-t/tt)||0):(d.length=1,d[0]=e.e=e.s=0),e;if(r==0?(d.length=f,i=1,f--):(d.length=f+1,i=vs(10,tt-r),d[f]=a>0?(c/vs(10,s-a)%vs(10,a)|0)*i:0),l)for(;;)if(f==0){(d[0]+=i)==It&&(d[0]=1,++e.e);break}else{if(d[f]+=i,d[f]!=It)break;d[f--]=0,i=1}for(r=d.length;d[--r]===0;)d.pop();if(lt&&(e.e>Am||e.e<-Am))throw Error(Mj+Nt(e));return e}function fk(e,t){var n,r,a,i,s,o,l,c,f,d,h=e.constructor,p=h.precision;if(!e.s||!t.s)return t.s?t.s=-t.s:t=new h(e),lt?Ge(t,p):t;if(l=e.d,d=t.d,r=t.e,c=e.e,l=l.slice(),s=c-r,s){for(f=s<0,f?(n=l,s=-s,o=d.length):(n=d,r=c,o=l.length),a=Math.max(Math.ceil(p/tt),o)+2,s>a&&(s=a,n.length=1),n.reverse(),a=s;a--;)n.push(0);n.reverse()}else{for(a=l.length,o=d.length,f=a<o,f&&(o=a),a=0;a<o;a++)if(l[a]!=d[a]){f=l[a]<d[a];break}s=0}for(f&&(n=l,l=d,d=n,t.s=-t.s),o=l.length,a=d.length-o;a>0;--a)l[o++]=0;for(a=d.length;a>s;){if(l[--a]<d[a]){for(i=a;i&&l[--i]===0;)l[i]=It-1;--l[i],l[a]+=It}l[a]-=d[a]}for(;l[--o]===0;)l.pop();for(;l[0]===0;l.shift())--r;return l[0]?(t.d=l,t.e=r,lt?Ge(t,p):t):new h(0)}function io(e,t,n){var r,a=Nt(e),i=Qr(e.d),s=i.length;return t?(n&&(r=n-s)>0?i=i.charAt(0)+"."+i.slice(1)+ui(r):s>1&&(i=i.charAt(0)+"."+i.slice(1)),i=i+(a<0?"e":"e+")+a):a<0?(i="0."+ui(-a-1)+i,n&&(r=n-s)>0&&(i+=ui(r))):a>=s?(i+=ui(a+1-s),n&&(r=n-a-1)>0&&(i=i+"."+ui(r))):((r=a+1)<s&&(i=i.slice(0,r)+"."+i.slice(r)),n&&(r=n-s)>0&&(a+1===s&&(i+="."),i+=ui(r))),e.s<0?"-"+i:i}function IN(e,t){if(e.length>t)return e.length=t,!0}function dk(e){var t,n,r;function a(i){var s=this;if(!(s instanceof a))return new a(i);if(s.constructor=a,i instanceof a){s.s=i.s,s.e=i.e,s.d=(i=i.d)?i.slice():i;return}if(typeof i=="number"){if(i*0!==0)throw Error(Fs+i);if(i>0)s.s=1;else if(i<0)i=-i,s.s=-1;else{s.s=0,s.e=0,s.d=[0];return}if(i===~~i&&i<1e7){s.e=0,s.d=[i];return}return BN(s,i.toString())}else if(typeof i!="string")throw Error(Fs+i);if(i.charCodeAt(0)===45?(i=i.slice(1),s.s=-1):s.s=1,Sde.test(i))BN(s,i);else throw Error(Fs+i)}if(a.prototype=te,a.ROUND_UP=0,a.ROUND_DOWN=1,a.ROUND_CEIL=2,a.ROUND_FLOOR=3,a.ROUND_HALF_UP=4,a.ROUND_HALF_DOWN=5,a.ROUND_HALF_EVEN=6,a.ROUND_HALF_CEIL=7,a.ROUND_HALF_FLOOR=8,a.clone=dk,a.config=a.set=wde,e===void 0&&(e={}),e)for(r=["precision","rounding","toExpNeg","toExpPos","LN10"],t=0;t<r.length;)e.hasOwnProperty(n=r[t++])||(e[n]=this[n]);return a.config(e),a}function wde(e){if(!e||typeof e!="object")throw Error(br+"Object expected");var t,n,r,a=["precision",1,Ic,"rounding",0,8,"toExpNeg",-1/0,0,"toExpPos",0,1/0];for(t=0;t<a.length;t+=3)if((r=e[n=a[t]])!==void 0)if(Uc(r)===r&&r>=a[t+1]&&r<=a[t+2])this[n]=r;else throw Error(Fs+n+": "+r);if((r=e[n="LN10"])!==void 0)if(r==Math.LN10)this[n]=new this(r);else throw Error(Fs+n+": "+r);return this}var Rj=dk(xde);Un=new Rj(1);const He=Rj;function jde(e){return Tde(e)||Ede(e)||Ode(e)||Ade()}function Ade(){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 Ode(e,t){if(e){if(typeof e=="string")return Rx(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Rx(e,t)}}function Ede(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function Tde(e){if(Array.isArray(e))return Rx(e)}function Rx(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Nde=function(t){return t},hk={},pk=function(t){return t===hk},UN=function(t){return function n(){return arguments.length===0||arguments.length===1&&pk(arguments.length<=0?void 0:arguments[0])?n:t.apply(void 0,arguments)}},_de=function e(t,n){return t===1?n:UN(function(){for(var r=arguments.length,a=new Array(r),i=0;i<r;i++)a[i]=arguments[i];var s=a.filter(function(o){return o!==hk}).length;return s>=t?n.apply(void 0,a):e(t-s,UN(function(){for(var o=arguments.length,l=new Array(o),c=0;c<o;c++)l[c]=arguments[c];var f=a.map(function(d){return pk(d)?l.shift():d});return n.apply(void 0,jde(f).concat(l))}))})},yv=function(t){return _de(t.length,t)},Dx=function(t,n){for(var r=[],a=t;a<n;++a)r[a-t]=a;return r},Cde=yv(function(e,t){return Array.isArray(t)?t.map(e):Object.keys(t).map(function(n){return t[n]}).map(e)}),Pde=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];if(!n.length)return Nde;var a=n.reverse(),i=a[0],s=a.slice(1);return function(){return s.reduce(function(o,l){return l(o)},i.apply(void 0,arguments))}},$x=function(t){return Array.isArray(t)?t.reverse():t.split("").reverse.join("")},mk=function(t){var n=null,r=null;return function(){for(var a=arguments.length,i=new Array(a),s=0;s<a;s++)i[s]=arguments[s];return n&&i.every(function(o,l){return o===n[l]})||(n=i,r=t.apply(void 0,i)),r}};function Mde(e){var t;return e===0?t=1:t=Math.floor(new He(e).abs().log(10).toNumber())+1,t}function Rde(e,t,n){for(var r=new He(e),a=0,i=[];r.lt(t)&&a<1e5;)i.push(r.toNumber()),r=r.add(n),a++;return i}var Dde=yv(function(e,t,n){var r=+e,a=+t;return r+n*(a-r)}),$de=yv(function(e,t,n){var r=t-+e;return r=r||1/0,(n-e)/r}),kde=yv(function(e,t,n){var r=t-+e;return r=r||1/0,Math.max(0,Math.min(1,(n-e)/r))});const vv={rangeStep:Rde,getDigitCount:Mde,interpolateNumber:Dde,uninterpolateNumber:$de,uninterpolateTruncation:kde};function kx(e){return Bde(e)||zde(e)||yk(e)||Lde()}function Lde(){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 zde(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function Bde(e){if(Array.isArray(e))return Lx(e)}function Df(e,t){return qde(e)||Ude(e,t)||yk(e,t)||Ide()}function Ide(){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 yk(e,t){if(e){if(typeof e=="string")return Lx(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Lx(e,t)}}function Lx(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Ude(e,t){if(!(typeof Symbol>"u"||!(Symbol.iterator in Object(e)))){var n=[],r=!0,a=!1,i=void 0;try{for(var s=e[Symbol.iterator](),o;!(r=(o=s.next()).done)&&(n.push(o.value),!(t&&n.length===t));r=!0);}catch(l){a=!0,i=l}finally{try{!r&&s.return!=null&&s.return()}finally{if(a)throw i}}return n}}function qde(e){if(Array.isArray(e))return e}function vk(e){var t=Df(e,2),n=t[0],r=t[1],a=n,i=r;return n>r&&(a=r,i=n),[a,i]}function gk(e,t,n){if(e.lte(0))return new He(0);var r=vv.getDigitCount(e.toNumber()),a=new He(10).pow(r),i=e.div(a),s=r!==1?.05:.1,o=new He(Math.ceil(i.div(s).toNumber())).add(n).mul(s),l=o.mul(a);return t?l:new He(Math.ceil(l))}function Vde(e,t,n){var r=1,a=new He(e);if(!a.isint()&&n){var i=Math.abs(e);i<1?(r=new He(10).pow(vv.getDigitCount(e)-1),a=new He(Math.floor(a.div(r).toNumber())).mul(r)):i>1&&(a=new He(Math.floor(e)))}else e===0?a=new He(Math.floor((t-1)/2)):n||(a=new He(Math.floor(e)));var s=Math.floor((t-1)/2),o=Pde(Cde(function(l){return a.add(new He(l-s).mul(r)).toNumber()}),Dx);return o(0,t)}function bk(e,t,n,r){var a=arguments.length>4&&arguments[4]!==void 0?arguments[4]:0;if(!Number.isFinite((t-e)/(n-1)))return{step:new He(0),tickMin:new He(0),tickMax:new He(0)};var i=gk(new He(t).sub(e).div(n-1),r,a),s;e<=0&&t>=0?s=new He(0):(s=new He(e).add(t).div(2),s=s.sub(new He(s).mod(i)));var o=Math.ceil(s.sub(e).div(i).toNumber()),l=Math.ceil(new He(t).sub(s).div(i).toNumber()),c=o+l+1;return c>n?bk(e,t,n,r,a+1):(c<n&&(l=t>0?l+(n-c):l,o=t>0?o:o+(n-c)),{step:i,tickMin:s.sub(new He(o).mul(i)),tickMax:s.add(new He(l).mul(i))})}function Hde(e){var t=Df(e,2),n=t[0],r=t[1],a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:6,i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,s=Math.max(a,2),o=vk([n,r]),l=Df(o,2),c=l[0],f=l[1];if(c===-1/0||f===1/0){var d=f===1/0?[c].concat(kx(Dx(0,a-1).map(function(){return 1/0}))):[].concat(kx(Dx(0,a-1).map(function(){return-1/0})),[f]);return n>r?$x(d):d}if(c===f)return Vde(c,a,i);var h=bk(c,f,s,i),p=h.step,v=h.tickMin,y=h.tickMax,b=vv.rangeStep(v,y.add(new He(.1).mul(p)),p);return n>r?$x(b):b}function Fde(e,t){var n=Df(e,2),r=n[0],a=n[1],i=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,s=vk([r,a]),o=Df(s,2),l=o[0],c=o[1];if(l===-1/0||c===1/0)return[r,a];if(l===c)return[l];var f=Math.max(t,2),d=gk(new He(c).sub(l).div(f-1),i,0),h=[].concat(kx(vv.rangeStep(new He(l),new He(c).sub(new He(.99).mul(d)),d)),[c]);return r>a?$x(h):h}var Gde=mk(Hde),Kde=mk(Fde),Yde="Invariant failed";function so(e,t){throw new Error(Yde)}var Xde=["offset","layout","width","dataKey","data","dataPointFormatter","xAxis","yAxis"];function Ql(e){"@babel/helpers - typeof";return Ql=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ql(e)}function Om(){return Om=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Om.apply(this,arguments)}function Wde(e,t){return ehe(e)||Jde(e,t)||Zde(e,t)||Qde()}function Qde(){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 Zde(e,t){if(e){if(typeof e=="string")return qN(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return qN(e,t)}}function qN(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Jde(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,i,s,o=[],l=!0,c=!1;try{if(i=(n=n.call(e)).next,t!==0)for(;!(l=(r=i.call(n)).done)&&(o.push(r.value),o.length!==t);l=!0);}catch(f){c=!0,a=f}finally{try{if(!l&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(c)throw a}}return o}}function ehe(e){if(Array.isArray(e))return e}function the(e,t){if(e==null)return{};var n=nhe(e,t),r,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)r=i[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function nhe(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function rhe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ahe(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,wk(r.key),r)}}function ihe(e,t,n){return t&&ahe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function she(e,t,n){return t=Em(t),ohe(e,xk()?Reflect.construct(t,n||[],Em(e).constructor):t.apply(e,n))}function ohe(e,t){if(t&&(Ql(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return lhe(e)}function lhe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function xk(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(xk=function(){return!!e})()}function Em(e){return Em=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Em(e)}function che(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&zx(e,t)}function zx(e,t){return zx=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},zx(e,t)}function Sk(e,t,n){return t=wk(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function wk(e){var t=uhe(e,"string");return Ql(t)=="symbol"?t:t+""}function uhe(e,t){if(Ql(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Ql(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var zd=function(e){function t(){return rhe(this,t),she(this,t,arguments)}return che(t,e),ihe(t,[{key:"render",value:function(){var r=this.props,a=r.offset,i=r.layout,s=r.width,o=r.dataKey,l=r.data,c=r.dataPointFormatter,f=r.xAxis,d=r.yAxis,h=the(r,Xde),p=ie(h,!1);this.props.direction==="x"&&f.type!=="number"&&so();var v=l.map(function(y){var b=c(y,o),m=b.x,g=b.y,x=b.value,w=b.errorVal;if(!w)return null;var S=[],j,O;if(Array.isArray(w)){var E=Wde(w,2);j=E[0],O=E[1]}else j=O=w;if(i==="vertical"){var T=f.scale,_=g+a,M=_+s,C=_-s,z=T(x-j),L=T(x+O);S.push({x1:L,y1:M,x2:L,y2:C}),S.push({x1:z,y1:_,x2:L,y2:_}),S.push({x1:z,y1:M,x2:z,y2:C})}else if(i==="horizontal"){var k=d.scale,R=m+a,$=R-s,B=R+s,V=k(x-j),H=k(x+O);S.push({x1:$,y1:H,x2:B,y2:H}),S.push({x1:R,y1:V,x2:R,y2:H}),S.push({x1:$,y1:V,x2:B,y2:V})}return N.createElement(je,Om({className:"recharts-errorBar",key:"bar-".concat(S.map(function(Q){return"".concat(Q.x1,"-").concat(Q.x2,"-").concat(Q.y1,"-").concat(Q.y2)}))},p),S.map(function(Q){return N.createElement("line",Om({},Q,{key:"line-".concat(Q.x1,"-").concat(Q.x2,"-").concat(Q.y1,"-").concat(Q.y2)}))}))});return N.createElement(je,{className:"recharts-errorBars"},v)}}])}(N.Component);Sk(zd,"defaultProps",{stroke:"black",strokeWidth:1.5,width:5,offset:0,layout:"horizontal"});Sk(zd,"displayName","ErrorBar");function $f(e){"@babel/helpers - typeof";return $f=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},$f(e)}function VN(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function ss(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?VN(Object(n),!0).forEach(function(r){fhe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):VN(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function fhe(e,t,n){return t=dhe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function dhe(e){var t=hhe(e,"string");return $f(t)=="symbol"?t:t+""}function hhe(e,t){if($f(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if($f(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var jk=function(t){var n=t.children,r=t.formattedGraphicalItems,a=t.legendWidth,i=t.legendContent,s=$n(n,Wr);if(!s)return null;var o=Wr.defaultProps,l=o!==void 0?ss(ss({},o),s.props):{},c;return s.props&&s.props.payload?c=s.props&&s.props.payload:i==="children"?c=(r||[]).reduce(function(f,d){var h=d.item,p=d.props,v=p.sectors||p.data||[];return f.concat(v.map(function(y){return{type:s.props.iconType||h.props.legendType,value:y.name,color:y.fill,payload:y}}))},[]):c=(r||[]).map(function(f){var d=f.item,h=d.type.defaultProps,p=h!==void 0?ss(ss({},h),d.props):{},v=p.dataKey,y=p.name,b=p.legendType,m=p.hide;return{inactive:m,dataKey:v,type:l.iconType||b||"square",color:Dj(d),value:y||v,payload:p}}),ss(ss(ss({},l),Wr.getWithHeight(s,a)),{},{payload:c,item:s})};function kf(e){"@babel/helpers - typeof";return kf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},kf(e)}function HN(e){return vhe(e)||yhe(e)||mhe(e)||phe()}function phe(){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 mhe(e,t){if(e){if(typeof e=="string")return Bx(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Bx(e,t)}}function yhe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function vhe(e){if(Array.isArray(e))return Bx(e)}function Bx(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function FN(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function yt(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?FN(Object(n),!0).forEach(function(r){hl(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):FN(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function hl(e,t,n){return t=ghe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ghe(e){var t=bhe(e,"string");return kf(t)=="symbol"?t:t+""}function bhe(e,t){if(kf(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(kf(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function xt(e,t,n){return pe(e)||pe(t)?n:Dt(t)?Kn(e,t,n):de(t)?t(e):n}function Vu(e,t,n,r){var a=yde(e,function(o){return xt(o,t)});if(n==="number"){var i=a.filter(function(o){return F(o)||parseFloat(o)});return i.length?[mv(i),_i(i)]:[1/0,-1/0]}var s=r?a.filter(function(o){return!pe(o)}):a;return s.map(function(o){return Dt(o)||o instanceof Date?o:""})}var xhe=function(t){var n,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],a=arguments.length>2?arguments[2]:void 0,i=arguments.length>3?arguments[3]:void 0,s=-1,o=(n=r==null?void 0:r.length)!==null&&n!==void 0?n:0;if(o<=1)return 0;if(i&&i.axisType==="angleAxis"&&Math.abs(Math.abs(i.range[1]-i.range[0])-360)<=1e-6)for(var l=i.range,c=0;c<o;c++){var f=c>0?a[c-1].coordinate:a[o-1].coordinate,d=a[c].coordinate,h=c>=o-1?a[0].coordinate:a[c+1].coordinate,p=void 0;if(fn(d-f)!==fn(h-d)){var v=[];if(fn(h-d)===fn(l[1]-l[0])){p=h;var y=d+l[1]-l[0];v[0]=Math.min(y,(y+f)/2),v[1]=Math.max(y,(y+f)/2)}else{p=f;var b=h+l[1]-l[0];v[0]=Math.min(d,(b+d)/2),v[1]=Math.max(d,(b+d)/2)}var m=[Math.min(d,(p+d)/2),Math.max(d,(p+d)/2)];if(t>m[0]&&t<=m[1]||t>=v[0]&&t<=v[1]){s=a[c].index;break}}else{var g=Math.min(f,h),x=Math.max(f,h);if(t>(g+d)/2&&t<=(x+d)/2){s=a[c].index;break}}}else for(var w=0;w<o;w++)if(w===0&&t<=(r[w].coordinate+r[w+1].coordinate)/2||w>0&&w<o-1&&t>(r[w].coordinate+r[w-1].coordinate)/2&&t<=(r[w].coordinate+r[w+1].coordinate)/2||w===o-1&&t>(r[w].coordinate+r[w-1].coordinate)/2){s=r[w].index;break}return s},Dj=function(t){var n,r=t,a=r.type.displayName,i=(n=t.type)!==null&&n!==void 0&&n.defaultProps?yt(yt({},t.type.defaultProps),t.props):t.props,s=i.stroke,o=i.fill,l;switch(a){case"Line":l=s;break;case"Area":case"Radar":l=s&&s!=="none"?s:o;break;default:l=o;break}return l},She=function(t){var n=t.barSize,r=t.totalSize,a=t.stackGroups,i=a===void 0?{}:a;if(!i)return{};for(var s={},o=Object.keys(i),l=0,c=o.length;l<c;l++)for(var f=i[o[l]].stackGroups,d=Object.keys(f),h=0,p=d.length;h<p;h++){var v=f[d[h]],y=v.items,b=v.cateAxisId,m=y.filter(function(O){return za(O.type).indexOf("Bar")>=0});if(m&&m.length){var g=m[0].type.defaultProps,x=g!==void 0?yt(yt({},g),m[0].props):m[0].props,w=x.barSize,S=x[b];s[S]||(s[S]=[]);var j=pe(w)?n:w;s[S].push({item:m[0],stackList:m.slice(1),barSize:pe(j)?void 0:dn(j,r,0)})}}return s},whe=function(t){var n=t.barGap,r=t.barCategoryGap,a=t.bandSize,i=t.sizeList,s=i===void 0?[]:i,o=t.maxBarSize,l=s.length;if(l<1)return null;var c=dn(n,a,0,!0),f,d=[];if(s[0].barSize===+s[0].barSize){var h=!1,p=a/l,v=s.reduce(function(w,S){return w+S.barSize||0},0);v+=(l-1)*c,v>=a&&(v-=(l-1)*c,c=0),v>=a&&p>0&&(h=!0,p*=.9,v=l*p);var y=(a-v)/2>>0,b={offset:y-c,size:0};f=s.reduce(function(w,S){var j={item:S.item,position:{offset:b.offset+b.size+c,size:h?p:S.barSize}},O=[].concat(HN(w),[j]);return b=O[O.length-1].position,S.stackList&&S.stackList.length&&S.stackList.forEach(function(E){O.push({item:E,position:b})}),O},d)}else{var m=dn(r,a,0,!0);a-2*m-(l-1)*c<=0&&(c=0);var g=(a-2*m-(l-1)*c)/l;g>1&&(g>>=0);var x=o===+o?Math.min(g,o):g;f=s.reduce(function(w,S,j){var O=[].concat(HN(w),[{item:S.item,position:{offset:m+(g+c)*j+(g-x)/2,size:x}}]);return S.stackList&&S.stackList.length&&S.stackList.forEach(function(E){O.push({item:E,position:O[O.length-1].position})}),O},d)}return f},jhe=function(t,n,r,a){var i=r.children,s=r.width,o=r.margin,l=s-(o.left||0)-(o.right||0),c=jk({children:i,legendWidth:l});if(c){var f=a||{},d=f.width,h=f.height,p=c.align,v=c.verticalAlign,y=c.layout;if((y==="vertical"||y==="horizontal"&&v==="middle")&&p!=="center"&&F(t[p]))return yt(yt({},t),{},hl({},p,t[p]+(d||0)));if((y==="horizontal"||y==="vertical"&&p==="center")&&v!=="middle"&&F(t[v]))return yt(yt({},t),{},hl({},v,t[v]+(h||0)))}return t},Ahe=function(t,n,r){return pe(n)?!0:t==="horizontal"?n==="yAxis":t==="vertical"||r==="x"?n==="xAxis":r==="y"?n==="yAxis":!0},Ak=function(t,n,r,a,i){var s=n.props.children,o=Yn(s,zd).filter(function(c){return Ahe(a,i,c.props.direction)});if(o&&o.length){var l=o.map(function(c){return c.props.dataKey});return t.reduce(function(c,f){var d=xt(f,r);if(pe(d))return c;var h=Array.isArray(d)?[mv(d),_i(d)]:[d,d],p=l.reduce(function(v,y){var b=xt(f,y,0),m=h[0]-Math.abs(Array.isArray(b)?b[0]:b),g=h[1]+Math.abs(Array.isArray(b)?b[1]:b);return[Math.min(m,v[0]),Math.max(g,v[1])]},[1/0,-1/0]);return[Math.min(p[0],c[0]),Math.max(p[1],c[1])]},[1/0,-1/0])}return null},Ohe=function(t,n,r,a,i){var s=n.map(function(o){return Ak(t,o,r,i,a)}).filter(function(o){return!pe(o)});return s&&s.length?s.reduce(function(o,l){return[Math.min(o[0],l[0]),Math.max(o[1],l[1])]},[1/0,-1/0]):null},Ok=function(t,n,r,a,i){var s=n.map(function(l){var c=l.props.dataKey;return r==="number"&&c&&Ak(t,l,c,a)||Vu(t,c,r,i)});if(r==="number")return s.reduce(function(l,c){return[Math.min(l[0],c[0]),Math.max(l[1],c[1])]},[1/0,-1/0]);var o={};return s.reduce(function(l,c){for(var f=0,d=c.length;f<d;f++)o[c[f]]||(o[c[f]]=!0,l.push(c[f]));return l},[])},Ek=function(t,n){return t==="horizontal"&&n==="xAxis"||t==="vertical"&&n==="yAxis"||t==="centric"&&n==="angleAxis"||t==="radial"&&n==="radiusAxis"},Tk=function(t,n,r,a){if(a)return t.map(function(l){return l.coordinate});var i,s,o=t.map(function(l){return l.coordinate===n&&(i=!0),l.coordinate===r&&(s=!0),l.coordinate});return i||o.push(n),s||o.push(r),o},Ca=function(t,n,r){if(!t)return null;var a=t.scale,i=t.duplicateDomain,s=t.type,o=t.range,l=t.realScaleType==="scaleBand"?a.bandwidth()/2:2,c=(n||r)&&s==="category"&&a.bandwidth?a.bandwidth()/l:0;if(c=t.axisType==="angleAxis"&&(o==null?void 0:o.length)>=2?fn(o[0]-o[1])*2*c:c,n&&(t.ticks||t.niceTicks)){var f=(t.ticks||t.niceTicks).map(function(d){var h=i?i.indexOf(d):d;return{coordinate:a(h)+c,value:d,offset:c}});return f.filter(function(d){return!$c(d.coordinate)})}return t.isCategorical&&t.categoricalDomain?t.categoricalDomain.map(function(d,h){return{coordinate:a(d)+c,value:d,index:h,offset:c}}):a.ticks&&!r?a.ticks(t.tickCount).map(function(d){return{coordinate:a(d)+c,value:d,offset:c}}):a.domain().map(function(d,h){return{coordinate:a(d)+c,value:i?i[d]:d,index:h,offset:c}})},sb=new WeakMap,Oh=function(t,n){if(typeof n!="function")return t;sb.has(t)||sb.set(t,new WeakMap);var r=sb.get(t);if(r.has(n))return r.get(n);var a=function(){t.apply(void 0,arguments),n.apply(void 0,arguments)};return r.set(n,a),a},Nk=function(t,n,r){var a=t.scale,i=t.type,s=t.layout,o=t.axisType;if(a==="auto")return s==="radial"&&o==="radiusAxis"?{scale:Nf(),realScaleType:"band"}:s==="radial"&&o==="angleAxis"?{scale:xm(),realScaleType:"linear"}:i==="category"&&n&&(n.indexOf("LineChart")>=0||n.indexOf("AreaChart")>=0||n.indexOf("ComposedChart")>=0&&!r)?{scale:qu(),realScaleType:"point"}:i==="category"?{scale:Nf(),realScaleType:"band"}:{scale:xm(),realScaleType:"linear"};if(to(a)){var l="scale".concat(ev(a));return{scale:(zN[l]||qu)(),realScaleType:zN[l]?l:"point"}}return de(a)?{scale:a}:{scale:qu(),realScaleType:"point"}},GN=1e-4,_k=function(t){var n=t.domain();if(!(!n||n.length<=2)){var r=n.length,a=t.range(),i=Math.min(a[0],a[1])-GN,s=Math.max(a[0],a[1])+GN,o=t(n[0]),l=t(n[r-1]);(o<i||o>s||l<i||l>s)&&t.domain([n[0],n[r-1]])}},Ehe=function(t,n){if(!t)return null;for(var r=0,a=t.length;r<a;r++)if(t[r].item===n)return t[r].position;return null},The=function(t,n){if(!n||n.length!==2||!F(n[0])||!F(n[1]))return t;var r=Math.min(n[0],n[1]),a=Math.max(n[0],n[1]),i=[t[0],t[1]];return(!F(t[0])||t[0]<r)&&(i[0]=r),(!F(t[1])||t[1]>a)&&(i[1]=a),i[0]>a&&(i[0]=a),i[1]<r&&(i[1]=r),i},Nhe=function(t){var n=t.length;if(!(n<=0))for(var r=0,a=t[0].length;r<a;++r)for(var i=0,s=0,o=0;o<n;++o){var l=$c(t[o][r][1])?t[o][r][0]:t[o][r][1];l>=0?(t[o][r][0]=i,t[o][r][1]=i+l,i=t[o][r][1]):(t[o][r][0]=s,t[o][r][1]=s+l,s=t[o][r][1])}},_he=function(t){var n=t.length;if(!(n<=0))for(var r=0,a=t[0].length;r<a;++r)for(var i=0,s=0;s<n;++s){var o=$c(t[s][r][1])?t[s][r][0]:t[s][r][1];o>=0?(t[s][r][0]=i,t[s][r][1]=i+o,i=t[s][r][1]):(t[s][r][0]=0,t[s][r][1]=0)}},Che={sign:Nhe,expand:XJ,none:Vl,silhouette:WJ,wiggle:QJ,positive:_he},Phe=function(t,n,r){var a=n.map(function(o){return o.props.dataKey}),i=Che[r],s=YJ().keys(a).value(function(o,l){return+xt(o,l,0)}).order(ux).offset(i);return s(t)},Mhe=function(t,n,r,a,i,s){if(!t)return null;var o=s?n.reverse():n,l={},c=o.reduce(function(d,h){var p,v=(p=h.type)!==null&&p!==void 0&&p.defaultProps?yt(yt({},h.type.defaultProps),h.props):h.props,y=v.stackId,b=v.hide;if(b)return d;var m=v[r],g=d[m]||{hasStack:!1,stackGroups:{}};if(Dt(y)){var x=g.stackGroups[y]||{numericAxisId:r,cateAxisId:a,items:[]};x.items.push(h),g.hasStack=!0,g.stackGroups[y]=x}else g.stackGroups[vo("_stackId_")]={numericAxisId:r,cateAxisId:a,items:[h]};return yt(yt({},d),{},hl({},m,g))},l),f={};return Object.keys(c).reduce(function(d,h){var p=c[h];if(p.hasStack){var v={};p.stackGroups=Object.keys(p.stackGroups).reduce(function(y,b){var m=p.stackGroups[b];return yt(yt({},y),{},hl({},b,{numericAxisId:r,cateAxisId:a,items:m.items,stackedData:Phe(t,m.items,i)}))},v)}return yt(yt({},d),{},hl({},h,p))},f)},Ck=function(t,n){var r=n.realScaleType,a=n.type,i=n.tickCount,s=n.originalDomain,o=n.allowDecimals,l=r||n.scale;if(l!=="auto"&&l!=="linear")return null;if(i&&a==="number"&&s&&(s[0]==="auto"||s[1]==="auto")){var c=t.domain();if(!c.length)return null;var f=Gde(c,i,o);return t.domain([mv(f),_i(f)]),{niceTicks:f}}if(i&&a==="number"){var d=t.domain(),h=Kde(d,i,o);return{niceTicks:h}}return null};function Tm(e){var t=e.axis,n=e.ticks,r=e.bandSize,a=e.entry,i=e.index,s=e.dataKey;if(t.type==="category"){if(!t.allowDuplicatedCategory&&t.dataKey&&!pe(a[t.dataKey])){var o=Zp(n,"value",a[t.dataKey]);if(o)return o.coordinate+r/2}return n[i]?n[i].coordinate+r/2:null}var l=xt(a,pe(s)?t.dataKey:s);return pe(l)?null:t.scale(l)}var KN=function(t){var n=t.axis,r=t.ticks,a=t.offset,i=t.bandSize,s=t.entry,o=t.index;if(n.type==="category")return r[o]?r[o].coordinate+a:null;var l=xt(s,n.dataKey,n.domain[o]);return pe(l)?null:n.scale(l)-i/2+a},Rhe=function(t){var n=t.numericAxis,r=n.scale.domain();if(n.type==="number"){var a=Math.min(r[0],r[1]),i=Math.max(r[0],r[1]);return a<=0&&i>=0?0:i<0?i:a}return r[0]},Dhe=function(t,n){var r,a=(r=t.type)!==null&&r!==void 0&&r.defaultProps?yt(yt({},t.type.defaultProps),t.props):t.props,i=a.stackId;if(Dt(i)){var s=n[i];if(s){var o=s.items.indexOf(t);return o>=0?s.stackedData[o]:null}}return null},$he=function(t){return t.reduce(function(n,r){return[mv(r.concat([n[0]]).filter(F)),_i(r.concat([n[1]]).filter(F))]},[1/0,-1/0])},Pk=function(t,n,r){return Object.keys(t).reduce(function(a,i){var s=t[i],o=s.stackedData,l=o.reduce(function(c,f){var d=$he(f.slice(n,r+1));return[Math.min(c[0],d[0]),Math.max(c[1],d[1])]},[1/0,-1/0]);return[Math.min(l[0],a[0]),Math.max(l[1],a[1])]},[1/0,-1/0]).map(function(a){return a===1/0||a===-1/0?0:a})},YN=/^dataMin[\s]*-[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,XN=/^dataMax[\s]*\+[\s]*([0-9]+([.]{1}[0-9]+){0,1})$/,Ix=function(t,n,r){if(de(t))return t(n,r);if(!Array.isArray(t))return n;var a=[];if(F(t[0]))a[0]=r?t[0]:Math.min(t[0],n[0]);else if(YN.test(t[0])){var i=+YN.exec(t[0])[1];a[0]=n[0]-i}else de(t[0])?a[0]=t[0](n[0]):a[0]=n[0];if(F(t[1]))a[1]=r?t[1]:Math.max(t[1],n[1]);else if(XN.test(t[1])){var s=+XN.exec(t[1])[1];a[1]=n[1]+s}else de(t[1])?a[1]=t[1](n[1]):a[1]=n[1];return a},Nm=function(t,n,r){if(t&&t.scale&&t.scale.bandwidth){var a=t.scale.bandwidth();if(!r||a>0)return a}if(t&&n&&n.length>=2){for(var i=lj(n,function(d){return d.coordinate}),s=1/0,o=1,l=i.length;o<l;o++){var c=i[o],f=i[o-1];s=Math.min((c.coordinate||0)-(f.coordinate||0),s)}return s===1/0?0:s}return r?void 0:0},WN=function(t,n,r){return!t||!t.length||ao(t,Kn(r,"type.defaultProps.domain"))?n:t},Mk=function(t,n){var r=t.type.defaultProps?yt(yt({},t.type.defaultProps),t.props):t.props,a=r.dataKey,i=r.name,s=r.unit,o=r.formatter,l=r.tooltipType,c=r.chartType,f=r.hide;return yt(yt({},ie(t,!1)),{},{dataKey:a,unit:s,formatter:o,name:i||a,color:Dj(t),value:xt(n,a),type:l,payload:n,chartType:c,hide:f})};function Lf(e){"@babel/helpers - typeof";return Lf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Lf(e)}function QN(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function xa(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?QN(Object(n),!0).forEach(function(r){Rk(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):QN(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Rk(e,t,n){return t=khe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function khe(e){var t=Lhe(e,"string");return Lf(t)=="symbol"?t:t+""}function Lhe(e,t){if(Lf(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Lf(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function zhe(e,t){return qhe(e)||Uhe(e,t)||Ihe(e,t)||Bhe()}function Bhe(){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 Ihe(e,t){if(e){if(typeof e=="string")return ZN(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ZN(e,t)}}function ZN(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Uhe(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,i,s,o=[],l=!0,c=!1;try{if(i=(n=n.call(e)).next,t!==0)for(;!(l=(r=i.call(n)).done)&&(o.push(r.value),o.length!==t);l=!0);}catch(f){c=!0,a=f}finally{try{if(!l&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(c)throw a}}return o}}function qhe(e){if(Array.isArray(e))return e}var _m=Math.PI/180,Vhe=function(t){return t*180/Math.PI},Ze=function(t,n,r,a){return{x:t+Math.cos(-_m*a)*r,y:n+Math.sin(-_m*a)*r}},Dk=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{top:0,right:0,bottom:0,left:0};return Math.min(Math.abs(t-(r.left||0)-(r.right||0)),Math.abs(n-(r.top||0)-(r.bottom||0)))/2},Hhe=function(t,n,r,a,i){var s=t.width,o=t.height,l=t.startAngle,c=t.endAngle,f=dn(t.cx,s,s/2),d=dn(t.cy,o,o/2),h=Dk(s,o,r),p=dn(t.innerRadius,h,0),v=dn(t.outerRadius,h,h*.8),y=Object.keys(n);return y.reduce(function(b,m){var g=n[m],x=g.domain,w=g.reversed,S;if(pe(g.range))a==="angleAxis"?S=[l,c]:a==="radiusAxis"&&(S=[p,v]),w&&(S=[S[1],S[0]]);else{S=g.range;var j=S,O=zhe(j,2);l=O[0],c=O[1]}var E=Nk(g,i),T=E.realScaleType,_=E.scale;_.domain(x).range(S),_k(_);var M=Ck(_,xa(xa({},g),{},{realScaleType:T})),C=xa(xa(xa({},g),M),{},{range:S,radius:v,realScaleType:T,scale:_,cx:f,cy:d,innerRadius:p,outerRadius:v,startAngle:l,endAngle:c});return xa(xa({},b),{},Rk({},m,C))},{})},Fhe=function(t,n){var r=t.x,a=t.y,i=n.x,s=n.y;return Math.sqrt(Math.pow(r-i,2)+Math.pow(a-s,2))},Ghe=function(t,n){var r=t.x,a=t.y,i=n.cx,s=n.cy,o=Fhe({x:r,y:a},{x:i,y:s});if(o<=0)return{radius:o};var l=(r-i)/o,c=Math.acos(l);return a>s&&(c=2*Math.PI-c),{radius:o,angle:Vhe(c),angleInRadian:c}},Khe=function(t){var n=t.startAngle,r=t.endAngle,a=Math.floor(n/360),i=Math.floor(r/360),s=Math.min(a,i);return{startAngle:n-s*360,endAngle:r-s*360}},Yhe=function(t,n){var r=n.startAngle,a=n.endAngle,i=Math.floor(r/360),s=Math.floor(a/360),o=Math.min(i,s);return t+o*360},JN=function(t,n){var r=t.x,a=t.y,i=Ghe({x:r,y:a},n),s=i.radius,o=i.angle,l=n.innerRadius,c=n.outerRadius;if(s<l||s>c)return!1;if(s===0)return!0;var f=Khe(n),d=f.startAngle,h=f.endAngle,p=o,v;if(d<=h){for(;p>h;)p-=360;for(;p<d;)p+=360;v=p>=d&&p<=h}else{for(;p>d;)p-=360;for(;p<h;)p+=360;v=p>=h&&p<=d}return v?xa(xa({},n),{},{radius:s,angle:Yhe(p,n)}):null},$k=function(t){return!A.isValidElement(t)&&!de(t)&&typeof t!="boolean"?t.className:""};function zf(e){"@babel/helpers - typeof";return zf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},zf(e)}var Xhe=["offset"];function Whe(e){return epe(e)||Jhe(e)||Zhe(e)||Qhe()}function Qhe(){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 Zhe(e,t){if(e){if(typeof e=="string")return Ux(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Ux(e,t)}}function Jhe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function epe(e){if(Array.isArray(e))return Ux(e)}function Ux(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function tpe(e,t){if(e==null)return{};var n=npe(e,t),r,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)r=i[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function npe(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function e_(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function Ct(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?e_(Object(n),!0).forEach(function(r){rpe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):e_(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function rpe(e,t,n){return t=ape(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ape(e){var t=ipe(e,"string");return zf(t)=="symbol"?t:t+""}function ipe(e,t){if(zf(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(zf(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Bf(){return Bf=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Bf.apply(this,arguments)}var spe=function(t){var n=t.value,r=t.formatter,a=pe(t.children)?n:t.children;return de(r)?r(a):a},ope=function(t,n){var r=fn(n-t),a=Math.min(Math.abs(n-t),360);return r*a},lpe=function(t,n,r){var a=t.position,i=t.viewBox,s=t.offset,o=t.className,l=i,c=l.cx,f=l.cy,d=l.innerRadius,h=l.outerRadius,p=l.startAngle,v=l.endAngle,y=l.clockWise,b=(d+h)/2,m=ope(p,v),g=m>=0?1:-1,x,w;a==="insideStart"?(x=p+g*s,w=y):a==="insideEnd"?(x=v-g*s,w=!y):a==="end"&&(x=v+g*s,w=y),w=m<=0?w:!w;var S=Ze(c,f,b,x),j=Ze(c,f,b,x+(w?1:-1)*359),O="M".concat(S.x,",").concat(S.y,`
    A`).concat(b,",").concat(b,",0,1,").concat(w?0:1,`,
    `).concat(j.x,",").concat(j.y),E=pe(t.id)?vo("recharts-radial-line-"):t.id;return N.createElement("text",Bf({},r,{dominantBaseline:"central",className:ye("recharts-radial-bar-label",o)}),N.createElement("defs",null,N.createElement("path",{id:E,d:O})),N.createElement("textPath",{xlinkHref:"#".concat(E)},n))},cpe=function(t){var n=t.viewBox,r=t.offset,a=t.position,i=n,s=i.cx,o=i.cy,l=i.innerRadius,c=i.outerRadius,f=i.startAngle,d=i.endAngle,h=(f+d)/2;if(a==="outside"){var p=Ze(s,o,c+r,h),v=p.x,y=p.y;return{x:v,y,textAnchor:v>=s?"start":"end",verticalAnchor:"middle"}}if(a==="center")return{x:s,y:o,textAnchor:"middle",verticalAnchor:"middle"};if(a==="centerTop")return{x:s,y:o,textAnchor:"middle",verticalAnchor:"start"};if(a==="centerBottom")return{x:s,y:o,textAnchor:"middle",verticalAnchor:"end"};var b=(l+c)/2,m=Ze(s,o,b,h),g=m.x,x=m.y;return{x:g,y:x,textAnchor:"middle",verticalAnchor:"middle"}},upe=function(t){var n=t.viewBox,r=t.parentViewBox,a=t.offset,i=t.position,s=n,o=s.x,l=s.y,c=s.width,f=s.height,d=f>=0?1:-1,h=d*a,p=d>0?"end":"start",v=d>0?"start":"end",y=c>=0?1:-1,b=y*a,m=y>0?"end":"start",g=y>0?"start":"end";if(i==="top"){var x={x:o+c/2,y:l-d*a,textAnchor:"middle",verticalAnchor:p};return Ct(Ct({},x),r?{height:Math.max(l-r.y,0),width:c}:{})}if(i==="bottom"){var w={x:o+c/2,y:l+f+h,textAnchor:"middle",verticalAnchor:v};return Ct(Ct({},w),r?{height:Math.max(r.y+r.height-(l+f),0),width:c}:{})}if(i==="left"){var S={x:o-b,y:l+f/2,textAnchor:m,verticalAnchor:"middle"};return Ct(Ct({},S),r?{width:Math.max(S.x-r.x,0),height:f}:{})}if(i==="right"){var j={x:o+c+b,y:l+f/2,textAnchor:g,verticalAnchor:"middle"};return Ct(Ct({},j),r?{width:Math.max(r.x+r.width-j.x,0),height:f}:{})}var O=r?{width:c,height:f}:{};return i==="insideLeft"?Ct({x:o+b,y:l+f/2,textAnchor:g,verticalAnchor:"middle"},O):i==="insideRight"?Ct({x:o+c-b,y:l+f/2,textAnchor:m,verticalAnchor:"middle"},O):i==="insideTop"?Ct({x:o+c/2,y:l+h,textAnchor:"middle",verticalAnchor:v},O):i==="insideBottom"?Ct({x:o+c/2,y:l+f-h,textAnchor:"middle",verticalAnchor:p},O):i==="insideTopLeft"?Ct({x:o+b,y:l+h,textAnchor:g,verticalAnchor:v},O):i==="insideTopRight"?Ct({x:o+c-b,y:l+h,textAnchor:m,verticalAnchor:v},O):i==="insideBottomLeft"?Ct({x:o+b,y:l+f-h,textAnchor:g,verticalAnchor:p},O):i==="insideBottomRight"?Ct({x:o+c-b,y:l+f-h,textAnchor:m,verticalAnchor:p},O):Pc(i)&&(F(i.x)||js(i.x))&&(F(i.y)||js(i.y))?Ct({x:o+dn(i.x,c),y:l+dn(i.y,f),textAnchor:"end",verticalAnchor:"end"},O):Ct({x:o+c/2,y:l+f/2,textAnchor:"middle",verticalAnchor:"middle"},O)},fpe=function(t){return"cx"in t&&F(t.cx)};function Vt(e){var t=e.offset,n=t===void 0?5:t,r=tpe(e,Xhe),a=Ct({offset:n},r),i=a.viewBox,s=a.position,o=a.value,l=a.children,c=a.content,f=a.className,d=f===void 0?"":f,h=a.textBreakAll;if(!i||pe(o)&&pe(l)&&!A.isValidElement(c)&&!de(c))return null;if(A.isValidElement(c))return A.cloneElement(c,a);var p;if(de(c)){if(p=A.createElement(c,a),A.isValidElement(p))return p}else p=spe(a);var v=fpe(i),y=ie(a,!0);if(v&&(s==="insideStart"||s==="insideEnd"||s==="end"))return lpe(a,p,y);var b=v?cpe(a):upe(a);return N.createElement(ro,Bf({className:ye("recharts-label",d)},y,b,{breakAll:h}),p)}Vt.displayName="Label";var kk=function(t){var n=t.cx,r=t.cy,a=t.angle,i=t.startAngle,s=t.endAngle,o=t.r,l=t.radius,c=t.innerRadius,f=t.outerRadius,d=t.x,h=t.y,p=t.top,v=t.left,y=t.width,b=t.height,m=t.clockWise,g=t.labelViewBox;if(g)return g;if(F(y)&&F(b)){if(F(d)&&F(h))return{x:d,y:h,width:y,height:b};if(F(p)&&F(v))return{x:p,y:v,width:y,height:b}}return F(d)&&F(h)?{x:d,y:h,width:0,height:0}:F(n)&&F(r)?{cx:n,cy:r,startAngle:i||a||0,endAngle:s||a||0,innerRadius:c||0,outerRadius:f||l||o||0,clockWise:m}:t.viewBox?t.viewBox:{}},dpe=function(t,n){return t?t===!0?N.createElement(Vt,{key:"label-implicit",viewBox:n}):Dt(t)?N.createElement(Vt,{key:"label-implicit",viewBox:n,value:t}):A.isValidElement(t)?t.type===Vt?A.cloneElement(t,{key:"label-implicit",viewBox:n}):N.createElement(Vt,{key:"label-implicit",content:t,viewBox:n}):de(t)?N.createElement(Vt,{key:"label-implicit",content:t,viewBox:n}):Pc(t)?N.createElement(Vt,Bf({viewBox:n},t,{key:"label-implicit"})):null:null},hpe=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(!t||!t.children&&r&&!t.label)return null;var a=t.children,i=kk(t),s=Yn(a,Vt).map(function(l,c){return A.cloneElement(l,{viewBox:n||i,key:"label-".concat(c)})});if(!r)return s;var o=dpe(t.label,n||i);return[o].concat(Whe(s))};Vt.parseViewBox=kk;Vt.renderCallByParent=hpe;function ppe(e){var t=e==null?0:e.length;return t?e[t-1]:void 0}var mpe=ppe;const ype=ze(mpe);function If(e){"@babel/helpers - typeof";return If=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},If(e)}var vpe=["valueAccessor"],gpe=["data","dataKey","clockWise","id","textBreakAll"];function bpe(e){return jpe(e)||wpe(e)||Spe(e)||xpe()}function xpe(){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 Spe(e,t){if(e){if(typeof e=="string")return qx(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return qx(e,t)}}function wpe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function jpe(e){if(Array.isArray(e))return qx(e)}function qx(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Cm(){return Cm=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Cm.apply(this,arguments)}function t_(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function n_(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?t_(Object(n),!0).forEach(function(r){Ape(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):t_(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Ape(e,t,n){return t=Ope(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ope(e){var t=Epe(e,"string");return If(t)=="symbol"?t:t+""}function Epe(e,t){if(If(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(If(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function r_(e,t){if(e==null)return{};var n=Tpe(e,t),r,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)r=i[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Tpe(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}var Npe=function(t){return Array.isArray(t.value)?ype(t.value):t.value};function ra(e){var t=e.valueAccessor,n=t===void 0?Npe:t,r=r_(e,vpe),a=r.data,i=r.dataKey,s=r.clockWise,o=r.id,l=r.textBreakAll,c=r_(r,gpe);return!a||!a.length?null:N.createElement(je,{className:"recharts-label-list"},a.map(function(f,d){var h=pe(i)?n(f,d):xt(f&&f.payload,i),p=pe(o)?{}:{id:"".concat(o,"-").concat(d)};return N.createElement(Vt,Cm({},ie(f,!0),c,p,{parentViewBox:f.parentViewBox,value:h,textBreakAll:l,viewBox:Vt.parseViewBox(pe(s)?f:n_(n_({},f),{},{clockWise:s})),key:"label-".concat(d),index:d}))}))}ra.displayName="LabelList";function _pe(e,t){return e?e===!0?N.createElement(ra,{key:"labelList-implicit",data:t}):N.isValidElement(e)||de(e)?N.createElement(ra,{key:"labelList-implicit",data:t,content:e}):Pc(e)?N.createElement(ra,Cm({data:t},e,{key:"labelList-implicit"})):null:null}function Cpe(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0;if(!e||!e.children&&n&&!e.label)return null;var r=e.children,a=Yn(r,ra).map(function(s,o){return A.cloneElement(s,{data:t,key:"labelList-".concat(o)})});if(!n)return a;var i=_pe(e.label,t);return[i].concat(bpe(a))}ra.renderCallByParent=Cpe;function Uf(e){"@babel/helpers - typeof";return Uf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Uf(e)}function Vx(){return Vx=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Vx.apply(this,arguments)}function a_(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function i_(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?a_(Object(n),!0).forEach(function(r){Ppe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a_(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Ppe(e,t,n){return t=Mpe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Mpe(e){var t=Rpe(e,"string");return Uf(t)=="symbol"?t:t+""}function Rpe(e,t){if(Uf(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Uf(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Dpe=function(t,n){var r=fn(n-t),a=Math.min(Math.abs(n-t),359.999);return r*a},Eh=function(t){var n=t.cx,r=t.cy,a=t.radius,i=t.angle,s=t.sign,o=t.isExternal,l=t.cornerRadius,c=t.cornerIsExternal,f=l*(o?1:-1)+a,d=Math.asin(l/f)/_m,h=c?i:i+s*d,p=Ze(n,r,f,h),v=Ze(n,r,a,h),y=c?i-s*d:i,b=Ze(n,r,f*Math.cos(d*_m),y);return{center:p,circleTangency:v,lineTangency:b,theta:d}},Lk=function(t){var n=t.cx,r=t.cy,a=t.innerRadius,i=t.outerRadius,s=t.startAngle,o=t.endAngle,l=Dpe(s,o),c=s+l,f=Ze(n,r,i,s),d=Ze(n,r,i,c),h="M ".concat(f.x,",").concat(f.y,`
    A `).concat(i,",").concat(i,`,0,
    `).concat(+(Math.abs(l)>180),",").concat(+(s>c),`,
    `).concat(d.x,",").concat(d.y,`
  `);if(a>0){var p=Ze(n,r,a,s),v=Ze(n,r,a,c);h+="L ".concat(v.x,",").concat(v.y,`
            A `).concat(a,",").concat(a,`,0,
            `).concat(+(Math.abs(l)>180),",").concat(+(s<=c),`,
            `).concat(p.x,",").concat(p.y," Z")}else h+="L ".concat(n,",").concat(r," Z");return h},$pe=function(t){var n=t.cx,r=t.cy,a=t.innerRadius,i=t.outerRadius,s=t.cornerRadius,o=t.forceCornerRadius,l=t.cornerIsExternal,c=t.startAngle,f=t.endAngle,d=fn(f-c),h=Eh({cx:n,cy:r,radius:i,angle:c,sign:d,cornerRadius:s,cornerIsExternal:l}),p=h.circleTangency,v=h.lineTangency,y=h.theta,b=Eh({cx:n,cy:r,radius:i,angle:f,sign:-d,cornerRadius:s,cornerIsExternal:l}),m=b.circleTangency,g=b.lineTangency,x=b.theta,w=l?Math.abs(c-f):Math.abs(c-f)-y-x;if(w<0)return o?"M ".concat(v.x,",").concat(v.y,`
        a`).concat(s,",").concat(s,",0,0,1,").concat(s*2,`,0
        a`).concat(s,",").concat(s,",0,0,1,").concat(-s*2,`,0
      `):Lk({cx:n,cy:r,innerRadius:a,outerRadius:i,startAngle:c,endAngle:f});var S="M ".concat(v.x,",").concat(v.y,`
    A`).concat(s,",").concat(s,",0,0,").concat(+(d<0),",").concat(p.x,",").concat(p.y,`
    A`).concat(i,",").concat(i,",0,").concat(+(w>180),",").concat(+(d<0),",").concat(m.x,",").concat(m.y,`
    A`).concat(s,",").concat(s,",0,0,").concat(+(d<0),",").concat(g.x,",").concat(g.y,`
  `);if(a>0){var j=Eh({cx:n,cy:r,radius:a,angle:c,sign:d,isExternal:!0,cornerRadius:s,cornerIsExternal:l}),O=j.circleTangency,E=j.lineTangency,T=j.theta,_=Eh({cx:n,cy:r,radius:a,angle:f,sign:-d,isExternal:!0,cornerRadius:s,cornerIsExternal:l}),M=_.circleTangency,C=_.lineTangency,z=_.theta,L=l?Math.abs(c-f):Math.abs(c-f)-T-z;if(L<0&&s===0)return"".concat(S,"L").concat(n,",").concat(r,"Z");S+="L".concat(C.x,",").concat(C.y,`
      A`).concat(s,",").concat(s,",0,0,").concat(+(d<0),",").concat(M.x,",").concat(M.y,`
      A`).concat(a,",").concat(a,",0,").concat(+(L>180),",").concat(+(d>0),",").concat(O.x,",").concat(O.y,`
      A`).concat(s,",").concat(s,",0,0,").concat(+(d<0),",").concat(E.x,",").concat(E.y,"Z")}else S+="L".concat(n,",").concat(r,"Z");return S},kpe={cx:0,cy:0,innerRadius:0,outerRadius:0,startAngle:0,endAngle:0,cornerRadius:0,forceCornerRadius:!1,cornerIsExternal:!1},zk=function(t){var n=i_(i_({},kpe),t),r=n.cx,a=n.cy,i=n.innerRadius,s=n.outerRadius,o=n.cornerRadius,l=n.forceCornerRadius,c=n.cornerIsExternal,f=n.startAngle,d=n.endAngle,h=n.className;if(s<i||f===d)return null;var p=ye("recharts-sector",h),v=s-i,y=dn(o,v,0,!0),b;return y>0&&Math.abs(f-d)<360?b=$pe({cx:r,cy:a,innerRadius:i,outerRadius:s,cornerRadius:Math.min(y,v/2),forceCornerRadius:l,cornerIsExternal:c,startAngle:f,endAngle:d}):b=Lk({cx:r,cy:a,innerRadius:i,outerRadius:s,startAngle:f,endAngle:d}),N.createElement("path",Vx({},ie(n,!0),{className:p,d:b,role:"img"}))};function qf(e){"@babel/helpers - typeof";return qf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},qf(e)}function Hx(){return Hx=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Hx.apply(this,arguments)}function s_(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function o_(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?s_(Object(n),!0).forEach(function(r){Lpe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s_(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Lpe(e,t,n){return t=zpe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function zpe(e){var t=Bpe(e,"string");return qf(t)=="symbol"?t:t+""}function Bpe(e,t){if(qf(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(qf(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var l_={curveBasisClosed:LJ,curveBasisOpen:zJ,curveBasis:kJ,curveBumpX:wJ,curveBumpY:jJ,curveLinearClosed:BJ,curveLinear:nv,curveMonotoneX:IJ,curveMonotoneY:UJ,curveNatural:qJ,curveStep:VJ,curveStepAfter:FJ,curveStepBefore:HJ},Th=function(t){return t.x===+t.x&&t.y===+t.y},ou=function(t){return t.x},lu=function(t){return t.y},Ipe=function(t,n){if(de(t))return t;var r="curve".concat(ev(t));return(r==="curveMonotone"||r==="curveBump")&&n?l_["".concat(r).concat(n==="vertical"?"Y":"X")]:l_[r]||nv},Upe=function(t){var n=t.type,r=n===void 0?"linear":n,a=t.points,i=a===void 0?[]:a,s=t.baseLine,o=t.layout,l=t.connectNulls,c=l===void 0?!1:l,f=Ipe(r,o),d=c?i.filter(function(y){return Th(y)}):i,h;if(Array.isArray(s)){var p=c?s.filter(function(y){return Th(y)}):s,v=d.map(function(y,b){return o_(o_({},y),{},{base:p[b]})});return o==="vertical"?h=yh().y(lu).x1(ou).x0(function(y){return y.base.x}):h=yh().x(ou).y1(lu).y0(function(y){return y.base.y}),h.defined(Th).curve(f),h(v)}return o==="vertical"&&F(s)?h=yh().y(lu).x1(ou).x0(s):F(s)?h=yh().x(ou).y1(lu).y0(s):h=R5().x(ou).y(lu),h.defined(Th).curve(f),h(d)},Gs=function(t){var n=t.className,r=t.points,a=t.path,i=t.pathRef;if((!r||!r.length)&&!a)return null;var s=r&&r.length?Upe(t):a;return A.createElement("path",Hx({},ie(t,!1),Jp(t),{className:ye("recharts-curve",n),d:s,ref:i}))},Bk={exports:{}},qpe="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED",Vpe=qpe,Hpe=Vpe;function Ik(){}function Uk(){}Uk.resetWarningCache=Ik;var Fpe=function(){function e(r,a,i,s,o,l){if(l!==Hpe){var c=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 c.name="Invariant Violation",c}}e.isRequired=e;function t(){return e}var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:Uk,resetWarningCache:Ik};return n.PropTypes=n,n};Bk.exports=Fpe();var Gpe=Bk.exports;const $e=ze(Gpe),{getOwnPropertyNames:Kpe,getOwnPropertySymbols:Ype}=Object,{hasOwnProperty:Xpe}=Object.prototype;function ob(e,t){return function(r,a,i){return e(r,a,i)&&t(r,a,i)}}function Nh(e){return function(n,r,a){if(!n||!r||typeof n!="object"||typeof r!="object")return e(n,r,a);const{cache:i}=a,s=i.get(n),o=i.get(r);if(s&&o)return s===r&&o===n;i.set(n,r),i.set(r,n);const l=e(n,r,a);return i.delete(n),i.delete(r),l}}function Wpe(e){return e!=null?e[Symbol.toStringTag]:void 0}function c_(e){return Kpe(e).concat(Ype(e))}const Qpe=Object.hasOwn||((e,t)=>Xpe.call(e,t));function xo(e,t){return e===t||!e&&!t&&e!==e&&t!==t}const Zpe="__v",Jpe="__o",eme="_owner",{getOwnPropertyDescriptor:u_,keys:f_}=Object;function tme(e,t){return e.byteLength===t.byteLength&&Pm(new Uint8Array(e),new Uint8Array(t))}function nme(e,t,n){let r=e.length;if(t.length!==r)return!1;for(;r-- >0;)if(!n.equals(e[r],t[r],r,r,e,t,n))return!1;return!0}function rme(e,t){return e.byteLength===t.byteLength&&Pm(new Uint8Array(e.buffer,e.byteOffset,e.byteLength),new Uint8Array(t.buffer,t.byteOffset,t.byteLength))}function ame(e,t){return xo(e.getTime(),t.getTime())}function ime(e,t){return e.name===t.name&&e.message===t.message&&e.cause===t.cause&&e.stack===t.stack}function sme(e,t){return e===t}function d_(e,t,n){const r=e.size;if(r!==t.size)return!1;if(!r)return!0;const a=new Array(r),i=e.entries();let s,o,l=0;for(;(s=i.next())&&!s.done;){const c=t.entries();let f=!1,d=0;for(;(o=c.next())&&!o.done;){if(a[d]){d++;continue}const h=s.value,p=o.value;if(n.equals(h[0],p[0],l,d,e,t,n)&&n.equals(h[1],p[1],h[0],p[0],e,t,n)){f=a[d]=!0;break}d++}if(!f)return!1;l++}return!0}const ome=xo;function lme(e,t,n){const r=f_(e);let a=r.length;if(f_(t).length!==a)return!1;for(;a-- >0;)if(!qk(e,t,n,r[a]))return!1;return!0}function cu(e,t,n){const r=c_(e);let a=r.length;if(c_(t).length!==a)return!1;let i,s,o;for(;a-- >0;)if(i=r[a],!qk(e,t,n,i)||(s=u_(e,i),o=u_(t,i),(s||o)&&(!s||!o||s.configurable!==o.configurable||s.enumerable!==o.enumerable||s.writable!==o.writable)))return!1;return!0}function cme(e,t){return xo(e.valueOf(),t.valueOf())}function ume(e,t){return e.source===t.source&&e.flags===t.flags}function h_(e,t,n){const r=e.size;if(r!==t.size)return!1;if(!r)return!0;const a=new Array(r),i=e.values();let s,o;for(;(s=i.next())&&!s.done;){const l=t.values();let c=!1,f=0;for(;(o=l.next())&&!o.done;){if(!a[f]&&n.equals(s.value,o.value,s.value,o.value,e,t,n)){c=a[f]=!0;break}f++}if(!c)return!1}return!0}function Pm(e,t){let n=e.byteLength;if(t.byteLength!==n||e.byteOffset!==t.byteOffset)return!1;for(;n-- >0;)if(e[n]!==t[n])return!1;return!0}function fme(e,t){return e.hostname===t.hostname&&e.pathname===t.pathname&&e.protocol===t.protocol&&e.port===t.port&&e.hash===t.hash&&e.username===t.username&&e.password===t.password}function qk(e,t,n,r){return(r===eme||r===Jpe||r===Zpe)&&(e.$$typeof||t.$$typeof)?!0:Qpe(t,r)&&n.equals(e[r],t[r],r,r,e,t,n)}const dme="[object ArrayBuffer]",hme="[object Arguments]",pme="[object Boolean]",mme="[object DataView]",yme="[object Date]",vme="[object Error]",gme="[object Map]",bme="[object Number]",xme="[object Object]",Sme="[object RegExp]",wme="[object Set]",jme="[object String]",Ame={"[object Int8Array]":!0,"[object Uint8Array]":!0,"[object Uint8ClampedArray]":!0,"[object Int16Array]":!0,"[object Uint16Array]":!0,"[object Int32Array]":!0,"[object Uint32Array]":!0,"[object Float16Array]":!0,"[object Float32Array]":!0,"[object Float64Array]":!0,"[object BigInt64Array]":!0,"[object BigUint64Array]":!0},Ome="[object URL]",Eme=Object.prototype.toString;function Tme({areArrayBuffersEqual:e,areArraysEqual:t,areDataViewsEqual:n,areDatesEqual:r,areErrorsEqual:a,areFunctionsEqual:i,areMapsEqual:s,areNumbersEqual:o,areObjectsEqual:l,arePrimitiveWrappersEqual:c,areRegExpsEqual:f,areSetsEqual:d,areTypedArraysEqual:h,areUrlsEqual:p,unknownTagComparators:v}){return function(b,m,g){if(b===m)return!0;if(b==null||m==null)return!1;const x=typeof b;if(x!==typeof m)return!1;if(x!=="object")return x==="number"?o(b,m,g):x==="function"?i(b,m,g):!1;const w=b.constructor;if(w!==m.constructor)return!1;if(w===Object)return l(b,m,g);if(Array.isArray(b))return t(b,m,g);if(w===Date)return r(b,m,g);if(w===RegExp)return f(b,m,g);if(w===Map)return s(b,m,g);if(w===Set)return d(b,m,g);const S=Eme.call(b);if(S===yme)return r(b,m,g);if(S===Sme)return f(b,m,g);if(S===gme)return s(b,m,g);if(S===wme)return d(b,m,g);if(S===xme)return typeof b.then!="function"&&typeof m.then!="function"&&l(b,m,g);if(S===Ome)return p(b,m,g);if(S===vme)return a(b,m,g);if(S===hme)return l(b,m,g);if(Ame[S])return h(b,m,g);if(S===dme)return e(b,m,g);if(S===mme)return n(b,m,g);if(S===pme||S===bme||S===jme)return c(b,m,g);if(v){let j=v[S];if(!j){const O=Wpe(b);O&&(j=v[O])}if(j)return j(b,m,g)}return!1}}function Nme({circular:e,createCustomConfig:t,strict:n}){let r={areArrayBuffersEqual:tme,areArraysEqual:n?cu:nme,areDataViewsEqual:rme,areDatesEqual:ame,areErrorsEqual:ime,areFunctionsEqual:sme,areMapsEqual:n?ob(d_,cu):d_,areNumbersEqual:ome,areObjectsEqual:n?cu:lme,arePrimitiveWrappersEqual:cme,areRegExpsEqual:ume,areSetsEqual:n?ob(h_,cu):h_,areTypedArraysEqual:n?ob(Pm,cu):Pm,areUrlsEqual:fme,unknownTagComparators:void 0};if(t&&(r=Object.assign({},r,t(r))),e){const a=Nh(r.areArraysEqual),i=Nh(r.areMapsEqual),s=Nh(r.areObjectsEqual),o=Nh(r.areSetsEqual);r=Object.assign({},r,{areArraysEqual:a,areMapsEqual:i,areObjectsEqual:s,areSetsEqual:o})}return r}function _me(e){return function(t,n,r,a,i,s,o){return e(t,n,o)}}function Cme({circular:e,comparator:t,createState:n,equals:r,strict:a}){if(n)return function(o,l){const{cache:c=e?new WeakMap:void 0,meta:f}=n();return t(o,l,{cache:c,equals:r,meta:f,strict:a})};if(e)return function(o,l){return t(o,l,{cache:new WeakMap,equals:r,meta:void 0,strict:a})};const i={cache:void 0,equals:r,meta:void 0,strict:a};return function(o,l){return t(o,l,i)}}const Pme=ns();ns({strict:!0});ns({circular:!0});ns({circular:!0,strict:!0});ns({createInternalComparator:()=>xo});ns({strict:!0,createInternalComparator:()=>xo});ns({circular:!0,createInternalComparator:()=>xo});ns({circular:!0,createInternalComparator:()=>xo,strict:!0});function ns(e={}){const{circular:t=!1,createInternalComparator:n,createState:r,strict:a=!1}=e,i=Nme(e),s=Tme(i),o=n?n(s):_me(s);return Cme({circular:t,comparator:s,createState:r,equals:o,strict:a})}function Mme(e){typeof requestAnimationFrame<"u"&&requestAnimationFrame(e)}function p_(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,n=-1,r=function a(i){n<0&&(n=i),i-n>t?(e(i),n=-1):Mme(a)};requestAnimationFrame(r)}function Fx(e){"@babel/helpers - typeof";return Fx=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Fx(e)}function Rme(e){return Lme(e)||kme(e)||$me(e)||Dme()}function Dme(){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 $me(e,t){if(e){if(typeof e=="string")return m_(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return m_(e,t)}}function m_(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function kme(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Lme(e){if(Array.isArray(e))return e}function zme(){var e={},t=function(){return null},n=!1,r=function a(i){if(!n){if(Array.isArray(i)){if(!i.length)return;var s=i,o=Rme(s),l=o[0],c=o.slice(1);if(typeof l=="number"){p_(a.bind(null,c),l);return}a(l),p_(a.bind(null,c));return}Fx(i)==="object"&&(e=i,t(e)),typeof i=="function"&&i()}};return{stop:function(){n=!0},start:function(i){n=!1,r(i)},subscribe:function(i){return t=i,function(){t=function(){return null}}}}}function Vf(e){"@babel/helpers - typeof";return Vf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Vf(e)}function y_(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function v_(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?y_(Object(n),!0).forEach(function(r){Vk(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):y_(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Vk(e,t,n){return t=Bme(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Bme(e){var t=Ime(e,"string");return Vf(t)==="symbol"?t:String(t)}function Ime(e,t){if(Vf(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Vf(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Ume=function(t,n){return[Object.keys(t),Object.keys(n)].reduce(function(r,a){return r.filter(function(i){return a.includes(i)})})},qme=function(t){return t},Vme=function(t){return t.replace(/([A-Z])/g,function(n){return"-".concat(n.toLowerCase())})},Hu=function(t,n){return Object.keys(n).reduce(function(r,a){return v_(v_({},r),{},Vk({},a,t(a,n[a])))},{})},g_=function(t,n,r){return t.map(function(a){return"".concat(Vme(a)," ").concat(n,"ms ").concat(r)}).join(",")};function Hme(e,t){return Kme(e)||Gme(e,t)||Hk(e,t)||Fme()}function Fme(){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 Gme(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,i,s,o=[],l=!0,c=!1;try{if(i=(n=n.call(e)).next,t!==0)for(;!(l=(r=i.call(n)).done)&&(o.push(r.value),o.length!==t);l=!0);}catch(f){c=!0,a=f}finally{try{if(!l&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(c)throw a}}return o}}function Kme(e){if(Array.isArray(e))return e}function Yme(e){return Qme(e)||Wme(e)||Hk(e)||Xme()}function Xme(){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 Hk(e,t){if(e){if(typeof e=="string")return Gx(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Gx(e,t)}}function Wme(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Qme(e){if(Array.isArray(e))return Gx(e)}function Gx(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var Mm=1e-4,Fk=function(t,n){return[0,3*t,3*n-6*t,3*t-3*n+1]},Gk=function(t,n){return t.map(function(r,a){return r*Math.pow(n,a)}).reduce(function(r,a){return r+a})},b_=function(t,n){return function(r){var a=Fk(t,n);return Gk(a,r)}},Zme=function(t,n){return function(r){var a=Fk(t,n),i=[].concat(Yme(a.map(function(s,o){return s*o}).slice(1)),[0]);return Gk(i,r)}},x_=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var a=n[0],i=n[1],s=n[2],o=n[3];if(n.length===1)switch(n[0]){case"linear":a=0,i=0,s=1,o=1;break;case"ease":a=.25,i=.1,s=.25,o=1;break;case"ease-in":a=.42,i=0,s=1,o=1;break;case"ease-out":a=.42,i=0,s=.58,o=1;break;case"ease-in-out":a=0,i=0,s=.58,o=1;break;default:{var l=n[0].split("(");if(l[0]==="cubic-bezier"&&l[1].split(")")[0].split(",").length===4){var c=l[1].split(")")[0].split(",").map(function(b){return parseFloat(b)}),f=Hme(c,4);a=f[0],i=f[1],s=f[2],o=f[3]}}}var d=b_(a,s),h=b_(i,o),p=Zme(a,s),v=function(m){return m>1?1:m<0?0:m},y=function(m){for(var g=m>1?1:m,x=g,w=0;w<8;++w){var S=d(x)-g,j=p(x);if(Math.abs(S-g)<Mm||j<Mm)return h(x);x=v(x-S/j)}return h(x)};return y.isStepper=!1,y},Jme=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},n=t.stiff,r=n===void 0?100:n,a=t.damping,i=a===void 0?8:a,s=t.dt,o=s===void 0?17:s,l=function(f,d,h){var p=-(f-d)*r,v=h*i,y=h+(p-v)*o/1e3,b=h*o/1e3+f;return Math.abs(b-d)<Mm&&Math.abs(y)<Mm?[d,0]:[b,y]};return l.isStepper=!0,l.dt=o,l},eye=function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];var a=n[0];if(typeof a=="string")switch(a){case"ease":case"ease-in-out":case"ease-out":case"ease-in":case"linear":return x_(a);case"spring":return Jme();default:if(a.split("(")[0]==="cubic-bezier")return x_(a)}return typeof a=="function"?a:null};function Hf(e){"@babel/helpers - typeof";return Hf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Hf(e)}function S_(e){return rye(e)||nye(e)||Kk(e)||tye()}function tye(){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 nye(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function rye(e){if(Array.isArray(e))return Yx(e)}function w_(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function Kt(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?w_(Object(n),!0).forEach(function(r){Kx(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):w_(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Kx(e,t,n){return t=aye(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function aye(e){var t=iye(e,"string");return Hf(t)==="symbol"?t:String(t)}function iye(e,t){if(Hf(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Hf(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function sye(e,t){return cye(e)||lye(e,t)||Kk(e,t)||oye()}function oye(){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 Kk(e,t){if(e){if(typeof e=="string")return Yx(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Yx(e,t)}}function Yx(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function lye(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,i,s,o=[],l=!0,c=!1;try{if(i=(n=n.call(e)).next,t!==0)for(;!(l=(r=i.call(n)).done)&&(o.push(r.value),o.length!==t);l=!0);}catch(f){c=!0,a=f}finally{try{if(!l&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(c)throw a}}return o}}function cye(e){if(Array.isArray(e))return e}var Rm=function(t,n,r){return t+(n-t)*r},Xx=function(t){var n=t.from,r=t.to;return n!==r},uye=function e(t,n,r){var a=Hu(function(i,s){if(Xx(s)){var o=t(s.from,s.to,s.velocity),l=sye(o,2),c=l[0],f=l[1];return Kt(Kt({},s),{},{from:c,velocity:f})}return s},n);return r<1?Hu(function(i,s){return Xx(s)?Kt(Kt({},s),{},{velocity:Rm(s.velocity,a[i].velocity,r),from:Rm(s.from,a[i].from,r)}):s},n):e(t,a,r-1)};const fye=function(e,t,n,r,a){var i=Ume(e,t),s=i.reduce(function(b,m){return Kt(Kt({},b),{},Kx({},m,[e[m],t[m]]))},{}),o=i.reduce(function(b,m){return Kt(Kt({},b),{},Kx({},m,{from:e[m],velocity:0,to:t[m]}))},{}),l=-1,c,f,d=function(){return null},h=function(){return Hu(function(m,g){return g.from},o)},p=function(){return!Object.values(o).filter(Xx).length},v=function(m){c||(c=m);var g=m-c,x=g/n.dt;o=uye(n,o,x),a(Kt(Kt(Kt({},e),t),h())),c=m,p()||(l=requestAnimationFrame(d))},y=function(m){f||(f=m);var g=(m-f)/r,x=Hu(function(S,j){return Rm.apply(void 0,S_(j).concat([n(g)]))},s);if(a(Kt(Kt(Kt({},e),t),x)),g<1)l=requestAnimationFrame(d);else{var w=Hu(function(S,j){return Rm.apply(void 0,S_(j).concat([n(1)]))},s);a(Kt(Kt(Kt({},e),t),w))}};return d=n.isStepper?v:y,function(){return requestAnimationFrame(d),function(){cancelAnimationFrame(l)}}};function Zl(e){"@babel/helpers - typeof";return Zl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Zl(e)}var dye=["children","begin","duration","attributeName","easing","isActive","steps","from","to","canBegin","onAnimationEnd","shouldReAnimate","onAnimationReStart"];function hye(e,t){if(e==null)return{};var n=pye(e,t),r,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)r=i[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function pye(e,t){if(e==null)return{};var n={},r=Object.keys(e),a,i;for(i=0;i<r.length;i++)a=r[i],!(t.indexOf(a)>=0)&&(n[a]=e[a]);return n}function lb(e){return gye(e)||vye(e)||yye(e)||mye()}function mye(){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 yye(e,t){if(e){if(typeof e=="string")return Wx(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Wx(e,t)}}function vye(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function gye(e){if(Array.isArray(e))return Wx(e)}function Wx(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function j_(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function Er(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?j_(Object(n),!0).forEach(function(r){xu(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):j_(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function xu(e,t,n){return t=Yk(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function bye(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function xye(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Yk(r.key),r)}}function Sye(e,t,n){return t&&xye(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function Yk(e){var t=wye(e,"string");return Zl(t)==="symbol"?t:String(t)}function wye(e,t){if(Zl(e)!=="object"||e===null)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Zl(r)!=="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function jye(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&Qx(e,t)}function Qx(e,t){return Qx=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},Qx(e,t)}function Aye(e){var t=Oye();return function(){var r=Dm(e),a;if(t){var i=Dm(this).constructor;a=Reflect.construct(r,arguments,i)}else a=r.apply(this,arguments);return Zx(this,a)}}function Zx(e,t){if(t&&(Zl(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Jx(e)}function Jx(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Oye(){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 Dm(e){return Dm=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Dm(e)}var kr=function(e){jye(n,e);var t=Aye(n);function n(r,a){var i;bye(this,n),i=t.call(this,r,a);var s=i.props,o=s.isActive,l=s.attributeName,c=s.from,f=s.to,d=s.steps,h=s.children,p=s.duration;if(i.handleStyleChange=i.handleStyleChange.bind(Jx(i)),i.changeStyle=i.changeStyle.bind(Jx(i)),!o||p<=0)return i.state={style:{}},typeof h=="function"&&(i.state={style:f}),Zx(i);if(d&&d.length)i.state={style:d[0].style};else if(c){if(typeof h=="function")return i.state={style:c},Zx(i);i.state={style:l?xu({},l,c):c}}else i.state={style:{}};return i}return Sye(n,[{key:"componentDidMount",value:function(){var a=this.props,i=a.isActive,s=a.canBegin;this.mounted=!0,!(!i||!s)&&this.runAnimation(this.props)}},{key:"componentDidUpdate",value:function(a){var i=this.props,s=i.isActive,o=i.canBegin,l=i.attributeName,c=i.shouldReAnimate,f=i.to,d=i.from,h=this.state.style;if(o){if(!s){var p={style:l?xu({},l,f):f};this.state&&h&&(l&&h[l]!==f||!l&&h!==f)&&this.setState(p);return}if(!(Pme(a.to,f)&&a.canBegin&&a.isActive)){var v=!a.canBegin||!a.isActive;this.manager&&this.manager.stop(),this.stopJSAnimation&&this.stopJSAnimation();var y=v||c?d:a.to;if(this.state&&h){var b={style:l?xu({},l,y):y};(l&&h[l]!==y||!l&&h!==y)&&this.setState(b)}this.runAnimation(Er(Er({},this.props),{},{from:y,begin:0}))}}}},{key:"componentWillUnmount",value:function(){this.mounted=!1;var a=this.props.onAnimationEnd;this.unSubscribe&&this.unSubscribe(),this.manager&&(this.manager.stop(),this.manager=null),this.stopJSAnimation&&this.stopJSAnimation(),a&&a()}},{key:"handleStyleChange",value:function(a){this.changeStyle(a)}},{key:"changeStyle",value:function(a){this.mounted&&this.setState({style:a})}},{key:"runJSAnimation",value:function(a){var i=this,s=a.from,o=a.to,l=a.duration,c=a.easing,f=a.begin,d=a.onAnimationEnd,h=a.onAnimationStart,p=fye(s,o,eye(c),l,this.changeStyle),v=function(){i.stopJSAnimation=p()};this.manager.start([h,f,v,l,d])}},{key:"runStepAnimation",value:function(a){var i=this,s=a.steps,o=a.begin,l=a.onAnimationStart,c=s[0],f=c.style,d=c.duration,h=d===void 0?0:d,p=function(y,b,m){if(m===0)return y;var g=b.duration,x=b.easing,w=x===void 0?"ease":x,S=b.style,j=b.properties,O=b.onAnimationEnd,E=m>0?s[m-1]:b,T=j||Object.keys(S);if(typeof w=="function"||w==="spring")return[].concat(lb(y),[i.runJSAnimation.bind(i,{from:E.style,to:S,duration:g,easing:w}),g]);var _=g_(T,g,w),M=Er(Er(Er({},E.style),S),{},{transition:_});return[].concat(lb(y),[M,g,O]).filter(qme)};return this.manager.start([l].concat(lb(s.reduce(p,[f,Math.max(h,o)])),[a.onAnimationEnd]))}},{key:"runAnimation",value:function(a){this.manager||(this.manager=zme());var i=a.begin,s=a.duration,o=a.attributeName,l=a.to,c=a.easing,f=a.onAnimationStart,d=a.onAnimationEnd,h=a.steps,p=a.children,v=this.manager;if(this.unSubscribe=v.subscribe(this.handleStyleChange),typeof c=="function"||typeof p=="function"||c==="spring"){this.runJSAnimation(a);return}if(h.length>1){this.runStepAnimation(a);return}var y=o?xu({},o,l):l,b=g_(Object.keys(y),s,c);v.start([f,i,Er(Er({},y),{},{transition:b}),s,d])}},{key:"render",value:function(){var a=this.props,i=a.children;a.begin;var s=a.duration;a.attributeName,a.easing;var o=a.isActive;a.steps,a.from,a.to,a.canBegin,a.onAnimationEnd,a.shouldReAnimate,a.onAnimationReStart;var l=hye(a,dye),c=A.Children.count(i),f=this.state.style;if(typeof i=="function")return i(f);if(!o||c===0||s<=0)return i;var d=function(p){var v=p.props,y=v.style,b=y===void 0?{}:y,m=v.className,g=A.cloneElement(p,Er(Er({},l),{},{style:Er(Er({},b),f),className:m}));return g};return c===1?d(A.Children.only(i)):N.createElement("div",null,A.Children.map(i,function(h){return d(h)}))}}]),n}(A.PureComponent);kr.displayName="Animate";kr.defaultProps={begin:0,duration:1e3,from:"",to:"",attributeName:"",easing:"ease",isActive:!0,canBegin:!0,steps:[],onAnimationEnd:function(){},onAnimationStart:function(){}};kr.propTypes={from:$e.oneOfType([$e.object,$e.string]),to:$e.oneOfType([$e.object,$e.string]),attributeName:$e.string,duration:$e.number,begin:$e.number,easing:$e.oneOfType([$e.string,$e.func]),steps:$e.arrayOf($e.shape({duration:$e.number.isRequired,style:$e.object.isRequired,easing:$e.oneOfType([$e.oneOf(["ease","ease-in","ease-out","ease-in-out","linear"]),$e.func]),properties:$e.arrayOf("string"),onAnimationEnd:$e.func})),children:$e.oneOfType([$e.node,$e.func]),isActive:$e.bool,canBegin:$e.bool,onAnimationEnd:$e.func,shouldReAnimate:$e.bool,onAnimationStart:$e.func,onAnimationReStart:$e.func};function Ff(e){"@babel/helpers - typeof";return Ff=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ff(e)}function $m(){return $m=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},$m.apply(this,arguments)}function Eye(e,t){return Cye(e)||_ye(e,t)||Nye(e,t)||Tye()}function Tye(){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 Nye(e,t){if(e){if(typeof e=="string")return A_(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return A_(e,t)}}function A_(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function _ye(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,i,s,o=[],l=!0,c=!1;try{if(i=(n=n.call(e)).next,t!==0)for(;!(l=(r=i.call(n)).done)&&(o.push(r.value),o.length!==t);l=!0);}catch(f){c=!0,a=f}finally{try{if(!l&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(c)throw a}}return o}}function Cye(e){if(Array.isArray(e))return e}function O_(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function E_(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?O_(Object(n),!0).forEach(function(r){Pye(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):O_(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Pye(e,t,n){return t=Mye(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Mye(e){var t=Rye(e,"string");return Ff(t)=="symbol"?t:t+""}function Rye(e,t){if(Ff(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Ff(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var T_=function(t,n,r,a,i){var s=Math.min(Math.abs(r)/2,Math.abs(a)/2),o=a>=0?1:-1,l=r>=0?1:-1,c=a>=0&&r>=0||a<0&&r<0?1:0,f;if(s>0&&i instanceof Array){for(var d=[0,0,0,0],h=0,p=4;h<p;h++)d[h]=i[h]>s?s:i[h];f="M".concat(t,",").concat(n+o*d[0]),d[0]>0&&(f+="A ".concat(d[0],",").concat(d[0],",0,0,").concat(c,",").concat(t+l*d[0],",").concat(n)),f+="L ".concat(t+r-l*d[1],",").concat(n),d[1]>0&&(f+="A ".concat(d[1],",").concat(d[1],",0,0,").concat(c,`,
        `).concat(t+r,",").concat(n+o*d[1])),f+="L ".concat(t+r,",").concat(n+a-o*d[2]),d[2]>0&&(f+="A ".concat(d[2],",").concat(d[2],",0,0,").concat(c,`,
        `).concat(t+r-l*d[2],",").concat(n+a)),f+="L ".concat(t+l*d[3],",").concat(n+a),d[3]>0&&(f+="A ".concat(d[3],",").concat(d[3],",0,0,").concat(c,`,
        `).concat(t,",").concat(n+a-o*d[3])),f+="Z"}else if(s>0&&i===+i&&i>0){var v=Math.min(s,i);f="M ".concat(t,",").concat(n+o*v,`
            A `).concat(v,",").concat(v,",0,0,").concat(c,",").concat(t+l*v,",").concat(n,`
            L `).concat(t+r-l*v,",").concat(n,`
            A `).concat(v,",").concat(v,",0,0,").concat(c,",").concat(t+r,",").concat(n+o*v,`
            L `).concat(t+r,",").concat(n+a-o*v,`
            A `).concat(v,",").concat(v,",0,0,").concat(c,",").concat(t+r-l*v,",").concat(n+a,`
            L `).concat(t+l*v,",").concat(n+a,`
            A `).concat(v,",").concat(v,",0,0,").concat(c,",").concat(t,",").concat(n+a-o*v," Z")}else f="M ".concat(t,",").concat(n," h ").concat(r," v ").concat(a," h ").concat(-r," Z");return f},Dye=function(t,n){if(!t||!n)return!1;var r=t.x,a=t.y,i=n.x,s=n.y,o=n.width,l=n.height;if(Math.abs(o)>0&&Math.abs(l)>0){var c=Math.min(i,i+o),f=Math.max(i,i+o),d=Math.min(s,s+l),h=Math.max(s,s+l);return r>=c&&r<=f&&a>=d&&a<=h}return!1},$ye={x:0,y:0,width:0,height:0,radius:0,isAnimationActive:!1,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},$j=function(t){var n=E_(E_({},$ye),t),r=A.useRef(),a=A.useState(-1),i=Eye(a,2),s=i[0],o=i[1];A.useEffect(function(){if(r.current&&r.current.getTotalLength)try{var w=r.current.getTotalLength();w&&o(w)}catch{}},[]);var l=n.x,c=n.y,f=n.width,d=n.height,h=n.radius,p=n.className,v=n.animationEasing,y=n.animationDuration,b=n.animationBegin,m=n.isAnimationActive,g=n.isUpdateAnimationActive;if(l!==+l||c!==+c||f!==+f||d!==+d||f===0||d===0)return null;var x=ye("recharts-rectangle",p);return g?N.createElement(kr,{canBegin:s>0,from:{width:f,height:d,x:l,y:c},to:{width:f,height:d,x:l,y:c},duration:y,animationEasing:v,isActive:g},function(w){var S=w.width,j=w.height,O=w.x,E=w.y;return N.createElement(kr,{canBegin:s>0,from:"0px ".concat(s===-1?1:s,"px"),to:"".concat(s,"px 0px"),attributeName:"strokeDasharray",begin:b,duration:y,isActive:m,easing:v},N.createElement("path",$m({},ie(n,!0),{className:x,d:T_(O,E,S,j,h),ref:r})))}):N.createElement("path",$m({},ie(n,!0),{className:x,d:T_(l,c,f,d,h)}))},kye=["points","className","baseLinePoints","connectNulls"];function Jo(){return Jo=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Jo.apply(this,arguments)}function Lye(e,t){if(e==null)return{};var n=zye(e,t),r,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)r=i[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function zye(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function N_(e){return qye(e)||Uye(e)||Iye(e)||Bye()}function Bye(){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 Iye(e,t){if(e){if(typeof e=="string")return e1(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return e1(e,t)}}function Uye(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function qye(e){if(Array.isArray(e))return e1(e)}function e1(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var __=function(t){return t&&t.x===+t.x&&t.y===+t.y},Vye=function(){var t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],n=[[]];return t.forEach(function(r){__(r)?n[n.length-1].push(r):n[n.length-1].length>0&&n.push([])}),__(t[0])&&n[n.length-1].push(t[0]),n[n.length-1].length<=0&&(n=n.slice(0,-1)),n},Fu=function(t,n){var r=Vye(t);n&&(r=[r.reduce(function(i,s){return[].concat(N_(i),N_(s))},[])]);var a=r.map(function(i){return i.reduce(function(s,o,l){return"".concat(s).concat(l===0?"M":"L").concat(o.x,",").concat(o.y)},"")}).join("");return r.length===1?"".concat(a,"Z"):a},Hye=function(t,n,r){var a=Fu(t,r);return"".concat(a.slice(-1)==="Z"?a.slice(0,-1):a,"L").concat(Fu(n.reverse(),r).slice(1))},Fye=function(t){var n=t.points,r=t.className,a=t.baseLinePoints,i=t.connectNulls,s=Lye(t,kye);if(!n||!n.length)return null;var o=ye("recharts-polygon",r);if(a&&a.length){var l=s.stroke&&s.stroke!=="none",c=Hye(n,a,i);return N.createElement("g",{className:o},N.createElement("path",Jo({},ie(s,!0),{fill:c.slice(-1)==="Z"?s.fill:"none",stroke:"none",d:c})),l?N.createElement("path",Jo({},ie(s,!0),{fill:"none",d:Fu(n,i)})):null,l?N.createElement("path",Jo({},ie(s,!0),{fill:"none",d:Fu(a,i)})):null)}var f=Fu(n,i);return N.createElement("path",Jo({},ie(s,!0),{fill:f.slice(-1)==="Z"?s.fill:"none",className:o,d:f}))};function t1(){return t1=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},t1.apply(this,arguments)}var Bd=function(t){var n=t.cx,r=t.cy,a=t.r,i=t.className,s=ye("recharts-dot",i);return n===+n&&r===+r&&a===+a?A.createElement("circle",t1({},ie(t,!1),Jp(t),{className:s,cx:n,cy:r,r:a})):null};function Gf(e){"@babel/helpers - typeof";return Gf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Gf(e)}var Gye=["x","y","top","left","width","height","className"];function n1(){return n1=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},n1.apply(this,arguments)}function C_(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function Kye(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?C_(Object(n),!0).forEach(function(r){Yye(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):C_(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Yye(e,t,n){return t=Xye(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Xye(e){var t=Wye(e,"string");return Gf(t)=="symbol"?t:t+""}function Wye(e,t){if(Gf(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Gf(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Qye(e,t){if(e==null)return{};var n=Zye(e,t),r,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)r=i[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Zye(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}var Jye=function(t,n,r,a,i,s){return"M".concat(t,",").concat(i,"v").concat(a,"M").concat(s,",").concat(n,"h").concat(r)},eve=function(t){var n=t.x,r=n===void 0?0:n,a=t.y,i=a===void 0?0:a,s=t.top,o=s===void 0?0:s,l=t.left,c=l===void 0?0:l,f=t.width,d=f===void 0?0:f,h=t.height,p=h===void 0?0:h,v=t.className,y=Qye(t,Gye),b=Kye({x:r,y:i,top:o,left:c,width:d,height:p},y);return!F(r)||!F(i)||!F(d)||!F(p)||!F(o)||!F(c)?null:N.createElement("path",n1({},ie(b,!0),{className:ye("recharts-cross",v),d:Jye(r,i,d,p,o,c)}))},tve=pv,nve=sk,rve=ua;function ave(e,t){return e&&e.length?tve(e,rve(t),nve):void 0}var ive=ave;const sve=ze(ive);var ove=pv,lve=ua,cve=ok;function uve(e,t){return e&&e.length?ove(e,lve(t),cve):void 0}var fve=uve;const dve=ze(fve);var hve=["cx","cy","angle","ticks","axisLine"],pve=["ticks","tick","angle","tickFormatter","stroke"];function Jl(e){"@babel/helpers - typeof";return Jl=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Jl(e)}function Gu(){return Gu=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Gu.apply(this,arguments)}function P_(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function os(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?P_(Object(n),!0).forEach(function(r){gv(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):P_(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function M_(e,t){if(e==null)return{};var n=mve(e,t),r,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)r=i[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function mve(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function yve(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function R_(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Wk(r.key),r)}}function vve(e,t,n){return t&&R_(e.prototype,t),n&&R_(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function gve(e,t,n){return t=km(t),bve(e,Xk()?Reflect.construct(t,n||[],km(e).constructor):t.apply(e,n))}function bve(e,t){if(t&&(Jl(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return xve(e)}function xve(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Xk(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Xk=function(){return!!e})()}function km(e){return km=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},km(e)}function Sve(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&r1(e,t)}function r1(e,t){return r1=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},r1(e,t)}function gv(e,t,n){return t=Wk(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Wk(e){var t=wve(e,"string");return Jl(t)=="symbol"?t:t+""}function wve(e,t){if(Jl(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Jl(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var bv=function(e){function t(){return yve(this,t),gve(this,t,arguments)}return Sve(t,e),vve(t,[{key:"getTickValueCoord",value:function(r){var a=r.coordinate,i=this.props,s=i.angle,o=i.cx,l=i.cy;return Ze(o,l,a,s)}},{key:"getTickTextAnchor",value:function(){var r=this.props.orientation,a;switch(r){case"left":a="end";break;case"right":a="start";break;default:a="middle";break}return a}},{key:"getViewBox",value:function(){var r=this.props,a=r.cx,i=r.cy,s=r.angle,o=r.ticks,l=sve(o,function(f){return f.coordinate||0}),c=dve(o,function(f){return f.coordinate||0});return{cx:a,cy:i,startAngle:s,endAngle:s,innerRadius:c.coordinate||0,outerRadius:l.coordinate||0}}},{key:"renderAxisLine",value:function(){var r=this.props,a=r.cx,i=r.cy,s=r.angle,o=r.ticks,l=r.axisLine,c=M_(r,hve),f=o.reduce(function(v,y){return[Math.min(v[0],y.coordinate),Math.max(v[1],y.coordinate)]},[1/0,-1/0]),d=Ze(a,i,f[0],s),h=Ze(a,i,f[1],s),p=os(os(os({},ie(c,!1)),{},{fill:"none"},ie(l,!1)),{},{x1:d.x,y1:d.y,x2:h.x,y2:h.y});return N.createElement("line",Gu({className:"recharts-polar-radius-axis-line"},p))}},{key:"renderTicks",value:function(){var r=this,a=this.props,i=a.ticks,s=a.tick,o=a.angle,l=a.tickFormatter,c=a.stroke,f=M_(a,pve),d=this.getTickTextAnchor(),h=ie(f,!1),p=ie(s,!1),v=i.map(function(y,b){var m=r.getTickValueCoord(y),g=os(os(os(os({textAnchor:d,transform:"rotate(".concat(90-o,", ").concat(m.x,", ").concat(m.y,")")},h),{},{stroke:"none",fill:c},p),{},{index:b},m),{},{payload:y});return N.createElement(je,Gu({className:ye("recharts-polar-radius-axis-tick",$k(s)),key:"tick-".concat(y.coordinate)},no(r.props,y,b)),t.renderTickItem(s,g,l?l(y.value,b):y.value))});return N.createElement(je,{className:"recharts-polar-radius-axis-ticks"},v)}},{key:"render",value:function(){var r=this.props,a=r.ticks,i=r.axisLine,s=r.tick;return!a||!a.length?null:N.createElement(je,{className:ye("recharts-polar-radius-axis",this.props.className)},i&&this.renderAxisLine(),s&&this.renderTicks(),Vt.renderCallByParent(this.props,this.getViewBox()))}}],[{key:"renderTickItem",value:function(r,a,i){var s;return N.isValidElement(r)?s=N.cloneElement(r,a):de(r)?s=r(a):s=N.createElement(ro,Gu({},a,{className:"recharts-polar-radius-axis-tick-value"}),i),s}}])}(A.PureComponent);gv(bv,"displayName","PolarRadiusAxis");gv(bv,"axisType","radiusAxis");gv(bv,"defaultProps",{type:"number",radiusAxisId:0,cx:0,cy:0,angle:0,orientation:"right",stroke:"#ccc",axisLine:!0,tick:!0,tickCount:5,allowDataOverflow:!1,scale:"auto",allowDuplicatedCategory:!0});function ec(e){"@babel/helpers - typeof";return ec=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ec(e)}function bs(){return bs=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},bs.apply(this,arguments)}function D_(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function ls(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?D_(Object(n),!0).forEach(function(r){xv(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):D_(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function jve(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function $_(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,Zk(r.key),r)}}function Ave(e,t,n){return t&&$_(e.prototype,t),n&&$_(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Ove(e,t,n){return t=Lm(t),Eve(e,Qk()?Reflect.construct(t,n||[],Lm(e).constructor):t.apply(e,n))}function Eve(e,t){if(t&&(ec(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Tve(e)}function Tve(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Qk(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(Qk=function(){return!!e})()}function Lm(e){return Lm=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Lm(e)}function Nve(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&a1(e,t)}function a1(e,t){return a1=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},a1(e,t)}function xv(e,t,n){return t=Zk(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Zk(e){var t=_ve(e,"string");return ec(t)=="symbol"?t:t+""}function _ve(e,t){if(ec(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(ec(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Cve=Math.PI/180,k_=1e-5,Sv=function(e){function t(){return jve(this,t),Ove(this,t,arguments)}return Nve(t,e),Ave(t,[{key:"getTickLineCoord",value:function(r){var a=this.props,i=a.cx,s=a.cy,o=a.radius,l=a.orientation,c=a.tickSize,f=c||8,d=Ze(i,s,o,r.coordinate),h=Ze(i,s,o+(l==="inner"?-1:1)*f,r.coordinate);return{x1:d.x,y1:d.y,x2:h.x,y2:h.y}}},{key:"getTickTextAnchor",value:function(r){var a=this.props.orientation,i=Math.cos(-r.coordinate*Cve),s;return i>k_?s=a==="outer"?"start":"end":i<-k_?s=a==="outer"?"end":"start":s="middle",s}},{key:"renderAxisLine",value:function(){var r=this.props,a=r.cx,i=r.cy,s=r.radius,o=r.axisLine,l=r.axisLineType,c=ls(ls({},ie(this.props,!1)),{},{fill:"none"},ie(o,!1));if(l==="circle")return N.createElement(Bd,bs({className:"recharts-polar-angle-axis-line"},c,{cx:a,cy:i,r:s}));var f=this.props.ticks,d=f.map(function(h){return Ze(a,i,s,h.coordinate)});return N.createElement(Fye,bs({className:"recharts-polar-angle-axis-line"},c,{points:d}))}},{key:"renderTicks",value:function(){var r=this,a=this.props,i=a.ticks,s=a.tick,o=a.tickLine,l=a.tickFormatter,c=a.stroke,f=ie(this.props,!1),d=ie(s,!1),h=ls(ls({},f),{},{fill:"none"},ie(o,!1)),p=i.map(function(v,y){var b=r.getTickLineCoord(v),m=r.getTickTextAnchor(v),g=ls(ls(ls({textAnchor:m},f),{},{stroke:"none",fill:c},d),{},{index:y,payload:v,x:b.x2,y:b.y2});return N.createElement(je,bs({className:ye("recharts-polar-angle-axis-tick",$k(s)),key:"tick-".concat(v.coordinate)},no(r.props,v,y)),o&&N.createElement("line",bs({className:"recharts-polar-angle-axis-tick-line"},h,b)),s&&t.renderTickItem(s,g,l?l(v.value,y):v.value))});return N.createElement(je,{className:"recharts-polar-angle-axis-ticks"},p)}},{key:"render",value:function(){var r=this.props,a=r.ticks,i=r.radius,s=r.axisLine;return i<=0||!a||!a.length?null:N.createElement(je,{className:ye("recharts-polar-angle-axis",this.props.className)},s&&this.renderAxisLine(),this.renderTicks())}}],[{key:"renderTickItem",value:function(r,a,i){var s;return N.isValidElement(r)?s=N.cloneElement(r,a):de(r)?s=r(a):s=N.createElement(ro,bs({},a,{className:"recharts-polar-angle-axis-tick-value"}),i),s}}])}(A.PureComponent);xv(Sv,"displayName","PolarAngleAxis");xv(Sv,"axisType","angleAxis");xv(Sv,"defaultProps",{type:"category",angleAxisId:0,scale:"auto",cx:0,cy:0,orientation:"outer",axisLine:!0,tickLine:!0,tickSize:8,tick:!0,hide:!1,allowDuplicatedCategory:!0});var Pve=r4,Mve=Pve(Object.getPrototypeOf,Object),Rve=Mve,Dve=Za,$ve=Rve,kve=Ja,Lve="[object Object]",zve=Function.prototype,Bve=Object.prototype,Jk=zve.toString,Ive=Bve.hasOwnProperty,Uve=Jk.call(Object);function qve(e){if(!kve(e)||Dve(e)!=Lve)return!1;var t=$ve(e);if(t===null)return!0;var n=Ive.call(t,"constructor")&&t.constructor;return typeof n=="function"&&n instanceof n&&Jk.call(n)==Uve}var Vve=qve;const Hve=ze(Vve);var Fve=Za,Gve=Ja,Kve="[object Boolean]";function Yve(e){return e===!0||e===!1||Gve(e)&&Fve(e)==Kve}var Xve=Yve;const Wve=ze(Xve);function Kf(e){"@babel/helpers - typeof";return Kf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Kf(e)}function zm(){return zm=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},zm.apply(this,arguments)}function Qve(e,t){return tge(e)||ege(e,t)||Jve(e,t)||Zve()}function Zve(){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 Jve(e,t){if(e){if(typeof e=="string")return L_(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return L_(e,t)}}function L_(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function ege(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,i,s,o=[],l=!0,c=!1;try{if(i=(n=n.call(e)).next,t!==0)for(;!(l=(r=i.call(n)).done)&&(o.push(r.value),o.length!==t);l=!0);}catch(f){c=!0,a=f}finally{try{if(!l&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(c)throw a}}return o}}function tge(e){if(Array.isArray(e))return e}function z_(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function B_(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?z_(Object(n),!0).forEach(function(r){nge(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):z_(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function nge(e,t,n){return t=rge(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function rge(e){var t=age(e,"string");return Kf(t)=="symbol"?t:t+""}function age(e,t){if(Kf(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Kf(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var I_=function(t,n,r,a,i){var s=r-a,o;return o="M ".concat(t,",").concat(n),o+="L ".concat(t+r,",").concat(n),o+="L ".concat(t+r-s/2,",").concat(n+i),o+="L ".concat(t+r-s/2-a,",").concat(n+i),o+="L ".concat(t,",").concat(n," Z"),o},ige={x:0,y:0,upperWidth:0,lowerWidth:0,height:0,isUpdateAnimationActive:!1,animationBegin:0,animationDuration:1500,animationEasing:"ease"},sge=function(t){var n=B_(B_({},ige),t),r=A.useRef(),a=A.useState(-1),i=Qve(a,2),s=i[0],o=i[1];A.useEffect(function(){if(r.current&&r.current.getTotalLength)try{var x=r.current.getTotalLength();x&&o(x)}catch{}},[]);var l=n.x,c=n.y,f=n.upperWidth,d=n.lowerWidth,h=n.height,p=n.className,v=n.animationEasing,y=n.animationDuration,b=n.animationBegin,m=n.isUpdateAnimationActive;if(l!==+l||c!==+c||f!==+f||d!==+d||h!==+h||f===0&&d===0||h===0)return null;var g=ye("recharts-trapezoid",p);return m?N.createElement(kr,{canBegin:s>0,from:{upperWidth:0,lowerWidth:0,height:h,x:l,y:c},to:{upperWidth:f,lowerWidth:d,height:h,x:l,y:c},duration:y,animationEasing:v,isActive:m},function(x){var w=x.upperWidth,S=x.lowerWidth,j=x.height,O=x.x,E=x.y;return N.createElement(kr,{canBegin:s>0,from:"0px ".concat(s===-1?1:s,"px"),to:"".concat(s,"px 0px"),attributeName:"strokeDasharray",begin:b,duration:y,easing:v},N.createElement("path",zm({},ie(n,!0),{className:g,d:I_(O,E,w,S,j),ref:r})))}):N.createElement("g",null,N.createElement("path",zm({},ie(n,!0),{className:g,d:I_(l,c,f,d,h)})))},oge=["option","shapeType","propTransformer","activeClassName","isActive"];function Yf(e){"@babel/helpers - typeof";return Yf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Yf(e)}function lge(e,t){if(e==null)return{};var n=cge(e,t),r,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)r=i[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function cge(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function U_(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function Bm(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?U_(Object(n),!0).forEach(function(r){uge(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):U_(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function uge(e,t,n){return t=fge(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function fge(e){var t=dge(e,"string");return Yf(t)=="symbol"?t:t+""}function dge(e,t){if(Yf(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Yf(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function hge(e,t){return Bm(Bm({},t),e)}function pge(e,t){return e==="symbols"}function q_(e){var t=e.shapeType,n=e.elementProps;switch(t){case"rectangle":return N.createElement($j,n);case"trapezoid":return N.createElement(sge,n);case"sector":return N.createElement(zk,n);case"symbols":if(pge(t))return N.createElement(ej,n);break;default:return null}}function mge(e){return A.isValidElement(e)?e.props:e}function eL(e){var t=e.option,n=e.shapeType,r=e.propTransformer,a=r===void 0?hge:r,i=e.activeClassName,s=i===void 0?"recharts-active-shape":i,o=e.isActive,l=lge(e,oge),c;if(A.isValidElement(t))c=A.cloneElement(t,Bm(Bm({},l),mge(t)));else if(de(t))c=t(l);else if(Hve(t)&&!Wve(t)){var f=a(t,l);c=N.createElement(q_,{shapeType:n,elementProps:f})}else{var d=l;c=N.createElement(q_,{shapeType:n,elementProps:d})}return o?N.createElement(je,{className:s},c):c}function wv(e,t){return t!=null&&"trapezoids"in e.props}function jv(e,t){return t!=null&&"sectors"in e.props}function Xf(e,t){return t!=null&&"points"in e.props}function yge(e,t){var n,r,a=e.x===(t==null||(n=t.labelViewBox)===null||n===void 0?void 0:n.x)||e.x===t.x,i=e.y===(t==null||(r=t.labelViewBox)===null||r===void 0?void 0:r.y)||e.y===t.y;return a&&i}function vge(e,t){var n=e.endAngle===t.endAngle,r=e.startAngle===t.startAngle;return n&&r}function gge(e,t){var n=e.x===t.x,r=e.y===t.y,a=e.z===t.z;return n&&r&&a}function bge(e,t){var n;return wv(e,t)?n=yge:jv(e,t)?n=vge:Xf(e,t)&&(n=gge),n}function xge(e,t){var n;return wv(e,t)?n="trapezoids":jv(e,t)?n="sectors":Xf(e,t)&&(n="points"),n}function Sge(e,t){if(wv(e,t)){var n;return(n=t.tooltipPayload)===null||n===void 0||(n=n[0])===null||n===void 0||(n=n.payload)===null||n===void 0?void 0:n.payload}if(jv(e,t)){var r;return(r=t.tooltipPayload)===null||r===void 0||(r=r[0])===null||r===void 0||(r=r.payload)===null||r===void 0?void 0:r.payload}return Xf(e,t)?t.payload:{}}function wge(e){var t=e.activeTooltipItem,n=e.graphicalItem,r=e.itemData,a=xge(n,t),i=Sge(n,t),s=r.filter(function(l,c){var f=ao(i,l),d=n.props[a].filter(function(v){var y=bge(n,t);return y(v,t)}),h=n.props[a].indexOf(d[d.length-1]),p=c===h;return f&&p}),o=r.indexOf(s[s.length-1]);return o}var ip;function tc(e){"@babel/helpers - typeof";return tc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},tc(e)}function el(){return el=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},el.apply(this,arguments)}function V_(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function Xe(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?V_(Object(n),!0).forEach(function(r){dr(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):V_(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function jge(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function H_(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,nL(r.key),r)}}function Age(e,t,n){return t&&H_(e.prototype,t),n&&H_(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Oge(e,t,n){return t=Im(t),Ege(e,tL()?Reflect.construct(t,n||[],Im(e).constructor):t.apply(e,n))}function Ege(e,t){if(t&&(tc(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Tge(e)}function Tge(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function tL(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(tL=function(){return!!e})()}function Im(e){return Im=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Im(e)}function Nge(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&i1(e,t)}function i1(e,t){return i1=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},i1(e,t)}function dr(e,t,n){return t=nL(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function nL(e){var t=_ge(e,"string");return tc(t)=="symbol"?t:t+""}function _ge(e,t){if(tc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(tc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var ti=function(e){function t(n){var r;return jge(this,t),r=Oge(this,t,[n]),dr(r,"pieRef",null),dr(r,"sectorRefs",[]),dr(r,"id",vo("recharts-pie-")),dr(r,"handleAnimationEnd",function(){var a=r.props.onAnimationEnd;r.setState({isAnimationFinished:!0}),de(a)&&a()}),dr(r,"handleAnimationStart",function(){var a=r.props.onAnimationStart;r.setState({isAnimationFinished:!1}),de(a)&&a()}),r.state={isAnimationFinished:!n.isAnimationActive,prevIsAnimationActive:n.isAnimationActive,prevAnimationId:n.animationId,sectorToFocus:0},r}return Nge(t,e),Age(t,[{key:"isActiveIndex",value:function(r){var a=this.props.activeIndex;return Array.isArray(a)?a.indexOf(r)!==-1:r===a}},{key:"hasActiveIndex",value:function(){var r=this.props.activeIndex;return Array.isArray(r)?r.length!==0:r||r===0}},{key:"renderLabels",value:function(r){var a=this.props.isAnimationActive;if(a&&!this.state.isAnimationFinished)return null;var i=this.props,s=i.label,o=i.labelLine,l=i.dataKey,c=i.valueKey,f=ie(this.props,!1),d=ie(s,!1),h=ie(o,!1),p=s&&s.offsetRadius||20,v=r.map(function(y,b){var m=(y.startAngle+y.endAngle)/2,g=Ze(y.cx,y.cy,y.outerRadius+p,m),x=Xe(Xe(Xe(Xe({},f),y),{},{stroke:"none"},d),{},{index:b,textAnchor:t.getTextAnchor(g.x,y.cx)},g),w=Xe(Xe(Xe(Xe({},f),y),{},{fill:"none",stroke:y.fill},h),{},{index:b,points:[Ze(y.cx,y.cy,y.outerRadius,m),g]}),S=l;return pe(l)&&pe(c)?S="value":pe(l)&&(S=c),N.createElement(je,{key:"label-".concat(y.startAngle,"-").concat(y.endAngle,"-").concat(y.midAngle,"-").concat(b)},o&&t.renderLabelLineItem(o,w,"line"),t.renderLabelItem(s,x,xt(y,S)))});return N.createElement(je,{className:"recharts-pie-labels"},v)}},{key:"renderSectorsStatically",value:function(r){var a=this,i=this.props,s=i.activeShape,o=i.blendStroke,l=i.inactiveShape;return r.map(function(c,f){if((c==null?void 0:c.startAngle)===0&&(c==null?void 0:c.endAngle)===0&&r.length!==1)return null;var d=a.isActiveIndex(f),h=l&&a.hasActiveIndex()?l:null,p=d?s:h,v=Xe(Xe({},c),{},{stroke:o?c.fill:c.stroke,tabIndex:-1});return N.createElement(je,el({ref:function(b){b&&!a.sectorRefs.includes(b)&&a.sectorRefs.push(b)},tabIndex:-1,className:"recharts-pie-sector"},no(a.props,c,f),{key:"sector-".concat(c==null?void 0:c.startAngle,"-").concat(c==null?void 0:c.endAngle,"-").concat(c.midAngle,"-").concat(f)}),N.createElement(eL,el({option:p,isActive:d,shapeType:"sector"},v)))})}},{key:"renderSectorsWithAnimation",value:function(){var r=this,a=this.props,i=a.sectors,s=a.isAnimationActive,o=a.animationBegin,l=a.animationDuration,c=a.animationEasing,f=a.animationId,d=this.state,h=d.prevSectors,p=d.prevIsAnimationActive;return N.createElement(kr,{begin:o,duration:l,isActive:s,easing:c,from:{t:0},to:{t:1},key:"pie-".concat(f,"-").concat(p),onAnimationStart:this.handleAnimationStart,onAnimationEnd:this.handleAnimationEnd},function(v){var y=v.t,b=[],m=i&&i[0],g=m.startAngle;return i.forEach(function(x,w){var S=h&&h[w],j=w>0?Kn(x,"paddingAngle",0):0;if(S){var O=Pt(S.endAngle-S.startAngle,x.endAngle-x.startAngle),E=Xe(Xe({},x),{},{startAngle:g+j,endAngle:g+O(y)+j});b.push(E),g=E.endAngle}else{var T=x.endAngle,_=x.startAngle,M=Pt(0,T-_),C=M(y),z=Xe(Xe({},x),{},{startAngle:g+j,endAngle:g+C+j});b.push(z),g=z.endAngle}}),N.createElement(je,null,r.renderSectorsStatically(b))})}},{key:"attachKeyboardHandlers",value:function(r){var a=this;r.onkeydown=function(i){if(!i.altKey)switch(i.key){case"ArrowLeft":{var s=++a.state.sectorToFocus%a.sectorRefs.length;a.sectorRefs[s].focus(),a.setState({sectorToFocus:s});break}case"ArrowRight":{var o=--a.state.sectorToFocus<0?a.sectorRefs.length-1:a.state.sectorToFocus%a.sectorRefs.length;a.sectorRefs[o].focus(),a.setState({sectorToFocus:o});break}case"Escape":{a.sectorRefs[a.state.sectorToFocus].blur(),a.setState({sectorToFocus:0});break}}}}},{key:"renderSectors",value:function(){var r=this.props,a=r.sectors,i=r.isAnimationActive,s=this.state.prevSectors;return i&&a&&a.length&&(!s||!ao(s,a))?this.renderSectorsWithAnimation():this.renderSectorsStatically(a)}},{key:"componentDidMount",value:function(){this.pieRef&&this.attachKeyboardHandlers(this.pieRef)}},{key:"render",value:function(){var r=this,a=this.props,i=a.hide,s=a.sectors,o=a.className,l=a.label,c=a.cx,f=a.cy,d=a.innerRadius,h=a.outerRadius,p=a.isAnimationActive,v=this.state.isAnimationFinished;if(i||!s||!s.length||!F(c)||!F(f)||!F(d)||!F(h))return null;var y=ye("recharts-pie",o);return N.createElement(je,{tabIndex:this.props.rootTabIndex,className:y,ref:function(m){r.pieRef=m}},this.renderSectors(),l&&this.renderLabels(s),Vt.renderCallByParent(this.props,null,!1),(!p||v)&&ra.renderCallByParent(this.props,s,!1))}}],[{key:"getDerivedStateFromProps",value:function(r,a){return a.prevIsAnimationActive!==r.isAnimationActive?{prevIsAnimationActive:r.isAnimationActive,prevAnimationId:r.animationId,curSectors:r.sectors,prevSectors:[],isAnimationFinished:!0}:r.isAnimationActive&&r.animationId!==a.prevAnimationId?{prevAnimationId:r.animationId,curSectors:r.sectors,prevSectors:a.curSectors,isAnimationFinished:!0}:r.sectors!==a.curSectors?{curSectors:r.sectors,isAnimationFinished:!0}:null}},{key:"getTextAnchor",value:function(r,a){return r>a?"start":r<a?"end":"middle"}},{key:"renderLabelLineItem",value:function(r,a,i){if(N.isValidElement(r))return N.cloneElement(r,a);if(de(r))return r(a);var s=ye("recharts-pie-label-line",typeof r!="boolean"?r.className:"");return N.createElement(Gs,el({},a,{key:i,type:"linear",className:s}))}},{key:"renderLabelItem",value:function(r,a,i){if(N.isValidElement(r))return N.cloneElement(r,a);var s=i;if(de(r)&&(s=r(a),N.isValidElement(s)))return s;var o=ye("recharts-pie-label-text",typeof r!="boolean"&&!de(r)?r.className:"");return N.createElement(ro,el({},a,{alignmentBaseline:"middle",className:o}),s)}}])}(A.PureComponent);ip=ti;dr(ti,"displayName","Pie");dr(ti,"defaultProps",{stroke:"#fff",fill:"#808080",legendType:"rect",cx:"50%",cy:"50%",startAngle:0,endAngle:360,innerRadius:0,outerRadius:"80%",paddingAngle:0,labelLine:!0,hide:!1,minAngle:0,isAnimationActive:!Ji.isSsr,animationBegin:400,animationDuration:1500,animationEasing:"ease",nameKey:"name",blendStroke:!1,rootTabIndex:0});dr(ti,"parseDeltaAngle",function(e,t){var n=fn(t-e),r=Math.min(Math.abs(t-e),360);return n*r});dr(ti,"getRealPieData",function(e){var t=e.data,n=e.children,r=ie(e,!1),a=Yn(n,ov);return t&&t.length?t.map(function(i,s){return Xe(Xe(Xe({payload:i},r),i),a&&a[s]&&a[s].props)}):a&&a.length?a.map(function(i){return Xe(Xe({},r),i.props)}):[]});dr(ti,"parseCoordinateOfPie",function(e,t){var n=t.top,r=t.left,a=t.width,i=t.height,s=Dk(a,i),o=r+dn(e.cx,a,a/2),l=n+dn(e.cy,i,i/2),c=dn(e.innerRadius,s,0),f=dn(e.outerRadius,s,s*.8),d=e.maxRadius||Math.sqrt(a*a+i*i)/2;return{cx:o,cy:l,innerRadius:c,outerRadius:f,maxRadius:d}});dr(ti,"getComposedData",function(e){var t=e.item,n=e.offset,r=t.type.defaultProps!==void 0?Xe(Xe({},t.type.defaultProps),t.props):t.props,a=ip.getRealPieData(r);if(!a||!a.length)return null;var i=r.cornerRadius,s=r.startAngle,o=r.endAngle,l=r.paddingAngle,c=r.dataKey,f=r.nameKey,d=r.valueKey,h=r.tooltipType,p=Math.abs(r.minAngle),v=ip.parseCoordinateOfPie(r,n),y=ip.parseDeltaAngle(s,o),b=Math.abs(y),m=c;pe(c)&&pe(d)?(Dr(!1,`Use "dataKey" to specify the value of pie,
      the props "valueKey" will be deprecated in 1.1.0`),m="value"):pe(c)&&(Dr(!1,`Use "dataKey" to specify the value of pie,
      the props "valueKey" will be deprecated in 1.1.0`),m=d);var g=a.filter(function(E){return xt(E,m,0)!==0}).length,x=(b>=360?g:g-1)*l,w=b-g*p-x,S=a.reduce(function(E,T){var _=xt(T,m,0);return E+(F(_)?_:0)},0),j;if(S>0){var O;j=a.map(function(E,T){var _=xt(E,m,0),M=xt(E,f,T),C=(F(_)?_:0)/S,z;T?z=O.endAngle+fn(y)*l*(_!==0?1:0):z=s;var L=z+fn(y)*((_!==0?p:0)+C*w),k=(z+L)/2,R=(v.innerRadius+v.outerRadius)/2,$=[{name:M,value:_,payload:E,dataKey:m,type:h}],B=Ze(v.cx,v.cy,R,k);return O=Xe(Xe(Xe({percent:C,cornerRadius:i,name:M,tooltipPayload:$,midAngle:k,middleRadius:R,tooltipPosition:B},E),v),{},{value:xt(E,m),startAngle:z,endAngle:L,payload:E,paddingAngle:fn(y)*l}),O})}return Xe(Xe({},v),{},{sectors:j,data:a})});var Cge=Math.ceil,Pge=Math.max;function Mge(e,t,n,r){for(var a=-1,i=Pge(Cge((t-e)/(n||1)),0),s=Array(i);i--;)s[r?i:++a]=e,e+=n;return s}var Rge=Mge,Dge=w4,F_=1/0,$ge=17976931348623157e292;function kge(e){if(!e)return e===0?e:0;if(e=Dge(e),e===F_||e===-F_){var t=e<0?-1:1;return t*$ge}return e===e?e:0}var rL=kge,Lge=Rge,zge=sv,cb=rL;function Bge(e){return function(t,n,r){return r&&typeof r!="number"&&zge(t,n,r)&&(n=r=void 0),t=cb(t),n===void 0?(n=t,t=0):n=cb(n),r=r===void 0?t<n?1:-1:cb(r),Lge(t,n,r,e)}}var Ige=Bge,Uge=Ige,qge=Uge(),Vge=qge;const Um=ze(Vge);function Wf(e){"@babel/helpers - typeof";return Wf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Wf(e)}function G_(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function K_(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?G_(Object(n),!0).forEach(function(r){aL(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):G_(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function aL(e,t,n){return t=Hge(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Hge(e){var t=Fge(e,"string");return Wf(t)=="symbol"?t:t+""}function Fge(e,t){if(Wf(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Wf(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var Gge=["Webkit","Moz","O","ms"],Kge=function(t,n){var r=t.replace(/(\w)/,function(i){return i.toUpperCase()}),a=Gge.reduce(function(i,s){return K_(K_({},i),{},aL({},s+r,n))},{});return a[t]=n,a};function nc(e){"@babel/helpers - typeof";return nc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},nc(e)}function qm(){return qm=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},qm.apply(this,arguments)}function Y_(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function ub(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Y_(Object(n),!0).forEach(function(r){Rn(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Y_(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Yge(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function X_(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,sL(r.key),r)}}function Xge(e,t,n){return t&&X_(e.prototype,t),n&&X_(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Wge(e,t,n){return t=Vm(t),Qge(e,iL()?Reflect.construct(t,n||[],Vm(e).constructor):t.apply(e,n))}function Qge(e,t){if(t&&(nc(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Zge(e)}function Zge(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function iL(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(iL=function(){return!!e})()}function Vm(e){return Vm=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Vm(e)}function Jge(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&s1(e,t)}function s1(e,t){return s1=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},s1(e,t)}function Rn(e,t,n){return t=sL(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function sL(e){var t=ebe(e,"string");return nc(t)=="symbol"?t:t+""}function ebe(e,t){if(nc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(nc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var tbe=function(t){var n=t.data,r=t.startIndex,a=t.endIndex,i=t.x,s=t.width,o=t.travellerWidth;if(!n||!n.length)return{};var l=n.length,c=qu().domain(Um(0,l)).range([i,i+s-o]),f=c.domain().map(function(d){return c(d)});return{isTextActive:!1,isSlideMoving:!1,isTravellerMoving:!1,isTravellerFocused:!1,startX:c(r),endX:c(a),scale:c,scaleValues:f}},W_=function(t){return t.changedTouches&&!!t.changedTouches.length},rc=function(e){function t(n){var r;return Yge(this,t),r=Wge(this,t,[n]),Rn(r,"handleDrag",function(a){r.leaveTimer&&(clearTimeout(r.leaveTimer),r.leaveTimer=null),r.state.isTravellerMoving?r.handleTravellerMove(a):r.state.isSlideMoving&&r.handleSlideDrag(a)}),Rn(r,"handleTouchMove",function(a){a.changedTouches!=null&&a.changedTouches.length>0&&r.handleDrag(a.changedTouches[0])}),Rn(r,"handleDragEnd",function(){r.setState({isTravellerMoving:!1,isSlideMoving:!1},function(){var a=r.props,i=a.endIndex,s=a.onDragEnd,o=a.startIndex;s==null||s({endIndex:i,startIndex:o})}),r.detachDragEndListener()}),Rn(r,"handleLeaveWrapper",function(){(r.state.isTravellerMoving||r.state.isSlideMoving)&&(r.leaveTimer=window.setTimeout(r.handleDragEnd,r.props.leaveTimeOut))}),Rn(r,"handleEnterSlideOrTraveller",function(){r.setState({isTextActive:!0})}),Rn(r,"handleLeaveSlideOrTraveller",function(){r.setState({isTextActive:!1})}),Rn(r,"handleSlideDragStart",function(a){var i=W_(a)?a.changedTouches[0]:a;r.setState({isTravellerMoving:!1,isSlideMoving:!0,slideMoveStartX:i.pageX}),r.attachDragEndListener()}),r.travellerDragStartHandlers={startX:r.handleTravellerDragStart.bind(r,"startX"),endX:r.handleTravellerDragStart.bind(r,"endX")},r.state={},r}return Jge(t,e),Xge(t,[{key:"componentWillUnmount",value:function(){this.leaveTimer&&(clearTimeout(this.leaveTimer),this.leaveTimer=null),this.detachDragEndListener()}},{key:"getIndex",value:function(r){var a=r.startX,i=r.endX,s=this.state.scaleValues,o=this.props,l=o.gap,c=o.data,f=c.length-1,d=Math.min(a,i),h=Math.max(a,i),p=t.getIndexInRange(s,d),v=t.getIndexInRange(s,h);return{startIndex:p-p%l,endIndex:v===f?f:v-v%l}}},{key:"getTextOfTick",value:function(r){var a=this.props,i=a.data,s=a.tickFormatter,o=a.dataKey,l=xt(i[r],o,r);return de(s)?s(l,r):l}},{key:"attachDragEndListener",value:function(){window.addEventListener("mouseup",this.handleDragEnd,!0),window.addEventListener("touchend",this.handleDragEnd,!0),window.addEventListener("mousemove",this.handleDrag,!0)}},{key:"detachDragEndListener",value:function(){window.removeEventListener("mouseup",this.handleDragEnd,!0),window.removeEventListener("touchend",this.handleDragEnd,!0),window.removeEventListener("mousemove",this.handleDrag,!0)}},{key:"handleSlideDrag",value:function(r){var a=this.state,i=a.slideMoveStartX,s=a.startX,o=a.endX,l=this.props,c=l.x,f=l.width,d=l.travellerWidth,h=l.startIndex,p=l.endIndex,v=l.onChange,y=r.pageX-i;y>0?y=Math.min(y,c+f-d-o,c+f-d-s):y<0&&(y=Math.max(y,c-s,c-o));var b=this.getIndex({startX:s+y,endX:o+y});(b.startIndex!==h||b.endIndex!==p)&&v&&v(b),this.setState({startX:s+y,endX:o+y,slideMoveStartX:r.pageX})}},{key:"handleTravellerDragStart",value:function(r,a){var i=W_(a)?a.changedTouches[0]:a;this.setState({isSlideMoving:!1,isTravellerMoving:!0,movingTravellerId:r,brushMoveStartX:i.pageX}),this.attachDragEndListener()}},{key:"handleTravellerMove",value:function(r){var a=this.state,i=a.brushMoveStartX,s=a.movingTravellerId,o=a.endX,l=a.startX,c=this.state[s],f=this.props,d=f.x,h=f.width,p=f.travellerWidth,v=f.onChange,y=f.gap,b=f.data,m={startX:this.state.startX,endX:this.state.endX},g=r.pageX-i;g>0?g=Math.min(g,d+h-p-c):g<0&&(g=Math.max(g,d-c)),m[s]=c+g;var x=this.getIndex(m),w=x.startIndex,S=x.endIndex,j=function(){var E=b.length-1;return s==="startX"&&(o>l?w%y===0:S%y===0)||o<l&&S===E||s==="endX"&&(o>l?S%y===0:w%y===0)||o>l&&S===E};this.setState(Rn(Rn({},s,c+g),"brushMoveStartX",r.pageX),function(){v&&j()&&v(x)})}},{key:"handleTravellerMoveKeyboard",value:function(r,a){var i=this,s=this.state,o=s.scaleValues,l=s.startX,c=s.endX,f=this.state[a],d=o.indexOf(f);if(d!==-1){var h=d+r;if(!(h===-1||h>=o.length)){var p=o[h];a==="startX"&&p>=c||a==="endX"&&p<=l||this.setState(Rn({},a,p),function(){i.props.onChange(i.getIndex({startX:i.state.startX,endX:i.state.endX}))})}}}},{key:"renderBackground",value:function(){var r=this.props,a=r.x,i=r.y,s=r.width,o=r.height,l=r.fill,c=r.stroke;return N.createElement("rect",{stroke:c,fill:l,x:a,y:i,width:s,height:o})}},{key:"renderPanorama",value:function(){var r=this.props,a=r.x,i=r.y,s=r.width,o=r.height,l=r.data,c=r.children,f=r.padding,d=A.Children.only(c);return d?N.cloneElement(d,{x:a,y:i,width:s,height:o,margin:f,compact:!0,data:l}):null}},{key:"renderTravellerLayer",value:function(r,a){var i,s,o=this,l=this.props,c=l.y,f=l.travellerWidth,d=l.height,h=l.traveller,p=l.ariaLabel,v=l.data,y=l.startIndex,b=l.endIndex,m=Math.max(r,this.props.x),g=ub(ub({},ie(this.props,!1)),{},{x:m,y:c,width:f,height:d}),x=p||"Min value: ".concat((i=v[y])===null||i===void 0?void 0:i.name,", Max value: ").concat((s=v[b])===null||s===void 0?void 0:s.name);return N.createElement(je,{tabIndex:0,role:"slider","aria-label":x,"aria-valuenow":r,className:"recharts-brush-traveller",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.travellerDragStartHandlers[a],onTouchStart:this.travellerDragStartHandlers[a],onKeyDown:function(S){["ArrowLeft","ArrowRight"].includes(S.key)&&(S.preventDefault(),S.stopPropagation(),o.handleTravellerMoveKeyboard(S.key==="ArrowRight"?1:-1,a))},onFocus:function(){o.setState({isTravellerFocused:!0})},onBlur:function(){o.setState({isTravellerFocused:!1})},style:{cursor:"col-resize"}},t.renderTraveller(h,g))}},{key:"renderSlide",value:function(r,a){var i=this.props,s=i.y,o=i.height,l=i.stroke,c=i.travellerWidth,f=Math.min(r,a)+c,d=Math.max(Math.abs(a-r)-c,0);return N.createElement("rect",{className:"recharts-brush-slide",onMouseEnter:this.handleEnterSlideOrTraveller,onMouseLeave:this.handleLeaveSlideOrTraveller,onMouseDown:this.handleSlideDragStart,onTouchStart:this.handleSlideDragStart,style:{cursor:"move"},stroke:"none",fill:l,fillOpacity:.2,x:f,y:s,width:d,height:o})}},{key:"renderText",value:function(){var r=this.props,a=r.startIndex,i=r.endIndex,s=r.y,o=r.height,l=r.travellerWidth,c=r.stroke,f=this.state,d=f.startX,h=f.endX,p=5,v={pointerEvents:"none",fill:c};return N.createElement(je,{className:"recharts-brush-texts"},N.createElement(ro,qm({textAnchor:"end",verticalAnchor:"middle",x:Math.min(d,h)-p,y:s+o/2},v),this.getTextOfTick(a)),N.createElement(ro,qm({textAnchor:"start",verticalAnchor:"middle",x:Math.max(d,h)+l+p,y:s+o/2},v),this.getTextOfTick(i)))}},{key:"render",value:function(){var r=this.props,a=r.data,i=r.className,s=r.children,o=r.x,l=r.y,c=r.width,f=r.height,d=r.alwaysShowText,h=this.state,p=h.startX,v=h.endX,y=h.isTextActive,b=h.isSlideMoving,m=h.isTravellerMoving,g=h.isTravellerFocused;if(!a||!a.length||!F(o)||!F(l)||!F(c)||!F(f)||c<=0||f<=0)return null;var x=ye("recharts-brush",i),w=N.Children.count(s)===1,S=Kge("userSelect","none");return N.createElement(je,{className:x,onMouseLeave:this.handleLeaveWrapper,onTouchMove:this.handleTouchMove,style:S},this.renderBackground(),w&&this.renderPanorama(),this.renderSlide(p,v),this.renderTravellerLayer(p,"startX"),this.renderTravellerLayer(v,"endX"),(y||b||m||g||d)&&this.renderText())}}],[{key:"renderDefaultTraveller",value:function(r){var a=r.x,i=r.y,s=r.width,o=r.height,l=r.stroke,c=Math.floor(i+o/2)-1;return N.createElement(N.Fragment,null,N.createElement("rect",{x:a,y:i,width:s,height:o,fill:l,stroke:"none"}),N.createElement("line",{x1:a+1,y1:c,x2:a+s-1,y2:c,fill:"none",stroke:"#fff"}),N.createElement("line",{x1:a+1,y1:c+2,x2:a+s-1,y2:c+2,fill:"none",stroke:"#fff"}))}},{key:"renderTraveller",value:function(r,a){var i;return N.isValidElement(r)?i=N.cloneElement(r,a):de(r)?i=r(a):i=t.renderDefaultTraveller(a),i}},{key:"getDerivedStateFromProps",value:function(r,a){var i=r.data,s=r.width,o=r.x,l=r.travellerWidth,c=r.updateId,f=r.startIndex,d=r.endIndex;if(i!==a.prevData||c!==a.prevUpdateId)return ub({prevData:i,prevTravellerWidth:l,prevUpdateId:c,prevX:o,prevWidth:s},i&&i.length?tbe({data:i,width:s,x:o,travellerWidth:l,startIndex:f,endIndex:d}):{scale:null,scaleValues:null});if(a.scale&&(s!==a.prevWidth||o!==a.prevX||l!==a.prevTravellerWidth)){a.scale.range([o,o+s-l]);var h=a.scale.domain().map(function(p){return a.scale(p)});return{prevData:i,prevTravellerWidth:l,prevUpdateId:c,prevX:o,prevWidth:s,startX:a.scale(r.startIndex),endX:a.scale(r.endIndex),scaleValues:h}}return null}},{key:"getIndexInRange",value:function(r,a){for(var i=r.length,s=0,o=i-1;o-s>1;){var l=Math.floor((s+o)/2);r[l]>a?o=l:s=l}return a>=r[o]?o:s}}])}(A.PureComponent);Rn(rc,"displayName","Brush");Rn(rc,"defaultProps",{height:40,travellerWidth:5,gap:1,fill:"#fff",stroke:"#666",padding:{top:1,right:1,bottom:1,left:1},leaveTimeOut:1e3,alwaysShowText:!1});var nbe=oj;function rbe(e,t){var n;return nbe(e,function(r,a,i){return n=t(r,a,i),!n}),!!n}var abe=rbe,ibe=X5,sbe=ua,obe=abe,lbe=Cn,cbe=sv;function ube(e,t,n){var r=lbe(e)?ibe:obe;return n&&cbe(e,t,n)&&(t=void 0),r(e,sbe(t))}var fbe=ube;const dbe=ze(fbe);var aa=function(t,n){var r=t.alwaysShow,a=t.ifOverflow;return r&&(a="extendDomain"),a===n},Q_=v4;function hbe(e,t,n){t=="__proto__"&&Q_?Q_(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}var pbe=hbe,mbe=pbe,ybe=m4,vbe=ua;function gbe(e,t){var n={};return t=vbe(t),ybe(e,function(r,a,i){mbe(n,a,t(r,a,i))}),n}var bbe=gbe;const xbe=ze(bbe);function Sbe(e,t){for(var n=-1,r=e==null?0:e.length;++n<r;)if(!t(e[n],n,e))return!1;return!0}var wbe=Sbe,jbe=oj;function Abe(e,t){var n=!0;return jbe(e,function(r,a,i){return n=!!t(r,a,i),n}),n}var Obe=Abe,Ebe=wbe,Tbe=Obe,Nbe=ua,_be=Cn,Cbe=sv;function Pbe(e,t,n){var r=_be(e)?Ebe:Tbe;return n&&Cbe(e,t,n)&&(t=void 0),r(e,Nbe(t))}var Mbe=Pbe;const oL=ze(Mbe);var Rbe=["x","y"];function Qf(e){"@babel/helpers - typeof";return Qf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Qf(e)}function o1(){return o1=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o1.apply(this,arguments)}function Z_(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function uu(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Z_(Object(n),!0).forEach(function(r){Dbe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Z_(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Dbe(e,t,n){return t=$be(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function $be(e){var t=kbe(e,"string");return Qf(t)=="symbol"?t:t+""}function kbe(e,t){if(Qf(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Qf(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Lbe(e,t){if(e==null)return{};var n=zbe(e,t),r,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)r=i[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function zbe(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function Bbe(e,t){var n=e.x,r=e.y,a=Lbe(e,Rbe),i="".concat(n),s=parseInt(i,10),o="".concat(r),l=parseInt(o,10),c="".concat(t.height||a.height),f=parseInt(c,10),d="".concat(t.width||a.width),h=parseInt(d,10);return uu(uu(uu(uu(uu({},t),a),s?{x:s}:{}),l?{y:l}:{}),{},{height:f,width:h,name:t.name,radius:t.radius})}function J_(e){return N.createElement(eL,o1({shapeType:"rectangle",propTransformer:Bbe,activeClassName:"recharts-active-bar"},e))}var Ibe=function(t){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0;return function(r,a){if(typeof t=="number")return t;var i=F(r)||lZ(r);return i?t(r,a):(i||so(),n)}},Ube=["value","background"],lL;function ac(e){"@babel/helpers - typeof";return ac=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ac(e)}function qbe(e,t){if(e==null)return{};var n=Vbe(e,t),r,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)r=i[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Vbe(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function Hm(){return Hm=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Hm.apply(this,arguments)}function eC(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function jt(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?eC(Object(n),!0).forEach(function(r){Ci(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):eC(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Hbe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function tC(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,uL(r.key),r)}}function Fbe(e,t,n){return t&&tC(e.prototype,t),n&&tC(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Gbe(e,t,n){return t=Fm(t),Kbe(e,cL()?Reflect.construct(t,n||[],Fm(e).constructor):t.apply(e,n))}function Kbe(e,t){if(t&&(ac(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Ybe(e)}function Ybe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function cL(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(cL=function(){return!!e})()}function Fm(e){return Fm=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Fm(e)}function Xbe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&l1(e,t)}function l1(e,t){return l1=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},l1(e,t)}function Ci(e,t,n){return t=uL(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function uL(e){var t=Wbe(e,"string");return ac(t)=="symbol"?t:t+""}function Wbe(e,t){if(ac(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(ac(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var So=function(e){function t(){var n;Hbe(this,t);for(var r=arguments.length,a=new Array(r),i=0;i<r;i++)a[i]=arguments[i];return n=Gbe(this,t,[].concat(a)),Ci(n,"state",{isAnimationFinished:!1}),Ci(n,"id",vo("recharts-bar-")),Ci(n,"handleAnimationEnd",function(){var s=n.props.onAnimationEnd;n.setState({isAnimationFinished:!0}),s&&s()}),Ci(n,"handleAnimationStart",function(){var s=n.props.onAnimationStart;n.setState({isAnimationFinished:!1}),s&&s()}),n}return Xbe(t,e),Fbe(t,[{key:"renderRectanglesStatically",value:function(r){var a=this,i=this.props,s=i.shape,o=i.dataKey,l=i.activeIndex,c=i.activeBar,f=ie(this.props,!1);return r&&r.map(function(d,h){var p=h===l,v=p?c:s,y=jt(jt(jt({},f),d),{},{isActive:p,option:v,index:h,dataKey:o,onAnimationStart:a.handleAnimationStart,onAnimationEnd:a.handleAnimationEnd});return N.createElement(je,Hm({className:"recharts-bar-rectangle"},no(a.props,d,h),{key:"rectangle-".concat(d==null?void 0:d.x,"-").concat(d==null?void 0:d.y,"-").concat(d==null?void 0:d.value,"-").concat(h)}),N.createElement(J_,y))})}},{key:"renderRectanglesWithAnimation",value:function(){var r=this,a=this.props,i=a.data,s=a.layout,o=a.isAnimationActive,l=a.animationBegin,c=a.animationDuration,f=a.animationEasing,d=a.animationId,h=this.state.prevData;return N.createElement(kr,{begin:l,duration:c,isActive:o,easing:f,from:{t:0},to:{t:1},key:"bar-".concat(d),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(p){var v=p.t,y=i.map(function(b,m){var g=h&&h[m];if(g){var x=Pt(g.x,b.x),w=Pt(g.y,b.y),S=Pt(g.width,b.width),j=Pt(g.height,b.height);return jt(jt({},b),{},{x:x(v),y:w(v),width:S(v),height:j(v)})}if(s==="horizontal"){var O=Pt(0,b.height),E=O(v);return jt(jt({},b),{},{y:b.y+b.height-E,height:E})}var T=Pt(0,b.width),_=T(v);return jt(jt({},b),{},{width:_})});return N.createElement(je,null,r.renderRectanglesStatically(y))})}},{key:"renderRectangles",value:function(){var r=this.props,a=r.data,i=r.isAnimationActive,s=this.state.prevData;return i&&a&&a.length&&(!s||!ao(s,a))?this.renderRectanglesWithAnimation():this.renderRectanglesStatically(a)}},{key:"renderBackground",value:function(){var r=this,a=this.props,i=a.data,s=a.dataKey,o=a.activeIndex,l=ie(this.props.background,!1);return i.map(function(c,f){c.value;var d=c.background,h=qbe(c,Ube);if(!d)return null;var p=jt(jt(jt(jt(jt({},h),{},{fill:"#eee"},d),l),no(r.props,c,f)),{},{onAnimationStart:r.handleAnimationStart,onAnimationEnd:r.handleAnimationEnd,dataKey:s,index:f,className:"recharts-bar-background-rectangle"});return N.createElement(J_,Hm({key:"background-bar-".concat(f),option:r.props.background,isActive:f===o},p))})}},{key:"renderErrorBar",value:function(r,a){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var i=this.props,s=i.data,o=i.xAxis,l=i.yAxis,c=i.layout,f=i.children,d=Yn(f,zd);if(!d)return null;var h=c==="vertical"?s[0].height/2:s[0].width/2,p=function(b,m){var g=Array.isArray(b.value)?b.value[1]:b.value;return{x:b.x,y:b.y,value:g,errorVal:xt(b,m)}},v={clipPath:r?"url(#clipPath-".concat(a,")"):null};return N.createElement(je,v,d.map(function(y){return N.cloneElement(y,{key:"error-bar-".concat(a,"-").concat(y.props.dataKey),data:s,xAxis:o,yAxis:l,layout:c,offset:h,dataPointFormatter:p})}))}},{key:"render",value:function(){var r=this.props,a=r.hide,i=r.data,s=r.className,o=r.xAxis,l=r.yAxis,c=r.left,f=r.top,d=r.width,h=r.height,p=r.isAnimationActive,v=r.background,y=r.id;if(a||!i||!i.length)return null;var b=this.state.isAnimationFinished,m=ye("recharts-bar",s),g=o&&o.allowDataOverflow,x=l&&l.allowDataOverflow,w=g||x,S=pe(y)?this.id:y;return N.createElement(je,{className:m},g||x?N.createElement("defs",null,N.createElement("clipPath",{id:"clipPath-".concat(S)},N.createElement("rect",{x:g?c:c-d/2,y:x?f:f-h/2,width:g?d:d*2,height:x?h:h*2}))):null,N.createElement(je,{className:"recharts-bar-rectangles",clipPath:w?"url(#clipPath-".concat(S,")"):null},v?this.renderBackground():null,this.renderRectangles()),this.renderErrorBar(w,S),(!p||b)&&ra.renderCallByParent(this.props,i))}}],[{key:"getDerivedStateFromProps",value:function(r,a){return r.animationId!==a.prevAnimationId?{prevAnimationId:r.animationId,curData:r.data,prevData:a.curData}:r.data!==a.curData?{curData:r.data}:null}}])}(A.PureComponent);lL=So;Ci(So,"displayName","Bar");Ci(So,"defaultProps",{xAxisId:0,yAxisId:0,legendType:"rect",minPointSize:0,hide:!1,data:[],layout:"vertical",activeBar:!1,isAnimationActive:!Ji.isSsr,animationBegin:0,animationDuration:400,animationEasing:"ease"});Ci(So,"getComposedData",function(e){var t=e.props,n=e.item,r=e.barPosition,a=e.bandSize,i=e.xAxis,s=e.yAxis,o=e.xAxisTicks,l=e.yAxisTicks,c=e.stackedData,f=e.dataStartIndex,d=e.displayedData,h=e.offset,p=Ehe(r,n);if(!p)return null;var v=t.layout,y=n.type.defaultProps,b=y!==void 0?jt(jt({},y),n.props):n.props,m=b.dataKey,g=b.children,x=b.minPointSize,w=v==="horizontal"?s:i,S=c?w.scale.domain():null,j=Rhe({numericAxis:w}),O=Yn(g,ov),E=d.map(function(T,_){var M,C,z,L,k,R;c?M=The(c[f+_],S):(M=xt(T,m),Array.isArray(M)||(M=[j,M]));var $=Ibe(x,lL.defaultProps.minPointSize)(M[1],_);if(v==="horizontal"){var B,V=[s.scale(M[0]),s.scale(M[1])],H=V[0],Q=V[1];C=KN({axis:i,ticks:o,bandSize:a,offset:p.offset,entry:T,index:_}),z=(B=Q??H)!==null&&B!==void 0?B:void 0,L=p.size;var Y=H-Q;if(k=Number.isNaN(Y)?0:Y,R={x:C,y:s.y,width:L,height:s.height},Math.abs($)>0&&Math.abs(k)<Math.abs($)){var re=fn(k||$)*(Math.abs($)-Math.abs(k));z-=re,k+=re}}else{var ee=[i.scale(M[0]),i.scale(M[1])],be=ee[0],Z=ee[1];if(C=be,z=KN({axis:s,ticks:l,bandSize:a,offset:p.offset,entry:T,index:_}),L=Z-be,k=p.size,R={x:i.x,y:z,width:i.width,height:k},Math.abs($)>0&&Math.abs(L)<Math.abs($)){var it=fn(L||$)*(Math.abs($)-Math.abs(L));L+=it}}return jt(jt(jt({},T),{},{x:C,y:z,width:L,height:k,value:c?M:M[1],payload:T,background:R},O&&O[_]&&O[_].props),{},{tooltipPayload:[Mk(n,T)],tooltipPosition:{x:C+L/2,y:z+k/2}})});return jt({data:E,layout:v},h)});function Zf(e){"@babel/helpers - typeof";return Zf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Zf(e)}function Qbe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function nC(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,fL(r.key),r)}}function Zbe(e,t,n){return t&&nC(e.prototype,t),n&&nC(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function rC(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function Cr(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?rC(Object(n),!0).forEach(function(r){Av(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):rC(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Av(e,t,n){return t=fL(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function fL(e){var t=Jbe(e,"string");return Zf(t)=="symbol"?t:t+""}function Jbe(e,t){if(Zf(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Zf(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var kj=function(t,n,r,a,i){var s=t.width,o=t.height,l=t.layout,c=t.children,f=Object.keys(n),d={left:r.left,leftMirror:r.left,right:s-r.right,rightMirror:s-r.right,top:r.top,topMirror:r.top,bottom:o-r.bottom,bottomMirror:o-r.bottom},h=!!$n(c,So);return f.reduce(function(p,v){var y=n[v],b=y.orientation,m=y.domain,g=y.padding,x=g===void 0?{}:g,w=y.mirror,S=y.reversed,j="".concat(b).concat(w?"Mirror":""),O,E,T,_,M;if(y.type==="number"&&(y.padding==="gap"||y.padding==="no-gap")){var C=m[1]-m[0],z=1/0,L=y.categoricalDomain.sort(fZ);if(L.forEach(function(ee,be){be>0&&(z=Math.min((ee||0)-(L[be-1]||0),z))}),Number.isFinite(z)){var k=z/C,R=y.layout==="vertical"?r.height:r.width;if(y.padding==="gap"&&(O=k*R/2),y.padding==="no-gap"){var $=dn(t.barCategoryGap,k*R),B=k*R/2;O=B-$-(B-$)/R*$}}}a==="xAxis"?E=[r.left+(x.left||0)+(O||0),r.left+r.width-(x.right||0)-(O||0)]:a==="yAxis"?E=l==="horizontal"?[r.top+r.height-(x.bottom||0),r.top+(x.top||0)]:[r.top+(x.top||0)+(O||0),r.top+r.height-(x.bottom||0)-(O||0)]:E=y.range,S&&(E=[E[1],E[0]]);var V=Nk(y,i,h),H=V.scale,Q=V.realScaleType;H.domain(m).range(E),_k(H);var Y=Ck(H,Cr(Cr({},y),{},{realScaleType:Q}));a==="xAxis"?(M=b==="top"&&!w||b==="bottom"&&w,T=r.left,_=d[j]-M*y.height):a==="yAxis"&&(M=b==="left"&&!w||b==="right"&&w,T=d[j]-M*y.width,_=r.top);var re=Cr(Cr(Cr({},y),Y),{},{realScaleType:Q,x:T,y:_,scale:H,width:a==="xAxis"?r.width:y.width,height:a==="yAxis"?r.height:y.height});return re.bandSize=Nm(re,Y),!y.hide&&a==="xAxis"?d[j]+=(M?-1:1)*re.height:y.hide||(d[j]+=(M?-1:1)*re.width),Cr(Cr({},p),{},Av({},v,re))},{})},dL=function(t,n){var r=t.x,a=t.y,i=n.x,s=n.y;return{x:Math.min(r,i),y:Math.min(a,s),width:Math.abs(i-r),height:Math.abs(s-a)}},e0e=function(t){var n=t.x1,r=t.y1,a=t.x2,i=t.y2;return dL({x:n,y:r},{x:a,y:i})},hL=function(){function e(t){Qbe(this,e),this.scale=t}return Zbe(e,[{key:"domain",get:function(){return this.scale.domain}},{key:"range",get:function(){return this.scale.range}},{key:"rangeMin",get:function(){return this.range()[0]}},{key:"rangeMax",get:function(){return this.range()[1]}},{key:"bandwidth",get:function(){return this.scale.bandwidth}},{key:"apply",value:function(n){var r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},a=r.bandAware,i=r.position;if(n!==void 0){if(i)switch(i){case"start":return this.scale(n);case"middle":{var s=this.bandwidth?this.bandwidth()/2:0;return this.scale(n)+s}case"end":{var o=this.bandwidth?this.bandwidth():0;return this.scale(n)+o}default:return this.scale(n)}if(a){var l=this.bandwidth?this.bandwidth()/2:0;return this.scale(n)+l}return this.scale(n)}}},{key:"isInRange",value:function(n){var r=this.range(),a=r[0],i=r[r.length-1];return a<=i?n>=a&&n<=i:n>=i&&n<=a}}],[{key:"create",value:function(n){return new e(n)}}])}();Av(hL,"EPS",1e-4);var Lj=function(t){var n=Object.keys(t).reduce(function(r,a){return Cr(Cr({},r),{},Av({},a,hL.create(t[a])))},{});return Cr(Cr({},n),{},{apply:function(a){var i=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},s=i.bandAware,o=i.position;return xbe(a,function(l,c){return n[c].apply(l,{bandAware:s,position:o})})},isInRange:function(a){return oL(a,function(i,s){return n[s].isInRange(i)})}})};function t0e(e){return(e%180+180)%180}var n0e=function(t){var n=t.width,r=t.height,a=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,i=t0e(a),s=i*Math.PI/180,o=Math.atan(r/n),l=s>o&&s<Math.PI-o?r/Math.sin(s):n/Math.cos(s);return Math.abs(l)},r0e=ua,a0e=Rd,i0e=av;function s0e(e){return function(t,n,r){var a=Object(t);if(!a0e(t)){var i=r0e(n);t=i0e(t),n=function(o){return i(a[o],o,a)}}var s=e(t,n,r);return s>-1?a[i?t[s]:s]:void 0}}var o0e=s0e,l0e=rL;function c0e(e){var t=l0e(e),n=t%1;return t===t?n?t-n:t:0}var u0e=c0e,f0e=c4,d0e=ua,h0e=u0e,p0e=Math.max;function m0e(e,t,n){var r=e==null?0:e.length;if(!r)return-1;var a=n==null?0:h0e(n);return a<0&&(a=p0e(r+a,0)),f0e(e,d0e(t),a)}var y0e=m0e,v0e=o0e,g0e=y0e,b0e=v0e(g0e),x0e=b0e;const S0e=ze(x0e);var w0e=pQ(function(e){return{x:e.left,y:e.top,width:e.width,height:e.height}},function(e){return["l",e.left,"t",e.top,"w",e.width,"h",e.height].join("")}),zj=A.createContext(void 0),Bj=A.createContext(void 0),pL=A.createContext(void 0),mL=A.createContext({}),yL=A.createContext(void 0),vL=A.createContext(0),gL=A.createContext(0),aC=function(t){var n=t.state,r=n.xAxisMap,a=n.yAxisMap,i=n.offset,s=t.clipPathId,o=t.children,l=t.width,c=t.height,f=w0e(i);return N.createElement(zj.Provider,{value:r},N.createElement(Bj.Provider,{value:a},N.createElement(mL.Provider,{value:i},N.createElement(pL.Provider,{value:f},N.createElement(yL.Provider,{value:s},N.createElement(vL.Provider,{value:c},N.createElement(gL.Provider,{value:l},o)))))))},j0e=function(){return A.useContext(yL)},bL=function(t){var n=A.useContext(zj);n==null&&so();var r=n[t];return r==null&&so(),r},A0e=function(){var t=A.useContext(zj);return mi(t)},O0e=function(){var t=A.useContext(Bj),n=S0e(t,function(r){return oL(r.domain,Number.isFinite)});return n||mi(t)},xL=function(t){var n=A.useContext(Bj);n==null&&so();var r=n[t];return r==null&&so(),r},E0e=function(){var t=A.useContext(pL);return t},T0e=function(){return A.useContext(mL)},Ij=function(){return A.useContext(gL)},Uj=function(){return A.useContext(vL)};function ic(e){"@babel/helpers - typeof";return ic=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ic(e)}function N0e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _0e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,wL(r.key),r)}}function C0e(e,t,n){return t&&_0e(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function P0e(e,t,n){return t=Gm(t),M0e(e,SL()?Reflect.construct(t,n||[],Gm(e).constructor):t.apply(e,n))}function M0e(e,t){if(t&&(ic(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return R0e(e)}function R0e(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function SL(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(SL=function(){return!!e})()}function Gm(e){return Gm=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Gm(e)}function D0e(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&c1(e,t)}function c1(e,t){return c1=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},c1(e,t)}function iC(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function sC(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?iC(Object(n),!0).forEach(function(r){qj(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):iC(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function qj(e,t,n){return t=wL(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function wL(e){var t=$0e(e,"string");return ic(t)=="symbol"?t:t+""}function $0e(e,t){if(ic(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(ic(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function k0e(e,t){return I0e(e)||B0e(e,t)||z0e(e,t)||L0e()}function L0e(){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 z0e(e,t){if(e){if(typeof e=="string")return oC(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return oC(e,t)}}function oC(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function B0e(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,i,s,o=[],l=!0,c=!1;try{if(i=(n=n.call(e)).next,t!==0)for(;!(l=(r=i.call(n)).done)&&(o.push(r.value),o.length!==t);l=!0);}catch(f){c=!0,a=f}finally{try{if(!l&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(c)throw a}}return o}}function I0e(e){if(Array.isArray(e))return e}function u1(){return u1=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},u1.apply(this,arguments)}var U0e=function(t,n){var r;return N.isValidElement(t)?r=N.cloneElement(t,n):de(t)?r=t(n):r=N.createElement("line",u1({},n,{className:"recharts-reference-line-line"})),r},q0e=function(t,n,r,a,i,s,o,l,c){var f=i.x,d=i.y,h=i.width,p=i.height;if(r){var v=c.y,y=t.y.apply(v,{position:s});if(aa(c,"discard")&&!t.y.isInRange(y))return null;var b=[{x:f+h,y},{x:f,y}];return l==="left"?b.reverse():b}if(n){var m=c.x,g=t.x.apply(m,{position:s});if(aa(c,"discard")&&!t.x.isInRange(g))return null;var x=[{x:g,y:d+p},{x:g,y:d}];return o==="top"?x.reverse():x}if(a){var w=c.segment,S=w.map(function(j){return t.apply(j,{position:s})});return aa(c,"discard")&&dbe(S,function(j){return!t.isInRange(j)})?null:S}return null};function V0e(e){var t=e.x,n=e.y,r=e.segment,a=e.xAxisId,i=e.yAxisId,s=e.shape,o=e.className,l=e.alwaysShow,c=j0e(),f=bL(a),d=xL(i),h=E0e();if(!c||!h)return null;Dr(l===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var p=Lj({x:f.scale,y:d.scale}),v=Dt(t),y=Dt(n),b=r&&r.length===2,m=q0e(p,v,y,b,h,e.position,f.orientation,d.orientation,e);if(!m)return null;var g=k0e(m,2),x=g[0],w=x.x,S=x.y,j=g[1],O=j.x,E=j.y,T=aa(e,"hidden")?"url(#".concat(c,")"):void 0,_=sC(sC({clipPath:T},ie(e,!0)),{},{x1:w,y1:S,x2:O,y2:E});return N.createElement(je,{className:ye("recharts-reference-line",o)},U0e(s,_),Vt.renderCallByParent(e,e0e({x1:w,y1:S,x2:O,y2:E})))}var Vj=function(e){function t(){return N0e(this,t),P0e(this,t,arguments)}return D0e(t,e),C0e(t,[{key:"render",value:function(){return N.createElement(V0e,this.props)}}])}(N.Component);qj(Vj,"displayName","ReferenceLine");qj(Vj,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,fill:"none",stroke:"#ccc",fillOpacity:1,strokeWidth:1,position:"middle"});function f1(){return f1=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},f1.apply(this,arguments)}function sc(e){"@babel/helpers - typeof";return sc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},sc(e)}function lC(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function cC(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?lC(Object(n),!0).forEach(function(r){Ov(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):lC(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function H0e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function F0e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,AL(r.key),r)}}function G0e(e,t,n){return t&&F0e(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function K0e(e,t,n){return t=Km(t),Y0e(e,jL()?Reflect.construct(t,n||[],Km(e).constructor):t.apply(e,n))}function Y0e(e,t){if(t&&(sc(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return X0e(e)}function X0e(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function jL(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(jL=function(){return!!e})()}function Km(e){return Km=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Km(e)}function W0e(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&d1(e,t)}function d1(e,t){return d1=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},d1(e,t)}function Ov(e,t,n){return t=AL(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function AL(e){var t=Q0e(e,"string");return sc(t)=="symbol"?t:t+""}function Q0e(e,t){if(sc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(sc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Z0e=function(t){var n=t.x,r=t.y,a=t.xAxis,i=t.yAxis,s=Lj({x:a.scale,y:i.scale}),o=s.apply({x:n,y:r},{bandAware:!0});return aa(t,"discard")&&!s.isInRange(o)?null:o},Ev=function(e){function t(){return H0e(this,t),K0e(this,t,arguments)}return W0e(t,e),G0e(t,[{key:"render",value:function(){var r=this.props,a=r.x,i=r.y,s=r.r,o=r.alwaysShow,l=r.clipPathId,c=Dt(a),f=Dt(i);if(Dr(o===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.'),!c||!f)return null;var d=Z0e(this.props);if(!d)return null;var h=d.x,p=d.y,v=this.props,y=v.shape,b=v.className,m=aa(this.props,"hidden")?"url(#".concat(l,")"):void 0,g=cC(cC({clipPath:m},ie(this.props,!0)),{},{cx:h,cy:p});return N.createElement(je,{className:ye("recharts-reference-dot",b)},t.renderDot(y,g),Vt.renderCallByParent(this.props,{x:h-s,y:p-s,width:2*s,height:2*s}))}}])}(N.Component);Ov(Ev,"displayName","ReferenceDot");Ov(Ev,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#fff",stroke:"#ccc",fillOpacity:1,strokeWidth:1});Ov(Ev,"renderDot",function(e,t){var n;return N.isValidElement(e)?n=N.cloneElement(e,t):de(e)?n=e(t):n=N.createElement(Bd,f1({},t,{cx:t.cx,cy:t.cy,className:"recharts-reference-dot-dot"})),n});function h1(){return h1=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},h1.apply(this,arguments)}function oc(e){"@babel/helpers - typeof";return oc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},oc(e)}function uC(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function fC(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?uC(Object(n),!0).forEach(function(r){Tv(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):uC(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function J0e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function exe(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,EL(r.key),r)}}function txe(e,t,n){return t&&exe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function nxe(e,t,n){return t=Ym(t),rxe(e,OL()?Reflect.construct(t,n||[],Ym(e).constructor):t.apply(e,n))}function rxe(e,t){if(t&&(oc(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return axe(e)}function axe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function OL(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(OL=function(){return!!e})()}function Ym(e){return Ym=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Ym(e)}function ixe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&p1(e,t)}function p1(e,t){return p1=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},p1(e,t)}function Tv(e,t,n){return t=EL(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function EL(e){var t=sxe(e,"string");return oc(t)=="symbol"?t:t+""}function sxe(e,t){if(oc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(oc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var oxe=function(t,n,r,a,i){var s=i.x1,o=i.x2,l=i.y1,c=i.y2,f=i.xAxis,d=i.yAxis;if(!f||!d)return null;var h=Lj({x:f.scale,y:d.scale}),p={x:t?h.x.apply(s,{position:"start"}):h.x.rangeMin,y:r?h.y.apply(l,{position:"start"}):h.y.rangeMin},v={x:n?h.x.apply(o,{position:"end"}):h.x.rangeMax,y:a?h.y.apply(c,{position:"end"}):h.y.rangeMax};return aa(i,"discard")&&(!h.isInRange(p)||!h.isInRange(v))?null:dL(p,v)},Nv=function(e){function t(){return J0e(this,t),nxe(this,t,arguments)}return ixe(t,e),txe(t,[{key:"render",value:function(){var r=this.props,a=r.x1,i=r.x2,s=r.y1,o=r.y2,l=r.className,c=r.alwaysShow,f=r.clipPathId;Dr(c===void 0,'The alwaysShow prop is deprecated. Please use ifOverflow="extendDomain" instead.');var d=Dt(a),h=Dt(i),p=Dt(s),v=Dt(o),y=this.props.shape;if(!d&&!h&&!p&&!v&&!y)return null;var b=oxe(d,h,p,v,this.props);if(!b&&!y)return null;var m=aa(this.props,"hidden")?"url(#".concat(f,")"):void 0;return N.createElement(je,{className:ye("recharts-reference-area",l)},t.renderRect(y,fC(fC({clipPath:m},ie(this.props,!0)),b)),Vt.renderCallByParent(this.props,b))}}])}(N.Component);Tv(Nv,"displayName","ReferenceArea");Tv(Nv,"defaultProps",{isFront:!1,ifOverflow:"discard",xAxisId:0,yAxisId:0,r:10,fill:"#ccc",fillOpacity:.5,stroke:"none",strokeWidth:1});Tv(Nv,"renderRect",function(e,t){var n;return N.isValidElement(e)?n=N.cloneElement(e,t):de(e)?n=e(t):n=N.createElement($j,h1({},t,{className:"recharts-reference-area-rect"})),n});function TL(e,t,n){if(t<1)return[];if(t===1&&n===void 0)return e;for(var r=[],a=0;a<e.length;a+=t)r.push(e[a]);return r}function lxe(e,t,n){var r={width:e.width+t.width,height:e.height+t.height};return n0e(r,n)}function cxe(e,t,n){var r=n==="width",a=e.x,i=e.y,s=e.width,o=e.height;return t===1?{start:r?a:i,end:r?a+s:i+o}:{start:r?a+s:i+o,end:r?a:i}}function Xm(e,t,n,r,a){if(e*t<e*r||e*t>e*a)return!1;var i=n();return e*(t-e*i/2-r)>=0&&e*(t+e*i/2-a)<=0}function uxe(e,t){return TL(e,t+1)}function fxe(e,t,n,r,a){for(var i=(r||[]).slice(),s=t.start,o=t.end,l=0,c=1,f=s,d=function(){var v=r==null?void 0:r[l];if(v===void 0)return{v:TL(r,c)};var y=l,b,m=function(){return b===void 0&&(b=n(v,y)),b},g=v.coordinate,x=l===0||Xm(e,g,m,f,o);x||(l=0,f=s,c+=1),x&&(f=g+e*(m()/2+a),l+=c)},h;c<=i.length;)if(h=d(),h)return h.v;return[]}function Jf(e){"@babel/helpers - typeof";return Jf=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Jf(e)}function dC(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function an(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?dC(Object(n),!0).forEach(function(r){dxe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):dC(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function dxe(e,t,n){return t=hxe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function hxe(e){var t=pxe(e,"string");return Jf(t)=="symbol"?t:t+""}function pxe(e,t){if(Jf(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(Jf(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function mxe(e,t,n,r,a){for(var i=(r||[]).slice(),s=i.length,o=t.start,l=t.end,c=function(h){var p=i[h],v,y=function(){return v===void 0&&(v=n(p,h)),v};if(h===s-1){var b=e*(p.coordinate+e*y()/2-l);i[h]=p=an(an({},p),{},{tickCoord:b>0?p.coordinate-b*e:p.coordinate})}else i[h]=p=an(an({},p),{},{tickCoord:p.coordinate});var m=Xm(e,p.tickCoord,y,o,l);m&&(l=p.tickCoord-e*(y()/2+a),i[h]=an(an({},p),{},{isShow:!0}))},f=s-1;f>=0;f--)c(f);return i}function yxe(e,t,n,r,a,i){var s=(r||[]).slice(),o=s.length,l=t.start,c=t.end;if(i){var f=r[o-1],d=n(f,o-1),h=e*(f.coordinate+e*d/2-c);s[o-1]=f=an(an({},f),{},{tickCoord:h>0?f.coordinate-h*e:f.coordinate});var p=Xm(e,f.tickCoord,function(){return d},l,c);p&&(c=f.tickCoord-e*(d/2+a),s[o-1]=an(an({},f),{},{isShow:!0}))}for(var v=i?o-1:o,y=function(g){var x=s[g],w,S=function(){return w===void 0&&(w=n(x,g)),w};if(g===0){var j=e*(x.coordinate-e*S()/2-l);s[g]=x=an(an({},x),{},{tickCoord:j<0?x.coordinate-j*e:x.coordinate})}else s[g]=x=an(an({},x),{},{tickCoord:x.coordinate});var O=Xm(e,x.tickCoord,S,l,c);O&&(l=x.tickCoord+e*(S()/2+a),s[g]=an(an({},x),{},{isShow:!0}))},b=0;b<v;b++)y(b);return s}function Hj(e,t,n){var r=e.tick,a=e.ticks,i=e.viewBox,s=e.minTickGap,o=e.orientation,l=e.interval,c=e.tickFormatter,f=e.unit,d=e.angle;if(!a||!a.length||!r)return[];if(F(l)||Ji.isSsr)return uxe(a,typeof l=="number"&&F(l)?l:0);var h=[],p=o==="top"||o==="bottom"?"width":"height",v=f&&p==="width"?Uu(f,{fontSize:t,letterSpacing:n}):{width:0,height:0},y=function(x,w){var S=de(c)?c(x.value,w):x.value;return p==="width"?lxe(Uu(S,{fontSize:t,letterSpacing:n}),v,d):Uu(S,{fontSize:t,letterSpacing:n})[p]},b=a.length>=2?fn(a[1].coordinate-a[0].coordinate):1,m=cxe(i,b,p);return l==="equidistantPreserveStart"?fxe(b,m,y,a,s):(l==="preserveStart"||l==="preserveStartEnd"?h=yxe(b,m,y,a,s,l==="preserveStartEnd"):h=mxe(b,m,y,a,s),h.filter(function(g){return g.isShow}))}var vxe=["viewBox"],gxe=["viewBox"],bxe=["ticks"];function lc(e){"@babel/helpers - typeof";return lc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},lc(e)}function tl(){return tl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},tl.apply(this,arguments)}function hC(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function _t(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?hC(Object(n),!0).forEach(function(r){Fj(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):hC(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function fb(e,t){if(e==null)return{};var n=xxe(e,t),r,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)r=i[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function xxe(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function Sxe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function pC(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,_L(r.key),r)}}function wxe(e,t,n){return t&&pC(e.prototype,t),n&&pC(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function jxe(e,t,n){return t=Wm(t),Axe(e,NL()?Reflect.construct(t,n||[],Wm(e).constructor):t.apply(e,n))}function Axe(e,t){if(t&&(lc(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Oxe(e)}function Oxe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function NL(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(NL=function(){return!!e})()}function Wm(e){return Wm=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Wm(e)}function Exe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&m1(e,t)}function m1(e,t){return m1=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},m1(e,t)}function Fj(e,t,n){return t=_L(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function _L(e){var t=Txe(e,"string");return lc(t)=="symbol"?t:t+""}function Txe(e,t){if(lc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(lc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var qc=function(e){function t(n){var r;return Sxe(this,t),r=jxe(this,t,[n]),r.state={fontSize:"",letterSpacing:""},r}return Exe(t,e),wxe(t,[{key:"shouldComponentUpdate",value:function(r,a){var i=r.viewBox,s=fb(r,vxe),o=this.props,l=o.viewBox,c=fb(o,gxe);return!fl(i,l)||!fl(s,c)||!fl(a,this.state)}},{key:"componentDidMount",value:function(){var r=this.layerReference;if(r){var a=r.getElementsByClassName("recharts-cartesian-axis-tick-value")[0];a&&this.setState({fontSize:window.getComputedStyle(a).fontSize,letterSpacing:window.getComputedStyle(a).letterSpacing})}}},{key:"getTickLineCoord",value:function(r){var a=this.props,i=a.x,s=a.y,o=a.width,l=a.height,c=a.orientation,f=a.tickSize,d=a.mirror,h=a.tickMargin,p,v,y,b,m,g,x=d?-1:1,w=r.tickSize||f,S=F(r.tickCoord)?r.tickCoord:r.coordinate;switch(c){case"top":p=v=r.coordinate,b=s+ +!d*l,y=b-x*w,g=y-x*h,m=S;break;case"left":y=b=r.coordinate,v=i+ +!d*o,p=v-x*w,m=p-x*h,g=S;break;case"right":y=b=r.coordinate,v=i+ +d*o,p=v+x*w,m=p+x*h,g=S;break;default:p=v=r.coordinate,b=s+ +d*l,y=b+x*w,g=y+x*h,m=S;break}return{line:{x1:p,y1:y,x2:v,y2:b},tick:{x:m,y:g}}}},{key:"getTickTextAnchor",value:function(){var r=this.props,a=r.orientation,i=r.mirror,s;switch(a){case"left":s=i?"start":"end";break;case"right":s=i?"end":"start";break;default:s="middle";break}return s}},{key:"getTickVerticalAnchor",value:function(){var r=this.props,a=r.orientation,i=r.mirror,s="end";switch(a){case"left":case"right":s="middle";break;case"top":s=i?"start":"end";break;default:s=i?"end":"start";break}return s}},{key:"renderAxisLine",value:function(){var r=this.props,a=r.x,i=r.y,s=r.width,o=r.height,l=r.orientation,c=r.mirror,f=r.axisLine,d=_t(_t(_t({},ie(this.props,!1)),ie(f,!1)),{},{fill:"none"});if(l==="top"||l==="bottom"){var h=+(l==="top"&&!c||l==="bottom"&&c);d=_t(_t({},d),{},{x1:a,y1:i+h*o,x2:a+s,y2:i+h*o})}else{var p=+(l==="left"&&!c||l==="right"&&c);d=_t(_t({},d),{},{x1:a+p*s,y1:i,x2:a+p*s,y2:i+o})}return N.createElement("line",tl({},d,{className:ye("recharts-cartesian-axis-line",Kn(f,"className"))}))}},{key:"renderTicks",value:function(r,a,i){var s=this,o=this.props,l=o.tickLine,c=o.stroke,f=o.tick,d=o.tickFormatter,h=o.unit,p=Hj(_t(_t({},this.props),{},{ticks:r}),a,i),v=this.getTickTextAnchor(),y=this.getTickVerticalAnchor(),b=ie(this.props,!1),m=ie(f,!1),g=_t(_t({},b),{},{fill:"none"},ie(l,!1)),x=p.map(function(w,S){var j=s.getTickLineCoord(w),O=j.line,E=j.tick,T=_t(_t(_t(_t({textAnchor:v,verticalAnchor:y},b),{},{stroke:"none",fill:c},m),E),{},{index:S,payload:w,visibleTicksCount:p.length,tickFormatter:d});return N.createElement(je,tl({className:"recharts-cartesian-axis-tick",key:"tick-".concat(w.value,"-").concat(w.coordinate,"-").concat(w.tickCoord)},no(s.props,w,S)),l&&N.createElement("line",tl({},g,O,{className:ye("recharts-cartesian-axis-tick-line",Kn(l,"className"))})),f&&t.renderTickItem(f,T,"".concat(de(d)?d(w.value,S):w.value).concat(h||"")))});return N.createElement("g",{className:"recharts-cartesian-axis-ticks"},x)}},{key:"render",value:function(){var r=this,a=this.props,i=a.axisLine,s=a.width,o=a.height,l=a.ticksGenerator,c=a.className,f=a.hide;if(f)return null;var d=this.props,h=d.ticks,p=fb(d,bxe),v=h;return de(l)&&(v=h&&h.length>0?l(this.props):l(p)),s<=0||o<=0||!v||!v.length?null:N.createElement(je,{className:ye("recharts-cartesian-axis",c),ref:function(b){r.layerReference=b}},i&&this.renderAxisLine(),this.renderTicks(v,this.state.fontSize,this.state.letterSpacing),Vt.renderCallByParent(this.props))}}],[{key:"renderTickItem",value:function(r,a,i){var s,o=ye(a.className,"recharts-cartesian-axis-tick-value");return N.isValidElement(r)?s=N.cloneElement(r,_t(_t({},a),{},{className:o})):de(r)?s=r(_t(_t({},a),{},{className:o})):s=N.createElement(ro,tl({},a,{className:"recharts-cartesian-axis-tick-value"}),i),s}}])}(A.Component);Fj(qc,"displayName","CartesianAxis");Fj(qc,"defaultProps",{x:0,y:0,width:0,height:0,viewBox:{x:0,y:0,width:0,height:0},orientation:"bottom",ticks:[],stroke:"#666",tickLine:!0,axisLine:!0,tick:!0,mirror:!1,minTickGap:5,tickSize:6,tickMargin:2,interval:"preserveEnd"});var Nxe=["x1","y1","x2","y2","key"],_xe=["offset"];function oo(e){"@babel/helpers - typeof";return oo=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},oo(e)}function mC(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function sn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?mC(Object(n),!0).forEach(function(r){Cxe(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):mC(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Cxe(e,t,n){return t=Pxe(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Pxe(e){var t=Mxe(e,"string");return oo(t)=="symbol"?t:t+""}function Mxe(e,t){if(oo(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(oo(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function Es(){return Es=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Es.apply(this,arguments)}function yC(e,t){if(e==null)return{};var n=Rxe(e,t),r,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)r=i[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Rxe(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}var Dxe=function(t){var n=t.fill;if(!n||n==="none")return null;var r=t.fillOpacity,a=t.x,i=t.y,s=t.width,o=t.height,l=t.ry;return N.createElement("rect",{x:a,y:i,ry:l,width:s,height:o,stroke:"none",fill:n,fillOpacity:r,className:"recharts-cartesian-grid-bg"})};function CL(e,t){var n;if(N.isValidElement(e))n=N.cloneElement(e,t);else if(de(e))n=e(t);else{var r=t.x1,a=t.y1,i=t.x2,s=t.y2,o=t.key,l=yC(t,Nxe),c=ie(l,!1);c.offset;var f=yC(c,_xe);n=N.createElement("line",Es({},f,{x1:r,y1:a,x2:i,y2:s,fill:"none",key:o}))}return n}function $xe(e){var t=e.x,n=e.width,r=e.horizontal,a=r===void 0?!0:r,i=e.horizontalPoints;if(!a||!i||!i.length)return null;var s=i.map(function(o,l){var c=sn(sn({},e),{},{x1:t,y1:o,x2:t+n,y2:o,key:"line-".concat(l),index:l});return CL(a,c)});return N.createElement("g",{className:"recharts-cartesian-grid-horizontal"},s)}function kxe(e){var t=e.y,n=e.height,r=e.vertical,a=r===void 0?!0:r,i=e.verticalPoints;if(!a||!i||!i.length)return null;var s=i.map(function(o,l){var c=sn(sn({},e),{},{x1:o,y1:t,x2:o,y2:t+n,key:"line-".concat(l),index:l});return CL(a,c)});return N.createElement("g",{className:"recharts-cartesian-grid-vertical"},s)}function Lxe(e){var t=e.horizontalFill,n=e.fillOpacity,r=e.x,a=e.y,i=e.width,s=e.height,o=e.horizontalPoints,l=e.horizontal,c=l===void 0?!0:l;if(!c||!t||!t.length)return null;var f=o.map(function(h){return Math.round(h+a-a)}).sort(function(h,p){return h-p});a!==f[0]&&f.unshift(0);var d=f.map(function(h,p){var v=!f[p+1],y=v?a+s-h:f[p+1]-h;if(y<=0)return null;var b=p%t.length;return N.createElement("rect",{key:"react-".concat(p),y:h,x:r,height:y,width:i,stroke:"none",fill:t[b],fillOpacity:n,className:"recharts-cartesian-grid-bg"})});return N.createElement("g",{className:"recharts-cartesian-gridstripes-horizontal"},d)}function zxe(e){var t=e.vertical,n=t===void 0?!0:t,r=e.verticalFill,a=e.fillOpacity,i=e.x,s=e.y,o=e.width,l=e.height,c=e.verticalPoints;if(!n||!r||!r.length)return null;var f=c.map(function(h){return Math.round(h+i-i)}).sort(function(h,p){return h-p});i!==f[0]&&f.unshift(0);var d=f.map(function(h,p){var v=!f[p+1],y=v?i+o-h:f[p+1]-h;if(y<=0)return null;var b=p%r.length;return N.createElement("rect",{key:"react-".concat(p),x:h,y:s,width:y,height:l,stroke:"none",fill:r[b],fillOpacity:a,className:"recharts-cartesian-grid-bg"})});return N.createElement("g",{className:"recharts-cartesian-gridstripes-vertical"},d)}var Bxe=function(t,n){var r=t.xAxis,a=t.width,i=t.height,s=t.offset;return Tk(Hj(sn(sn(sn({},qc.defaultProps),r),{},{ticks:Ca(r,!0),viewBox:{x:0,y:0,width:a,height:i}})),s.left,s.left+s.width,n)},Ixe=function(t,n){var r=t.yAxis,a=t.width,i=t.height,s=t.offset;return Tk(Hj(sn(sn(sn({},qc.defaultProps),r),{},{ticks:Ca(r,!0),viewBox:{x:0,y:0,width:a,height:i}})),s.top,s.top+s.height,n)},_o={horizontal:!0,vertical:!0,stroke:"#ccc",fill:"none",verticalFill:[],horizontalFill:[]};function sp(e){var t,n,r,a,i,s,o=Ij(),l=Uj(),c=T0e(),f=sn(sn({},e),{},{stroke:(t=e.stroke)!==null&&t!==void 0?t:_o.stroke,fill:(n=e.fill)!==null&&n!==void 0?n:_o.fill,horizontal:(r=e.horizontal)!==null&&r!==void 0?r:_o.horizontal,horizontalFill:(a=e.horizontalFill)!==null&&a!==void 0?a:_o.horizontalFill,vertical:(i=e.vertical)!==null&&i!==void 0?i:_o.vertical,verticalFill:(s=e.verticalFill)!==null&&s!==void 0?s:_o.verticalFill,x:F(e.x)?e.x:c.left,y:F(e.y)?e.y:c.top,width:F(e.width)?e.width:c.width,height:F(e.height)?e.height:c.height}),d=f.x,h=f.y,p=f.width,v=f.height,y=f.syncWithTicks,b=f.horizontalValues,m=f.verticalValues,g=A0e(),x=O0e();if(!F(p)||p<=0||!F(v)||v<=0||!F(d)||d!==+d||!F(h)||h!==+h)return null;var w=f.verticalCoordinatesGenerator||Bxe,S=f.horizontalCoordinatesGenerator||Ixe,j=f.horizontalPoints,O=f.verticalPoints;if((!j||!j.length)&&de(S)){var E=b&&b.length,T=S({yAxis:x?sn(sn({},x),{},{ticks:E?b:x.ticks}):void 0,width:o,height:l,offset:c},E?!0:y);Dr(Array.isArray(T),"horizontalCoordinatesGenerator should return Array but instead it returned [".concat(oo(T),"]")),Array.isArray(T)&&(j=T)}if((!O||!O.length)&&de(w)){var _=m&&m.length,M=w({xAxis:g?sn(sn({},g),{},{ticks:_?m:g.ticks}):void 0,width:o,height:l,offset:c},_?!0:y);Dr(Array.isArray(M),"verticalCoordinatesGenerator should return Array but instead it returned [".concat(oo(M),"]")),Array.isArray(M)&&(O=M)}return N.createElement("g",{className:"recharts-cartesian-grid"},N.createElement(Dxe,{fill:f.fill,fillOpacity:f.fillOpacity,x:f.x,y:f.y,width:f.width,height:f.height,ry:f.ry}),N.createElement($xe,Es({},f,{offset:c,horizontalPoints:j,xAxis:g,yAxis:x})),N.createElement(kxe,Es({},f,{offset:c,verticalPoints:O,xAxis:g,yAxis:x})),N.createElement(Lxe,Es({},f,{horizontalPoints:j})),N.createElement(zxe,Es({},f,{verticalPoints:O})))}sp.displayName="CartesianGrid";var Uxe=["type","layout","connectNulls","ref"],qxe=["key"];function cc(e){"@babel/helpers - typeof";return cc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},cc(e)}function vC(e,t){if(e==null)return{};var n=Vxe(e,t),r,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)r=i[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Vxe(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function Ku(){return Ku=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ku.apply(this,arguments)}function gC(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function Mn(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?gC(Object(n),!0).forEach(function(r){Pr(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):gC(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Co(e){return Kxe(e)||Gxe(e)||Fxe(e)||Hxe()}function Hxe(){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 Fxe(e,t){if(e){if(typeof e=="string")return y1(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return y1(e,t)}}function Gxe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function Kxe(e){if(Array.isArray(e))return y1(e)}function y1(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function Yxe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function bC(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,ML(r.key),r)}}function Xxe(e,t,n){return t&&bC(e.prototype,t),n&&bC(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function Wxe(e,t,n){return t=Qm(t),Qxe(e,PL()?Reflect.construct(t,n||[],Qm(e).constructor):t.apply(e,n))}function Qxe(e,t){if(t&&(cc(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return Zxe(e)}function Zxe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function PL(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(PL=function(){return!!e})()}function Qm(e){return Qm=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Qm(e)}function Jxe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&v1(e,t)}function v1(e,t){return v1=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},v1(e,t)}function Pr(e,t,n){return t=ML(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ML(e){var t=e1e(e,"string");return cc(t)=="symbol"?t:t+""}function e1e(e,t){if(cc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(cc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var Id=function(e){function t(){var n;Yxe(this,t);for(var r=arguments.length,a=new Array(r),i=0;i<r;i++)a[i]=arguments[i];return n=Wxe(this,t,[].concat(a)),Pr(n,"state",{isAnimationFinished:!0,totalLength:0}),Pr(n,"generateSimpleStrokeDasharray",function(s,o){return"".concat(o,"px ").concat(s-o,"px")}),Pr(n,"getStrokeDasharray",function(s,o,l){var c=l.reduce(function(m,g){return m+g});if(!c)return n.generateSimpleStrokeDasharray(o,s);for(var f=Math.floor(s/c),d=s%c,h=o-s,p=[],v=0,y=0;v<l.length;y+=l[v],++v)if(y+l[v]>d){p=[].concat(Co(l.slice(0,v)),[d-y]);break}var b=p.length%2===0?[0,h]:[h];return[].concat(Co(t.repeat(l,f)),Co(p),b).map(function(m){return"".concat(m,"px")}).join(", ")}),Pr(n,"id",vo("recharts-line-")),Pr(n,"pathRef",function(s){n.mainCurve=s}),Pr(n,"handleAnimationEnd",function(){n.setState({isAnimationFinished:!0}),n.props.onAnimationEnd&&n.props.onAnimationEnd()}),Pr(n,"handleAnimationStart",function(){n.setState({isAnimationFinished:!1}),n.props.onAnimationStart&&n.props.onAnimationStart()}),n}return Jxe(t,e),Xxe(t,[{key:"componentDidMount",value:function(){if(this.props.isAnimationActive){var r=this.getTotalLength();this.setState({totalLength:r})}}},{key:"componentDidUpdate",value:function(){if(this.props.isAnimationActive){var r=this.getTotalLength();r!==this.state.totalLength&&this.setState({totalLength:r})}}},{key:"getTotalLength",value:function(){var r=this.mainCurve;try{return r&&r.getTotalLength&&r.getTotalLength()||0}catch{return 0}}},{key:"renderErrorBar",value:function(r,a){if(this.props.isAnimationActive&&!this.state.isAnimationFinished)return null;var i=this.props,s=i.points,o=i.xAxis,l=i.yAxis,c=i.layout,f=i.children,d=Yn(f,zd);if(!d)return null;var h=function(y,b){return{x:y.x,y:y.y,value:y.value,errorVal:xt(y.payload,b)}},p={clipPath:r?"url(#clipPath-".concat(a,")"):null};return N.createElement(je,p,d.map(function(v){return N.cloneElement(v,{key:"bar-".concat(v.props.dataKey),data:s,xAxis:o,yAxis:l,layout:c,dataPointFormatter:h})}))}},{key:"renderDots",value:function(r,a,i){var s=this.props.isAnimationActive;if(s&&!this.state.isAnimationFinished)return null;var o=this.props,l=o.dot,c=o.points,f=o.dataKey,d=ie(this.props,!1),h=ie(l,!0),p=c.map(function(y,b){var m=Mn(Mn(Mn({key:"dot-".concat(b),r:3},d),h),{},{index:b,cx:y.x,cy:y.y,value:y.value,dataKey:f,payload:y.payload,points:c});return t.renderDotItem(l,m)}),v={clipPath:r?"url(#clipPath-".concat(a?"":"dots-").concat(i,")"):null};return N.createElement(je,Ku({className:"recharts-line-dots",key:"dots"},v),p)}},{key:"renderCurveStatically",value:function(r,a,i,s){var o=this.props,l=o.type,c=o.layout,f=o.connectNulls;o.ref;var d=vC(o,Uxe),h=Mn(Mn(Mn({},ie(d,!0)),{},{fill:"none",className:"recharts-line-curve",clipPath:a?"url(#clipPath-".concat(i,")"):null,points:r},s),{},{type:l,layout:c,connectNulls:f});return N.createElement(Gs,Ku({},h,{pathRef:this.pathRef}))}},{key:"renderCurveWithAnimation",value:function(r,a){var i=this,s=this.props,o=s.points,l=s.strokeDasharray,c=s.isAnimationActive,f=s.animationBegin,d=s.animationDuration,h=s.animationEasing,p=s.animationId,v=s.animateNewValues,y=s.width,b=s.height,m=this.state,g=m.prevPoints,x=m.totalLength;return N.createElement(kr,{begin:f,duration:d,isActive:c,easing:h,from:{t:0},to:{t:1},key:"line-".concat(p),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(w){var S=w.t;if(g){var j=g.length/o.length,O=o.map(function(C,z){var L=Math.floor(z*j);if(g[L]){var k=g[L],R=Pt(k.x,C.x),$=Pt(k.y,C.y);return Mn(Mn({},C),{},{x:R(S),y:$(S)})}if(v){var B=Pt(y*2,C.x),V=Pt(b/2,C.y);return Mn(Mn({},C),{},{x:B(S),y:V(S)})}return Mn(Mn({},C),{},{x:C.x,y:C.y})});return i.renderCurveStatically(O,r,a)}var E=Pt(0,x),T=E(S),_;if(l){var M="".concat(l).split(/[,\s]+/gim).map(function(C){return parseFloat(C)});_=i.getStrokeDasharray(T,x,M)}else _=i.generateSimpleStrokeDasharray(x,T);return i.renderCurveStatically(o,r,a,{strokeDasharray:_})})}},{key:"renderCurve",value:function(r,a){var i=this.props,s=i.points,o=i.isAnimationActive,l=this.state,c=l.prevPoints,f=l.totalLength;return o&&s&&s.length&&(!c&&f>0||!ao(c,s))?this.renderCurveWithAnimation(r,a):this.renderCurveStatically(s,r,a)}},{key:"render",value:function(){var r,a=this.props,i=a.hide,s=a.dot,o=a.points,l=a.className,c=a.xAxis,f=a.yAxis,d=a.top,h=a.left,p=a.width,v=a.height,y=a.isAnimationActive,b=a.id;if(i||!o||!o.length)return null;var m=this.state.isAnimationFinished,g=o.length===1,x=ye("recharts-line",l),w=c&&c.allowDataOverflow,S=f&&f.allowDataOverflow,j=w||S,O=pe(b)?this.id:b,E=(r=ie(s,!1))!==null&&r!==void 0?r:{r:3,strokeWidth:2},T=E.r,_=T===void 0?3:T,M=E.strokeWidth,C=M===void 0?2:M,z=x5(s)?s:{},L=z.clipDot,k=L===void 0?!0:L,R=_*2+C;return N.createElement(je,{className:x},w||S?N.createElement("defs",null,N.createElement("clipPath",{id:"clipPath-".concat(O)},N.createElement("rect",{x:w?h:h-p/2,y:S?d:d-v/2,width:w?p:p*2,height:S?v:v*2})),!k&&N.createElement("clipPath",{id:"clipPath-dots-".concat(O)},N.createElement("rect",{x:h-R/2,y:d-R/2,width:p+R,height:v+R}))):null,!g&&this.renderCurve(j,O),this.renderErrorBar(j,O),(g||s)&&this.renderDots(j,k,O),(!y||m)&&ra.renderCallByParent(this.props,o))}}],[{key:"getDerivedStateFromProps",value:function(r,a){return r.animationId!==a.prevAnimationId?{prevAnimationId:r.animationId,curPoints:r.points,prevPoints:a.curPoints}:r.points!==a.curPoints?{curPoints:r.points}:null}},{key:"repeat",value:function(r,a){for(var i=r.length%2!==0?[].concat(Co(r),[0]):r,s=[],o=0;o<a;++o)s=[].concat(Co(s),Co(i));return s}},{key:"renderDotItem",value:function(r,a){var i;if(N.isValidElement(r))i=N.cloneElement(r,a);else if(de(r))i=r(a);else{var s=a.key,o=vC(a,qxe),l=ye("recharts-line-dot",typeof r!="boolean"?r.className:"");i=N.createElement(Bd,Ku({key:s},o,{className:l}))}return i}}])}(A.PureComponent);Pr(Id,"displayName","Line");Pr(Id,"defaultProps",{xAxisId:0,yAxisId:0,connectNulls:!1,activeDot:!0,dot:!0,legendType:"line",stroke:"#3182bd",strokeWidth:1,fill:"#fff",points:[],isAnimationActive:!Ji.isSsr,animateNewValues:!0,animationBegin:0,animationDuration:1500,animationEasing:"ease",hide:!1,label:!1});Pr(Id,"getComposedData",function(e){var t=e.props,n=e.xAxis,r=e.yAxis,a=e.xAxisTicks,i=e.yAxisTicks,s=e.dataKey,o=e.bandSize,l=e.displayedData,c=e.offset,f=t.layout,d=l.map(function(h,p){var v=xt(h,s);return f==="horizontal"?{x:Tm({axis:n,ticks:a,bandSize:o,entry:h,index:p}),y:pe(v)?null:r.scale(v),value:v,payload:h}:{x:pe(v)?null:n.scale(v),y:Tm({axis:r,ticks:i,bandSize:o,entry:h,index:p}),value:v,payload:h}});return Mn({points:d,layout:f},c)});var t1e=["layout","type","stroke","connectNulls","isRange","ref"],n1e=["key"],RL;function uc(e){"@babel/helpers - typeof";return uc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},uc(e)}function DL(e,t){if(e==null)return{};var n=r1e(e,t),r,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)r=i[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function r1e(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function Ts(){return Ts=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},Ts.apply(this,arguments)}function xC(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function oi(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?xC(Object(n),!0).forEach(function(r){Zr(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):xC(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function a1e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function SC(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,kL(r.key),r)}}function i1e(e,t,n){return t&&SC(e.prototype,t),n&&SC(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function s1e(e,t,n){return t=Zm(t),o1e(e,$L()?Reflect.construct(t,n||[],Zm(e).constructor):t.apply(e,n))}function o1e(e,t){if(t&&(uc(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return l1e(e)}function l1e(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function $L(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return($L=function(){return!!e})()}function Zm(e){return Zm=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Zm(e)}function c1e(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&g1(e,t)}function g1(e,t){return g1=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},g1(e,t)}function Zr(e,t,n){return t=kL(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function kL(e){var t=u1e(e,"string");return uc(t)=="symbol"?t:t+""}function u1e(e,t){if(uc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(uc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var rs=function(e){function t(){var n;a1e(this,t);for(var r=arguments.length,a=new Array(r),i=0;i<r;i++)a[i]=arguments[i];return n=s1e(this,t,[].concat(a)),Zr(n,"state",{isAnimationFinished:!0}),Zr(n,"id",vo("recharts-area-")),Zr(n,"handleAnimationEnd",function(){var s=n.props.onAnimationEnd;n.setState({isAnimationFinished:!0}),de(s)&&s()}),Zr(n,"handleAnimationStart",function(){var s=n.props.onAnimationStart;n.setState({isAnimationFinished:!1}),de(s)&&s()}),n}return c1e(t,e),i1e(t,[{key:"renderDots",value:function(r,a,i){var s=this.props.isAnimationActive,o=this.state.isAnimationFinished;if(s&&!o)return null;var l=this.props,c=l.dot,f=l.points,d=l.dataKey,h=ie(this.props,!1),p=ie(c,!0),v=f.map(function(b,m){var g=oi(oi(oi({key:"dot-".concat(m),r:3},h),p),{},{index:m,cx:b.x,cy:b.y,dataKey:d,value:b.value,payload:b.payload,points:f});return t.renderDotItem(c,g)}),y={clipPath:r?"url(#clipPath-".concat(a?"":"dots-").concat(i,")"):null};return N.createElement(je,Ts({className:"recharts-area-dots"},y),v)}},{key:"renderHorizontalRect",value:function(r){var a=this.props,i=a.baseLine,s=a.points,o=a.strokeWidth,l=s[0].x,c=s[s.length-1].x,f=r*Math.abs(l-c),d=_i(s.map(function(h){return h.y||0}));return F(i)&&typeof i=="number"?d=Math.max(i,d):i&&Array.isArray(i)&&i.length&&(d=Math.max(_i(i.map(function(h){return h.y||0})),d)),F(d)?N.createElement("rect",{x:l<c?l:l-f,y:0,width:f,height:Math.floor(d+(o?parseInt("".concat(o),10):1))}):null}},{key:"renderVerticalRect",value:function(r){var a=this.props,i=a.baseLine,s=a.points,o=a.strokeWidth,l=s[0].y,c=s[s.length-1].y,f=r*Math.abs(l-c),d=_i(s.map(function(h){return h.x||0}));return F(i)&&typeof i=="number"?d=Math.max(i,d):i&&Array.isArray(i)&&i.length&&(d=Math.max(_i(i.map(function(h){return h.x||0})),d)),F(d)?N.createElement("rect",{x:0,y:l<c?l:l-f,width:d+(o?parseInt("".concat(o),10):1),height:Math.floor(f)}):null}},{key:"renderClipRect",value:function(r){var a=this.props.layout;return a==="vertical"?this.renderVerticalRect(r):this.renderHorizontalRect(r)}},{key:"renderAreaStatically",value:function(r,a,i,s){var o=this.props,l=o.layout,c=o.type,f=o.stroke,d=o.connectNulls,h=o.isRange;o.ref;var p=DL(o,t1e);return N.createElement(je,{clipPath:i?"url(#clipPath-".concat(s,")"):null},N.createElement(Gs,Ts({},ie(p,!0),{points:r,connectNulls:d,type:c,baseLine:a,layout:l,stroke:"none",className:"recharts-area-area"})),f!=="none"&&N.createElement(Gs,Ts({},ie(this.props,!1),{className:"recharts-area-curve",layout:l,type:c,connectNulls:d,fill:"none",points:r})),f!=="none"&&h&&N.createElement(Gs,Ts({},ie(this.props,!1),{className:"recharts-area-curve",layout:l,type:c,connectNulls:d,fill:"none",points:a})))}},{key:"renderAreaWithAnimation",value:function(r,a){var i=this,s=this.props,o=s.points,l=s.baseLine,c=s.isAnimationActive,f=s.animationBegin,d=s.animationDuration,h=s.animationEasing,p=s.animationId,v=this.state,y=v.prevPoints,b=v.prevBaseLine;return N.createElement(kr,{begin:f,duration:d,isActive:c,easing:h,from:{t:0},to:{t:1},key:"area-".concat(p),onAnimationEnd:this.handleAnimationEnd,onAnimationStart:this.handleAnimationStart},function(m){var g=m.t;if(y){var x=y.length/o.length,w=o.map(function(E,T){var _=Math.floor(T*x);if(y[_]){var M=y[_],C=Pt(M.x,E.x),z=Pt(M.y,E.y);return oi(oi({},E),{},{x:C(g),y:z(g)})}return E}),S;if(F(l)&&typeof l=="number"){var j=Pt(b,l);S=j(g)}else if(pe(l)||$c(l)){var O=Pt(b,0);S=O(g)}else S=l.map(function(E,T){var _=Math.floor(T*x);if(b[_]){var M=b[_],C=Pt(M.x,E.x),z=Pt(M.y,E.y);return oi(oi({},E),{},{x:C(g),y:z(g)})}return E});return i.renderAreaStatically(w,S,r,a)}return N.createElement(je,null,N.createElement("defs",null,N.createElement("clipPath",{id:"animationClipPath-".concat(a)},i.renderClipRect(g))),N.createElement(je,{clipPath:"url(#animationClipPath-".concat(a,")")},i.renderAreaStatically(o,l,r,a)))})}},{key:"renderArea",value:function(r,a){var i=this.props,s=i.points,o=i.baseLine,l=i.isAnimationActive,c=this.state,f=c.prevPoints,d=c.prevBaseLine,h=c.totalLength;return l&&s&&s.length&&(!f&&h>0||!ao(f,s)||!ao(d,o))?this.renderAreaWithAnimation(r,a):this.renderAreaStatically(s,o,r,a)}},{key:"render",value:function(){var r,a=this.props,i=a.hide,s=a.dot,o=a.points,l=a.className,c=a.top,f=a.left,d=a.xAxis,h=a.yAxis,p=a.width,v=a.height,y=a.isAnimationActive,b=a.id;if(i||!o||!o.length)return null;var m=this.state.isAnimationFinished,g=o.length===1,x=ye("recharts-area",l),w=d&&d.allowDataOverflow,S=h&&h.allowDataOverflow,j=w||S,O=pe(b)?this.id:b,E=(r=ie(s,!1))!==null&&r!==void 0?r:{r:3,strokeWidth:2},T=E.r,_=T===void 0?3:T,M=E.strokeWidth,C=M===void 0?2:M,z=x5(s)?s:{},L=z.clipDot,k=L===void 0?!0:L,R=_*2+C;return N.createElement(je,{className:x},w||S?N.createElement("defs",null,N.createElement("clipPath",{id:"clipPath-".concat(O)},N.createElement("rect",{x:w?f:f-p/2,y:S?c:c-v/2,width:w?p:p*2,height:S?v:v*2})),!k&&N.createElement("clipPath",{id:"clipPath-dots-".concat(O)},N.createElement("rect",{x:f-R/2,y:c-R/2,width:p+R,height:v+R}))):null,g?null:this.renderArea(j,O),(s||g)&&this.renderDots(j,k,O),(!y||m)&&ra.renderCallByParent(this.props,o))}}],[{key:"getDerivedStateFromProps",value:function(r,a){return r.animationId!==a.prevAnimationId?{prevAnimationId:r.animationId,curPoints:r.points,curBaseLine:r.baseLine,prevPoints:a.curPoints,prevBaseLine:a.curBaseLine}:r.points!==a.curPoints||r.baseLine!==a.curBaseLine?{curPoints:r.points,curBaseLine:r.baseLine}:null}}])}(A.PureComponent);RL=rs;Zr(rs,"displayName","Area");Zr(rs,"defaultProps",{stroke:"#3182bd",fill:"#3182bd",fillOpacity:.6,xAxisId:0,yAxisId:0,legendType:"line",connectNulls:!1,points:[],dot:!1,activeDot:!0,hide:!1,isAnimationActive:!Ji.isSsr,animationBegin:0,animationDuration:1500,animationEasing:"ease"});Zr(rs,"getBaseValue",function(e,t,n,r){var a=e.layout,i=e.baseValue,s=t.props.baseValue,o=s??i;if(F(o)&&typeof o=="number")return o;var l=a==="horizontal"?r:n,c=l.scale.domain();if(l.type==="number"){var f=Math.max(c[0],c[1]),d=Math.min(c[0],c[1]);return o==="dataMin"?d:o==="dataMax"||f<0?f:Math.max(Math.min(c[0],c[1]),0)}return o==="dataMin"?c[0]:o==="dataMax"?c[1]:c[0]});Zr(rs,"getComposedData",function(e){var t=e.props,n=e.item,r=e.xAxis,a=e.yAxis,i=e.xAxisTicks,s=e.yAxisTicks,o=e.bandSize,l=e.dataKey,c=e.stackedData,f=e.dataStartIndex,d=e.displayedData,h=e.offset,p=t.layout,v=c&&c.length,y=RL.getBaseValue(t,n,r,a),b=p==="horizontal",m=!1,g=d.map(function(w,S){var j;v?j=c[f+S]:(j=xt(w,l),Array.isArray(j)?m=!0:j=[y,j]);var O=j[1]==null||v&&xt(w,l)==null;return b?{x:Tm({axis:r,ticks:i,bandSize:o,entry:w,index:S}),y:O?null:a.scale(j[1]),value:j,payload:w}:{x:O?null:r.scale(j[1]),y:Tm({axis:a,ticks:s,bandSize:o,entry:w,index:S}),value:j,payload:w}}),x;return v||m?x=g.map(function(w){var S=Array.isArray(w.value)?w.value[0]:null;return b?{x:w.x,y:S!=null&&w.y!=null?a.scale(S):null}:{x:S!=null?r.scale(S):null,y:w.y}}):x=b?a.scale(y):r.scale(y),oi({points:g,baseLine:x,layout:p,isRange:m},h)});Zr(rs,"renderDotItem",function(e,t){var n;if(N.isValidElement(e))n=N.cloneElement(e,t);else if(de(e))n=e(t);else{var r=ye("recharts-area-dot",typeof e!="boolean"?e.className:""),a=t.key,i=DL(t,n1e);n=N.createElement(Bd,Ts({},i,{key:a,className:r}))}return n});function fc(e){"@babel/helpers - typeof";return fc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},fc(e)}function f1e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function d1e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,BL(r.key),r)}}function h1e(e,t,n){return t&&d1e(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function p1e(e,t,n){return t=Jm(t),m1e(e,LL()?Reflect.construct(t,n||[],Jm(e).constructor):t.apply(e,n))}function m1e(e,t){if(t&&(fc(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return y1e(e)}function y1e(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function LL(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(LL=function(){return!!e})()}function Jm(e){return Jm=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},Jm(e)}function v1e(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&b1(e,t)}function b1(e,t){return b1=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},b1(e,t)}function zL(e,t,n){return t=BL(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function BL(e){var t=g1e(e,"string");return fc(t)=="symbol"?t:t+""}function g1e(e,t){if(fc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(fc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function x1(){return x1=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},x1.apply(this,arguments)}function b1e(e){var t=e.xAxisId,n=Ij(),r=Uj(),a=bL(t);return a==null?null:A.createElement(qc,x1({},a,{className:ye("recharts-".concat(a.axisType," ").concat(a.axisType),a.className),viewBox:{x:0,y:0,width:n,height:r},ticksGenerator:function(s){return Ca(s,!0)}}))}var qi=function(e){function t(){return f1e(this,t),p1e(this,t,arguments)}return v1e(t,e),h1e(t,[{key:"render",value:function(){return A.createElement(b1e,this.props)}}])}(A.Component);zL(qi,"displayName","XAxis");zL(qi,"defaultProps",{allowDecimals:!0,hide:!1,orientation:"bottom",width:0,height:30,mirror:!1,xAxisId:0,tickCount:5,type:"category",padding:{left:0,right:0},allowDataOverflow:!1,scale:"auto",reversed:!1,allowDuplicatedCategory:!0});function dc(e){"@babel/helpers - typeof";return dc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},dc(e)}function x1e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function S1e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,qL(r.key),r)}}function w1e(e,t,n){return t&&S1e(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function j1e(e,t,n){return t=ey(t),A1e(e,IL()?Reflect.construct(t,n||[],ey(e).constructor):t.apply(e,n))}function A1e(e,t){if(t&&(dc(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return O1e(e)}function O1e(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function IL(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(IL=function(){return!!e})()}function ey(e){return ey=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},ey(e)}function E1e(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&S1(e,t)}function S1(e,t){return S1=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},S1(e,t)}function UL(e,t,n){return t=qL(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function qL(e){var t=T1e(e,"string");return dc(t)=="symbol"?t:t+""}function T1e(e,t){if(dc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(dc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}function w1(){return w1=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},w1.apply(this,arguments)}var N1e=function(t){var n=t.yAxisId,r=Ij(),a=Uj(),i=xL(n);return i==null?null:A.createElement(qc,w1({},i,{className:ye("recharts-".concat(i.axisType," ").concat(i.axisType),i.className),viewBox:{x:0,y:0,width:r,height:a},ticksGenerator:function(o){return Ca(o,!0)}}))},Vi=function(e){function t(){return x1e(this,t),j1e(this,t,arguments)}return E1e(t,e),w1e(t,[{key:"render",value:function(){return A.createElement(N1e,this.props)}}])}(A.Component);UL(Vi,"displayName","YAxis");UL(Vi,"defaultProps",{allowDuplicatedCategory:!0,allowDecimals:!0,hide:!1,orientation:"left",width:60,height:0,mirror:!1,yAxisId:0,tickCount:5,type:"number",padding:{top:0,bottom:0},allowDataOverflow:!1,scale:"auto",reversed:!1});function wC(e){return M1e(e)||P1e(e)||C1e(e)||_1e()}function _1e(){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 C1e(e,t){if(e){if(typeof e=="string")return j1(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return j1(e,t)}}function P1e(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function M1e(e){if(Array.isArray(e))return j1(e)}function j1(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var A1=function(t,n,r,a,i){var s=Yn(t,Vj),o=Yn(t,Ev),l=[].concat(wC(s),wC(o)),c=Yn(t,Nv),f="".concat(a,"Id"),d=a[0],h=n;if(l.length&&(h=l.reduce(function(y,b){if(b.props[f]===r&&aa(b.props,"extendDomain")&&F(b.props[d])){var m=b.props[d];return[Math.min(y[0],m),Math.max(y[1],m)]}return y},h)),c.length){var p="".concat(d,"1"),v="".concat(d,"2");h=c.reduce(function(y,b){if(b.props[f]===r&&aa(b.props,"extendDomain")&&F(b.props[p])&&F(b.props[v])){var m=b.props[p],g=b.props[v];return[Math.min(y[0],m,g),Math.max(y[1],m,g)]}return y},h)}return i&&i.length&&(h=i.reduce(function(y,b){return F(b)?[Math.min(y[0],b),Math.max(y[1],b)]:y},h)),h},VL={exports:{}};(function(e){var t=Object.prototype.hasOwnProperty,n="~";function r(){}Object.create&&(r.prototype=Object.create(null),new r().__proto__||(n=!1));function a(l,c,f){this.fn=l,this.context=c,this.once=f||!1}function i(l,c,f,d,h){if(typeof f!="function")throw new TypeError("The listener must be a function");var p=new a(f,d||l,h),v=n?n+c:c;return l._events[v]?l._events[v].fn?l._events[v]=[l._events[v],p]:l._events[v].push(p):(l._events[v]=p,l._eventsCount++),l}function s(l,c){--l._eventsCount===0?l._events=new r:delete l._events[c]}function o(){this._events=new r,this._eventsCount=0}o.prototype.eventNames=function(){var c=[],f,d;if(this._eventsCount===0)return c;for(d in f=this._events)t.call(f,d)&&c.push(n?d.slice(1):d);return Object.getOwnPropertySymbols?c.concat(Object.getOwnPropertySymbols(f)):c},o.prototype.listeners=function(c){var f=n?n+c:c,d=this._events[f];if(!d)return[];if(d.fn)return[d.fn];for(var h=0,p=d.length,v=new Array(p);h<p;h++)v[h]=d[h].fn;return v},o.prototype.listenerCount=function(c){var f=n?n+c:c,d=this._events[f];return d?d.fn?1:d.length:0},o.prototype.emit=function(c,f,d,h,p,v){var y=n?n+c:c;if(!this._events[y])return!1;var b=this._events[y],m=arguments.length,g,x;if(b.fn){switch(b.once&&this.removeListener(c,b.fn,void 0,!0),m){case 1:return b.fn.call(b.context),!0;case 2:return b.fn.call(b.context,f),!0;case 3:return b.fn.call(b.context,f,d),!0;case 4:return b.fn.call(b.context,f,d,h),!0;case 5:return b.fn.call(b.context,f,d,h,p),!0;case 6:return b.fn.call(b.context,f,d,h,p,v),!0}for(x=1,g=new Array(m-1);x<m;x++)g[x-1]=arguments[x];b.fn.apply(b.context,g)}else{var w=b.length,S;for(x=0;x<w;x++)switch(b[x].once&&this.removeListener(c,b[x].fn,void 0,!0),m){case 1:b[x].fn.call(b[x].context);break;case 2:b[x].fn.call(b[x].context,f);break;case 3:b[x].fn.call(b[x].context,f,d);break;case 4:b[x].fn.call(b[x].context,f,d,h);break;default:if(!g)for(S=1,g=new Array(m-1);S<m;S++)g[S-1]=arguments[S];b[x].fn.apply(b[x].context,g)}}return!0},o.prototype.on=function(c,f,d){return i(this,c,f,d,!1)},o.prototype.once=function(c,f,d){return i(this,c,f,d,!0)},o.prototype.removeListener=function(c,f,d,h){var p=n?n+c:c;if(!this._events[p])return this;if(!f)return s(this,p),this;var v=this._events[p];if(v.fn)v.fn===f&&(!h||v.once)&&(!d||v.context===d)&&s(this,p);else{for(var y=0,b=[],m=v.length;y<m;y++)(v[y].fn!==f||h&&!v[y].once||d&&v[y].context!==d)&&b.push(v[y]);b.length?this._events[p]=b.length===1?b[0]:b:s(this,p)}return this},o.prototype.removeAllListeners=function(c){var f;return c?(f=n?n+c:c,this._events[f]&&s(this,f)):(this._events=new r,this._eventsCount=0),this},o.prototype.off=o.prototype.removeListener,o.prototype.addListener=o.prototype.on,o.prefixed=n,o.EventEmitter=o,e.exports=o})(VL);var R1e=VL.exports;const D1e=ze(R1e);var db=new D1e,hb="recharts.syncMouseEvents";function ed(e){"@babel/helpers - typeof";return ed=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},ed(e)}function $1e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function k1e(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,HL(r.key),r)}}function L1e(e,t,n){return t&&k1e(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function pb(e,t,n){return t=HL(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function HL(e){var t=z1e(e,"string");return ed(t)=="symbol"?t:t+""}function z1e(e,t){if(ed(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(ed(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}var B1e=function(){function e(){$1e(this,e),pb(this,"activeIndex",0),pb(this,"coordinateList",[]),pb(this,"layout","horizontal")}return L1e(e,[{key:"setDetails",value:function(n){var r,a=n.coordinateList,i=a===void 0?null:a,s=n.container,o=s===void 0?null:s,l=n.layout,c=l===void 0?null:l,f=n.offset,d=f===void 0?null:f,h=n.mouseHandlerCallback,p=h===void 0?null:h;this.coordinateList=(r=i??this.coordinateList)!==null&&r!==void 0?r:[],this.container=o??this.container,this.layout=c??this.layout,this.offset=d??this.offset,this.mouseHandlerCallback=p??this.mouseHandlerCallback,this.activeIndex=Math.min(Math.max(this.activeIndex,0),this.coordinateList.length-1)}},{key:"focus",value:function(){this.spoofMouse()}},{key:"keyboardEvent",value:function(n){if(this.coordinateList.length!==0)switch(n.key){case"ArrowRight":{if(this.layout!=="horizontal")return;this.activeIndex=Math.min(this.activeIndex+1,this.coordinateList.length-1),this.spoofMouse();break}case"ArrowLeft":{if(this.layout!=="horizontal")return;this.activeIndex=Math.max(this.activeIndex-1,0),this.spoofMouse();break}}}},{key:"setIndex",value:function(n){this.activeIndex=n}},{key:"spoofMouse",value:function(){var n,r;if(this.layout==="horizontal"&&this.coordinateList.length!==0){var a=this.container.getBoundingClientRect(),i=a.x,s=a.y,o=a.height,l=this.coordinateList[this.activeIndex].coordinate,c=((n=window)===null||n===void 0?void 0:n.scrollX)||0,f=((r=window)===null||r===void 0?void 0:r.scrollY)||0,d=i+l+c,h=s+this.offset.top+o/2+f;this.mouseHandlerCallback({pageX:d,pageY:h})}}}])}();function I1e(e,t,n){if(n==="number"&&t===!0&&Array.isArray(e)){var r=e==null?void 0:e[0],a=e==null?void 0:e[1];if(r&&a&&F(r)&&F(a))return!0}return!1}function U1e(e,t,n,r){var a=r/2;return{stroke:"none",fill:"#ccc",x:e==="horizontal"?t.x-a:n.left+.5,y:e==="horizontal"?n.top+.5:t.y-a,width:e==="horizontal"?r:n.width-1,height:e==="horizontal"?n.height-1:r}}function FL(e){var t=e.cx,n=e.cy,r=e.radius,a=e.startAngle,i=e.endAngle,s=Ze(t,n,r,a),o=Ze(t,n,r,i);return{points:[s,o],cx:t,cy:n,radius:r,startAngle:a,endAngle:i}}function q1e(e,t,n){var r,a,i,s;if(e==="horizontal")r=t.x,i=r,a=n.top,s=n.top+n.height;else if(e==="vertical")a=t.y,s=a,r=n.left,i=n.left+n.width;else if(t.cx!=null&&t.cy!=null)if(e==="centric"){var o=t.cx,l=t.cy,c=t.innerRadius,f=t.outerRadius,d=t.angle,h=Ze(o,l,c,d),p=Ze(o,l,f,d);r=h.x,a=h.y,i=p.x,s=p.y}else return FL(t);return[{x:r,y:a},{x:i,y:s}]}function td(e){"@babel/helpers - typeof";return td=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},td(e)}function jC(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function _h(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?jC(Object(n),!0).forEach(function(r){V1e(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):jC(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function V1e(e,t,n){return t=H1e(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function H1e(e){var t=F1e(e,"string");return td(t)=="symbol"?t:t+""}function F1e(e,t){if(td(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(td(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function G1e(e){var t,n,r=e.element,a=e.tooltipEventType,i=e.isActive,s=e.activeCoordinate,o=e.activePayload,l=e.offset,c=e.activeTooltipIndex,f=e.tooltipAxisBandSize,d=e.layout,h=e.chartName,p=(t=r.props.cursor)!==null&&t!==void 0?t:(n=r.type.defaultProps)===null||n===void 0?void 0:n.cursor;if(!r||!p||!i||!s||h!=="ScatterChart"&&a!=="axis")return null;var v,y=Gs;if(h==="ScatterChart")v=s,y=eve;else if(h==="BarChart")v=U1e(d,s,l,f),y=$j;else if(d==="radial"){var b=FL(s),m=b.cx,g=b.cy,x=b.radius,w=b.startAngle,S=b.endAngle;v={cx:m,cy:g,startAngle:w,endAngle:S,innerRadius:x,outerRadius:x},y=zk}else v={points:q1e(d,s,l)},y=Gs;var j=_h(_h(_h(_h({stroke:"#ccc",pointerEvents:"none"},l),v),ie(p,!1)),{},{payload:o,payloadIndex:c,className:ye("recharts-tooltip-cursor",p.className)});return A.isValidElement(p)?A.cloneElement(p,j):A.createElement(y,j)}var K1e=["item"],Y1e=["children","className","width","height","style","compact","title","desc"];function hc(e){"@babel/helpers - typeof";return hc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},hc(e)}function nl(){return nl=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},nl.apply(this,arguments)}function AC(e,t){return Q1e(e)||W1e(e,t)||KL(e,t)||X1e()}function X1e(){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 W1e(e,t){var n=e==null?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(n!=null){var r,a,i,s,o=[],l=!0,c=!1;try{if(i=(n=n.call(e)).next,t!==0)for(;!(l=(r=i.call(n)).done)&&(o.push(r.value),o.length!==t);l=!0);}catch(f){c=!0,a=f}finally{try{if(!l&&n.return!=null&&(s=n.return(),Object(s)!==s))return}finally{if(c)throw a}}return o}}function Q1e(e){if(Array.isArray(e))return e}function OC(e,t){if(e==null)return{};var n=Z1e(e,t),r,a;if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(a=0;a<i.length;a++)r=i[a],!(t.indexOf(r)>=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function Z1e(e,t){if(e==null)return{};var n={};for(var r in e)if(Object.prototype.hasOwnProperty.call(e,r)){if(t.indexOf(r)>=0)continue;n[r]=e[r]}return n}function J1e(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function eSe(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,YL(r.key),r)}}function tSe(e,t,n){return t&&eSe(e.prototype,t),Object.defineProperty(e,"prototype",{writable:!1}),e}function nSe(e,t,n){return t=ty(t),rSe(e,GL()?Reflect.construct(t,n||[],ty(e).constructor):t.apply(e,n))}function rSe(e,t){if(t&&(hc(t)==="object"||typeof t=="function"))return t;if(t!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return aSe(e)}function aSe(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function GL(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch{}return(GL=function(){return!!e})()}function ty(e){return ty=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(n){return n.__proto__||Object.getPrototypeOf(n)},ty(e)}function iSe(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&O1(e,t)}function O1(e,t){return O1=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,a){return r.__proto__=a,r},O1(e,t)}function pc(e){return lSe(e)||oSe(e)||KL(e)||sSe()}function sSe(){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 KL(e,t){if(e){if(typeof e=="string")return E1(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return E1(e,t)}}function oSe(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function lSe(e){if(Array.isArray(e))return E1(e)}function E1(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function EC(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(a){return Object.getOwnPropertyDescriptor(e,a).enumerable})),n.push.apply(n,r)}return n}function I(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?EC(Object(n),!0).forEach(function(r){ue(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):EC(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function ue(e,t,n){return t=YL(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function YL(e){var t=cSe(e,"string");return hc(t)=="symbol"?t:t+""}function cSe(e,t){if(hc(e)!="object"||!e)return e;var n=e[Symbol.toPrimitive];if(n!==void 0){var r=n.call(e,t);if(hc(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}var uSe={xAxis:["bottom","top"],yAxis:["left","right"]},fSe={width:"100%",height:"100%"},XL={x:0,y:0};function Ch(e){return e}var dSe=function(t,n){return n==="horizontal"?t.x:n==="vertical"?t.y:n==="centric"?t.angle:t.radius},hSe=function(t,n,r,a){var i=n.find(function(f){return f&&f.index===r});if(i){if(t==="horizontal")return{x:i.coordinate,y:a.y};if(t==="vertical")return{x:a.x,y:i.coordinate};if(t==="centric"){var s=i.coordinate,o=a.radius;return I(I(I({},a),Ze(a.cx,a.cy,o,s)),{},{angle:s,radius:o})}var l=i.coordinate,c=a.angle;return I(I(I({},a),Ze(a.cx,a.cy,l,c)),{},{angle:c,radius:l})}return XL},_v=function(t,n){var r=n.graphicalItems,a=n.dataStartIndex,i=n.dataEndIndex,s=(r??[]).reduce(function(o,l){var c=l.props.data;return c&&c.length?[].concat(pc(o),pc(c)):o},[]);return s.length>0?s:t&&t.length&&F(a)&&F(i)?t.slice(a,i+1):[]};function WL(e){return e==="number"?[0,"auto"]:void 0}var T1=function(t,n,r,a){var i=t.graphicalItems,s=t.tooltipAxis,o=_v(n,t);return r<0||!i||!i.length||r>=o.length?null:i.reduce(function(l,c){var f,d=(f=c.props.data)!==null&&f!==void 0?f:n;d&&t.dataStartIndex+t.dataEndIndex!==0&&t.dataEndIndex-t.dataStartIndex>=r&&(d=d.slice(t.dataStartIndex,t.dataEndIndex+1));var h;if(s.dataKey&&!s.allowDuplicatedCategory){var p=d===void 0?o:d;h=Zp(p,s.dataKey,a)}else h=d&&d[r]||o[r];return h?[].concat(pc(l),[Mk(c,h)]):l},[])},TC=function(t,n,r,a){var i=a||{x:t.chartX,y:t.chartY},s=dSe(i,r),o=t.orderedTooltipTicks,l=t.tooltipAxis,c=t.tooltipTicks,f=xhe(s,o,c,l);if(f>=0&&c){var d=c[f]&&c[f].value,h=T1(t,n,f,d),p=hSe(r,o,f,i);return{activeTooltipIndex:f,activeLabel:d,activePayload:h,activeCoordinate:p}}return null},pSe=function(t,n){var r=n.axes,a=n.graphicalItems,i=n.axisType,s=n.axisIdKey,o=n.stackGroups,l=n.dataStartIndex,c=n.dataEndIndex,f=t.layout,d=t.children,h=t.stackOffset,p=Ek(f,i);return r.reduce(function(v,y){var b,m=y.type.defaultProps!==void 0?I(I({},y.type.defaultProps),y.props):y.props,g=m.type,x=m.dataKey,w=m.allowDataOverflow,S=m.allowDuplicatedCategory,j=m.scale,O=m.ticks,E=m.includeHidden,T=m[s];if(v[T])return v;var _=_v(t.data,{graphicalItems:a.filter(function(Y){var re,ee=s in Y.props?Y.props[s]:(re=Y.type.defaultProps)===null||re===void 0?void 0:re[s];return ee===T}),dataStartIndex:l,dataEndIndex:c}),M=_.length,C,z,L;I1e(m.domain,w,g)&&(C=Ix(m.domain,null,w),p&&(g==="number"||j!=="auto")&&(L=Vu(_,x,"category")));var k=WL(g);if(!C||C.length===0){var R,$=(R=m.domain)!==null&&R!==void 0?R:k;if(x){if(C=Vu(_,x,g),g==="category"&&p){var B=uZ(C);S&&B?(z=C,C=Um(0,M)):S||(C=WN($,C,y).reduce(function(Y,re){return Y.indexOf(re)>=0?Y:[].concat(pc(Y),[re])},[]))}else if(g==="category")S?C=C.filter(function(Y){return Y!==""&&!pe(Y)}):C=WN($,C,y).reduce(function(Y,re){return Y.indexOf(re)>=0||re===""||pe(re)?Y:[].concat(pc(Y),[re])},[]);else if(g==="number"){var V=Ohe(_,a.filter(function(Y){var re,ee,be=s in Y.props?Y.props[s]:(re=Y.type.defaultProps)===null||re===void 0?void 0:re[s],Z="hide"in Y.props?Y.props.hide:(ee=Y.type.defaultProps)===null||ee===void 0?void 0:ee.hide;return be===T&&(E||!Z)}),x,i,f);V&&(C=V)}p&&(g==="number"||j!=="auto")&&(L=Vu(_,x,"category"))}else p?C=Um(0,M):o&&o[T]&&o[T].hasStack&&g==="number"?C=h==="expand"?[0,1]:Pk(o[T].stackGroups,l,c):C=Ok(_,a.filter(function(Y){var re=s in Y.props?Y.props[s]:Y.type.defaultProps[s],ee="hide"in Y.props?Y.props.hide:Y.type.defaultProps.hide;return re===T&&(E||!ee)}),g,f,!0);if(g==="number")C=A1(d,C,T,i,O),$&&(C=Ix($,C,w));else if(g==="category"&&$){var H=$,Q=C.every(function(Y){return H.indexOf(Y)>=0});Q&&(C=H)}}return I(I({},v),{},ue({},T,I(I({},m),{},{axisType:i,domain:C,categoricalDomain:L,duplicateDomain:z,originalDomain:(b=m.domain)!==null&&b!==void 0?b:k,isCategorical:p,layout:f})))},{})},mSe=function(t,n){var r=n.graphicalItems,a=n.Axis,i=n.axisType,s=n.axisIdKey,o=n.stackGroups,l=n.dataStartIndex,c=n.dataEndIndex,f=t.layout,d=t.children,h=_v(t.data,{graphicalItems:r,dataStartIndex:l,dataEndIndex:c}),p=h.length,v=Ek(f,i),y=-1;return r.reduce(function(b,m){var g=m.type.defaultProps!==void 0?I(I({},m.type.defaultProps),m.props):m.props,x=g[s],w=WL("number");if(!b[x]){y++;var S;return v?S=Um(0,p):o&&o[x]&&o[x].hasStack?(S=Pk(o[x].stackGroups,l,c),S=A1(d,S,x,i)):(S=Ix(w,Ok(h,r.filter(function(j){var O,E,T=s in j.props?j.props[s]:(O=j.type.defaultProps)===null||O===void 0?void 0:O[s],_="hide"in j.props?j.props.hide:(E=j.type.defaultProps)===null||E===void 0?void 0:E.hide;return T===x&&!_}),"number",f),a.defaultProps.allowDataOverflow),S=A1(d,S,x,i)),I(I({},b),{},ue({},x,I(I({axisType:i},a.defaultProps),{},{hide:!0,orientation:Kn(uSe,"".concat(i,".").concat(y%2),null),domain:S,originalDomain:w,isCategorical:v,layout:f})))}return b},{})},ySe=function(t,n){var r=n.axisType,a=r===void 0?"xAxis":r,i=n.AxisComp,s=n.graphicalItems,o=n.stackGroups,l=n.dataStartIndex,c=n.dataEndIndex,f=t.children,d="".concat(a,"Id"),h=Yn(f,i),p={};return h&&h.length?p=pSe(t,{axes:h,graphicalItems:s,axisType:a,axisIdKey:d,stackGroups:o,dataStartIndex:l,dataEndIndex:c}):s&&s.length&&(p=mSe(t,{Axis:i,graphicalItems:s,axisType:a,axisIdKey:d,stackGroups:o,dataStartIndex:l,dataEndIndex:c})),p},vSe=function(t){var n=mi(t),r=Ca(n,!1,!0);return{tooltipTicks:r,orderedTooltipTicks:lj(r,function(a){return a.coordinate}),tooltipAxis:n,tooltipAxisBandSize:Nm(n,r)}},NC=function(t){var n=t.children,r=t.defaultShowTooltip,a=$n(n,rc),i=0,s=0;return t.data&&t.data.length!==0&&(s=t.data.length-1),a&&a.props&&(a.props.startIndex>=0&&(i=a.props.startIndex),a.props.endIndex>=0&&(s=a.props.endIndex)),{chartX:0,chartY:0,dataStartIndex:i,dataEndIndex:s,activeTooltipIndex:-1,isTooltipActive:!!r}},gSe=function(t){return!t||!t.length?!1:t.some(function(n){var r=za(n&&n.type);return r&&r.indexOf("Bar")>=0})},_C=function(t){return t==="horizontal"?{numericAxisName:"yAxis",cateAxisName:"xAxis"}:t==="vertical"?{numericAxisName:"xAxis",cateAxisName:"yAxis"}:t==="centric"?{numericAxisName:"radiusAxis",cateAxisName:"angleAxis"}:{numericAxisName:"angleAxis",cateAxisName:"radiusAxis"}},bSe=function(t,n){var r=t.props,a=t.graphicalItems,i=t.xAxisMap,s=i===void 0?{}:i,o=t.yAxisMap,l=o===void 0?{}:o,c=r.width,f=r.height,d=r.children,h=r.margin||{},p=$n(d,rc),v=$n(d,Wr),y=Object.keys(l).reduce(function(S,j){var O=l[j],E=O.orientation;return!O.mirror&&!O.hide?I(I({},S),{},ue({},E,S[E]+O.width)):S},{left:h.left||0,right:h.right||0}),b=Object.keys(s).reduce(function(S,j){var O=s[j],E=O.orientation;return!O.mirror&&!O.hide?I(I({},S),{},ue({},E,Kn(S,"".concat(E))+O.height)):S},{top:h.top||0,bottom:h.bottom||0}),m=I(I({},b),y),g=m.bottom;p&&(m.bottom+=p.props.height||rc.defaultProps.height),v&&n&&(m=jhe(m,a,r,n));var x=c-m.left-m.right,w=f-m.top-m.bottom;return I(I({brushBottom:g},m),{},{width:Math.max(x,0),height:Math.max(w,0)})},xSe=function(t,n){if(n==="xAxis")return t[n].width;if(n==="yAxis")return t[n].height},Cv=function(t){var n=t.chartName,r=t.GraphicalChild,a=t.defaultTooltipEventType,i=a===void 0?"axis":a,s=t.validateTooltipEventTypes,o=s===void 0?["axis"]:s,l=t.axisComponents,c=t.legendContent,f=t.formatAxisMap,d=t.defaultProps,h=function(m,g){var x=g.graphicalItems,w=g.stackGroups,S=g.offset,j=g.updateId,O=g.dataStartIndex,E=g.dataEndIndex,T=m.barSize,_=m.layout,M=m.barGap,C=m.barCategoryGap,z=m.maxBarSize,L=_C(_),k=L.numericAxisName,R=L.cateAxisName,$=gSe(x),B=[];return x.forEach(function(V,H){var Q=_v(m.data,{graphicalItems:[V],dataStartIndex:O,dataEndIndex:E}),Y=V.type.defaultProps!==void 0?I(I({},V.type.defaultProps),V.props):V.props,re=Y.dataKey,ee=Y.maxBarSize,be=Y["".concat(k,"Id")],Z=Y["".concat(R,"Id")],it={},qe=l.reduce(function(fa,da){var jo=g["".concat(da.axisType,"Map")],le=Y["".concat(da.axisType,"Id")];jo&&jo[le]||da.axisType==="zAxis"||so();var Lt=jo[le];return I(I({},fa),{},ue(ue({},da.axisType,Lt),"".concat(da.axisType,"Ticks"),Ca(Lt)))},it),G=qe[R],oe=qe["".concat(R,"Ticks")],K=w&&w[be]&&w[be].hasStack&&Dhe(V,w[be].stackGroups),q=za(V.type).indexOf("Bar")>=0,Ce=Nm(G,oe),me=[],Ye=$&&She({barSize:T,stackGroups:w,totalSize:xSe(qe,R)});if(q){var st,ft,Pn=pe(ee)?z:ee,ni=(st=(ft=Nm(G,oe,!0))!==null&&ft!==void 0?ft:Pn)!==null&&st!==void 0?st:0;me=whe({barGap:M,barCategoryGap:C,bandSize:ni!==Ce?ni:Ce,sizeList:Ye[Z],maxBarSize:Pn}),ni!==Ce&&(me=me.map(function(fa){return I(I({},fa),{},{position:I(I({},fa.position),{},{offset:fa.position.offset-ni/2})})}))}var wo=V&&V.type&&V.type.getComposedData;wo&&B.push({props:I(I({},wo(I(I({},qe),{},{displayedData:Q,props:m,dataKey:re,item:V,bandSize:Ce,barPosition:me,offset:S,stackedData:K,layout:_,dataStartIndex:O,dataEndIndex:E}))),{},ue(ue(ue({key:V.key||"item-".concat(H)},k,qe[k]),R,qe[R]),"animationId",j)),childIndex:wZ(V,m.children),item:V})}),B},p=function(m,g){var x=m.props,w=m.dataStartIndex,S=m.dataEndIndex,j=m.updateId;if(!HE({props:x}))return null;var O=x.children,E=x.layout,T=x.stackOffset,_=x.data,M=x.reverseStackOrder,C=_C(E),z=C.numericAxisName,L=C.cateAxisName,k=Yn(O,r),R=Mhe(_,k,"".concat(z,"Id"),"".concat(L,"Id"),T,M),$=l.reduce(function(Y,re){var ee="".concat(re.axisType,"Map");return I(I({},Y),{},ue({},ee,ySe(x,I(I({},re),{},{graphicalItems:k,stackGroups:re.axisType===z&&R,dataStartIndex:w,dataEndIndex:S}))))},{}),B=bSe(I(I({},$),{},{props:x,graphicalItems:k}),g==null?void 0:g.legendBBox);Object.keys($).forEach(function(Y){$[Y]=f(x,$[Y],B,Y.replace("Map",""),n)});var V=$["".concat(L,"Map")],H=vSe(V),Q=h(x,I(I({},$),{},{dataStartIndex:w,dataEndIndex:S,updateId:j,graphicalItems:k,stackGroups:R,offset:B}));return I(I({formattedGraphicalItems:Q,graphicalItems:k,offset:B,stackGroups:R},H),$)},v=function(b){function m(g){var x,w,S;return J1e(this,m),S=nSe(this,m,[g]),ue(S,"eventEmitterSymbol",Symbol("rechartsEventEmitter")),ue(S,"accessibilityManager",new B1e),ue(S,"handleLegendBBoxUpdate",function(j){if(j){var O=S.state,E=O.dataStartIndex,T=O.dataEndIndex,_=O.updateId;S.setState(I({legendBBox:j},p({props:S.props,dataStartIndex:E,dataEndIndex:T,updateId:_},I(I({},S.state),{},{legendBBox:j}))))}}),ue(S,"handleReceiveSyncEvent",function(j,O,E){if(S.props.syncId===j){if(E===S.eventEmitterSymbol&&typeof S.props.syncMethod!="function")return;S.applySyncEvent(O)}}),ue(S,"handleBrushChange",function(j){var O=j.startIndex,E=j.endIndex;if(O!==S.state.dataStartIndex||E!==S.state.dataEndIndex){var T=S.state.updateId;S.setState(function(){return I({dataStartIndex:O,dataEndIndex:E},p({props:S.props,dataStartIndex:O,dataEndIndex:E,updateId:T},S.state))}),S.triggerSyncEvent({dataStartIndex:O,dataEndIndex:E})}}),ue(S,"handleMouseEnter",function(j){var O=S.getMouseInfo(j);if(O){var E=I(I({},O),{},{isTooltipActive:!0});S.setState(E),S.triggerSyncEvent(E);var T=S.props.onMouseEnter;de(T)&&T(E,j)}}),ue(S,"triggeredAfterMouseMove",function(j){var O=S.getMouseInfo(j),E=O?I(I({},O),{},{isTooltipActive:!0}):{isTooltipActive:!1};S.setState(E),S.triggerSyncEvent(E);var T=S.props.onMouseMove;de(T)&&T(E,j)}),ue(S,"handleItemMouseEnter",function(j){S.setState(function(){return{isTooltipActive:!0,activeItem:j,activePayload:j.tooltipPayload,activeCoordinate:j.tooltipPosition||{x:j.cx,y:j.cy}}})}),ue(S,"handleItemMouseLeave",function(){S.setState(function(){return{isTooltipActive:!1}})}),ue(S,"handleMouseMove",function(j){j.persist(),S.throttleTriggeredAfterMouseMove(j)}),ue(S,"handleMouseLeave",function(j){S.throttleTriggeredAfterMouseMove.cancel();var O={isTooltipActive:!1};S.setState(O),S.triggerSyncEvent(O);var E=S.props.onMouseLeave;de(E)&&E(O,j)}),ue(S,"handleOuterEvent",function(j){var O=SZ(j),E=Kn(S.props,"".concat(O));if(O&&de(E)){var T,_;/.*touch.*/i.test(O)?_=S.getMouseInfo(j.changedTouches[0]):_=S.getMouseInfo(j),E((T=_)!==null&&T!==void 0?T:{},j)}}),ue(S,"handleClick",function(j){var O=S.getMouseInfo(j);if(O){var E=I(I({},O),{},{isTooltipActive:!0});S.setState(E),S.triggerSyncEvent(E);var T=S.props.onClick;de(T)&&T(E,j)}}),ue(S,"handleMouseDown",function(j){var O=S.props.onMouseDown;if(de(O)){var E=S.getMouseInfo(j);O(E,j)}}),ue(S,"handleMouseUp",function(j){var O=S.props.onMouseUp;if(de(O)){var E=S.getMouseInfo(j);O(E,j)}}),ue(S,"handleTouchMove",function(j){j.changedTouches!=null&&j.changedTouches.length>0&&S.throttleTriggeredAfterMouseMove(j.changedTouches[0])}),ue(S,"handleTouchStart",function(j){j.changedTouches!=null&&j.changedTouches.length>0&&S.handleMouseDown(j.changedTouches[0])}),ue(S,"handleTouchEnd",function(j){j.changedTouches!=null&&j.changedTouches.length>0&&S.handleMouseUp(j.changedTouches[0])}),ue(S,"handleDoubleClick",function(j){var O=S.props.onDoubleClick;if(de(O)){var E=S.getMouseInfo(j);O(E,j)}}),ue(S,"handleContextMenu",function(j){var O=S.props.onContextMenu;if(de(O)){var E=S.getMouseInfo(j);O(E,j)}}),ue(S,"triggerSyncEvent",function(j){S.props.syncId!==void 0&&db.emit(hb,S.props.syncId,j,S.eventEmitterSymbol)}),ue(S,"applySyncEvent",function(j){var O=S.props,E=O.layout,T=O.syncMethod,_=S.state.updateId,M=j.dataStartIndex,C=j.dataEndIndex;if(j.dataStartIndex!==void 0||j.dataEndIndex!==void 0)S.setState(I({dataStartIndex:M,dataEndIndex:C},p({props:S.props,dataStartIndex:M,dataEndIndex:C,updateId:_},S.state)));else if(j.activeTooltipIndex!==void 0){var z=j.chartX,L=j.chartY,k=j.activeTooltipIndex,R=S.state,$=R.offset,B=R.tooltipTicks;if(!$)return;if(typeof T=="function")k=T(B,j);else if(T==="value"){k=-1;for(var V=0;V<B.length;V++)if(B[V].value===j.activeLabel){k=V;break}}var H=I(I({},$),{},{x:$.left,y:$.top}),Q=Math.min(z,H.x+H.width),Y=Math.min(L,H.y+H.height),re=B[k]&&B[k].value,ee=T1(S.state,S.props.data,k),be=B[k]?{x:E==="horizontal"?B[k].coordinate:Q,y:E==="horizontal"?Y:B[k].coordinate}:XL;S.setState(I(I({},j),{},{activeLabel:re,activeCoordinate:be,activePayload:ee,activeTooltipIndex:k}))}else S.setState(j)}),ue(S,"renderCursor",function(j){var O,E=S.state,T=E.isTooltipActive,_=E.activeCoordinate,M=E.activePayload,C=E.offset,z=E.activeTooltipIndex,L=E.tooltipAxisBandSize,k=S.getTooltipEventType(),R=(O=j.props.active)!==null&&O!==void 0?O:T,$=S.props.layout,B=j.key||"_recharts-cursor";return N.createElement(G1e,{key:B,activeCoordinate:_,activePayload:M,activeTooltipIndex:z,chartName:n,element:j,isActive:R,layout:$,offset:C,tooltipAxisBandSize:L,tooltipEventType:k})}),ue(S,"renderPolarAxis",function(j,O,E){var T=Kn(j,"type.axisType"),_=Kn(S.state,"".concat(T,"Map")),M=j.type.defaultProps,C=M!==void 0?I(I({},M),j.props):j.props,z=_&&_[C["".concat(T,"Id")]];return A.cloneElement(j,I(I({},z),{},{className:ye(T,z.className),key:j.key||"".concat(O,"-").concat(E),ticks:Ca(z,!0)}))}),ue(S,"renderPolarGrid",function(j){var O=j.props,E=O.radialLines,T=O.polarAngles,_=O.polarRadius,M=S.state,C=M.radiusAxisMap,z=M.angleAxisMap,L=mi(C),k=mi(z),R=k.cx,$=k.cy,B=k.innerRadius,V=k.outerRadius;return A.cloneElement(j,{polarAngles:Array.isArray(T)?T:Ca(k,!0).map(function(H){return H.coordinate}),polarRadius:Array.isArray(_)?_:Ca(L,!0).map(function(H){return H.coordinate}),cx:R,cy:$,innerRadius:B,outerRadius:V,key:j.key||"polar-grid",radialLines:E})}),ue(S,"renderLegend",function(){var j=S.state.formattedGraphicalItems,O=S.props,E=O.children,T=O.width,_=O.height,M=S.props.margin||{},C=T-(M.left||0)-(M.right||0),z=jk({children:E,formattedGraphicalItems:j,legendWidth:C,legendContent:c});if(!z)return null;var L=z.item,k=OC(z,K1e);return A.cloneElement(L,I(I({},k),{},{chartWidth:T,chartHeight:_,margin:M,onBBoxUpdate:S.handleLegendBBoxUpdate}))}),ue(S,"renderTooltip",function(){var j,O=S.props,E=O.children,T=O.accessibilityLayer,_=$n(E,zn);if(!_)return null;var M=S.state,C=M.isTooltipActive,z=M.activeCoordinate,L=M.activePayload,k=M.activeLabel,R=M.offset,$=(j=_.props.active)!==null&&j!==void 0?j:C;return A.cloneElement(_,{viewBox:I(I({},R),{},{x:R.left,y:R.top}),active:$,label:k,payload:$?L:[],coordinate:z,accessibilityLayer:T})}),ue(S,"renderBrush",function(j){var O=S.props,E=O.margin,T=O.data,_=S.state,M=_.offset,C=_.dataStartIndex,z=_.dataEndIndex,L=_.updateId;return A.cloneElement(j,{key:j.key||"_recharts-brush",onChange:Oh(S.handleBrushChange,j.props.onChange),data:T,x:F(j.props.x)?j.props.x:M.left,y:F(j.props.y)?j.props.y:M.top+M.height+M.brushBottom-(E.bottom||0),width:F(j.props.width)?j.props.width:M.width,startIndex:C,endIndex:z,updateId:"brush-".concat(L)})}),ue(S,"renderReferenceElement",function(j,O,E){if(!j)return null;var T=S,_=T.clipPathId,M=S.state,C=M.xAxisMap,z=M.yAxisMap,L=M.offset,k=j.type.defaultProps||{},R=j.props,$=R.xAxisId,B=$===void 0?k.xAxisId:$,V=R.yAxisId,H=V===void 0?k.yAxisId:V;return A.cloneElement(j,{key:j.key||"".concat(O,"-").concat(E),xAxis:C[B],yAxis:z[H],viewBox:{x:L.left,y:L.top,width:L.width,height:L.height},clipPathId:_})}),ue(S,"renderActivePoints",function(j){var O=j.item,E=j.activePoint,T=j.basePoint,_=j.childIndex,M=j.isRange,C=[],z=O.props.key,L=O.item.type.defaultProps!==void 0?I(I({},O.item.type.defaultProps),O.item.props):O.item.props,k=L.activeDot,R=L.dataKey,$=I(I({index:_,dataKey:R,cx:E.x,cy:E.y,r:4,fill:Dj(O.item),strokeWidth:2,stroke:"#fff",payload:E.payload,value:E.value},ie(k,!1)),Jp(k));return C.push(m.renderActiveDot(k,$,"".concat(z,"-activePoint-").concat(_))),T?C.push(m.renderActiveDot(k,I(I({},$),{},{cx:T.x,cy:T.y}),"".concat(z,"-basePoint-").concat(_))):M&&C.push(null),C}),ue(S,"renderGraphicChild",function(j,O,E){var T=S.filterFormatItem(j,O,E);if(!T)return null;var _=S.getTooltipEventType(),M=S.state,C=M.isTooltipActive,z=M.tooltipAxis,L=M.activeTooltipIndex,k=M.activeLabel,R=S.props.children,$=$n(R,zn),B=T.props,V=B.points,H=B.isRange,Q=B.baseLine,Y=T.item.type.defaultProps!==void 0?I(I({},T.item.type.defaultProps),T.item.props):T.item.props,re=Y.activeDot,ee=Y.hide,be=Y.activeBar,Z=Y.activeShape,it=!!(!ee&&C&&$&&(re||be||Z)),qe={};_!=="axis"&&$&&$.props.trigger==="click"?qe={onClick:Oh(S.handleItemMouseEnter,j.props.onClick)}:_!=="axis"&&(qe={onMouseLeave:Oh(S.handleItemMouseLeave,j.props.onMouseLeave),onMouseEnter:Oh(S.handleItemMouseEnter,j.props.onMouseEnter)});var G=A.cloneElement(j,I(I({},T.props),qe));function oe(da){return typeof z.dataKey=="function"?z.dataKey(da.payload):null}if(it)if(L>=0){var K,q;if(z.dataKey&&!z.allowDuplicatedCategory){var Ce=typeof z.dataKey=="function"?oe:"payload.".concat(z.dataKey.toString());K=Zp(V,Ce,k),q=H&&Q&&Zp(Q,Ce,k)}else K=V==null?void 0:V[L],q=H&&Q&&Q[L];if(Z||be){var me=j.props.activeIndex!==void 0?j.props.activeIndex:L;return[A.cloneElement(j,I(I(I({},T.props),qe),{},{activeIndex:me})),null,null]}if(!pe(K))return[G].concat(pc(S.renderActivePoints({item:T,activePoint:K,basePoint:q,childIndex:L,isRange:H})))}else{var Ye,st=(Ye=S.getItemByXY(S.state.activeCoordinate))!==null&&Ye!==void 0?Ye:{graphicalItem:G},ft=st.graphicalItem,Pn=ft.item,ni=Pn===void 0?j:Pn,wo=ft.childIndex,fa=I(I(I({},T.props),qe),{},{activeIndex:wo});return[A.cloneElement(ni,fa),null,null]}return H?[G,null,null]:[G,null]}),ue(S,"renderCustomized",function(j,O,E){return A.cloneElement(j,I(I({key:"recharts-customized-".concat(E)},S.props),S.state))}),ue(S,"renderMap",{CartesianGrid:{handler:Ch,once:!0},ReferenceArea:{handler:S.renderReferenceElement},ReferenceLine:{handler:Ch},ReferenceDot:{handler:S.renderReferenceElement},XAxis:{handler:Ch},YAxis:{handler:Ch},Brush:{handler:S.renderBrush,once:!0},Bar:{handler:S.renderGraphicChild},Line:{handler:S.renderGraphicChild},Area:{handler:S.renderGraphicChild},Radar:{handler:S.renderGraphicChild},RadialBar:{handler:S.renderGraphicChild},Scatter:{handler:S.renderGraphicChild},Pie:{handler:S.renderGraphicChild},Funnel:{handler:S.renderGraphicChild},Tooltip:{handler:S.renderCursor,once:!0},PolarGrid:{handler:S.renderPolarGrid,once:!0},PolarAngleAxis:{handler:S.renderPolarAxis},PolarRadiusAxis:{handler:S.renderPolarAxis},Customized:{handler:S.renderCustomized}}),S.clipPathId="".concat((x=g.id)!==null&&x!==void 0?x:vo("recharts"),"-clip"),S.throttleTriggeredAfterMouseMove=j4(S.triggeredAfterMouseMove,(w=g.throttleDelay)!==null&&w!==void 0?w:1e3/60),S.state={},S}return iSe(m,b),tSe(m,[{key:"componentDidMount",value:function(){var x,w;this.addListener(),this.accessibilityManager.setDetails({container:this.container,offset:{left:(x=this.props.margin.left)!==null&&x!==void 0?x:0,top:(w=this.props.margin.top)!==null&&w!==void 0?w:0},coordinateList:this.state.tooltipTicks,mouseHandlerCallback:this.triggeredAfterMouseMove,layout:this.props.layout}),this.displayDefaultTooltip()}},{key:"displayDefaultTooltip",value:function(){var x=this.props,w=x.children,S=x.data,j=x.height,O=x.layout,E=$n(w,zn);if(E){var T=E.props.defaultIndex;if(!(typeof T!="number"||T<0||T>this.state.tooltipTicks.length-1)){var _=this.state.tooltipTicks[T]&&this.state.tooltipTicks[T].value,M=T1(this.state,S,T,_),C=this.state.tooltipTicks[T].coordinate,z=(this.state.offset.top+j)/2,L=O==="horizontal",k=L?{x:C,y:z}:{y:C,x:z},R=this.state.formattedGraphicalItems.find(function(B){var V=B.item;return V.type.name==="Scatter"});R&&(k=I(I({},k),R.props.points[T].tooltipPosition),M=R.props.points[T].tooltipPayload);var $={activeTooltipIndex:T,isTooltipActive:!0,activeLabel:_,activePayload:M,activeCoordinate:k};this.setState($),this.renderCursor(E),this.accessibilityManager.setIndex(T)}}}},{key:"getSnapshotBeforeUpdate",value:function(x,w){if(!this.props.accessibilityLayer)return null;if(this.state.tooltipTicks!==w.tooltipTicks&&this.accessibilityManager.setDetails({coordinateList:this.state.tooltipTicks}),this.props.layout!==x.layout&&this.accessibilityManager.setDetails({layout:this.props.layout}),this.props.margin!==x.margin){var S,j;this.accessibilityManager.setDetails({offset:{left:(S=this.props.margin.left)!==null&&S!==void 0?S:0,top:(j=this.props.margin.top)!==null&&j!==void 0?j:0}})}return null}},{key:"componentDidUpdate",value:function(x){tx([$n(x.children,zn)],[$n(this.props.children,zn)])||this.displayDefaultTooltip()}},{key:"componentWillUnmount",value:function(){this.removeListener(),this.throttleTriggeredAfterMouseMove.cancel()}},{key:"getTooltipEventType",value:function(){var x=$n(this.props.children,zn);if(x&&typeof x.props.shared=="boolean"){var w=x.props.shared?"axis":"item";return o.indexOf(w)>=0?w:i}return i}},{key:"getMouseInfo",value:function(x){if(!this.container)return null;var w=this.container,S=w.getBoundingClientRect(),j=Yle(S),O={chartX:Math.round(x.pageX-j.left),chartY:Math.round(x.pageY-j.top)},E=S.width/w.offsetWidth||1,T=this.inRange(O.chartX,O.chartY,E);if(!T)return null;var _=this.state,M=_.xAxisMap,C=_.yAxisMap,z=this.getTooltipEventType(),L=TC(this.state,this.props.data,this.props.layout,T);if(z!=="axis"&&M&&C){var k=mi(M).scale,R=mi(C).scale,$=k&&k.invert?k.invert(O.chartX):null,B=R&&R.invert?R.invert(O.chartY):null;return I(I({},O),{},{xValue:$,yValue:B},L)}return L?I(I({},O),L):null}},{key:"inRange",value:function(x,w){var S=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,j=this.props.layout,O=x/S,E=w/S;if(j==="horizontal"||j==="vertical"){var T=this.state.offset,_=O>=T.left&&O<=T.left+T.width&&E>=T.top&&E<=T.top+T.height;return _?{x:O,y:E}:null}var M=this.state,C=M.angleAxisMap,z=M.radiusAxisMap;if(C&&z){var L=mi(C);return JN({x:O,y:E},L)}return null}},{key:"parseEventsOfWrapper",value:function(){var x=this.props.children,w=this.getTooltipEventType(),S=$n(x,zn),j={};S&&w==="axis"&&(S.props.trigger==="click"?j={onClick:this.handleClick}:j={onMouseEnter:this.handleMouseEnter,onDoubleClick:this.handleDoubleClick,onMouseMove:this.handleMouseMove,onMouseLeave:this.handleMouseLeave,onTouchMove:this.handleTouchMove,onTouchStart:this.handleTouchStart,onTouchEnd:this.handleTouchEnd,onContextMenu:this.handleContextMenu});var O=Jp(this.props,this.handleOuterEvent);return I(I({},O),j)}},{key:"addListener",value:function(){db.on(hb,this.handleReceiveSyncEvent)}},{key:"removeListener",value:function(){db.removeListener(hb,this.handleReceiveSyncEvent)}},{key:"filterFormatItem",value:function(x,w,S){for(var j=this.state.formattedGraphicalItems,O=0,E=j.length;O<E;O++){var T=j[O];if(T.item===x||T.props.key===x.key||w===za(T.item.type)&&S===T.childIndex)return T}return null}},{key:"renderClipPath",value:function(){var x=this.clipPathId,w=this.state.offset,S=w.left,j=w.top,O=w.height,E=w.width;return N.createElement("defs",null,N.createElement("clipPath",{id:x},N.createElement("rect",{x:S,y:j,height:O,width:E})))}},{key:"getXScales",value:function(){var x=this.state.xAxisMap;return x?Object.entries(x).reduce(function(w,S){var j=AC(S,2),O=j[0],E=j[1];return I(I({},w),{},ue({},O,E.scale))},{}):null}},{key:"getYScales",value:function(){var x=this.state.yAxisMap;return x?Object.entries(x).reduce(function(w,S){var j=AC(S,2),O=j[0],E=j[1];return I(I({},w),{},ue({},O,E.scale))},{}):null}},{key:"getXScaleByAxisId",value:function(x){var w;return(w=this.state.xAxisMap)===null||w===void 0||(w=w[x])===null||w===void 0?void 0:w.scale}},{key:"getYScaleByAxisId",value:function(x){var w;return(w=this.state.yAxisMap)===null||w===void 0||(w=w[x])===null||w===void 0?void 0:w.scale}},{key:"getItemByXY",value:function(x){var w=this.state,S=w.formattedGraphicalItems,j=w.activeItem;if(S&&S.length)for(var O=0,E=S.length;O<E;O++){var T=S[O],_=T.props,M=T.item,C=M.type.defaultProps!==void 0?I(I({},M.type.defaultProps),M.props):M.props,z=za(M.type);if(z==="Bar"){var L=(_.data||[]).find(function(B){return Dye(x,B)});if(L)return{graphicalItem:T,payload:L}}else if(z==="RadialBar"){var k=(_.data||[]).find(function(B){return JN(x,B)});if(k)return{graphicalItem:T,payload:k}}else if(wv(T,j)||jv(T,j)||Xf(T,j)){var R=wge({graphicalItem:T,activeTooltipItem:j,itemData:C.data}),$=C.activeIndex===void 0?R:C.activeIndex;return{graphicalItem:I(I({},T),{},{childIndex:$}),payload:Xf(T,j)?C.data[R]:T.props.data[R]}}}return null}},{key:"render",value:function(){var x=this;if(!HE(this))return null;var w=this.props,S=w.children,j=w.className,O=w.width,E=w.height,T=w.style,_=w.compact,M=w.title,C=w.desc,z=OC(w,Y1e),L=ie(z,!1);if(_)return N.createElement(aC,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},N.createElement(rx,nl({},L,{width:O,height:E,title:M,desc:C}),this.renderClipPath(),GE(S,this.renderMap)));if(this.props.accessibilityLayer){var k,R;L.tabIndex=(k=this.props.tabIndex)!==null&&k!==void 0?k:0,L.role=(R=this.props.role)!==null&&R!==void 0?R:"application",L.onKeyDown=function(B){x.accessibilityManager.keyboardEvent(B)},L.onFocus=function(){x.accessibilityManager.focus()}}var $=this.parseEventsOfWrapper();return N.createElement(aC,{state:this.state,width:this.props.width,height:this.props.height,clipPathId:this.clipPathId},N.createElement("div",nl({className:ye("recharts-wrapper",j),style:I({position:"relative",cursor:"default",width:O,height:E},T)},$,{ref:function(V){x.container=V}}),N.createElement(rx,nl({},L,{width:O,height:E,title:M,desc:C,style:fSe}),this.renderClipPath(),GE(S,this.renderMap)),this.renderLegend(),this.renderTooltip()))}}])}(A.Component);ue(v,"displayName",n),ue(v,"defaultProps",I({layout:"horizontal",stackOffset:"none",barCategoryGap:"10%",barGap:4,margin:{top:5,right:5,bottom:5,left:5},reverseStackOrder:!1,syncMethod:"index"},d)),ue(v,"getDerivedStateFromProps",function(b,m){var g=b.dataKey,x=b.data,w=b.children,S=b.width,j=b.height,O=b.layout,E=b.stackOffset,T=b.margin,_=m.dataStartIndex,M=m.dataEndIndex;if(m.updateId===void 0){var C=NC(b);return I(I(I({},C),{},{updateId:0},p(I(I({props:b},C),{},{updateId:0}),m)),{},{prevDataKey:g,prevData:x,prevWidth:S,prevHeight:j,prevLayout:O,prevStackOffset:E,prevMargin:T,prevChildren:w})}if(g!==m.prevDataKey||x!==m.prevData||S!==m.prevWidth||j!==m.prevHeight||O!==m.prevLayout||E!==m.prevStackOffset||!fl(T,m.prevMargin)){var z=NC(b),L={chartX:m.chartX,chartY:m.chartY,isTooltipActive:m.isTooltipActive},k=I(I({},TC(m,x,O)),{},{updateId:m.updateId+1}),R=I(I(I({},z),L),k);return I(I(I({},R),p(I({props:b},R),m)),{},{prevDataKey:g,prevData:x,prevWidth:S,prevHeight:j,prevLayout:O,prevStackOffset:E,prevMargin:T,prevChildren:w})}if(!tx(w,m.prevChildren)){var $,B,V,H,Q=$n(w,rc),Y=Q&&($=(B=Q.props)===null||B===void 0?void 0:B.startIndex)!==null&&$!==void 0?$:_,re=Q&&(V=(H=Q.props)===null||H===void 0?void 0:H.endIndex)!==null&&V!==void 0?V:M,ee=Y!==_||re!==M,be=!pe(x),Z=be&&!ee?m.updateId:m.updateId+1;return I(I({updateId:Z},p(I(I({props:b},m),{},{updateId:Z,dataStartIndex:Y,dataEndIndex:re}),m)),{},{prevChildren:w,dataStartIndex:Y,dataEndIndex:re})}return null}),ue(v,"renderActiveDot",function(b,m,g){var x;return A.isValidElement(b)?x=A.cloneElement(b,m):de(b)?x=b(m):x=N.createElement(Bd,m),N.createElement(je,{className:"recharts-active-dot",key:g},x)});var y=A.forwardRef(function(m,g){return N.createElement(v,nl({},m,{ref:g}))});return y.displayName=v.displayName,y},SSe=Cv({chartName:"LineChart",GraphicalChild:Id,axisComponents:[{axisType:"xAxis",AxisComp:qi},{axisType:"yAxis",AxisComp:Vi}],formatAxisMap:kj}),wSe=Cv({chartName:"BarChart",GraphicalChild:So,defaultTooltipEventType:"axis",validateTooltipEventTypes:["axis","item"],axisComponents:[{axisType:"xAxis",AxisComp:qi},{axisType:"yAxis",AxisComp:Vi}],formatAxisMap:kj}),jSe=Cv({chartName:"PieChart",GraphicalChild:ti,validateTooltipEventTypes:["item"],defaultTooltipEventType:"item",legendContent:"children",axisComponents:[{axisType:"angleAxis",AxisComp:Sv},{axisType:"radiusAxis",AxisComp:bv}],formatAxisMap:Hhe,defaultProps:{layout:"centric",startAngle:0,endAngle:360,cx:"50%",cy:"50%",innerRadius:0,outerRadius:"80%"}}),ASe=Cv({chartName:"AreaChart",GraphicalChild:rs,axisComponents:[{axisType:"xAxis",AxisComp:qi},{axisType:"yAxis",AxisComp:Vi}],formatAxisMap:kj});const Ur=["#00a0c8","#3ddc97","#f59e0b","#ef4444","#8b5cf6","#06b6d4","#ec4899","#e84a7f"],Po={fontSize:11,fill:"#94a3b8"},Ph={background:"#0f172a",border:"1px solid #1e293b",borderRadius:8,fontSize:12,color:"#e2e8f0"};function Pa({type:e="BAR",rows:t,dataKeys:n,xKey:r="name",height:a=260}){if(!t||!t.length)return u.jsx("div",{className:"flex items-center justify-center text-slate-500 text-sm",style:{height:a},children:"데이터 없음"});const i=(e||"BAR").toUpperCase();if(i==="PIE"){const s=n[0];return u.jsx(xh,{width:"100%",height:a,children:u.jsxs(jSe,{children:[u.jsx(ti,{data:t,dataKey:s,nameKey:r,outerRadius:a/2.8,innerRadius:a/5,children:t.map((o,l)=>u.jsx(ov,{fill:Ur[l%Ur.length]},l))}),u.jsx(zn,{contentStyle:Ph}),u.jsx(Wr,{wrapperStyle:{fontSize:11}})]})})}return i==="LINE"?u.jsx(xh,{width:"100%",height:a,children:u.jsxs(SSe,{data:t,children:[u.jsx(sp,{strokeDasharray:"3 3",stroke:"#1e293b"}),u.jsx(qi,{dataKey:r,tick:Po}),u.jsx(Vi,{tick:Po}),u.jsx(zn,{contentStyle:Ph}),u.jsx(Wr,{wrapperStyle:{fontSize:11}}),n.map((s,o)=>u.jsx(Id,{type:"monotone",dataKey:s,stroke:Ur[o%Ur.length],strokeWidth:2,dot:!1},s))]})}):i==="AREA"?u.jsx(xh,{width:"100%",height:a,children:u.jsxs(ASe,{data:t,children:[u.jsx(sp,{strokeDasharray:"3 3",stroke:"#1e293b"}),u.jsx(qi,{dataKey:r,tick:Po}),u.jsx(Vi,{tick:Po}),u.jsx(zn,{contentStyle:Ph}),u.jsx(Wr,{wrapperStyle:{fontSize:11}}),n.map((s,o)=>u.jsx(rs,{type:"monotone",dataKey:s,stroke:Ur[o%Ur.length],fill:Ur[o%Ur.length],fillOpacity:.18,strokeWidth:2},s))]})}):u.jsx(xh,{width:"100%",height:a,children:u.jsxs(wSe,{data:t,children:[u.jsx(sp,{strokeDasharray:"3 3",stroke:"#1e293b"}),u.jsx(qi,{dataKey:r,tick:Po}),u.jsx(Vi,{tick:Po}),u.jsx(zn,{contentStyle:Ph,cursor:{fill:"#1e293b55"}}),u.jsx(Wr,{wrapperStyle:{fontSize:11}}),n.map((s,o)=>u.jsx(So,{dataKey:s,fill:Ur[o%Ur.length],radius:[3,3,0,0]},s))]})})}function Mh({icon:e,label:t,value:n,sub:r}){return u.jsxs("div",{className:"bg-card border border-edge rounded-xl p-5",children:[u.jsxs("div",{className:"flex items-center justify-between mb-2",children:[u.jsx("span",{className:"text-xs text-slate-400",children:t}),u.jsx(e,{size:18,className:"text-brand"})]}),u.jsx("div",{className:"text-2xl font-bold",children:n}),r&&u.jsx("div",{className:"text-xs text-slate-500 mt-1",children:r})]})}function OSe(){const{data:e}=se({queryKey:["adash"],queryFn:()=>sK(1,500)}),{data:t}=se({queryKey:["store-sales"],queryFn:()=>Q$(7)}),{data:n}=se({queryKey:["trend"],queryFn:()=>Z$(14)}),{data:r}=se({queryKey:["top"],queryFn:()=>J$(8)}),a=(e==null?void 0:e.today)||{},i=(t||[]).map(l=>({name:l.storeCode||l.storeName,매출:l.sales,주문:l.orderCount})),s=(n||[]).map(l=>({name:(l.date||"").slice(5),매출:l.sales,주문:l.orderCount})),o=(r||[]).map(l=>({name:l.name,판매량:l.salesCount}));return u.jsxs("div",{children:[u.jsx("h1",{className:"text-xl font-bold mb-5",children:"대시보드"}),u.jsxs("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-4 mb-6",children:[u.jsx(Mh,{icon:wH,label:"오늘 매출",value:Oe(a.totalSales)}),u.jsx(Mh,{icon:_w,label:"오늘 주문",value:`${a.orderCount||0}건`}),u.jsx(Mh,{icon:RH,label:"매장 수",value:`${((e==null?void 0:e.storeRanking)||[]).length}개`,sub:"활성 매장 매출 랭킹"}),u.jsx(Mh,{icon:Ga,label:"대형 주문",value:`${((e==null?void 0:e.bigOrders)||[]).length}건`,sub:"$500+ 고가 주문"})]}),u.jsxs("div",{className:"grid lg:grid-cols-2 gap-5 mb-6",children:[u.jsxs("div",{className:"bg-card border border-edge rounded-xl p-5",children:[u.jsx("h2",{className:"text-sm font-semibold mb-3",children:"매장별 매출 (최근 7일)"}),u.jsx(Pa,{type:"BAR",rows:i,dataKeys:["매출","주문"]})]}),u.jsxs("div",{className:"bg-card border border-edge rounded-xl p-5",children:[u.jsx("h2",{className:"text-sm font-semibold mb-3",children:"매출 추이 (14일)"}),u.jsx(Pa,{type:"AREA",rows:s,dataKeys:["매출"]})]})]}),u.jsxs("div",{className:"grid lg:grid-cols-2 gap-5",children:[u.jsxs("div",{className:"bg-card border border-edge rounded-xl p-5",children:[u.jsx("h2",{className:"text-sm font-semibold mb-3",children:"베스트셀러"}),u.jsx(Pa,{type:"BAR",rows:o,dataKeys:["판매량"]})]}),u.jsxs("div",{className:"bg-card border border-edge rounded-xl p-5",children:[u.jsx("h2",{className:"text-sm font-semibold mb-3",children:"매장 매출 랭킹"}),u.jsxs("table",{className:"w-full text-sm",children:[u.jsx("thead",{children:u.jsxs("tr",{className:"text-slate-400 text-xs border-b border-edge",children:[u.jsx("th",{className:"text-left py-2",children:"매장"}),u.jsx("th",{className:"text-right",children:"매출"}),u.jsx("th",{className:"text-right",children:"주문"})]})}),u.jsxs("tbody",{children:[((e==null?void 0:e.storeRanking)||[]).map((l,c)=>u.jsxs("tr",{className:"border-b border-edge/50",children:[u.jsx("td",{className:"py-2",children:l.storeName||l.storeCode}),u.jsx("td",{className:"text-right",children:Oe(l.sales)}),u.jsx("td",{className:"text-right text-slate-400",children:l.orderCount})]},c)),!((e==null?void 0:e.storeRanking)||[]).length&&u.jsx("tr",{children:u.jsx("td",{colSpan:3,className:"text-center text-slate-500 py-6",children:"데이터 없음"})})]})]})]})]})]})}function ESe(){const e=tn(),{data:t}=se({queryKey:["admin-stores"],queryFn:()=>mo(!1)}),n=async(r,a)=>{await NG(r,!a).catch(()=>{}),e.invalidateQueries({queryKey:["admin-stores"]})};return u.jsxs("div",{children:[u.jsxs("div",{className:"flex items-center gap-2 mb-5",children:[u.jsx(Ed,{className:"text-brand",size:22}),u.jsx("h1",{className:"text-xl font-bold",children:"매장 관리"})]}),u.jsx("div",{className:"bg-card border border-edge rounded-xl overflow-hidden",children:u.jsxs("table",{className:"w-full text-sm",children:[u.jsx("thead",{children:u.jsxs("tr",{className:"text-slate-400 text-xs border-b border-edge bg-panel",children:[u.jsx("th",{className:"text-left p-3",children:"코드"}),u.jsx("th",{className:"text-left",children:"매장"}),u.jsx("th",{className:"text-left",children:"지역"}),u.jsx("th",{className:"text-left",children:"영업시간"}),u.jsx("th",{className:"text-right",children:"당일마감"}),u.jsx("th",{className:"text-right",children:"반경(mi)"}),u.jsx("th",{className:"text-right",children:"일용량"}),u.jsx("th",{className:"text-center",children:"상태"})]})}),u.jsxs("tbody",{children:[(t||[]).map(r=>u.jsxs("tr",{className:"border-b border-edge/50 hover:bg-panel/50",children:[u.jsx("td",{className:"p-3 font-mono text-xs text-brand",children:r.code}),u.jsx("td",{children:r.name}),u.jsxs("td",{className:"text-slate-400",children:[r.city,", ",r.state," ",r.zip]}),u.jsxs("td",{className:"text-slate-400",children:[r.openTime,"–",r.closeTime]}),u.jsx("td",{className:"text-right text-slate-400",children:r.sameDayCutoff}),u.jsx("td",{className:"text-right text-slate-400",children:r.deliveryRadiusMi}),u.jsx("td",{className:"text-right text-slate-400",children:r.dailyCapacity}),u.jsx("td",{className:"text-center",children:u.jsxs("button",{onClick:()=>n(r.id,r.active),className:`inline-flex items-center gap-1 px-2 py-1 rounded text-xs ${r.active?"bg-emerald-500/15 text-emerald-400":"bg-slate-600/20 text-slate-400"}`,children:[u.jsx(NH,{size:12})," ",r.active?"운영":"중지"]})})]},r.id)),!(t||[]).length&&u.jsx("tr",{children:u.jsx("td",{colSpan:8,className:"text-center text-slate-500 py-8",children:"매장이 없습니다."})})]})]})})]})}function TSe(){const e=tn(),[t,n]=A.useState(""),{data:r}=se({queryKey:["admin-products",t],queryFn:()=>Ul({keyword:t,size:100,status:""})}),a=(r==null?void 0:r.items)||[],i=async(s,o)=>{await PG(s,o==="ACTIVE"?"HIDDEN":"ACTIVE").catch(()=>{}),e.invalidateQueries({queryKey:["admin-products"]})};return u.jsxs("div",{children:[u.jsxs("div",{className:"flex items-center justify-between mb-5",children:[u.jsxs("div",{className:"flex items-center gap-2",children:[u.jsx(ut,{className:"text-brand",size:22}),u.jsx("h1",{className:"text-xl font-bold",children:"상품 관리"})]}),u.jsxs("div",{className:"flex items-center gap-2 bg-card border border-edge rounded-lg px-3 py-2",children:[u.jsx(Tw,{size:15,className:"text-slate-500"}),u.jsx("input",{value:t,onChange:s=>n(s.target.value),placeholder:"상품 검색",className:"bg-transparent text-sm outline-none w-48"})]})]}),u.jsx("div",{className:"bg-card border border-edge rounded-xl overflow-hidden",children:u.jsxs("table",{className:"w-full text-sm",children:[u.jsx("thead",{children:u.jsxs("tr",{className:"text-slate-400 text-xs border-b border-edge bg-panel",children:[u.jsx("th",{className:"text-left p-3",children:"SKU"}),u.jsx("th",{className:"text-left",children:"상품명"}),u.jsx("th",{className:"text-left",children:"상황"}),u.jsx("th",{className:"text-right",children:"가격"}),u.jsx("th",{className:"text-right",children:"재고"}),u.jsx("th",{className:"text-right",children:"판매"}),u.jsx("th",{className:"text-right",children:"평점"}),u.jsx("th",{className:"text-center",children:"상태"})]})}),u.jsxs("tbody",{children:[a.map(s=>{var o;return u.jsxs("tr",{className:"border-b border-edge/50 hover:bg-panel/50",children:[u.jsx("td",{className:"p-3 font-mono text-xs text-slate-400",children:s.sku}),u.jsx("td",{children:s.name}),u.jsx("td",{className:"text-slate-400",children:s.occasion||"-"}),u.jsx("td",{className:"text-right",children:Oe(s.salePrice&&s.salePrice>0?s.salePrice:s.price)}),u.jsx("td",{className:"text-right text-slate-400",children:s.stock}),u.jsx("td",{className:"text-right text-slate-400",children:s.salesCount}),u.jsx("td",{className:"text-right text-amber-400",children:((o=s.ratingAvg)==null?void 0:o.toFixed(1))||"-"}),u.jsx("td",{className:"text-center",children:u.jsx("button",{onClick:()=>i(s.id,s.status),children:u.jsx(Br,{status:s.status})})})]},s.id)}),!a.length&&u.jsx("tr",{children:u.jsx("td",{colSpan:8,className:"text-center text-slate-500 py-8",children:"상품이 없습니다."})})]})]})})]})}function NSe(){const e=tn(),[t,n]=A.useState(0),{data:r}=se({queryKey:["inv-stores"],queryFn:()=>mo(!1)});A.useEffect(()=>{!t&&(r!=null&&r.length)&&n(r[0].id)},[r]);const{data:a}=se({queryKey:["store-inv",t],queryFn:()=>RG(t),enabled:!!t}),i=async(o,l)=>{await DG(t,o,!l).catch(()=>{}),e.invalidateQueries({queryKey:["store-inv",t]})},s=async(o,l)=>{await $G(t,o,l).catch(()=>{}),e.invalidateQueries({queryKey:["store-inv",t]})};return u.jsxs("div",{children:[u.jsxs("div",{className:"flex items-center justify-between mb-5",children:[u.jsxs("div",{className:"flex items-center gap-2",children:[u.jsx(i$,{className:"text-brand",size:22}),u.jsx("h1",{className:"text-xl font-bold",children:"매장별 재고 (ON/OFF)"})]}),u.jsx("select",{value:t,onChange:o=>n(Number(o.target.value)),className:"bg-card border border-edge rounded-lg px-3 py-2 text-sm",children:(r||[]).map(o=>u.jsx("option",{value:o.id,children:o.name},o.id))})]}),u.jsx("p",{className:"text-xs text-slate-500 mb-3",children:"OFF로 전환하면 해당 매장 지역에서 즉시 품절 처리됩니다."}),u.jsx("div",{className:"bg-card border border-edge rounded-xl overflow-hidden",children:u.jsxs("table",{className:"w-full text-sm",children:[u.jsx("thead",{children:u.jsxs("tr",{className:"text-slate-400 text-xs border-b border-edge bg-panel",children:[u.jsx("th",{className:"text-left p-3",children:"상품"}),u.jsx("th",{className:"text-right",children:"재고"}),u.jsx("th",{className:"text-center",children:"조정"}),u.jsx("th",{className:"text-center",children:"판매"})]})}),u.jsxs("tbody",{children:[(a||[]).map(o=>{const l=o.available!==!1;return u.jsxs("tr",{className:"border-b border-edge/50 hover:bg-panel/50",children:[u.jsx("td",{className:"p-3",children:o.productName||`상품 #${o.productId}`}),u.jsx("td",{className:"text-right text-slate-300",children:o.stock??o.quantity??"-"}),u.jsx("td",{className:"text-center",children:u.jsxs("div",{className:"inline-flex items-center gap-1",children:[u.jsx("button",{onClick:()=>s(o.productId,-1),className:"w-6 h-6 rounded bg-panel border border-edge text-slate-300",children:"−"}),u.jsx("button",{onClick:()=>s(o.productId,1),className:"w-6 h-6 rounded bg-panel border border-edge text-slate-300",children:"+"})]})}),u.jsx("td",{className:"text-center",children:u.jsx("button",{onClick:()=>i(o.productId,l),className:`px-3 py-1 rounded-full text-xs ${l?"bg-emerald-500/15 text-emerald-400":"bg-rose-500/15 text-rose-400"}`,children:l?"ON":"OFF"})})]},o.productId||o.id)}),!(a||[]).length&&u.jsx("tr",{children:u.jsx("td",{colSpan:4,className:"text-center text-slate-500 py-8",children:"재고 항목이 없습니다."})})]})]})})]})}const mb={PAID:"PREPARING",PREPARING:"SHIPPED",SHIPPED:"DELIVERED"};function _Se(){const e=tn(),[t,n]=A.useState(""),[r,a]=A.useState([]),[i,s]=A.useState(!1),o=A.useRef(null),{data:l}=se({queryKey:["admin-orders",t],queryFn:()=>VG(t,100)}),{data:c}=se({queryKey:["ord-stores"],queryFn:()=>mo(!1)});A.useEffect(()=>{try{const p=location.protocol==="https:"?"wss":"ws",v=new WebSocket(`${p}://${location.host}/ws/mall/orders`);return o.current=v,v.onopen=()=>s(!0),v.onclose=()=>s(!1),v.onmessage=y=>{try{const b=JSON.parse(y.data);a(m=>[b,...m].slice(0,12)),b.event==="ORDER_NEW"&&e.invalidateQueries({queryKey:["admin-orders"]})}catch{}},()=>v.close()}catch{s(!1)}},[]);const f=async p=>{const v=mb[p.status];v&&(await W$(p.id,v).catch(()=>{}),e.invalidateQueries({queryKey:["admin-orders"]}))},d=p=>{var v;return((v=c==null?void 0:c.find(y=>y.id===p))==null?void 0:v.code)||`#${p}`},h=l||[];return u.jsxs("div",{children:[u.jsxs("div",{className:"flex items-center justify-between mb-5",children:[u.jsxs("div",{className:"flex items-center gap-2",children:[u.jsx(_w,{className:"text-brand",size:22}),u.jsx("h1",{className:"text-xl font-bold",children:"주문 (라이브)"})]}),u.jsxs("div",{className:"flex items-center gap-3",children:[u.jsxs("span",{className:`flex items-center gap-1.5 text-xs ${i?"text-emerald-400":"text-slate-500"}`,children:[u.jsx(cE,{size:13})," ",i?"실시간 연결됨":"오프라인"]}),u.jsxs("select",{value:t,onChange:p=>n(p.target.value),className:"bg-card border border-edge rounded-lg px-3 py-2 text-sm",children:[u.jsx("option",{value:"",children:"전체"}),["PENDING","PAID","PREPARING","SHIPPED","DELIVERED","CONFIRMED","CANCELLED"].map(p=>u.jsx("option",{value:p,children:p},p))]})]})]}),!!r.length&&u.jsxs("div",{className:"bg-card border border-edge rounded-xl p-4 mb-5",children:[u.jsxs("div",{className:"text-xs text-slate-400 mb-2 flex items-center gap-1.5",children:[u.jsx(cE,{size:12,className:"text-brand"})," 실시간 이벤트"]}),u.jsx("div",{className:"flex flex-wrap gap-2",children:r.map((p,v)=>u.jsxs("span",{className:"text-xs bg-panel border border-edge rounded-full px-3 py-1 text-slate-300",children:[p.event==="ORDER_NEW"?"🆕":"🔄"," ",p.orderNo," · ",d(p.storeId)," · ",p.status," ",p.payAmount?`· ${Oe(p.payAmount)}`:""]},v))})]}),u.jsx("div",{className:"bg-card border border-edge rounded-xl overflow-hidden",children:u.jsxs("table",{className:"w-full text-sm",children:[u.jsx("thead",{children:u.jsxs("tr",{className:"text-slate-400 text-xs border-b border-edge bg-panel",children:[u.jsx("th",{className:"text-left p-3",children:"주문번호"}),u.jsx("th",{className:"text-left",children:"매장"}),u.jsx("th",{className:"text-left",children:"수령"}),u.jsx("th",{className:"text-left",children:"일정"}),u.jsx("th",{className:"text-left",children:"받는분"}),u.jsx("th",{className:"text-right",children:"금액"}),u.jsx("th",{className:"text-center",children:"상태"}),u.jsx("th",{className:"text-center",children:"처리"})]})}),u.jsxs("tbody",{children:[h.map(p=>u.jsxs("tr",{className:"border-b border-edge/50 hover:bg-panel/50",children:[u.jsx("td",{className:"p-3 font-mono text-xs text-brand",children:p.orderNo||`#${p.id}`}),u.jsx("td",{className:"text-slate-400",children:d(p.storeId)}),u.jsx("td",{children:p.fulfillmentType==="PICKUP"?u.jsxs("span",{className:"flex items-center gap-1 text-xs",children:[u.jsx(Ed,{size:12})," 픽업"]}):u.jsxs("span",{className:"flex items-center gap-1 text-xs",children:[u.jsx(Td,{size:12})," 배송"]})}),u.jsxs("td",{className:"text-slate-400 text-xs",children:[p.scheduledDate," ",p.slotLabel]}),u.jsx("td",{className:"text-slate-400",children:p.receiverName||"-"}),u.jsx("td",{className:"text-right",children:Oe(p.payAmount??p.totalAmount)}),u.jsx("td",{className:"text-center",children:u.jsx(Br,{status:p.status})}),u.jsx("td",{className:"text-center",children:mb[p.status]&&u.jsxs("button",{onClick:()=>f(p),className:"text-xs bg-brand text-ink font-semibold px-2.5 py-1 rounded",children:["→ ",mb[p.status]]})})]},p.id)),!h.length&&u.jsx("tr",{children:u.jsx("td",{colSpan:8,className:"text-center text-slate-500 py-8",children:"주문이 없습니다."})})]})]})})]})}function CSe(){const e=tn(),[t,n]=A.useState(""),[r,a]=A.useState([]),{data:i}=se({queryKey:["transfers",t],queryFn:()=>YG(t,"")}),{data:s}=se({queryKey:["tr-stores"],queryFn:()=>mo(!1)}),o=async d=>{await XG(d).catch(()=>{}),e.invalidateQueries({queryKey:["transfers"]})},l=async d=>{await WG(d).catch(()=>{}),e.invalidateQueries({queryKey:["transfers"]})},c=async()=>{const d=(s||[]).map(p=>p.id),h=await hK(d).catch(()=>[]);a(h||[])},f=d=>{var h;return((h=s==null?void 0:s.find(p=>p.id===d))==null?void 0:h.code)||`#${d}`};return u.jsxs("div",{children:[u.jsxs("div",{className:"flex items-center justify-between mb-5",children:[u.jsxs("div",{className:"flex items-center gap-2",children:[u.jsx(a$,{className:"text-brand",size:22}),u.jsx("h1",{className:"text-xl font-bold",children:"매장간 재고 이양"})]}),u.jsxs("div",{className:"flex items-center gap-2",children:[u.jsxs("button",{onClick:c,className:"flex items-center gap-1.5 bg-brand2 text-white text-sm px-3 py-2 rounded-lg",children:[u.jsx(gr,{size:14})," AI 이양 추천"]}),u.jsxs("select",{value:t,onChange:d=>n(d.target.value),className:"bg-card border border-edge rounded-lg px-3 py-2 text-sm",children:[u.jsx("option",{value:"",children:"전체"}),["REQUESTED","APPROVED","REJECTED","COMPLETED"].map(d=>u.jsx("option",{value:d,children:d},d))]})]})]}),!!r.length&&u.jsxs("div",{className:"bg-card border border-edge rounded-xl p-4 mb-5",children:[u.jsxs("div",{className:"text-xs text-brand mb-2 flex items-center gap-1.5",children:[u.jsx(gr,{size:12})," AI 추천 이양"]}),u.jsx("div",{className:"space-y-1.5 text-sm",children:r.map((d,h)=>u.jsxs("div",{className:"flex items-center justify-between text-slate-300",children:[u.jsxs("span",{children:["상품 #",d.productId,": ",f(d.fromStoreId)," → ",f(d.toStoreId)," ×",d.suggestedQty]}),u.jsx("span",{className:"text-xs text-slate-500",children:d.reason})]},h))})]}),u.jsx("div",{className:"bg-card border border-edge rounded-xl overflow-hidden",children:u.jsxs("table",{className:"w-full text-sm",children:[u.jsx("thead",{children:u.jsxs("tr",{className:"text-slate-400 text-xs border-b border-edge bg-panel",children:[u.jsx("th",{className:"text-left p-3",children:"ID"}),u.jsx("th",{className:"text-left",children:"출발→도착"}),u.jsx("th",{className:"text-left",children:"상품"}),u.jsx("th",{className:"text-right",children:"수량"}),u.jsx("th",{className:"text-left",children:"사유"}),u.jsx("th",{className:"text-center",children:"상태"}),u.jsx("th",{className:"text-center",children:"처리"})]})}),u.jsxs("tbody",{children:[(i||[]).map(d=>u.jsxs("tr",{className:"border-b border-edge/50 hover:bg-panel/50",children:[u.jsx("td",{className:"p-3 text-slate-400",children:d.id}),u.jsxs("td",{children:[f(d.fromStoreId)," → ",f(d.toStoreId)]}),u.jsxs("td",{className:"text-slate-400",children:["#",d.productId,d.aiRecommended&&u.jsx("span",{className:"ml-1 text-[10px] text-brand",children:"AI"})]}),u.jsx("td",{className:"text-right",children:d.quantity}),u.jsx("td",{className:"text-slate-400 text-xs",children:d.reason}),u.jsx("td",{className:"text-center",children:u.jsx(Br,{status:d.status})}),u.jsx("td",{className:"text-center",children:d.status==="REQUESTED"&&u.jsxs("div",{className:"inline-flex gap-1",children:[u.jsx("button",{onClick:()=>o(d.id),className:"text-xs bg-emerald-500/15 text-emerald-400 px-2 py-1 rounded",children:"승인"}),u.jsx("button",{onClick:()=>l(d.id),className:"text-xs bg-rose-500/15 text-rose-400 px-2 py-1 rounded",children:"반려"})]})})]},d.id)),!(i||[]).length&&u.jsx("tr",{children:u.jsx("td",{colSpan:7,className:"text-center text-slate-500 py-8",children:"이양 요청이 없습니다."})})]})]})})]})}function PSe(){const e=tn(),{data:t}=se({queryKey:["by-tier"],queryFn:()=>n5(30)}),n=async()=>{await TK().catch(()=>{}),e.invalidateQueries({queryKey:["by-tier"]})},r=(t||[]).map(a=>({name:a.tier,고객수:a.customers,매출:a.sales}));return u.jsxs("div",{children:[u.jsxs("div",{className:"flex items-center justify-between mb-5",children:[u.jsxs("div",{className:"flex items-center gap-2",children:[u.jsx(w$,{className:"text-brand",size:22}),u.jsx("h1",{className:"text-xl font-bold",children:"회원 (CRM)"})]}),u.jsxs("button",{onClick:n,className:"flex items-center gap-1.5 bg-card border border-edge text-sm px-3 py-2 rounded-lg text-slate-300 hover:text-brand",children:[u.jsx(Ew,{size:14})," 전체 등급 재계산"]})]}),u.jsxs("div",{className:"grid lg:grid-cols-2 gap-5 mb-5",children:[u.jsxs("div",{className:"bg-card border border-edge rounded-xl p-5",children:[u.jsx("h2",{className:"text-sm font-semibold mb-3",children:"등급별 고객 분포 (30일)"}),u.jsx(Pa,{type:"BAR",rows:r,dataKeys:["고객수"]})]}),u.jsxs("div",{className:"bg-card border border-edge rounded-xl p-5",children:[u.jsx("h2",{className:"text-sm font-semibold mb-3",children:"등급별 매출 기여"}),u.jsx(Pa,{type:"PIE",rows:(t||[]).map(a=>({name:a.tier,value:a.sales})),dataKeys:["value"]})]})]}),u.jsx("div",{className:"bg-card border border-edge rounded-xl overflow-hidden",children:u.jsxs("table",{className:"w-full text-sm",children:[u.jsx("thead",{children:u.jsxs("tr",{className:"text-slate-400 text-xs border-b border-edge bg-panel",children:[u.jsx("th",{className:"text-left p-3",children:"등급"}),u.jsx("th",{className:"text-right",children:"고객 수"}),u.jsx("th",{className:"text-right",children:"주문 수"}),u.jsx("th",{className:"text-right",children:"매출"})]})}),u.jsxs("tbody",{children:[(t||[]).map(a=>u.jsxs("tr",{className:"border-b border-edge/50",children:[u.jsx("td",{className:"p-3",children:u.jsx(Br,{status:a.tier})}),u.jsx("td",{className:"text-right",children:a.customers}),u.jsx("td",{className:"text-right text-slate-400",children:a.orderCount}),u.jsx("td",{className:"text-right",children:Oe(a.sales)})]},a.tier)),!(t||[]).length&&u.jsx("tr",{children:u.jsx("td",{colSpan:4,className:"text-center text-slate-500 py-8",children:"데이터 없음"})})]})]})})]})}function MSe(){const e=tn(),{data:t}=se({queryKey:["tiers-all"],queryFn:()=>jK(!1)}),[n,r]=A.useState(null),[a,i]=A.useState(""),[s,o]=A.useState(0),[l,c]=A.useState(""),[f,d]=A.useState(""),h=async()=>{n&&(await AK(n.id,n).catch(()=>{}),r(null),e.invalidateQueries({queryKey:["tiers-all"]}))},p=async()=>{if(!a||!s)return;const v=await EK(a,s,l).catch(()=>null);d(v?`${a} 포인트 조정 완료 · 잔액 ${v.balance}P`:"조정 실패"),i(""),o(0),c("")};return u.jsxs("div",{children:[u.jsxs("div",{className:"flex items-center gap-2 mb-5",children:[u.jsx(vf,{className:"text-brand",size:22}),u.jsx("h1",{className:"text-xl font-bold",children:"등급 · 포인트 관리"})]}),u.jsx("div",{className:"bg-card border border-edge rounded-xl overflow-hidden mb-6",children:u.jsxs("table",{className:"w-full text-sm",children:[u.jsx("thead",{children:u.jsxs("tr",{className:"text-slate-400 text-xs border-b border-edge bg-panel",children:[u.jsx("th",{className:"text-left p-3",children:"등급"}),u.jsx("th",{className:"text-right",children:"최소구매"}),u.jsx("th",{className:"text-right",children:"최소주문"}),u.jsx("th",{className:"text-right",children:"할인율"}),u.jsx("th",{className:"text-right",children:"적립률"}),u.jsx("th",{className:"text-right",children:"무료배송"}),u.jsx("th",{className:"text-center",children:"우선슬롯"}),u.jsx("th",{className:"text-center",children:"수정"})]})}),u.jsxs("tbody",{children:[(t||[]).map(v=>u.jsxs("tr",{className:"border-b border-edge/50",children:[u.jsxs("td",{className:"p-3",children:[u.jsx(Br,{status:v.tierCode})," ",u.jsx("span",{className:"text-slate-400 text-xs ml-1",children:v.name})]}),u.jsx("td",{className:"text-right",children:Oe(v.minSpend12m)}),u.jsx("td",{className:"text-right text-slate-400",children:v.minOrders12m}),u.jsxs("td",{className:"text-right",children:[v.discountRate,"%"]}),u.jsxs("td",{className:"text-right",children:[v.pointEarnRate,"%"]}),u.jsx("td",{className:"text-right text-slate-400",children:v.freeShipThreshold===0?"항상":v.freeShipThreshold?Oe(v.freeShipThreshold):"없음"}),u.jsx("td",{className:"text-center",children:v.prioritySlot?"✓":"–"}),u.jsx("td",{className:"text-center",children:u.jsx("button",{onClick:()=>r({...v}),className:"text-xs text-brand",children:"수정"})})]},v.id)),!(t||[]).length&&u.jsx("tr",{children:u.jsx("td",{colSpan:8,className:"text-center text-slate-500 py-8",children:"등급 정보가 없습니다."})})]})]})}),n&&u.jsxs("div",{className:"bg-card border border-edge rounded-xl p-5 mb-6",children:[u.jsxs("div",{className:"text-sm font-semibold mb-3",children:["등급 수정: ",n.name," (",n.tierCode,")"]}),u.jsxs("div",{className:"grid grid-cols-2 md:grid-cols-4 gap-3 text-sm",children:[u.jsx(Rh,{label:"최소구매($)",value:n.minSpend12m,onChange:v=>r({...n,minSpend12m:Number(v)})}),u.jsx(Rh,{label:"최소주문",value:n.minOrders12m,onChange:v=>r({...n,minOrders12m:Number(v)})}),u.jsx(Rh,{label:"할인율(%)",value:n.discountRate,onChange:v=>r({...n,discountRate:Number(v)})}),u.jsx(Rh,{label:"적립률(%)",value:n.pointEarnRate,onChange:v=>r({...n,pointEarnRate:Number(v)})})]}),u.jsxs("div",{className:"flex gap-2 mt-4",children:[u.jsx("button",{onClick:h,className:"bg-brand text-ink font-semibold px-5 py-2 rounded-lg text-sm",children:"저장"}),u.jsx("button",{onClick:()=>r(null),className:"border border-edge px-5 py-2 rounded-lg text-sm text-slate-400",children:"취소"})]})]}),u.jsxs("div",{className:"bg-card border border-edge rounded-xl p-5",children:[u.jsxs("div",{className:"flex items-center gap-2 text-sm font-semibold mb-3",children:[u.jsx(c$,{size:16,className:"text-brand"})," 포인트 수동 조정"]}),u.jsxs("div",{className:"grid grid-cols-4 gap-3",children:[u.jsx("input",{value:a,onChange:v=>i(v.target.value),placeholder:"고객 아이디",className:"bg-panel border border-edge rounded-lg px-3 py-2 text-sm"}),u.jsx("input",{type:"number",value:s||"",onChange:v=>o(Number(v.target.value)),placeholder:"포인트(+/-)",className:"bg-panel border border-edge rounded-lg px-3 py-2 text-sm"}),u.jsx("input",{value:l,onChange:v=>c(v.target.value),placeholder:"사유",className:"bg-panel border border-edge rounded-lg px-3 py-2 text-sm"}),u.jsx("button",{onClick:p,className:"bg-brand2 text-white rounded-lg px-3 py-2 text-sm font-semibold",children:"조정"})]}),f&&u.jsx("div",{className:"text-xs text-accent mt-2",children:f})]})]})}function Rh({label:e,value:t,onChange:n}){return u.jsxs("div",{children:[u.jsx("label",{className:"block text-[11px] text-slate-400 mb-1",children:e}),u.jsx("input",{value:t,onChange:r=>n(r.target.value),className:"w-full bg-panel border border-edge rounded-lg px-3 py-2"})]})}const RSe=["DISCOUNT","POINT_BONUS","GIFT","TIER_ONLY","SEASON"];function DSe(){const e=tn(),[t,n]=A.useState(""),[r,a]=A.useState(!1),[i,s]=A.useState(null),[o,l]=A.useState({code:"",title:"",eventType:"DISCOUNT",description:"",startDate:"",endDate:"",targetTiers:"",bonusPointRate:0}),[c,f]=A.useState(""),{data:d}=se({queryKey:["admin-events",t],queryFn:()=>PK(t,"",!1)}),h=()=>e.invalidateQueries({queryKey:["admin-events"]}),p=async()=>{await MK({...o,status:"DRAFT",banners:[]}).catch(()=>{}),a(!1),h()},v=async x=>{await RK(x).catch(()=>{}),h()},y=async x=>{await DK(x).catch(()=>{}),h()},b=async x=>{await $K(x).catch(()=>{}),h()},m=async x=>{const w=await kK(x).catch(()=>null);s(w)},g=async()=>{const x=await LK(o.eventType,o.title||"봄 시즌","friendly").catch(()=>null);x&&(l({...o,title:x.headline||o.title,description:x.subtext||o.description}),f(`AI 카피 생성 (${x.source})`))};return u.jsxs("div",{children:[u.jsxs("div",{className:"flex items-center justify-between mb-5",children:[u.jsxs("div",{className:"flex items-center gap-2",children:[u.jsx(bf,{className:"text-brand",size:22}),u.jsx("h1",{className:"text-xl font-bold",children:"이벤트 · 캠페인"})]}),u.jsxs("div",{className:"flex items-center gap-2",children:[u.jsxs("select",{value:t,onChange:x=>n(x.target.value),className:"bg-card border border-edge rounded-lg px-3 py-2 text-sm",children:[u.jsx("option",{value:"",children:"전체"}),["DRAFT","PUBLISHED","ENDED"].map(x=>u.jsx("option",{value:x,children:x},x))]}),u.jsxs("button",{onClick:()=>a(!r),className:"flex items-center gap-1.5 bg-brand text-ink text-sm font-semibold px-3 py-2 rounded-lg",children:[u.jsx(Ow,{size:15})," 새 이벤트"]})]})]}),r&&u.jsxs("div",{className:"bg-card border border-edge rounded-xl p-5 mb-5 space-y-3",children:[u.jsxs("div",{className:"grid grid-cols-3 gap-3",children:[u.jsx("input",{value:o.code,onChange:x=>l({...o,code:x.target.value}),placeholder:"코드",className:"bg-panel border border-edge rounded-lg px-3 py-2 text-sm"}),u.jsx("input",{value:o.title,onChange:x=>l({...o,title:x.target.value}),placeholder:"제목",className:"bg-panel border border-edge rounded-lg px-3 py-2 text-sm col-span-2"})]}),u.jsx("textarea",{value:o.description,onChange:x=>l({...o,description:x.target.value}),placeholder:"설명",rows:2,className:"w-full bg-panel border border-edge rounded-lg px-3 py-2 text-sm"}),u.jsxs("div",{className:"grid grid-cols-4 gap-3",children:[u.jsx("select",{value:o.eventType,onChange:x=>l({...o,eventType:x.target.value}),className:"bg-panel border border-edge rounded-lg px-3 py-2 text-sm",children:RSe.map(x=>u.jsx("option",{children:x},x))}),u.jsx("input",{type:"date",value:o.startDate,onChange:x=>l({...o,startDate:x.target.value}),className:"bg-panel border border-edge rounded-lg px-3 py-2 text-sm"}),u.jsx("input",{type:"date",value:o.endDate,onChange:x=>l({...o,endDate:x.target.value}),className:"bg-panel border border-edge rounded-lg px-3 py-2 text-sm"}),u.jsx("input",{value:o.targetTiers,onChange:x=>l({...o,targetTiers:x.target.value}),placeholder:"대상등급(GOLD,VIP)",className:"bg-panel border border-edge rounded-lg px-3 py-2 text-sm"})]}),u.jsxs("div",{className:"flex items-center gap-2",children:[u.jsxs("button",{onClick:g,className:"flex items-center gap-1.5 bg-brand2 text-white text-sm px-3 py-2 rounded-lg",children:[u.jsx(gr,{size:14})," AI 카피 생성"]}),c&&u.jsx("span",{className:"text-xs text-accent",children:c}),u.jsx("button",{onClick:p,className:"ml-auto bg-brand text-ink font-semibold text-sm px-5 py-2 rounded-lg",children:"생성"}),u.jsx("button",{onClick:()=>a(!1),className:"border border-edge text-slate-400 text-sm px-4 py-2 rounded-lg",children:"취소"})]})]}),i&&u.jsxs("div",{className:"bg-card border border-edge rounded-xl p-4 mb-5 flex items-center gap-6 text-sm",children:[u.jsxs("span",{className:"flex items-center gap-1.5 text-brand",children:[u.jsx(Aw,{size:15})," ",i.title]}),u.jsxs("span",{className:"text-slate-400",children:["참여 ",i.participations," · 참여자 ",i.participants]}),u.jsxs("span",{className:"text-slate-400",children:["연계주문 ",i.linkedOrders," · 기여매출 ",Oe(i.attributedSales)]}),u.jsx("button",{onClick:()=>s(null),className:"ml-auto text-slate-500 text-xs",children:"닫기"})]}),u.jsx("div",{className:"bg-card border border-edge rounded-xl overflow-hidden",children:u.jsxs("table",{className:"w-full text-sm",children:[u.jsx("thead",{children:u.jsxs("tr",{className:"text-slate-400 text-xs border-b border-edge bg-panel",children:[u.jsx("th",{className:"text-left p-3",children:"코드"}),u.jsx("th",{className:"text-left",children:"제목"}),u.jsx("th",{className:"text-left",children:"유형"}),u.jsx("th",{className:"text-left",children:"기간"}),u.jsx("th",{className:"text-left",children:"대상"}),u.jsx("th",{className:"text-center",children:"상태"}),u.jsx("th",{className:"text-center",children:"처리"})]})}),u.jsxs("tbody",{children:[(d||[]).map(x=>u.jsxs("tr",{className:"border-b border-edge/50 hover:bg-panel/50",children:[u.jsx("td",{className:"p-3 font-mono text-xs text-brand",children:x.code}),u.jsx("td",{children:x.title}),u.jsx("td",{className:"text-slate-400 text-xs",children:x.eventType}),u.jsxs("td",{className:"text-slate-400 text-xs",children:[x.startDate,"~",x.endDate]}),u.jsx("td",{className:"text-slate-400 text-xs",children:x.targetTiers||"전체"}),u.jsx("td",{className:"text-center",children:u.jsx(Br,{status:x.status})}),u.jsx("td",{className:"text-center",children:u.jsxs("div",{className:"inline-flex gap-1",children:[x.status==="DRAFT"&&u.jsx("button",{onClick:()=>v(x.id),className:"text-xs bg-emerald-500/15 text-emerald-400 px-2 py-1 rounded",children:"게시"}),x.status==="PUBLISHED"&&u.jsx("button",{onClick:()=>y(x.id),className:"text-xs bg-slate-600/20 text-slate-400 px-2 py-1 rounded",children:"종료"}),u.jsx("button",{onClick:()=>m(x.id),className:"text-xs bg-panel border border-edge text-slate-300 px-2 py-1 rounded",children:"성과"}),u.jsx("button",{onClick:()=>b(x.id),className:"text-xs bg-rose-500/15 text-rose-400 px-2 py-1 rounded",children:"삭제"})]})})]},x.id)),!(d||[]).length&&u.jsx("tr",{children:u.jsx("td",{colSpan:7,className:"text-center text-slate-500 py-8",children:"이벤트가 없습니다."})})]})]})})]})}function $Se(){const{data:e}=se({queryKey:["admin-subs"],queryFn:KG}),t=e||[];return u.jsxs("div",{children:[u.jsxs("div",{className:"flex items-center gap-2 mb-5",children:[u.jsx(My,{className:"text-brand",size:22}),u.jsx("h1",{className:"text-xl font-bold",children:"구독 관리"})]}),u.jsx("div",{className:"bg-card border border-edge rounded-xl overflow-hidden",children:u.jsxs("table",{className:"w-full text-sm",children:[u.jsx("thead",{children:u.jsxs("tr",{className:"text-slate-400 text-xs border-b border-edge bg-panel",children:[u.jsx("th",{className:"text-left p-3",children:"고객"}),u.jsx("th",{className:"text-left",children:"상품"}),u.jsx("th",{className:"text-left",children:"주기"}),u.jsx("th",{className:"text-left",children:"다음배송"}),u.jsx("th",{className:"text-right",children:"금액"}),u.jsx("th",{className:"text-center",children:"상태"})]})}),u.jsxs("tbody",{children:[t.map(n=>u.jsxs("tr",{className:"border-b border-edge/50 hover:bg-panel/50",children:[u.jsx("td",{className:"p-3",children:n.owner}),u.jsx("td",{className:"text-slate-400",children:n.productName||`#${n.productId}`}),u.jsx("td",{className:"text-slate-400",children:n.frequency}),u.jsx("td",{className:"text-slate-400",children:n.nextDeliveryDate||"-"}),u.jsx("td",{className:"text-right",children:Oe(n.price)}),u.jsx("td",{className:"text-center",children:u.jsx(Br,{status:n.status})})]},n.id)),!t.length&&u.jsx("tr",{children:u.jsx("td",{colSpan:6,className:"text-center text-slate-500 py-8",children:"구독이 없습니다."})})]})]})})]})}const kSe=["valentine","mothers_day","christmas","thanksgiving"];function LSe(){const e=tn(),[t,n]=A.useState({holidayDate:"",name:"",blocked:!0,surgeMultiplier:1,storeId:null}),[r,a]=A.useState("valentine"),[i,s]=A.useState(null),{data:o}=se({queryKey:["admin-holidays"],queryFn:X$}),{data:l}=se({queryKey:["sch-stores"],queryFn:()=>mo(!1)}),c=async()=>{t.holidayDate&&(await LG(t).catch(()=>{}),n({...t,holidayDate:"",name:""}),e.invalidateQueries({queryKey:["admin-holidays"]}))},f=async()=>{const h=await dK(r,14).catch(()=>null);s(h)},d=h=>{var p;return((p=l==null?void 0:l.find(v=>v.id===h))==null?void 0:p.code)||`#${h}`};return u.jsxs("div",{children:[u.jsxs("div",{className:"flex items-center gap-2 mb-5",children:[u.jsx(s$,{className:"text-brand",size:22}),u.jsx("h1",{className:"text-xl font-bold",children:"스케줄 · 공휴일 · 서지"})]}),u.jsxs("div",{className:"bg-card border border-edge rounded-xl p-5 mb-5",children:[u.jsx("div",{className:"text-sm font-semibold mb-3",children:"공휴일/서지 등록"}),u.jsxs("div",{className:"grid grid-cols-5 gap-3",children:[u.jsx("input",{type:"date",value:t.holidayDate,onChange:h=>n({...t,holidayDate:h.target.value}),className:"bg-panel border border-edge rounded-lg px-3 py-2 text-sm"}),u.jsx("input",{value:t.name,onChange:h=>n({...t,name:h.target.value}),placeholder:"이름",className:"bg-panel border border-edge rounded-lg px-3 py-2 text-sm"}),u.jsxs("label",{className:"flex items-center gap-2 text-sm text-slate-300",children:[u.jsx("input",{type:"checkbox",checked:t.blocked,onChange:h=>n({...t,blocked:h.target.checked})})," 배송차단"]}),u.jsx("input",{type:"number",step:"0.1",value:t.surgeMultiplier,onChange:h=>n({...t,surgeMultiplier:Number(h.target.value)}),placeholder:"서지 배수",className:"bg-panel border border-edge rounded-lg px-3 py-2 text-sm"}),u.jsxs("button",{onClick:c,className:"flex items-center gap-1.5 bg-brand text-ink font-semibold rounded-lg px-3 py-2 text-sm justify-center",children:[u.jsx(Ow,{size:15})," 등록"]})]})]}),u.jsx("div",{className:"bg-card border border-edge rounded-xl overflow-hidden mb-6",children:u.jsxs("table",{className:"w-full text-sm",children:[u.jsx("thead",{children:u.jsxs("tr",{className:"text-slate-400 text-xs border-b border-edge bg-panel",children:[u.jsx("th",{className:"text-left p-3",children:"날짜"}),u.jsx("th",{className:"text-left",children:"이름"}),u.jsx("th",{className:"text-center",children:"배송차단"}),u.jsx("th",{className:"text-right",children:"서지배수"}),u.jsx("th",{className:"text-left",children:"매장"})]})}),u.jsxs("tbody",{children:[(o||[]).map(h=>u.jsxs("tr",{className:"border-b border-edge/50",children:[u.jsx("td",{className:"p-3",children:h.holidayDate}),u.jsx("td",{className:"text-slate-400",children:h.name}),u.jsx("td",{className:"text-center",children:h.blocked?u.jsx("span",{className:"text-rose-400",children:"차단"}):u.jsx("span",{className:"text-slate-500",children:"–"})}),u.jsx("td",{className:"text-right",children:h.surgeMultiplier>1?u.jsxs("span",{className:"text-amber-400",children:["×",h.surgeMultiplier]}):"–"}),u.jsx("td",{className:"text-slate-400 text-xs",children:h.storeId?d(h.storeId):"전체"})]},h.id||h.holidayDate)),!(o||[]).length&&u.jsx("tr",{children:u.jsx("td",{colSpan:5,className:"text-center text-slate-500 py-8",children:"등록된 공휴일이 없습니다."})})]})]})}),u.jsxs("div",{className:"bg-card border border-edge rounded-xl p-5",children:[u.jsxs("div",{className:"flex items-center gap-2 mb-3",children:[u.jsx(gr,{size:16,className:"text-brand"}),u.jsx("span",{className:"text-sm font-semibold",children:"AI 피크시즌 수요 예측"}),u.jsx("select",{value:r,onChange:h=>a(h.target.value),className:"ml-auto bg-panel border border-edge rounded-lg px-3 py-1.5 text-sm",children:kSe.map(h=>u.jsx("option",{children:h},h))}),u.jsx("button",{onClick:f,className:"bg-brand2 text-white text-sm px-3 py-1.5 rounded-lg",children:"예측 실행"})]}),i&&u.jsxs("table",{className:"w-full text-sm",children:[u.jsx("thead",{children:u.jsxs("tr",{className:"text-slate-400 text-xs border-b border-edge",children:[u.jsx("th",{className:"text-left py-2",children:"매장"}),u.jsx("th",{className:"text-right",children:"최근 주문"}),u.jsx("th",{className:"text-right",children:"예측 주문"}),u.jsx("th",{className:"text-right",children:"배수"})]})}),u.jsx("tbody",{children:(i.forecast||[]).map((h,p)=>u.jsxs("tr",{className:"border-b border-edge/50",children:[u.jsx("td",{className:"py-2",children:d(h.storeId)}),u.jsx("td",{className:"text-right text-slate-400",children:h.recentOrders}),u.jsx("td",{className:"text-right text-brand",children:h.predictedOrders}),u.jsxs("td",{className:"text-right text-amber-400",children:["×",h.multiplier]})]},p))})]})]})]})}function zSe(){const[e,t]=A.useState(14),{data:n}=se({queryKey:["an-store",e],queryFn:()=>Q$(e)}),{data:r}=se({queryKey:["an-trend",e],queryFn:()=>Z$(e)}),{data:a}=se({queryKey:["an-top"],queryFn:()=>J$(10)}),{data:i}=se({queryKey:["an-tier"],queryFn:()=>n5(e)}),s=(n||[]).map(d=>({name:d.storeCode||d.storeName,매출:d.sales,주문:d.orderCount})),o=(r||[]).map(d=>({name:(d.date||"").slice(5),매출:d.sales})),l=(a||[]).map(d=>({name:d.name,판매:d.salesCount})),c=(i||[]).map(d=>({name:d.tier,매출:d.sales,고객:d.customers})),f=(n||[]).reduce((d,h)=>d+(h.sales||0),0);return u.jsxs("div",{children:[u.jsxs("div",{className:"flex items-center justify-between mb-5",children:[u.jsxs("div",{className:"flex items-center gap-2",children:[u.jsx(Aw,{className:"text-brand",size:22}),u.jsx("h1",{className:"text-xl font-bold",children:"매출 분석 (BI)"})]}),u.jsx("select",{value:e,onChange:d=>t(Number(d.target.value)),className:"bg-card border border-edge rounded-lg px-3 py-2 text-sm",children:[7,14,30,90].map(d=>u.jsxs("option",{value:d,children:["최근 ",d,"일"]},d))})]}),u.jsxs("div",{className:"bg-card border border-edge rounded-xl p-5 mb-5",children:[u.jsx("div",{className:"text-xs text-slate-400",children:"기간 총매출"}),u.jsx("div",{className:"text-3xl font-bold",children:Oe(f)})]}),u.jsxs("div",{className:"grid lg:grid-cols-2 gap-5",children:[u.jsxs("div",{className:"bg-card border border-edge rounded-xl p-5",children:[u.jsx("h2",{className:"text-sm font-semibold mb-3",children:"매출 추이"}),u.jsx(Pa,{type:"AREA",rows:o,dataKeys:["매출"]})]}),u.jsxs("div",{className:"bg-card border border-edge rounded-xl p-5",children:[u.jsx("h2",{className:"text-sm font-semibold mb-3",children:"매장별 매출"}),u.jsx(Pa,{type:"BAR",rows:s,dataKeys:["매출","주문"]})]}),u.jsxs("div",{className:"bg-card border border-edge rounded-xl p-5",children:[u.jsx("h2",{className:"text-sm font-semibold mb-3",children:"등급별 매출 (BI)"}),u.jsx(Pa,{type:"BAR",rows:c,dataKeys:["매출","고객"]})]}),u.jsxs("div",{className:"bg-card border border-edge rounded-xl p-5",children:[u.jsx("h2",{className:"text-sm font-semibold mb-3",children:"베스트셀러 Top 10"}),u.jsx(Pa,{type:"BAR",rows:l,dataKeys:["판매"]})]})]})]})}const CC=["USER","MANAGER","ADMIN"];function BSe(){const e=tn(),{data:t}=se({queryKey:["users"],queryFn:pK}),[n,r]=A.useState({username:"",password:"",role:"USER"}),[a,i]=A.useState(!1),s=()=>e.invalidateQueries({queryKey:["users"]}),o=async()=>{!n.username||!n.password||(await mK(n).catch(()=>{}),r({username:"",password:"",role:"USER"}),i(!1),s())},l=async(h,p)=>{await yK(h,p).catch(()=>{}),s()},c=async(h,p)=>{await vK(h,!p).catch(()=>{}),s()},f=async h=>{const p=prompt("새 비밀번호");p&&(await gK(h,p).catch(()=>{}),alert("변경됨"))},d=async h=>{confirm("삭제하시겠습니까?")&&(await bK(h).catch(()=>{}),s())};return u.jsxs("div",{children:[u.jsxs("div",{className:"flex items-center justify-between mb-5",children:[u.jsxs("div",{className:"flex items-center gap-2",children:[u.jsx(x$,{className:"text-brand",size:22}),u.jsx("h1",{className:"text-xl font-bold",children:"사용자 / 권한 (RBAC)"})]}),u.jsxs("button",{onClick:()=>i(!a),className:"flex items-center gap-1.5 bg-brand text-ink text-sm font-semibold px-3 py-2 rounded-lg",children:[u.jsx(Ow,{size:15})," 사용자 추가"]})]}),a&&u.jsxs("div",{className:"bg-card border border-edge rounded-xl p-5 mb-5 grid grid-cols-4 gap-3",children:[u.jsx("input",{value:n.username,onChange:h=>r({...n,username:h.target.value}),placeholder:"아이디",className:"bg-panel border border-edge rounded-lg px-3 py-2 text-sm"}),u.jsx("input",{type:"password",value:n.password,onChange:h=>r({...n,password:h.target.value}),placeholder:"비밀번호",className:"bg-panel border border-edge rounded-lg px-3 py-2 text-sm"}),u.jsx("select",{value:n.role,onChange:h=>r({...n,role:h.target.value}),className:"bg-panel border border-edge rounded-lg px-3 py-2 text-sm",children:CC.map(h=>u.jsx("option",{children:h},h))}),u.jsx("button",{onClick:o,className:"bg-brand text-ink font-semibold rounded-lg px-3 py-2 text-sm",children:"생성"})]}),u.jsx("div",{className:"bg-card border border-edge rounded-xl overflow-hidden",children:u.jsxs("table",{className:"w-full text-sm",children:[u.jsx("thead",{children:u.jsxs("tr",{className:"text-slate-400 text-xs border-b border-edge bg-panel",children:[u.jsx("th",{className:"text-left p-3",children:"ID"}),u.jsx("th",{className:"text-left",children:"아이디"}),u.jsx("th",{className:"text-left",children:"역할"}),u.jsx("th",{className:"text-center",children:"상태"}),u.jsx("th",{className:"text-center",children:"관리"})]})}),u.jsxs("tbody",{children:[(t||[]).map(h=>u.jsxs("tr",{className:"border-b border-edge/50 hover:bg-panel/50",children:[u.jsx("td",{className:"p-3 text-slate-400",children:h.id}),u.jsx("td",{children:h.username}),u.jsx("td",{children:u.jsx("select",{value:h.role,onChange:p=>l(h.id,p.target.value),className:"bg-panel border border-edge rounded px-2 py-1 text-xs",children:CC.map(p=>u.jsx("option",{children:p},p))})}),u.jsx("td",{className:"text-center",children:u.jsx("button",{onClick:()=>c(h.id,h.active),className:`px-2 py-1 rounded text-xs ${h.active!==!1?"bg-emerald-500/15 text-emerald-400":"bg-slate-600/20 text-slate-400"}`,children:h.active!==!1?"활성":"비활성"})}),u.jsx("td",{className:"text-center",children:u.jsxs("div",{className:"inline-flex gap-1",children:[u.jsx("button",{onClick:()=>f(h.id),className:"text-xs bg-panel border border-edge px-2 py-1 rounded text-slate-300",children:"비번"}),u.jsx("button",{onClick:()=>d(h.id),className:"text-xs bg-rose-500/15 text-rose-400 px-2 py-1 rounded",children:"삭제"})]})})]},h.id)),!(t||[]).length&&u.jsx("tr",{children:u.jsx("td",{colSpan:5,className:"text-center text-slate-500 py-8",children:"사용자가 없습니다."})})]})]})})]})}function ISe(){const[e,t]=A.useState(""),[n,r]=A.useState(""),{data:a}=se({queryKey:["audit",e,n],queryFn:()=>xK(e,n,200)});return u.jsxs("div",{children:[u.jsxs("div",{className:"flex items-center justify-between mb-5",children:[u.jsxs("div",{className:"flex items-center gap-2",children:[u.jsx(g$,{className:"text-brand",size:22}),u.jsx("h1",{className:"text-xl font-bold",children:"감사 로그"})]}),u.jsxs("div",{className:"flex items-center gap-2",children:[u.jsxs("div",{className:"flex items-center gap-2 bg-card border border-edge rounded-lg px-3 py-2",children:[u.jsx(Tw,{size:14,className:"text-slate-500"}),u.jsx("input",{value:n,onChange:i=>r(i.target.value),placeholder:"행위자",className:"bg-transparent text-sm outline-none w-28"})]}),u.jsx("input",{value:e,onChange:i=>t(i.target.value),placeholder:"액션 필터",className:"bg-card border border-edge rounded-lg px-3 py-2 text-sm w-32"})]})]}),u.jsx("div",{className:"bg-card border border-edge rounded-xl overflow-hidden",children:u.jsxs("table",{className:"w-full text-sm",children:[u.jsx("thead",{children:u.jsxs("tr",{className:"text-slate-400 text-xs border-b border-edge bg-panel",children:[u.jsx("th",{className:"text-left p-3",children:"시각"}),u.jsx("th",{className:"text-left",children:"행위자"}),u.jsx("th",{className:"text-left",children:"액션"}),u.jsx("th",{className:"text-left",children:"대상"}),u.jsx("th",{className:"text-left",children:"상세"})]})}),u.jsxs("tbody",{children:[(a||[]).map((i,s)=>u.jsxs("tr",{className:"border-b border-edge/50 hover:bg-panel/50",children:[u.jsx("td",{className:"p-3 text-slate-400 text-xs whitespace-nowrap",children:(i.createdAt||i.timestamp||"").slice(0,19).replace("T"," ")}),u.jsx("td",{className:"text-slate-300",children:i.actor||i.username||"-"}),u.jsx("td",{children:u.jsx("span",{className:"text-brand text-xs font-mono",children:i.action})}),u.jsx("td",{className:"text-slate-400 text-xs",children:i.target||i.resource||"-"}),u.jsx("td",{className:"text-slate-500 text-xs max-w-md truncate",children:i.detail||i.details||""})]},i.id||s)),!(a||[]).length&&u.jsx("tr",{children:u.jsx("td",{colSpan:5,className:"text-center text-slate-500 py-8",children:"감사 로그가 없습니다."})})]})]})})]})}function USe(){const e=tn(),{data:t}=se({queryKey:["providers"],queryFn:cK}),{data:n}=se({queryKey:["settings"],queryFn:SK}),[r,a]=A.useState({}),i=async o=>{const l=r[o];l!==void 0&&(await wK(o,l).catch(()=>{}),e.invalidateQueries({queryKey:["settings"]}))},s=Array.isArray(t)?t:Object.entries(t||{}).map(([o,l])=>({adapter:o,provider:typeof l=="string"?l:l==null?void 0:l.provider,active:(l==null?void 0:l.active)??!0}));return u.jsxs("div",{children:[u.jsxs("div",{className:"flex items-center gap-2 mb-5",children:[u.jsx(b$,{className:"text-brand",size:22}),u.jsx("h1",{className:"text-xl font-bold",children:"게이트웨이 · 설정"})]}),u.jsxs("div",{className:"bg-card border border-edge rounded-xl p-5 mb-5",children:[u.jsxs("div",{className:"flex items-center gap-2 text-sm font-semibold mb-3",children:[u.jsx(TH,{size:16,className:"text-brand"})," 게이트웨이 어댑터 (provider)"]}),u.jsxs("p",{className:"text-xs text-slate-500 mb-3 flex items-center gap-1.5",children:[u.jsx(Nw,{size:13,className:"text-accent"})," API 키는 환경변수에만 저장되며 화면에 노출되지 않습니다. (기본 mock = 외부호출 0)"]}),u.jsxs("div",{className:"grid md:grid-cols-2 lg:grid-cols-3 gap-3",children:[s.map((o,l)=>u.jsxs("div",{className:"bg-panel border border-edge rounded-lg p-3 flex items-center justify-between",children:[u.jsxs("div",{children:[u.jsx("div",{className:"text-xs text-slate-400 uppercase",children:o.adapter}),u.jsx("div",{className:"font-semibold",children:o.provider||"mock"})]}),u.jsx("span",{className:`text-xs px-2 py-1 rounded ${o.provider&&o.provider!=="mock"?"bg-emerald-500/15 text-emerald-400":"bg-slate-600/20 text-slate-400"}`,children:o.provider&&o.provider!=="mock"?"실연동":"mock"})]},l)),!s.length&&u.jsx("div",{className:"text-slate-500 text-sm",children:"provider 정보를 불러올 수 없습니다."})]})]}),u.jsxs("div",{className:"bg-card border border-edge rounded-xl p-5",children:[u.jsx("div",{className:"text-sm font-semibold mb-3",children:"시스템 설정"}),u.jsxs("div",{className:"space-y-2",children:[(n||[]).map(o=>{const l=o.key||o.settingKey,c=r[l]??o.value??o.settingValue??"";return u.jsxs("div",{className:"flex items-center gap-3",children:[u.jsx("span",{className:"text-sm text-slate-400 w-56 font-mono text-xs",children:l}),u.jsx("input",{value:c,onChange:f=>a({...r,[l]:f.target.value}),className:"flex-1 bg-panel border border-edge rounded-lg px-3 py-2 text-sm"}),u.jsx("button",{onClick:()=>i(l),className:"bg-brand2 text-white text-xs px-3 py-2 rounded-lg",children:"저장"})]},l)}),!(n||[]).length&&u.jsx("div",{className:"text-slate-500 text-sm py-4",children:"설정 항목이 없습니다."})]})]})]})}const QL="https://itsm.zioinfo.co.kr",yb=e=>e==null?void 0:e.replace(/https?:\/\/zioinfo\.co\.kr:8443/g,QL);function qSe(){const[e,t]=A.useState(null),[n,r]=A.useState(!0),[a,i]=A.useState(""),[s,o]=A.useState(!1),l=()=>{r(!0),i(""),fetch(`${QL}/api/app/public-latest`).then(f=>f.json()).then(f=>t({...f,qr_url:yb(f.qr_url),landing_url:yb(f.landing_url),download_url:yb(f.download_url)})).catch(()=>i("중앙 앱 저장소(ITSM)에 연결할 수 없습니다.")).finally(()=>r(!1))};A.useEffect(()=>{l()},[]);const c=async()=>{if(e!=null&&e.landing_url)try{await navigator.clipboard.writeText(e.landing_url),o(!0),setTimeout(()=>o(!1),2e3)}catch{}};return u.jsxs("div",{children:[u.jsxs("div",{className:"flex items-center justify-between mb-5",children:[u.jsxs("div",{className:"flex items-center gap-2",children:[u.jsx(ul,{className:"text-brand",size:22}),u.jsx("h1",{className:"text-xl font-bold",children:"관리자앱 설치"})]}),u.jsxs("button",{onClick:l,className:"flex items-center gap-1.5 px-3 py-2 rounded-lg bg-card border border-edge text-sm text-slate-300 hover:text-brand",children:[u.jsx(Ew,{size:15})," 새로고침"]})]}),u.jsxs("p",{className:"text-sm text-slate-400 mb-6",children:["매장/대표 관리자용 모바일앱입니다. QR을 스캔하면 설치 페이지로 이동합니다. 앱 업로드·버전 관리는 ",u.jsx("span",{className:"text-brand",children:"GUARDiA Manager"}),"에서 일원화됩니다(읽기전용)."]}),n&&u.jsx("div",{className:"text-slate-400 text-sm",children:"불러오는 중…"}),a&&u.jsx("div",{className:"bg-card border border-edge rounded-xl p-6 text-rose-400 text-sm",children:a}),!n&&!a&&e&&!e.has_version&&u.jsxs("div",{className:"bg-card border border-edge rounded-xl p-8 text-center text-slate-400",children:[u.jsx(ul,{size:36,className:"mx-auto mb-3 text-slate-600"}),"아직 등록된 앱 버전이 없습니다.",u.jsx("br",{}),u.jsx("span",{className:"text-xs",children:"GUARDiA Manager에서 APK를 업로드하면 여기에 QR이 표시됩니다."})]}),!n&&!a&&(e==null?void 0:e.has_version)&&u.jsxs("div",{className:"bg-card border border-edge rounded-xl p-6 grid md:grid-cols-[200px_1fr] gap-6 items-start",children:[u.jsx("div",{className:"bg-white rounded-xl p-3 flex items-center justify-center",children:e.qr_url?u.jsx("img",{src:e.qr_url,alt:"관리자앱 QR",className:"w-44 h-44"}):u.jsx(ul,{size:64,className:"text-slate-400"})}),u.jsxs("div",{children:[u.jsxs("div",{className:"flex items-center gap-2 mb-1",children:[u.jsx("span",{className:"text-lg font-bold",children:e.app_name||"GUARDiA Mall Admin"}),u.jsxs("span",{className:"px-2 py-0.5 rounded-md bg-brand2 text-white text-xs font-semibold",children:["v",e.version]})]}),u.jsxs("div",{className:"text-xs text-slate-400 mb-4",children:[e.platform," ",e.file_size_mb?`· ${e.file_size_mb}MB`:"",e.download_count!=null&&` · 다운로드 ${e.download_count}회`]}),e.release_notes&&u.jsxs("div",{className:"mb-4",children:[u.jsx("div",{className:"text-[11px] font-semibold text-slate-500 uppercase tracking-wider mb-1",children:"변경점"}),u.jsx("div",{className:"text-sm text-slate-300 whitespace-pre-line bg-ink border border-edge rounded-lg p-3 max-h-32 overflow-auto",children:e.release_notes})]}),u.jsxs("div",{className:"flex flex-wrap gap-2",children:[e.landing_url&&u.jsxs("a",{href:e.landing_url,target:"_blank",rel:"noreferrer",className:"flex items-center gap-1.5 px-3 py-2 rounded-lg bg-brand text-ink text-sm font-semibold",children:[u.jsx(d$,{size:15})," 설치 페이지"]}),e.download_url&&u.jsxs("a",{href:e.download_url,target:"_blank",rel:"noreferrer",className:"flex items-center gap-1.5 px-3 py-2 rounded-lg bg-card border border-edge text-sm text-slate-300 hover:text-brand",children:[u.jsx(f$,{size:15})," APK 다운로드"]}),u.jsxs("button",{onClick:c,className:"flex items-center gap-1.5 px-3 py-2 rounded-lg bg-card border border-edge text-sm text-slate-300 hover:text-brand",children:[s?u.jsx(o$,{size:15,className:"text-accent"}):u.jsx(u$,{size:15}),s?"복사됨":"링크 복사"]})]})]})]})]})}const VSe=new SB({defaultOptions:{queries:{retry:1,refetchOnWindowFocus:!1,staleTime:3e4}}});function HSe(){return u.jsx(wB,{client:VSe,children:u.jsx(hU,{children:u.jsx(aU,{children:u.jsxs(RI,{children:[u.jsx(xe,{path:"/",element:u.jsx(IK,{})}),u.jsx(xe,{path:"/account",element:u.jsx(AY,{})}),u.jsxs(xe,{element:u.jsx(aY,{}),children:[u.jsx(xe,{path:"/home",element:u.jsx(sY,{})}),u.jsx(xe,{path:"/category",element:u.jsx(lY,{})}),u.jsx(xe,{path:"/search",element:u.jsx(cY,{})}),u.jsx(xe,{path:"/product/:id",element:u.jsx(uY,{})}),u.jsx(xe,{path:"/cart",element:u.jsx(fY,{})}),u.jsx(xe,{path:"/checkout",element:u.jsx(hY,{})}),u.jsx(xe,{path:"/subscription",element:u.jsx(yY,{})}),u.jsx(xe,{path:"/daily-standard",element:u.jsx(vY,{})}),u.jsx(xe,{path:"/events",element:u.jsx(bY,{})}),u.jsx(xe,{path:"/wishlist",element:u.jsx(xY,{})}),u.jsx(xe,{path:"/mypage",element:u.jsx(SY,{})}),u.jsx(xe,{path:"/orders",element:u.jsx(wY,{})}),u.jsx(xe,{path:"/review/:productId",element:u.jsx(jY,{})}),u.jsx(xe,{path:"/cs",element:u.jsx(EY,{})}),u.jsx(xe,{path:"/app",element:u.jsx(TY,{})})]}),u.jsx(xe,{path:"/admin/login",element:u.jsx(NY,{})}),u.jsxs(xe,{path:"/admin",element:u.jsx(PY,{}),children:[u.jsx(xe,{index:!0,element:u.jsx(Bp,{to:"/admin/dashboard",replace:!0})}),u.jsx(xe,{path:"dashboard",element:u.jsx(OSe,{})}),u.jsx(xe,{path:"stores",element:u.jsx(ESe,{})}),u.jsx(xe,{path:"products",element:u.jsx(TSe,{})}),u.jsx(xe,{path:"inventory",element:u.jsx(NSe,{})}),u.jsx(xe,{path:"orders",element:u.jsx(_Se,{})}),u.jsx(xe,{path:"transfers",element:u.jsx(CSe,{})}),u.jsx(xe,{path:"members",element:u.jsx(PSe,{})}),u.jsx(xe,{path:"loyalty",element:u.jsx(MSe,{})}),u.jsx(xe,{path:"events",element:u.jsx(DSe,{})}),u.jsx(xe,{path:"subscriptions",element:u.jsx($Se,{})}),u.jsx(xe,{path:"schedule",element:u.jsx(LSe,{})}),u.jsx(xe,{path:"analytics",element:u.jsx(zSe,{})}),u.jsx(xe,{path:"users",element:u.jsx(BSe,{})}),u.jsx(xe,{path:"audit",element:u.jsx(ISe,{})}),u.jsx(xe,{path:"settings",element:u.jsx(USe,{})}),u.jsx(xe,{path:"app",element:u.jsx(qSe,{})})]}),u.jsx(xe,{path:"*",element:u.jsx(Bp,{to:"/",replace:!0})})]})})})})}X8.createRoot(document.getElementById("root")).render(u.jsx(N.StrictMode,{children:u.jsx(HSe,{})}));
